[03:04:06]OFD Sender: No OFD packet to send [03:04:11]OFD Sender: No OFD packet to send [03:04:16]OFD Sender: No OFD packet to send [03:04:21]OFD Sender: No OFD packet to send [03:04:26]OFD Sender: No OFD packet to send [03:04:31]OFD Sender: No OFD packet to send [03:04:36]OFD Sender: No OFD packet to send [03:04:41]OFD Sender: No OFD packet to send [03:04:46]OFD Sender: No OFD packet to send [03:04:51]OFD Sender: No OFD packet to send [03:04:56]OFD Sender: No OFD packet to send [03:05:01]OFD Sender: No OFD packet to send [03:05:06]OFD Sender: No OFD packet to send [03:05:11]OFD Sender: No OFD packet to send [03:05:16]OFD Sender: No OFD packet to send [03:05:21]OFD Sender: No OFD packet to send [03:05:26]OFD Sender: No OFD packet to send [03:05:31]OFD Sender: No OFD packet to send [03:05:36]OFD Sender: No OFD packet to send [03:05:41]OFD Sender: No OFD packet to send [03:05:46]OFD Sender: No OFD packet to send [03:05:51]OFD Sender: No OFD packet to send [03:05:56]OFD Sender: No OFD packet to send [03:06:01]OFD Sender: No OFD packet to send [03:06:06]OFD Sender: No OFD packet to send [03:06:11]OFD Sender: No OFD packet to send [03:06:16]OFD Sender: No OFD packet to send [03:06:21]OFD Sender: No OFD packet to send [03:06:26]OFD Sender: No OFD packet to send [03:06:31]OFD Sender: No OFD packet to send [03:06:36]OFD Sender: No OFD packet to send [03:06:41]OFD Sender: No OFD packet to send [03:06:46]OFD Sender: No OFD packet to send [03:06:51]OFD Sender: No OFD packet to send [03:06:56]OFD Sender: No OFD packet to send [03:07:01]OFD Sender: No OFD packet to send [03:07:06]OFD Sender: No OFD packet to send [03:07:11]OFD Sender: No OFD packet to send [03:07:16]OFD Sender: No OFD packet to send [03:07:21]OFD Sender: No OFD packet to send [03:07:26]OFD Sender: No OFD packet to send [03:07:31]OFD Sender: No OFD packet to send [03:07:36]OFD Sender: No OFD packet to send [03:07:41]OFD Sender: No OFD packet to send [03:07:46]OFD Sender: No OFD packet to send [03:07:51]OFD Sender: No OFD packet to send [03:07:56]OFD Sender: No OFD packet to send [03:08:01]OFD Sender: No OFD packet to send [03:08:06]OFD Sender: No OFD packet to send [03:08:12]OFD Sender: No OFD packet to send [03:08:17]OFD Sender: No OFD packet to send [03:08:22]OFD Sender: No OFD packet to send [03:08:27]OFD Sender: No OFD packet to send [03:08:32]OFD Sender: No OFD packet to send [03:08:37]OFD Sender: No OFD packet to send [03:08:42]OFD Sender: No OFD packet to send [03:08:47]OFD Sender: No OFD packet to send [03:08:52]OFD Sender: No OFD packet to send [03:08:57]OFD Sender: No OFD packet to send [03:09:02]OFD Sender: No OFD packet to send [03:09:07]OFD Sender: No OFD packet to send [03:09:12]OFD Sender: No OFD packet to send [03:09:17]OFD Sender: No OFD packet to send [03:09:22]OFD Sender: No OFD packet to send [03:09:27]OFD Sender: No OFD packet to send [03:09:32]OFD Sender: No OFD packet to send [03:09:37]OFD Sender: No OFD packet to send [03:09:42]OFD Sender: No OFD packet to send [03:09:47]OFD Sender: No OFD packet to send [03:09:52]OFD Sender: No OFD packet to send [03:09:57]OFD Sender: No OFD packet to send [03:10:02]OFD Sender: No OFD packet to send [03:10:07]OFD Sender: No OFD packet to send [03:10:12]OFD Sender: No OFD packet to send [03:10:17]OFD Sender: No OFD packet to send [03:10:22]OFD Sender: No OFD packet to send [03:10:27]OFD Sender: No OFD packet to send [03:10:32]OFD Sender: No OFD packet to send [03:10:37]OFD Sender: No OFD packet to send [03:10:42]OFD Sender: No OFD packet to send [03:10:47]OFD Sender: No OFD packet to send [03:10:52]OFD Sender: No OFD packet to send [03:10:57]OFD Sender: No OFD packet to send [03:11:02]OFD Sender: No OFD packet to send [03:11:07]OFD Sender: No OFD packet to send [03:11:12]OFD Sender: No OFD packet to send [03:11:17]OFD Sender: No OFD packet to send [03:11:22]OFD Sender: No OFD packet to send [03:11:27]OFD Sender: No OFD packet to send [03:11:32]OFD Sender: No OFD packet to send [03:11:37]OFD Sender: No OFD packet to send [03:11:42]OFD Sender: No OFD packet to send [03:11:47]OFD Sender: No OFD packet to send [03:11:52]OFD Sender: No OFD packet to send [03:11:57]OFD Sender: No OFD packet to send [03:12:02]OFD Sender: No OFD packet to send [03:12:07]OFD Sender: No OFD packet to send [03:12:12]OFD Sender: No OFD packet to send [03:12:17]OFD Sender: No OFD packet to send [03:12:22]OFD Sender: No OFD packet to send [03:12:27]OFD Sender: No OFD packet to send [03:12:32]OFD Sender: No OFD packet to send [03:12:37]OFD Sender: No OFD packet to send [03:12:42]OFD Sender: No OFD packet to send [03:12:47]OFD Sender: No OFD packet to send [03:12:52]OFD Sender: No OFD packet to send [03:12:57]OFD Sender: No OFD packet to send [03:13:02]OFD Sender: No OFD packet to send [03:13:07]OFD Sender: No OFD packet to send [03:13:12]OFD Sender: No OFD packet to send [03:13:17]OFD Sender: No OFD packet to send [03:13:22]OFD Sender: No OFD packet to send [03:13:27]OFD Sender: No OFD packet to send [03:13:32]OFD Sender: No OFD packet to send [03:13:37]OFD Sender: No OFD packet to send [03:13:42]OFD Sender: No OFD packet to send [03:13:47]OFD Sender: No OFD packet to send [03:13:52]OFD Sender: No OFD packet to send [03:13:57]OFD Sender: No OFD packet to send [03:14:02]OFD Sender: No OFD packet to send [03:14:07]OFD Sender: No OFD packet to send [03:14:12]OFD Sender: No OFD packet to send [03:14:17]OFD Sender: No OFD packet to send [03:14:22]OFD Sender: No OFD packet to send [03:14:27]OFD Sender: No OFD packet to send [03:14:32]OFD Sender: No OFD packet to send [03:14:37]OFD Sender: No OFD packet to send [03:14:42]OFD Sender: No OFD packet to send [03:14:47]OFD Sender: No OFD packet to send [03:14:52]OFD Sender: No OFD packet to send [03:14:57]OFD Sender: No OFD packet to send [03:15:02]OFD Sender: No OFD packet to send [03:15:07]OFD Sender: No OFD packet to send [03:15:12]OFD Sender: No OFD packet to send [03:15:17]OFD Sender: No OFD packet to send [03:15:22]OFD Sender: No OFD packet to send [03:15:27]OFD Sender: No OFD packet to send [03:15:32]OFD Sender: No OFD packet to send [03:15:37]OFD Sender: No OFD packet to send [03:15:42]OFD Sender: No OFD packet to send [03:15:47]OFD Sender: No OFD packet to send [03:15:48]accept exits with 9 [03:15:48]New connection [03:15:48]New thread 3066928484 created [03:15:48]Thread 3066785124 joined [03:15:48]Waiting for new connection... [03:15:48] Sock 9.Parse request [03:15:48]Sock 9.Check first char [03:15:48]Sock 9.First char is OK [03:15:48]request: POST /json_proto HTTP/1.0 [03:15:48]Method: POST [03:15:48]URL: /json_proto [03:15:48]Method is POST - this is cgi request [03:15:48]url: /json_proto [03:15:48]query_string will be loaded in cgi processing [03:15:48]execute_cgi json_proto POST (null) [03:15:48]execute_cgi path=json_proto method=POST [03:15:48]POST find Content-Length [03:15:48]Host: 172.17.33.3:8080 [03:15:48]Content-Length: 833 [03:15:48]Content-Type: application/json [03:15:48] [03:15:48]POST finish read [03:15:48]Found Content-Length = 833 [03:15:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 3.070, "sum" : 200.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:15:48]execute_script... [03:15: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)347153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 3.070, "sum" : 200.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:15:48]POST & json_proto [03:15:48]process_json_proto [03:15:48]json parsed OK: [03:15:48]protocol is kg_v1.0 [03:15:48]action value=close_receipt [03:15:48]process_action close_receipt [03:15:48]cmd_close_receipt [03:15:48]MH_GetDate [03:15:48]Write to MH i2c: F0 00 00 23 1A 2C [03:15:48]Write i2c OK [03:15:48]MH_I2C_Read... [03:15:48]Read from MH i2c: F0 [03:15:48]MH_I2C_Read... [03:15:48]Read from MH i2c: F0 09 00 [03:15:48]MH_I2C_Read... [03:15:48]Read from MH i2c: F0 09 00 23 1A 00 E7 F8 19 66 23 5B 8F 65 05 [03:15:48]GetLastDocTimeStamp 1712977076 [03:15:48]current date 1712978151 [03:15:48]FM_GetShiftState [03:15:48]SAM_PROTO_GetShiftState [03:15:48]wFMCommunicate request_size=4 [03:15:48]MH_SAM_APDU [03:15:48]CAPDU: 80 13 01 00 [03:15:48]Write to MH i2c: E2 08 00 24 1A 80 13 01 00 00 00 00 00 BB [03:15:48]Write i2c OK [03:15:48]MH_I2C_Read... [03:15:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:15:48]Read from MH i2c: E2 [03:15:48]MH_I2C_Read... [03:15:48]Read from MH i2c: E2 0E 00 [03:15:48]MH_I2C_Read... [03:15:48]Read from MH i2c: E2 0E 00 24 1A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D4 [03:15:48]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [03:15:48]wFMCommunicate OK [03:15:48]SAM_PROTO_GetShiftState done [03:15:48]FM_GetShiftState done [03:15:48]opened in 1712967615 [03:15:48]opened+sec_in_day 1713054015 [03:15:48]quantity*price = 20047 [03:15:48]sum+1 = 20048 [03:15:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.47 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 0.00 Безнал.: 200.47 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 14 13.04.2024 03:15 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28807 ФПД: 78493209441623 1/tax-web-control/client/api/v1/ticket?date=20240413T031551&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28807&fm=78493209441623&tin=02508201610067®Number=0000138879044617&sum=20047 [03:15:50]StoreToDocumentArchive [03:15:50]shift 115 fd 28807 [03:15:50]save to /storage/0115/doc_00028807 [03:15:50]save last doc name /storage/0115/doc_00028807 to /storage/kkm_last_doc_name [03:15:50]save OK [03:15:50]Clear old archive folders... [03:15:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [03:15:50]tlvbuf is 011CFBA0 [03:15:50]SAM_PROTO_ClearQueue [03:15:50]wFMCommunicate request_size=4 [03:15:50]MH_SAM_APDU [03:15:50]CAPDU: 80 09 00 00 [03:15:50]Write to MH i2c: E2 08 00 31 1A 80 09 00 00 00 00 00 00 BD [03:15:50]Write i2c OK [03:15:50]MH_I2C_Read... [03:15:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:15:50]Read from MH i2c: E2 [03:15:50]MH_I2C_Read... [03:15:50]Read from MH i2c: E2 03 00 [03:15:50]MH_I2C_Read... [03:15:50]Read from MH i2c: E2 03 00 31 1A 00 90 00 BF [03:15:50]RAPDU: 90 00 [03:15:50]wFMCommunicate OK [03:15:50]SAM_PROTO_ClearQueue done [03:15:50]KKMCreateOFDPacket [03:15:50]OFDProtocolAddRootSTLVToBuf [03:15:50]FM_MakeSignedData [03:15:50]FM_MakeSignedData [03:15:50]SAM_PROTO_SignData [03:15:50]wFMCommunicate request_size=4 [03:15:50]MH_SAM_APDU [03:15:50]CAPDU: 80 0D 01 02 [03:15:50]Write to MH i2c: E2 08 00 32 1A 80 0D 01 02 00 00 00 00 C5 [03:15:50]Write i2c OK [03:15:50]MH_I2C_Read... [03:15:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:15:50]Read from MH i2c: E2 [03:15:50]MH_I2C_Read... [03:15:50]Read from MH i2c: E2 03 00 [03:15:50]MH_I2C_Read... [03:15:50]Read from MH i2c: E2 03 00 32 1A 00 90 00 C0 [03:15:50]RAPDU: 90 00 [03:15:50]wFMCommunicate OK [03:15:50]wFMCommunicate request_size=255 [03:15:50]MH_SAM_APDU [03:15:50]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4F 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 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 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 E7 F8 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 87 70 00 00 35 04 06 00 [03:15:50]Write to MH i2c: E2 02 01 33 1A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4F 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 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 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 E7 F8 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 87 70 00 00 35 04 06 00 00 00 F1 [03:15:50]Write i2c OK [03:15:50]MH_I2C_Read... [03:15:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:15:50]Read from MH i2c: E2 [03:15:50]MH_I2C_Read... [03:15:50]Read from MH i2c: E2 03 00 [03:15:50]MH_I2C_Read... [03:15:50]Read from MH i2c: E2 03 00 33 1A 00 90 00 C1 [03:15:50]RAPDU: 90 00 [03:15:50]wFMCommunicate OK [03:15:50]wFMCommunicate request_size=11 [03:15:50]MH_SAM_APDU [03:15:50]CAPDU: 80 0D 02 02 06 47 63 9F DD B5 57 [03:15:50]Write to MH i2c: E2 0E 00 34 1A 80 0D 02 02 06 00 47 63 9F DD B5 57 00 00 06 [03:15:50]Write i2c OK [03:15:50]MH_I2C_Read... [03:15:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:15:50]Read from MH i2c: E2 [03:15:50]MH_I2C_Read... [03:15:50]Read from MH i2c: E2 03 00 [03:15:50]MH_I2C_Read... [03:15:50]Read from MH i2c: E2 03 00 34 1A 00 90 00 C2 [03:15:50]RAPDU: 90 00 [03:15:50]wFMCommunicate OK [03:15:50]wFMCommunicate request_size=4 [03:15:50]MH_SAM_APDU [03:15:50]CAPDU: 80 0D 03 02 [03:15:50]Write to MH i2c: E2 08 00 35 1A 80 0D 03 02 00 00 00 00 CA [03:15:50]Write i2c OK [03:15:50]MH_I2C_Read... [03:15:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:15:50]Read from MH i2c: E2 [03:15:50]MH_I2C_Read... [03:15:50]Read from MH i2c: E2 0B 00 [03:15:50]MH_I2C_Read... [03:15:50]Read from MH i2c: E2 0B 00 35 1A 00 F0 20 E1 24 14 08 4A D6 90 00 1C [03:15:50]RAPDU: F0 20 E1 24 14 08 4A D6 90 00 [03:15:50]wFMCommunicate OK [03:15:50]SAM_PROTO_SignData done [03:15:50]FM_MakeSignedData done [03:15:50]CreateOFDProtocolMessage [03:15:50]wFMCommunicate request_size=4 [03:15:50]MH_SAM_APDU [03:15:50]CAPDU: 80 11 00 00 [03:15:50]Write to MH i2c: E2 08 00 36 1A 80 11 00 00 00 00 00 00 CA [03:15:50]Write i2c OK [03:15:50]MH_I2C_Read... [03:15:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:15:50]Read from MH i2c: E2 [03:15:50]MH_I2C_Read... [03:15:50]Read from MH i2c: E2 17 00 [03:15:50]MH_I2C_Read... [03:15:50]Read from MH i2c: E2 17 00 36 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 19 [03:15:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [03:15:50]wFMCommunicate OK [03:15:50]CreateOFDProtocolMessage done [03:15:50]OFDSenderStorePacket 28807 [03:15:50]StoreOFDPacket docnum=28807 [03:15:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 56 C4 08 01 D5 69 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4F 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 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 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 E7 F8 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 87 70 00 00 35 04 06 00 47 63 9F DD B5 57 F0 20 E1 24 14 08 4A D6 [03:15:50]CheckFolder [03:15:50]dirname=/storage/ofd_packets [03:15:50]CheckFolder done [03:15:50]ProducePacketName [03:15:50]name=ofd_packets/00028807 [03:15:50]NVStorageSaveData ofd_packets/00028807 [03:15:50]File name is /storage/ofd_packets/00028807 [03:15:50]Write 302 bytes [03:15:50]NVStorageSaveData done [03:15:50]OFDSenderStorePacket done [03:15:50]KKMCreateOFDPacket done [03:15:50]NVStorageSaveData kkm_last_timestamp [03:15:50]File name is /storage/kkm_last_timestamp [03:15:50]Write 4 bytes [03:15:50]NVStorageSaveData done [03:15:50]ExternCall_PrintAddStr [03:15:50]wPrintStart [03:15:50]Write to MH i2c: 01 00 00 37 1A 51 [03:15:50]Write i2c OK [03:15:50]MH_I2C_Read... [03:15:50]Read from MH i2c: 01 [03:15:50]MH_I2C_Read... [03:15:50]Read from MH i2c: 01 07 00 [03:15:50]MH_I2C_Read... [03:15:50]Read from MH i2c: 01 07 00 37 1A 00 00 00 00 00 FF 0F 66 [03:15:50]RasterBufferAndPrint [03:15:50]line Счет N : (1)347153 [03:15:50]line ИНН: 02508201610067 [03:15:50]line Контрольно-Кассовый Чек [03:15:50]line ПРОДАЖА [03:15:50]line ТРК (МРК, ГНК) : 41 [03:15:50]line Товар: 2710124130 [03:15:50]line SUPER-92-К-5 [03:15:50]line 3.070 * 65.30 [03:15:50]line = 200.47 [03:15:50]line НДС 12% НСП 1% [03:15:50]line > о реализуемом товаре [03:15:50]line ИТОГО: 200.47 [03:15:50]line НСП 1% : 1.77 [03:15:50]line НДС 12% : 21.29 [03:15:50]line Наличными: 0.00 [03:15:50]line Безнал.: 200.47 [03:15:50]line Место: АЗС № 108 "Партнер Нефть" [03:15:50]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [03:15:50]line СНО: Общий режим [03:15:50]line Чек 14 13.04.2024 03:15 [03:15:50]line Смена: 115 ФФД: 1.0 [03:15:50]line ЗНМ: 0300000027 [03:15:50]line РНМ: 0000138879044617 [03:15:50]line Версия ККМ: 001 [03:15:50]line Платежная система: АКБ Кыргызстан [03:15:50]line ФМ: 0000000000963154 [03:15:50]line ФД: 28807 [03:15:50]line ФПД: 78493209441623 [03:15:50]line 1/tax-web-control/client/api/v1/ticket?date=20240413T031551&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28807&fm=78493209441623&tin=02508201610067®Number=0000138879044617&sum=20047 [03:15:50]OFD Sender: Processing packet 28807 [packets to send 8, broken 7] [03:15:50]ProducePacketName [03:15:50]name=ofd_packets/00028807 [03:15:50]OFD Sender: To server: pG, [03:15:50]CommunicateWithHost lk.salyk.kg:30040 [03:15:50]ConnectInit lk.salyk.kg [03:15:50]written 0, free lines is 4095 [03:15:51]Connected sock=10 [03:15: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 31 35 34 10 01 00 00 56 C4 08 01 D5 69 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4F 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 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 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 E7 F8 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 87 70 00 00 35 04 06 00 47 63 9F DD B5 57 F0 20 E1 24 14 08 4A D6 [03:15:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 03 A5 47 00 A9 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 31 35 34 10 04 04 00 87 70 00 00 F4 03 04 00 8F A3 19 66 B6 04 01 00 00 B2 36 D5 A0 8C 60 24 60 [03:15:51]CommunicateWithHost err = 0 [03:15:51]CheckOFDResponse [03:15:51]1017 (14) - 77093643461234 [03:15:51]1041 (16) - 0000000000963154 [03:15:51]1040 (4) - 28807 [03:15:51]1012 (4) - 12.04.2024 21:11 [03:15:51]1206 (1) - 0 [03:15:51]OFD Sender: Remove packet 28807 [03:15:51]ProducePacketName [03:15:51]name=ofd_packets/00028807 [03:15:51]NVStorageDeleteData [03:15:51]Write to MH i2c: 01 00 00 60 1A 7A [03:15:51]Write i2c OK [03:15:51]MH_I2C_Read... [03:15:51]Read from MH i2c: 01 [03:15:51]MH_I2C_Read... [03:15:51]Read from MH i2c: 01 07 00 [03:15:51]MH_I2C_Read... [03:15:51]Read from MH i2c: 01 07 00 60 1A 00 00 00 00 00 D2 0C 5F [03:15:51]RasterBufferAndPrint [03:15:51]line [03:15:51]line [03:15:51]line [03:15:51]line [03:15:51]line [03:15:51]written 0, free lines is 3287 [03:15:51]MH_Cut [03:15:51]Write to MH i2c: D1 01 00 67 1A 01 53 [03:15:51]Write i2c OK [03:15:51]MH_I2C_Read... [03:15:51]Read from MH i2c: D1 [03:15:51]MH_I2C_Read... [03:15:51]Read from MH i2c: D1 01 00 [03:15:51]MH_I2C_Read... [03:15:51]Read from MH i2c: D1 01 00 67 1A 00 52 [03:15:51]Write to MH i2c: 01 00 00 68 1A 82 [03:15:51]Write i2c OK [03:15:51]MH_I2C_Read... [03:15:51]OFD Sender: No OFD packet to send [03:15:52]*** Cut start [03:15:52]*** Partial cut [03:15:52]*** CUTSNS_PIN = 1 [03:15:52]*** CUTSNS_PIN = 0 [03:15:52]*** Brake cut motor [03:15:52]Read from MH i2c: 01 [03:15:52]MH_I2C_Read... [03:15:52]*** Stop cut motor [03:15:52]*** Cut end [03:15:52]Read from MH i2c: 01 07 00 [03:15:52]MH_I2C_Read... [03:15:52]Read from MH i2c: 01 07 00 68 1A 00 00 00 00 00 FF 0F 97 [03:15:52]process_action close_receipt done [03:15:52]requested_data is exist [03:15:52]produce_requested_data [03:15:52]requested_item fm.sn is exist - process it [03:15:52]wFMCommunicate request_size=4 [03:15:52]MH_SAM_APDU [03:15:52]CAPDU: 80 11 00 00 [03:15:52]Write to MH i2c: E2 08 00 69 1A 80 11 00 00 00 00 00 00 FD [03:15:52]Write i2c OK [03:15:52]MH_I2C_Read... [03:15:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:15:52]Read from MH i2c: E2 [03:15:52]MH_I2C_Read... [03:15:52]Read from MH i2c: E2 17 00 [03:15:52]MH_I2C_Read... [03:15:52]Read from MH i2c: E2 17 00 69 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4C [03:15:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [03:15:52]wFMCommunicate OK [03:15:52]requested_item fd.num is exist - process it [03:15:52]SAM_PROTO_GetFieldsCounters [03:15:52]wFMCommunicate request_size=4 [03:15:52]MH_SAM_APDU [03:15:52]CAPDU: 80 13 00 00 [03:15:52]Write to MH i2c: E2 08 00 6A 1A 80 13 00 00 00 00 00 00 00 [03:15:52]Write i2c OK [03:15:52]MH_I2C_Read... [03:15:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:15:53]Read from MH i2c: E2 [03:15:53]MH_I2C_Read... [03:15:53]Read from MH i2c: E2 62 00 [03:15:53]MH_I2C_Read... [03:15:53]Read from MH i2c: E2 62 00 6A 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 87 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [03:15: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 87 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:15:53]wFMCommunicate OK [03:15:53]SAM_PROTO_GetFieldsCounters done [03:15:53]requested_item shift.num is exist - process it [03:15:53]requested_item shift.opened is exist - process it [03:15:53]req_shift_opened [03:15:53]FM_GetShiftState [03:15:53]SAM_PROTO_GetShiftState [03:15:53]wFMCommunicate request_size=4 [03:15:53]MH_SAM_APDU [03:15:53]CAPDU: 80 13 01 00 [03:15:53]Write to MH i2c: E2 08 00 6B 1A 80 13 01 00 00 00 00 00 02 [03:15:53]Write i2c OK [03:15:53]MH_I2C_Read... [03:15:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:15:53]Read from MH i2c: E2 [03:15:53]MH_I2C_Read... [03:15:53]Read from MH i2c: E2 0E 00 [03:15:53]MH_I2C_Read... [03:15:53]Read from MH i2c: E2 0E 00 6B 1A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 1B [03:15:53]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [03:15:53]wFMCommunicate OK [03:15:53]SAM_PROTO_GetShiftState done [03:15:53]FM_GetShiftState done [03:15:53]req_shift_opened done [03:15:53]requested_item shift.open_date is exist - process it [03:15:53]req_shift_open_date [03:15:53]req_shift_open_date done [03:15:53]produce_requested_data done [03:15:53]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28807,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [03:15:53]process_action_free close_receipt [03:15:53]json_value_free [03:15:53]json_value_free done [03:15:53]process_json_proto returns [03:15:53]Send response to host [03:15:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28807,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [03:15:53]free response buf [03:15:53]execute_script done [03:15:53]execute_script returns [03:15:53]free content buf [03:15:53]Sock 9.Close socket [03:15:53]Sock 9.Thread stoped [03:15:56]OFD Sender: No OFD packet to send [03:16:01]OFD Sender: No OFD packet to send [03:16:06]OFD Sender: No OFD packet to send [03:16:11]OFD Sender: No OFD packet to send [03:16:16]OFD Sender: No OFD packet to send [03:16:21]OFD Sender: No OFD packet to send [03:16:26]OFD Sender: No OFD packet to send [03:16:31]OFD Sender: No OFD packet to send [03:16:36]OFD Sender: No OFD packet to send [03:16:41]OFD Sender: No OFD packet to send [03:16:46]OFD Sender: No OFD packet to send [03:16:51]OFD Sender: No OFD packet to send [03:16:56]OFD Sender: No OFD packet to send [03:17:01]OFD Sender: No OFD packet to send [03:17:06]OFD Sender: No OFD packet to send [03:17:11]OFD Sender: No OFD packet to send [03:17:16]OFD Sender: No OFD packet to send [03:17:21]OFD Sender: No OFD packet to send [03:17:26]OFD Sender: No OFD packet to send [03:17:31]OFD Sender: No OFD packet to send [03:17:36]OFD Sender: No OFD packet to send [03:17:41]OFD Sender: No OFD packet to send [03:17:46]OFD Sender: No OFD packet to send [03:17:51]OFD Sender: No OFD packet to send [03:17:56]OFD Sender: No OFD packet to send [03:18:01]OFD Sender: No OFD packet to send [03:18:06]OFD Sender: No OFD packet to send [03:18:11]OFD Sender: No OFD packet to send [03:18:16]OFD Sender: No OFD packet to send [03:18:21]OFD Sender: No OFD packet to send [03:18:26]OFD Sender: No OFD packet to send [03:18:31]OFD Sender: No OFD packet to send [03:18:36]OFD Sender: No OFD packet to send [03:18:41]OFD Sender: No OFD packet to send [03:18:46]OFD Sender: No OFD packet to send [03:18:51]OFD Sender: No OFD packet to send [03:18:56]OFD Sender: No OFD packet to send [03:19:01]OFD Sender: No OFD packet to send [03:19:06]OFD Sender: No OFD packet to send [03:19:11]OFD Sender: No OFD packet to send [03:19:16]OFD Sender: No OFD packet to send [03:19:21]OFD Sender: No OFD packet to send [03:19:26]OFD Sender: No OFD packet to send [03:19:31]OFD Sender: No OFD packet to send [03:19:36]OFD Sender: No OFD packet to send [03:19:41]OFD Sender: No OFD packet to send [03:19:46]OFD Sender: No OFD packet to send [03:19:51]OFD Sender: No OFD packet to send [03:19:56]OFD Sender: No OFD packet to send [03:20:01]OFD Sender: No OFD packet to send [03:20:06]OFD Sender: No OFD packet to send [03:20:12]OFD Sender: No OFD packet to send [03:20:17]OFD Sender: No OFD packet to send [03:20:22]OFD Sender: No OFD packet to send [03:20:27]OFD Sender: No OFD packet to send [03:20:32]OFD Sender: No OFD packet to send [03:20:37]OFD Sender: No OFD packet to send [03:20:42]OFD Sender: No OFD packet to send [03:20:47]OFD Sender: No OFD packet to send [03:20:52]OFD Sender: No OFD packet to send [03:20:57]OFD Sender: No OFD packet to send [03:21:02]OFD Sender: No OFD packet to send [03:21:07]OFD Sender: No OFD packet to send [03:21:12]OFD Sender: No OFD packet to send [03:21:17]OFD Sender: No OFD packet to send [03:21:22]OFD Sender: No OFD packet to send [03:21:27]OFD Sender: No OFD packet to send [03:21:32]OFD Sender: No OFD packet to send [03:21:37]OFD Sender: No OFD packet to send [03:21:42]OFD Sender: No OFD packet to send [03:21:47]OFD Sender: No OFD packet to send [03:21:52]OFD Sender: No OFD packet to send [03:21:57]OFD Sender: No OFD packet to send [03:22:02]OFD Sender: No OFD packet to send [03:22:07]OFD Sender: No OFD packet to send [03:22:12]OFD Sender: No OFD packet to send [03:22:17]OFD Sender: No OFD packet to send [03:22:22]OFD Sender: No OFD packet to send [03:22:27]OFD Sender: No OFD packet to send [03:22:32]OFD Sender: No OFD packet to send [03:22:37]OFD Sender: No OFD packet to send [03:22:42]OFD Sender: No OFD packet to send [03:22:47]OFD Sender: No OFD packet to send [03:22:52]OFD Sender: No OFD packet to send [03:22:57]OFD Sender: No OFD packet to send [03:23:02]OFD Sender: No OFD packet to send [03:23:07]OFD Sender: No OFD packet to send [03:23:12]OFD Sender: No OFD packet to send [03:23:17]OFD Sender: No OFD packet to send [03:23:22]OFD Sender: No OFD packet to send [03:23:27]OFD Sender: No OFD packet to send [03:23:32]OFD Sender: No OFD packet to send [03:23:37]OFD Sender: No OFD packet to send [03:23:42]OFD Sender: No OFD packet to send [03:23:47]OFD Sender: No OFD packet to send [03:23:52]OFD Sender: No OFD packet to send [03:23:57]OFD Sender: No OFD packet to send [03:24:02]OFD Sender: No OFD packet to send [03:24:07]OFD Sender: No OFD packet to send [03:24:12]OFD Sender: No OFD packet to send [03:24:17]OFD Sender: No OFD packet to send [03:24:22]OFD Sender: No OFD packet to send [03:24:27]OFD Sender: No OFD packet to send [03:24:32]OFD Sender: No OFD packet to send [03:24:37]OFD Sender: No OFD packet to send [03:24:42]OFD Sender: No OFD packet to send [03:24:47]OFD Sender: No OFD packet to send [03:24:52]OFD Sender: No OFD packet to send [03:24:57]OFD Sender: No OFD packet to send [03:25:02]OFD Sender: No OFD packet to send [03:25:07]OFD Sender: No OFD packet to send [03:25:12]OFD Sender: No OFD packet to send [03:25:17]OFD Sender: No OFD packet to send [03:25:22]OFD Sender: No OFD packet to send [03:25:27]OFD Sender: No OFD packet to send [03:25:32]OFD Sender: No OFD packet to send [03:25:37]OFD Sender: No OFD packet to send [03:25:42]OFD Sender: No OFD packet to send [03:25:47]OFD Sender: No OFD packet to send [03:25:52]OFD Sender: No OFD packet to send [03:25:57]OFD Sender: No OFD packet to send [03:26:02]OFD Sender: No OFD packet to send [03:26:07]OFD Sender: No OFD packet to send [03:26:12]OFD Sender: No OFD packet to send [03:26:17]OFD Sender: No OFD packet to send [03:26:22]OFD Sender: No OFD packet to send [03:26:27]OFD Sender: No OFD packet to send [03:26:32]OFD Sender: No OFD packet to send [03:26:37]OFD Sender: No OFD packet to send [03:26:42]OFD Sender: No OFD packet to send [03:26:47]OFD Sender: No OFD packet to send [03:26:52]OFD Sender: No OFD packet to send [03:26:57]OFD Sender: No OFD packet to send [03:27:02]OFD Sender: No OFD packet to send [03:27:07]OFD Sender: No OFD packet to send [03:27:12]OFD Sender: No OFD packet to send [03:27:17]OFD Sender: No OFD packet to send [03:27:22]OFD Sender: No OFD packet to send [03:27:27]OFD Sender: No OFD packet to send [03:27:32]OFD Sender: No OFD packet to send [03:27:37]OFD Sender: No OFD packet to send [03:27:42]OFD Sender: No OFD packet to send [03:27:47]OFD Sender: No OFD packet to send [03:27:52]OFD Sender: No OFD packet to send [03:27:57]OFD Sender: No OFD packet to send [03:28:02]OFD Sender: No OFD packet to send [03:28:07]OFD Sender: No OFD packet to send [03:28:12]OFD Sender: No OFD packet to send [03:28:17]OFD Sender: No OFD packet to send [03:28:22]OFD Sender: No OFD packet to send [03:28:27]OFD Sender: No OFD packet to send [03:28:32]OFD Sender: No OFD packet to send [03:28:37]OFD Sender: No OFD packet to send [03:28:42]OFD Sender: No OFD packet to send [03:28:47]OFD Sender: No OFD packet to send [03:28:52]OFD Sender: No OFD packet to send [03:28:57]OFD Sender: No OFD packet to send [03:29:02]OFD Sender: No OFD packet to send [03:29:07]OFD Sender: No OFD packet to send [03:29:12]OFD Sender: No OFD packet to send [03:29:17]OFD Sender: No OFD packet to send [03:29:22]OFD Sender: No OFD packet to send [03:29:27]OFD Sender: No OFD packet to send [03:29:32]OFD Sender: No OFD packet to send [03:29:37]OFD Sender: No OFD packet to send [03:29:42]OFD Sender: No OFD packet to send [03:29:47]OFD Sender: No OFD packet to send [03:29:52]OFD Sender: No OFD packet to send [03:29:57]OFD Sender: No OFD packet to send [03:30:02]OFD Sender: No OFD packet to send [03:30:07]OFD Sender: No OFD packet to send [03:30:12]OFD Sender: No OFD packet to send [03:30:17]OFD Sender: No OFD packet to send [03:30:22]OFD Sender: No OFD packet to send [03:30:27]OFD Sender: No OFD packet to send [03:30:32]OFD Sender: No OFD packet to send [03:30:37]OFD Sender: No OFD packet to send [03:30:42]OFD Sender: No OFD packet to send [03:30:47]OFD Sender: No OFD packet to send [03:30:52]OFD Sender: No OFD packet to send [03:30:57]OFD Sender: No OFD packet to send [03:31:02]OFD Sender: No OFD packet to send [03:31:07]OFD Sender: No OFD packet to send [03:31:12]OFD Sender: No OFD packet to send [03:31:17]OFD Sender: No OFD packet to send [03:31:22]OFD Sender: No OFD packet to send [03:31:27]OFD Sender: No OFD packet to send [03:31:32]OFD Sender: No OFD packet to send [03:31:37]OFD Sender: No OFD packet to send [03:31:42]OFD Sender: No OFD packet to send [03:31:47]OFD Sender: No OFD packet to send [03:31:52]OFD Sender: No OFD packet to send [03:31:57]OFD Sender: No OFD packet to send [03:32:02]OFD Sender: No OFD packet to send [03:32:07]OFD Sender: No OFD packet to send [03:32:12]OFD Sender: No OFD packet to send [03:32:17]OFD Sender: No OFD packet to send [03:32:22]OFD Sender: No OFD packet to send [03:32:27]OFD Sender: No OFD packet to send [03:32:32]OFD Sender: No OFD packet to send [03:32:37]OFD Sender: No OFD packet to send [03:32:42]OFD Sender: No OFD packet to send [03:32:47]OFD Sender: No OFD packet to send [03:32:52]OFD Sender: No OFD packet to send [03:32:57]OFD Sender: No OFD packet to send [03:33:02]OFD Sender: No OFD packet to send [03:33:07]OFD Sender: No OFD packet to send [03:33:12]OFD Sender: No OFD packet to send [03:33:17]OFD Sender: No OFD packet to send [03:33:22]OFD Sender: No OFD packet to send [03:33:27]OFD Sender: No OFD packet to send [03:33:32]OFD Sender: No OFD packet to send [03:33:37]OFD Sender: No OFD packet to send [03:33:42]OFD Sender: No OFD packet to send [03:33:47]OFD Sender: No OFD packet to send [03:33:52]OFD Sender: No OFD packet to send [03:33:57]OFD Sender: No OFD packet to send [03:34:02]OFD Sender: No OFD packet to send [03:34:07]OFD Sender: No OFD packet to send [03:34:12]OFD Sender: No OFD packet to send [03:34:17]OFD Sender: No OFD packet to send [03:34:22]OFD Sender: No OFD packet to send [03:34:27]OFD Sender: No OFD packet to send [03:34:32]OFD Sender: No OFD packet to send [03:34:37]OFD Sender: No OFD packet to send [03:34:42]OFD Sender: No OFD packet to send [03:34:47]OFD Sender: No OFD packet to send [03:34:52]OFD Sender: No OFD packet to send [03:34:57]OFD Sender: No OFD packet to send [03:35:02]OFD Sender: No OFD packet to send [03:35:07]OFD Sender: No OFD packet to send [03:35:12]OFD Sender: No OFD packet to send [03:35:17]OFD Sender: No OFD packet to send [03:35:22]OFD Sender: No OFD packet to send [03:35:27]OFD Sender: No OFD packet to send [03:35:32]OFD Sender: No OFD packet to send [03:35:37]OFD Sender: No OFD packet to send [03:35:42]OFD Sender: No OFD packet to send [03:35:47]OFD Sender: No OFD packet to send [03:35:52]OFD Sender: No OFD packet to send [03:35:57]OFD Sender: No OFD packet to send [03:36:02]OFD Sender: No OFD packet to send [03:36:07]OFD Sender: No OFD packet to send [03:36:12]OFD Sender: No OFD packet to send [03:36:17]OFD Sender: No OFD packet to send [03:36:22]OFD Sender: No OFD packet to send [03:36:27]OFD Sender: No OFD packet to send [03:36:32]OFD Sender: No OFD packet to send [03:36:37]OFD Sender: No OFD packet to send [03:36:42]OFD Sender: No OFD packet to send [03:36:47]OFD Sender: No OFD packet to send [03:36:52]OFD Sender: No OFD packet to send [03:36:57]OFD Sender: No OFD packet to send [03:37:02]OFD Sender: No OFD packet to send [03:37:07]OFD Sender: No OFD packet to send [03:37:12]OFD Sender: No OFD packet to send [03:37:17]OFD Sender: No OFD packet to send [03:37:22]OFD Sender: No OFD packet to send [03:37:27]OFD Sender: No OFD packet to send [03:37:32]OFD Sender: No OFD packet to send [03:37:37]OFD Sender: No OFD packet to send [03:37:42]OFD Sender: No OFD packet to send [03:37:47]OFD Sender: No OFD packet to send [03:37:52]OFD Sender: No OFD packet to send [03:37:57]OFD Sender: No OFD packet to send [03:38:02]OFD Sender: No OFD packet to send [03:38:07]OFD Sender: No OFD packet to send [03:38:12]OFD Sender: No OFD packet to send [03:38:17]OFD Sender: No OFD packet to send [03:38:22]OFD Sender: No OFD packet to send [03:38:27]OFD Sender: No OFD packet to send [03:38:32]OFD Sender: No OFD packet to send [03:38:37]OFD Sender: No OFD packet to send [03:38:42]OFD Sender: No OFD packet to send [03:38:47]OFD Sender: No OFD packet to send [03:38:52]OFD Sender: No OFD packet to send [03:38:57]OFD Sender: No OFD packet to send [03:39:02]OFD Sender: No OFD packet to send [03:39:07]OFD Sender: No OFD packet to send [03:39:12]OFD Sender: No OFD packet to send [03:39:17]OFD Sender: No OFD packet to send [03:39:19]accept exits with 7 [03:39:19]New connection [03:39:19]New thread 3066785124 created [03:39:19]Thread 3066928484 joined [03:39:19]Waiting for new connection... [03:39:19] Sock 7.Parse request [03:39:19]Sock 7.Check first char [03:39:19]Sock 7.First char is OK [03:39:19]request: POST /json_proto HTTP/1.0 [03:39:19]Method: POST [03:39:19]URL: /json_proto [03:39:19]Method is POST - this is cgi request [03:39:19]url: /json_proto [03:39:19]query_string will be loaded in cgi processing [03:39:19]execute_cgi json_proto POST (null) [03:39:19]execute_cgi path=json_proto method=POST [03:39:19]POST find Content-Length [03:39:19]Host: 172.17.33.3:8080 [03:39:19]Content-Length: 670 [03:39:19]Content-Type: application/json [03:39:19] [03:39:19]POST finish read [03:39:19]Found Content-Length = 670 [03:39:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "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" ] } } [03:39:19]execute_script... [03: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)347154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "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" ] } } [03:39:19]POST & json_proto [03:39:19]process_json_proto [03:39:19]json parsed OK: [03:39:19]protocol is kg_v1.0 [03:39:19]action value=close_receipt [03:39:19]process_action close_receipt [03:39:19]cmd_close_receipt [03:39:19]MH_GetDate [03:39:19]Write to MH i2c: F0 00 00 6C 1A 75 [03:39:19]Write i2c OK [03:39:19]MH_I2C_Read... [03:39:19]Read from MH i2c: F0 [03:39:19]MH_I2C_Read... [03:39:19]Read from MH i2c: F0 09 00 [03:39:19]MH_I2C_Read... [03:39:19]Read from MH i2c: F0 09 00 6C 1A 00 6A FE 19 66 23 5B 8F 65 D7 [03:39:19]GetLastDocTimeStamp 1712978151 [03:39:19]current date 1712979562 [03:39:19]FM_GetShiftState [03:39:19]SAM_PROTO_GetShiftState [03:39:19]wFMCommunicate request_size=4 [03:39:19]MH_SAM_APDU [03:39:19]CAPDU: 80 13 01 00 [03:39:19]Write to MH i2c: E2 08 00 6D 1A 80 13 01 00 00 00 00 00 04 [03:39:19]Write i2c OK [03:39:19]MH_I2C_Read... [03:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:39:19]Read from MH i2c: E2 [03:39:19]MH_I2C_Read... [03:39:19]Read from MH i2c: E2 0E 00 [03:39:19]MH_I2C_Read... [03:39:19]Read from MH i2c: E2 0E 00 6D 1A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 1D [03:39:19]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [03:39:19]wFMCommunicate OK [03:39:19]SAM_PROTO_GetShiftState done [03:39:19]FM_GetShiftState done [03:39:19]opened in 1712967615 [03:39:19]opened+sec_in_day 1713054015 [03:39:19]quantity*price = 50019 [03:39:19]sum+1 = 50021 [03:39:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 15 13.04.2024 03:39 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28808 ФПД: 72109301174231 1/tax-web-control/client/api/v1/ticket?date=20240413T033922&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28808&fm=72109301174231&tin=02508201610067®Number=0000138879044617&sum=50000 [03:39:20]StoreToDocumentArchive [03:39:20]shift 115 fd 28808 [03:39:20]save to /storage/0115/doc_00028808 [03:39:20]save last doc name /storage/0115/doc_00028808 to /storage/kkm_last_doc_name [03:39:20]save OK [03:39:20]Clear old archive folders... [03:39:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [03:39:20]tlvbuf is B6EBB650 [03:39:20]SAM_PROTO_ClearQueue [03:39:20]wFMCommunicate request_size=4 [03:39:20]MH_SAM_APDU [03:39:20]CAPDU: 80 09 00 00 [03:39:20]Write to MH i2c: E2 08 00 7A 1A 80 09 00 00 00 00 00 00 06 [03:39:20]Write i2c OK [03:39:20]MH_I2C_Read... [03:39:20]Read from MH i2c: E2 [03:39:20]MH_I2C_Read... [03:39:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:39:20]Read from MH i2c: E2 03 00 [03:39:20]MH_I2C_Read... [03:39:20]Read from MH i2c: E2 03 00 7A 1A 00 90 00 08 [03:39:20]RAPDU: 90 00 [03:39:20]wFMCommunicate OK [03:39:20]SAM_PROTO_ClearQueue done [03:39:20]KKMCreateOFDPacket [03:39:20]OFDProtocolAddRootSTLVToBuf [03:39:20]FM_MakeSignedData [03:39:20]FM_MakeSignedData [03:39:20]SAM_PROTO_SignData [03:39:20]wFMCommunicate request_size=4 [03:39:20]MH_SAM_APDU [03:39:20]CAPDU: 80 0D 01 02 [03:39:20]Write to MH i2c: E2 08 00 7B 1A 80 0D 01 02 00 00 00 00 0E [03:39:20]Write i2c OK [03:39:20]MH_I2C_Read... [03:39:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:39:21]Read from MH i2c: E2 [03:39:21]MH_I2C_Read... [03:39:21]Read from MH i2c: E2 03 00 [03:39:21]MH_I2C_Read... [03:39:21]Read from MH i2c: E2 03 00 7B 1A 00 90 00 09 [03:39:21]RAPDU: 90 00 [03:39:21]wFMCommunicate OK [03:39:21]wFMCommunicate request_size=255 [03:39:21]MH_SAM_APDU [03:39:21]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0F 00 00 00 F4 03 04 00 6A FE 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 88 70 00 00 35 04 06 00 [03:39:21]Write to MH i2c: E2 02 01 7C 1A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0F 00 00 00 F4 03 04 00 6A FE 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 88 70 00 00 35 04 06 00 00 00 C1 [03:39:21]Write i2c OK [03:39:21]MH_I2C_Read... [03:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:39:21]Read from MH i2c: E2 [03:39:21]MH_I2C_Read... [03:39:21]Read from MH i2c: E2 03 00 [03:39:21]MH_I2C_Read... [03:39:21]Read from MH i2c: E2 03 00 7C 1A 00 90 00 0A [03:39:21]RAPDU: 90 00 [03:39:21]wFMCommunicate OK [03:39:21]wFMCommunicate request_size=11 [03:39:21]MH_SAM_APDU [03:39:21]CAPDU: 80 0D 02 02 06 41 95 41 48 0F D7 [03:39:21]Write to MH i2c: E2 0E 00 7D 1A 80 0D 02 02 06 00 41 95 41 48 0F D7 00 00 62 [03:39:21]Write i2c OK [03:39:21]MH_I2C_Read... [03:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:39:21]Read from MH i2c: E2 [03:39:21]MH_I2C_Read... [03:39:21]Read from MH i2c: E2 03 00 [03:39:21]MH_I2C_Read... [03:39:21]Read from MH i2c: E2 03 00 7D 1A 00 90 00 0B [03:39:21]RAPDU: 90 00 [03:39:21]wFMCommunicate OK [03:39:21]wFMCommunicate request_size=4 [03:39:21]MH_SAM_APDU [03:39:21]CAPDU: 80 0D 03 02 [03:39:21]Write to MH i2c: E2 08 00 7E 1A 80 0D 03 02 00 00 00 00 13 [03:39:21]Write i2c OK [03:39:21]MH_I2C_Read... [03:39:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:39:21]Read from MH i2c: E2 [03:39:21]MH_I2C_Read... [03:39:21]Read from MH i2c: E2 0B 00 [03:39:21]MH_I2C_Read... [03:39:21]Read from MH i2c: E2 0B 00 7E 1A 00 14 1A 7F AB E2 45 C9 BD 90 00 19 [03:39:21]RAPDU: 14 1A 7F AB E2 45 C9 BD 90 00 [03:39:21]wFMCommunicate OK [03:39:21]SAM_PROTO_SignData done [03:39:21]FM_MakeSignedData done [03:39:21]CreateOFDProtocolMessage [03:39:21]wFMCommunicate request_size=4 [03:39:21]MH_SAM_APDU [03:39:21]CAPDU: 80 11 00 00 [03:39:21]Write to MH i2c: E2 08 00 7F 1A 80 11 00 00 00 00 00 00 13 [03:39:21]Write i2c OK [03:39:21]MH_I2C_Read... [03:39:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:39:21]Read from MH i2c: E2 [03:39:21]MH_I2C_Read... [03:39:21]Read from MH i2c: E2 17 00 [03:39:21]MH_I2C_Read... [03:39:21]Read from MH i2c: E2 17 00 7F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 62 [03:39:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [03:39:21]wFMCommunicate OK [03:39:21]CreateOFDProtocolMessage done [03:39:21]OFDSenderStorePacket 28808 [03:39:21]StoreOFDPacket docnum=28808 [03:39:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 7C AA 08 01 E5 23 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0F 00 00 00 F4 03 04 00 6A FE 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 88 70 00 00 35 04 06 00 41 95 41 48 0F D7 14 1A 7F AB E2 45 C9 BD [03:39:21]CheckFolder [03:39:21]dirname=/storage/ofd_packets [03:39:21]CheckFolder done [03:39:21]ProducePacketName [03:39:21]name=ofd_packets/00028808 [03:39:21]NVStorageSaveData ofd_packets/00028808 [03:39:21]File name is /storage/ofd_packets/00028808 [03:39:21]Write 302 bytes [03:39:21]NVStorageSaveData done [03:39:21]OFDSenderStorePacket done [03:39:21]KKMCreateOFDPacket done [03:39:21]NVStorageSaveData kkm_last_timestamp [03:39:21]File name is /storage/kkm_last_timestamp [03:39:21]Write 4 bytes [03:39:21]NVStorageSaveData done [03:39:21]ExternCall_PrintAddStr [03:39:21]wPrintStart [03:39:21]Write to MH i2c: 01 00 00 80 1A 9A [03:39:21]Write i2c OK [03:39:21]MH_I2C_Read... [03:39:21]Read from MH i2c: 01 [03:39:21]MH_I2C_Read... [03:39:21]Read from MH i2c: 01 07 00 [03:39:21]MH_I2C_Read... [03:39:21]Read from MH i2c: 01 07 00 80 1A 00 00 00 00 00 FF 0F AF [03:39:21]RasterBufferAndPrint [03:39:21]line Счет N : (1)347154 [03:39:21]line ИНН: 02508201610067 [03:39:21]line Контрольно-Кассовый Чек [03:39:21]line ПРОДАЖА [03:39:21]line ТРК (МРК, ГНК) : 22 [03:39:21]line Товар: 2710124130 [03:39:21]line SUPER-92-К-5 [03:39:21]line 7.660 * 65.30 [03:39:21]line = 500.20 [03:39:21]line НДС 12% НСП 1% [03:39:21]line > о реализуемом товаре [03:39:21]line ОКРУГЛЕНИЕ: -0.20 [03:39:21]line ИТОГО: 500.00 [03:39:21]line Внесено: 500.00 [03:39:21]line СДАЧА: 0.00 [03:39:21]line НСП 1% : 4.43 [03:39:21]line НДС 12% : 53.12 [03:39:21]line Наличными: 500.00 [03:39:21]line Безнал.: 0.00 [03:39:21]line Место: АЗС № 108 "Партнер Нефть" [03:39:21]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [03:39:21]line СНО: Общий режим [03:39:21]line Чек 15 13.04.2024 03:39 [03:39:21]line Смена: 115 ФФД: 1.0 [03:39:21]line ЗНМ: 0300000027 [03:39:21]line РНМ: 0000138879044617 [03:39:21]line Версия ККМ: 001 [03:39:21]line ФМ: 0000000000963154 [03:39:21]line ФД: 28808 [03:39:21]line ФПД: 72109301174231 [03:39:21]line 1/tax-web-control/client/api/v1/ticket?date=20240413T033922&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28808&fm=72109301174231&tin=02508201610067®Number=0000138879044617&sum=50000 [03:39:21]written 0, free lines is 4095 [03:39:21]OFD Sender: Processing packet 28808 [packets to send 8, broken 7] [03:39:21]ProducePacketName [03:39:21]name=ofd_packets/00028808 [03:39:21]OFD Sender: To server: pG, [03:39:21]CommunicateWithHost lk.salyk.kg:30040 [03:39:21]ConnectInit lk.salyk.kg [03:39:21]Connected sock=10 [03: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 31 35 34 10 01 00 00 7C AA 08 01 E5 23 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0F 00 00 00 F4 03 04 00 6A FE 19 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 88 70 00 00 35 04 06 00 41 95 41 48 0F D7 14 1A 7F AB E2 45 C9 BD [03: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 31 35 34 4F 00 00 00 3F C9 47 00 86 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 31 35 34 10 04 04 00 88 70 00 00 F4 03 04 00 12 A9 19 66 B6 04 01 00 00 A8 37 91 18 A8 04 09 F3 [03:39:21]CommunicateWithHost err = 0 [03:39:21]CheckOFDResponse [03:39:21]1017 (14) - 77093643461234 [03:39:21]1041 (16) - 0000000000963154 [03:39:21]1040 (4) - 28808 [03:39:21]1012 (4) - 12.04.2024 21:35 [03:39:21]1206 (1) - 0 [03:39:21]OFD Sender: Remove packet 28808 [03:39:21]ProducePacketName [03:39:21]name=ofd_packets/00028808 [03:39:21]NVStorageDeleteData [03:39:21]Write to MH i2c: 01 00 00 AA 1A C4 [03:39:21]Write i2c OK [03:39:21]MH_I2C_Read... [03:39:21]Read from MH i2c: 01 [03:39:21]MH_I2C_Read... [03:39:21]Read from MH i2c: 01 07 00 [03:39:21]MH_I2C_Read... [03:39:21]Read from MH i2c: 01 07 00 AA 1A 00 00 00 00 00 C6 0C 9D [03:39:21]RasterBufferAndPrint [03:39:21]line [03:39:21]line [03:39:21]line [03:39:21]line [03:39:21]line [03:39:21]written 0, free lines is 3274 [03:39:21]MH_Cut [03:39:21]Write to MH i2c: D1 01 00 B1 1A 01 9D [03:39:21]Write i2c OK [03:39:21]MH_I2C_Read... [03:39:21]Read from MH i2c: D1 [03:39:21]MH_I2C_Read... [03:39:21]Read from MH i2c: D1 01 00 [03:39:21]MH_I2C_Read... [03:39:21]Read from MH i2c: D1 01 00 B1 1A 00 9C [03:39:21]Write to MH i2c: 01 00 00 B2 1A CC [03:39:21]Write i2c OK [03:39:21]MH_I2C_Read... [03:39:22]OFD Sender: No OFD packet to send [03:39:22]*** Cut start [03:39:22]*** Partial cut [03:39:22]*** CUTSNS_PIN = 1 [03:39:22]*** CUTSNS_PIN = 0 [03:39:23]*** Brake cut motor [03:39:23]Read from MH i2c: 01 [03:39:23]MH_I2C_Read... [03:39:23]*** Stop cut motor [03:39:23]*** Cut end [03:39:23]Read from MH i2c: 01 07 00 [03:39:23]MH_I2C_Read... [03:39:23]Read from MH i2c: 01 07 00 B2 1A 00 00 00 00 00 FF 0F E1 [03:39:23]process_action close_receipt done [03:39:23]requested_data is exist [03:39:23]produce_requested_data [03:39:23]requested_item fm.sn is exist - process it [03:39:23]wFMCommunicate request_size=4 [03:39:23]MH_SAM_APDU [03:39:23]CAPDU: 80 11 00 00 [03:39:23]Write to MH i2c: E2 08 00 B3 1A 80 11 00 00 00 00 00 00 47 [03:39:23]Write i2c OK [03:39:23]MH_I2C_Read... [03:39:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:39:23]Read from MH i2c: E2 [03:39:23]MH_I2C_Read... [03:39:23]Read from MH i2c: E2 17 00 [03:39:23]MH_I2C_Read... [03:39:23]Read from MH i2c: E2 17 00 B3 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 96 [03:39:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [03:39:23]wFMCommunicate OK [03:39:23]requested_item fd.num is exist - process it [03:39:23]SAM_PROTO_GetFieldsCounters [03:39:23]wFMCommunicate request_size=4 [03:39:23]MH_SAM_APDU [03:39:23]CAPDU: 80 13 00 00 [03:39:23]Write to MH i2c: E2 08 00 B4 1A 80 13 00 00 00 00 00 00 4A [03:39:23]Write i2c OK [03:39:23]MH_I2C_Read... [03:39:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:39:23]Read from MH i2c: E2 [03:39:23]MH_I2C_Read... [03:39:23]Read from MH i2c: E2 62 00 [03:39:23]MH_I2C_Read... [03:39:23]Read from MH i2c: E2 62 00 B4 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 88 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [03: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 88 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:39:23]wFMCommunicate OK [03:39:23]SAM_PROTO_GetFieldsCounters done [03:39:23]requested_item shift.num is exist - process it [03:39:23]requested_item shift.opened is exist - process it [03:39:23]req_shift_opened [03:39:23]FM_GetShiftState [03:39:23]SAM_PROTO_GetShiftState [03:39:23]wFMCommunicate request_size=4 [03:39:23]MH_SAM_APDU [03:39:23]CAPDU: 80 13 01 00 [03:39:23]Write to MH i2c: E2 08 00 B5 1A 80 13 01 00 00 00 00 00 4C [03:39:23]Write i2c OK [03:39:23]MH_I2C_Read... [03:39:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:39:23]Read from MH i2c: E2 [03:39:23]MH_I2C_Read... [03:39:23]Read from MH i2c: E2 0E 00 [03:39:23]MH_I2C_Read... [03:39:23]Read from MH i2c: E2 0E 00 B5 1A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 65 [03:39:23]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [03:39:23]wFMCommunicate OK [03:39:23]SAM_PROTO_GetShiftState done [03:39:23]FM_GetShiftState done [03:39:23]req_shift_opened done [03:39:23]requested_item shift.open_date is exist - process it [03:39:23]req_shift_open_date [03:39:23]req_shift_open_date done [03:39:23]produce_requested_data done [03:39:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28808,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [03:39:23]process_action_free close_receipt [03:39:23]json_value_free [03:39:23]json_value_free done [03:39:23]process_json_proto returns [03:39:23]Send response to host [03:39:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28808,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [03:39:23]free response buf [03:39:23]execute_script done [03:39:23]execute_script returns [03:39:23]free content buf [03:39:23]Sock 7.Close socket [03:39:23]Sock 7.Thread stoped [03:39:27]OFD Sender: No OFD packet to send [03:39:32]OFD Sender: No OFD packet to send [03:39:37]OFD Sender: No OFD packet to send [03:39:42]OFD Sender: No OFD packet to send [03:39:47]OFD Sender: No OFD packet to send [03:39:52]OFD Sender: No OFD packet to send [03:39:57]OFD Sender: No OFD packet to send [03:40:02]OFD Sender: No OFD packet to send [03:40:07]OFD Sender: No OFD packet to send [03:40:12]OFD Sender: No OFD packet to send [03:40:17]OFD Sender: No OFD packet to send [03:40:22]OFD Sender: No OFD packet to send [03:40:27]OFD Sender: No OFD packet to send [03:40:32]OFD Sender: No OFD packet to send [03:40:37]OFD Sender: No OFD packet to send [03:40:42]OFD Sender: No OFD packet to send [03:40:47]OFD Sender: No OFD packet to send [03:40:52]OFD Sender: No OFD packet to send [03:40:57]OFD Sender: No OFD packet to send [03:41:02]OFD Sender: No OFD packet to send [03:41:07]OFD Sender: No OFD packet to send [03:41:12]OFD Sender: No OFD packet to send [03:41:17]OFD Sender: No OFD packet to send [03:41:22]OFD Sender: No OFD packet to send [03:41:27]OFD Sender: No OFD packet to send [03:41:32]OFD Sender: No OFD packet to send [03:41:37]OFD Sender: No OFD packet to send [03:41:42]OFD Sender: No OFD packet to send [03:41:47]OFD Sender: No OFD packet to send [03:41:52]OFD Sender: No OFD packet to send [03:41:57]OFD Sender: No OFD packet to send [03:42:02]OFD Sender: No OFD packet to send [03:42:07]OFD Sender: No OFD packet to send [03:42:12]OFD Sender: No OFD packet to send [03:42:17]OFD Sender: No OFD packet to send [03:42:22]OFD Sender: No OFD packet to send [03:42:27]OFD Sender: No OFD packet to send [03:42:32]OFD Sender: No OFD packet to send [03:42:37]OFD Sender: No OFD packet to send [03:42:42]OFD Sender: No OFD packet to send [03:42:47]OFD Sender: No OFD packet to send [03:42:52]OFD Sender: No OFD packet to send [03:42:57]OFD Sender: No OFD packet to send [03:43:02]OFD Sender: No OFD packet to send [03:43:07]OFD Sender: No OFD packet to send [03:43:12]OFD Sender: No OFD packet to send [03:43:17]OFD Sender: No OFD packet to send [03:43:22]OFD Sender: No OFD packet to send [03:43:27]OFD Sender: No OFD packet to send [03:43:32]OFD Sender: No OFD packet to send [03:43:37]OFD Sender: No OFD packet to send [03:43:42]OFD Sender: No OFD packet to send [03:43:47]OFD Sender: No OFD packet to send [03:43:52]OFD Sender: No OFD packet to send [03:43:57]OFD Sender: No OFD packet to send [03:44:02]OFD Sender: No OFD packet to send [03:44:07]OFD Sender: No OFD packet to send [03:44:12]OFD Sender: No OFD packet to send [03:44:17]OFD Sender: No OFD packet to send [03:44:22]OFD Sender: No OFD packet to send [03:44:27]OFD Sender: No OFD packet to send [03:44:32]OFD Sender: No OFD packet to send [03:44:37]OFD Sender: No OFD packet to send [03:44:42]OFD Sender: No OFD packet to send [03:44:47]OFD Sender: No OFD packet to send [03:44:52]OFD Sender: No OFD packet to send [03:44:57]OFD Sender: No OFD packet to send [03:45:02]OFD Sender: No OFD packet to send [03:45:07]OFD Sender: No OFD packet to send [03:45:12]OFD Sender: No OFD packet to send [03:45:17]OFD Sender: No OFD packet to send [03:45:22]OFD Sender: No OFD packet to send [03:45:27]OFD Sender: No OFD packet to send [03:45:32]OFD Sender: No OFD packet to send [03:45:37]OFD Sender: No OFD packet to send [03:45:42]OFD Sender: No OFD packet to send [03:45:47]OFD Sender: No OFD packet to send [03:45:52]OFD Sender: No OFD packet to send [03:45:57]OFD Sender: No OFD packet to send [03:46:02]OFD Sender: No OFD packet to send [03:46:07]OFD Sender: No OFD packet to send [03:46:12]OFD Sender: No OFD packet to send [03:46:17]OFD Sender: No OFD packet to send [03:46:22]OFD Sender: No OFD packet to send [03:46:27]OFD Sender: No OFD packet to send [03:46:32]OFD Sender: No OFD packet to send [03:46:37]OFD Sender: No OFD packet to send [03:46:42]OFD Sender: No OFD packet to send [03:46:47]OFD Sender: No OFD packet to send [03:46:52]OFD Sender: No OFD packet to send [03:46:57]OFD Sender: No OFD packet to send [03:47:02]OFD Sender: No OFD packet to send [03:47:07]OFD Sender: No OFD packet to send [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:28]OFD Sender: No OFD packet to send [03:54:33]OFD Sender: No OFD packet to send [03:54:38]OFD Sender: No OFD packet to send [03:54:43]OFD Sender: No OFD packet to send [03:54:48]OFD Sender: No OFD packet to send [03:54:53]OFD Sender: No OFD packet to send [03:54:58]OFD Sender: No OFD packet to send [03:55:03]OFD Sender: No OFD packet to send [03:55:08]OFD Sender: No OFD packet to send [03:55:13]OFD Sender: No OFD packet to send [03:55:18]OFD Sender: No OFD packet to send [03:55:23]OFD Sender: No OFD packet to send [03:55:28]OFD Sender: No OFD packet to send [03:55:33]OFD Sender: No OFD packet to send [03:55:38]OFD Sender: No OFD packet to send [03:55:43]OFD Sender: No OFD packet to send [03:55:48]OFD Sender: No OFD packet to send [03:55:53]OFD Sender: No OFD packet to send [03:55:58]OFD Sender: No OFD packet to send [03:56:03]OFD Sender: No OFD packet to send [03:56:08]OFD Sender: No OFD packet to send [03:56:13]OFD Sender: No OFD packet to send [03:56:18]OFD Sender: No OFD packet to send [03:56:23]OFD Sender: No OFD packet to send [03:56:28]OFD Sender: No OFD packet to send [03:56:33]OFD Sender: No OFD packet to send [03:56:38]OFD Sender: No OFD packet to send [03:56:43]OFD Sender: No OFD packet to send [03:56:48]OFD Sender: No OFD packet to send [03:56:53]OFD Sender: No OFD packet to send [03:56:58]OFD Sender: No OFD packet to send [03:57:03]OFD Sender: No OFD packet to send [03:57:08]OFD Sender: No OFD packet to send [03:57:13]OFD Sender: No OFD packet to send [03:57:18]OFD Sender: No OFD packet to send [03:57:23]OFD Sender: No OFD packet to send [03:57:28]OFD Sender: No OFD packet to send [03:57:33]OFD Sender: No OFD packet to send [03:57:38]OFD Sender: No OFD packet to send [03:57:43]OFD Sender: No OFD packet to send [03:57:48]OFD Sender: No OFD packet to send [03:57:53]OFD Sender: No OFD packet to send [03:57:58]OFD Sender: No OFD packet to send [03:58:03]OFD Sender: No OFD packet to send [03:58:08]OFD Sender: No OFD packet to send [03:58:13]OFD Sender: No OFD packet to send [03:58:18]OFD Sender: No OFD packet to send [03:58:23]OFD Sender: No OFD packet to send [03:58:28]OFD Sender: No OFD packet to send [03:58:33]OFD Sender: No OFD packet to send [03:58:38]OFD Sender: No OFD packet to send [03:58:43]OFD Sender: No OFD packet to send [03:58:48]OFD Sender: No OFD packet to send [03:58:53]OFD Sender: No OFD packet to send [03:58:58]OFD Sender: No OFD packet to send [03:59:03]OFD Sender: No OFD packet to send [03:59:08]OFD Sender: No OFD packet to send [03:59:13]OFD Sender: No OFD packet to send [03:59:18]OFD Sender: No OFD packet to send [03:59:23]OFD Sender: No OFD packet to send [03:59:28]OFD Sender: No OFD packet to send [03:59:33]OFD Sender: No OFD packet to send [03:59:38]OFD Sender: No OFD packet to send [03:59:43]OFD Sender: No OFD packet to send [03:59:48]OFD Sender: No OFD packet to send [03:59:53]OFD Sender: No OFD packet to send [03:59:58]OFD Sender: No OFD packet to send [04:00:03]OFD Sender: No OFD packet to send [04:00:08]OFD Sender: No OFD packet to send [04:00:13]OFD Sender: No OFD packet to send [04:00:18]OFD Sender: No OFD packet to send [04:00:23]OFD Sender: No OFD packet to send [04:00:28]OFD Sender: No OFD packet to send [04:00:33]OFD Sender: No OFD packet to send [04:00:38]OFD Sender: No OFD packet to send [04:00:43]OFD Sender: No OFD packet to send [04:00:48]OFD Sender: No OFD packet to send [04:00:53]OFD Sender: No OFD packet to send [04:00:58]OFD Sender: No OFD packet to send [04:01:03]OFD Sender: No OFD packet to send [04:01:08]OFD Sender: No OFD packet to send [04:01:13]OFD Sender: No OFD packet to send [04:01:18]OFD Sender: No OFD packet to send [04:01:23]OFD Sender: No OFD packet to send [04:01:28]OFD Sender: No OFD packet to send [04:01:33]OFD Sender: No OFD packet to send [04:01:38]OFD Sender: No OFD packet to send [04:01:43]OFD Sender: No OFD packet to send [04:01:48]OFD Sender: No OFD packet to send [04:01:53]OFD Sender: No OFD packet to send [04:01:58]OFD Sender: No OFD packet to send [04:02:03]OFD Sender: No OFD packet to send [04:02:08]OFD Sender: No OFD packet to send [04:02:13]OFD Sender: No OFD packet to send [04:02:18]OFD Sender: No OFD packet to send [04:02:23]OFD Sender: No OFD packet to send [04:02:28]OFD Sender: No OFD packet to send [04:02:33]OFD Sender: No OFD packet to send [04:02:38]OFD Sender: No OFD packet to send [04:02:43]OFD Sender: No OFD packet to send [04:02:48]OFD Sender: No OFD packet to send [04:02:53]OFD Sender: No OFD packet to send [04:02:58]OFD Sender: No OFD packet to send [04:03:03]OFD Sender: No OFD packet to send [04:03:08]OFD Sender: No OFD packet to send [04:03:13]OFD Sender: No OFD packet to send [04:03:18]OFD Sender: No OFD packet to send [04:03:23]OFD Sender: No OFD packet to send [04:03:28]OFD Sender: No OFD packet to send [04:03:33]OFD Sender: No OFD packet to send [04:03:38]OFD Sender: No OFD packet to send [04:03:43]OFD Sender: No OFD packet to send [04:03:48]OFD Sender: No OFD packet to send [04:03:53]OFD Sender: No OFD packet to send [04:03:58]OFD Sender: No OFD packet to send [04:04:03]OFD Sender: No OFD packet to send [04:04:08]OFD Sender: No OFD packet to send [04:04:13]OFD Sender: No OFD packet to send [04:04:18]OFD Sender: No OFD packet to send [04:04:23]OFD Sender: No OFD packet to send [04:04:28]OFD Sender: No OFD packet to send [04:04:33]OFD Sender: No OFD packet to send [04:04:38]OFD Sender: No OFD packet to send [04:04:43]OFD Sender: No OFD packet to send [04:04:48]OFD Sender: No OFD packet to send [04:04:53]OFD Sender: No OFD packet to send [04:04:58]OFD Sender: No OFD packet to send [04:05:03]OFD Sender: No OFD packet to send [04:05:08]OFD Sender: No OFD packet to send [04:05:13]OFD Sender: No OFD packet to send [04:05:18]OFD Sender: No OFD packet to send [04:05:23]OFD Sender: No OFD packet to send [04:05:28]OFD Sender: No OFD packet to send [04:05:33]OFD Sender: No OFD packet to send [04:05:38]OFD Sender: No OFD packet to send [04:05:43]OFD Sender: No OFD packet to send [04:05:48]OFD Sender: No OFD packet to send [04:05:53]OFD Sender: No OFD packet to send [04:05:58]OFD Sender: No OFD packet to send [04:06:03]OFD Sender: No OFD packet to send [04:06:08]OFD Sender: No OFD packet to send [04:06:13]OFD Sender: No OFD packet to send [04:06:18]OFD Sender: No OFD packet to send [04:06:23]OFD Sender: No OFD packet to send [04:06:28]OFD Sender: No OFD packet to send [04:06:33]OFD Sender: No OFD packet to send [04:06:38]OFD Sender: No OFD packet to send [04:06:43]OFD Sender: No OFD packet to send [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:33]OFD Sender: No OFD packet to send [04:07:38]OFD Sender: No OFD packet to send [04:07:43]OFD Sender: No OFD packet to send [04:07:48]OFD Sender: No OFD packet to send [04:07:53]OFD Sender: No OFD packet to send [04:07:58]OFD Sender: No OFD packet to send [04:08:03]OFD Sender: No OFD packet to send [04:08:08]OFD Sender: No OFD packet to send [04:08:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:08:23]OFD Sender: No OFD packet to send [04:08:28]OFD Sender: No OFD packet to send [04:08:33]OFD Sender: No OFD packet to send [04:08:38]OFD Sender: No OFD packet to send [04:08:43]OFD Sender: No OFD packet to send [04:08:48]OFD Sender: No OFD packet to send [04:08:53]OFD Sender: No OFD packet to send [04:08:58]OFD Sender: No OFD packet to send [04:09:03]OFD Sender: No OFD packet to send [04:09:08]OFD Sender: No OFD packet to send [04:09:13]OFD Sender: No OFD packet to send [04:09:18]OFD Sender: No OFD packet to send [04:09:23]OFD Sender: No OFD packet to send [04:09:28]OFD Sender: No OFD packet to send [04:09:33]OFD Sender: No OFD packet to send [04:09:38]OFD Sender: No OFD packet to send [04:09:43]OFD Sender: No OFD packet to send [04:09:48]OFD Sender: No OFD packet to send [04:09:53]OFD Sender: No OFD packet to send [04:09:58]OFD Sender: No OFD packet to send [04:10:03]OFD Sender: No OFD packet to send [04:10:08]OFD Sender: No OFD packet to send [04:10:13]OFD Sender: No OFD packet to send [04:10:18]OFD Sender: No OFD packet to send [04:10:23]OFD Sender: No OFD packet to send [04:10:28]OFD Sender: No OFD packet to send [04:10:33]OFD Sender: No OFD packet to send [04:10:38]OFD Sender: No OFD packet to send [04:10:43]OFD Sender: No OFD packet to send [04:10:48]OFD Sender: No OFD packet to send [04:10:53]OFD Sender: No OFD packet to send [04:10:58]OFD Sender: No OFD packet to send [04:11:03]OFD Sender: No OFD packet to send [04:11:08]OFD Sender: No OFD packet to send [04:11:13]OFD Sender: No OFD packet to send [04:11:18]OFD Sender: No OFD packet to send [04:11:23]OFD Sender: No OFD packet to send [04:11:28]OFD Sender: No OFD packet to send [04:11:33]OFD Sender: No OFD packet to send [04:11:38]OFD Sender: No OFD packet to send [04:11:43]OFD Sender: No OFD packet to send [04:11:48]OFD Sender: No OFD packet to send [04:11:53]OFD Sender: No OFD packet to send [04:11:58]OFD Sender: No OFD packet to send [04:12:03]OFD Sender: No OFD packet to send [04:12:08]OFD Sender: No OFD packet to send [04:12:13]OFD Sender: No OFD packet to send [04:12:18]OFD Sender: No OFD packet to send [04:12:23]OFD Sender: No OFD packet to send [04:12:28]OFD Sender: No OFD packet to send [04:12:33]OFD Sender: No OFD packet to send [04:12:38]OFD Sender: No OFD packet to send [04:12:43]OFD Sender: No OFD packet to send [04:12:48]OFD Sender: No OFD packet to send [04:12:53]OFD Sender: No OFD packet to send [04:12:58]OFD Sender: No OFD packet to send [04:13:03]OFD Sender: No OFD packet to send [04:13:08]OFD Sender: No OFD packet to send [04:13:13]OFD Sender: No OFD packet to send [04:13:18]OFD Sender: No OFD packet to send [04:13:23]OFD Sender: No OFD packet to send [04:13:28]OFD Sender: No OFD packet to send [04:13:33]OFD Sender: No OFD packet to send [04:13:38]OFD Sender: No OFD packet to send [04:13:43]OFD Sender: No OFD packet to send [04:13:48]OFD Sender: No OFD packet to send [04:13:53]OFD Sender: No OFD packet to send [04:13:58]OFD Sender: No OFD packet to send [04:14:03]OFD Sender: No OFD packet to send [04:14:08]OFD Sender: No OFD packet to send [04:14:13]OFD Sender: No OFD packet to send [04:14:18]OFD Sender: No OFD packet to send [04:14:23]OFD Sender: No OFD packet to send [04:14:28]OFD Sender: No OFD packet to send [04:14:33]OFD Sender: No OFD packet to send [04:14:38]OFD Sender: No OFD packet to send [04:14:43]OFD Sender: No OFD packet to send [04:14:48]OFD Sender: No OFD packet to send [04:14:53]OFD Sender: No OFD packet to send [04:14:58]OFD Sender: No OFD packet to send [04:15:03]OFD Sender: No OFD packet to send [04:15:08]OFD Sender: No OFD packet to send [04:15:13]OFD Sender: No OFD packet to send [04:15:18]OFD Sender: No OFD packet to send [04:15:23]OFD Sender: No OFD packet to send [04:15:28]OFD Sender: No OFD packet to send [04:15:33]OFD Sender: No OFD packet to send [04:15:38]OFD Sender: No OFD packet to send [04:15:44]OFD Sender: No OFD packet to send [04:15:49]OFD Sender: No OFD packet to send [04:15:54]OFD Sender: No OFD packet to send [04:15:59]OFD Sender: No OFD packet to send [04:16:04]OFD Sender: No OFD packet to send [04:16:09]OFD Sender: No OFD packet to send [04:16:14]OFD Sender: No OFD packet to send [04:16:19]OFD Sender: No OFD packet to send [04:16:24]OFD Sender: No OFD packet to send [04:16:29]OFD Sender: No OFD packet to send [04:16:34]OFD Sender: No OFD packet to send [04:16:39]OFD Sender: No OFD packet to send [04:16:44]OFD Sender: No OFD packet to send [04:16:49]OFD Sender: No OFD packet to send [04:16:54]OFD Sender: No OFD packet to send [04:16:59]OFD Sender: No OFD packet to send [04:17:04]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]OFD Sender: No OFD packet to send [04:17:34]OFD Sender: No OFD packet to send [04:17:39]OFD Sender: No OFD packet to send [04:17:44]OFD Sender: No OFD packet to send [04:17:49]OFD Sender: No OFD packet to send [04:17:54]OFD Sender: No OFD packet to send [04:17:59]OFD Sender: No OFD packet to send [04:18:04]OFD Sender: No OFD packet to send [04:18:09]OFD Sender: No OFD packet to send [04:18:14]OFD Sender: No OFD packet to send [04:18:19]OFD Sender: No OFD packet to send [04:18:24]OFD Sender: No OFD packet to send [04:18:29]OFD Sender: No OFD packet to send [04:18:34]OFD Sender: No OFD packet to send [04:18:39]OFD Sender: No OFD packet to send [04:18:44]OFD Sender: No OFD packet to send [04:18:49]OFD Sender: No OFD packet to send [04:18:54]OFD Sender: No OFD packet to send [04:18:59]OFD Sender: No OFD packet to send [04:19:04]OFD Sender: No OFD packet to send [04:19:09]OFD Sender: No OFD packet to send [04:19:14]OFD Sender: No OFD packet to send [04:19:19]OFD Sender: No OFD packet to send [04:19:24]OFD Sender: No OFD packet to send [04:19:29]OFD Sender: No OFD packet to send [04:19:34]OFD Sender: No OFD packet to send [04:19:39]OFD Sender: No OFD packet to send [04:19:44]OFD Sender: No OFD packet to send [04:19:49]OFD Sender: No OFD packet to send [04:19:54]OFD Sender: No OFD packet to send [04:19:59]OFD Sender: No OFD packet to send [04:20:04]OFD Sender: No OFD packet to send [04:20:09]OFD Sender: No OFD packet to send [04:20:14]OFD Sender: No OFD packet to send [04:20:19]OFD Sender: No OFD packet to send [04:20:24]OFD Sender: No OFD packet to send [04:20:29]OFD Sender: No OFD packet to send [04:20:34]OFD Sender: No OFD packet to send [04:20:39]OFD Sender: No OFD packet to send [04:20:44]OFD Sender: No OFD packet to send [04:20:49]OFD Sender: No OFD packet to send [04:20:54]OFD Sender: No OFD packet to send [04:20:59]OFD Sender: No OFD packet to send [04:21:04]OFD Sender: No OFD packet to send [04:21:09]OFD Sender: No OFD packet to send [04:21:14]OFD Sender: No OFD packet to send [04:21:19]OFD Sender: No OFD packet to send [04:21:24]OFD Sender: No OFD packet to send [04:21:29]OFD Sender: No OFD packet to send [04:21:34]OFD Sender: No OFD packet to send [04:21:39]OFD Sender: No OFD packet to send [04:21:44]OFD Sender: No OFD packet to send [04:21:49]OFD Sender: No OFD packet to send [04:21:54]OFD Sender: No OFD packet to send [04:21:59]OFD Sender: No OFD packet to send [04:22:04]OFD Sender: No OFD packet to send [04:22:09]OFD Sender: No OFD packet to send [04:22:14]OFD Sender: No OFD packet to send [04:22:19]OFD Sender: No OFD packet to send [04:22:24]OFD Sender: No OFD packet to send [04:22:29]OFD Sender: No OFD packet to send [04:22:34]OFD Sender: No OFD packet to send [04:22:39]OFD Sender: No OFD packet to send [04:22:44]OFD Sender: No OFD packet to send [04:22:49]OFD Sender: No OFD packet to send [04:22:54]OFD Sender: No OFD packet to send [04:22:59]OFD Sender: No OFD packet to send [04:23:04]OFD Sender: No OFD packet to send [04:23:09]OFD Sender: No OFD packet to send [04:23:14]OFD Sender: No OFD packet to send [04:23:19]OFD Sender: No OFD packet to send [04:23:24]OFD Sender: No OFD packet to send [04:23:29]OFD Sender: No OFD packet to send [04:23:34]OFD Sender: No OFD packet to send [04:23:39]OFD Sender: No OFD packet to send [04:23:44]OFD Sender: No OFD packet to send [04:23:49]OFD Sender: No OFD packet to send [04:23:54]OFD Sender: No OFD packet to send [04:23:59]OFD Sender: No OFD packet to send [04:24:04]OFD Sender: No OFD packet to send [04:24:09]OFD Sender: No OFD packet to send [04:24:14]OFD Sender: No OFD packet to send [04:24:19]OFD Sender: No OFD packet to send [04:24:24]OFD Sender: No OFD packet to send [04:24:29]OFD Sender: No OFD packet to send [04:24:34]OFD Sender: No OFD packet to send [04:24:39]OFD Sender: No OFD packet to send [04:24:44]OFD Sender: No OFD packet to send [04:24:49]OFD Sender: No OFD packet to send [04:24:54]OFD Sender: No OFD packet to send [04:24:59]OFD Sender: No OFD packet to send [04:25:04]OFD Sender: No OFD packet to send [04:25:09]OFD Sender: No OFD packet to send [04:25:14]OFD Sender: No OFD packet to send [04:25:19]OFD Sender: No OFD packet to send [04:25:24]OFD Sender: No OFD packet to send [04:25:29]OFD Sender: No OFD packet to send [04:25:34]OFD Sender: No OFD packet to send [04:25:39]OFD Sender: No OFD packet to send [04:25:44]OFD Sender: No OFD packet to send [04:25:49]OFD Sender: No OFD packet to send [04:25:54]OFD Sender: No OFD packet to send [04:25:59]OFD Sender: No OFD packet to send [04:26:04]OFD Sender: No OFD packet to send [04:26:09]OFD Sender: No OFD packet to send [04:26:14]OFD Sender: No OFD packet to send [04:26:19]OFD Sender: No OFD packet to send [04:26:24]OFD Sender: No OFD packet to send [04:26:29]OFD Sender: No OFD packet to send [04:26:34]OFD Sender: No OFD packet to send [04:26:39]OFD Sender: No OFD packet to send [04:26:44]OFD Sender: No OFD packet to send [04:26:49]OFD Sender: No OFD packet to send [04:26:54]OFD Sender: No OFD packet to send [04:26:59]OFD Sender: No OFD packet to send [04:27:04]OFD Sender: No OFD packet to send [04:27:09]OFD Sender: No OFD packet to send [04:27:14]OFD Sender: No OFD packet to send [04:27:19]OFD Sender: No OFD packet to send [04:27:24]OFD Sender: No OFD packet to send [04:27:29]OFD Sender: No OFD packet to send [04:27:34]OFD Sender: No OFD packet to send [04:27:39]OFD Sender: No OFD packet to send [04:27:44]OFD Sender: No OFD packet to send [04:27:49]OFD Sender: No OFD packet to send [04:27:54]OFD Sender: No OFD packet to send [04:27:59]OFD Sender: No OFD packet to send [04:28:04]OFD Sender: No OFD packet to send [04:28:09]OFD Sender: No OFD packet to send [04:28:14]OFD Sender: No OFD packet to send [04:28:19]OFD Sender: No OFD packet to send [04:28:24]OFD Sender: No OFD packet to send [04:28:29]OFD Sender: No OFD packet to send [04:28:34]OFD Sender: No OFD packet to send [04:28:39]OFD Sender: No OFD packet to send [04:28:44]OFD Sender: No OFD packet to send [04:28:49]OFD Sender: No OFD packet to send [04:28:54]OFD Sender: No OFD packet to send [04:28:59]OFD Sender: No OFD packet to send [04:29:04]OFD Sender: No OFD packet to send [04:29:09]OFD Sender: No OFD packet to send [04:29:14]OFD Sender: No OFD packet to send [04:29:19]OFD Sender: No OFD packet to send [04:29:24]OFD Sender: No OFD packet to send [04:29:29]OFD Sender: No OFD packet to send [04:29:34]OFD Sender: No OFD packet to send [04:29:39]OFD Sender: No OFD packet to send [04:29:44]OFD Sender: No OFD packet to send [04:29:49]OFD Sender: No OFD packet to send [04:29:54]OFD Sender: No OFD packet to send [04:29:59]OFD Sender: No OFD packet to send [04:30:04]OFD Sender: No OFD packet to send [04:30:09]OFD Sender: No OFD packet to send [04:30:14]OFD Sender: No OFD packet to send [04:30:19]OFD Sender: No OFD packet to send [04:30:24]OFD Sender: No OFD packet to send [04:30:29]OFD Sender: No OFD packet to send [04:30:34]OFD Sender: No OFD packet to send [04:30:39]OFD Sender: No OFD packet to send [04:30:44]OFD Sender: No OFD packet to send [04:30:49]OFD Sender: No OFD packet to send [04:30:54]OFD Sender: No OFD packet to send [04:30:59]OFD Sender: No OFD packet to send [04:31:04]OFD Sender: No OFD packet to send [04:31:09]OFD Sender: No OFD packet to send [04:31:14]OFD Sender: No OFD packet to send [04:31:19]OFD Sender: No OFD packet to send [04:31:24]OFD Sender: No OFD packet to send [04:31:29]OFD Sender: No OFD packet to send [04:31:34]OFD Sender: No OFD packet to send [04:31:39]OFD Sender: No OFD packet to send [04:31:44]OFD Sender: No OFD packet to send [04:31:49]OFD Sender: No OFD packet to send [04:31:54]OFD Sender: No OFD packet to send [04:31:59]OFD Sender: No OFD packet to send [04:32:04]OFD Sender: No OFD packet to send [04:32:09]OFD Sender: No OFD packet to send [04:32:14]OFD Sender: No OFD packet to send [04:32:19]OFD Sender: No OFD packet to send [04:32:24]OFD Sender: No OFD packet to send [04:32:29]OFD Sender: No OFD packet to send [04:32:34]OFD Sender: No OFD packet to send [04:32:39]OFD Sender: No OFD packet to send [04:32:44]OFD Sender: No OFD packet to send [04:32:49]OFD Sender: No OFD packet to send [04:32:54]OFD Sender: No OFD packet to send [04:32:59]OFD Sender: No OFD packet to send [04:33:04]OFD Sender: No OFD packet to send [04:33:09]OFD Sender: No OFD packet to send [04:33:14]OFD Sender: No OFD packet to send [04:33:19]OFD Sender: No OFD packet to send [04:33:24]OFD Sender: No OFD packet to send [04:33:29]OFD Sender: No OFD packet to send [04:33:34]OFD Sender: No OFD packet to send [04:33:39]OFD Sender: No OFD packet to send [04:33:44]OFD Sender: No OFD packet to send [04:33:49]OFD Sender: No OFD packet to send [04:33:54]OFD Sender: No OFD packet to send [04:33:59]OFD Sender: No OFD packet to send [04:34:04]OFD Sender: No OFD packet to send [04:34:09]OFD Sender: No OFD packet to send [04:34:14]OFD Sender: No OFD packet to send [04:34:19]OFD Sender: No OFD packet to send [04:34:24]OFD Sender: No OFD packet to send [04:34:29]OFD Sender: No OFD packet to send [04:34:34]OFD Sender: No OFD packet to send [04:34:39]OFD Sender: No OFD packet to send [04:34:44]OFD Sender: No OFD packet to send [04:34:49]OFD Sender: No OFD packet to send [04:34:54]OFD Sender: No OFD packet to send [04:34:59]OFD Sender: No OFD packet to send [04:35:04]OFD Sender: No OFD packet to send [04:35:09]OFD Sender: No OFD packet to send [04:35:14]OFD Sender: No OFD packet to send [04:35:19]OFD Sender: No OFD packet to send [04:35:24]OFD Sender: No OFD packet to send [04:35:29]OFD Sender: No OFD packet to send [04:35:34]OFD Sender: No OFD packet to send [04:35:39]OFD Sender: No OFD packet to send [04:35:44]OFD Sender: No OFD packet to send [04:35:49]OFD Sender: No OFD packet to send [04:35:54]OFD Sender: No OFD packet to send [04:35:59]OFD Sender: No OFD packet to send [04:36:04]OFD Sender: No OFD packet to send [04:36:09]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:44]OFD Sender: No OFD packet to send [04:36:49]OFD Sender: No OFD packet to send [04:36:54]OFD Sender: No OFD packet to send [04:37:00]OFD Sender: No OFD packet to send [04:37:05]OFD Sender: No OFD packet to send [04:37:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:50]OFD Sender: No OFD packet to send [04:37:55]OFD Sender: No OFD packet to send [04:38:00]OFD Sender: No OFD packet to send [04:38:05]OFD Sender: No OFD packet to send [04:38:10]OFD Sender: No OFD packet to send [04:38:15]OFD Sender: No OFD packet to send [04:38:20]OFD Sender: No OFD packet to send [04:38:25]OFD Sender: No OFD packet to send [04:38:30]OFD Sender: No OFD packet to send [04:38:35]OFD Sender: No OFD packet to send [04:38:40]OFD Sender: No OFD packet to send [04:38:45]OFD Sender: No OFD packet to send [04:38:50]OFD Sender: No OFD packet to send [04:38:55]OFD Sender: No OFD packet to send [04:39:00]OFD Sender: No OFD packet to send [04:39:05]OFD Sender: No OFD packet to send [04:39:10]OFD Sender: No OFD packet to send [04:39:15]OFD Sender: No OFD packet to send [04:39:20]OFD Sender: No OFD packet to send [04:39:25]OFD Sender: No OFD packet to send [04:39:30]OFD Sender: No OFD packet to send [04:39:35]OFD Sender: No OFD packet to send [04:39:40]OFD Sender: No OFD packet to send [04:39:45]OFD Sender: No OFD packet to send [04:39:50]OFD Sender: No OFD packet to send [04:39:55]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:40:25]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:55]OFD Sender: No OFD packet to send [04:42:00]OFD Sender: No OFD packet to send [04:42:05]OFD Sender: No OFD packet to send [04:42:10]OFD Sender: No OFD packet to send [04:42:15]OFD Sender: No OFD packet to send [04:42:20]OFD Sender: No OFD packet to send [04:42:25]OFD Sender: No OFD packet to send [04:42:30]OFD Sender: No OFD packet to send [04:42:35]OFD Sender: No OFD packet to send [04:42:40]OFD Sender: No OFD packet to send [04:42:45]OFD Sender: No OFD packet to send [04:42:50]OFD Sender: No OFD packet to send [04:42:55]OFD Sender: No OFD packet to send [04:43:00]OFD Sender: No OFD packet to send [04:43:05]OFD Sender: No OFD packet to send [04:43:10]OFD Sender: No OFD packet to send [04:43:15]OFD Sender: No OFD packet to send [04:43:20]OFD Sender: No OFD packet to send [04:43:25]OFD Sender: No OFD packet to send [04:43:30]OFD Sender: No OFD packet to send [04:43:35]OFD Sender: No OFD packet to send [04:43:40]OFD Sender: No OFD packet to send [04:43:45]OFD Sender: No OFD packet to send [04:43:50]OFD Sender: No OFD packet to send [04:43:55]OFD Sender: No OFD packet to send [04:44:00]OFD Sender: No OFD packet to send [04:44:05]OFD Sender: No OFD packet to send [04:44:10]OFD Sender: No OFD packet to send [04:44:15]OFD Sender: No OFD packet to send [04:44:20]OFD Sender: No OFD packet to send [04:44:25]OFD Sender: No OFD packet to send [04:44:30]OFD Sender: No OFD packet to send [04:44:35]OFD Sender: No OFD packet to send [04:44:40]OFD Sender: No OFD packet to send [04:44:45]OFD Sender: No OFD packet to send [04:44:50]OFD Sender: No OFD packet to send [04:44:55]OFD Sender: No OFD packet to send [04:45:00]OFD Sender: No OFD packet to send [04:45:05]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:15]OFD Sender: No OFD packet to send [04:45:20]OFD Sender: No OFD packet to send [04:45:25]OFD Sender: No OFD packet to send [04:45:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:50]OFD Sender: No OFD packet to send [04:45:55]OFD Sender: No OFD packet to send [04:46:00]OFD Sender: No OFD packet to send [04:46:05]OFD Sender: No OFD packet to send [04:46:10]OFD Sender: No OFD packet to send [04:46:15]OFD Sender: No OFD packet to send [04:46:20]OFD Sender: No OFD packet to send [04:46:25]OFD Sender: No OFD packet to send [04:46:30]OFD Sender: No OFD packet to send [04:46:35]OFD Sender: No OFD packet to send [04:46:40]OFD Sender: No OFD packet to send [04:46:45]OFD Sender: No OFD packet to send [04:46:50]OFD Sender: No OFD packet to send [04:46:55]OFD Sender: No OFD packet to send [04:47:00]OFD Sender: No OFD packet to send [04:47:05]OFD Sender: No OFD packet to send [04:47:10]OFD Sender: No OFD packet to send [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:25]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:20]OFD Sender: No OFD packet to send [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]OFD Sender: No OFD packet to send [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:30]OFD Sender: No OFD packet to send [04:49:35]OFD Sender: No OFD packet to send [04:49:40]OFD Sender: No OFD packet to send [04:49:45]OFD Sender: No OFD packet to send [04:49:50]OFD Sender: No OFD packet to send [04:49:55]OFD Sender: No OFD packet to send [04:50:00]OFD Sender: No OFD packet to send [04:50:05]OFD Sender: No OFD packet to send [04:50:10]OFD Sender: No OFD packet to send [04:50:15]OFD Sender: No OFD packet to send [04:50:20]OFD Sender: No OFD packet to send [04:50:25]OFD Sender: No OFD packet to send [04:50:30]OFD Sender: No OFD packet to send [04:50:35]OFD Sender: No OFD packet to send [04:50:40]OFD Sender: No OFD packet to send [04:50:45]OFD Sender: No OFD packet to send [04:50:50]OFD Sender: No OFD packet to send [04:50:55]OFD Sender: No OFD packet to send [04:51:00]OFD Sender: No OFD packet to send [04:51:05]OFD Sender: No OFD packet to send [04:51:10]OFD Sender: No OFD packet to send [04:51:15]OFD Sender: No OFD packet to send [04:51:20]OFD Sender: No OFD packet to send [04:51:25]OFD Sender: No OFD packet to send [04:51:30]OFD Sender: No OFD packet to send [04:51:35]OFD Sender: No OFD packet to send [04:51:40]OFD Sender: No OFD packet to send [04:51:45]OFD Sender: No OFD packet to send [04:51:50]OFD Sender: No OFD packet to send [04:51:55]OFD Sender: No OFD packet to send [04:52:00]OFD Sender: No OFD packet to send [04:52:05]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:15]OFD Sender: No OFD packet to send [04:54:20]OFD Sender: No OFD packet to send [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:35]OFD Sender: No OFD packet to send [04:54:40]OFD Sender: No OFD packet to send [04:54:45]OFD Sender: No OFD packet to send [04:54:50]OFD Sender: No OFD packet to send [04:54:55]OFD Sender: No OFD packet to send [04:55:00]OFD Sender: No OFD packet to send [04:55:05]OFD Sender: No OFD packet to send [04:55:10]OFD Sender: No OFD packet to send [04:55:15]OFD Sender: No OFD packet to send [04:55:20]OFD Sender: No OFD packet to send [04:55:25]OFD Sender: No OFD packet to send [04:55:30]OFD Sender: No OFD packet to send [04:55:35]OFD Sender: No OFD packet to send [04:55:40]OFD Sender: No OFD packet to send [04:55:45]OFD Sender: No OFD packet to send [04:55:50]OFD Sender: No OFD packet to send [04:55:55]OFD Sender: No OFD packet to send [04:56:00]OFD Sender: No OFD packet to send [04:56:05]OFD Sender: No OFD packet to send [04:56:10]OFD Sender: No OFD packet to send [04:56:15]OFD Sender: No OFD packet to send [04:56:20]OFD Sender: No OFD packet to send [04:56:25]OFD Sender: No OFD packet to send [04:56:30]OFD Sender: No OFD packet to send [04:56:35]OFD Sender: No OFD packet to send [04:56:40]OFD Sender: No OFD packet to send [04:56:45]OFD Sender: No OFD packet to send [04:56:50]OFD Sender: No OFD packet to send [04:56:55]OFD Sender: No OFD packet to send [04:57:00]OFD Sender: No OFD packet to send [04:57:05]OFD Sender: No OFD packet to send [04:57:10]OFD Sender: No OFD packet to send [04:57:15]OFD Sender: No OFD packet to send [04:57:20]OFD Sender: No OFD packet to send [04:57:25]OFD Sender: No OFD packet to send [04:57:30]OFD Sender: No OFD packet to send [04:57:35]OFD Sender: No OFD packet to send [04:57:40]OFD Sender: No OFD packet to send [04:57:45]OFD Sender: No OFD packet to send [04:57:50]OFD Sender: No OFD packet to send [04:57:55]OFD Sender: No OFD packet to send [04:58:00]OFD Sender: No OFD packet to send [04:58:05]OFD Sender: No OFD packet to send [04:58:10]OFD Sender: No OFD packet to send [04:58:15]OFD Sender: No OFD packet to send [04:58:20]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [04:59:16]OFD Sender: No OFD packet to send [04:59:21]OFD Sender: No OFD packet to send [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:56]OFD Sender: No OFD packet to send [05:00:01]OFD Sender: No OFD packet to send [05:00:06]OFD Sender: No OFD packet to send [05:00:11]OFD Sender: No OFD packet to send [05:00:16]OFD Sender: No OFD packet to send [05:00:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:46]OFD Sender: No OFD packet to send [05:00:51]OFD Sender: No OFD packet to send [05:00:56]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:11]OFD Sender: No OFD packet to send [05:02:16]OFD Sender: No OFD packet to send [05:02:21]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:26]OFD Sender: No OFD packet to send [05:04:31]OFD Sender: No OFD packet to send [05:04:36]OFD Sender: No OFD packet to send [05:04:41]OFD Sender: No OFD packet to send [05:04:46]OFD Sender: No OFD packet to send [05:04:51]OFD Sender: No OFD packet to send [05:04:56]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:32]accept exits with 9 [05:12:32]New connection [05:12:32]New thread 3066928484 created [05:12:32]Thread 3066785124 joined [05:12:32]Waiting for new connection... [05:12:32] Sock 9.Parse request [05:12:32]Sock 9.Check first char [05:12:32]Sock 9.First char is OK [05:12:32]request: POST /json_proto HTTP/1.0 [05:12:32]Method: POST [05:12:32]URL: /json_proto [05:12:32]Method is POST - this is cgi request [05:12:32]url: /json_proto [05:12:32]query_string will be loaded in cgi processing [05:12:32]execute_cgi json_proto POST (null) [05:12:32]execute_cgi path=json_proto method=POST [05:12:32]POST find Content-Length [05:12:32]Host: 172.17.33.3:8080 [05:12:32]Content-Length: 679 [05:12:32]Content-Type: application/json [05:12:32] [05:12:32]POST finish read [05:12:32]Found Content-Length = 679 [05:12:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347155", "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" : 72.40, "quantity" : 45.590, "sum" : 3300.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3300.00, "total" : 3300.00, "payments": [ { "type": 0, "sum" : 3300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:12:32]execute_script... [05:12:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347155", "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" : 72.40, "quantity" : 45.590, "sum" : 3300.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3300.00, "total" : 3300.00, "payments": [ { "type": 0, "sum" : 3300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:12:32]POST & json_proto [05:12:32]process_json_proto [05:12:32]json parsed OK: [05:12:32]protocol is kg_v1.0 [05:12:32]action value=close_receipt [05:12:32]process_action close_receipt [05:12:32]cmd_close_receipt [05:12:32]MH_GetDate [05:12:32]Write to MH i2c: F0 00 00 B6 1A BF [05:12:32]Write i2c OK [05:12:32]MH_I2C_Read... [05:12:32]Read from MH i2c: F0 [05:12:32]MH_I2C_Read... [05:12:32]Read from MH i2c: F0 09 00 [05:12:32]MH_I2C_Read... [05:12:32]Read from MH i2c: F0 09 00 B6 1A 00 43 14 1A 66 23 5B 8F 65 11 [05:12:32]GetLastDocTimeStamp 1712979562 [05:12:32]current date 1712985155 [05:12:32]FM_GetShiftState [05:12:32]SAM_PROTO_GetShiftState [05:12:32]wFMCommunicate request_size=4 [05:12:32]MH_SAM_APDU [05:12:32]CAPDU: 80 13 01 00 [05:12:32]Write to MH i2c: E2 08 00 B7 1A 80 13 01 00 00 00 00 00 4E [05:12:32]Write i2c OK [05:12:32]MH_I2C_Read... [05:12:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:12:32]Read from MH i2c: E2 [05:12:32]MH_I2C_Read... [05:12:32]Read from MH i2c: E2 0E 00 [05:12:32]MH_I2C_Read... [05:12:32]Read from MH i2c: E2 0E 00 B7 1A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 67 [05:12:32]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [05:12:32]wFMCommunicate OK [05:12:32]SAM_PROTO_GetShiftState done [05:12:32]FM_GetShiftState done [05:12:32]opened in 1712967615 [05:12:32]opened+sec_in_day 1713054015 [05:12:32]quantity*price = 330071 [05:12:32]sum+1 = 330073 [05:12:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 3300.00 Внесено: 3300.00 СДАЧА: 0.00 НСП 1% : 29.21 НДС 12% : 350.52 Наличными: 3300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 16 13.04.2024 05:12 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28809 ФПД: 165724449609460 1/tax-web-control/client/api/v1/ticket?date=20240413T051235&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28809&fm=165724449609460&tin=02508201610067®Number=0000138879044617&sum=330000 [05:12:33]StoreToDocumentArchive [05:12:33]shift 115 fd 28809 [05:12:33]save to /storage/0115/doc_00028809 [05:12:33]save last doc name /storage/0115/doc_00028809 to /storage/kkm_last_doc_name [05:12:33]save OK [05:12:33]Clear old archive folders... [05:12:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:12:33]tlvbuf is B6EBB250 [05:12:33]SAM_PROTO_ClearQueue [05:12:33]wFMCommunicate request_size=4 [05:12:33]MH_SAM_APDU [05:12:33]CAPDU: 80 09 00 00 [05:12:33]Write to MH i2c: E2 08 00 C4 1A 80 09 00 00 00 00 00 00 50 [05:12:33]Write i2c OK [05:12:33]MH_I2C_Read... [05:12:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:12:33]Read from MH i2c: E2 [05:12:33]MH_I2C_Read... [05:12:33]Read from MH i2c: E2 03 00 [05:12:33]MH_I2C_Read... [05:12:33]Read from MH i2c: E2 03 00 C4 1A 00 90 00 52 [05:12:33]RAPDU: 90 00 [05:12:33]wFMCommunicate OK [05:12:33]SAM_PROTO_ClearQueue done [05:12:33]KKMCreateOFDPacket [05:12:33]OFDProtocolAddRootSTLVToBuf [05:12:33]FM_MakeSignedData [05:12:33]FM_MakeSignedData [05:12:33]SAM_PROTO_SignData [05:12:33]wFMCommunicate request_size=4 [05:12:33]MH_SAM_APDU [05:12:33]CAPDU: 80 0D 01 02 [05:12:33]Write to MH i2c: E2 08 00 C5 1A 80 0D 01 02 00 00 00 00 58 [05:12:33]Write i2c OK [05:12:33]MH_I2C_Read... [05:12:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:12:33]Read from MH i2c: E2 [05:12:33]MH_I2C_Read... [05:12:33]Read from MH i2c: E2 03 00 [05:12:33]MH_I2C_Read... [05:12:33]Read from MH i2c: E2 03 00 C5 1A 00 90 00 53 [05:12:33]RAPDU: 90 00 [05:12:33]wFMCommunicate OK [05:12:33]wFMCommunicate request_size=255 [05:12:33]MH_SAM_APDU [05:12: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 16 B2 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 58 09 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 09 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 88 00 00 00 00 07 04 06 00 10 09 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 43 14 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 89 70 00 00 35 04 06 00 96 B9 BA F3 [05:12:33]Write to MH i2c: E2 02 01 C6 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 16 B2 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 58 09 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 09 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 88 00 00 00 00 07 04 06 00 10 09 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 43 14 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 89 70 00 00 35 04 06 00 96 B9 BA F3 00 00 D7 [05:12:33]Write i2c OK [05:12:33]MH_I2C_Read... [05:12:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:12:33]Read from MH i2c: E2 [05:12:33]MH_I2C_Read... [05:12:33]Read from MH i2c: E2 03 00 [05:12:33]MH_I2C_Read... [05:12:33]Read from MH i2c: E2 03 00 C6 1A 00 90 00 54 [05:12:33]RAPDU: 90 00 [05:12:33]wFMCommunicate OK [05:12:33]wFMCommunicate request_size=7 [05:12:33]MH_SAM_APDU [05:12:33]CAPDU: 80 0D 02 02 02 16 F4 [05:12:33]Write to MH i2c: E2 0A 00 C7 1A 80 0D 02 02 02 00 16 F4 00 00 69 [05:12:33]Write i2c OK [05:12:33]MH_I2C_Read... [05:12:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:12:33]Read from MH i2c: E2 [05:12:33]MH_I2C_Read... [05:12:33]Read from MH i2c: E2 03 00 [05:12:33]MH_I2C_Read... [05:12:33]Read from MH i2c: E2 03 00 C7 1A 00 90 00 55 [05:12:33]RAPDU: 90 00 [05:12:33]wFMCommunicate OK [05:12:33]wFMCommunicate request_size=4 [05:12:33]MH_SAM_APDU [05:12:33]CAPDU: 80 0D 03 02 [05:12:33]Write to MH i2c: E2 08 00 C8 1A 80 0D 03 02 00 00 00 00 5D [05:12:33]Write i2c OK [05:12:33]MH_I2C_Read... [05:12:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:12:33]Read from MH i2c: E2 [05:12:33]MH_I2C_Read... [05:12:33]Read from MH i2c: E2 0B 00 [05:12:33]MH_I2C_Read... [05:12:33]Read from MH i2c: E2 0B 00 C8 1A 00 69 89 BA 9B 7F C5 A2 AC 90 00 37 [05:12:33]RAPDU: 69 89 BA 9B 7F C5 A2 AC 90 00 [05:12:33]wFMCommunicate OK [05:12:33]SAM_PROTO_SignData done [05:12:33]FM_MakeSignedData done [05:12:33]CreateOFDProtocolMessage [05:12:33]wFMCommunicate request_size=4 [05:12:33]MH_SAM_APDU [05:12:33]CAPDU: 80 11 00 00 [05:12:33]Write to MH i2c: E2 08 00 C9 1A 80 11 00 00 00 00 00 00 5D [05:12:33]Write i2c OK [05:12:33]MH_I2C_Read... [05:12:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:12:34]Read from MH i2c: E2 [05:12:34]MH_I2C_Read... [05:12:34]Read from MH i2c: E2 17 00 [05:12:34]MH_I2C_Read... [05:12:34]Read from MH i2c: E2 17 00 C9 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AC [05:12:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [05:12:34]wFMCommunicate OK [05:12:34]CreateOFDProtocolMessage done [05:12:34]OFDSenderStorePacket 28809 [05:12:34]StoreOFDPacket docnum=28809 [05:12:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 7E EB 04 01 EB 22 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 16 B2 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 58 09 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 09 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 88 00 00 00 00 07 04 06 00 10 09 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 43 14 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 89 70 00 00 35 04 06 00 96 B9 BA F3 16 F4 69 89 BA 9B 7F C5 A2 AC [05:12:34]CheckFolder [05:12:34]dirname=/storage/ofd_packets [05:12:34]CheckFolder done [05:12:34]ProducePacketName [05:12:34]name=ofd_packets/00028809 [05:12:34]NVStorageSaveData ofd_packets/00028809 [05:12:34]File name is /storage/ofd_packets/00028809 [05:12:34]Write 298 bytes [05:12:34]NVStorageSaveData done [05:12:34]OFDSenderStorePacket done [05:12:34]KKMCreateOFDPacket done [05:12:34]NVStorageSaveData kkm_last_timestamp [05:12:34]File name is /storage/kkm_last_timestamp [05:12:34]Write 4 bytes [05:12:34]NVStorageSaveData done [05:12:34]ExternCall_PrintAddStr [05:12:34]wPrintStart [05:12:34]Write to MH i2c: 01 00 00 CA 1A E4 [05:12:34]Write i2c OK [05:12:34]MH_I2C_Read... [05:12:34]Read from MH i2c: 01 [05:12:34]MH_I2C_Read... [05:12:34]Read from MH i2c: 01 07 00 [05:12:34]MH_I2C_Read... [05:12:34]Read from MH i2c: 01 07 00 CA 1A 00 00 00 00 00 FF 0F F9 [05:12:34]RasterBufferAndPrint [05:12:34]line Счет N : (1)347155 [05:12:34]line ИНН: 02508201610067 [05:12:34]line Контрольно-Кассовый Чек [05:12:34]line ПРОДАЖА [05:12:34]line ТРК (МРК, ГНК) : 61 [05:12:34]line Товар: 2710194210 [05:12:34]line ДТ-К-5 [05:12:34]line 45.590 * 72.40 [05:12:34]line = 3300.72 [05:12:34]line НДС 12% НСП 1% [05:12:34]line > о реализуемом товаре [05:12:34]line ОКРУГЛЕНИЕ: -0.72 [05:12:34]line ИТОГО: 3300.00 [05:12:34]line Внесено: 3300.00 [05:12:34]line СДАЧА: 0.00 [05:12:34]line НСП 1% : 29.21 [05:12:34]line НДС 12% : 350.52 [05:12:34]line Наличными: 3300.00 [05:12:34]line Безнал.: 0.00 [05:12:34]line Место: АЗС № 108 "Партнер Нефть" [05:12:34]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [05:12:34]line СНО: Общий режим [05:12:34]line Чек 16 13.04.2024 05:12 [05:12:34]line Смена: 115 ФФД: 1.0 [05:12:34]line ЗНМ: 0300000027 [05:12:34]line РНМ: 0000138879044617 [05:12:34]line Версия ККМ: 001 [05:12:34]line ФМ: 0000000000963154 [05:12:34]line ФД: 28809 [05:12:34]line ФПД: 165724449609460 [05:12:34]line 1/tax-web-control/client/api/v1/ticket?date=20240413T051235&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28809&fm=165724449609460&tin=02508201610067®Number=0000138879044617&sum=330000 [05:12:34]OFD Sender: Processing packet 28809 [packets to send 8, broken 7] [05:12:34]ProducePacketName [05:12:34]name=ofd_packets/00028809 [05:12:34]OFD Sender: To server: pG, [05:12:34]CommunicateWithHost lk.salyk.kg:30040 [05:12:34]ConnectInit lk.salyk.kg [05:12:34]written 0, free lines is 4095 [05:12:34]Connected sock=7 [05:12:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 7E EB 04 01 EB 22 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 16 B2 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 58 09 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 09 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 88 00 00 00 00 07 04 06 00 10 09 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 43 14 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 89 70 00 00 35 04 06 00 96 B9 BA F3 16 F4 69 89 BA 9B 7F C5 A2 AC [05:12:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9E 89 47 00 F5 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 31 35 34 10 04 04 00 89 70 00 00 F4 03 04 00 EB BE 19 66 B6 04 01 00 00 AB 65 02 7C AC EF 4F F8 [05:12:34]CommunicateWithHost err = 0 [05:12:34]CheckOFDResponse [05:12:34]1017 (14) - 77093643461234 [05:12:34]1041 (16) - 0000000000963154 [05:12:34]1040 (4) - 28809 [05:12:34]1012 (4) - 12.04.2024 23:08 [05:12:34]1206 (1) - 0 [05:12:34]OFD Sender: Remove packet 28809 [05:12:34]ProducePacketName [05:12:34]name=ofd_packets/00028809 [05:12:34]NVStorageDeleteData [05:12:34]Write to MH i2c: 01 00 00 F4 1A 0E [05:12:34]Write i2c OK [05:12:34]MH_I2C_Read... [05:12:34]Read from MH i2c: 01 [05:12:34]MH_I2C_Read... [05:12:34]Read from MH i2c: 01 07 00 [05:12:34]MH_I2C_Read... [05:12:34]Read from MH i2c: 01 07 00 F4 1A 00 00 00 00 00 C6 0C E7 [05:12:34]RasterBufferAndPrint [05:12:34]line [05:12:34]line [05:12:34]line [05:12:34]line [05:12:34]line [05:12:34]written 0, free lines is 3275 [05:12:34]MH_Cut [05:12:34]Write to MH i2c: D1 01 00 FB 1A 01 E7 [05:12:34]Write i2c OK [05:12:34]MH_I2C_Read... [05:12:34]Read from MH i2c: D1 [05:12:34]MH_I2C_Read... [05:12:34]Read from MH i2c: D1 01 00 [05:12:34]MH_I2C_Read... [05:12:34]Read from MH i2c: D1 01 00 FB 1A 00 E6 [05:12:34]Write to MH i2c: 01 00 00 FC 1A 16 [05:12:34]Write i2c OK [05:12:34]MH_I2C_Read... [05:12:35]OFD Sender: No OFD packet to send [05:12:35]*** Cut start [05:12:35]*** Partial cut [05:12:35]*** CUTSNS_PIN = 1 [05:12:35]*** CUTSNS_PIN = 0 [05:12:35]*** Brake cut motor [05:12:36]Read from MH i2c: 01 [05:12:36]MH_I2C_Read... [05:12:36]*** Stop cut motor [05:12:36]*** Cut end [05:12:36]Read from MH i2c: 01 07 00 [05:12:36]MH_I2C_Read... [05:12:36]Read from MH i2c: 01 07 00 FC 1A 00 00 00 00 00 FF 0F 2B [05:12:36]process_action close_receipt done [05:12:36]requested_data is exist [05:12:36]produce_requested_data [05:12:36]requested_item fm.sn is exist - process it [05:12:36]wFMCommunicate request_size=4 [05:12:36]MH_SAM_APDU [05:12:36]CAPDU: 80 11 00 00 [05:12:36]Write to MH i2c: E2 08 00 FD 1A 80 11 00 00 00 00 00 00 91 [05:12:36]Write i2c OK [05:12:36]MH_I2C_Read... [05:12:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:12:36]Read from MH i2c: E2 [05:12:36]MH_I2C_Read... [05:12:36]Read from MH i2c: E2 17 00 [05:12:36]MH_I2C_Read... [05:12:36]Read from MH i2c: E2 17 00 FD 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E0 [05:12:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [05:12:36]wFMCommunicate OK [05:12:36]requested_item fd.num is exist - process it [05:12:36]SAM_PROTO_GetFieldsCounters [05:12:36]wFMCommunicate request_size=4 [05:12:36]MH_SAM_APDU [05:12:36]CAPDU: 80 13 00 00 [05:12:36]Write to MH i2c: E2 08 00 FE 1A 80 13 00 00 00 00 00 00 94 [05:12:36]Write i2c OK [05:12:36]MH_I2C_Read... [05:12:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:12:36]Read from MH i2c: E2 [05:12:36]MH_I2C_Read... [05:12:36]Read from MH i2c: E2 62 00 [05:12:36]MH_I2C_Read... [05:12:36]Read from MH i2c: E2 62 00 FE 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 89 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [05:12:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 89 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:12:36]wFMCommunicate OK [05:12:36]SAM_PROTO_GetFieldsCounters done [05:12:36]requested_item shift.num is exist - process it [05:12:36]requested_item shift.opened is exist - process it [05:12:36]req_shift_opened [05:12:36]FM_GetShiftState [05:12:36]SAM_PROTO_GetShiftState [05:12:36]wFMCommunicate request_size=4 [05:12:36]MH_SAM_APDU [05:12:36]CAPDU: 80 13 01 00 [05:12:36]Write to MH i2c: E2 08 00 FF 1A 80 13 01 00 00 00 00 00 96 [05:12:36]Write i2c OK [05:12:36]MH_I2C_Read... [05:12:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:12:36]Read from MH i2c: E2 [05:12:36]MH_I2C_Read... [05:12:36]Read from MH i2c: E2 0E 00 [05:12:36]MH_I2C_Read... [05:12:36]Read from MH i2c: E2 0E 00 FF 1A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 AF [05:12:36]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [05:12:36]wFMCommunicate OK [05:12:36]SAM_PROTO_GetShiftState done [05:12:36]FM_GetShiftState done [05:12:36]req_shift_opened done [05:12:36]requested_item shift.open_date is exist - process it [05:12:36]req_shift_open_date [05:12:36]req_shift_open_date done [05:12:36]produce_requested_data done [05:12:36]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28809,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [05:12:36]process_action_free close_receipt [05:12:36]json_value_free [05:12:36]json_value_free done [05:12:36]process_json_proto returns [05:12:36]Send response to host [05:12:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28809,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [05:12:36]free response buf [05:12:36]execute_script done [05:12:36]execute_script returns [05:12:36]free content buf [05:12:36]Sock 9.Close socket [05:12:36]Sock 9.Thread stoped [05:12:40]OFD Sender: No OFD packet to send [05:12:45]OFD Sender: No OFD packet to send [05:12:50]OFD Sender: No OFD packet to send [05:12:55]OFD Sender: No OFD packet to send [05:13:00]OFD Sender: No OFD packet to send [05:13:05]OFD Sender: No OFD packet to send [05:13:10]OFD Sender: No OFD packet to send [05:13:15]OFD Sender: No OFD packet to send [05:13:20]OFD Sender: No OFD packet to send [05:13:25]OFD Sender: No OFD packet to send [05:13:30]OFD Sender: No OFD packet to send [05:13:35]OFD Sender: No OFD packet to send [05:13:40]OFD Sender: No OFD packet to send [05:13:45]OFD Sender: No OFD packet to send [05:13:50]OFD Sender: No OFD packet to send [05:13:55]OFD Sender: No OFD packet to send [05:14:00]OFD Sender: No OFD packet to send [05:14:05]OFD Sender: No OFD packet to send [05:14:10]OFD Sender: No OFD packet to send [05:14:15]OFD Sender: No OFD packet to send [05:14:20]OFD Sender: No OFD packet to send [05:14:25]OFD Sender: No OFD packet to send [05:14:30]OFD Sender: No OFD packet to send [05:14:35]OFD Sender: No OFD packet to send [05:14:40]OFD Sender: No OFD packet to send [05:14:45]OFD Sender: No OFD packet to send [05:14:50]OFD Sender: No OFD packet to send [05:14:55]OFD Sender: No OFD packet to send [05:15:00]OFD Sender: No OFD packet to send [05:15:05]OFD Sender: No OFD packet to send [05:15:10]OFD Sender: No OFD packet to send [05:15:15]OFD Sender: No OFD packet to send [05:15:20]OFD Sender: No OFD packet to send [05:15:25]OFD Sender: No OFD packet to send [05:15:30]OFD Sender: No OFD packet to send [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:15:55]OFD Sender: No OFD packet to send [05:16:00]OFD Sender: No OFD packet to send [05:16:05]OFD Sender: No OFD packet to send [05:16:10]OFD Sender: No OFD packet to send [05:16:15]OFD Sender: No OFD packet to send [05:16:20]OFD Sender: No OFD packet to send [05:16:25]OFD Sender: No OFD packet to send [05:16:30]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:45]OFD Sender: No OFD packet to send [05:16:50]OFD Sender: No OFD packet to send [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:25]OFD Sender: No OFD packet to send [05:17:30]OFD Sender: No OFD packet to send [05:17:35]OFD Sender: No OFD packet to send [05:17:40]OFD Sender: No OFD packet to send [05:17:45]OFD Sender: No OFD packet to send [05:17:50]OFD Sender: No OFD packet to send [05:17:55]OFD Sender: No OFD packet to send [05:18:00]OFD Sender: No OFD packet to send [05:18:05]OFD Sender: No OFD packet to send [05:18:10]OFD Sender: No OFD packet to send [05:18:15]OFD Sender: No OFD packet to send [05:18:20]OFD Sender: No OFD packet to send [05:18:25]OFD Sender: No OFD packet to send [05:18:30]OFD Sender: No OFD packet to send [05:18:35]OFD Sender: No OFD packet to send [05:18:40]OFD Sender: No OFD packet to send [05:18:45]OFD Sender: No OFD packet to send [05:18:50]OFD Sender: No OFD packet to send [05:18:55]OFD Sender: No OFD packet to send [05:19:00]OFD Sender: No OFD packet to send [05:19:05]OFD Sender: No OFD packet to send [05:19:10]OFD Sender: No OFD packet to send [05:19:15]OFD Sender: No OFD packet to send [05:19:20]OFD Sender: No OFD packet to send [05:19:25]OFD Sender: No OFD packet to send [05:19:30]OFD Sender: No OFD packet to send [05:19:35]OFD Sender: No OFD packet to send [05:19:40]OFD Sender: No OFD packet to send [05:19:45]OFD Sender: No OFD packet to send [05:19:50]OFD Sender: No OFD packet to send [05:19:55]OFD Sender: No OFD packet to send [05:20:00]OFD Sender: No OFD packet to send [05:20:05]OFD Sender: No OFD packet to send [05:20:10]OFD Sender: No OFD packet to send [05:20:15]OFD Sender: No OFD packet to send [05:20:20]OFD Sender: No OFD packet to send [05:20:25]OFD Sender: No OFD packet to send [05:20:30]OFD Sender: No OFD packet to send [05:20:35]OFD Sender: No OFD packet to send [05:20:40]OFD Sender: No OFD packet to send [05:20:45]OFD Sender: No OFD packet to send [05:20:50]OFD Sender: No OFD packet to send [05:20:55]OFD Sender: No OFD packet to send [05:21:00]OFD Sender: No OFD packet to send [05:21:05]OFD Sender: No OFD packet to send [05:21:10]OFD Sender: No OFD packet to send [05:21:15]OFD Sender: No OFD packet to send [05:21:20]OFD Sender: No OFD packet to send [05:21:25]OFD Sender: No OFD packet to send [05:21:30]OFD Sender: No OFD packet to send [05:21:35]OFD Sender: No OFD packet to send [05:21:40]OFD Sender: No OFD packet to send [05:21:45]OFD Sender: No OFD packet to send [05:21:50]OFD Sender: No OFD packet to send [05:21:55]OFD Sender: No OFD packet to send [05:22:00]OFD Sender: No OFD packet to send [05:22:05]OFD Sender: No OFD packet to send [05:22:10]OFD Sender: No OFD packet to send [05:22:15]OFD Sender: No OFD packet to send [05:22:20]OFD Sender: No OFD packet to send [05:22:25]OFD Sender: No OFD packet to send [05:22:30]OFD Sender: No OFD packet to send [05:22:35]OFD Sender: No OFD packet to send [05:22:40]OFD Sender: No OFD packet to send [05:22:45]OFD Sender: No OFD packet to send [05:22:50]OFD Sender: No OFD packet to send [05:22:55]OFD Sender: No OFD packet to send [05:23:00]OFD Sender: No OFD packet to send [05:23:05]OFD Sender: No OFD packet to send [05:23:10]OFD Sender: No OFD packet to send [05:23:15]OFD Sender: No OFD packet to send [05:23:20]OFD Sender: No OFD packet to send [05:23:25]OFD Sender: No OFD packet to send [05:23:30]OFD Sender: No OFD packet to send [05:23:35]OFD Sender: No OFD packet to send [05:23:40]OFD Sender: No OFD packet to send [05:23:45]OFD Sender: No OFD packet to send [05:23:50]OFD Sender: No OFD packet to send [05:23:55]OFD Sender: No OFD packet to send [05:24:00]OFD Sender: No OFD packet to send [05:24:05]OFD Sender: No OFD packet to send [05:24:10]OFD Sender: No OFD packet to send [05:24:15]OFD Sender: No OFD packet to send [05:24:20]OFD Sender: No OFD packet to send [05:24:25]OFD Sender: No OFD packet to send [05:24:30]OFD Sender: No OFD packet to send [05:24:35]OFD Sender: No OFD packet to send [05:24:40]OFD Sender: No OFD packet to send [05:24:45]OFD Sender: No OFD packet to send [05:24:50]OFD Sender: No OFD packet to send [05:24:55]OFD Sender: No OFD packet to send [05:25:00]OFD Sender: No OFD packet to send [05:25:05]OFD Sender: No OFD packet to send [05:25:10]OFD Sender: No OFD packet to send [05:25:15]OFD Sender: No OFD packet to send [05:25:20]OFD Sender: No OFD packet to send [05:25:25]OFD Sender: No OFD packet to send [05:25:30]OFD Sender: No OFD packet to send [05:25:35]OFD Sender: No OFD packet to send [05:25:40]OFD Sender: No OFD packet to send [05:25:45]OFD Sender: No OFD packet to send [05:25:50]OFD Sender: No OFD packet to send [05:25:55]OFD Sender: No OFD packet to send [05:26:00]OFD Sender: No OFD packet to send [05:26:05]OFD Sender: No OFD packet to send [05:26:10]OFD Sender: No OFD packet to send [05:26:15]OFD Sender: No OFD packet to send [05:26:20]OFD Sender: No OFD packet to send [05:26:25]OFD Sender: No OFD packet to send [05:26:30]OFD Sender: No OFD packet to send [05:26:35]OFD Sender: No OFD packet to send [05:26:40]OFD Sender: No OFD packet to send [05:26:45]OFD Sender: No OFD packet to send [05:26:50]OFD Sender: No OFD packet to send [05:26:55]OFD Sender: No OFD packet to send [05:27:00]OFD Sender: No OFD packet to send [05:27:05]OFD Sender: No OFD packet to send [05:27:10]OFD Sender: No OFD packet to send [05:27:15]OFD Sender: No OFD packet to send [05:27:20]OFD Sender: No OFD packet to send [05:27:25]OFD Sender: No OFD packet to send [05:27:30]OFD Sender: No OFD packet to send [05:27:35]OFD Sender: No OFD packet to send [05:27:40]OFD Sender: No OFD packet to send [05:27:45]OFD Sender: No OFD packet to send [05:27:50]OFD Sender: No OFD packet to send [05:27:55]OFD Sender: No OFD packet to send [05:28:00]OFD Sender: No OFD packet to send [05:28:05]OFD Sender: No OFD packet to send [05:28:10]OFD Sender: No OFD packet to send [05:28:15]OFD Sender: No OFD packet to send [05:28:20]OFD Sender: No OFD packet to send [05:28:25]OFD Sender: No OFD packet to send [05:28:30]OFD Sender: No OFD packet to send [05:28:35]OFD Sender: No OFD packet to send [05:28:40]OFD Sender: No OFD packet to send [05:28:45]OFD Sender: No OFD packet to send [05:28:50]OFD Sender: No OFD packet to send [05:28:55]OFD Sender: No OFD packet to send [05:29:00]OFD Sender: No OFD packet to send [05:29:05]OFD Sender: No OFD packet to send [05:29:10]OFD Sender: No OFD packet to send [05:29:15]OFD Sender: No OFD packet to send [05:29:20]OFD Sender: No OFD packet to send [05:29:25]OFD Sender: No OFD packet to send [05:29:30]OFD Sender: No OFD packet to send [05:29:35]OFD Sender: No OFD packet to send [05:29:40]OFD Sender: No OFD packet to send [05:29:45]OFD Sender: No OFD packet to send [05:29:50]OFD Sender: No OFD packet to send [05:29:55]OFD Sender: No OFD packet to send [05:30:00]OFD Sender: No OFD packet to send [05:30:05]OFD Sender: No OFD packet to send [05:30:10]OFD Sender: No OFD packet to send [05:30:15]OFD Sender: No OFD packet to send [05:30:20]OFD Sender: No OFD packet to send [05:30:25]OFD Sender: No OFD packet to send [05:30:30]OFD Sender: No OFD packet to send [05:30:35]OFD Sender: No OFD packet to send [05:30:40]OFD Sender: No OFD packet to send [05:30:46]OFD Sender: No OFD packet to send [05:30:51]OFD Sender: No OFD packet to send [05:30:56]OFD Sender: No OFD packet to send [05:31:01]OFD Sender: No OFD packet to send [05:31:06]OFD Sender: No OFD packet to send [05:31:11]OFD Sender: No OFD packet to send [05:31:16]OFD Sender: No OFD packet to send [05:31:21]OFD Sender: No OFD packet to send [05:31:26]OFD Sender: No OFD packet to send [05:31:31]OFD Sender: No OFD packet to send [05:31:36]OFD Sender: No OFD packet to send [05:31:41]OFD Sender: No OFD packet to send [05:31:46]OFD Sender: No OFD packet to send [05:31:51]OFD Sender: No OFD packet to send [05:31:56]OFD Sender: No OFD packet to send [05:32:01]OFD Sender: No OFD packet to send [05:32:06]OFD Sender: No OFD packet to send [05:32:11]OFD Sender: No OFD packet to send [05:32:16]OFD Sender: No OFD packet to send [05:32:21]OFD Sender: No OFD packet to send [05:32:26]OFD Sender: No OFD packet to send [05:32:31]OFD Sender: No OFD packet to send [05:32:36]OFD Sender: No OFD packet to send [05:32:41]OFD Sender: No OFD packet to send [05:32:46]OFD Sender: No OFD packet to send [05:32:51]OFD Sender: No OFD packet to send [05:32:56]OFD Sender: No OFD packet to send [05:33:01]OFD Sender: No OFD packet to send [05:33:06]OFD Sender: No OFD packet to send [05:33:11]OFD Sender: No OFD packet to send [05:33:16]OFD Sender: No OFD packet to send [05:33:21]OFD Sender: No OFD packet to send [05:33:26]OFD Sender: No OFD packet to send [05:33:31]OFD Sender: No OFD packet to send [05:33:36]OFD Sender: No OFD packet to send [05:33:41]OFD Sender: No OFD packet to send [05:33:46]OFD Sender: No OFD packet to send [05:33:51]OFD Sender: No OFD packet to send [05:33:56]OFD Sender: No OFD packet to send [05:34:01]OFD Sender: No OFD packet to send [05:34:06]OFD Sender: No OFD packet to send [05:34:11]OFD Sender: No OFD packet to send [05:34:16]OFD Sender: No OFD packet to send [05:34:21]OFD Sender: No OFD packet to send [05:34:26]OFD Sender: No OFD packet to send [05:34:31]OFD Sender: No OFD packet to send [05:34:36]OFD Sender: No OFD packet to send [05:34:41]OFD Sender: No OFD packet to send [05:34:46]OFD Sender: No OFD packet to send [05:34:51]OFD Sender: No OFD packet to send [05:34:56]OFD Sender: No OFD packet to send [05:35:01]OFD Sender: No OFD packet to send [05:35:06]OFD Sender: No OFD packet to send [05:35:11]OFD Sender: No OFD packet to send [05:35:16]OFD Sender: No OFD packet to send [05:35:21]OFD Sender: No OFD packet to send [05:35:26]OFD Sender: No OFD packet to send [05:35:31]OFD Sender: No OFD packet to send [05:35:36]OFD Sender: No OFD packet to send [05:35:41]OFD Sender: No OFD packet to send [05:35:46]OFD Sender: No OFD packet to send [05:35:51]OFD Sender: No OFD packet to send [05:35:56]OFD Sender: No OFD packet to send [05:36:01]OFD Sender: No OFD packet to send [05:36:06]OFD Sender: No OFD packet to send [05:36:11]OFD Sender: No OFD packet to send [05:36:16]OFD Sender: No OFD packet to send [05:36:21]OFD Sender: No OFD packet to send [05:36:26]OFD Sender: No OFD packet to send [05:36:31]OFD Sender: No OFD packet to send [05:36:36]OFD Sender: No OFD packet to send [05:36:41]OFD Sender: No OFD packet to send [05:36:46]OFD Sender: No OFD packet to send [05:36:51]OFD Sender: No OFD packet to send [05:36:56]OFD Sender: No OFD packet to send [05:37:01]OFD Sender: No OFD packet to send [05:37:06]OFD Sender: No OFD packet to send [05:37:11]OFD Sender: No OFD packet to send [05:37:16]OFD Sender: No OFD packet to send [05:37:21]OFD Sender: No OFD packet to send [05:37:26]OFD Sender: No OFD packet to send [05:37:31]OFD Sender: No OFD packet to send [05:37:36]OFD Sender: No OFD packet to send [05:37:41]OFD Sender: No OFD packet to send [05:37:46]OFD Sender: No OFD packet to send [05:37:51]OFD Sender: No OFD packet to send [05:37:56]OFD Sender: No OFD packet to send [05:38:01]OFD Sender: No OFD packet to send [05:38:06]OFD Sender: No OFD packet to send [05:38:11]OFD Sender: No OFD packet to send [05:38:16]OFD Sender: No OFD packet to send [05:38:21]OFD Sender: No OFD packet to send [05:38:26]OFD Sender: No OFD packet to send [05:38:31]OFD Sender: No OFD packet to send [05:38:36]OFD Sender: No OFD packet to send [05:38:41]OFD Sender: No OFD packet to send [05:38:46]OFD Sender: No OFD packet to send [05:38:51]OFD Sender: No OFD packet to send [05:38:56]OFD Sender: No OFD packet to send [05:39:01]OFD Sender: No OFD packet to send [05:39:06]OFD Sender: No OFD packet to send [05:39:11]OFD Sender: No OFD packet to send [05:39:16]OFD Sender: No OFD packet to send [05:39:21]OFD Sender: No OFD packet to send [05:39:26]OFD Sender: No OFD packet to send [05:39:31]OFD Sender: No OFD packet to send [05:39:36]OFD Sender: No OFD packet to send [05:39:41]OFD Sender: No OFD packet to send [05:39:46]OFD Sender: No OFD packet to send [05:39:51]OFD Sender: No OFD packet to send [05:39:56]OFD Sender: No OFD packet to send [05:39:59]accept exits with 10 [05:39:59]New connection [05:39:59]New thread 3066785124 created [05:39:59]Thread 3066928484 joined [05:39:59]Waiting for new connection... [05:39:59] Sock 10.Parse request [05:39:59]Sock 10.Check first char [05:39:59]Sock 10.First char is OK [05:39:59]request: POST /json_proto HTTP/1.0 [05:39:59]Method: POST [05:39:59]URL: /json_proto [05:39:59]Method is POST - this is cgi request [05:39:59]url: /json_proto [05:39:59]query_string will be loaded in cgi processing [05:39:59]execute_cgi json_proto POST (null) [05:39:59]execute_cgi path=json_proto method=POST [05:39:59]POST find Content-Length [05:39:59]Host: 172.17.33.3:8080 [05:39:59]Content-Length: 1196 [05:39:59]Content-Type: application/json [05:39:59] [05:39:59]POST finish read [05:39:59]Found Content-Length = 1196 [05:39:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347156\u000A13.04.2024 05:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 643.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3857378\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:39:59]execute_script... [05:39:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347156\u000A13.04.2024 05:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 643.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3857378\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:39:59]POST & json_proto [05:39:59]process_json_proto [05:39:59]json parsed OK: [05:39:59]protocol is kg_v1.0 [05:39:59]action value=print_text [05:39:59]process_action print_text [05:39:59]cmd_print_text [05:39:59]ExternCall_PrintAddStr [05:39:59]wPrintStart [05:39:59]Write to MH i2c: 01 00 00 00 1B 1B [05:39:59]Write i2c OK [05:39:59]MH_I2C_Read... [05:39:59]Read from MH i2c: 01 [05:39:59]MH_I2C_Read... [05:39:59]Read from MH i2c: 01 07 00 [05:39:59]MH_I2C_Read... [05:39:59]Read from MH i2c: 01 07 00 00 1B 00 00 00 00 00 FF 0F 30 [05:39:59]RasterBufferAndPrint [05:39:59]line *****ТОВАРНЫЙ ЧЕК***** [05:39:59]line АЗС 108 [05:39:59]line Партнер нефть [05:39:59]line 02508201610067 [05:39:59]line Кассир : Шадыканова Ж. [05:39:59]line Счет N : (1)347156 [05:39:59]line 13.04.2024 05:21 [05:39:59]line ПРОДАЖА [05:39:59]line ТРК (МРК, ГНК): 42 [05:39:59]line Вид ГСМ : 2710124130 [05:39:59]line Аи-92-К-5 [05:39:59]line 10.000 x 64.30 [05:39:59]line ИТОГ: 643.00 [05:39:59]line Тип оплаты: Талоны: Партнер нефть [05:39:59]line 3857378 [05:39:59]line ______________________ [05:39:59]line (подпись) [05:39:59]written 0, free lines is 4095 [05:40:00]Write to MH i2c: 01 00 00 15 1B 30 [05:40:00]Write i2c OK [05:40:00]MH_I2C_Read... [05:40:00]Read from MH i2c: 01 [05:40:00]MH_I2C_Read... [05:40:00]Read from MH i2c: 01 07 00 [05:40:00]MH_I2C_Read... [05:40:00]Read from MH i2c: 01 07 00 15 1B 00 00 00 00 00 F5 0D 39 [05:40:00]RasterBufferAndPrint [05:40:00]line [05:40:00]line [05:40:00]line [05:40:00]line [05:40:00]line [05:40:00]written 0, free lines is 3575 [05:40:00]MH_Cut [05:40:00]Write to MH i2c: D1 01 00 1C 1B 01 09 [05:40:00]Write i2c OK [05:40:00]MH_I2C_Read... [05:40:00]Read from MH i2c: D1 [05:40:00]MH_I2C_Read... [05:40:00]Read from MH i2c: D1 01 00 [05:40:00]MH_I2C_Read... [05:40:00]Read from MH i2c: D1 01 00 1C 1B 00 08 [05:40:00]Write to MH i2c: 01 00 00 1D 1B 38 [05:40:00]Write i2c OK [05:40:00]MH_I2C_Read... [05:40:00]*** Cut start [05:40:00]*** Partial cut [05:40:00]*** CUTSNS_PIN = 1 [05:40:00]*** CUTSNS_PIN = 0 [05:40:00]*** Brake cut motor [05:40:01]Read from MH i2c: 01 [05:40:01]MH_I2C_Read... [05:40:01]*** Stop cut motor [05:40:01]*** Cut end [05:40:01]Read from MH i2c: 01 07 00 [05:40:01]MH_I2C_Read... [05:40:01]Read from MH i2c: 01 07 00 1D 1B 00 00 00 00 00 FF 0F 4D [05:40:01]process_action print_text done [05:40:01]requested_data is exist [05:40:01]produce_requested_data [05:40:01]requested_item fm.sn is exist - process it [05:40:01]wFMCommunicate request_size=4 [05:40:01]MH_SAM_APDU [05:40:01]CAPDU: 80 11 00 00 [05:40:01]Write to MH i2c: E2 08 00 1E 1B 80 11 00 00 00 00 00 00 B3 [05:40:01]Write i2c OK [05:40:01]MH_I2C_Read... [05:40:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:40:01]Read from MH i2c: E2 [05:40:01]MH_I2C_Read... [05:40:01]Read from MH i2c: E2 17 00 [05:40:01]MH_I2C_Read... [05:40:01]Read from MH i2c: E2 17 00 1E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 02 [05:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [05:40:01]wFMCommunicate OK [05:40:01]requested_item fd.num is exist - process it [05:40:01]SAM_PROTO_GetFieldsCounters [05:40:01]wFMCommunicate request_size=4 [05:40:01]MH_SAM_APDU [05:40:01]CAPDU: 80 13 00 00 [05:40:01]Write to MH i2c: E2 08 00 1F 1B 80 13 00 00 00 00 00 00 B6 [05:40:01]Write i2c OK [05:40:01]MH_I2C_Read... [05:40:01]OFD Sender: No OFD packet to send [05:40:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:40:01]Read from MH i2c: E2 [05:40:01]MH_I2C_Read... [05:40:01]Read from MH i2c: E2 62 00 [05:40:01]MH_I2C_Read... [05:40:01]Read from MH i2c: E2 62 00 1F 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 89 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [05:40:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 89 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:40:01]wFMCommunicate OK [05:40:01]SAM_PROTO_GetFieldsCounters done [05:40:01]requested_item shift.num is exist - process it [05:40:01]requested_item shift.opened is exist - process it [05:40:01]req_shift_opened [05:40:01]FM_GetShiftState [05:40:01]SAM_PROTO_GetShiftState [05:40:01]wFMCommunicate request_size=4 [05:40:01]MH_SAM_APDU [05:40:01]CAPDU: 80 13 01 00 [05:40:01]Write to MH i2c: E2 08 00 20 1B 80 13 01 00 00 00 00 00 B8 [05:40:01]Write i2c OK [05:40:01]MH_I2C_Read... [05:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:40:01]Read from MH i2c: E2 [05:40:01]MH_I2C_Read... [05:40:01]Read from MH i2c: E2 0E 00 [05:40:01]MH_I2C_Read... [05:40:01]Read from MH i2c: E2 0E 00 20 1B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D1 [05:40:01]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [05:40:01]wFMCommunicate OK [05:40:01]SAM_PROTO_GetShiftState done [05:40:01]FM_GetShiftState done [05:40:01]req_shift_opened done [05:40:01]requested_item shift.open_date is exist - process it [05:40:01]req_shift_open_date [05:40:01]req_shift_open_date done [05:40:01]produce_requested_data done [05:40:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28809,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [05:40:01]process_action_free print_text [05:40:01]json_value_free [05:40:01]json_value_free done [05:40:01]process_json_proto returns [05:40:01]Send response to host [05:40:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28809,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [05:40:01]free response buf [05:40:01]execute_script done [05:40:01]execute_script returns [05:40:01]free content buf [05:40:01]Sock 10.Close socket [05:40:01]Sock 10.Thread stoped [05:40:06]OFD Sender: No OFD packet to send [05:40:11]OFD Sender: No OFD packet to send [05:40:16]OFD Sender: No OFD packet to send [05:40:21]OFD Sender: No OFD packet to send [05:40:26]OFD Sender: No OFD packet to send [05:40:31]OFD Sender: No OFD packet to send [05:40:36]OFD Sender: No OFD packet to send [05:40:41]OFD Sender: No OFD packet to send [05:40:46]OFD Sender: No OFD packet to send [05:40:51]OFD Sender: No OFD packet to send [05:40:56]OFD Sender: No OFD packet to send [05:41:01]OFD Sender: No OFD packet to send [05:41:06]OFD Sender: No OFD packet to send [05:41:11]OFD Sender: No OFD packet to send [05:41:16]OFD Sender: No OFD packet to send [05:41:21]OFD Sender: No OFD packet to send [05:41:26]OFD Sender: No OFD packet to send [05:41:31]OFD Sender: No OFD packet to send [05:41:36]OFD Sender: No OFD packet to send [05:41:41]OFD Sender: No OFD packet to send [05:41:46]OFD Sender: No OFD packet to send [05:41:51]OFD Sender: No OFD packet to send [05:41:56]OFD Sender: No OFD packet to send [05:42:01]OFD Sender: No OFD packet to send [05:42:06]OFD Sender: No OFD packet to send [05:42:11]OFD Sender: No OFD packet to send [05:42:16]OFD Sender: No OFD packet to send [05:42:21]OFD Sender: No OFD packet to send [05:42:26]OFD Sender: No OFD packet to send [05:42:31]OFD Sender: No OFD packet to send [05:42:36]OFD Sender: No OFD packet to send [05:42:41]OFD Sender: No OFD packet to send [05:42:46]OFD Sender: No OFD packet to send [05:42:51]OFD Sender: No OFD packet to send [05:42:56]OFD Sender: No OFD packet to send [05:43:01]OFD Sender: No OFD packet to send [05:43:06]OFD Sender: No OFD packet to send [05:43:11]OFD Sender: No OFD packet to send [05:43:16]OFD Sender: No OFD packet to send [05:43:21]OFD Sender: No OFD packet to send [05:43:26]OFD Sender: No OFD packet to send [05:43:31]OFD Sender: No OFD packet to send [05:43:36]OFD Sender: No OFD packet to send [05:43:41]OFD Sender: No OFD packet to send [05:43:46]OFD Sender: No OFD packet to send [05:43:51]OFD Sender: No OFD packet to send [05:43:56]OFD Sender: No OFD packet to send [05:44:01]OFD Sender: No OFD packet to send [05:44:06]OFD Sender: No OFD packet to send [05:44:11]OFD Sender: No OFD packet to send [05:44:16]OFD Sender: No OFD packet to send [05:44:21]OFD Sender: No OFD packet to send [05:44:26]OFD Sender: No OFD packet to send [05:44:31]OFD Sender: No OFD packet to send [05:44:36]OFD Sender: No OFD packet to send [05:44:41]OFD Sender: No OFD packet to send [05:44:46]OFD Sender: No OFD packet to send [05:44:51]OFD Sender: No OFD packet to send [05:44:56]OFD Sender: No OFD packet to send [05:45:01]OFD Sender: No OFD packet to send [05:45:06]OFD Sender: No OFD packet to send [05:45:11]OFD Sender: No OFD packet to send [05:45:16]OFD Sender: No OFD packet to send [05:45:21]OFD Sender: No OFD packet to send [05:45:26]OFD Sender: No OFD packet to send [05:45:31]OFD Sender: No OFD packet to send [05:45:36]OFD Sender: No OFD packet to send [05:45:41]OFD Sender: No OFD packet to send [05:45:46]OFD Sender: No OFD packet to send [05:45:51]OFD Sender: No OFD packet to send [05:45:56]OFD Sender: No OFD packet to send [05:46:01]OFD Sender: No OFD packet to send [05:46:06]OFD Sender: No OFD packet to send [05:46:11]OFD Sender: No OFD packet to send [05:46:16]OFD Sender: No OFD packet to send [05:46:21]OFD Sender: No OFD packet to send [05:46:26]OFD Sender: No OFD packet to send [05:46:31]OFD Sender: No OFD packet to send [05:46:36]OFD Sender: No OFD packet to send [05:46:41]OFD Sender: No OFD packet to send [05:46:46]OFD Sender: No OFD packet to send [05:46:51]OFD Sender: No OFD packet to send [05:46:56]OFD Sender: No OFD packet to send [05:47:01]OFD Sender: No OFD packet to send [05:47:06]OFD Sender: No OFD packet to send [05:47:11]OFD Sender: No OFD packet to send [05:47:16]OFD Sender: No OFD packet to send [05:47:21]OFD Sender: No OFD packet to send [05:47:26]OFD Sender: No OFD packet to send [05:47:31]OFD Sender: No OFD packet to send [05:47:36]OFD Sender: No OFD packet to send [05:47:41]OFD Sender: No OFD packet to send [05:47:46]OFD Sender: No OFD packet to send [05:47:51]OFD Sender: No OFD packet to send [05:47:56]OFD Sender: No OFD packet to send [05:48:01]OFD Sender: No OFD packet to send [05:48:06]OFD Sender: No OFD packet to send [05:48:11]OFD Sender: No OFD packet to send [05:48:16]OFD Sender: No OFD packet to send [05:48:21]OFD Sender: No OFD packet to send [05:48:26]OFD Sender: No OFD packet to send [05:48:31]OFD Sender: No OFD packet to send [05:48:36]OFD Sender: No OFD packet to send [05:48:41]OFD Sender: No OFD packet to send [05:48:46]OFD Sender: No OFD packet to send [05:48:51]OFD Sender: No OFD packet to send [05:48:56]OFD Sender: No OFD packet to send [05:49:01]OFD Sender: No OFD packet to send [05:49:06]OFD Sender: No OFD packet to send [05:49:11]OFD Sender: No OFD packet to send [05:49:16]OFD Sender: No OFD packet to send [05:49:21]OFD Sender: No OFD packet to send [05:49:26]OFD Sender: No OFD packet to send [05:49:31]OFD Sender: No OFD packet to send [05:49:36]OFD Sender: No OFD packet to send [05:49:41]OFD Sender: No OFD packet to send [05:49:46]OFD Sender: No OFD packet to send [05:49:51]OFD Sender: No OFD packet to send [05:49:56]OFD Sender: No OFD packet to send [05:50:01]OFD Sender: No OFD packet to send [05:50:06]OFD Sender: No OFD packet to send [05:50:11]OFD Sender: No OFD packet to send [05:50:16]OFD Sender: No OFD packet to send [05:50:21]OFD Sender: No OFD packet to send [05:50:26]OFD Sender: No OFD packet to send [05:50:31]OFD Sender: No OFD packet to send [05:50:36]OFD Sender: No OFD packet to send [05:50:41]OFD Sender: No OFD packet to send [05:50:46]OFD Sender: No OFD packet to send [05:50:51]OFD Sender: No OFD packet to send [05:50:56]OFD Sender: No OFD packet to send [05:51:01]OFD Sender: No OFD packet to send [05:51:06]OFD Sender: No OFD packet to send [05:51:11]OFD Sender: No OFD packet to send [05:51:16]OFD Sender: No OFD packet to send [05:51:21]OFD Sender: No OFD packet to send [05:51:26]OFD Sender: No OFD packet to send [05:51:31]OFD Sender: No OFD packet to send [05:51:36]OFD Sender: No OFD packet to send [05:51:41]OFD Sender: No OFD packet to send [05:51:46]OFD Sender: No OFD packet to send [05:51:51]OFD Sender: No OFD packet to send [05:51:56]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:22]OFD Sender: No OFD packet to send [05:53:27]OFD Sender: No OFD packet to send [05:53:32]OFD Sender: No OFD packet to send [05:53:37]OFD Sender: No OFD packet to send [05:53:42]OFD Sender: No OFD packet to send [05:53:47]OFD Sender: No OFD packet to send [05:53:52]OFD Sender: No OFD packet to send [05:53:57]OFD Sender: No OFD packet to send [05:54:02]OFD Sender: No OFD packet to send [05:54:07]OFD Sender: No OFD packet to send [05:54:12]OFD Sender: No OFD packet to send [05:54:17]OFD Sender: No OFD packet to send [05:54:22]OFD Sender: No OFD packet to send [05:54:27]OFD Sender: No OFD packet to send [05:54:32]OFD Sender: No OFD packet to send [05:54:37]OFD Sender: No OFD packet to send [05:54:42]OFD Sender: No OFD packet to send [05:54:47]OFD Sender: No OFD packet to send [05:54:52]OFD Sender: No OFD packet to send [05:54:57]OFD Sender: No OFD packet to send [05:55:02]OFD Sender: No OFD packet to send [05:55:07]OFD Sender: No OFD packet to send [05:55:12]OFD Sender: No OFD packet to send [05:55:17]OFD Sender: No OFD packet to send [05:55:22]OFD Sender: No OFD packet to send [05:55:27]OFD Sender: No OFD packet to send [05:55:32]OFD Sender: No OFD packet to send [05:55:37]OFD Sender: No OFD packet to send [05:55:42]OFD Sender: No OFD packet to send [05:55:47]OFD Sender: No OFD packet to send [05:55:52]OFD Sender: No OFD packet to send [05:55:57]OFD Sender: No OFD packet to send [05:56:02]OFD Sender: No OFD packet to send [05:56:07]OFD Sender: No OFD packet to send [05:56:12]OFD Sender: No OFD packet to send [05:56:17]OFD Sender: No OFD packet to send [05:56:22]OFD Sender: No OFD packet to send [05:56:27]OFD Sender: No OFD packet to send [05:56:32]OFD Sender: No OFD packet to send [05:56:37]OFD Sender: No OFD packet to send [05:56:42]OFD Sender: No OFD packet to send [05:56:47]OFD Sender: No OFD packet to send [05:56:52]OFD Sender: No OFD packet to send [05:56:57]OFD Sender: No OFD packet to send [05:57:02]OFD Sender: No OFD packet to send [05:57:07]OFD Sender: No OFD packet to send [05:57:12]OFD Sender: No OFD packet to send [05:57:17]OFD Sender: No OFD packet to send [05:57:22]OFD Sender: No OFD packet to send [05:57:27]OFD Sender: No OFD packet to send [05:57:32]OFD Sender: No OFD packet to send [05:57:37]OFD Sender: No OFD packet to send [05:57:42]OFD Sender: No OFD packet to send [05:57:47]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:37]OFD Sender: No OFD packet to send [05:59:42]OFD Sender: No OFD packet to send [05:59:47]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:07]OFD Sender: No OFD packet to send [06:00:12]OFD Sender: No OFD packet to send [06:00:17]OFD Sender: No OFD packet to send [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:17]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:27]OFD Sender: No OFD packet to send [06:01:32]OFD Sender: No OFD packet to send [06:01:37]OFD Sender: No OFD packet to send [06:01:42]OFD Sender: No OFD packet to send [06:01:47]OFD Sender: No OFD packet to send [06:01:52]OFD Sender: No OFD packet to send [06:01:57]OFD Sender: No OFD packet to send [06:02:02]OFD Sender: No OFD packet to send [06:02:07]OFD Sender: No OFD packet to send [06:02:12]OFD Sender: No OFD packet to send [06:02:17]OFD Sender: No OFD packet to send [06:02:22]OFD Sender: No OFD packet to send [06:02:27]OFD Sender: No OFD packet to send [06:02:32]OFD Sender: No OFD packet to send [06:02:37]OFD Sender: No OFD packet to send [06:02:42]OFD Sender: No OFD packet to send [06:02:47]OFD Sender: No OFD packet to send [06:02:52]OFD Sender: No OFD packet to send [06:02:57]OFD Sender: No OFD packet to send [06:03:02]OFD Sender: No OFD packet to send [06:03:07]OFD Sender: No OFD packet to send [06:03:12]OFD Sender: No OFD packet to send [06:03:14]accept exits with 7 [06:03:14]New connection [06:03:14]New thread 3066928484 created [06:03:14]Thread 3066785124 joined [06:03:14]Waiting for new connection... [06:03:14] Sock 7.Parse request [06:03:14]Sock 7.Check first char [06:03:14]Sock 7.First char is OK [06:03:14]request: POST /json_proto HTTP/1.0 [06:03:14]Method: POST [06:03:14]URL: /json_proto [06:03:14]Method is POST - this is cgi request [06:03:14]url: /json_proto [06:03:14]query_string will be loaded in cgi processing [06:03:14]execute_cgi json_proto POST (null) [06:03:14]execute_cgi path=json_proto method=POST [06:03:14]POST find Content-Length [06:03:14]Host: 172.17.33.3:8080 [06:03:14]Content-Length: 679 [06:03:14]Content-Type: application/json [06:03:14] [06:03:14]POST finish read [06:03:14]Found Content-Length = 679 [06:03:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347157", "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" : 72.40, "quantity" : 41.440, "sum" : 3000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:03:14]execute_script... [06:03: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)347157", "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" : 72.40, "quantity" : 41.440, "sum" : 3000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:03:14]POST & json_proto [06:03:14]process_json_proto [06:03:14]json parsed OK: [06:03:14]protocol is kg_v1.0 [06:03:14]action value=close_receipt [06:03:14]process_action close_receipt [06:03:14]cmd_close_receipt [06:03:14]MH_GetDate [06:03:14]Write to MH i2c: F0 00 00 21 1B 2B [06:03:14]Write i2c OK [06:03:14]MH_I2C_Read... [06:03:14]Read from MH i2c: F0 [06:03:14]MH_I2C_Read... [06:03:14]Read from MH i2c: F0 09 00 [06:03:14]MH_I2C_Read... [06:03:14]Read from MH i2c: F0 09 00 21 1B 00 25 20 1A 66 23 5B 8F 65 6B [06:03:14]GetLastDocTimeStamp 1712985155 [06:03:14]current date 1712988197 [06:03:14]FM_GetShiftState [06:03:14]SAM_PROTO_GetShiftState [06:03:14]wFMCommunicate request_size=4 [06:03:14]MH_SAM_APDU [06:03:14]CAPDU: 80 13 01 00 [06:03:14]Write to MH i2c: E2 08 00 22 1B 80 13 01 00 00 00 00 00 BA [06:03:14]Write i2c OK [06:03:14]MH_I2C_Read... [06:03:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:03:14]Read from MH i2c: E2 [06:03:14]MH_I2C_Read... [06:03:14]Read from MH i2c: E2 0E 00 [06:03:14]MH_I2C_Read... [06:03:14]Read from MH i2c: E2 0E 00 22 1B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D3 [06:03:14]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [06:03:14]wFMCommunicate OK [06:03:14]SAM_PROTO_GetShiftState done [06:03:14]FM_GetShiftState done [06:03:14]opened in 1712967615 [06:03:14]opened+sec_in_day 1713054015 [06:03:14]quantity*price = 300025 [06:03:14]sum+1 = 300027 [06:03:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.61 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 17 13.04.2024 06:03 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28810 ФПД: 25666673196002 1/tax-web-control/client/api/v1/ticket?date=20240413T060317&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28810&fm=25666673196002&tin=02508201610067®Number=0000138879044617&sum=300000 [06:03:15]StoreToDocumentArchive [06:03:15]shift 115 fd 28810 [06:03:15]save to /storage/0115/doc_00028810 [06:03:15]save last doc name /storage/0115/doc_00028810 to /storage/kkm_last_doc_name [06:03:15]save OK [06:03:15]Clear old archive folders... [06:03:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:03:15]tlvbuf is B6DA2010 [06:03:15]SAM_PROTO_ClearQueue [06:03:15]wFMCommunicate request_size=4 [06:03:15]MH_SAM_APDU [06:03:15]CAPDU: 80 09 00 00 [06:03:15]Write to MH i2c: E2 08 00 2F 1B 80 09 00 00 00 00 00 00 BC [06:03:15]Write i2c OK [06:03:15]MH_I2C_Read... [06:03:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:03:15]Read from MH i2c: E2 [06:03:15]MH_I2C_Read... [06:03:15]Read from MH i2c: E2 03 00 [06:03:15]MH_I2C_Read... [06:03:15]Read from MH i2c: E2 03 00 2F 1B 00 90 00 BE [06:03:15]RAPDU: 90 00 [06:03:15]wFMCommunicate OK [06:03:15]SAM_PROTO_ClearQueue done [06:03:15]KKMCreateOFDPacket [06:03:15]OFDProtocolAddRootSTLVToBuf [06:03:15]FM_MakeSignedData [06:03:15]FM_MakeSignedData [06:03:15]SAM_PROTO_SignData [06:03:15]wFMCommunicate request_size=4 [06:03:15]MH_SAM_APDU [06:03:15]CAPDU: 80 0D 01 02 [06:03:15]Write to MH i2c: E2 08 00 30 1B 80 0D 01 02 00 00 00 00 C4 [06:03:15]Write i2c OK [06:03:15]MH_I2C_Read... [06:03:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:03:16]Read from MH i2c: E2 [06:03:16]MH_I2C_Read... [06:03:16]Read from MH i2c: E2 03 00 [06:03:16]MH_I2C_Read... [06:03:16]Read from MH i2c: E2 03 00 30 1B 00 90 00 BF [06:03:16]RAPDU: 90 00 [06:03:16]wFMCommunicate OK [06:03:16]wFMCommunicate request_size=255 [06:03:16]MH_SAM_APDU [06:03:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 11 00 00 00 F4 03 04 00 25 20 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8A 70 00 00 35 04 06 00 17 57 FC F0 [06:03:16]Write to MH i2c: E2 02 01 31 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 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 11 00 00 00 F4 03 04 00 25 20 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8A 70 00 00 35 04 06 00 17 57 FC F0 00 00 99 [06:03:16]Write i2c OK [06:03:16]MH_I2C_Read... [06:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:03:16]Read from MH i2c: E2 [06:03:16]MH_I2C_Read... [06:03:16]Read from MH i2c: E2 03 00 [06:03:16]MH_I2C_Read... [06:03:16]Read from MH i2c: E2 03 00 31 1B 00 90 00 C0 [06:03:16]RAPDU: 90 00 [06:03:16]wFMCommunicate OK [06:03:16]wFMCommunicate request_size=7 [06:03:16]MH_SAM_APDU [06:03:16]CAPDU: 80 0D 02 02 02 3B E2 [06:03:16]Write to MH i2c: E2 0A 00 32 1B 80 0D 02 02 02 00 3B E2 00 00 E8 [06:03:16]Write i2c OK [06:03:16]MH_I2C_Read... [06:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:03:16]Read from MH i2c: E2 [06:03:16]MH_I2C_Read... [06:03:16]Read from MH i2c: E2 03 00 [06:03:16]MH_I2C_Read... [06:03:16]Read from MH i2c: E2 03 00 32 1B 00 90 00 C1 [06:03:16]RAPDU: 90 00 [06:03:16]wFMCommunicate OK [06:03:16]wFMCommunicate request_size=4 [06:03:16]MH_SAM_APDU [06:03:16]CAPDU: 80 0D 03 02 [06:03:16]Write to MH i2c: E2 08 00 33 1B 80 0D 03 02 00 00 00 00 C9 [06:03:16]Write i2c OK [06:03:16]MH_I2C_Read... [06:03:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:03:16]Read from MH i2c: E2 [06:03:16]MH_I2C_Read... [06:03:16]Read from MH i2c: E2 0B 00 [06:03:16]MH_I2C_Read... [06:03:16]Read from MH i2c: E2 0B 00 33 1B 00 6A FC EF 55 CE FA CA 87 90 00 8D [06:03:16]RAPDU: 6A FC EF 55 CE FA CA 87 90 00 [06:03:16]wFMCommunicate OK [06:03:16]SAM_PROTO_SignData done [06:03:16]FM_MakeSignedData done [06:03:16]CreateOFDProtocolMessage [06:03:16]wFMCommunicate request_size=4 [06:03:16]MH_SAM_APDU [06:03:16]CAPDU: 80 11 00 00 [06:03:16]Write to MH i2c: E2 08 00 34 1B 80 11 00 00 00 00 00 00 C9 [06:03:16]Write i2c OK [06:03:16]MH_I2C_Read... [06:03:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:16]Read from MH i2c: E2 [06:03:16]MH_I2C_Read... [06:03:16]Read from MH i2c: E2 17 00 [06:03:16]MH_I2C_Read... [06:03:16]Read from MH i2c: E2 17 00 34 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 18 [06:03:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:03:16]wFMCommunicate OK [06:03:16]CreateOFDProtocolMessage done [06:03:16]OFDSenderStorePacket 28810 [06:03:16]StoreOFDPacket docnum=28810 [06:03:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 A4 C7 04 01 3C 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 11 00 00 00 F4 03 04 00 25 20 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8A 70 00 00 35 04 06 00 17 57 FC F0 3B E2 6A FC EF 55 CE FA CA 87 [06:03:16]CheckFolder [06:03:16]dirname=/storage/ofd_packets [06:03:16]CheckFolder done [06:03:16]ProducePacketName [06:03:16]name=ofd_packets/00028810 [06:03:16]NVStorageSaveData ofd_packets/00028810 [06:03:16]File name is /storage/ofd_packets/00028810 [06:03:16]Write 298 bytes [06:03:16]NVStorageSaveData done [06:03:16]OFDSenderStorePacket done [06:03:16]KKMCreateOFDPacket done [06:03:16]NVStorageSaveData kkm_last_timestamp [06:03:16]File name is /storage/kkm_last_timestamp [06:03:16]Write 4 bytes [06:03:16]NVStorageSaveData done [06:03:16]ExternCall_PrintAddStr [06:03:16]wPrintStart [06:03:16]Write to MH i2c: 01 00 00 35 1B 50 [06:03:16]Write i2c OK [06:03:16]MH_I2C_Read... [06:03:16]Read from MH i2c: 01 [06:03:16]MH_I2C_Read... [06:03:16]Read from MH i2c: 01 07 00 [06:03:16]MH_I2C_Read... [06:03:16]Read from MH i2c: 01 07 00 35 1B 00 00 00 00 00 FF 0F 65 [06:03:16]RasterBufferAndPrint [06:03:16]line Счет N : (1)347157 [06:03:16]line ИНН: 02508201610067 [06:03:16]line Контрольно-Кассовый Чек [06:03:16]line ПРОДАЖА [06:03:16]line ТРК (МРК, ГНК) : 61 [06:03:16]line Товар: 2710194210 [06:03:16]line ДТ-К-5 [06:03:16]line 41.440 * 72.40 [06:03:16]line = 3000.26 [06:03:16]line НДС 12% НСП 1% [06:03:16]line > о реализуемом товаре [06:03:16]line ОКРУГЛЕНИЕ: -0.26 [06:03:16]line ИТОГО: 3000.00 [06:03:16]line Внесено: 3000.00 [06:03:16]line СДАЧА: 0.00 [06:03:16]line НСП 1% : 26.55 [06:03:16]line НДС 12% : 318.61 [06:03:16]line Наличными: 3000.00 [06:03:16]line Безнал.: 0.00 [06:03:16]line Место: АЗС № 108 "Партнер Нефть" [06:03:16]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [06:03:16]line СНО: Общий режим [06:03:16]line Чек 17 13.04.2024 06:03 [06:03:16]line Смена: 115 ФФД: 1.0 [06:03:16]line ЗНМ: 0300000027 [06:03:16]line РНМ: 0000138879044617 [06:03:16]line Версия ККМ: 001 [06:03:16]line ФМ: 0000000000963154 [06:03:16]line ФД: 28810 [06:03:16]line ФПД: 25666673196002 [06:03:16]line 1/tax-web-control/client/api/v1/ticket?date=20240413T060317&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28810&fm=25666673196002&tin=02508201610067®Number=0000138879044617&sum=300000 [06:03:16]OFD Sender: Processing packet 28810 [packets to send 8, broken 7] [06:03:16]ProducePacketName [06:03:16]name=ofd_packets/00028810 [06:03:16]OFD Sender: To server: pG, [06:03:16]CommunicateWithHost lk.salyk.kg:30040 [06:03:16]ConnectInit lk.salyk.kg [06:03:16]written 0, free lines is 4095 [06:03:16]Connected sock=9 [06:03: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 31 35 34 0C 01 00 00 A4 C7 04 01 3C 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 11 00 00 00 F4 03 04 00 25 20 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8A 70 00 00 35 04 06 00 17 57 FC F0 3B E2 6A FC EF 55 CE FA CA 87 [06:03:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DC DA 47 00 66 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 31 35 34 10 04 04 00 8A 70 00 00 F4 03 04 00 CD CA 19 66 B6 04 01 00 00 AD BE D6 31 B9 3A 2E A8 [06:03:17]CommunicateWithHost err = 0 [06:03:17]CheckOFDResponse [06:03:17]1017 (14) - 77093643461234 [06:03:17]1041 (16) - 0000000000963154 [06:03:17]1040 (4) - 28810 [06:03:17]1012 (4) - 12.04.2024 23:59 [06:03:17]1206 (1) - 0 [06:03:17]OFD Sender: Remove packet 28810 [06:03:17]ProducePacketName [06:03:17]name=ofd_packets/00028810 [06:03:17]NVStorageDeleteData [06:03:17]Write to MH i2c: 01 00 00 5F 1B 7A [06:03:17]Write i2c OK [06:03:17]MH_I2C_Read... [06:03:17]Read from MH i2c: 01 [06:03:17]MH_I2C_Read... [06:03:17]Read from MH i2c: 01 07 00 [06:03:17]MH_I2C_Read... [06:03:17]Read from MH i2c: 01 07 00 5F 1B 00 00 00 00 00 CB 0C 58 [06:03:17]RasterBufferAndPrint [06:03:17]line [06:03:17]line [06:03:17]line [06:03:17]line [06:03:17]line [06:03:17]written 0, free lines is 3280 [06:03:17]MH_Cut [06:03:17]Write to MH i2c: D1 01 00 66 1B 01 53 [06:03:17]Write i2c OK [06:03:17]MH_I2C_Read... [06:03:17]Read from MH i2c: D1 [06:03:17]MH_I2C_Read... [06:03:17]Read from MH i2c: D1 01 00 [06:03:17]MH_I2C_Read... [06:03:17]Read from MH i2c: D1 01 00 66 1B 00 52 [06:03:17]Write to MH i2c: 01 00 00 67 1B 82 [06:03:17]Write i2c OK [06:03:17]MH_I2C_Read... [06:03:17]OFD Sender: No OFD packet to send [06:03:18]*** Cut start [06:03:18]*** Partial cut [06:03:18]*** CUTSNS_PIN = 1 [06:03:18]*** CUTSNS_PIN = 0 [06:03:18]*** Brake cut motor [06:03:18]Read from MH i2c: 01 [06:03:18]MH_I2C_Read... [06:03:18]*** Stop cut motor [06:03:18]*** Cut end [06:03:18]Read from MH i2c: 01 07 00 [06:03:18]MH_I2C_Read... [06:03:18]Read from MH i2c: 01 07 00 67 1B 00 00 00 00 00 FF 0F 97 [06:03:18]process_action close_receipt done [06:03:18]requested_data is exist [06:03:18]produce_requested_data [06:03:18]requested_item fm.sn is exist - process it [06:03:18]wFMCommunicate request_size=4 [06:03:18]MH_SAM_APDU [06:03:18]CAPDU: 80 11 00 00 [06:03:18]Write to MH i2c: E2 08 00 68 1B 80 11 00 00 00 00 00 00 FD [06:03:18]Write i2c OK [06:03:18]MH_I2C_Read... [06:03:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:18]Read from MH i2c: E2 [06:03:18]MH_I2C_Read... [06:03:18]Read from MH i2c: E2 17 00 [06:03:18]MH_I2C_Read... [06:03:18]Read from MH i2c: E2 17 00 68 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4C [06:03:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:03:18]wFMCommunicate OK [06:03:18]requested_item fd.num is exist - process it [06:03:18]SAM_PROTO_GetFieldsCounters [06:03:18]wFMCommunicate request_size=4 [06:03:18]MH_SAM_APDU [06:03:18]CAPDU: 80 13 00 00 [06:03:18]Write to MH i2c: E2 08 00 69 1B 80 13 00 00 00 00 00 00 00 [06:03:18]Write i2c OK [06:03:18]MH_I2C_Read... [06:03:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:03:18]Read from MH i2c: E2 [06:03:18]MH_I2C_Read... [06:03:18]Read from MH i2c: E2 62 00 [06:03:18]MH_I2C_Read... [06:03:18]Read from MH i2c: E2 62 00 69 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8A 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [06:03: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8A 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:03:18]wFMCommunicate OK [06:03:18]SAM_PROTO_GetFieldsCounters done [06:03:18]requested_item shift.num is exist - process it [06:03:18]requested_item shift.opened is exist - process it [06:03:18]req_shift_opened [06:03:18]FM_GetShiftState [06:03:18]SAM_PROTO_GetShiftState [06:03:18]wFMCommunicate request_size=4 [06:03:18]MH_SAM_APDU [06:03:18]CAPDU: 80 13 01 00 [06:03:18]Write to MH i2c: E2 08 00 6A 1B 80 13 01 00 00 00 00 00 02 [06:03:18]Write i2c OK [06:03:18]MH_I2C_Read... [06:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:03:18]Read from MH i2c: E2 [06:03:18]MH_I2C_Read... [06:03:18]Read from MH i2c: E2 0E 00 [06:03:18]MH_I2C_Read... [06:03:18]Read from MH i2c: E2 0E 00 6A 1B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 1B [06:03:18]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [06:03:18]wFMCommunicate OK [06:03:18]SAM_PROTO_GetShiftState done [06:03:18]FM_GetShiftState done [06:03:18]req_shift_opened done [06:03:18]requested_item shift.open_date is exist - process it [06:03:18]req_shift_open_date [06:03:18]req_shift_open_date done [06:03:18]produce_requested_data done [06:03:18]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28810,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [06:03:18]process_action_free close_receipt [06:03:18]json_value_free [06:03:18]json_value_free done [06:03:18]process_json_proto returns [06:03:18]Send response to host [06:03:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28810,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [06:03:18]free response buf [06:03:18]execute_script done [06:03:18]execute_script returns [06:03:18]free content buf [06:03:18]Sock 7.Close socket [06:03:18]Sock 7.Thread stoped [06:03:22]OFD Sender: No OFD packet to send [06:03:27]OFD Sender: No OFD packet to send [06:03:32]OFD Sender: No OFD packet to send [06:03:37]OFD Sender: No OFD packet to send [06:03:42]OFD Sender: No OFD packet to send [06:03:47]OFD Sender: No OFD packet to send [06:03:52]OFD Sender: No OFD packet to send [06:03:57]OFD Sender: No OFD packet to send [06:04:02]OFD Sender: No OFD packet to send [06:04:07]OFD Sender: No OFD packet to send [06:04:12]OFD Sender: No OFD packet to send [06:04:17]OFD Sender: No OFD packet to send [06:04:22]OFD Sender: No OFD packet to send [06:04:27]OFD Sender: No OFD packet to send [06:04:32]OFD Sender: No OFD packet to send [06:04:37]OFD Sender: No OFD packet to send [06:04:42]OFD Sender: No OFD packet to send [06:04:47]OFD Sender: No OFD packet to send [06:04:52]OFD Sender: No OFD packet to send [06:04:57]OFD Sender: No OFD packet to send [06:05:02]OFD Sender: No OFD packet to send [06:05:07]OFD Sender: No OFD packet to send [06:05:12]OFD Sender: No OFD packet to send [06:05:17]OFD Sender: No OFD packet to send [06:05:22]OFD Sender: No OFD packet to send [06:05:27]OFD Sender: No OFD packet to send [06:05:32]OFD Sender: No OFD packet to send [06:05:37]OFD Sender: No OFD packet to send [06:05:42]OFD Sender: No OFD packet to send [06:05:47]OFD Sender: No OFD packet to send [06:05:52]OFD Sender: No OFD packet to send [06:05:57]OFD Sender: No OFD packet to send [06:06:02]OFD Sender: No OFD packet to send [06:06:07]OFD Sender: No OFD packet to send [06:06:12]OFD Sender: No OFD packet to send [06:06:17]OFD Sender: No OFD packet to send [06:06:22]OFD Sender: No OFD packet to send [06:06:27]OFD Sender: No OFD packet to send [06:06:32]OFD Sender: No OFD packet to send [06:06:37]OFD Sender: No OFD packet to send [06:06:42]OFD Sender: No OFD packet to send [06:06:47]OFD Sender: No OFD packet to send [06:06:52]OFD Sender: No OFD packet to send [06:06:57]OFD Sender: No OFD packet to send [06:07:02]OFD Sender: No OFD packet to send [06:07:07]OFD Sender: No OFD packet to send [06:07:12]OFD Sender: No OFD packet to send [06:07:17]OFD Sender: No OFD packet to send [06:07:22]OFD Sender: No OFD packet to send [06:07:27]OFD Sender: No OFD packet to send [06:07:32]OFD Sender: No OFD packet to send [06:07:37]OFD Sender: No OFD packet to send [06:07:42]OFD Sender: No OFD packet to send [06:07:47]OFD Sender: No OFD packet to send [06:07:52]OFD Sender: No OFD packet to send [06:07:57]OFD Sender: No OFD packet to send [06:08:02]OFD Sender: No OFD packet to send [06:08:07]OFD Sender: No OFD packet to send [06:08:12]OFD Sender: No OFD packet to send [06:08:17]OFD Sender: No OFD packet to send [06:08:22]OFD Sender: No OFD packet to send [06:08:27]OFD Sender: No OFD packet to send [06:08:32]OFD Sender: No OFD packet to send [06:08:37]OFD Sender: No OFD packet to send [06:08:42]OFD Sender: No OFD packet to send [06:08:47]OFD Sender: No OFD packet to send [06:08:52]OFD Sender: No OFD packet to send [06:08:57]OFD Sender: No OFD packet to send [06:09:02]OFD Sender: No OFD packet to send [06:09:07]OFD Sender: No OFD packet to send [06:09:12]OFD Sender: No OFD packet to send [06:09:17]OFD Sender: No OFD packet to send [06:09:22]OFD Sender: No OFD packet to send [06:09:27]OFD Sender: No OFD packet to send [06:09:32]OFD Sender: No OFD packet to send [06:09:37]OFD Sender: No OFD packet to send [06:09:42]OFD Sender: No OFD packet to send [06:09:47]OFD Sender: No OFD packet to send [06:09:52]OFD Sender: No OFD packet to send [06:09:57]OFD Sender: No OFD packet to send [06:10:02]OFD Sender: No OFD packet to send [06:10:07]OFD Sender: No OFD packet to send [06:10:12]OFD Sender: No OFD packet to send [06:10:17]OFD Sender: No OFD packet to send [06:10:22]OFD Sender: No OFD packet to send [06:10:27]OFD Sender: No OFD packet to send [06:10:32]OFD Sender: No OFD packet to send [06:10:37]OFD Sender: No OFD packet to send [06:10:42]OFD Sender: No OFD packet to send [06:10:47]OFD Sender: No OFD packet to send [06:10:52]OFD Sender: No OFD packet to send [06:10:57]OFD Sender: No OFD packet to send [06:11:02]OFD Sender: No OFD packet to send [06:11:07]OFD Sender: No OFD packet to send [06:11:12]OFD Sender: No OFD packet to send [06:11:17]OFD Sender: No OFD packet to send [06:11:22]OFD Sender: No OFD packet to send [06:11:27]OFD Sender: No OFD packet to send [06:11:32]OFD Sender: No OFD packet to send [06:11:37]OFD Sender: No OFD packet to send [06:11:42]OFD Sender: No OFD packet to send [06:11:47]OFD Sender: No OFD packet to send [06:11:52]OFD Sender: No OFD packet to send [06:11:57]OFD Sender: No OFD packet to send [06:12:02]OFD Sender: No OFD packet to send [06:12:07]OFD Sender: No OFD packet to send [06:12:12]OFD Sender: No OFD packet to send [06:12:17]OFD Sender: No OFD packet to send [06:12:22]OFD Sender: No OFD packet to send [06:12:27]OFD Sender: No OFD packet to send [06:12:32]OFD Sender: No OFD packet to send [06:12:37]OFD Sender: No OFD packet to send [06:12:42]OFD Sender: No OFD packet to send [06:12:48]OFD Sender: No OFD packet to send [06:12:53]OFD Sender: No OFD packet to send [06:12:58]OFD Sender: No OFD packet to send [06:13:03]OFD Sender: No OFD packet to send [06:13:08]OFD Sender: No OFD packet to send [06:13:13]OFD Sender: No OFD packet to send [06:13:18]OFD Sender: No OFD packet to send [06:13:23]OFD Sender: No OFD packet to send [06:13:28]OFD Sender: No OFD packet to send [06:13:33]OFD Sender: No OFD packet to send [06:13:38]OFD Sender: No OFD packet to send [06:13:43]OFD Sender: No OFD packet to send [06:13:48]OFD Sender: No OFD packet to send [06:13:53]OFD Sender: No OFD packet to send [06:13:58]OFD Sender: No OFD packet to send [06:14:03]OFD Sender: No OFD packet to send [06:14:08]OFD Sender: No OFD packet to send [06:14:13]OFD Sender: No OFD packet to send [06:14:18]OFD Sender: No OFD packet to send [06:14:23]OFD Sender: No OFD packet to send [06:14:28]OFD Sender: No OFD packet to send [06:14:33]OFD Sender: No OFD packet to send [06:14:38]OFD Sender: No OFD packet to send [06:14:43]OFD Sender: No OFD packet to send [06:14:48]OFD Sender: No OFD packet to send [06:14:53]OFD Sender: No OFD packet to send [06:14:58]OFD Sender: No OFD packet to send [06:15:03]OFD Sender: No OFD packet to send [06:15:08]OFD Sender: No OFD packet to send [06:15:13]OFD Sender: No OFD packet to send [06:15:18]OFD Sender: No OFD packet to send [06:15:23]OFD Sender: No OFD packet to send [06:15:28]OFD Sender: No OFD packet to send [06:15:33]OFD Sender: No OFD packet to send [06:15:38]OFD Sender: No OFD packet to send [06:15:43]OFD Sender: No OFD packet to send [06:15:48]OFD Sender: No OFD packet to send [06:15:53]OFD Sender: No OFD packet to send [06:15:58]OFD Sender: No OFD packet to send [06:16:03]OFD Sender: No OFD packet to send [06:16:08]OFD Sender: No OFD packet to send [06:16:13]OFD Sender: No OFD packet to send [06:16:18]OFD Sender: No OFD packet to send [06:16:23]OFD Sender: No OFD packet to send [06:16:28]OFD Sender: No OFD packet to send [06:16:33]OFD Sender: No OFD packet to send [06:16:38]OFD Sender: No OFD packet to send [06:16:43]OFD Sender: No OFD packet to send [06:16:48]OFD Sender: No OFD packet to send [06:16:53]OFD Sender: No OFD packet to send [06:16:58]OFD Sender: No OFD packet to send [06:17:03]OFD Sender: No OFD packet to send [06:17:08]OFD Sender: No OFD packet to send [06:17:13]OFD Sender: No OFD packet to send [06:17:18]OFD Sender: No OFD packet to send [06:17:23]OFD Sender: No OFD packet to send [06:17:28]OFD Sender: No OFD packet to send [06:17:33]OFD Sender: No OFD packet to send [06:17:38]OFD Sender: No OFD packet to send [06:17:43]OFD Sender: No OFD packet to send [06:17:48]OFD Sender: No OFD packet to send [06:17:53]OFD Sender: No OFD packet to send [06:17:58]OFD Sender: No OFD packet to send [06:18:03]OFD Sender: No OFD packet to send [06:18:08]OFD Sender: No OFD packet to send [06:18:13]OFD Sender: No OFD packet to send [06:18:18]OFD Sender: No OFD packet to send [06:18:23]OFD Sender: No OFD packet to send [06:18:28]OFD Sender: No OFD packet to send [06:18:33]OFD Sender: No OFD packet to send [06:18:38]OFD Sender: No OFD packet to send [06:18:43]OFD Sender: No OFD packet to send [06:18:48]OFD Sender: No OFD packet to send [06:18:53]OFD Sender: No OFD packet to send [06:18:58]OFD Sender: No OFD packet to send [06:19:03]OFD Sender: No OFD packet to send [06:19:08]OFD Sender: No OFD packet to send [06:19:13]OFD Sender: No OFD packet to send [06:19:18]OFD Sender: No OFD packet to send [06:19:23]OFD Sender: No OFD packet to send [06:19:28]OFD Sender: No OFD packet to send [06:19:33]OFD Sender: No OFD packet to send [06:19:38]OFD Sender: No OFD packet to send [06:19:43]OFD Sender: No OFD packet to send [06:19:48]OFD Sender: No OFD packet to send [06:19:53]OFD Sender: No OFD packet to send [06:19:58]OFD Sender: No OFD packet to send [06:20:03]OFD Sender: No OFD packet to send [06:20:08]OFD Sender: No OFD packet to send [06:20:13]OFD Sender: No OFD packet to send [06:20:18]OFD Sender: No OFD packet to send [06:20:23]OFD Sender: No OFD packet to send [06:20:28]OFD Sender: No OFD packet to send [06:20:33]OFD Sender: No OFD packet to send [06:20:38]OFD Sender: No OFD packet to send [06:20:43]OFD Sender: No OFD packet to send [06:20:48]OFD Sender: No OFD packet to send [06:20:53]OFD Sender: No OFD packet to send [06:20:58]OFD Sender: No OFD packet to send [06:21:03]OFD Sender: No OFD packet to send [06:21:08]OFD Sender: No OFD packet to send [06:21:13]OFD Sender: No OFD packet to send [06:21:18]OFD Sender: No OFD packet to send [06:21:23]OFD Sender: No OFD packet to send [06:21:28]OFD Sender: No OFD packet to send [06:21:33]OFD Sender: No OFD packet to send [06:21:38]OFD Sender: No OFD packet to send [06:21:43]OFD Sender: No OFD packet to send [06:21:48]OFD Sender: No OFD packet to send [06:21:53]OFD Sender: No OFD packet to send [06:21:58]OFD Sender: No OFD packet to send [06:22:03]OFD Sender: No OFD packet to send [06:22:08]OFD Sender: No OFD packet to send [06:22:13]OFD Sender: No OFD packet to send [06:22:18]OFD Sender: No OFD packet to send [06:22:23]OFD Sender: No OFD packet to send [06:22:28]OFD Sender: No OFD packet to send [06:22:33]OFD Sender: No OFD packet to send [06:22:38]OFD Sender: No OFD packet to send [06:22:43]OFD Sender: No OFD packet to send [06:22:48]OFD Sender: No OFD packet to send [06:22:53]OFD Sender: No OFD packet to send [06:22:58]OFD Sender: No OFD packet to send [06:23:03]OFD Sender: No OFD packet to send [06:23:08]OFD Sender: No OFD packet to send [06:23:13]OFD Sender: No OFD packet to send [06:23:18]OFD Sender: No OFD packet to send [06:23:23]OFD Sender: No OFD packet to send [06:23:28]OFD Sender: No OFD packet to send [06:23:33]OFD Sender: No OFD packet to send [06:23:38]OFD Sender: No OFD packet to send [06:23:43]OFD Sender: No OFD packet to send [06:23:48]OFD Sender: No OFD packet to send [06:23:53]OFD Sender: No OFD packet to send [06:23:58]OFD Sender: No OFD packet to send [06:24:03]OFD Sender: No OFD packet to send [06:24:08]OFD Sender: No OFD packet to send [06:24:13]OFD Sender: No OFD packet to send [06:24:18]OFD Sender: No OFD packet to send [06:24:23]OFD Sender: No OFD packet to send [06:24:28]OFD Sender: No OFD packet to send [06:24:33]OFD Sender: No OFD packet to send [06:24:38]OFD Sender: No OFD packet to send [06:24:43]OFD Sender: No OFD packet to send [06:24:48]OFD Sender: No OFD packet to send [06:24:53]OFD Sender: No OFD packet to send [06:24:58]OFD Sender: No OFD packet to send [06:25:03]OFD Sender: No OFD packet to send [06:25:08]OFD Sender: No OFD packet to send [06:25:13]OFD Sender: No OFD packet to send [06:25:18]OFD Sender: No OFD packet to send [06:25:23]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:38]OFD Sender: No OFD packet to send [06:25:43]OFD Sender: No OFD packet to send [06:25:48]OFD Sender: No OFD packet to send [06:25:53]OFD Sender: No OFD packet to send [06:25:58]OFD Sender: No OFD packet to send [06:26:03]OFD Sender: No OFD packet to send [06:26:08]OFD Sender: No OFD packet to send [06:26:13]OFD Sender: No OFD packet to send [06:26:18]OFD Sender: No OFD packet to send [06:26:23]OFD Sender: No OFD packet to send [06:26:28]OFD Sender: No OFD packet to send [06:26:33]OFD Sender: No OFD packet to send [06:26:38]OFD Sender: No OFD packet to send [06:26:43]OFD Sender: No OFD packet to send [06:26:48]OFD Sender: No OFD packet to send [06:26:53]OFD Sender: No OFD packet to send [06:26:58]OFD Sender: No OFD packet to send [06:27:03]OFD Sender: No OFD packet to send [06:27:08]OFD Sender: No OFD packet to send [06:27:13]OFD Sender: No OFD packet to send [06:27:18]OFD Sender: No OFD packet to send [06:27:23]OFD Sender: No OFD packet to send [06:27:28]OFD Sender: No OFD packet to send [06:27:33]OFD Sender: No OFD packet to send [06:27:38]OFD Sender: No OFD packet to send [06:27:43]OFD Sender: No OFD packet to send [06:27:48]OFD Sender: No OFD packet to send [06:27:53]OFD Sender: No OFD packet to send [06:27:58]OFD Sender: No OFD packet to send [06:28:03]OFD Sender: No OFD packet to send [06:28:08]OFD Sender: No OFD packet to send [06:28:13]OFD Sender: No OFD packet to send [06:28:18]OFD Sender: No OFD packet to send [06:28:23]OFD Sender: No OFD packet to send [06:28:28]OFD Sender: No OFD packet to send [06:28:33]OFD Sender: No OFD packet to send [06:28:38]OFD Sender: No OFD packet to send [06:28:43]OFD Sender: No OFD packet to send [06:28:48]OFD Sender: No OFD packet to send [06:28:53]OFD Sender: No OFD packet to send [06:28:58]OFD Sender: No OFD packet to send [06:29:03]OFD Sender: No OFD packet to send [06:29:08]OFD Sender: No OFD packet to send [06:29:13]OFD Sender: No OFD packet to send [06:29:18]OFD Sender: No OFD packet to send [06:29:23]OFD Sender: No OFD packet to send [06:29:28]OFD Sender: No OFD packet to send [06:29:33]OFD Sender: No OFD packet to send [06:29:38]OFD Sender: No OFD packet to send [06:29:43]OFD Sender: No OFD packet to send [06:29:48]OFD Sender: No OFD packet to send [06:29:53]OFD Sender: No OFD packet to send [06:29:58]OFD Sender: No OFD packet to send [06:30:03]OFD Sender: No OFD packet to send [06:30:08]OFD Sender: No OFD packet to send [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:13]OFD Sender: No OFD packet to send [06:32:18]OFD Sender: No OFD packet to send [06:32:23]OFD Sender: No OFD packet to send [06:32:28]OFD Sender: No OFD packet to send [06:32:33]OFD Sender: No OFD packet to send [06:32:38]OFD Sender: No OFD packet to send [06:32:43]OFD Sender: No OFD packet to send [06:32:48]OFD Sender: No OFD packet to send [06:32:53]OFD Sender: No OFD packet to send [06:32:58]OFD Sender: No OFD packet to send [06:33:03]OFD Sender: No OFD packet to send [06:33:08]OFD Sender: No OFD packet to send [06:33:13]OFD Sender: No OFD packet to send [06:33:18]OFD Sender: No OFD packet to send [06:33:23]OFD Sender: No OFD packet to send [06:33:28]OFD Sender: No OFD packet to send [06:33:33]OFD Sender: No OFD packet to send [06:33:38]OFD Sender: No OFD packet to send [06:33:43]OFD Sender: No OFD packet to send [06:33:48]OFD Sender: No OFD packet to send [06:33:53]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:29]OFD Sender: No OFD packet to send [06:37:34]OFD Sender: No OFD packet to send [06:37:39]OFD Sender: No OFD packet to send [06:37:44]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:19]OFD Sender: No OFD packet to send [06:38:24]OFD Sender: No OFD packet to send [06:38:29]OFD Sender: No OFD packet to send [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:38:54]accept exits with 10 [06:38:54]New connection [06:38:54]New thread 3066785124 created [06:38:54]Thread 3066928484 joined [06:38:54]Waiting for new connection... [06:38:54] Sock 10.Parse request [06:38:54]Sock 10.Check first char [06:38:54]Sock 10.First char is OK [06:38:54]request: POST /json_proto HTTP/1.0 [06:38:54]Method: POST [06:38:54]URL: /json_proto [06:38:54]Method is POST - this is cgi request [06:38:54]url: /json_proto [06:38:54]query_string will be loaded in cgi processing [06:38:54]execute_cgi json_proto POST (null) [06:38:54]execute_cgi path=json_proto method=POST [06:38:54]POST find Content-Length [06:38:54]Host: 172.17.33.3:8080 [06:38:54]Content-Length: 836 [06:38:54]Content-Type: application/json [06:38:54] [06:38:54]POST finish read [06:38:54]Found Content-Length = 836 [06:38:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 22.980, "sum" : 1500.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:54]execute_script... [06:38: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)347158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 22.980, "sum" : 1500.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:54]POST & json_proto [06:38:54]process_json_proto [06:38:54]json parsed OK: [06:38:54]protocol is kg_v1.0 [06:38:54]action value=close_receipt [06:38:54]process_action close_receipt [06:38:54]cmd_close_receipt [06:38:54]MH_GetDate [06:38:54]Write to MH i2c: F0 00 00 6B 1B 75 [06:38:54]Write i2c OK [06:38:54]MH_I2C_Read... [06:38:54]Read from MH i2c: F0 [06:38:54]MH_I2C_Read... [06:38:54]Read from MH i2c: F0 09 00 [06:38:54]MH_I2C_Read... [06:38:54]Read from MH i2c: F0 09 00 6B 1B 00 81 28 1A 66 23 5B 8F 65 19 [06:38:54]GetLastDocTimeStamp 1712988197 [06:38:54]current date 1712990337 [06:38:54]FM_GetShiftState [06:38:54]SAM_PROTO_GetShiftState [06:38:54]wFMCommunicate request_size=4 [06:38:54]MH_SAM_APDU [06:38:54]CAPDU: 80 13 01 00 [06:38:54]Write to MH i2c: E2 08 00 6C 1B 80 13 01 00 00 00 00 00 04 [06:38:54]Write i2c OK [06:38:54]MH_I2C_Read... [06:38:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:54]Read from MH i2c: E2 [06:38:54]MH_I2C_Read... [06:38:54]Read from MH i2c: E2 0E 00 [06:38:54]MH_I2C_Read... [06:38:54]Read from MH i2c: E2 0E 00 6C 1B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 1D [06:38:54]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [06:38:54]wFMCommunicate OK [06:38:54]SAM_PROTO_GetShiftState done [06:38:54]FM_GetShiftState done [06:38:54]opened in 1712967615 [06:38:54]opened+sec_in_day 1713054015 [06:38:54]quantity*price = 150059 [06:38:54]sum+1 = 150060 [06:38:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.59 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.59 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 18 13.04.2024 06:38 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28811 ФПД: 18362341022313 1/tax-web-control/client/api/v1/ticket?date=20240413T063857&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28811&fm=18362341022313&tin=02508201610067®Number=0000138879044617&sum=150059 [06:38:55]StoreToDocumentArchive [06:38:55]shift 115 fd 28811 [06:38:55]save to /storage/0115/doc_00028811 [06:38:55]save last doc name /storage/0115/doc_00028811 to /storage/kkm_last_doc_name [06:38:55]save OK [06:38:55]Clear old archive folders... [06:38:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:38:55]tlvbuf is 0121FE70 [06:38:55]SAM_PROTO_ClearQueue [06:38:55]wFMCommunicate request_size=4 [06:38:55]MH_SAM_APDU [06:38:55]CAPDU: 80 09 00 00 [06:38:55]Write to MH i2c: E2 08 00 79 1B 80 09 00 00 00 00 00 00 06 [06:38:55]Write i2c OK [06:38:55]MH_I2C_Read... [06:38:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:38:55]Read from MH i2c: E2 [06:38:55]MH_I2C_Read... [06:38:55]Read from MH i2c: E2 03 00 [06:38:55]MH_I2C_Read... [06:38:55]Read from MH i2c: E2 03 00 79 1B 00 90 00 08 [06:38:55]RAPDU: 90 00 [06:38:55]wFMCommunicate OK [06:38:55]SAM_PROTO_ClearQueue done [06:38:55]KKMCreateOFDPacket [06:38:55]OFDProtocolAddRootSTLVToBuf [06:38:55]FM_MakeSignedData [06:38:55]FM_MakeSignedData [06:38:55]SAM_PROTO_SignData [06:38:55]wFMCommunicate request_size=4 [06:38:55]MH_SAM_APDU [06:38:55]CAPDU: 80 0D 01 02 [06:38:55]Write to MH i2c: E2 08 00 7A 1B 80 0D 01 02 00 00 00 00 0E [06:38:55]Write i2c OK [06:38:55]MH_I2C_Read... [06:38:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:38:55]Read from MH i2c: E2 [06:38:55]MH_I2C_Read... [06:38:55]Read from MH i2c: E2 03 00 [06:38:55]MH_I2C_Read... [06:38:55]Read from MH i2c: E2 03 00 7A 1B 00 90 00 09 [06:38:55]RAPDU: 90 00 [06:38:55]wFMCommunicate OK [06:38:55]wFMCommunicate request_size=255 [06:38:55]MH_SAM_APDU [06:38:55]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2B 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2B 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 81 28 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8B 70 00 00 35 04 06 00 [06:38:55]Write to MH i2c: E2 02 01 7B 1B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2B 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2B 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 81 28 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8B 70 00 00 35 04 06 00 00 00 57 [06:38:55]Write i2c OK [06:38:55]MH_I2C_Read... [06:38:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:56]Read from MH i2c: E2 [06:38:56]MH_I2C_Read... [06:38:56]Read from MH i2c: E2 03 00 [06:38:56]MH_I2C_Read... [06:38:56]Read from MH i2c: E2 03 00 7B 1B 00 90 00 0A [06:38:56]RAPDU: 90 00 [06:38:56]wFMCommunicate OK [06:38:56]wFMCommunicate request_size=11 [06:38:56]MH_SAM_APDU [06:38:56]CAPDU: 80 0D 02 02 06 10 B3 50 D0 5A 69 [06:38:56]Write to MH i2c: E2 0E 00 7C 1B 80 0D 02 02 06 00 10 B3 50 D0 5A 69 00 00 C3 [06:38:56]Write i2c OK [06:38:56]MH_I2C_Read... [06:38:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:56]Read from MH i2c: E2 [06:38:56]MH_I2C_Read... [06:38:56]Read from MH i2c: E2 03 00 [06:38:56]MH_I2C_Read... [06:38:56]Read from MH i2c: E2 03 00 7C 1B 00 90 00 0B [06:38:56]RAPDU: 90 00 [06:38:56]wFMCommunicate OK [06:38:56]wFMCommunicate request_size=4 [06:38:56]MH_SAM_APDU [06:38:56]CAPDU: 80 0D 03 02 [06:38:56]Write to MH i2c: E2 08 00 7D 1B 80 0D 03 02 00 00 00 00 13 [06:38:56]Write i2c OK [06:38:56]MH_I2C_Read... [06:38:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:38:56]Read from MH i2c: E2 [06:38:56]MH_I2C_Read... [06:38:56]Read from MH i2c: E2 0B 00 [06:38:56]MH_I2C_Read... [06:38:56]Read from MH i2c: E2 0B 00 7D 1B 00 80 FF 1F 27 93 C6 4B 02 90 00 7F [06:38:56]RAPDU: 80 FF 1F 27 93 C6 4B 02 90 00 [06:38:56]wFMCommunicate OK [06:38:56]SAM_PROTO_SignData done [06:38:56]FM_MakeSignedData done [06:38:56]CreateOFDProtocolMessage [06:38:56]wFMCommunicate request_size=4 [06:38:56]MH_SAM_APDU [06:38:56]CAPDU: 80 11 00 00 [06:38:56]Write to MH i2c: E2 08 00 7E 1B 80 11 00 00 00 00 00 00 13 [06:38:56]Write i2c OK [06:38:56]MH_I2C_Read... [06:38:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:56]Read from MH i2c: E2 [06:38:56]MH_I2C_Read... [06:38:56]Read from MH i2c: E2 17 00 [06:38:56]MH_I2C_Read... [06:38:56]Read from MH i2c: E2 17 00 7E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 62 [06:38:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:38:56]wFMCommunicate OK [06:38:56]CreateOFDProtocolMessage done [06:38:56]OFDSenderStorePacket 28811 [06:38:56]StoreOFDPacket docnum=28811 [06:38:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 D7 F7 08 01 77 56 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2B 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2B 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 81 28 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8B 70 00 00 35 04 06 00 10 B3 50 D0 5A 69 80 FF 1F 27 93 C6 4B 02 [06:38:56]CheckFolder [06:38:56]dirname=/storage/ofd_packets [06:38:56]CheckFolder done [06:38:56]ProducePacketName [06:38:56]name=ofd_packets/00028811 [06:38:56]NVStorageSaveData ofd_packets/00028811 [06:38:56]File name is /storage/ofd_packets/00028811 [06:38:56]Write 302 bytes [06:38:56]NVStorageSaveData done [06:38:56]OFDSenderStorePacket done [06:38:56]KKMCreateOFDPacket done [06:38:56]NVStorageSaveData kkm_last_timestamp [06:38:56]File name is /storage/kkm_last_timestamp [06:38:56]Write 4 bytes [06:38:56]NVStorageSaveData done [06:38:56]ExternCall_PrintAddStr [06:38:56]wPrintStart [06:38:56]Write to MH i2c: 01 00 00 7F 1B 9A [06:38:56]Write i2c OK [06:38:56]MH_I2C_Read... [06:38:56]Read from MH i2c: 01 [06:38:56]MH_I2C_Read... [06:38:56]Read from MH i2c: 01 07 00 [06:38:56]MH_I2C_Read... [06:38:56]Read from MH i2c: 01 07 00 7F 1B 00 00 00 00 00 FF 0F AF [06:38:56]RasterBufferAndPrint [06:38:56]line Счет N : (1)347158 [06:38:56]line ИНН: 02508201610067 [06:38:56]line Контрольно-Кассовый Чек [06:38:56]line ПРОДАЖА [06:38:56]line ТРК (МРК, ГНК) : 31 [06:38:56]line Товар: 2710124130 [06:38:56]line SUPER-92-К-5 [06:38:56]line 22.980 * 65.30 [06:38:56]line = 1500.59 [06:38:56]line НДС 12% НСП 1% [06:38:56]line > о реализуемом товаре [06:38:56]line ИТОГО: 1500.59 [06:38:56]line НСП 1% : 13.28 [06:38:56]line НДС 12% : 159.35 [06:38:56]line Наличными: 0.00 [06:38:56]line Безнал.: 1500.59 [06:38:56]line Место: АЗС № 108 "Партнер Нефть" [06:38:56]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [06:38:56]line СНО: Общий режим [06:38:56]line Чек 18 13.04.2024 06:38 [06:38:56]line Смена: 115 ФФД: 1.0 [06:38:56]line ЗНМ: 0300000027 [06:38:56]line РНМ: 0000138879044617 [06:38:56]line Версия ККМ: 001 [06:38:56]line Платежная система: АКБ Кыргызстан [06:38:56]line ФМ: 0000000000963154 [06:38:56]line ФД: 28811 [06:38:56]line ФПД: 18362341022313 [06:38:56]line 1/tax-web-control/client/api/v1/ticket?date=20240413T063857&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28811&fm=18362341022313&tin=02508201610067®Number=0000138879044617&sum=150059 [06:38:56]OFD Sender: Processing packet 28811 [packets to send 8, broken 7] [06:38:56]ProducePacketName [06:38:56]name=ofd_packets/00028811 [06:38:56]OFD Sender: To server: pG, [06:38:56]CommunicateWithHost lk.salyk.kg:30040 [06:38:56]ConnectInit lk.salyk.kg [06:38:56]written 0, free lines is 4095 [06:38:56]Connected sock=9 [06:38: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 31 35 34 10 01 00 00 D7 F7 08 01 77 56 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2B 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2B 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 81 28 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8B 70 00 00 35 04 06 00 10 B3 50 D0 5A 69 80 FF 1F 27 93 C6 4B 02 [06:38:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F4 25 47 00 C1 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 31 35 34 10 04 04 00 8B 70 00 00 F4 03 04 00 29 D3 19 66 B6 04 01 00 00 B4 D1 42 79 32 35 FB DB [06:38:56]CommunicateWithHost err = 0 [06:38:56]CheckOFDResponse [06:38:56]1017 (14) - 77093643461234 [06:38:56]1041 (16) - 0000000000963154 [06:38:56]1040 (4) - 28811 [06:38:56]1012 (4) - 13.04.2024 00:34 [06:38:56]1206 (1) - 0 [06:38:56]OFD Sender: Remove packet 28811 [06:38:56]ProducePacketName [06:38:56]name=ofd_packets/00028811 [06:38:56]NVStorageDeleteData [06:38:56]Write to MH i2c: 01 00 00 A8 1B C3 [06:38:56]Write i2c OK [06:38:56]MH_I2C_Read... [06:38:56]Read from MH i2c: 01 [06:38:56]MH_I2C_Read... [06:38:56]Read from MH i2c: 01 07 00 [06:38:56]MH_I2C_Read... [06:38:56]Read from MH i2c: 01 07 00 A8 1B 00 00 00 00 00 D9 0C AF [06:38:56]RasterBufferAndPrint [06:38:56]line [06:38:56]line [06:38:56]line [06:38:56]line [06:38:56]line [06:38:56]written 0, free lines is 3293 [06:38:56]MH_Cut [06:38:56]Write to MH i2c: D1 01 00 AF 1B 01 9C [06:38:56]Write i2c OK [06:38:56]MH_I2C_Read... [06:38:56]Read from MH i2c: D1 [06:38:56]MH_I2C_Read... [06:38:56]Read from MH i2c: D1 01 00 [06:38:56]MH_I2C_Read... [06:38:56]Read from MH i2c: D1 01 00 AF 1B 00 9B [06:38:56]Write to MH i2c: 01 00 00 B0 1B CB [06:38:56]Write i2c OK [06:38:56]MH_I2C_Read... [06:38:57]OFD Sender: No OFD packet to send [06:38:57]*** Cut start [06:38:57]*** Partial cut [06:38:57]*** CUTSNS_PIN = 1 [06:38:57]*** CUTSNS_PIN = 0 [06:38:58]*** Brake cut motor [06:38:58]Read from MH i2c: 01 [06:38:58]MH_I2C_Read... [06:38:58]*** Stop cut motor [06:38:58]*** Cut end [06:38:58]Read from MH i2c: 01 07 00 [06:38:58]MH_I2C_Read... [06:38:58]Read from MH i2c: 01 07 00 B0 1B 00 00 00 00 00 FF 0F E0 [06:38:58]process_action close_receipt done [06:38:58]requested_data is exist [06:38:58]produce_requested_data [06:38:58]requested_item fm.sn is exist - process it [06:38:58]wFMCommunicate request_size=4 [06:38:58]MH_SAM_APDU [06:38:58]CAPDU: 80 11 00 00 [06:38:58]Write to MH i2c: E2 08 00 B1 1B 80 11 00 00 00 00 00 00 46 [06:38:58]Write i2c OK [06:38:58]MH_I2C_Read... [06:38:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:58]Read from MH i2c: E2 [06:38:58]MH_I2C_Read... [06:38:58]Read from MH i2c: E2 17 00 [06:38:58]MH_I2C_Read... [06:38:58]Read from MH i2c: E2 17 00 B1 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 95 [06:38:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:38:58]wFMCommunicate OK [06:38:58]requested_item fd.num is exist - process it [06:38:58]SAM_PROTO_GetFieldsCounters [06:38:58]wFMCommunicate request_size=4 [06:38:58]MH_SAM_APDU [06:38:58]CAPDU: 80 13 00 00 [06:38:58]Write to MH i2c: E2 08 00 B2 1B 80 13 00 00 00 00 00 00 49 [06:38:58]Write i2c OK [06:38:58]MH_I2C_Read... [06:38:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:38:58]Read from MH i2c: E2 [06:38:58]MH_I2C_Read... [06:38:58]Read from MH i2c: E2 62 00 [06:38:58]MH_I2C_Read... [06:38:58]Read from MH i2c: E2 62 00 B2 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8B 70 00 00 0E 04 04 00 73 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 2B [06:38: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8B 70 00 00 0E 04 04 00 73 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 [06:38:58]wFMCommunicate OK [06:38:58]SAM_PROTO_GetFieldsCounters done [06:38:58]requested_item shift.num is exist - process it [06:38:58]requested_item shift.opened is exist - process it [06:38:58]req_shift_opened [06:38:58]FM_GetShiftState [06:38:58]SAM_PROTO_GetShiftState [06:38:58]wFMCommunicate request_size=4 [06:38:58]MH_SAM_APDU [06:38:58]CAPDU: 80 13 01 00 [06:38:58]Write to MH i2c: E2 08 00 B3 1B 80 13 01 00 00 00 00 00 4B [06:38:58]Write i2c OK [06:38:58]MH_I2C_Read... [06:38:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:58]Read from MH i2c: E2 [06:38:58]MH_I2C_Read... [06:38:58]Read from MH i2c: E2 0E 00 [06:38:58]MH_I2C_Read... [06:38:58]Read from MH i2c: E2 0E 00 B3 1B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 64 [06:38:58]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [06:38:58]wFMCommunicate OK [06:38:58]SAM_PROTO_GetShiftState done [06:38:58]FM_GetShiftState done [06:38:58]req_shift_opened done [06:38:58]requested_item shift.open_date is exist - process it [06:38:58]req_shift_open_date [06:38:58]req_shift_open_date done [06:38:58]produce_requested_data done [06:38:58]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28811,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [06:38:58]process_action_free close_receipt [06:38:58]json_value_free [06:38:58]json_value_free done [06:38:58]process_json_proto returns [06:38:58]Send response to host [06:38:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28811,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [06:38:58]free response buf [06:38:58]execute_script done [06:38:58]execute_script returns [06:38:58]free content buf [06:38:58]Sock 10.Close socket [06:38:58]Sock 10.Thread stoped [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:02]accept exits with 7 [06:45:02]New connection [06:45:02]New thread 3066928484 created [06:45:02]Thread 3066785124 joined [06:45:02]Waiting for new connection... [06:45:02] Sock 7.Parse request [06:45:02]Sock 7.Check first char [06:45:02]Sock 7.First char is OK [06:45:02]request: POST /json_proto HTTP/1.0 [06:45:02]Method: POST [06:45:02]URL: /json_proto [06:45:02]Method is POST - this is cgi request [06:45:02]url: /json_proto [06:45:02]query_string will be loaded in cgi processing [06:45:02]execute_cgi json_proto POST (null) [06:45:02]execute_cgi path=json_proto method=POST [06:45:02]POST find Content-Length [06:45:02]Host: 172.17.33.3:8080 [06:45:02]Content-Length: 679 [06:45:02]Content-Type: application/json [06:45:02] [06:45:02]POST finish read [06:45:02]Found Content-Length = 679 [06:45:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347159", "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" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:45:02]execute_script... [06: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)347159", "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" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:45:02]POST & json_proto [06:45:02]process_json_proto [06:45:02]json parsed OK: [06:45:02]protocol is kg_v1.0 [06:45:02]action value=close_receipt [06:45:02]process_action close_receipt [06:45:02]cmd_close_receipt [06:45:02]MH_GetDate [06:45:02]Write to MH i2c: F0 00 00 B4 1B BE [06:45:02]Write i2c OK [06:45:02]MH_I2C_Read... [06:45:02]Read from MH i2c: F0 [06:45:02]MH_I2C_Read... [06:45:02]Read from MH i2c: F0 09 00 [06:45:02]MH_I2C_Read... [06:45:02]Read from MH i2c: F0 09 00 B4 1B 00 F2 29 1A 66 23 5B 8F 65 D4 [06:45:02]GetLastDocTimeStamp 1712990337 [06:45:02]current date 1712990706 [06:45:02]FM_GetShiftState [06:45:02]SAM_PROTO_GetShiftState [06:45:02]wFMCommunicate request_size=4 [06:45:02]MH_SAM_APDU [06:45:02]CAPDU: 80 13 01 00 [06:45:02]Write to MH i2c: E2 08 00 B5 1B 80 13 01 00 00 00 00 00 4D [06:45:02]Write i2c OK [06:45:02]MH_I2C_Read... [06:45:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:45:03]Read from MH i2c: E2 [06:45:03]MH_I2C_Read... [06:45:03]Read from MH i2c: E2 0E 00 [06:45:03]MH_I2C_Read... [06:45:03]Read from MH i2c: E2 0E 00 B5 1B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 66 [06:45:03]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [06:45:03]wFMCommunicate OK [06:45:03]SAM_PROTO_GetShiftState done [06:45:03]FM_GetShiftState done [06:45:03]opened in 1712967615 [06:45:03]opened+sec_in_day 1713054015 [06:45:03]quantity*price = 100056 [06:45:03]sum+1 = 100058 [06:45:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 19 13.04.2024 06:45 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28812 ФПД: 127673353845636 1/tax-web-control/client/api/v1/ticket?date=20240413T064506&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28812&fm=127673353845636&tin=02508201610067®Number=0000138879044617&sum=100000 [06:45:04]StoreToDocumentArchive [06:45:04]shift 115 fd 28812 [06:45:04]save to /storage/0115/doc_00028812 [06:45:04]save last doc name /storage/0115/doc_00028812 to /storage/kkm_last_doc_name [06:45:04]save OK [06:45:04]Clear old archive folders... [06:45:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:45:04]tlvbuf is 0121FD60 [06:45:04]SAM_PROTO_ClearQueue [06:45:04]wFMCommunicate request_size=4 [06:45:04]MH_SAM_APDU [06:45:04]CAPDU: 80 09 00 00 [06:45:04]Write to MH i2c: E2 08 00 C2 1B 80 09 00 00 00 00 00 00 4F [06:45:04]Write i2c OK [06:45:04]MH_I2C_Read... [06:45:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:45:04]Read from MH i2c: E2 [06:45:04]MH_I2C_Read... [06:45:04]Read from MH i2c: E2 03 00 [06:45:04]MH_I2C_Read... [06:45:04]Read from MH i2c: E2 03 00 C2 1B 00 90 00 51 [06:45:04]RAPDU: 90 00 [06:45:04]wFMCommunicate OK [06:45:04]SAM_PROTO_ClearQueue done [06:45:04]KKMCreateOFDPacket [06:45:04]OFDProtocolAddRootSTLVToBuf [06:45:04]FM_MakeSignedData [06:45:04]FM_MakeSignedData [06:45:04]SAM_PROTO_SignData [06:45:04]wFMCommunicate request_size=4 [06:45:04]MH_SAM_APDU [06:45:04]CAPDU: 80 0D 01 02 [06:45:04]Write to MH i2c: E2 08 00 C3 1B 80 0D 01 02 00 00 00 00 57 [06:45:04]Write i2c OK [06:45:04]MH_I2C_Read... [06:45:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:45:04]Read from MH i2c: E2 [06:45:04]MH_I2C_Read... [06:45:04]Read from MH i2c: E2 03 00 [06:45:04]MH_I2C_Read... [06:45:04]Read from MH i2c: E2 03 00 C3 1B 00 90 00 52 [06:45:04]RAPDU: 90 00 [06:45:04]wFMCommunicate OK [06:45:04]wFMCommunicate request_size=255 [06:45:04]MH_SAM_APDU [06:45: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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 13 00 00 00 F4 03 04 00 F2 29 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8C 70 00 00 35 04 06 00 74 1E 44 E7 [06:45:04]Write to MH i2c: E2 02 01 C4 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 13 00 00 00 F4 03 04 00 F2 29 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8C 70 00 00 35 04 06 00 74 1E 44 E7 00 00 10 [06:45:04]Write i2c OK [06:45:04]MH_I2C_Read... [06:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:45:04]Read from MH i2c: E2 [06:45:04]MH_I2C_Read... [06:45:04]Read from MH i2c: E2 03 00 [06:45:04]MH_I2C_Read... [06:45:04]Read from MH i2c: E2 03 00 C4 1B 00 90 00 53 [06:45:04]RAPDU: 90 00 [06:45:04]wFMCommunicate OK [06:45:04]wFMCommunicate request_size=7 [06:45:04]MH_SAM_APDU [06:45:04]CAPDU: 80 0D 02 02 02 3B 84 [06:45:04]Write to MH i2c: E2 0A 00 C5 1B 80 0D 02 02 02 00 3B 84 00 00 1D [06:45:04]Write i2c OK [06:45:04]MH_I2C_Read... [06:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:45:04]Read from MH i2c: E2 [06:45:04]MH_I2C_Read... [06:45:04]Read from MH i2c: E2 03 00 [06:45:04]MH_I2C_Read... [06:45:04]Read from MH i2c: E2 03 00 C5 1B 00 90 00 54 [06:45:04]RAPDU: 90 00 [06:45:04]wFMCommunicate OK [06:45:04]wFMCommunicate request_size=4 [06:45:04]MH_SAM_APDU [06:45:04]CAPDU: 80 0D 03 02 [06:45:04]Write to MH i2c: E2 08 00 C6 1B 80 0D 03 02 00 00 00 00 5C [06:45:04]Write i2c OK [06:45:04]MH_I2C_Read... [06:45:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:45:04]Read from MH i2c: E2 [06:45:04]MH_I2C_Read... [06:45:04]Read from MH i2c: E2 0B 00 [06:45:04]MH_I2C_Read... [06:45:04]Read from MH i2c: E2 0B 00 C6 1B 00 D5 41 8B F8 5D AD 0C 6D 90 00 79 [06:45:04]RAPDU: D5 41 8B F8 5D AD 0C 6D 90 00 [06:45:04]wFMCommunicate OK [06:45:04]SAM_PROTO_SignData done [06:45:04]FM_MakeSignedData done [06:45:04]CreateOFDProtocolMessage [06:45:04]wFMCommunicate request_size=4 [06:45:04]MH_SAM_APDU [06:45:04]CAPDU: 80 11 00 00 [06:45:04]Write to MH i2c: E2 08 00 C7 1B 80 11 00 00 00 00 00 00 5C [06:45:04]Write i2c OK [06:45:04]MH_I2C_Read... [06:45:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:45:04]Read from MH i2c: E2 [06:45:04]MH_I2C_Read... [06:45:04]Read from MH i2c: E2 17 00 [06:45:04]MH_I2C_Read... [06:45:04]Read from MH i2c: E2 17 00 C7 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AB [06:45:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:45:04]wFMCommunicate OK [06:45:04]CreateOFDProtocolMessage done [06:45:04]OFDSenderStorePacket 28812 [06:45:04]StoreOFDPacket docnum=28812 [06:45:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 58 CE 04 01 C7 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 13 00 00 00 F4 03 04 00 F2 29 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8C 70 00 00 35 04 06 00 74 1E 44 E7 3B 84 D5 41 8B F8 5D AD 0C 6D [06:45:04]CheckFolder [06:45:04]dirname=/storage/ofd_packets [06:45:04]CheckFolder done [06:45:04]ProducePacketName [06:45:04]name=ofd_packets/00028812 [06:45:04]NVStorageSaveData ofd_packets/00028812 [06:45:04]File name is /storage/ofd_packets/00028812 [06:45:04]Write 298 bytes [06:45:04]NVStorageSaveData done [06:45:04]OFDSenderStorePacket done [06:45:04]KKMCreateOFDPacket done [06:45:04]NVStorageSaveData kkm_last_timestamp [06:45:04]File name is /storage/kkm_last_timestamp [06:45:04]Write 4 bytes [06:45:04]NVStorageSaveData done [06:45:04]ExternCall_PrintAddStr [06:45:04]wPrintStart [06:45:04]Write to MH i2c: 01 00 00 C8 1B E3 [06:45:04]Write i2c OK [06:45:04]MH_I2C_Read... [06:45:04]Read from MH i2c: 01 [06:45:04]MH_I2C_Read... [06:45:04]Read from MH i2c: 01 07 00 [06:45:04]MH_I2C_Read... [06:45:04]Read from MH i2c: 01 07 00 C8 1B 00 00 00 00 00 FF 0F F8 [06:45:04]RasterBufferAndPrint [06:45:04]line Счет N : (1)347159 [06:45:04]line ИНН: 02508201610067 [06:45:04]line Контрольно-Кассовый Чек [06:45:04]line ПРОДАЖА [06:45:04]line ТРК (МРК, ГНК) : 51 [06:45:04]line Товар: 2710194210 [06:45:04]line ДТ-К-5 [06:45:04]line 13.820 * 72.40 [06:45:04]line = 1000.57 [06:45:04]line НДС 12% НСП 1% [06:45:04]line > о реализуемом товаре [06:45:04]line ОКРУГЛЕНИЕ: -0.57 [06:45:04]line ИТОГО: 1000.00 [06:45:04]line Внесено: 1000.00 [06:45:04]line СДАЧА: 0.00 [06:45:04]line НСП 1% : 8.85 [06:45:04]line НДС 12% : 106.25 [06:45:04]line Наличными: 1000.00 [06:45:04]line Безнал.: 0.00 [06:45:04]line Место: АЗС № 108 "Партнер Нефть" [06:45:04]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [06:45:04]line СНО: Общий режим [06:45:04]line Чек 19 13.04.2024 06:45 [06:45:04]line Смена: 115 ФФД: 1.0 [06:45:04]line ЗНМ: 0300000027 [06:45:04]line РНМ: 0000138879044617 [06:45:04]line Версия ККМ: 001 [06:45:04]line ФМ: 0000000000963154 [06:45:04]line ФД: 28812 [06:45:04]line ФПД: 127673353845636 [06:45:05]line 1/tax-web-control/client/api/v1/ticket?date=20240413T064506&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28812&fm=127673353845636&tin=02508201610067®Number=0000138879044617&sum=100000 [06:45:05]OFD Sender: Processing packet 28812 [packets to send 8, broken 7] [06:45:05]ProducePacketName [06:45:05]name=ofd_packets/00028812 [06:45:05]OFD Sender: To server: pG, [06:45:05]CommunicateWithHost lk.salyk.kg:30040 [06:45:05]ConnectInit lk.salyk.kg [06:45:05]written 0, free lines is 4095 [06:45:05]Connected sock=10 [06:45:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 58 CE 04 01 C7 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 13 00 00 00 F4 03 04 00 F2 29 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8C 70 00 00 35 04 06 00 74 1E 44 E7 3B 84 D5 41 8B F8 5D AD 0C 6D [06: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 31 35 34 4F 00 00 00 FE BC 47 00 1B 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8C 70 00 00 F4 03 04 00 9A D4 19 66 B6 04 01 00 00 1B 7A EB E4 46 FD F8 8B [06:45:05]CommunicateWithHost err = 0 [06:45:05]CheckOFDResponse [06:45:05]1017 (14) - 77093643461234 [06:45:05]1041 (16) - 0000000000963154 [06:45:05]1040 (4) - 28812 [06:45:05]1012 (4) - 13.04.2024 00:40 [06:45:05]1206 (1) - 0 [06:45:05]OFD Sender: Remove packet 28812 [06:45:05]ProducePacketName [06:45:05]name=ofd_packets/00028812 [06:45:05]NVStorageDeleteData [06:45:05]Write to MH i2c: 01 00 00 F2 1B 0D [06:45:05]Write i2c OK [06:45:05]MH_I2C_Read... [06:45:05]Read from MH i2c: 01 [06:45:05]MH_I2C_Read... [06:45:05]Read from MH i2c: 01 07 00 [06:45:05]MH_I2C_Read... [06:45:05]Read from MH i2c: 01 07 00 F2 1B 00 00 00 00 00 C6 0C E6 [06:45:05]RasterBufferAndPrint [06:45:05]line [06:45:05]line [06:45:05]line [06:45:05]line [06:45:05]line [06:45:05]written 0, free lines is 3275 [06:45:05]MH_Cut [06:45:05]Write to MH i2c: D1 01 00 F9 1B 01 E6 [06:45:05]Write i2c OK [06:45:05]MH_I2C_Read... [06:45:05]Read from MH i2c: D1 [06:45:05]MH_I2C_Read... [06:45:05]Read from MH i2c: D1 01 00 [06:45:05]MH_I2C_Read... [06:45:05]Read from MH i2c: D1 01 00 F9 1B 00 E5 [06:45:05]Write to MH i2c: 01 00 00 FA 1B 15 [06:45:05]Write i2c OK [06:45:05]MH_I2C_Read... [06:45:05]OFD Sender: No OFD packet to send [06:45:06]*** Cut start [06:45:06]*** Partial cut [06:45:06]*** CUTSNS_PIN = 1 [06:45:06]*** CUTSNS_PIN = 0 [06:45:06]*** Brake cut motor [06:45:06]Read from MH i2c: 01 [06:45:06]MH_I2C_Read... [06:45:06]*** Stop cut motor [06:45:06]*** Cut end [06:45:06]Read from MH i2c: 01 07 00 [06:45:06]MH_I2C_Read... [06:45:06]Read from MH i2c: 01 07 00 FA 1B 00 00 00 00 00 FF 0F 2A [06:45:06]process_action close_receipt done [06:45:06]requested_data is exist [06:45:06]produce_requested_data [06:45:06]requested_item fm.sn is exist - process it [06:45:06]wFMCommunicate request_size=4 [06:45:06]MH_SAM_APDU [06:45:06]CAPDU: 80 11 00 00 [06:45:06]Write to MH i2c: E2 08 00 FB 1B 80 11 00 00 00 00 00 00 90 [06:45:06]Write i2c OK [06:45:06]MH_I2C_Read... [06:45:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:45:06]Read from MH i2c: E2 [06:45:06]MH_I2C_Read... [06:45:06]Read from MH i2c: E2 17 00 [06:45:06]MH_I2C_Read... [06:45:06]Read from MH i2c: E2 17 00 FB 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DF [06:45:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:45:06]wFMCommunicate OK [06:45:06]requested_item fd.num is exist - process it [06:45:06]SAM_PROTO_GetFieldsCounters [06:45:06]wFMCommunicate request_size=4 [06:45:06]MH_SAM_APDU [06:45:06]CAPDU: 80 13 00 00 [06:45:06]Write to MH i2c: E2 08 00 FC 1B 80 13 00 00 00 00 00 00 93 [06:45:06]Write i2c OK [06:45:06]MH_I2C_Read... [06:45:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:45:07]Read from MH i2c: E2 [06:45:07]MH_I2C_Read... [06:45:07]Read from MH i2c: E2 62 00 [06:45:07]MH_I2C_Read... [06:45:07]Read from MH i2c: E2 62 00 FC 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8C 70 00 00 0E 04 04 00 73 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 79 [06:45:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8C 70 00 00 0E 04 04 00 73 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 [06:45:07]wFMCommunicate OK [06:45:07]SAM_PROTO_GetFieldsCounters done [06:45:07]requested_item shift.num is exist - process it [06:45:07]requested_item shift.opened is exist - process it [06:45:07]req_shift_opened [06:45:07]FM_GetShiftState [06:45:07]SAM_PROTO_GetShiftState [06:45:07]wFMCommunicate request_size=4 [06:45:07]MH_SAM_APDU [06:45:07]CAPDU: 80 13 01 00 [06:45:07]Write to MH i2c: E2 08 00 FD 1B 80 13 01 00 00 00 00 00 95 [06:45:07]Write i2c OK [06:45:07]MH_I2C_Read... [06:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:45:07]Read from MH i2c: E2 [06:45:07]MH_I2C_Read... [06:45:07]Read from MH i2c: E2 0E 00 [06:45:07]MH_I2C_Read... [06:45:07]Read from MH i2c: E2 0E 00 FD 1B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 AE [06:45:07]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [06:45:07]wFMCommunicate OK [06:45:07]SAM_PROTO_GetShiftState done [06:45:07]FM_GetShiftState done [06:45:07]req_shift_opened done [06:45:07]requested_item shift.open_date is exist - process it [06:45:07]req_shift_open_date [06:45:07]req_shift_open_date done [06:45:07]produce_requested_data done [06:45:07]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28812,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [06:45:07]process_action_free close_receipt [06:45:07]json_value_free [06:45:07]json_value_free done [06:45:07]process_json_proto returns [06:45:07]Send response to host [06:45:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28812,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [06:45:07]free response buf [06:45:07]execute_script done [06:45:07]execute_script returns [06:45:07]free content buf [06:45:07]Sock 7.Close socket [06:45:07]Sock 7.Thread stoped [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:51]OFD Sender: No OFD packet to send [06:47:56]OFD Sender: No OFD packet to send [06:48:01]OFD Sender: No OFD packet to send [06:48:06]OFD Sender: No OFD packet to send [06:48:11]OFD Sender: No OFD packet to send [06:48:16]OFD Sender: No OFD packet to send [06:48:21]OFD Sender: No OFD packet to send [06:48:26]OFD Sender: No OFD packet to send [06:48:31]OFD Sender: No OFD packet to send [06:48:36]OFD Sender: No OFD packet to send [06:48:41]OFD Sender: No OFD packet to send [06:48:46]OFD Sender: No OFD packet to send [06:48:51]OFD Sender: No OFD packet to send [06:48:56]OFD Sender: No OFD packet to send [06:49:01]OFD Sender: No OFD packet to send [06:49:06]OFD Sender: No OFD packet to send [06:49:11]OFD Sender: No OFD packet to send [06:49:16]OFD Sender: No OFD packet to send [06:49:21]OFD Sender: No OFD packet to send [06:49:26]OFD Sender: No OFD packet to send [06:49:31]OFD Sender: No OFD packet to send [06:49:36]OFD Sender: No OFD packet to send [06:49:41]OFD Sender: No OFD packet to send [06:49:46]OFD Sender: No OFD packet to send [06:49:51]OFD Sender: No OFD packet to send [06:49:56]OFD Sender: No OFD packet to send [06:50:01]OFD Sender: No OFD packet to send [06:50:06]OFD Sender: No OFD packet to send [06:50:11]OFD Sender: No OFD packet to send [06:50:16]OFD Sender: No OFD packet to send [06:50:21]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:41]OFD Sender: No OFD packet to send [06:50:46]OFD Sender: No OFD packet to send [06:50:51]OFD Sender: No OFD packet to send [06:50:56]OFD Sender: No OFD packet to send [06:51:01]OFD Sender: No OFD packet to send [06:51:06]OFD Sender: No OFD packet to send [06:51:11]OFD Sender: No OFD packet to send [06:51:16]OFD Sender: No OFD packet to send [06:51:21]OFD Sender: No OFD packet to send [06:51:26]OFD Sender: No OFD packet to send [06:51:31]OFD Sender: No OFD packet to send [06:51:36]OFD Sender: No OFD packet to send [06:51:41]OFD Sender: No OFD packet to send [06:51:46]OFD Sender: No OFD packet to send [06:51:51]OFD Sender: No OFD packet to send [06:51:55]accept exits with 9 [06:51:55]New connection [06:51:55]New thread 3066785124 created [06:51:55]Thread 3066928484 joined [06:51:55]Waiting for new connection... [06:51:55] Sock 9.Parse request [06:51:55]Sock 9.Check first char [06:51:55]Sock 9.First char is OK [06:51:55]request: POST /json_proto HTTP/1.0 [06:51:55]Method: POST [06:51:55]URL: /json_proto [06:51:55]Method is POST - this is cgi request [06:51:55]url: /json_proto [06:51:55]query_string will be loaded in cgi processing [06:51:55]execute_cgi json_proto POST (null) [06:51:55]execute_cgi path=json_proto method=POST [06:51:55]POST find Content-Length [06:51:55]Host: 172.17.33.3:8080 [06:51:55]Content-Length: 679 [06:51:55]Content-Type: application/json [06:51:55] [06:51:55]POST finish read [06:51:55]Found Content-Length = 679 [06:51:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 41.440, "sum" : 3000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:55]execute_script... [06:51: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)347161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 41.440, "sum" : 3000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:55]POST & json_proto [06:51:55]process_json_proto [06:51:55]json parsed OK: [06:51:55]protocol is kg_v1.0 [06:51:55]action value=close_receipt [06:51:55]process_action close_receipt [06:51:55]cmd_close_receipt [06:51:55]MH_GetDate [06:51:55]Write to MH i2c: F0 00 00 FE 1B 08 [06:51:55]Write i2c OK [06:51:55]MH_I2C_Read... [06:51:55]Read from MH i2c: F0 [06:51:55]MH_I2C_Read... [06:51:55]Read from MH i2c: F0 09 00 [06:51:55]MH_I2C_Read... [06:51:55]Read from MH i2c: F0 09 00 FE 1B 00 8F 2B 1A 66 23 5B 8F 65 BD [06:51:55]GetLastDocTimeStamp 1712990706 [06:51:55]current date 1712991119 [06:51:55]FM_GetShiftState [06:51:55]SAM_PROTO_GetShiftState [06:51:55]wFMCommunicate request_size=4 [06:51:55]MH_SAM_APDU [06:51:55]CAPDU: 80 13 01 00 [06:51:55]Write to MH i2c: E2 08 00 FF 1B 80 13 01 00 00 00 00 00 97 [06:51:55]Write i2c OK [06:51:55]MH_I2C_Read... [06:51:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:51:55]Read from MH i2c: E2 [06:51:55]MH_I2C_Read... [06:51:55]Read from MH i2c: E2 0E 00 [06:51:55]MH_I2C_Read... [06:51:55]Read from MH i2c: E2 0E 00 FF 1B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 B0 [06:51:55]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [06:51:55]wFMCommunicate OK [06:51:55]SAM_PROTO_GetShiftState done [06:51:55]FM_GetShiftState done [06:51:55]opened in 1712967615 [06:51:55]opened+sec_in_day 1713054015 [06:51:55]quantity*price = 300025 [06:51:55]sum+1 = 300027 [06:51:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.61 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 20 13.04.2024 06:51 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28813 ФПД: 234194844070701 1/tax-web-control/client/api/v1/ticket?date=20240413T065159&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28813&fm=234194844070701&tin=02508201610067®Number=0000138879044617&sum=300000 [06:51:56]StoreToDocumentArchive [06:51:56]shift 115 fd 28813 [06:51:56]save to /storage/0115/doc_00028813 [06:51:56]save last doc name /storage/0115/doc_00028813 to /storage/kkm_last_doc_name [06:51:56]save OK [06:51:56]Clear old archive folders... [06:51:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:51:56]tlvbuf is 011A3F60 [06:51:56]SAM_PROTO_ClearQueue [06:51:56]wFMCommunicate request_size=4 [06:51:56]MH_SAM_APDU [06:51:56]CAPDU: 80 09 00 00 [06:51:56]Write to MH i2c: E2 08 00 0C 1C 80 09 00 00 00 00 00 00 9A [06:51:56]Write i2c OK [06:51:56]MH_I2C_Read... [06:51:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:51:57]Read from MH i2c: E2 [06:51:57]MH_I2C_Read... [06:51:57]Read from MH i2c: E2 03 00 [06:51:57]MH_I2C_Read... [06:51:57]Read from MH i2c: E2 03 00 0C 1C 00 90 00 9C [06:51:57]RAPDU: 90 00 [06:51:57]wFMCommunicate OK [06:51:57]SAM_PROTO_ClearQueue done [06:51:57]KKMCreateOFDPacket [06:51:57]OFDProtocolAddRootSTLVToBuf [06:51:57]FM_MakeSignedData [06:51:57]FM_MakeSignedData [06:51:57]SAM_PROTO_SignData [06:51:57]wFMCommunicate request_size=4 [06:51:57]MH_SAM_APDU [06:51:57]CAPDU: 80 0D 01 02 [06:51:57]Write to MH i2c: E2 08 00 0D 1C 80 0D 01 02 00 00 00 00 A2 [06:51:57]Write i2c OK [06:51:57]MH_I2C_Read... [06:51:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:51:57]Read from MH i2c: E2 [06:51:57]MH_I2C_Read... [06:51:57]Read from MH i2c: E2 03 00 [06:51:57]MH_I2C_Read... [06:51:57]Read from MH i2c: E2 03 00 0D 1C 00 90 00 9D [06:51:57]RAPDU: 90 00 [06:51:57]wFMCommunicate OK [06:51:57]wFMCommunicate request_size=255 [06:51:57]MH_SAM_APDU [06:51: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 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 8F 2B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8D 70 00 00 35 04 06 00 D4 FF BC 7D [06:51:57]Write to MH i2c: E2 02 01 0E 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 8F 2B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8D 70 00 00 35 04 06 00 D4 FF BC 7D 00 00 A4 [06:51:57]Write i2c OK [06:51:57]MH_I2C_Read... [06:51:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:51:57]Read from MH i2c: E2 [06:51:57]MH_I2C_Read... [06:51:57]Read from MH i2c: E2 03 00 [06:51:57]MH_I2C_Read... [06:51:57]Read from MH i2c: E2 03 00 0E 1C 00 90 00 9E [06:51:57]RAPDU: 90 00 [06:51:57]wFMCommunicate OK [06:51:57]wFMCommunicate request_size=7 [06:51:57]MH_SAM_APDU [06:51:57]CAPDU: 80 0D 02 02 02 33 2D [06:51:57]Write to MH i2c: E2 0A 00 0F 1C 80 0D 02 02 02 00 33 2D 00 00 09 [06:51:57]Write i2c OK [06:51:57]MH_I2C_Read... [06:51:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:51:57]Read from MH i2c: E2 [06:51:57]MH_I2C_Read... [06:51:57]Read from MH i2c: E2 03 00 [06:51:57]MH_I2C_Read... [06:51:57]Read from MH i2c: E2 03 00 0F 1C 00 90 00 9F [06:51:57]RAPDU: 90 00 [06:51:57]wFMCommunicate OK [06:51:57]wFMCommunicate request_size=4 [06:51:57]MH_SAM_APDU [06:51:57]CAPDU: 80 0D 03 02 [06:51:57]Write to MH i2c: E2 08 00 10 1C 80 0D 03 02 00 00 00 00 A7 [06:51:57]Write i2c OK [06:51:57]MH_I2C_Read... [06:51:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:51:57]Read from MH i2c: E2 [06:51:57]MH_I2C_Read... [06:51:57]Read from MH i2c: E2 0B 00 [06:51:57]MH_I2C_Read... [06:51:57]Read from MH i2c: E2 0B 00 10 1C 00 23 31 67 80 85 EB 07 33 90 00 8D [06:51:57]RAPDU: 23 31 67 80 85 EB 07 33 90 00 [06:51:57]wFMCommunicate OK [06:51:57]SAM_PROTO_SignData done [06:51:57]FM_MakeSignedData done [06:51:57]CreateOFDProtocolMessage [06:51:57]wFMCommunicate request_size=4 [06:51:57]MH_SAM_APDU [06:51:57]CAPDU: 80 11 00 00 [06:51:57]Write to MH i2c: E2 08 00 11 1C 80 11 00 00 00 00 00 00 A7 [06:51:57]Write i2c OK [06:51:57]MH_I2C_Read... [06:51:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:51:57]Read from MH i2c: E2 [06:51:57]MH_I2C_Read... [06:51:57]Read from MH i2c: E2 17 00 [06:51:57]MH_I2C_Read... [06:51:57]Read from MH i2c: E2 17 00 11 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F6 [06:51:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:51:57]wFMCommunicate OK [06:51:57]CreateOFDProtocolMessage done [06:51:57]OFDSenderStorePacket 28813 [06:51:57]StoreOFDPacket docnum=28813 [06:51:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 EE AF 04 01 92 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 8F 2B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8D 70 00 00 35 04 06 00 D4 FF BC 7D 33 2D 23 31 67 80 85 EB 07 33 [06:51:57]CheckFolder [06:51:57]dirname=/storage/ofd_packets [06:51:57]CheckFolder done [06:51:57]ProducePacketName [06:51:57]name=ofd_packets/00028813 [06:51:57]NVStorageSaveData ofd_packets/00028813 [06:51:57]File name is /storage/ofd_packets/00028813 [06:51:57]Write 298 bytes [06:51:57]NVStorageSaveData done [06:51:57]OFDSenderStorePacket done [06:51:57]KKMCreateOFDPacket done [06:51:57]NVStorageSaveData kkm_last_timestamp [06:51:57]File name is /storage/kkm_last_timestamp [06:51:57]Write 4 bytes [06:51:57]NVStorageSaveData done [06:51:57]ExternCall_PrintAddStr [06:51:57]wPrintStart [06:51:57]Write to MH i2c: 01 00 00 12 1C 2E [06:51:57]Write i2c OK [06:51:57]MH_I2C_Read... [06:51:57]Read from MH i2c: 01 [06:51:57]MH_I2C_Read... [06:51:57]Read from MH i2c: 01 07 00 [06:51:57]MH_I2C_Read... [06:51:57]Read from MH i2c: 01 07 00 12 1C 00 00 00 00 00 FF 0F 43 [06:51:57]RasterBufferAndPrint [06:51:57]line Счет N : (1)347161 [06:51:57]line ИНН: 02508201610067 [06:51:57]line Контрольно-Кассовый Чек [06:51:57]line ПРОДАЖА [06:51:57]line ТРК (МРК, ГНК) : 11 [06:51:57]line Товар: 2710194210 [06:51:57]line ДТ-К-5 [06:51:57]line 41.440 * 72.40 [06:51:57]line = 3000.26 [06:51:57]line НДС 12% НСП 1% [06:51:57]line > о реализуемом товаре [06:51:57]line ОКРУГЛЕНИЕ: -0.26 [06:51:57]line ИТОГО: 3000.00 [06:51:57]line Внесено: 3000.00 [06:51:57]line СДАЧА: 0.00 [06:51:57]line НСП 1% : 26.55 [06:51:57]line НДС 12% : 318.61 [06:51:57]line Наличными: 3000.00 [06:51:57]line Безнал.: 0.00 [06:51:57]line Место: АЗС № 108 "Партнер Нефть" [06:51:57]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [06:51:57]line СНО: Общий режим [06:51:57]line Чек 20 13.04.2024 06:51 [06:51:57]line Смена: 115 ФФД: 1.0 [06:51:57]line ЗНМ: 0300000027 [06:51:57]line РНМ: 0000138879044617 [06:51:57]line Версия ККМ: 001 [06:51:57]line ФМ: 0000000000963154 [06:51:57]line ФД: 28813 [06:51:57]line ФПД: 234194844070701 [06:51:57]line 1/tax-web-control/client/api/v1/ticket?date=20240413T065159&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28813&fm=234194844070701&tin=02508201610067®Number=0000138879044617&sum=300000 [06:51:57]OFD Sender: Processing packet 28813 [packets to send 8, broken 7] [06:51:57]ProducePacketName [06:51:57]name=ofd_packets/00028813 [06:51:57]OFD Sender: To server: pG, [06:51:57]CommunicateWithHost lk.salyk.kg:30040 [06:51:57]ConnectInit lk.salyk.kg [06:51:57]written 0, free lines is 4095 [06:51:57]Connected sock=10 [06:51: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 31 35 34 0C 01 00 00 EE AF 04 01 92 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 8F 2B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8D 70 00 00 35 04 06 00 D4 FF BC 7D 33 2D 23 31 67 80 85 EB 07 33 [06:51:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4C 2C 47 00 AF 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 31 35 34 10 04 04 00 8D 70 00 00 F4 03 04 00 36 D6 19 66 B6 04 01 00 00 38 9B 39 AB 7B 19 B1 2A [06:51:58]CommunicateWithHost err = 0 [06:51:58]CheckOFDResponse [06:51:58]1017 (14) - 77093643461234 [06:51:58]1041 (16) - 0000000000963154 [06:51:58]1040 (4) - 28813 [06:51:58]1012 (4) - 13.04.2024 00:47 [06:51:58]1206 (1) - 0 [06:51:58]OFD Sender: Remove packet 28813 [06:51:58]ProducePacketName [06:51:58]name=ofd_packets/00028813 [06:51:58]NVStorageDeleteData [06:51:58]Write to MH i2c: 01 00 00 3C 1C 58 [06:51:58]Write i2c OK [06:51:58]MH_I2C_Read... [06:51:58]Read from MH i2c: 01 [06:51:58]MH_I2C_Read... [06:51:58]Read from MH i2c: 01 07 00 [06:51:58]MH_I2C_Read... [06:51:58]Read from MH i2c: 01 07 00 3C 1C 00 00 00 00 00 C5 0C 30 [06:51:58]RasterBufferAndPrint [06:51:58]line [06:51:58]line [06:51:58]line [06:51:58]line [06:51:58]line [06:51:58]written 0, free lines is 3273 [06:51:58]MH_Cut [06:51:58]Write to MH i2c: D1 01 00 43 1C 01 31 [06:51:58]Write i2c OK [06:51:58]MH_I2C_Read... [06:51:58]Read from MH i2c: D1 [06:51:58]MH_I2C_Read... [06:51:58]Read from MH i2c: D1 01 00 [06:51:58]MH_I2C_Read... [06:51:58]Read from MH i2c: D1 01 00 43 1C 00 30 [06:51:58]Write to MH i2c: 01 00 00 44 1C 60 [06:51:58]Write i2c OK [06:51:58]MH_I2C_Read... [06:51:58]OFD Sender: No OFD packet to send [06:51:59]*** Cut start [06:51:59]*** Partial cut [06:51:59]*** CUTSNS_PIN = 1 [06:51:59]*** CUTSNS_PIN = 0 [06:51:59]*** Brake cut motor [06:51:59]Read from MH i2c: 01 [06:51:59]MH_I2C_Read... [06:51:59]*** Stop cut motor [06:51:59]*** Cut end [06:51:59]Read from MH i2c: 01 07 00 [06:51:59]MH_I2C_Read... [06:51:59]Read from MH i2c: 01 07 00 44 1C 00 00 00 00 00 FF 0F 75 [06:51:59]process_action close_receipt done [06:51:59]requested_data is exist [06:51:59]produce_requested_data [06:51:59]requested_item fm.sn is exist - process it [06:51:59]wFMCommunicate request_size=4 [06:51:59]MH_SAM_APDU [06:51:59]CAPDU: 80 11 00 00 [06:51:59]Write to MH i2c: E2 08 00 45 1C 80 11 00 00 00 00 00 00 DB [06:51:59]Write i2c OK [06:51:59]MH_I2C_Read... [06:51:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:51:59]Read from MH i2c: E2 [06:51:59]MH_I2C_Read... [06:51:59]Read from MH i2c: E2 17 00 [06:51:59]MH_I2C_Read... [06:51:59]Read from MH i2c: E2 17 00 45 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2A [06:51:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:51:59]wFMCommunicate OK [06:51:59]requested_item fd.num is exist - process it [06:51:59]SAM_PROTO_GetFieldsCounters [06:51:59]wFMCommunicate request_size=4 [06:51:59]MH_SAM_APDU [06:51:59]CAPDU: 80 13 00 00 [06:51:59]Write to MH i2c: E2 08 00 46 1C 80 13 00 00 00 00 00 00 DE [06:51:59]Write i2c OK [06:51:59]MH_I2C_Read... [06:51:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:51:59]Read from MH i2c: E2 [06:51:59]MH_I2C_Read... [06:51:59]Read from MH i2c: E2 62 00 [06:51:59]MH_I2C_Read... [06:51:59]Read from MH i2c: E2 62 00 46 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8D 70 00 00 0E 04 04 00 73 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 C8 [06:51:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8D 70 00 00 0E 04 04 00 73 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 [06:51:59]wFMCommunicate OK [06:51:59]SAM_PROTO_GetFieldsCounters done [06:51:59]requested_item shift.num is exist - process it [06:51:59]requested_item shift.opened is exist - process it [06:51:59]req_shift_opened [06:51:59]FM_GetShiftState [06:51:59]SAM_PROTO_GetShiftState [06:51:59]wFMCommunicate request_size=4 [06:51:59]MH_SAM_APDU [06:51:59]CAPDU: 80 13 01 00 [06:51:59]Write to MH i2c: E2 08 00 47 1C 80 13 01 00 00 00 00 00 E0 [06:51:59]Write i2c OK [06:51:59]MH_I2C_Read... [06:51:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:51:59]Read from MH i2c: E2 [06:51:59]MH_I2C_Read... [06:51:59]Read from MH i2c: E2 0E 00 [06:51:59]MH_I2C_Read... [06:51:59]Read from MH i2c: E2 0E 00 47 1C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F9 [06:51:59]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [06:51:59]wFMCommunicate OK [06:51:59]SAM_PROTO_GetShiftState done [06:51:59]FM_GetShiftState done [06:51:59]req_shift_opened done [06:51:59]requested_item shift.open_date is exist - process it [06:51:59]req_shift_open_date [06:51:59]req_shift_open_date done [06:51:59]produce_requested_data done [06:51:59]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28813,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [06:51:59]process_action_free close_receipt [06:51:59]json_value_free [06:51:59]json_value_free done [06:51:59]process_json_proto returns [06:51:59]Send response to host [06:51:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28813,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [06:51:59]free response buf [06:51:59]execute_script done [06:51:59]execute_script returns [06:51:59]free content buf [06:51:59]Sock 9.Close socket [06:51:59]Sock 9.Thread stoped [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]accept exits with 7 [06:58:03]New connection [06:58:03]New thread 3066928484 created [06:58:03]Thread 3066785124 joined [06:58:03]Waiting for new connection... [06:58:03] Sock 7.Parse request [06:58:03]Sock 7.Check first char [06:58:03]Sock 7.First char is OK [06:58:03]request: POST /json_proto HTTP/1.0 [06:58:03]Method: POST [06:58:03]URL: /json_proto [06:58:03]Method is POST - this is cgi request [06:58:03]url: /json_proto [06:58:03]query_string will be loaded in cgi processing [06:58:03]execute_cgi json_proto POST (null) [06:58:03]execute_cgi path=json_proto method=POST [06:58:03]POST find Content-Length [06:58:03]Host: 172.17.33.3:8080 [06:58:03]Content-Length: 679 [06:58:03]Content-Type: application/json [06:58:03] [06:58:03]POST finish read [06:58:03]Found Content-Length = 679 [06:58:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 12.560, "sum" : 807.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 807.00, "payments": [ { "type": 0, "sum" : 807.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:58:03]execute_script... [06:58: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)347162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 12.560, "sum" : 807.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 807.00, "payments": [ { "type": 0, "sum" : 807.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:58:03]POST & json_proto [06:58:03]process_json_proto [06:58:03]json parsed OK: [06:58:03]protocol is kg_v1.0 [06:58:03]action value=close_receipt [06:58:03]process_action close_receipt [06:58:03]cmd_close_receipt [06:58:03]MH_GetDate [06:58:03]Write to MH i2c: F0 00 00 48 1C 53 [06:58:03]Write i2c OK [06:58:03]MH_I2C_Read... [06:58:03]Read from MH i2c: F0 [06:58:03]MH_I2C_Read... [06:58:03]Read from MH i2c: F0 09 00 [06:58:03]MH_I2C_Read... [06:58:03]Read from MH i2c: F0 09 00 48 1C 00 FF 2C 1A 66 23 5B 8F 65 79 [06:58:03]GetLastDocTimeStamp 1712991119 [06:58:03]current date 1712991487 [06:58:03]FM_GetShiftState [06:58:03]SAM_PROTO_GetShiftState [06:58:03]wFMCommunicate request_size=4 [06:58:03]MH_SAM_APDU [06:58:03]CAPDU: 80 13 01 00 [06:58:03]Write to MH i2c: E2 08 00 49 1C 80 13 01 00 00 00 00 00 E2 [06:58:03]Write i2c OK [06:58:03]MH_I2C_Read... [06:58:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:03]Read from MH i2c: E2 [06:58:03]MH_I2C_Read... [06:58:03]Read from MH i2c: E2 0E 00 [06:58:03]MH_I2C_Read... [06:58:03]Read from MH i2c: E2 0E 00 49 1C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 FB [06:58:03]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [06:58:03]wFMCommunicate OK [06:58:03]SAM_PROTO_GetShiftState done [06:58:03]FM_GetShiftState done [06:58:03]opened in 1712967615 [06:58:03]opened+sec_in_day 1713054015 [06:58:03]quantity*price = 80760 [06:58:03]sum+1 = 80762 [06:58:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 807.00 Внесено: 1000.00 СДАЧА: 193.00 НСП 1% : 7.15 НДС 12% : 85.76 Наличными: 807.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 21 13.04.2024 06:58 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28814 ФПД: 154120793517079 1/tax-web-control/client/api/v1/ticket?date=20240413T065807&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28814&fm=154120793517079&tin=02508201610067®Number=0000138879044617&sum=80700 [06:58:04]StoreToDocumentArchive [06:58:04]shift 115 fd 28814 [06:58:04]save to /storage/0115/doc_00028814 [06:58:04]save last doc name /storage/0115/doc_00028814 to /storage/kkm_last_doc_name [06:58:04]save OK [06:58:04]Clear old archive folders... [06:58:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:58:04]tlvbuf is B6EBB0E0 [06:58:04]SAM_PROTO_ClearQueue [06:58:04]wFMCommunicate request_size=4 [06:58:04]MH_SAM_APDU [06:58:04]CAPDU: 80 09 00 00 [06:58:04]Write to MH i2c: E2 08 00 56 1C 80 09 00 00 00 00 00 00 E4 [06:58:04]Write i2c OK [06:58:04]MH_I2C_Read... [06:58:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:58:04]Read from MH i2c: E2 [06:58:04]MH_I2C_Read... [06:58:04]Read from MH i2c: E2 03 00 [06:58:04]MH_I2C_Read... [06:58:04]Read from MH i2c: E2 03 00 56 1C 00 90 00 E6 [06:58:04]RAPDU: 90 00 [06:58:04]wFMCommunicate OK [06:58:04]SAM_PROTO_ClearQueue done [06:58:04]KKMCreateOFDPacket [06:58:04]OFDProtocolAddRootSTLVToBuf [06:58:04]FM_MakeSignedData [06:58:04]FM_MakeSignedData [06:58:04]SAM_PROTO_SignData [06:58:04]wFMCommunicate request_size=4 [06:58:04]MH_SAM_APDU [06:58:04]CAPDU: 80 0D 01 02 [06:58:04]Write to MH i2c: E2 08 00 57 1C 80 0D 01 02 00 00 00 00 EC [06:58:04]Write i2c OK [06:58:04]MH_I2C_Read... [06:58:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:58:04]Read from MH i2c: E2 [06:58:04]MH_I2C_Read... [06:58:04]Read from MH i2c: E2 03 00 [06:58:04]MH_I2C_Read... [06:58:04]Read from MH i2c: E2 03 00 57 1C 00 90 00 E7 [06:58:04]RAPDU: 90 00 [06:58:04]wFMCommunicate OK [06:58:04]wFMCommunicate request_size=255 [06:58:04]MH_SAM_APDU [06:58: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 10 31 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 79 3B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 3B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 21 00 00 00 00 07 04 06 00 3C 3B 01 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 FF 2C 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8E 70 00 00 35 04 06 00 8C [06:58:04]Write to MH i2c: E2 02 01 58 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 10 31 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 79 3B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 3B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 21 00 00 00 00 07 04 06 00 3C 3B 01 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 FF 2C 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8E 70 00 00 35 04 06 00 8C 00 00 5B [06:58:04]Write i2c OK [06:58:04]MH_I2C_Read... [06:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:05]Read from MH i2c: E2 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 03 00 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 03 00 58 1C 00 90 00 E8 [06:58:05]RAPDU: 90 00 [06:58:05]wFMCommunicate OK [06:58:05]wFMCommunicate request_size=10 [06:58:05]MH_SAM_APDU [06:58:05]CAPDU: 80 0D 02 02 05 2C 0B 26 6C 17 [06:58:05]Write to MH i2c: E2 0D 00 59 1C 80 0D 02 02 05 00 2C 0B 26 6C 17 00 00 D9 [06:58:05]Write i2c OK [06:58:05]MH_I2C_Read... [06:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:05]Read from MH i2c: E2 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 03 00 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 03 00 59 1C 00 90 00 E9 [06:58:05]RAPDU: 90 00 [06:58:05]wFMCommunicate OK [06:58:05]wFMCommunicate request_size=4 [06:58:05]MH_SAM_APDU [06:58:05]CAPDU: 80 0D 03 02 [06:58:05]Write to MH i2c: E2 08 00 5A 1C 80 0D 03 02 00 00 00 00 F1 [06:58:05]Write i2c OK [06:58:05]MH_I2C_Read... [06:58:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:58:05]Read from MH i2c: E2 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 0B 00 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 0B 00 5A 1C 00 77 B2 67 06 0A 36 0C 07 90 00 DB [06:58:05]RAPDU: 77 B2 67 06 0A 36 0C 07 90 00 [06:58:05]wFMCommunicate OK [06:58:05]SAM_PROTO_SignData done [06:58:05]FM_MakeSignedData done [06:58:05]CreateOFDProtocolMessage [06:58:05]wFMCommunicate request_size=4 [06:58:05]MH_SAM_APDU [06:58:05]CAPDU: 80 11 00 00 [06:58:05]Write to MH i2c: E2 08 00 5B 1C 80 11 00 00 00 00 00 00 F1 [06:58:05]Write i2c OK [06:58:05]MH_I2C_Read... [06:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:05]Read from MH i2c: E2 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 17 00 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 17 00 5B 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 40 [06:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:58:05]wFMCommunicate OK [06:58:05]CreateOFDProtocolMessage done [06:58:05]OFDSenderStorePacket 28814 [06:58:05]StoreOFDPacket docnum=28814 [06:58:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 30 E2 07 01 71 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 10 31 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 79 3B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 3B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 21 00 00 00 00 07 04 06 00 3C 3B 01 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 FF 2C 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8E 70 00 00 35 04 06 00 8C 2C 0B 26 6C 17 77 B2 67 06 0A 36 0C 07 [06:58:05]CheckFolder [06:58:05]dirname=/storage/ofd_packets [06:58:05]CheckFolder done [06:58:05]ProducePacketName [06:58:05]name=ofd_packets/00028814 [06:58:05]NVStorageSaveData ofd_packets/00028814 [06:58:05]File name is /storage/ofd_packets/00028814 [06:58:05]Write 301 bytes [06:58:05]NVStorageSaveData done [06:58:05]OFDSenderStorePacket done [06:58:05]KKMCreateOFDPacket done [06:58:05]NVStorageSaveData kkm_last_timestamp [06:58:05]File name is /storage/kkm_last_timestamp [06:58:05]Write 4 bytes [06:58:05]NVStorageSaveData done [06:58:05]ExternCall_PrintAddStr [06:58:05]wPrintStart [06:58:05]Write to MH i2c: 01 00 00 5C 1C 78 [06:58:05]Write i2c OK [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: 01 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: 01 07 00 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: 01 07 00 5C 1C 00 00 00 00 00 FF 0F 8D [06:58:05]RasterBufferAndPrint [06:58:05]line Счет N : (1)347162 [06:58:05]line ИНН: 02508201610067 [06:58:05]line Контрольно-Кассовый Чек [06:58:05]line ПРОДАЖА [06:58:05]line ТРК (МРК, ГНК) : 13 [06:58:05]line Товар: 2710124130 [06:58:05]line Аи-92-К-5 [06:58:05]line 12.560 * 64.30 [06:58:05]line = 807.61 [06:58:05]line НДС 12% НСП 1% [06:58:05]line > о реализуемом товаре [06:58:05]line ОКРУГЛЕНИЕ: -0.61 [06:58:05]line ИТОГО: 807.00 [06:58:05]line Внесено: 1000.00 [06:58:05]line СДАЧА: 193.00 [06:58:05]line НСП 1% : 7.15 [06:58:05]line НДС 12% : 85.76 [06:58:05]line Наличными: 807.00 [06:58:05]line Безнал.: 0.00 [06:58:05]line Место: АЗС № 108 "Партнер Нефть" [06:58:05]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [06:58:05]line СНО: Общий режим [06:58:05]line Чек 21 13.04.2024 06:58 [06:58:05]line Смена: 115 ФФД: 1.0 [06:58:05]line ЗНМ: 0300000027 [06:58:05]line РНМ: 0000138879044617 [06:58:05]line Версия ККМ: 001 [06:58:05]line ФМ: 0000000000963154 [06:58:05]line ФД: 28814 [06:58:05]line ФПД: 154120793517079 [06:58:05]line 1/tax-web-control/client/api/v1/ticket?date=20240413T065807&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28814&fm=154120793517079&tin=02508201610067®Number=0000138879044617&sum=80700 [06:58:05]OFD Sender: Processing packet 28814 [packets to send 8, broken 7] [06:58:05]ProducePacketName [06:58:05]name=ofd_packets/00028814 [06:58:05]OFD Sender: To server: pG, [06:58:05]CommunicateWithHost lk.salyk.kg:30040 [06:58:05]ConnectInit lk.salyk.kg [06:58:05]written 0, free lines is 4095 [06:58:05]Connected sock=9 [06:58: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 31 35 34 0F 01 00 00 30 E2 07 01 71 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 10 31 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 79 3B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 3B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 21 00 00 00 00 07 04 06 00 3C 3B 01 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 FF 2C 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8E 70 00 00 35 04 06 00 8C 2C 0B 26 6C 17 77 B2 67 06 0A 36 0C 07 [06:58:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1E C0 47 00 2E 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8E 70 00 00 F4 03 04 00 A6 D7 19 66 B6 04 01 00 00 B8 8A E1 92 89 9D DB D4 [06:58:05]CommunicateWithHost err = 0 [06:58:05]CheckOFDResponse [06:58:05]1017 (14) - 77093643461234 [06:58:05]1041 (16) - 0000000000963154 [06:58:05]1040 (4) - 28814 [06:58:05]1012 (4) - 13.04.2024 00:53 [06:58:05]1206 (1) - 0 [06:58:05]OFD Sender: Remove packet 28814 [06:58:05]ProducePacketName [06:58:05]name=ofd_packets/00028814 [06:58:05]NVStorageDeleteData [06:58:06]Write to MH i2c: 01 00 00 86 1C A2 [06:58:06]Write i2c OK [06:58:06]MH_I2C_Read... [06:58:06]Read from MH i2c: 01 [06:58:06]MH_I2C_Read... [06:58:06]Read from MH i2c: 01 07 00 [06:58:06]MH_I2C_Read... [06:58:06]Read from MH i2c: 01 07 00 86 1C 00 00 00 00 00 CE 0C 83 [06:58:06]RasterBufferAndPrint [06:58:06]line [06:58:06]line [06:58:06]line [06:58:06]line [06:58:06]line [06:58:06]written 0, free lines is 3284 [06:58:06]MH_Cut [06:58:06]Write to MH i2c: D1 01 00 8D 1C 01 7B [06:58:06]Write i2c OK [06:58:06]MH_I2C_Read... [06:58:06]Read from MH i2c: D1 [06:58:06]MH_I2C_Read... [06:58:06]Read from MH i2c: D1 01 00 [06:58:06]MH_I2C_Read... [06:58:06]Read from MH i2c: D1 01 00 8D 1C 00 7A [06:58:06]Write to MH i2c: 01 00 00 8E 1C AA [06:58:06]Write i2c OK [06:58:06]MH_I2C_Read... [06:58:06]OFD Sender: No OFD packet to send [06:58:06]*** Cut start [06:58:06]*** Partial cut [06:58:06]*** CUTSNS_PIN = 1 [06:58:07]*** CUTSNS_PIN = 0 [06:58:07]*** Brake cut motor [06:58:07]Read from MH i2c: 01 [06:58:07]MH_I2C_Read... [06:58:07]*** Stop cut motor [06:58:07]*** Cut end [06:58:07]Read from MH i2c: 01 07 00 [06:58:07]MH_I2C_Read... [06:58:07]Read from MH i2c: 01 07 00 8E 1C 00 00 00 00 00 FF 0F BF [06:58:07]process_action close_receipt done [06:58:07]requested_data is exist [06:58:07]produce_requested_data [06:58:07]requested_item fm.sn is exist - process it [06:58:07]wFMCommunicate request_size=4 [06:58:07]MH_SAM_APDU [06:58:07]CAPDU: 80 11 00 00 [06:58:07]Write to MH i2c: E2 08 00 8F 1C 80 11 00 00 00 00 00 00 25 [06:58:07]Write i2c OK [06:58:07]MH_I2C_Read... [06:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:07]Read from MH i2c: E2 [06:58:07]MH_I2C_Read... [06:58:07]Read from MH i2c: E2 17 00 [06:58:07]MH_I2C_Read... [06:58:07]Read from MH i2c: E2 17 00 8F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 74 [06:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [06:58:07]wFMCommunicate OK [06:58:07]requested_item fd.num is exist - process it [06:58:07]SAM_PROTO_GetFieldsCounters [06:58:07]wFMCommunicate request_size=4 [06:58:07]MH_SAM_APDU [06:58:07]CAPDU: 80 13 00 00 [06:58:07]Write to MH i2c: E2 08 00 90 1C 80 13 00 00 00 00 00 00 28 [06:58:07]Write i2c OK [06:58:07]MH_I2C_Read... [06:58:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:58:07]Read from MH i2c: E2 [06:58:07]MH_I2C_Read... [06:58:07]Read from MH i2c: E2 62 00 [06:58:07]MH_I2C_Read... [06:58:07]Read from MH i2c: E2 62 00 90 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8E 70 00 00 0E 04 04 00 73 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 16 [06:58: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8E 70 00 00 0E 04 04 00 73 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 [06:58:07]wFMCommunicate OK [06:58:07]SAM_PROTO_GetFieldsCounters done [06:58:07]requested_item shift.num is exist - process it [06:58:07]requested_item shift.opened is exist - process it [06:58:07]req_shift_opened [06:58:07]FM_GetShiftState [06:58:07]SAM_PROTO_GetShiftState [06:58:07]wFMCommunicate request_size=4 [06:58:07]MH_SAM_APDU [06:58:07]CAPDU: 80 13 01 00 [06:58:07]Write to MH i2c: E2 08 00 91 1C 80 13 01 00 00 00 00 00 2A [06:58:07]Write i2c OK [06:58:07]MH_I2C_Read... [06:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:07]Read from MH i2c: E2 [06:58:07]MH_I2C_Read... [06:58:07]Read from MH i2c: E2 0E 00 [06:58:07]MH_I2C_Read... [06:58:07]Read from MH i2c: E2 0E 00 91 1C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 43 [06:58:07]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [06:58:07]wFMCommunicate OK [06:58:07]SAM_PROTO_GetShiftState done [06:58:07]FM_GetShiftState done [06:58:07]req_shift_opened done [06:58:07]requested_item shift.open_date is exist - process it [06:58:07]req_shift_open_date [06:58:07]req_shift_open_date done [06:58:07]produce_requested_data done [06:58:07]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28814,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [06:58:07]process_action_free close_receipt [06:58:07]json_value_free [06:58:07]json_value_free done [06:58:07]process_json_proto returns [06:58:07]Send response to host [06:58:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28814,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [06:58:07]free response buf [06:58:07]execute_script done [06:58:07]execute_script returns [06:58:07]free content buf [06:58:07]Sock 7.Close socket [06:58:07]Sock 7.Thread stoped [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:12]accept exits with 10 [07:01:12]New connection [07:01:12]New thread 3066785124 created [07:01:12]Thread 3066928484 joined [07:01:12]Waiting for new connection... [07:01:12] Sock 10.Parse request [07:01:12]Sock 10.Check first char [07:01:12]Sock 10.First char is OK [07:01:12]request: POST /json_proto HTTP/1.0 [07:01:12]Method: POST [07:01:12]URL: /json_proto [07:01:12]Method is POST - this is cgi request [07:01:12]url: /json_proto [07:01:12]query_string will be loaded in cgi processing [07:01:12]execute_cgi json_proto POST (null) [07:01:12]execute_cgi path=json_proto method=POST [07:01:12]POST find Content-Length [07:01:12]Host: 172.17.33.3:8080 [07:01:12]Content-Length: 677 [07:01:12]Content-Type: application/json [07:01:12] [07:01:12]POST finish read [07:01:12]Found Content-Length = 677 [07:01:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347163", "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" : 64.30, "quantity" : 7.780, "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" ] } } [07:01:12]execute_script... [07:01: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)347163", "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" : 64.30, "quantity" : 7.780, "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" ] } } [07:01:12]POST & json_proto [07:01:12]process_json_proto [07:01:12]json parsed OK: [07:01:12]protocol is kg_v1.0 [07:01:12]action value=close_receipt [07:01:12]process_action close_receipt [07:01:12]cmd_close_receipt [07:01:12]MH_GetDate [07:01:12]Write to MH i2c: F0 00 00 92 1C 9D [07:01:12]Write i2c OK [07:01:12]MH_I2C_Read... [07:01:12]Read from MH i2c: F0 [07:01:12]MH_I2C_Read... [07:01:12]Read from MH i2c: F0 09 00 [07:01:12]MH_I2C_Read... [07:01:12]Read from MH i2c: F0 09 00 92 1C 00 BC 2D 1A 66 23 5B 8F 65 81 [07:01:12]GetLastDocTimeStamp 1712991487 [07:01:12]current date 1712991676 [07:01:12]FM_GetShiftState [07:01:12]SAM_PROTO_GetShiftState [07:01:12]wFMCommunicate request_size=4 [07:01:12]MH_SAM_APDU [07:01:12]CAPDU: 80 13 01 00 [07:01:12]Write to MH i2c: E2 08 00 93 1C 80 13 01 00 00 00 00 00 2C [07:01:12]Write i2c OK [07:01:12]MH_I2C_Read... [07:01:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:01:12]Read from MH i2c: E2 [07:01:12]MH_I2C_Read... [07:01:12]Read from MH i2c: E2 0E 00 [07:01:12]MH_I2C_Read... [07:01:12]Read from MH i2c: E2 0E 00 93 1C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 45 [07:01:12]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:01:12]wFMCommunicate OK [07:01:12]SAM_PROTO_GetShiftState done [07:01:12]FM_GetShiftState done [07:01:12]opened in 1712967615 [07:01:12]opened+sec_in_day 1713054015 [07:01:12]quantity*price = 50025 [07:01:12]sum+1 = 50026 [07:01:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 22 13.04.2024 07:01 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28815 ФПД: 105073315275244 1/tax-web-control/client/api/v1/ticket?date=20240413T070116&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28815&fm=105073315275244&tin=02508201610067®Number=0000138879044617&sum=50000 [07:01:13]StoreToDocumentArchive [07:01:13]shift 115 fd 28815 [07:01:13]save to /storage/0115/doc_00028815 [07:01:13]save last doc name /storage/0115/doc_00028815 to /storage/kkm_last_doc_name [07:01:13]save OK [07:01:13]Clear old archive folders... [07:01:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:01:13]tlvbuf is B6DA25E0 [07:01:13]SAM_PROTO_ClearQueue [07:01:13]wFMCommunicate request_size=4 [07:01:13]MH_SAM_APDU [07:01:13]CAPDU: 80 09 00 00 [07:01:13]Write to MH i2c: E2 08 00 A0 1C 80 09 00 00 00 00 00 00 2E [07:01:13]Write i2c OK [07:01:13]MH_I2C_Read... [07:01:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:01:13]Read from MH i2c: E2 [07:01:13]MH_I2C_Read... [07:01:13]Read from MH i2c: E2 03 00 [07:01:13]MH_I2C_Read... [07:01:13]Read from MH i2c: E2 03 00 A0 1C 00 90 00 30 [07:01:13]RAPDU: 90 00 [07:01:13]wFMCommunicate OK [07:01:13]SAM_PROTO_ClearQueue done [07:01:13]KKMCreateOFDPacket [07:01:13]OFDProtocolAddRootSTLVToBuf [07:01:13]FM_MakeSignedData [07:01:13]FM_MakeSignedData [07:01:13]SAM_PROTO_SignData [07:01:13]wFMCommunicate request_size=4 [07:01:13]MH_SAM_APDU [07:01:13]CAPDU: 80 0D 01 02 [07:01:13]Write to MH i2c: E2 08 00 A1 1C 80 0D 01 02 00 00 00 00 36 [07:01:13]Write i2c OK [07:01:13]MH_I2C_Read... [07:01:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:01:13]Read from MH i2c: E2 [07:01:13]MH_I2C_Read... [07:01:13]Read from MH i2c: E2 03 00 [07:01:13]MH_I2C_Read... [07:01:13]Read from MH i2c: E2 03 00 A1 1C 00 90 00 31 [07:01:13]RAPDU: 90 00 [07:01:13]wFMCommunicate OK [07:01:13]wFMCommunicate request_size=255 [07:01:13]MH_SAM_APDU [07:01: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 16 00 00 00 F4 03 04 00 BC 2D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8F 70 00 00 35 04 06 00 5F [07:01:13]Write to MH i2c: E2 02 01 A2 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 16 00 00 00 F4 03 04 00 BC 2D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8F 70 00 00 35 04 06 00 5F 00 00 48 [07:01:13]Write i2c OK [07:01:13]MH_I2C_Read... [07:01:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:01:14]Read from MH i2c: E2 [07:01:14]MH_I2C_Read... [07:01:14]Read from MH i2c: E2 03 00 [07:01:14]MH_I2C_Read... [07:01:14]Read from MH i2c: E2 03 00 A2 1C 00 90 00 32 [07:01:14]RAPDU: 90 00 [07:01:14]wFMCommunicate OK [07:01:14]wFMCommunicate request_size=10 [07:01:14]MH_SAM_APDU [07:01:14]CAPDU: 80 0D 02 02 05 90 49 A1 E1 EC [07:01:14]Write to MH i2c: E2 0D 00 A3 1C 80 0D 02 02 05 00 90 49 A1 E1 EC 00 00 8A [07:01:14]Write i2c OK [07:01:14]MH_I2C_Read... [07:01:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:01:14]Read from MH i2c: E2 [07:01:14]MH_I2C_Read... [07:01:14]Read from MH i2c: E2 03 00 [07:01:14]MH_I2C_Read... [07:01:14]Read from MH i2c: E2 03 00 A3 1C 00 90 00 33 [07:01:14]RAPDU: 90 00 [07:01:14]wFMCommunicate OK [07:01:14]wFMCommunicate request_size=4 [07:01:14]MH_SAM_APDU [07:01:14]CAPDU: 80 0D 03 02 [07:01:14]Write to MH i2c: E2 08 00 A4 1C 80 0D 03 02 00 00 00 00 3B [07:01:14]Write i2c OK [07:01:14]MH_I2C_Read... [07:01:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:01:14]Read from MH i2c: E2 [07:01:14]MH_I2C_Read... [07:01:14]Read from MH i2c: E2 0B 00 [07:01:14]MH_I2C_Read... [07:01:14]Read from MH i2c: E2 0B 00 A4 1C 00 83 1E BD 91 07 1F FB 45 90 00 91 [07:01:14]RAPDU: 83 1E BD 91 07 1F FB 45 90 00 [07:01:14]wFMCommunicate OK [07:01:14]SAM_PROTO_SignData done [07:01:14]FM_MakeSignedData done [07:01:14]CreateOFDProtocolMessage [07:01:14]wFMCommunicate request_size=4 [07:01:14]MH_SAM_APDU [07:01:14]CAPDU: 80 11 00 00 [07:01:14]Write to MH i2c: E2 08 00 A5 1C 80 11 00 00 00 00 00 00 3B [07:01:14]Write i2c OK [07:01:14]MH_I2C_Read... [07:01:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:01:14]Read from MH i2c: E2 [07:01:14]MH_I2C_Read... [07:01:14]Read from MH i2c: E2 17 00 [07:01:14]MH_I2C_Read... [07:01:14]Read from MH i2c: E2 17 00 A5 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8A [07:01:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:01:14]wFMCommunicate OK [07:01:14]CreateOFDProtocolMessage done [07:01:14]OFDSenderStorePacket 28815 [07:01:14]StoreOFDPacket docnum=28815 [07:01:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F0 8E 07 01 38 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 16 00 00 00 F4 03 04 00 BC 2D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8F 70 00 00 35 04 06 00 5F 90 49 A1 E1 EC 83 1E BD 91 07 1F FB 45 [07:01:14]CheckFolder [07:01:14]dirname=/storage/ofd_packets [07:01:14]CheckFolder done [07:01:14]ProducePacketName [07:01:14]name=ofd_packets/00028815 [07:01:14]NVStorageSaveData ofd_packets/00028815 [07:01:14]File name is /storage/ofd_packets/00028815 [07:01:14]Write 301 bytes [07:01:14]NVStorageSaveData done [07:01:14]OFDSenderStorePacket done [07:01:14]KKMCreateOFDPacket done [07:01:14]NVStorageSaveData kkm_last_timestamp [07:01:14]File name is /storage/kkm_last_timestamp [07:01:14]Write 4 bytes [07:01:14]NVStorageSaveData done [07:01:14]ExternCall_PrintAddStr [07:01:14]wPrintStart [07:01:14]Write to MH i2c: 01 00 00 A6 1C C2 [07:01:14]Write i2c OK [07:01:14]MH_I2C_Read... [07:01:14]Read from MH i2c: 01 [07:01:14]MH_I2C_Read... [07:01:14]Read from MH i2c: 01 07 00 [07:01:14]MH_I2C_Read... [07:01:14]Read from MH i2c: 01 07 00 A6 1C 00 00 00 00 00 FF 0F D7 [07:01:14]RasterBufferAndPrint [07:01:14]line Счет N : (1)347163 [07:01:14]line ИНН: 02508201610067 [07:01:14]line Контрольно-Кассовый Чек [07:01:14]line ПРОДАЖА [07:01:14]line ТРК (МРК, ГНК) : 32 [07:01:14]line Товар: 2710124130 [07:01:14]line Аи-92-К-5 [07:01:14]line 7.780 * 64.30 [07:01:14]line = 500.25 [07:01:14]line НДС 12% НСП 1% [07:01:14]line > о реализуемом товаре [07:01:14]line ОКРУГЛЕНИЕ: -0.25 [07:01:14]line ИТОГО: 500.00 [07:01:14]line Внесено: 500.00 [07:01:14]line СДАЧА: 0.00 [07:01:14]line НСП 1% : 4.43 [07:01:14]line НДС 12% : 53.12 [07:01:14]line Наличными: 500.00 [07:01:14]line Безнал.: 0.00 [07:01:14]line Место: АЗС № 108 "Партнер Нефть" [07:01:14]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:01:14]line СНО: Общий режим [07:01:14]line Чек 22 13.04.2024 07:01 [07:01:14]line Смена: 115 ФФД: 1.0 [07:01:14]line ЗНМ: 0300000027 [07:01:14]line РНМ: 0000138879044617 [07:01:14]line Версия ККМ: 001 [07:01:14]line ФМ: 0000000000963154 [07:01:14]line ФД: 28815 [07:01:14]line ФПД: 105073315275244 [07:01:14]line 1/tax-web-control/client/api/v1/ticket?date=20240413T070116&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28815&fm=105073315275244&tin=02508201610067®Number=0000138879044617&sum=50000 [07:01:14]OFD Sender: Processing packet 28815 [packets to send 8, broken 7] [07:01:14]ProducePacketName [07:01:14]name=ofd_packets/00028815 [07:01:14]OFD Sender: To server: pG, [07:01:14]CommunicateWithHost lk.salyk.kg:30040 [07:01:14]ConnectInit lk.salyk.kg [07:01:14]written 0, free lines is 4095 [07:01:14]Connected sock=7 [07:01: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 31 35 34 0F 01 00 00 F0 8E 07 01 38 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 16 00 00 00 F4 03 04 00 BC 2D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8F 70 00 00 35 04 06 00 5F 90 49 A1 E1 EC 83 1E BD 91 07 1F FB 45 [07:01:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2A 13 47 00 D9 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 31 35 34 10 04 04 00 8F 70 00 00 F4 03 04 00 63 D8 19 66 B6 04 01 00 00 61 5B 3B 01 5B E3 81 7A [07:01:14]CommunicateWithHost err = 0 [07:01:14]CheckOFDResponse [07:01:14]1017 (14) - 77093643461234 [07:01:14]1041 (16) - 0000000000963154 [07:01:14]1040 (4) - 28815 [07:01:14]1012 (4) - 13.04.2024 00:57 [07:01:14]1206 (1) - 0 [07:01:14]OFD Sender: Remove packet 28815 [07:01:14]ProducePacketName [07:01:14]name=ofd_packets/00028815 [07:01:14]NVStorageDeleteData [07:01:15]Write to MH i2c: 01 00 00 D0 1C EC [07:01:15]Write i2c OK [07:01:15]MH_I2C_Read... [07:01:15]Read from MH i2c: 01 [07:01:15]MH_I2C_Read... [07:01:15]Read from MH i2c: 01 07 00 [07:01:15]MH_I2C_Read... [07:01:15]Read from MH i2c: 01 07 00 D0 1C 00 00 00 00 00 CC 0C CB [07:01:15]RasterBufferAndPrint [07:01:15]line [07:01:15]line [07:01:15]line [07:01:15]line [07:01:15]line [07:01:15]written 0, free lines is 3282 [07:01:15]MH_Cut [07:01:15]Write to MH i2c: D1 01 00 D7 1C 01 C5 [07:01:15]Write i2c OK [07:01:15]MH_I2C_Read... [07:01:15]Read from MH i2c: D1 [07:01:15]MH_I2C_Read... [07:01:15]Read from MH i2c: D1 01 00 [07:01:15]MH_I2C_Read... [07:01:15]Read from MH i2c: D1 01 00 D7 1C 00 C4 [07:01:15]Write to MH i2c: 01 00 00 D8 1C F4 [07:01:15]Write i2c OK [07:01:15]MH_I2C_Read... [07:01:15]OFD Sender: No OFD packet to send [07:01:15]*** Cut start [07:01:15]*** Partial cut [07:01:15]*** CUTSNS_PIN = 1 [07:01:16]*** CUTSNS_PIN = 0 [07:01:16]*** Brake cut motor [07:01:16]Read from MH i2c: 01 [07:01:16]MH_I2C_Read... [07:01:16]*** Stop cut motor [07:01:16]*** Cut end [07:01:16]Read from MH i2c: 01 07 00 [07:01:16]MH_I2C_Read... [07:01:16]Read from MH i2c: 01 07 00 D8 1C 00 00 00 00 00 FF 0F 09 [07:01:16]process_action close_receipt done [07:01:16]requested_data is exist [07:01:16]produce_requested_data [07:01:16]requested_item fm.sn is exist - process it [07:01:16]wFMCommunicate request_size=4 [07:01:16]MH_SAM_APDU [07:01:16]CAPDU: 80 11 00 00 [07:01:16]Write to MH i2c: E2 08 00 D9 1C 80 11 00 00 00 00 00 00 6F [07:01:16]Write i2c OK [07:01:16]MH_I2C_Read... [07:01:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:01:16]Read from MH i2c: E2 [07:01:16]MH_I2C_Read... [07:01:16]Read from MH i2c: E2 17 00 [07:01:16]MH_I2C_Read... [07:01:16]Read from MH i2c: E2 17 00 D9 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BE [07:01:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:01:16]wFMCommunicate OK [07:01:16]requested_item fd.num is exist - process it [07:01:16]SAM_PROTO_GetFieldsCounters [07:01:16]wFMCommunicate request_size=4 [07:01:16]MH_SAM_APDU [07:01:16]CAPDU: 80 13 00 00 [07:01:16]Write to MH i2c: E2 08 00 DA 1C 80 13 00 00 00 00 00 00 72 [07:01:16]Write i2c OK [07:01:16]MH_I2C_Read... [07:01:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:01:16]Read from MH i2c: E2 [07:01:16]MH_I2C_Read... [07:01:16]Read from MH i2c: E2 62 00 [07:01:16]MH_I2C_Read... [07:01:16]Read from MH i2c: E2 62 00 DA 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8F 70 00 00 0E 04 04 00 73 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 64 [07:01: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8F 70 00 00 0E 04 04 00 73 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 [07:01:16]wFMCommunicate OK [07:01:16]SAM_PROTO_GetFieldsCounters done [07:01:16]requested_item shift.num is exist - process it [07:01:16]requested_item shift.opened is exist - process it [07:01:16]req_shift_opened [07:01:16]FM_GetShiftState [07:01:16]SAM_PROTO_GetShiftState [07:01:16]wFMCommunicate request_size=4 [07:01:16]MH_SAM_APDU [07:01:16]CAPDU: 80 13 01 00 [07:01:16]Write to MH i2c: E2 08 00 DB 1C 80 13 01 00 00 00 00 00 74 [07:01:16]Write i2c OK [07:01:16]MH_I2C_Read... [07:01:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:01:16]Read from MH i2c: E2 [07:01:16]MH_I2C_Read... [07:01:16]Read from MH i2c: E2 0E 00 [07:01:16]MH_I2C_Read... [07:01:16]Read from MH i2c: E2 0E 00 DB 1C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 8D [07:01:16]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:01:16]wFMCommunicate OK [07:01:16]SAM_PROTO_GetShiftState done [07:01:16]FM_GetShiftState done [07:01:16]req_shift_opened done [07:01:16]requested_item shift.open_date is exist - process it [07:01:16]req_shift_open_date [07:01:16]req_shift_open_date done [07:01:16]produce_requested_data done [07:01:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28815,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [07:01:16]process_action_free close_receipt [07:01:16]json_value_free [07:01:16]json_value_free done [07:01:16]process_json_proto returns [07:01:16]Send response to host [07:01:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28815,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [07:01:16]free response buf [07:01:16]execute_script done [07:01:16]execute_script returns [07:01:16]free content buf [07:01:16]Sock 10.Close socket [07:01:16]Sock 10.Thread stoped [07:01:20]OFD Sender: No OFD packet to send [07:01:25]OFD Sender: No OFD packet to send [07:01:30]OFD Sender: No OFD packet to send [07:01:35]OFD Sender: No OFD packet to send [07:01:40]OFD Sender: No OFD packet to send [07:01:45]OFD Sender: No OFD packet to send [07:01:50]OFD Sender: No OFD packet to send [07:01:55]OFD Sender: No OFD packet to send [07:02:00]OFD Sender: No OFD packet to send [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02:20]OFD Sender: No OFD packet to send [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:20]OFD Sender: No OFD packet to send [07:05:25]OFD Sender: No OFD packet to send [07:05:30]OFD Sender: No OFD packet to send [07:05:35]OFD Sender: No OFD packet to send [07:05:40]OFD Sender: No OFD packet to send [07:05:45]OFD Sender: No OFD packet to send [07:05:50]OFD Sender: No OFD packet to send [07:05:55]OFD Sender: No OFD packet to send [07:06:00]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:10]OFD Sender: No OFD packet to send [07:06:15]OFD Sender: No OFD packet to send [07:06:20]OFD Sender: No OFD packet to send [07:06:25]OFD Sender: No OFD packet to send [07:06:30]OFD Sender: No OFD packet to send [07:06:35]OFD Sender: No OFD packet to send [07:06:40]OFD Sender: No OFD packet to send [07:06:45]OFD Sender: No OFD packet to send [07:06:50]OFD Sender: No OFD packet to send [07:06:55]OFD Sender: No OFD packet to send [07:07:00]OFD Sender: No OFD packet to send [07:07:05]OFD Sender: No OFD packet to send [07:07:10]OFD Sender: No OFD packet to send [07:07:15]OFD Sender: No OFD packet to send [07:07:20]OFD Sender: No OFD packet to send [07:07:25]OFD Sender: No OFD packet to send [07:07:30]OFD Sender: No OFD packet to send [07:07:35]OFD Sender: No OFD packet to send [07:07:40]OFD Sender: No OFD packet to send [07:07:45]OFD Sender: No OFD packet to send [07:07:50]OFD Sender: No OFD packet to send [07:07:55]OFD Sender: No OFD packet to send [07:08:00]OFD Sender: No OFD packet to send [07:08:05]OFD Sender: No OFD packet to send [07:08:10]OFD Sender: No OFD packet to send [07:08:15]OFD Sender: No OFD packet to send [07:08:20]OFD Sender: No OFD packet to send [07:08:25]OFD Sender: No OFD packet to send [07:08:30]OFD Sender: No OFD packet to send [07:08:35]OFD Sender: No OFD packet to send [07:08:40]OFD Sender: No OFD packet to send [07:08:45]OFD Sender: No OFD packet to send [07:08:50]OFD Sender: No OFD packet to send [07:08:55]OFD Sender: No OFD packet to send [07:09:00]OFD Sender: No OFD packet to send [07:09:05]OFD Sender: No OFD packet to send [07:09:10]OFD Sender: No OFD packet to send [07:09:15]OFD Sender: No OFD packet to send [07:09:20]OFD Sender: No OFD packet to send [07:09:25]OFD Sender: No OFD packet to send [07:09:30]OFD Sender: No OFD packet to send [07:09:35]OFD Sender: No OFD packet to send [07:09:40]OFD Sender: No OFD packet to send [07:09:45]OFD Sender: No OFD packet to send [07:09:50]OFD Sender: No OFD packet to send [07:09:55]OFD Sender: No OFD packet to send [07:10:00]OFD Sender: No OFD packet to send [07:10:05]OFD Sender: No OFD packet to send [07:10:10]OFD Sender: No OFD packet to send [07:10:15]OFD Sender: No OFD packet to send [07:10:20]OFD Sender: No OFD packet to send [07:10:25]OFD Sender: No OFD packet to send [07:10:30]OFD Sender: No OFD packet to send [07:10:35]OFD Sender: No OFD packet to send [07:10:40]OFD Sender: No OFD packet to send [07:10:45]OFD Sender: No OFD packet to send [07:10:50]OFD Sender: No OFD packet to send [07:10:55]OFD Sender: No OFD packet to send [07:11:00]OFD Sender: No OFD packet to send [07:11:05]OFD Sender: No OFD packet to send [07:11:10]OFD Sender: No OFD packet to send [07:11:15]OFD Sender: No OFD packet to send [07:11:20]OFD Sender: No OFD packet to send [07:11:25]OFD Sender: No OFD packet to send [07:11:30]OFD Sender: No OFD packet to send [07:11:35]OFD Sender: No OFD packet to send [07:11:40]OFD Sender: No OFD packet to send [07:11:45]OFD Sender: No OFD packet to send [07:11:50]OFD Sender: No OFD packet to send [07:11:55]OFD Sender: No OFD packet to send [07:12:00]OFD Sender: No OFD packet to send [07:12:05]OFD Sender: No OFD packet to send [07:12:10]OFD Sender: No OFD packet to send [07:12:16]OFD Sender: No OFD packet to send [07:12:21]OFD Sender: No OFD packet to send [07:12:26]OFD Sender: No OFD packet to send [07:12:31]OFD Sender: No OFD packet to send [07:12:36]OFD Sender: No OFD packet to send [07:12:41]OFD Sender: No OFD packet to send [07:12:46]OFD Sender: No OFD packet to send [07:12:51]OFD Sender: No OFD packet to send [07:12:56]OFD Sender: No OFD packet to send [07:13:01]OFD Sender: No OFD packet to send [07:13:06]OFD Sender: No OFD packet to send [07:13:11]OFD Sender: No OFD packet to send [07:13:16]OFD Sender: No OFD packet to send [07:13:21]OFD Sender: No OFD packet to send [07:13:26]OFD Sender: No OFD packet to send [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:11]OFD Sender: No OFD packet to send [07:14:16]OFD Sender: No OFD packet to send [07:14:21]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:31]OFD Sender: No OFD packet to send [07:14:36]OFD Sender: No OFD packet to send [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:06]OFD Sender: No OFD packet to send [07:15:11]OFD Sender: No OFD packet to send [07:15:16]OFD Sender: No OFD packet to send [07:15:21]OFD Sender: No OFD packet to send [07:15:26]OFD Sender: No OFD packet to send [07:15:31]OFD Sender: No OFD packet to send [07:15:36]OFD Sender: No OFD packet to send [07:15:41]OFD Sender: No OFD packet to send [07:15:46]OFD Sender: No OFD packet to send [07:15:51]OFD Sender: No OFD packet to send [07:15:56]OFD Sender: No OFD packet to send [07:16:01]OFD Sender: No OFD packet to send [07:16:06]OFD Sender: No OFD packet to send [07:16:11]OFD Sender: No OFD packet to send [07:16:16]OFD Sender: No OFD packet to send [07:16:21]OFD Sender: No OFD packet to send [07:16:26]OFD Sender: No OFD packet to send [07:16:31]OFD Sender: No OFD packet to send [07:16:36]OFD Sender: No OFD packet to send [07:16:41]OFD Sender: No OFD packet to send [07:16:46]OFD Sender: No OFD packet to send [07:16:51]OFD Sender: No OFD packet to send [07:16:56]OFD Sender: No OFD packet to send [07:17:01]OFD Sender: No OFD packet to send [07:17:06]OFD Sender: No OFD packet to send [07:17:11]OFD Sender: No OFD packet to send [07:17:16]OFD Sender: No OFD packet to send [07:17:21]OFD Sender: No OFD packet to send [07:17:26]OFD Sender: No OFD packet to send [07:17:31]OFD Sender: No OFD packet to send [07:17:36]OFD Sender: No OFD packet to send [07:17:41]OFD Sender: No OFD packet to send [07:17:46]OFD Sender: No OFD packet to send [07:17:51]OFD Sender: No OFD packet to send [07:17:56]OFD Sender: No OFD packet to send [07:18:01]OFD Sender: No OFD packet to send [07:18:06]OFD Sender: No OFD packet to send [07:18:11]OFD Sender: No OFD packet to send [07:18:16]OFD Sender: No OFD packet to send [07:18:21]OFD Sender: No OFD packet to send [07:18:26]OFD Sender: No OFD packet to send [07:18:31]OFD Sender: No OFD packet to send [07:18:36]OFD Sender: No OFD packet to send [07:18:41]OFD Sender: No OFD packet to send [07:18:46]OFD Sender: No OFD packet to send [07:18:51]OFD Sender: No OFD packet to send [07:18:56]OFD Sender: No OFD packet to send [07:19:01]OFD Sender: No OFD packet to send [07:19:06]OFD Sender: No OFD packet to send [07:19:11]OFD Sender: No OFD packet to send [07:19:16]OFD Sender: No OFD packet to send [07:19:21]OFD Sender: No OFD packet to send [07:19:26]OFD Sender: No OFD packet to send [07:19:31]OFD Sender: No OFD packet to send [07:19:36]OFD Sender: No OFD packet to send [07:19:41]OFD Sender: No OFD packet to send [07:19:46]OFD Sender: No OFD packet to send [07:19:51]OFD Sender: No OFD packet to send [07:19:56]OFD Sender: No OFD packet to send [07:20:01]OFD Sender: No OFD packet to send [07:20:06]OFD Sender: No OFD packet to send [07:20:11]OFD Sender: No OFD packet to send [07:20:16]OFD Sender: No OFD packet to send [07:20:21]OFD Sender: No OFD packet to send [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:31]OFD Sender: No OFD packet to send [07:25:36]OFD Sender: No OFD packet to send [07:25:41]OFD Sender: No OFD packet to send [07:25:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:26:01]OFD Sender: No OFD packet to send [07:26:06]OFD Sender: No OFD packet to send [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:41]OFD Sender: No OFD packet to send [07:30:46]OFD Sender: No OFD packet to send [07:30:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:50]accept exits with 9 [07:31:50]New connection [07:31:50]New thread 3066928484 created [07:31:50]Thread 3066785124 joined [07:31:50]Waiting for new connection... [07:31:50] Sock 9.Parse request [07:31:50]Sock 9.Check first char [07:31:50]Sock 9.First char is OK [07:31:50]request: POST /json_proto HTTP/1.0 [07:31:50]Method: POST [07:31:50]URL: /json_proto [07:31:50]Method is POST - this is cgi request [07:31:50]url: /json_proto [07:31:50]query_string will be loaded in cgi processing [07:31:50]execute_cgi json_proto POST (null) [07:31:50]execute_cgi path=json_proto method=POST [07:31:50]POST find Content-Length [07:31:50]Host: 172.17.33.3:8080 [07:31:50]Content-Length: 677 [07:31:50]Content-Type: application/json [07:31:50] [07:31:50]POST finish read [07:31:50]Found Content-Length = 677 [07:31:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "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" ] } } [07:31:50]execute_script... [07:31: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)347164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "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" ] } } [07:31:50]POST & json_proto [07:31:50]process_json_proto [07:31:50]json parsed OK: [07:31:50]protocol is kg_v1.0 [07:31:50]action value=close_receipt [07:31:50]process_action close_receipt [07:31:50]cmd_close_receipt [07:31:50]MH_GetDate [07:31:50]Write to MH i2c: F0 00 00 DC 1C E7 [07:31:50]Write i2c OK [07:31:50]MH_I2C_Read... [07:31:50]Read from MH i2c: F0 [07:31:50]MH_I2C_Read... [07:31:50]Read from MH i2c: F0 09 00 [07:31:50]MH_I2C_Read... [07:31:50]Read from MH i2c: F0 09 00 DC 1C 00 EA 34 1A 66 23 5B 8F 65 00 [07:31:50]GetLastDocTimeStamp 1712991676 [07:31:50]current date 1712993514 [07:31:50]FM_GetShiftState [07:31:50]SAM_PROTO_GetShiftState [07:31:50]wFMCommunicate request_size=4 [07:31:50]MH_SAM_APDU [07:31:50]CAPDU: 80 13 01 00 [07:31:50]Write to MH i2c: E2 08 00 DD 1C 80 13 01 00 00 00 00 00 76 [07:31:50]Write i2c OK [07:31:50]MH_I2C_Read... [07:31:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:31:50]Read from MH i2c: E2 [07:31:50]MH_I2C_Read... [07:31:50]Read from MH i2c: E2 0E 00 [07:31:50]MH_I2C_Read... [07:31:50]Read from MH i2c: E2 0E 00 DD 1C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 8F [07:31:50]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:31:50]wFMCommunicate OK [07:31:50]SAM_PROTO_GetShiftState done [07:31:50]FM_GetShiftState done [07:31:50]opened in 1712967615 [07:31:50]opened+sec_in_day 1713054015 [07:31:50]quantity*price = 50025 [07:31:50]sum+1 = 50026 [07:31:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 23 13.04.2024 07:31 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28816 ФПД: 60407204060750 1/tax-web-control/client/api/v1/ticket?date=20240413T073154&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28816&fm=60407204060750&tin=02508201610067®Number=0000138879044617&sum=50000 [07:31:52]StoreToDocumentArchive [07:31:52]shift 115 fd 28816 [07:31:52]save to /storage/0115/doc_00028816 [07:31:52]save last doc name /storage/0115/doc_00028816 to /storage/kkm_last_doc_name [07:31:52]save OK [07:31:52]Clear old archive folders... [07:31:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:31:52]tlvbuf is 0121F890 [07:31:52]SAM_PROTO_ClearQueue [07:31:52]wFMCommunicate request_size=4 [07:31:52]MH_SAM_APDU [07:31:52]CAPDU: 80 09 00 00 [07:31:52]Write to MH i2c: E2 08 00 EA 1C 80 09 00 00 00 00 00 00 78 [07:31:52]Write i2c OK [07:31:52]MH_I2C_Read... [07:31:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:31:52]Read from MH i2c: E2 [07:31:52]MH_I2C_Read... [07:31:52]Read from MH i2c: E2 03 00 [07:31:52]MH_I2C_Read... [07:31:52]Read from MH i2c: E2 03 00 EA 1C 00 90 00 7A [07:31:52]RAPDU: 90 00 [07:31:52]wFMCommunicate OK [07:31:52]SAM_PROTO_ClearQueue done [07:31:52]KKMCreateOFDPacket [07:31:52]OFDProtocolAddRootSTLVToBuf [07:31:52]FM_MakeSignedData [07:31:52]FM_MakeSignedData [07:31:52]SAM_PROTO_SignData [07:31:52]wFMCommunicate request_size=4 [07:31:52]MH_SAM_APDU [07:31:52]CAPDU: 80 0D 01 02 [07:31:52]Write to MH i2c: E2 08 00 EB 1C 80 0D 01 02 00 00 00 00 80 [07:31:52]Write i2c OK [07:31:52]MH_I2C_Read... [07:31:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:31:52]Read from MH i2c: E2 [07:31:52]MH_I2C_Read... [07:31:52]Read from MH i2c: E2 03 00 [07:31:52]MH_I2C_Read... [07:31:52]Read from MH i2c: E2 03 00 EB 1C 00 90 00 7B [07:31:52]RAPDU: 90 00 [07:31:52]wFMCommunicate OK [07:31:52]wFMCommunicate request_size=255 [07:31:52]MH_SAM_APDU [07:31:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 17 00 00 00 F4 03 04 00 EA 34 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 90 70 00 00 35 04 06 00 36 [07:31:52]Write to MH i2c: E2 02 01 EC 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 17 00 00 00 F4 03 04 00 EA 34 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 90 70 00 00 35 04 06 00 36 00 00 A0 [07:31:52]Write i2c OK [07:31:52]MH_I2C_Read... [07:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:31:52]Read from MH i2c: E2 [07:31:52]MH_I2C_Read... [07:31:52]Read from MH i2c: E2 03 00 [07:31:52]MH_I2C_Read... [07:31:52]Read from MH i2c: E2 03 00 EC 1C 00 90 00 7C [07:31:52]RAPDU: 90 00 [07:31:52]wFMCommunicate OK [07:31:52]wFMCommunicate request_size=10 [07:31:52]MH_SAM_APDU [07:31:52]CAPDU: 80 0D 02 02 05 F0 A5 F0 9E 4E [07:31:52]Write to MH i2c: E2 0D 00 ED 1C 80 0D 02 02 05 00 F0 A5 F0 9E 4E 00 00 FE [07:31:52]Write i2c OK [07:31:52]MH_I2C_Read... [07:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:31:52]Read from MH i2c: E2 [07:31:52]MH_I2C_Read... [07:31:52]Read from MH i2c: E2 03 00 [07:31:52]MH_I2C_Read... [07:31:52]Read from MH i2c: E2 03 00 ED 1C 00 90 00 7D [07:31:52]RAPDU: 90 00 [07:31:52]wFMCommunicate OK [07:31:52]wFMCommunicate request_size=4 [07:31:52]MH_SAM_APDU [07:31:52]CAPDU: 80 0D 03 02 [07:31:52]Write to MH i2c: E2 08 00 EE 1C 80 0D 03 02 00 00 00 00 85 [07:31:52]Write i2c OK [07:31:52]MH_I2C_Read... [07:31:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:31:52]Read from MH i2c: E2 [07:31:52]MH_I2C_Read... [07:31:52]Read from MH i2c: E2 0B 00 [07:31:52]MH_I2C_Read... [07:31:52]Read from MH i2c: E2 0B 00 EE 1C 00 78 F8 67 CC 97 0C 62 97 90 00 C5 [07:31:52]RAPDU: 78 F8 67 CC 97 0C 62 97 90 00 [07:31:52]wFMCommunicate OK [07:31:52]SAM_PROTO_SignData done [07:31:52]FM_MakeSignedData done [07:31:52]CreateOFDProtocolMessage [07:31:52]wFMCommunicate request_size=4 [07:31:52]MH_SAM_APDU [07:31:52]CAPDU: 80 11 00 00 [07:31:52]Write to MH i2c: E2 08 00 EF 1C 80 11 00 00 00 00 00 00 85 [07:31:52]Write i2c OK [07:31:52]MH_I2C_Read... [07:31:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:31:52]Read from MH i2c: E2 [07:31:52]MH_I2C_Read... [07:31:52]Read from MH i2c: E2 17 00 [07:31:52]MH_I2C_Read... [07:31:52]Read from MH i2c: E2 17 00 EF 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D4 [07:31:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:31:52]wFMCommunicate OK [07:31:52]CreateOFDProtocolMessage done [07:31:52]OFDSenderStorePacket 28816 [07:31:52]StoreOFDPacket docnum=28816 [07:31:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B8 0F 07 01 F3 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 17 00 00 00 F4 03 04 00 EA 34 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 90 70 00 00 35 04 06 00 36 F0 A5 F0 9E 4E 78 F8 67 CC 97 0C 62 97 [07:31:52]CheckFolder [07:31:52]dirname=/storage/ofd_packets [07:31:52]CheckFolder done [07:31:52]ProducePacketName [07:31:52]name=ofd_packets/00028816 [07:31:52]NVStorageSaveData ofd_packets/00028816 [07:31:52]File name is /storage/ofd_packets/00028816 [07:31:52]Write 301 bytes [07:31:52]NVStorageSaveData done [07:31:52]OFDSenderStorePacket done [07:31:52]KKMCreateOFDPacket done [07:31:52]NVStorageSaveData kkm_last_timestamp [07:31:52]File name is /storage/kkm_last_timestamp [07:31:52]Write 4 bytes [07:31:52]NVStorageSaveData done [07:31:52]ExternCall_PrintAddStr [07:31:52]wPrintStart [07:31:52]Write to MH i2c: 01 00 00 F0 1C 0C [07:31:52]Write i2c OK [07:31:52]MH_I2C_Read... [07:31:52]Read from MH i2c: 01 [07:31:52]MH_I2C_Read... [07:31:52]Read from MH i2c: 01 07 00 [07:31:52]MH_I2C_Read... [07:31:52]Read from MH i2c: 01 07 00 F0 1C 00 00 00 00 00 FF 0F 21 [07:31:52]RasterBufferAndPrint [07:31:52]line Счет N : (1)347164 [07:31:52]line ИНН: 02508201610067 [07:31:52]line Контрольно-Кассовый Чек [07:31:52]line ПРОДАЖА [07:31:52]line ТРК (МРК, ГНК) : 13 [07:31:52]line Товар: 2710124130 [07:31:52]line Аи-92-К-5 [07:31:52]line 7.780 * 64.30 [07:31:52]line = 500.25 [07:31:52]line НДС 12% НСП 1% [07:31:52]line > о реализуемом товаре [07:31:52]line ОКРУГЛЕНИЕ: -0.25 [07:31:52]line ИТОГО: 500.00 [07:31:52]line Внесено: 500.00 [07:31:52]line СДАЧА: 0.00 [07:31:52]line НСП 1% : 4.43 [07:31:52]line НДС 12% : 53.12 [07:31:52]line Наличными: 500.00 [07:31:52]line Безнал.: 0.00 [07:31:52]line Место: АЗС № 108 "Партнер Нефть" [07:31:52]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:31:52]line СНО: Общий режим [07:31:52]line Чек 23 13.04.2024 07:31 [07:31:52]line Смена: 115 ФФД: 1.0 [07:31:52]line ЗНМ: 0300000027 [07:31:52]line РНМ: 0000138879044617 [07:31:52]line Версия ККМ: 001 [07:31:52]line ФМ: 0000000000963154 [07:31:52]line ФД: 28816 [07:31:52]line ФПД: 60407204060750 [07:31:52]line 1/tax-web-control/client/api/v1/ticket?date=20240413T073154&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28816&fm=60407204060750&tin=02508201610067®Number=0000138879044617&sum=50000 [07:31:52]OFD Sender: Processing packet 28816 [packets to send 8, broken 7] [07:31:52]ProducePacketName [07:31:52]name=ofd_packets/00028816 [07:31:52]OFD Sender: To server: pG, [07:31:52]CommunicateWithHost lk.salyk.kg:30040 [07:31:52]ConnectInit lk.salyk.kg [07:31:52]written 0, free lines is 4095 [07:31:53]Connected sock=10 [07:31: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 31 35 34 0F 01 00 00 B8 0F 07 01 F3 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 17 00 00 00 F4 03 04 00 EA 34 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 90 70 00 00 35 04 06 00 36 F0 A5 F0 9E 4E 78 F8 67 CC 97 0C 62 97 [07:31:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F5 24 47 00 94 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 90 70 00 00 F4 03 04 00 92 DF 19 66 B6 04 01 00 00 51 08 04 9C 4C 16 8F 7F [07:31:53]CommunicateWithHost err = 0 [07:31:53]CheckOFDResponse [07:31:53]1017 (14) - 77093643461234 [07:31:53]1041 (16) - 0000000000963154 [07:31:53]1040 (4) - 28816 [07:31:53]1012 (4) - 13.04.2024 01:27 [07:31:53]1206 (1) - 0 [07:31:53]OFD Sender: Remove packet 28816 [07:31:53]ProducePacketName [07:31:53]name=ofd_packets/00028816 [07:31:53]NVStorageDeleteData [07:31:53]Write to MH i2c: 01 00 00 1A 1D 37 [07:31:53]Write i2c OK [07:31:53]MH_I2C_Read... [07:31:53]Read from MH i2c: 01 [07:31:53]MH_I2C_Read... [07:31:53]Read from MH i2c: 01 07 00 [07:31:53]MH_I2C_Read... [07:31:53]Read from MH i2c: 01 07 00 1A 1D 00 00 00 00 00 C4 0C 0E [07:31:53]RasterBufferAndPrint [07:31:53]line [07:31:53]line [07:31:53]line [07:31:53]line [07:31:53]line [07:31:53]written 0, free lines is 3272 [07:31:53]MH_Cut [07:31:53]Write to MH i2c: D1 01 00 21 1D 01 10 [07:31:53]Write i2c OK [07:31:53]MH_I2C_Read... [07:31:53]Read from MH i2c: D1 [07:31:53]MH_I2C_Read... [07:31:53]Read from MH i2c: D1 01 00 [07:31:53]MH_I2C_Read... [07:31:53]Read from MH i2c: D1 01 00 21 1D 00 0F [07:31:53]Write to MH i2c: 01 00 00 22 1D 3F [07:31:53]Write i2c OK [07:31:53]MH_I2C_Read... [07:31:53]OFD Sender: No OFD packet to send [07:31:54]*** Cut start [07:31:54]*** Partial cut [07:31:54]*** CUTSNS_PIN = 1 [07:31:54]*** CUTSNS_PIN = 0 [07:31:54]*** Brake cut motor [07:31:54]Read from MH i2c: 01 [07:31:54]MH_I2C_Read... [07:31:54]*** Stop cut motor [07:31:54]*** Cut end [07:31:54]Read from MH i2c: 01 07 00 [07:31:54]MH_I2C_Read... [07:31:54]Read from MH i2c: 01 07 00 22 1D 00 00 00 00 00 FF 0F 54 [07:31:54]process_action close_receipt done [07:31:54]requested_data is exist [07:31:54]produce_requested_data [07:31:54]requested_item fm.sn is exist - process it [07:31:54]wFMCommunicate request_size=4 [07:31:54]MH_SAM_APDU [07:31:54]CAPDU: 80 11 00 00 [07:31:54]Write to MH i2c: E2 08 00 23 1D 80 11 00 00 00 00 00 00 BA [07:31:54]Write i2c OK [07:31:54]MH_I2C_Read... [07:31:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:31:54]Read from MH i2c: E2 [07:31:54]MH_I2C_Read... [07:31:54]Read from MH i2c: E2 17 00 [07:31:54]MH_I2C_Read... [07:31:54]Read from MH i2c: E2 17 00 23 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 09 [07:31:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:31:54]wFMCommunicate OK [07:31:54]requested_item fd.num is exist - process it [07:31:54]SAM_PROTO_GetFieldsCounters [07:31:54]wFMCommunicate request_size=4 [07:31:54]MH_SAM_APDU [07:31:54]CAPDU: 80 13 00 00 [07:31:54]Write to MH i2c: E2 08 00 24 1D 80 13 00 00 00 00 00 00 BD [07:31:54]Write i2c OK [07:31:54]MH_I2C_Read... [07:31:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:31:55]Read from MH i2c: E2 [07:31:55]MH_I2C_Read... [07:31:55]Read from MH i2c: E2 62 00 [07:31:55]MH_I2C_Read... [07:31:55]Read from MH i2c: E2 62 00 24 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 90 70 00 00 0E 04 04 00 73 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 B3 [07:31: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 90 70 00 00 0E 04 04 00 73 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:31:55]wFMCommunicate OK [07:31:55]SAM_PROTO_GetFieldsCounters done [07:31:55]requested_item shift.num is exist - process it [07:31:55]requested_item shift.opened is exist - process it [07:31:55]req_shift_opened [07:31:55]FM_GetShiftState [07:31:55]SAM_PROTO_GetShiftState [07:31:55]wFMCommunicate request_size=4 [07:31:55]MH_SAM_APDU [07:31:55]CAPDU: 80 13 01 00 [07:31:55]Write to MH i2c: E2 08 00 25 1D 80 13 01 00 00 00 00 00 BF [07:31:55]Write i2c OK [07:31:55]MH_I2C_Read... [07:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:31:55]Read from MH i2c: E2 [07:31:55]MH_I2C_Read... [07:31:55]Read from MH i2c: E2 0E 00 [07:31:55]MH_I2C_Read... [07:31:55]Read from MH i2c: E2 0E 00 25 1D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D8 [07:31:55]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:31:55]wFMCommunicate OK [07:31:55]SAM_PROTO_GetShiftState done [07:31:55]FM_GetShiftState done [07:31:55]req_shift_opened done [07:31:55]requested_item shift.open_date is exist - process it [07:31:55]req_shift_open_date [07:31:55]req_shift_open_date done [07:31:55]produce_requested_data done [07:31:55]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28816,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [07:31:55]process_action_free close_receipt [07:31:55]json_value_free [07:31:55]json_value_free done [07:31:55]process_json_proto returns [07:31:55]Send response to host [07:31:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28816,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [07:31:55]free response buf [07:31:55]execute_script done [07:31:55]execute_script returns [07:31:55]free content buf [07:31:55]Sock 9.Close socket [07:31:55]Sock 9.Thread stoped [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:58]OFD Sender: No OFD packet to send [07:35:03]OFD Sender: No OFD packet to send [07:35:08]OFD Sender: No OFD packet to send [07:35:13]OFD Sender: No OFD packet to send [07:35:18]OFD Sender: No OFD packet to send [07:35:23]OFD Sender: No OFD packet to send [07:35:28]OFD Sender: No OFD packet to send [07:35:33]OFD Sender: No OFD packet to send [07:35:35]accept exits with 7 [07:35:35]New connection [07:35:35]New thread 3066785124 created [07:35:35]Thread 3066928484 joined [07:35:35]Waiting for new connection... [07:35:35] Sock 7.Parse request [07:35:35]Sock 7.Check first char [07:35:35]Sock 7.First char is OK [07:35:35]request: POST /json_proto HTTP/1.0 [07:35:35]Method: POST [07:35:35]URL: /json_proto [07:35:35]Method is POST - this is cgi request [07:35:35]url: /json_proto [07:35:35]query_string will be loaded in cgi processing [07:35:35]execute_cgi json_proto POST (null) [07:35:35]execute_cgi path=json_proto method=POST [07:35:35]POST find Content-Length [07:35:35]Host: 172.17.33.3:8080 [07:35:35]Content-Length: 670 [07:35:35]Content-Type: application/json [07:35:35] [07:35:35]POST finish read [07:35:35]Found Content-Length = 670 [07:35:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 6.130, "sum" : 400.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:35]execute_script... [07:35: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)347166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 6.130, "sum" : 400.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:35]POST & json_proto [07:35:35]process_json_proto [07:35:35]json parsed OK: [07:35:35]protocol is kg_v1.0 [07:35:35]action value=close_receipt [07:35:35]process_action close_receipt [07:35:35]cmd_close_receipt [07:35:35]MH_GetDate [07:35:35]Write to MH i2c: F0 00 00 26 1D 32 [07:35:35]Write i2c OK [07:35:35]MH_I2C_Read... [07:35:35]Read from MH i2c: F0 [07:35:35]MH_I2C_Read... [07:35:35]Read from MH i2c: F0 09 00 [07:35:35]MH_I2C_Read... [07:35:35]Read from MH i2c: F0 09 00 26 1D 00 CA 35 1A 66 23 5B 8F 65 2C [07:35:35]GetLastDocTimeStamp 1712993514 [07:35:35]current date 1712993738 [07:35:35]FM_GetShiftState [07:35:35]SAM_PROTO_GetShiftState [07:35:35]wFMCommunicate request_size=4 [07:35:35]MH_SAM_APDU [07:35:35]CAPDU: 80 13 01 00 [07:35:35]Write to MH i2c: E2 08 00 27 1D 80 13 01 00 00 00 00 00 C1 [07:35:35]Write i2c OK [07:35:35]MH_I2C_Read... [07:35:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:35]Read from MH i2c: E2 [07:35:35]MH_I2C_Read... [07:35:35]Read from MH i2c: E2 0E 00 [07:35:35]MH_I2C_Read... [07:35:35]Read from MH i2c: E2 0E 00 27 1D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 DA [07:35:35]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:35:35]wFMCommunicate OK [07:35:35]SAM_PROTO_GetShiftState done [07:35:35]FM_GetShiftState done [07:35:35]opened in 1712967615 [07:35:35]opened+sec_in_day 1713054015 [07:35:35]quantity*price = 40028 [07:35:35]sum+1 = 40030 [07:35:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.51 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 24 13.04.2024 07:35 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28817 ФПД: 126975381479657 1/tax-web-control/client/api/v1/ticket?date=20240413T073538&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28817&fm=126975381479657&tin=02508201610067®Number=0000138879044617&sum=40000 [07:35:36]StoreToDocumentArchive [07:35:36]shift 115 fd 28817 [07:35:36]save to /storage/0115/doc_00028817 [07:35:36]save last doc name /storage/0115/doc_00028817 to /storage/kkm_last_doc_name [07:35:36]save OK [07:35:36]Clear old archive folders... [07:35:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:35:36]tlvbuf is B6F52A70 [07:35:36]SAM_PROTO_ClearQueue [07:35:36]wFMCommunicate request_size=4 [07:35:36]MH_SAM_APDU [07:35:36]CAPDU: 80 09 00 00 [07:35:36]Write to MH i2c: E2 08 00 34 1D 80 09 00 00 00 00 00 00 C3 [07:35:36]Write i2c OK [07:35:36]MH_I2C_Read... [07:35:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:35:36]Read from MH i2c: E2 [07:35:36]MH_I2C_Read... [07:35:36]Read from MH i2c: E2 03 00 [07:35:36]MH_I2C_Read... [07:35:36]Read from MH i2c: E2 03 00 34 1D 00 90 00 C5 [07:35:36]RAPDU: 90 00 [07:35:36]wFMCommunicate OK [07:35:36]SAM_PROTO_ClearQueue done [07:35:36]KKMCreateOFDPacket [07:35:36]OFDProtocolAddRootSTLVToBuf [07:35:36]FM_MakeSignedData [07:35:36]FM_MakeSignedData [07:35:36]SAM_PROTO_SignData [07:35:36]wFMCommunicate request_size=4 [07:35:36]MH_SAM_APDU [07:35:36]CAPDU: 80 0D 01 02 [07:35:36]Write to MH i2c: E2 08 00 35 1D 80 0D 01 02 00 00 00 00 CB [07:35:36]Write i2c OK [07:35:36]MH_I2C_Read... [07:35:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:35:36]Read from MH i2c: E2 [07:35:36]MH_I2C_Read... [07:35:36]Read from MH i2c: E2 03 00 [07:35:36]MH_I2C_Read... [07:35:36]Read from MH i2c: E2 03 00 35 1D 00 90 00 C6 [07:35:36]RAPDU: 90 00 [07:35:36]wFMCommunicate OK [07:35:36]wFMCommunicate request_size=255 [07:35:36]MH_SAM_APDU [07:35:36]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 5D 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 18 00 00 00 F4 03 04 00 CA 35 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 91 70 00 00 35 04 06 00 [07:35:36]Write to MH i2c: E2 02 01 36 1D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 5D 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 18 00 00 00 F4 03 04 00 CA 35 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 91 70 00 00 35 04 06 00 00 00 0A [07:35:36]Write i2c OK [07:35:36]MH_I2C_Read... [07:35:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:36]Read from MH i2c: E2 [07:35:36]MH_I2C_Read... [07:35:36]Read from MH i2c: E2 03 00 [07:35:36]MH_I2C_Read... [07:35:36]Read from MH i2c: E2 03 00 36 1D 00 90 00 C7 [07:35:36]RAPDU: 90 00 [07:35:36]wFMCommunicate OK [07:35:36]wFMCommunicate request_size=11 [07:35:36]MH_SAM_APDU [07:35:36]CAPDU: 80 0D 02 02 06 73 7B C2 82 20 E9 [07:35:36]Write to MH i2c: E2 0E 00 37 1D 80 0D 02 02 06 00 73 7B C2 82 20 E9 00 00 15 [07:35:36]Write i2c OK [07:35:36]MH_I2C_Read... [07:35:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:36]Read from MH i2c: E2 [07:35:36]MH_I2C_Read... [07:35:36]Read from MH i2c: E2 03 00 [07:35:36]MH_I2C_Read... [07:35:36]Read from MH i2c: E2 03 00 37 1D 00 90 00 C8 [07:35:36]RAPDU: 90 00 [07:35:36]wFMCommunicate OK [07:35:36]wFMCommunicate request_size=4 [07:35:36]MH_SAM_APDU [07:35:36]CAPDU: 80 0D 03 02 [07:35:36]Write to MH i2c: E2 08 00 38 1D 80 0D 03 02 00 00 00 00 D0 [07:35:36]Write i2c OK [07:35:36]MH_I2C_Read... [07:35:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:35:36]Read from MH i2c: E2 [07:35:36]MH_I2C_Read... [07:35:36]Read from MH i2c: E2 0B 00 [07:35:36]MH_I2C_Read... [07:35:36]Read from MH i2c: E2 0B 00 38 1D 00 49 71 AF AA 3B 39 1E E2 90 00 58 [07:35:36]RAPDU: 49 71 AF AA 3B 39 1E E2 90 00 [07:35:36]wFMCommunicate OK [07:35:36]SAM_PROTO_SignData done [07:35:36]FM_MakeSignedData done [07:35:36]CreateOFDProtocolMessage [07:35:36]wFMCommunicate request_size=4 [07:35:36]MH_SAM_APDU [07:35:36]CAPDU: 80 11 00 00 [07:35:36]Write to MH i2c: E2 08 00 39 1D 80 11 00 00 00 00 00 00 D0 [07:35:36]Write i2c OK [07:35:36]MH_I2C_Read... [07:35:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:36]Read from MH i2c: E2 [07:35:36]MH_I2C_Read... [07:35:36]Read from MH i2c: E2 17 00 [07:35:36]MH_I2C_Read... [07:35:36]Read from MH i2c: E2 17 00 39 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1F [07:35:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:35:36]wFMCommunicate OK [07:35:36]CreateOFDProtocolMessage done [07:35:36]OFDSenderStorePacket 28817 [07:35:36]StoreOFDPacket docnum=28817 [07:35:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 EC 42 08 01 08 11 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 5D 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 18 00 00 00 F4 03 04 00 CA 35 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 91 70 00 00 35 04 06 00 73 7B C2 82 20 E9 49 71 AF AA 3B 39 1E E2 [07:35:36]CheckFolder [07:35:36]dirname=/storage/ofd_packets [07:35:36]CheckFolder done [07:35:36]ProducePacketName [07:35:36]name=ofd_packets/00028817 [07:35:36]NVStorageSaveData ofd_packets/00028817 [07:35:36]File name is /storage/ofd_packets/00028817 [07:35:36]Write 302 bytes [07:35:36]NVStorageSaveData done [07:35:36]OFDSenderStorePacket done [07:35:36]KKMCreateOFDPacket done [07:35:36]NVStorageSaveData kkm_last_timestamp [07:35:36]File name is /storage/kkm_last_timestamp [07:35:36]Write 4 bytes [07:35:36]NVStorageSaveData done [07:35:36]ExternCall_PrintAddStr [07:35:36]wPrintStart [07:35:36]Write to MH i2c: 01 00 00 3A 1D 57 [07:35:36]Write i2c OK [07:35:36]MH_I2C_Read... [07:35:36]Read from MH i2c: 01 [07:35:36]MH_I2C_Read... [07:35:36]Read from MH i2c: 01 07 00 [07:35:36]MH_I2C_Read... [07:35:36]Read from MH i2c: 01 07 00 3A 1D 00 00 00 00 00 FF 0F 6C [07:35:36]RasterBufferAndPrint [07:35:36]line Счет N : (1)347166 [07:35:36]line ИНН: 02508201610067 [07:35:36]line Контрольно-Кассовый Чек [07:35:36]line ПРОДАЖА [07:35:36]line ТРК (МРК, ГНК) : 12 [07:35:36]line Товар: 2710124130 [07:35:36]line SUPER-92-К-5 [07:35:36]line 6.130 * 65.30 [07:35:36]line = 400.29 [07:35:36]line НДС 12% НСП 1% [07:35:36]line > о реализуемом товаре [07:35:36]line ОКРУГЛЕНИЕ: -0.29 [07:35:36]line ИТОГО: 400.00 [07:35:36]line Внесено: 400.00 [07:35:36]line СДАЧА: 0.00 [07:35:36]line НСП 1% : 3.54 [07:35:36]line НДС 12% : 42.51 [07:35:36]line Наличными: 400.00 [07:35:36]line Безнал.: 0.00 [07:35:36]line Место: АЗС № 108 "Партнер Нефть" [07:35:36]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:35:36]line СНО: Общий режим [07:35:36]line Чек 24 13.04.2024 07:35 [07:35:36]line Смена: 115 ФФД: 1.0 [07:35:36]line ЗНМ: 0300000027 [07:35:36]line РНМ: 0000138879044617 [07:35:36]line Версия ККМ: 001 [07:35:36]line ФМ: 0000000000963154 [07:35:37]line ФД: 28817 [07:35:37]line ФПД: 126975381479657 [07:35:37]line 1/tax-web-control/client/api/v1/ticket?date=20240413T073538&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28817&fm=126975381479657&tin=02508201610067®Number=0000138879044617&sum=40000 [07:35:37]OFD Sender: Processing packet 28817 [packets to send 8, broken 7] [07:35:37]ProducePacketName [07:35:37]name=ofd_packets/00028817 [07:35:37]OFD Sender: To server: pG, [07:35:37]CommunicateWithHost lk.salyk.kg:30040 [07:35:37]ConnectInit lk.salyk.kg [07:35:37]written 0, free lines is 4095 [07:35:37]Connected sock=10 [07:35: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 31 35 34 10 01 00 00 EC 42 08 01 08 11 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 5D 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 18 00 00 00 F4 03 04 00 CA 35 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 91 70 00 00 35 04 06 00 73 7B C2 82 20 E9 49 71 AF AA 3B 39 1E E2 [07:35:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B7 B1 47 00 5F 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 91 70 00 00 F4 03 04 00 72 E0 19 66 B6 04 01 00 00 0E 56 12 6E C7 AD 63 B9 [07:35:37]CommunicateWithHost err = 0 [07:35:37]CheckOFDResponse [07:35:37]1017 (14) - 77093643461234 [07:35:37]1041 (16) - 0000000000963154 [07:35:37]1040 (4) - 28817 [07:35:37]1012 (4) - 13.04.2024 01:31 [07:35:37]1206 (1) - 0 [07:35:37]OFD Sender: Remove packet 28817 [07:35:37]ProducePacketName [07:35:37]name=ofd_packets/00028817 [07:35:37]NVStorageDeleteData [07:35:37]Write to MH i2c: 01 00 00 64 1D 81 [07:35:37]Write i2c OK [07:35:37]MH_I2C_Read... [07:35:37]Read from MH i2c: 01 [07:35:37]MH_I2C_Read... [07:35:37]Read from MH i2c: 01 07 00 [07:35:37]MH_I2C_Read... [07:35:37]Read from MH i2c: 01 07 00 64 1D 00 00 00 00 00 C1 0C 55 [07:35:37]RasterBufferAndPrint [07:35:37]line [07:35:37]line [07:35:37]line [07:35:37]line [07:35:37]line [07:35:37]written 0, free lines is 3269 [07:35:37]MH_Cut [07:35:37]Write to MH i2c: D1 01 00 6B 1D 01 5A [07:35:37]Write i2c OK [07:35:37]MH_I2C_Read... [07:35:37]Read from MH i2c: D1 [07:35:37]MH_I2C_Read... [07:35:37]Read from MH i2c: D1 01 00 [07:35:37]MH_I2C_Read... [07:35:37]Read from MH i2c: D1 01 00 6B 1D 00 59 [07:35:37]Write to MH i2c: 01 00 00 6C 1D 89 [07:35:37]Write i2c OK [07:35:37]MH_I2C_Read... [07:35:37]OFD Sender: No OFD packet to send [07:35:38]*** Cut start [07:35:38]*** Partial cut [07:35:38]*** CUTSNS_PIN = 1 [07:35:38]*** CUTSNS_PIN = 0 [07:35:38]*** Brake cut motor [07:35:39]Read from MH i2c: 01 [07:35:39]MH_I2C_Read... [07:35:39]*** Stop cut motor [07:35:39]*** Cut end [07:35:39]Read from MH i2c: 01 07 00 [07:35:39]MH_I2C_Read... [07:35:39]Read from MH i2c: 01 07 00 6C 1D 00 00 00 00 00 FF 0F 9E [07:35:39]process_action close_receipt done [07:35:39]requested_data is exist [07:35:39]produce_requested_data [07:35:39]requested_item fm.sn is exist - process it [07:35:39]wFMCommunicate request_size=4 [07:35:39]MH_SAM_APDU [07:35:39]CAPDU: 80 11 00 00 [07:35:39]Write to MH i2c: E2 08 00 6D 1D 80 11 00 00 00 00 00 00 04 [07:35:39]Write i2c OK [07:35:39]MH_I2C_Read... [07:35:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:39]Read from MH i2c: E2 [07:35:39]MH_I2C_Read... [07:35:39]Read from MH i2c: E2 17 00 [07:35:39]MH_I2C_Read... [07:35:39]Read from MH i2c: E2 17 00 6D 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 53 [07:35:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:35:39]wFMCommunicate OK [07:35:39]requested_item fd.num is exist - process it [07:35:39]SAM_PROTO_GetFieldsCounters [07:35:39]wFMCommunicate request_size=4 [07:35:39]MH_SAM_APDU [07:35:39]CAPDU: 80 13 00 00 [07:35:39]Write to MH i2c: E2 08 00 6E 1D 80 13 00 00 00 00 00 00 07 [07:35:39]Write i2c OK [07:35:39]MH_I2C_Read... [07:35:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:35:39]Read from MH i2c: E2 [07:35:39]MH_I2C_Read... [07:35:39]Read from MH i2c: E2 62 00 [07:35:39]MH_I2C_Read... [07:35:39]Read from MH i2c: E2 62 00 6E 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 91 70 00 00 0E 04 04 00 73 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 01 [07:35:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 91 70 00 00 0E 04 04 00 73 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:35:39]wFMCommunicate OK [07:35:39]SAM_PROTO_GetFieldsCounters done [07:35:39]requested_item shift.num is exist - process it [07:35:39]requested_item shift.opened is exist - process it [07:35:39]req_shift_opened [07:35:39]FM_GetShiftState [07:35:39]SAM_PROTO_GetShiftState [07:35:39]wFMCommunicate request_size=4 [07:35:39]MH_SAM_APDU [07:35:39]CAPDU: 80 13 01 00 [07:35:39]Write to MH i2c: E2 08 00 6F 1D 80 13 01 00 00 00 00 00 09 [07:35:39]Write i2c OK [07:35:39]MH_I2C_Read... [07:35:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:39]Read from MH i2c: E2 [07:35:39]MH_I2C_Read... [07:35:39]Read from MH i2c: E2 0E 00 [07:35:39]MH_I2C_Read... [07:35:39]Read from MH i2c: E2 0E 00 6F 1D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 22 [07:35:39]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:35:39]wFMCommunicate OK [07:35:39]SAM_PROTO_GetShiftState done [07:35:39]FM_GetShiftState done [07:35:39]req_shift_opened done [07:35:39]requested_item shift.open_date is exist - process it [07:35:39]req_shift_open_date [07:35:39]req_shift_open_date done [07:35:39]produce_requested_data done [07:35:39]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28817,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [07:35:39]process_action_free close_receipt [07:35:39]json_value_free [07:35:39]json_value_free done [07:35:39]process_json_proto returns [07:35:39]Send response to host [07:35:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28817,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [07:35:39]free response buf [07:35:39]execute_script done [07:35:39]execute_script returns [07:35:39]free content buf [07:35:39]Sock 7.Close socket [07:35:39]Sock 7.Thread stoped [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:21]accept exits with 9 [07:37:21]New connection [07:37:21]New thread 3066928484 created [07:37:21]Thread 3066785124 joined [07:37:21]Waiting for new connection... [07:37:21] Sock 9.Parse request [07:37:21]Sock 9.Check first char [07:37:21]Sock 9.First char is OK [07:37:21]request: POST /json_proto HTTP/1.0 [07:37:21]Method: POST [07:37:21]URL: /json_proto [07:37:21]Method is POST - this is cgi request [07:37:21]url: /json_proto [07:37:21]query_string will be loaded in cgi processing [07:37:21]execute_cgi json_proto POST (null) [07:37:21]execute_cgi path=json_proto method=POST [07:37:21]POST find Content-Length [07:37:21]Host: 172.17.33.3:8080 [07:37:21]Content-Length: 682 [07:37:21]Content-Type: application/json [07:37:21] [07:37:21]POST finish read [07:37:21]Found Content-Length = 682 [07:37:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.380, "sum" : 999.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:37:21]execute_script... [07:37: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)347165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.380, "sum" : 999.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:37:21]POST & json_proto [07:37:21]process_json_proto [07:37:21]json parsed OK: [07:37:21]protocol is kg_v1.0 [07:37:21]action value=close_receipt [07:37:21]process_action close_receipt [07:37:21]cmd_close_receipt [07:37:21]MH_GetDate [07:37:21]Write to MH i2c: F0 00 00 70 1D 7C [07:37:21]Write i2c OK [07:37:21]MH_I2C_Read... [07:37:21]Read from MH i2c: F0 [07:37:21]MH_I2C_Read... [07:37:21]Read from MH i2c: F0 09 00 [07:37:21]MH_I2C_Read... [07:37:21]Read from MH i2c: F0 09 00 70 1D 00 35 36 1A 66 23 5B 8F 65 E2 [07:37:21]GetLastDocTimeStamp 1712993738 [07:37:21]current date 1712993845 [07:37:21]FM_GetShiftState [07:37:21]SAM_PROTO_GetShiftState [07:37:21]wFMCommunicate request_size=4 [07:37:21]MH_SAM_APDU [07:37:21]CAPDU: 80 13 01 00 [07:37:21]Write to MH i2c: E2 08 00 71 1D 80 13 01 00 00 00 00 00 0B [07:37:21]Write i2c OK [07:37:21]MH_I2C_Read... [07:37:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:37:22]Read from MH i2c: E2 [07:37:22]MH_I2C_Read... [07:37:22]Read from MH i2c: E2 0E 00 [07:37:22]MH_I2C_Read... [07:37:22]Read from MH i2c: E2 0E 00 71 1D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 24 [07:37:22]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:37:22]wFMCommunicate OK [07:37:22]SAM_PROTO_GetShiftState done [07:37:22]FM_GetShiftState done [07:37:22]opened in 1712967615 [07:37:22]opened+sec_in_day 1713054015 [07:37:22]quantity*price = 99950 [07:37:22]sum+1 = 99951 [07:37:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.84 НДС 12% : 106.14 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 25 13.04.2024 07:37 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28818 ФПД: 57626070634446 1/tax-web-control/client/api/v1/ticket?date=20240413T073725&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28818&fm=57626070634446&tin=02508201610067®Number=0000138879044617&sum=99900 [07:37:23]StoreToDocumentArchive [07:37:23]shift 115 fd 28818 [07:37:23]save to /storage/0115/doc_00028818 [07:37:23]save last doc name /storage/0115/doc_00028818 to /storage/kkm_last_doc_name [07:37:23]save OK [07:37:23]Clear old archive folders... [07:37:23]ProcessDocumentItem done err = 0, tmpTLVsize=250 [07:37:23]tlvbuf is 011A3D00 [07:37:23]SAM_PROTO_ClearQueue [07:37:23]wFMCommunicate request_size=4 [07:37:23]MH_SAM_APDU [07:37:23]CAPDU: 80 09 00 00 [07:37:23]Write to MH i2c: E2 08 00 7E 1D 80 09 00 00 00 00 00 00 0D [07:37:23]Write i2c OK [07:37:23]MH_I2C_Read... [07:37:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:37:23]Read from MH i2c: E2 [07:37:23]MH_I2C_Read... [07:37:23]Read from MH i2c: E2 03 00 [07:37:23]MH_I2C_Read... [07:37:23]Read from MH i2c: E2 03 00 7E 1D 00 90 00 0F [07:37:23]RAPDU: 90 00 [07:37:23]wFMCommunicate OK [07:37:23]SAM_PROTO_ClearQueue done [07:37:23]KKMCreateOFDPacket [07:37:23]OFDProtocolAddRootSTLVToBuf [07:37:23]FM_MakeSignedData [07:37:23]FM_MakeSignedData [07:37:23]SAM_PROTO_SignData [07:37:23]wFMCommunicate request_size=4 [07:37:23]MH_SAM_APDU [07:37:23]CAPDU: 80 0D 01 02 [07:37:23]Write to MH i2c: E2 08 00 7F 1D 80 0D 01 02 00 00 00 00 15 [07:37:23]Write i2c OK [07:37:23]MH_I2C_Read... [07:37:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:37:23]Read from MH i2c: E2 [07:37:23]MH_I2C_Read... [07:37:23]Read from MH i2c: E2 03 00 [07:37:23]MH_I2C_Read... [07:37:23]Read from MH i2c: E2 03 00 7F 1D 00 90 00 10 [07:37:23]RAPDU: 90 00 [07:37:23]wFMCommunicate OK [07:37:23]wFMCommunicate request_size=255 [07:37:23]MH_SAM_APDU [07:37:23]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AC 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 6E 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 35 36 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 92 70 00 00 35 04 06 00 34 69 [07:37:23]Write to MH i2c: E2 02 01 80 1D 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AC 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 6E 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 35 36 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 92 70 00 00 35 04 06 00 34 69 00 00 9B [07:37:23]Write i2c OK [07:37:23]MH_I2C_Read... [07:37:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:23]Read from MH i2c: E2 [07:37:23]MH_I2C_Read... [07:37:23]Read from MH i2c: E2 03 00 [07:37:23]MH_I2C_Read... [07:37:23]Read from MH i2c: E2 03 00 80 1D 00 90 00 11 [07:37:23]RAPDU: 90 00 [07:37:23]wFMCommunicate OK [07:37:23]wFMCommunicate request_size=9 [07:37:23]MH_SAM_APDU [07:37:23]CAPDU: 80 0D 02 02 04 1D 78 4F CE [07:37:23]Write to MH i2c: E2 0C 00 81 1D 80 0D 02 02 04 00 1D 78 4F CE 00 00 D2 [07:37:23]Write i2c OK [07:37:23]MH_I2C_Read... [07:37:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:23]Read from MH i2c: E2 [07:37:23]MH_I2C_Read... [07:37:23]Read from MH i2c: E2 03 00 [07:37:23]MH_I2C_Read... [07:37:23]Read from MH i2c: E2 03 00 81 1D 00 90 00 12 [07:37:23]RAPDU: 90 00 [07:37:23]wFMCommunicate OK [07:37:23]wFMCommunicate request_size=4 [07:37:23]MH_SAM_APDU [07:37:23]CAPDU: 80 0D 03 02 [07:37:23]Write to MH i2c: E2 08 00 82 1D 80 0D 03 02 00 00 00 00 1A [07:37:23]Write i2c OK [07:37:23]MH_I2C_Read... [07:37:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:37:23]Read from MH i2c: E2 [07:37:23]MH_I2C_Read... [07:37:23]Read from MH i2c: E2 0B 00 [07:37:23]MH_I2C_Read... [07:37:23]Read from MH i2c: E2 0B 00 82 1D 00 46 CF E8 52 4A 21 17 6B 90 00 57 [07:37:23]RAPDU: 46 CF E8 52 4A 21 17 6B 90 00 [07:37:23]wFMCommunicate OK [07:37:23]SAM_PROTO_SignData done [07:37:23]FM_MakeSignedData done [07:37:23]CreateOFDProtocolMessage [07:37:23]wFMCommunicate request_size=4 [07:37:23]MH_SAM_APDU [07:37:23]CAPDU: 80 11 00 00 [07:37:23]Write to MH i2c: E2 08 00 83 1D 80 11 00 00 00 00 00 00 1A [07:37:23]Write i2c OK [07:37:23]MH_I2C_Read... [07:37:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:37:23]Read from MH i2c: E2 [07:37:23]MH_I2C_Read... [07:37:23]Read from MH i2c: E2 17 00 [07:37:23]MH_I2C_Read... [07:37:23]Read from MH i2c: E2 17 00 83 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 69 [07:37:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:37:23]wFMCommunicate OK [07:37:23]CreateOFDProtocolMessage done [07:37:23]OFDSenderStorePacket 28818 [07:37:23]StoreOFDPacket docnum=28818 [07:37:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 7B C4 06 01 DD CA 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AC 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 6E 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 35 36 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 92 70 00 00 35 04 06 00 34 69 1D 78 4F CE 46 CF E8 52 4A 21 17 6B [07:37:23]CheckFolder [07:37:23]dirname=/storage/ofd_packets [07:37:23]CheckFolder done [07:37:23]ProducePacketName [07:37:23]name=ofd_packets/00028818 [07:37:23]NVStorageSaveData ofd_packets/00028818 [07:37:23]File name is /storage/ofd_packets/00028818 [07:37:23]Write 300 bytes [07:37:23]NVStorageSaveData done [07:37:23]OFDSenderStorePacket done [07:37:23]KKMCreateOFDPacket done [07:37:23]NVStorageSaveData kkm_last_timestamp [07:37:23]File name is /storage/kkm_last_timestamp [07:37:23]Write 4 bytes [07:37:23]NVStorageSaveData done [07:37:23]ExternCall_PrintAddStr [07:37:23]wPrintStart [07:37:23]Write to MH i2c: 01 00 00 84 1D A1 [07:37:23]Write i2c OK [07:37:23]MH_I2C_Read... [07:37:23]Read from MH i2c: 01 [07:37:23]MH_I2C_Read... [07:37:23]Read from MH i2c: 01 07 00 [07:37:23]MH_I2C_Read... [07:37:23]Read from MH i2c: 01 07 00 84 1D 00 00 00 00 00 FF 0F B6 [07:37:23]RasterBufferAndPrint [07:37:23]line Счет N : (1)347165 [07:37:23]line ИНН: 02508201610067 [07:37:23]line Контрольно-Кассовый Чек [07:37:23]line ПРОДАЖА [07:37:23]line ТРК (МРК, ГНК) : 71 [07:37:23]line Товар: 2711129700 [07:37:23]line ГАЗ-К-5 [07:37:23]line 30.380 * 32.90 [07:37:23]line = 999.50 [07:37:23]line НДС 12% НСП 1% [07:37:23]line > о реализуемом товаре [07:37:23]line ОКРУГЛЕНИЕ: -0.50 [07:37:23]line ИТОГО: 999.00 [07:37:23]line Внесено: 1000.00 [07:37:23]line СДАЧА: 1.00 [07:37:23]line НСП 1% : 8.84 [07:37:23]line НДС 12% : 106.14 [07:37:23]line Наличными: 999.00 [07:37:23]line Безнал.: 0.00 [07:37:23]line Место: АЗС № 108 "Партнер Нефть" [07:37:23]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:37:23]line СНО: Общий режим [07:37:23]line Чек 25 13.04.2024 07:37 [07:37:23]line Смена: 115 ФФД: 1.0 [07:37:23]line ЗНМ: 0300000027 [07:37:23]line РНМ: 0000138879044617 [07:37:23]line Версия ККМ: 001 [07:37:23]line ФМ: 0000000000963154 [07:37:23]line ФД: 28818 [07:37:23]line ФПД: 57626070634446 [07:37:23]line 1/tax-web-control/client/api/v1/ticket?date=20240413T073725&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28818&fm=57626070634446&tin=02508201610067®Number=0000138879044617&sum=99900 [07:37:24]OFD Sender: Processing packet 28818 [packets to send 8, broken 7] [07:37:24]ProducePacketName [07:37:24]name=ofd_packets/00028818 [07:37:24]OFD Sender: To server: pG, [07:37:24]CommunicateWithHost lk.salyk.kg:30040 [07:37:24]ConnectInit lk.salyk.kg [07:37:24]written 0, free lines is 4095 [07:37:24]Connected sock=10 [07: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 31 35 34 0E 01 00 00 7B C4 06 01 DD CA 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AC 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 6E 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 35 36 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 92 70 00 00 35 04 06 00 34 69 1D 78 4F CE 46 CF E8 52 4A 21 17 6B [07: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 31 35 34 4F 00 00 00 49 EC 47 00 B5 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 31 35 34 10 04 04 00 92 70 00 00 F4 03 04 00 DD E0 19 66 B6 04 01 00 00 D8 2A 12 73 09 21 EB 88 [07:37:24]CommunicateWithHost err = 0 [07:37:24]CheckOFDResponse [07:37:24]1017 (14) - 77093643461234 [07:37:24]1041 (16) - 0000000000963154 [07:37:24]1040 (4) - 28818 [07:37:24]1012 (4) - 13.04.2024 01:33 [07:37:24]1206 (1) - 0 [07:37:24]OFD Sender: Remove packet 28818 [07:37:24]ProducePacketName [07:37:24]name=ofd_packets/00028818 [07:37:24]NVStorageDeleteData [07:37:24]Write to MH i2c: 01 00 00 AE 1D CB [07:37:24]Write i2c OK [07:37:24]MH_I2C_Read... [07:37:24]Read from MH i2c: 01 [07:37:24]MH_I2C_Read... [07:37:24]Read from MH i2c: 01 07 00 [07:37:24]MH_I2C_Read... [07:37:24]Read from MH i2c: 01 07 00 AE 1D 00 00 00 00 00 CC 0C AA [07:37:24]RasterBufferAndPrint [07:37:24]line [07:37:24]line [07:37:24]line [07:37:24]line [07:37:24]line [07:37:24]written 0, free lines is 3282 [07:37:24]MH_Cut [07:37:24]Write to MH i2c: D1 01 00 B5 1D 01 A4 [07:37:24]Write i2c OK [07:37:24]MH_I2C_Read... [07:37:24]Read from MH i2c: D1 [07:37:24]MH_I2C_Read... [07:37:24]Read from MH i2c: D1 01 00 [07:37:24]MH_I2C_Read... [07:37:24]Read from MH i2c: D1 01 00 B5 1D 00 A3 [07:37:24]Write to MH i2c: 01 00 00 B6 1D D3 [07:37:24]Write i2c OK [07:37:24]MH_I2C_Read... [07:37:24]OFD Sender: No OFD packet to send [07:37:25]*** Cut start [07:37:25]*** Partial cut [07:37:25]*** CUTSNS_PIN = 1 [07:37:25]*** CUTSNS_PIN = 0 [07:37:25]*** Brake cut motor [07:37:25]Read from MH i2c: 01 [07:37:25]MH_I2C_Read... [07:37:25]*** Stop cut motor [07:37:25]*** Cut end [07:37:25]Read from MH i2c: 01 07 00 [07:37:25]MH_I2C_Read... [07:37:25]Read from MH i2c: 01 07 00 B6 1D 00 00 00 00 00 FF 0F E8 [07:37:25]process_action close_receipt done [07:37:25]requested_data is exist [07:37:25]produce_requested_data [07:37:25]requested_item fm.sn is exist - process it [07:37:25]wFMCommunicate request_size=4 [07:37:25]MH_SAM_APDU [07:37:25]CAPDU: 80 11 00 00 [07:37:25]Write to MH i2c: E2 08 00 B7 1D 80 11 00 00 00 00 00 00 4E [07:37:25]Write i2c OK [07:37:25]MH_I2C_Read... [07:37:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:37:26]Read from MH i2c: E2 [07:37:26]MH_I2C_Read... [07:37:26]Read from MH i2c: E2 17 00 [07:37:26]MH_I2C_Read... [07:37:26]Read from MH i2c: E2 17 00 B7 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9D [07:37:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:37:26]wFMCommunicate OK [07:37:26]requested_item fd.num is exist - process it [07:37:26]SAM_PROTO_GetFieldsCounters [07:37:26]wFMCommunicate request_size=4 [07:37:26]MH_SAM_APDU [07:37:26]CAPDU: 80 13 00 00 [07:37:26]Write to MH i2c: E2 08 00 B8 1D 80 13 00 00 00 00 00 00 51 [07:37:26]Write i2c OK [07:37:26]MH_I2C_Read... [07:37:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:37:26]Read from MH i2c: E2 [07:37:26]MH_I2C_Read... [07:37:26]Read from MH i2c: E2 62 00 [07:37:26]MH_I2C_Read... [07:37:26]Read from MH i2c: E2 62 00 B8 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 92 70 00 00 0E 04 04 00 73 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 4F [07: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 92 70 00 00 0E 04 04 00 73 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:37:26]wFMCommunicate OK [07:37:26]SAM_PROTO_GetFieldsCounters done [07:37:26]requested_item shift.num is exist - process it [07:37:26]requested_item shift.opened is exist - process it [07:37:26]req_shift_opened [07:37:26]FM_GetShiftState [07:37:26]SAM_PROTO_GetShiftState [07:37:26]wFMCommunicate request_size=4 [07:37:26]MH_SAM_APDU [07:37:26]CAPDU: 80 13 01 00 [07:37:26]Write to MH i2c: E2 08 00 B9 1D 80 13 01 00 00 00 00 00 53 [07:37:26]Write i2c OK [07:37:26]MH_I2C_Read... [07:37:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:37:26]Read from MH i2c: E2 [07:37:26]MH_I2C_Read... [07:37:26]Read from MH i2c: E2 0E 00 [07:37:26]MH_I2C_Read... [07:37:26]Read from MH i2c: E2 0E 00 B9 1D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 6C [07:37:26]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:37:26]wFMCommunicate OK [07:37:26]SAM_PROTO_GetShiftState done [07:37:26]FM_GetShiftState done [07:37:26]req_shift_opened done [07:37:26]requested_item shift.open_date is exist - process it [07:37:26]req_shift_open_date [07:37:26]req_shift_open_date done [07:37:26]produce_requested_data done [07:37:26]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28818,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [07:37:26]process_action_free close_receipt [07:37:26]json_value_free [07:37:26]json_value_free done [07:37:26]process_json_proto returns [07:37:26]Send response to host [07:37:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28818,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [07:37:26]free response buf [07:37:26]execute_script done [07:37:26]execute_script returns [07:37:26]free content buf [07:37:26]Sock 9.Close socket [07:37:26]Sock 9.Thread stoped [07:37:29]OFD Sender: No OFD packet to send [07:37:34]OFD Sender: No OFD packet to send [07:37:39]OFD Sender: No OFD packet to send [07:37:44]OFD Sender: No OFD packet to send [07:37:49]OFD Sender: No OFD packet to send [07:37:54]OFD Sender: No OFD packet to send [07:37:59]OFD Sender: No OFD packet to send [07:38:04]OFD Sender: No OFD packet to send [07:38:09]OFD Sender: No OFD packet to send [07:38:14]OFD Sender: No OFD packet to send [07:38:19]OFD Sender: No OFD packet to send [07:38:24]OFD Sender: No OFD packet to send [07:38:29]OFD Sender: No OFD packet to send [07:38:34]OFD Sender: No OFD packet to send [07:38:39]OFD Sender: No OFD packet to send [07:38:44]OFD Sender: No OFD packet to send [07:38:49]OFD Sender: No OFD packet to send [07:38:54]OFD Sender: No OFD packet to send [07:38:59]OFD Sender: No OFD packet to send [07:39:04]OFD Sender: No OFD packet to send [07:39:09]OFD Sender: No OFD packet to send [07:39:14]OFD Sender: No OFD packet to send [07:39:19]OFD Sender: No OFD packet to send [07:39:24]OFD Sender: No OFD packet to send [07:39:29]OFD Sender: No OFD packet to send [07:39:34]OFD Sender: No OFD packet to send [07:39:39]OFD Sender: No OFD packet to send [07:39:44]OFD Sender: No OFD packet to send [07:39:49]OFD Sender: No OFD packet to send [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:19]OFD Sender: No OFD packet to send [07:40:24]OFD Sender: No OFD packet to send [07:40:29]OFD Sender: No OFD packet to send [07:40:34]accept exits with 7 [07:40:34]New connection [07:40:34]New thread 3066785124 created [07:40:34]Thread 3066928484 joined [07:40:34]Waiting for new connection... [07:40:34] Sock 7.Parse request [07:40:34]Sock 7.Check first char [07:40:34]Sock 7.First char is OK [07:40:34]request: POST /json_proto HTTP/1.0 [07:40:34]Method: POST [07:40:34]URL: /json_proto [07:40:34]Method is POST - this is cgi request [07:40:34]url: /json_proto [07:40:34]query_string will be loaded in cgi processing [07:40:34]execute_cgi json_proto POST (null) [07:40:34]execute_cgi path=json_proto method=POST [07:40:34]POST find Content-Length [07:40:34]Host: 172.17.33.3:8080 [07:40:34]Content-Length: 811 [07:40:34]Content-Type: application/json [07:40:34] [07:40:34]POST finish read [07:40:34]Found Content-Length = 811 [07:40:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:40:34]execute_script... [07:40: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)347167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:40:34]POST & json_proto [07:40:34]process_json_proto [07:40:34]json parsed OK: [07:40:34]protocol is kg_v1.0 [07:40:34]action value=close_receipt [07:40:34]process_action close_receipt [07:40:34]cmd_close_receipt [07:40:34]MH_GetDate [07:40:34]Write to MH i2c: F0 00 00 BA 1D C6 [07:40:34]Write i2c OK [07:40:34]MH_I2C_Read... [07:40:34]Read from MH i2c: F0 [07:40:34]MH_I2C_Read... [07:40:34]Read from MH i2c: F0 09 00 [07:40:34]MH_I2C_Read... [07:40:34]Read from MH i2c: F0 09 00 BA 1D 00 F6 36 1A 66 23 5B 8F 65 ED [07:40:34]GetLastDocTimeStamp 1712993845 [07:40:34]current date 1712994038 [07:40:34]FM_GetShiftState [07:40:34]SAM_PROTO_GetShiftState [07:40:34]wFMCommunicate request_size=4 [07:40:34]MH_SAM_APDU [07:40:34]CAPDU: 80 13 01 00 [07:40:34]Write to MH i2c: E2 08 00 BB 1D 80 13 01 00 00 00 00 00 55 [07:40:34]Write i2c OK [07:40:34]MH_I2C_Read... [07:40:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:40:34]Read from MH i2c: E2 [07:40:34]MH_I2C_Read... [07:40:34]Read from MH i2c: E2 0E 00 [07:40:34]MH_I2C_Read... [07:40:34]Read from MH i2c: E2 0E 00 BB 1D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 6E [07:40:34]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:40:34]wFMCommunicate OK [07:40:34]SAM_PROTO_GetShiftState done [07:40:34]FM_GetShiftState done [07:40:34]opened in 1712967615 [07:40:34]opened+sec_in_day 1713054015 [07:40:34]quantity*price = 100016 [07:40:34]sum+1 = 100017 [07:40:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 26 13.04.2024 07:40 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28819 ФПД: 165096538280897 1/tax-web-control/client/api/v1/ticket?date=20240413T074038&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28819&fm=165096538280897&tin=02508201610067®Number=0000138879044617&sum=100016 [07:40:35]StoreToDocumentArchive [07:40:35]shift 115 fd 28819 [07:40:35]save to /storage/0115/doc_00028819 [07:40:35]save last doc name /storage/0115/doc_00028819 to /storage/kkm_last_doc_name [07:40:35]save OK [07:40:35]Clear old archive folders... [07:40:35]ProcessDocumentItem done err = 0, tmpTLVsize=250 [07:40:35]tlvbuf is B6F524A0 [07:40:35]SAM_PROTO_ClearQueue [07:40:35]wFMCommunicate request_size=4 [07:40:35]MH_SAM_APDU [07:40:35]CAPDU: 80 09 00 00 [07:40:35]Write to MH i2c: E2 08 00 C8 1D 80 09 00 00 00 00 00 00 57 [07:40:35]Write i2c OK [07:40:35]MH_I2C_Read... [07:40:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:40:35]Read from MH i2c: E2 [07:40:35]MH_I2C_Read... [07:40:35]Read from MH i2c: E2 03 00 [07:40:35]MH_I2C_Read... [07:40:35]Read from MH i2c: E2 03 00 C8 1D 00 90 00 59 [07:40:35]RAPDU: 90 00 [07:40:35]wFMCommunicate OK [07:40:35]SAM_PROTO_ClearQueue done [07:40:35]KKMCreateOFDPacket [07:40:35]OFDProtocolAddRootSTLVToBuf [07:40:35]FM_MakeSignedData [07:40:35]FM_MakeSignedData [07:40:35]SAM_PROTO_SignData [07:40:35]wFMCommunicate request_size=4 [07:40:35]MH_SAM_APDU [07:40:35]CAPDU: 80 0D 01 02 [07:40:35]Write to MH i2c: E2 08 00 C9 1D 80 0D 01 02 00 00 00 00 5F [07:40:35]Write i2c OK [07:40:35]MH_I2C_Read... [07:40:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:40:36]Read from MH i2c: E2 [07:40:36]MH_I2C_Read... [07:40:36]Read from MH i2c: E2 03 00 [07:40:36]MH_I2C_Read... [07:40:36]Read from MH i2c: E2 03 00 C9 1D 00 90 00 5A [07:40:36]RAPDU: 90 00 [07:40:36]wFMCommunicate OK [07:40:36]wFMCommunicate request_size=255 [07:40:36]MH_SAM_APDU [07:40:36]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 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 1A 00 00 00 F4 03 04 00 F6 36 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 93 70 00 00 35 04 06 00 96 27 [07:40:36]Write to MH i2c: E2 02 01 CA 1D 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 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 1A 00 00 00 F4 03 04 00 F6 36 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 93 70 00 00 35 04 06 00 96 27 00 00 0E [07:40:36]Write i2c OK [07:40:36]MH_I2C_Read... [07:40:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:40:36]Read from MH i2c: E2 [07:40:36]MH_I2C_Read... [07:40:36]Read from MH i2c: E2 03 00 [07:40:36]MH_I2C_Read... [07:40:36]Read from MH i2c: E2 03 00 CA 1D 00 90 00 5B [07:40:36]RAPDU: 90 00 [07:40:36]wFMCommunicate OK [07:40:36]wFMCommunicate request_size=9 [07:40:36]MH_SAM_APDU [07:40:36]CAPDU: 80 0D 02 02 04 88 84 93 C1 [07:40:36]Write to MH i2c: E2 0C 00 CB 1D 80 0D 02 02 04 00 88 84 93 C1 00 00 CA [07:40:36]Write i2c OK [07:40:36]MH_I2C_Read... [07:40:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:40:36]Read from MH i2c: E2 [07:40:36]MH_I2C_Read... [07:40:36]Read from MH i2c: E2 03 00 [07:40:36]MH_I2C_Read... [07:40:36]Read from MH i2c: E2 03 00 CB 1D 00 90 00 5C [07:40:36]RAPDU: 90 00 [07:40:36]wFMCommunicate OK [07:40:36]wFMCommunicate request_size=4 [07:40:36]MH_SAM_APDU [07:40:36]CAPDU: 80 0D 03 02 [07:40:36]Write to MH i2c: E2 08 00 CC 1D 80 0D 03 02 00 00 00 00 64 [07:40:36]Write i2c OK [07:40:36]MH_I2C_Read... [07:40:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:40:36]Read from MH i2c: E2 [07:40:36]MH_I2C_Read... [07:40:36]Read from MH i2c: E2 0B 00 [07:40:36]MH_I2C_Read... [07:40:36]Read from MH i2c: E2 0B 00 CC 1D 00 A7 B5 55 56 CA 0E FE 3F 90 00 81 [07:40:36]RAPDU: A7 B5 55 56 CA 0E FE 3F 90 00 [07:40:36]wFMCommunicate OK [07:40:36]SAM_PROTO_SignData done [07:40:36]FM_MakeSignedData done [07:40:36]CreateOFDProtocolMessage [07:40:36]wFMCommunicate request_size=4 [07:40:36]MH_SAM_APDU [07:40:36]CAPDU: 80 11 00 00 [07:40:36]Write to MH i2c: E2 08 00 CD 1D 80 11 00 00 00 00 00 00 64 [07:40:36]Write i2c OK [07:40:36]MH_I2C_Read... [07:40:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:40:36]Read from MH i2c: E2 [07:40:36]MH_I2C_Read... [07:40:36]Read from MH i2c: E2 17 00 [07:40:36]MH_I2C_Read... [07:40:36]Read from MH i2c: E2 17 00 CD 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B3 [07:40:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:40:36]wFMCommunicate OK [07:40:36]CreateOFDProtocolMessage done [07:40:36]OFDSenderStorePacket 28819 [07:40:36]StoreOFDPacket docnum=28819 [07:40:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 B2 38 06 01 BC 72 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 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 1A 00 00 00 F4 03 04 00 F6 36 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 93 70 00 00 35 04 06 00 96 27 88 84 93 C1 A7 B5 55 56 CA 0E FE 3F [07:40:36]CheckFolder [07:40:36]dirname=/storage/ofd_packets [07:40:36]CheckFolder done [07:40:36]ProducePacketName [07:40:36]name=ofd_packets/00028819 [07:40:36]NVStorageSaveData ofd_packets/00028819 [07:40:36]File name is /storage/ofd_packets/00028819 [07:40:36]Write 300 bytes [07:40:36]NVStorageSaveData done [07:40:36]OFDSenderStorePacket done [07:40:36]KKMCreateOFDPacket done [07:40:36]NVStorageSaveData kkm_last_timestamp [07:40:36]File name is /storage/kkm_last_timestamp [07:40:36]Write 4 bytes [07:40:36]NVStorageSaveData done [07:40:36]ExternCall_PrintAddStr [07:40:36]wPrintStart [07:40:36]Write to MH i2c: 01 00 00 CE 1D EB [07:40:36]Write i2c OK [07:40:36]MH_I2C_Read... [07:40:36]Read from MH i2c: 01 [07:40:36]MH_I2C_Read... [07:40:36]Read from MH i2c: 01 07 00 [07:40:36]MH_I2C_Read... [07:40:36]Read from MH i2c: 01 07 00 CE 1D 00 00 00 00 00 FF 0F 00 [07:40:36]RasterBufferAndPrint [07:40:36]line Счет N : (1)347167 [07:40:36]line ИНН: 02508201610067 [07:40:36]line Контрольно-Кассовый Чек [07:40:36]line ПРОДАЖА [07:40:36]line ТРК (МРК, ГНК) : 71 [07:40:36]line Товар: 2711129700 [07:40:36]line ГАЗ-К-5 [07:40:36]line 30.400 * 32.90 [07:40:36]line = 1000.16 [07:40:36]line НДС 12% НСП 1% [07:40:36]line > о реализуемом товаре [07:40:36]line ИТОГО: 1000.16 [07:40:36]line НСП 1% : 8.85 [07:40:36]line НДС 12% : 106.21 [07:40:36]line Наличными: 0.00 [07:40:36]line Безнал.: 1000.16 [07:40:36]line Место: АЗС № 108 "Партнер Нефть" [07:40:36]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:40:36]line СНО: Общий режим [07:40:36]line Чек 26 13.04.2024 07:40 [07:40:36]line Смена: 115 ФФД: 1.0 [07:40:36]line ЗНМ: 0300000027 [07:40:36]line РНМ: 0000138879044617 [07:40:36]line Версия ККМ: 001 [07:40:36]line Платежная система: О! деньги [07:40:36]line ФМ: 0000000000963154 [07:40:36]line ФД: 28819 [07:40:36]line ФПД: 165096538280897 [07:40:36]line 1/tax-web-control/client/api/v1/ticket?date=20240413T074038&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28819&fm=165096538280897&tin=02508201610067®Number=0000138879044617&sum=100016 [07:40:36]OFD Sender: Processing packet 28819 [packets to send 8, broken 7] [07:40:36]ProducePacketName [07:40:36]name=ofd_packets/00028819 [07:40:36]OFD Sender: To server: pG, [07:40:36]CommunicateWithHost lk.salyk.kg:30040 [07:40:36]ConnectInit lk.salyk.kg [07:40:36]written 0, free lines is 4095 [07:40:36]Connected sock=10 [07:40: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 31 35 34 0E 01 00 00 B2 38 06 01 BC 72 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 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 1A 00 00 00 F4 03 04 00 F6 36 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 93 70 00 00 35 04 06 00 96 27 88 84 93 C1 A7 B5 55 56 CA 0E FE 3F [07:40:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 88 A6 47 00 CE 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 93 70 00 00 F4 03 04 00 9E E1 19 66 B6 04 01 00 00 45 15 FE B2 C1 8F 5F D0 [07:40:37]CommunicateWithHost err = 0 [07:40:37]CheckOFDResponse [07:40:37]1017 (14) - 77093643461234 [07:40:37]1041 (16) - 0000000000963154 [07:40:37]1040 (4) - 28819 [07:40:37]1012 (4) - 13.04.2024 01:36 [07:40:37]1206 (1) - 0 [07:40:37]OFD Sender: Remove packet 28819 [07:40:37]ProducePacketName [07:40:37]name=ofd_packets/00028819 [07:40:37]NVStorageDeleteData [07:40:37]Write to MH i2c: 01 00 00 F7 1D 14 [07:40:37]Write i2c OK [07:40:37]MH_I2C_Read... [07:40:37]Read from MH i2c: 01 [07:40:37]MH_I2C_Read... [07:40:37]Read from MH i2c: 01 07 00 [07:40:37]MH_I2C_Read... [07:40:37]Read from MH i2c: 01 07 00 F7 1D 00 00 00 00 00 D6 0C FD [07:40:37]RasterBufferAndPrint [07:40:37]line [07:40:37]line [07:40:37]line [07:40:37]line [07:40:37]line [07:40:37]written 0, free lines is 3292 [07:40:37]MH_Cut [07:40:37]Write to MH i2c: D1 01 00 FE 1D 01 ED [07:40:37]Write i2c OK [07:40:37]MH_I2C_Read... [07:40:37]Read from MH i2c: D1 [07:40:37]MH_I2C_Read... [07:40:37]Read from MH i2c: D1 01 00 [07:40:37]MH_I2C_Read... [07:40:37]Read from MH i2c: D1 01 00 FE 1D 00 EC [07:40:37]Write to MH i2c: 01 00 00 FF 1D 1C [07:40:37]Write i2c OK [07:40:37]MH_I2C_Read... [07:40:37]OFD Sender: No OFD packet to send [07:40:37]*** Cut start [07:40:37]*** Partial cut [07:40:37]*** CUTSNS_PIN = 1 [07:40:38]*** CUTSNS_PIN = 0 [07:40:38]*** Brake cut motor [07:40:38]Read from MH i2c: 01 [07:40:38]MH_I2C_Read... [07:40:38]*** Stop cut motor [07:40:38]*** Cut end [07:40:38]Read from MH i2c: 01 07 00 [07:40:38]MH_I2C_Read... [07:40:38]Read from MH i2c: 01 07 00 FF 1D 00 00 00 00 00 FF 0F 31 [07:40:38]process_action close_receipt done [07:40:38]requested_data is exist [07:40:38]produce_requested_data [07:40:38]requested_item fm.sn is exist - process it [07:40:38]wFMCommunicate request_size=4 [07:40:38]MH_SAM_APDU [07:40:38]CAPDU: 80 11 00 00 [07:40:38]Write to MH i2c: E2 08 00 00 1E 80 11 00 00 00 00 00 00 98 [07:40:38]Write i2c OK [07:40:38]MH_I2C_Read... [07:40:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:40:38]Read from MH i2c: E2 [07:40:38]MH_I2C_Read... [07:40:38]Read from MH i2c: E2 17 00 [07:40:38]MH_I2C_Read... [07:40:38]Read from MH i2c: E2 17 00 00 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E7 [07:40:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:40:38]wFMCommunicate OK [07:40:38]requested_item fd.num is exist - process it [07:40:38]SAM_PROTO_GetFieldsCounters [07:40:38]wFMCommunicate request_size=4 [07:40:38]MH_SAM_APDU [07:40:38]CAPDU: 80 13 00 00 [07:40:38]Write to MH i2c: E2 08 00 01 1E 80 13 00 00 00 00 00 00 9B [07:40:38]Write i2c OK [07:40:38]MH_I2C_Read... [07:40:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:40:38]Read from MH i2c: E2 [07:40:38]MH_I2C_Read... [07:40:38]Read from MH i2c: E2 62 00 [07:40:38]MH_I2C_Read... [07:40:38]Read from MH i2c: E2 62 00 01 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 93 70 00 00 0E 04 04 00 73 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 9D [07:40: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 93 70 00 00 0E 04 04 00 73 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:40:38]wFMCommunicate OK [07:40:38]SAM_PROTO_GetFieldsCounters done [07:40:38]requested_item shift.num is exist - process it [07:40:38]requested_item shift.opened is exist - process it [07:40:38]req_shift_opened [07:40:38]FM_GetShiftState [07:40:38]SAM_PROTO_GetShiftState [07:40:38]wFMCommunicate request_size=4 [07:40:38]MH_SAM_APDU [07:40:38]CAPDU: 80 13 01 00 [07:40:38]Write to MH i2c: E2 08 00 02 1E 80 13 01 00 00 00 00 00 9D [07:40:38]Write i2c OK [07:40:38]MH_I2C_Read... [07:40:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:40:38]Read from MH i2c: E2 [07:40:38]MH_I2C_Read... [07:40:38]Read from MH i2c: E2 0E 00 [07:40:38]MH_I2C_Read... [07:40:38]Read from MH i2c: E2 0E 00 02 1E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 B6 [07:40:38]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:40:38]wFMCommunicate OK [07:40:38]SAM_PROTO_GetShiftState done [07:40:38]FM_GetShiftState done [07:40:38]req_shift_opened done [07:40:38]requested_item shift.open_date is exist - process it [07:40:38]req_shift_open_date [07:40:38]req_shift_open_date done [07:40:38]produce_requested_data done [07:40:38]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28819,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [07:40:38]process_action_free close_receipt [07:40:38]json_value_free [07:40:38]json_value_free done [07:40:38]process_json_proto returns [07:40:38]Send response to host [07:40:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28819,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [07:40:38]free response buf [07:40:38]execute_script done [07:40:38]execute_script returns [07:40:38]free content buf [07:40:38]Sock 7.Close socket [07:40:38]Sock 7.Thread stoped [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:40:58]accept exits with 9 [07:40:58]New connection [07:40:58]New thread 3066928484 created [07:40:58]Thread 3066785124 joined [07:40:58]Waiting for new connection... [07:40:58] Sock 9.Parse request [07:40:58]Sock 9.Check first char [07:40:58]Sock 9.First char is OK [07:40:58]request: POST /json_proto HTTP/1.0 [07:40:58]Method: POST [07:40:58]URL: /json_proto [07:40:58]Method is POST - this is cgi request [07:40:58]url: /json_proto [07:40:58]query_string will be loaded in cgi processing [07:40:58]execute_cgi json_proto POST (null) [07:40:58]execute_cgi path=json_proto method=POST [07:40:58]POST find Content-Length [07:40:58]Host: 172.17.33.3:8080 [07:40:58]Content-Length: 682 [07:40:58]Content-Type: application/json [07:40:58] [07:40:58]POST finish read [07:40:58]Found Content-Length = 682 [07:40:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347168", "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" : 72.50, "quantity" : 13.800, "sum" : 1000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:40:58]execute_script... [07:40: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)347168", "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" : 72.50, "quantity" : 13.800, "sum" : 1000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:40:58]POST & json_proto [07:40:58]process_json_proto [07:40:58]json parsed OK: [07:40:58]protocol is kg_v1.0 [07:40:58]action value=close_receipt [07:40:58]process_action close_receipt [07:40:58]cmd_close_receipt [07:40:58]MH_GetDate [07:40:58]Write to MH i2c: F0 00 00 03 1E 10 [07:40:58]Write i2c OK [07:40:58]MH_I2C_Read... [07:40:58]Read from MH i2c: F0 [07:40:58]MH_I2C_Read... [07:40:58]Read from MH i2c: F0 09 00 [07:40:58]MH_I2C_Read... [07:40:58]Read from MH i2c: F0 09 00 03 1E 00 0D 37 1A 66 23 5B 8F 65 4F [07:40:58]GetLastDocTimeStamp 1712994038 [07:40:58]current date 1712994061 [07:40:58]FM_GetShiftState [07:40:58]SAM_PROTO_GetShiftState [07:40:58]wFMCommunicate request_size=4 [07:40:58]MH_SAM_APDU [07:40:58]CAPDU: 80 13 01 00 [07:40:58]Write to MH i2c: E2 08 00 04 1E 80 13 01 00 00 00 00 00 9F [07:40:58]Write i2c OK [07:40:58]MH_I2C_Read... [07:40:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:40:58]Read from MH i2c: E2 [07:40:58]MH_I2C_Read... [07:40:58]Read from MH i2c: E2 0E 00 [07:40:58]MH_I2C_Read... [07:40:58]Read from MH i2c: E2 0E 00 04 1E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 B8 [07:40:58]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:40:58]wFMCommunicate OK [07:40:58]SAM_PROTO_GetShiftState done [07:40:58]FM_GetShiftState done [07:40:58]opened in 1712967615 [07:40:58]opened+sec_in_day 1713054015 [07:40:58]quantity*price = 100050 [07:40:58]sum+1 = 100051 [07:40:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 27 13.04.2024 07:41 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28820 ФПД: 270771939230558 1/tax-web-control/client/api/v1/ticket?date=20240413T074101&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28820&fm=270771939230558&tin=02508201610067®Number=0000138879044617&sum=100000 [07:40:59]StoreToDocumentArchive [07:40:59]shift 115 fd 28820 [07:40:59]save to /storage/0115/doc_00028820 [07:40:59]save last doc name /storage/0115/doc_00028820 to /storage/kkm_last_doc_name [07:40:59]save OK [07:40:59]Clear old archive folders... [07:40:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:40:59]tlvbuf is 011A3E80 [07:40:59]SAM_PROTO_ClearQueue [07:40:59]wFMCommunicate request_size=4 [07:40:59]MH_SAM_APDU [07:40:59]CAPDU: 80 09 00 00 [07:40:59]Write to MH i2c: E2 08 00 11 1E 80 09 00 00 00 00 00 00 A1 [07:40:59]Write i2c OK [07:40:59]MH_I2C_Read... [07:40:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:40:59]Read from MH i2c: E2 [07:40:59]MH_I2C_Read... [07:40:59]Read from MH i2c: E2 03 00 [07:40:59]MH_I2C_Read... [07:40:59]Read from MH i2c: E2 03 00 11 1E 00 90 00 A3 [07:40:59]RAPDU: 90 00 [07:40:59]wFMCommunicate OK [07:40:59]SAM_PROTO_ClearQueue done [07:40:59]KKMCreateOFDPacket [07:40:59]OFDProtocolAddRootSTLVToBuf [07:40:59]FM_MakeSignedData [07:40:59]FM_MakeSignedData [07:40:59]SAM_PROTO_SignData [07:40:59]wFMCommunicate request_size=4 [07:40:59]MH_SAM_APDU [07:40:59]CAPDU: 80 0D 01 02 [07:40:59]Write to MH i2c: E2 08 00 12 1E 80 0D 01 02 00 00 00 00 A9 [07:40:59]Write i2c OK [07:40:59]MH_I2C_Read... [07:40:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:40:59]Read from MH i2c: E2 [07:40:59]MH_I2C_Read... [07:40:59]Read from MH i2c: E2 03 00 [07:40:59]MH_I2C_Read... [07:40:59]Read from MH i2c: E2 03 00 12 1E 00 90 00 A4 [07:40:59]RAPDU: 90 00 [07:40:59]wFMCommunicate OK [07:40:59]wFMCommunicate request_size=255 [07:40:59]MH_SAM_APDU [07:40: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 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1B 00 00 00 F4 03 04 00 0D 37 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 94 70 00 00 35 04 06 00 F6 [07:40:59]Write to MH i2c: E2 02 01 13 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 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1B 00 00 00 F4 03 04 00 0D 37 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 94 70 00 00 35 04 06 00 F6 00 00 74 [07:40:59]Write i2c OK [07:40:59]MH_I2C_Read... [07:40:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:40:59]Read from MH i2c: E2 [07:40:59]MH_I2C_Read... [07:40:59]Read from MH i2c: E2 03 00 [07:40:59]MH_I2C_Read... [07:40:59]Read from MH i2c: E2 03 00 13 1E 00 90 00 A5 [07:40:59]RAPDU: 90 00 [07:40:59]wFMCommunicate OK [07:40:59]wFMCommunicate request_size=10 [07:40:59]MH_SAM_APDU [07:40:59]CAPDU: 80 0D 02 02 05 44 01 40 C3 5E [07:40:59]Write to MH i2c: E2 0D 00 14 1E 80 0D 02 02 05 00 44 01 40 C3 5E 00 00 5C [07:40:59]Write i2c OK [07:40:59]MH_I2C_Read... [07:40:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:40:59]Read from MH i2c: E2 [07:40:59]MH_I2C_Read... [07:40:59]Read from MH i2c: E2 03 00 [07:40:59]MH_I2C_Read... [07:40:59]Read from MH i2c: E2 03 00 14 1E 00 90 00 A6 [07:40:59]RAPDU: 90 00 [07:40:59]wFMCommunicate OK [07:40:59]wFMCommunicate request_size=4 [07:40:59]MH_SAM_APDU [07:40:59]CAPDU: 80 0D 03 02 [07:40:59]Write to MH i2c: E2 08 00 15 1E 80 0D 03 02 00 00 00 00 AE [07:40:59]Write i2c OK [07:40:59]MH_I2C_Read... [07:40:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:40:59]Read from MH i2c: E2 [07:40:59]MH_I2C_Read... [07:40:59]Read from MH i2c: E2 0B 00 [07:40:59]MH_I2C_Read... [07:40:59]Read from MH i2c: E2 0B 00 15 1E 00 FF FE 3B 0D 3D 6C 70 98 90 00 A5 [07:40:59]RAPDU: FF FE 3B 0D 3D 6C 70 98 90 00 [07:40:59]wFMCommunicate OK [07:40:59]SAM_PROTO_SignData done [07:40:59]FM_MakeSignedData done [07:40:59]CreateOFDProtocolMessage [07:40:59]wFMCommunicate request_size=4 [07:40:59]MH_SAM_APDU [07:40:59]CAPDU: 80 11 00 00 [07:40:59]Write to MH i2c: E2 08 00 16 1E 80 11 00 00 00 00 00 00 AE [07:40:59]Write i2c OK [07:40:59]MH_I2C_Read... [07:40:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:40:59]Read from MH i2c: E2 [07:40:59]MH_I2C_Read... [07:40:59]Read from MH i2c: E2 17 00 [07:40:59]MH_I2C_Read... [07:40:59]Read from MH i2c: E2 17 00 16 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FD [07:40:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:40:59]wFMCommunicate OK [07:40:59]CreateOFDProtocolMessage done [07:40:59]OFDSenderStorePacket 28820 [07:40:59]StoreOFDPacket docnum=28820 [07:40:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 30 F0 07 01 B1 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 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1B 00 00 00 F4 03 04 00 0D 37 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 94 70 00 00 35 04 06 00 F6 44 01 40 C3 5E FF FE 3B 0D 3D 6C 70 98 [07:40:59]CheckFolder [07:40:59]dirname=/storage/ofd_packets [07:40:59]CheckFolder done [07:40:59]ProducePacketName [07:40:59]name=ofd_packets/00028820 [07:40:59]NVStorageSaveData ofd_packets/00028820 [07:40:59]File name is /storage/ofd_packets/00028820 [07:40:59]Write 301 bytes [07:40:59]NVStorageSaveData done [07:40:59]OFDSenderStorePacket done [07:40:59]KKMCreateOFDPacket done [07:40:59]NVStorageSaveData kkm_last_timestamp [07:40:59]File name is /storage/kkm_last_timestamp [07:40:59]Write 4 bytes [07:40:59]NVStorageSaveData done [07:40:59]ExternCall_PrintAddStr [07:40:59]wPrintStart [07:40:59]Write to MH i2c: 01 00 00 17 1E 35 [07:40:59]Write i2c OK [07:40:59]MH_I2C_Read... [07:40:59]Read from MH i2c: 01 [07:40:59]MH_I2C_Read... [07:40:59]Read from MH i2c: 01 07 00 [07:40:59]MH_I2C_Read... [07:40:59]Read from MH i2c: 01 07 00 17 1E 00 00 00 00 00 FF 0F 4A [07:40:59]RasterBufferAndPrint [07:40:59]line Счет N : (1)347168 [07:40:59]line ИНН: 02508201610067 [07:40:59]line Контрольно-Кассовый Чек [07:40:59]line ПРОДАЖА [07:40:59]line ТРК (МРК, ГНК) : 43 [07:40:59]line Товар: 2710124500 [07:40:59]line Аи-95-К-5 [07:40:59]line 13.800 * 72.50 [07:40:59]line = 1000.50 [07:40:59]line НДС 12% НСП 1% [07:40:59]line > о реализуемом товаре [07:40:59]line ОКРУГЛЕНИЕ: -0.50 [07:40:59]line ИТОГО: 1000.00 [07:40:59]line Внесено: 1000.00 [07:40:59]line СДАЧА: 0.00 [07:40:59]line НСП 1% : 8.85 [07:40:59]line НДС 12% : 106.25 [07:40:59]line Наличными: 1000.00 [07:40:59]line Безнал.: 0.00 [07:40:59]line Место: АЗС № 108 "Партнер Нефть" [07:40:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:40:59]line СНО: Общий режим [07:40:59]line Чек 27 13.04.2024 07:41 [07:40:59]line Смена: 115 ФФД: 1.0 [07:40:59]line ЗНМ: 0300000027 [07:40:59]line РНМ: 0000138879044617 [07:40:59]line Версия ККМ: 001 [07:40:59]line ФМ: 0000000000963154 [07:40:59]line ФД: 28820 [07:40:59]line ФПД: 270771939230558 [07:40:59]line 1/tax-web-control/client/api/v1/ticket?date=20240413T074101&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28820&fm=270771939230558&tin=02508201610067®Number=0000138879044617&sum=100000 [07:41:00]OFD Sender: Processing packet 28820 [packets to send 8, broken 7] [07:41:00]ProducePacketName [07:41:00]name=ofd_packets/00028820 [07:41:00]OFD Sender: To server: pG, [07:41:00]CommunicateWithHost lk.salyk.kg:30040 [07:41:00]ConnectInit lk.salyk.kg [07:41:00]written 0, free lines is 4095 [07:41:00]Connected sock=10 [07:41: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 31 35 34 0F 01 00 00 30 F0 07 01 B1 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 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1B 00 00 00 F4 03 04 00 0D 37 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 94 70 00 00 35 04 06 00 F6 44 01 40 C3 5E FF FE 3B 0D 3D 6C 70 98 [07:41:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F3 09 47 00 B9 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 94 70 00 00 F4 03 04 00 B5 E1 19 66 B6 04 01 00 00 B0 06 DD A3 63 D5 13 C6 [07:41:00]CommunicateWithHost err = 0 [07:41:00]CheckOFDResponse [07:41:00]1017 (14) - 77093643461234 [07:41:00]1041 (16) - 0000000000963154 [07:41:00]1040 (4) - 28820 [07:41:00]1012 (4) - 13.04.2024 01:36 [07:41:00]1206 (1) - 0 [07:41:00]OFD Sender: Remove packet 28820 [07:41:00]ProducePacketName [07:41:00]name=ofd_packets/00028820 [07:41:00]NVStorageDeleteData [07:41:00]Write to MH i2c: 01 00 00 41 1E 5F [07:41:00]Write i2c OK [07:41:00]MH_I2C_Read... [07:41:00]Read from MH i2c: 01 [07:41:00]MH_I2C_Read... [07:41:00]Read from MH i2c: 01 07 00 [07:41:00]MH_I2C_Read... [07:41:00]Read from MH i2c: 01 07 00 41 1E 00 00 00 00 00 CB 0C 3D [07:41:00]RasterBufferAndPrint [07:41:00]line [07:41:00]line [07:41:00]line [07:41:00]line [07:41:00]line [07:41:00]written 0, free lines is 3281 [07:41:00]MH_Cut [07:41:00]Write to MH i2c: D1 01 00 48 1E 01 38 [07:41:00]Write i2c OK [07:41:00]MH_I2C_Read... [07:41:00]Read from MH i2c: D1 [07:41:00]MH_I2C_Read... [07:41:00]Read from MH i2c: D1 01 00 [07:41:00]MH_I2C_Read... [07:41:00]Read from MH i2c: D1 01 00 48 1E 00 37 [07:41:00]Write to MH i2c: 01 00 00 49 1E 67 [07:41:00]Write i2c OK [07:41:00]MH_I2C_Read... [07:41:00]OFD Sender: No OFD packet to send [07:41:01]*** Cut start [07:41:01]*** Partial cut [07:41:01]*** CUTSNS_PIN = 1 [07:41:01]*** CUTSNS_PIN = 0 [07:41:01]*** Brake cut motor [07:41:01]Read from MH i2c: 01 [07:41:01]MH_I2C_Read... [07:41:01]*** Stop cut motor [07:41:02]*** Cut end [07:41:02]Read from MH i2c: 01 07 00 [07:41:02]MH_I2C_Read... [07:41:02]Read from MH i2c: 01 07 00 49 1E 00 00 00 00 00 FF 0F 7C [07:41:02]process_action close_receipt done [07:41:02]requested_data is exist [07:41:02]produce_requested_data [07:41:02]requested_item fm.sn is exist - process it [07:41:02]wFMCommunicate request_size=4 [07:41:02]MH_SAM_APDU [07:41:02]CAPDU: 80 11 00 00 [07:41:02]Write to MH i2c: E2 08 00 4A 1E 80 11 00 00 00 00 00 00 E2 [07:41:02]Write i2c OK [07:41:02]MH_I2C_Read... [07:41:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:02]Read from MH i2c: E2 [07:41:02]MH_I2C_Read... [07:41:02]Read from MH i2c: E2 17 00 [07:41:02]MH_I2C_Read... [07:41:02]Read from MH i2c: E2 17 00 4A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 31 [07:41:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:41:02]wFMCommunicate OK [07:41:02]requested_item fd.num is exist - process it [07:41:02]SAM_PROTO_GetFieldsCounters [07:41:02]wFMCommunicate request_size=4 [07:41:02]MH_SAM_APDU [07:41:02]CAPDU: 80 13 00 00 [07:41:02]Write to MH i2c: E2 08 00 4B 1E 80 13 00 00 00 00 00 00 E5 [07:41:02]Write i2c OK [07:41:02]MH_I2C_Read... [07:41:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:41:02]Read from MH i2c: E2 [07:41:02]MH_I2C_Read... [07:41:02]Read from MH i2c: E2 62 00 [07:41:02]MH_I2C_Read... [07:41:02]Read from MH i2c: E2 62 00 4B 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 94 70 00 00 0E 04 04 00 73 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 EB [07:41: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 94 70 00 00 0E 04 04 00 73 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:41:02]wFMCommunicate OK [07:41:02]SAM_PROTO_GetFieldsCounters done [07:41:02]requested_item shift.num is exist - process it [07:41:02]requested_item shift.opened is exist - process it [07:41:02]req_shift_opened [07:41:02]FM_GetShiftState [07:41:02]SAM_PROTO_GetShiftState [07:41:02]wFMCommunicate request_size=4 [07:41:02]MH_SAM_APDU [07:41:02]CAPDU: 80 13 01 00 [07:41:02]Write to MH i2c: E2 08 00 4C 1E 80 13 01 00 00 00 00 00 E7 [07:41:02]Write i2c OK [07:41:02]MH_I2C_Read... [07:41:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:02]Read from MH i2c: E2 [07:41:02]MH_I2C_Read... [07:41:02]Read from MH i2c: E2 0E 00 [07:41:02]MH_I2C_Read... [07:41:02]Read from MH i2c: E2 0E 00 4C 1E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 00 [07:41:02]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:41:02]wFMCommunicate OK [07:41:02]SAM_PROTO_GetShiftState done [07:41:02]FM_GetShiftState done [07:41:02]req_shift_opened done [07:41:02]requested_item shift.open_date is exist - process it [07:41:02]req_shift_open_date [07:41:02]req_shift_open_date done [07:41:02]produce_requested_data done [07:41:02]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28820,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [07:41:02]process_action_free close_receipt [07:41:02]json_value_free [07:41:02]json_value_free done [07:41:02]process_json_proto returns [07:41:02]Send response to host [07:41:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28820,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [07:41:02]free response buf [07:41:02]execute_script done [07:41:02]execute_script returns [07:41:02]free content buf [07:41:02]Sock 9.Close socket [07:41:02]Sock 9.Thread stoped [07:41:05]OFD Sender: No OFD packet to send [07:41:10]OFD Sender: No OFD packet to send [07:41:15]OFD Sender: No OFD packet to send [07:41:20]OFD Sender: No OFD packet to send [07:41:25]OFD Sender: No OFD packet to send [07:41:30]OFD Sender: No OFD packet to send [07:41:35]OFD Sender: No OFD packet to send [07:41:40]OFD Sender: No OFD packet to send [07:41:45]OFD Sender: No OFD packet to send [07:41:50]OFD Sender: No OFD packet to send [07:41:55]OFD Sender: No OFD packet to send [07:42:00]OFD Sender: No OFD packet to send [07:42:05]OFD Sender: No OFD packet to send [07:42:10]OFD Sender: No OFD packet to send [07:42:15]OFD Sender: No OFD packet to send [07:42:20]OFD Sender: No OFD packet to send [07:42:25]OFD Sender: No OFD packet to send [07:42:30]OFD Sender: No OFD packet to send [07:42:35]OFD Sender: No OFD packet to send [07:42:40]accept exits with 7 [07:42:40]New connection [07:42:40]New thread 3066785124 created [07:42:40]Thread 3066928484 joined [07:42:40]Waiting for new connection... [07:42:40] Sock 7.Parse request [07:42:40]Sock 7.Check first char [07:42:40]Sock 7.First char is OK [07:42:40]request: POST /json_proto HTTP/1.0 [07:42:40]Method: POST [07:42:40]URL: /json_proto [07:42:40]Method is POST - this is cgi request [07:42:40]url: /json_proto [07:42:40]query_string will be loaded in cgi processing [07:42:40]execute_cgi json_proto POST (null) [07:42:40]execute_cgi path=json_proto method=POST [07:42:40]POST find Content-Length [07:42:40]Host: 172.17.33.3:8080 [07:42:40]Content-Length: 677 [07:42:40]Content-Type: application/json [07:42:40] [07:42:40]POST finish read [07:42:40]Found Content-Length = 677 [07:42:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 8.390, "sum" : 539.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 539.00, "total" : 539.00, "payments": [ { "type": 0, "sum" : 539.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:40]execute_script... [07:42: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)347169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 8.390, "sum" : 539.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 539.00, "total" : 539.00, "payments": [ { "type": 0, "sum" : 539.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:40]POST & json_proto [07:42:40]process_json_proto [07:42:40]json parsed OK: [07:42:40]protocol is kg_v1.0 [07:42:40]action value=close_receipt [07:42:40]process_action close_receipt [07:42:40]cmd_close_receipt [07:42:40]MH_GetDate [07:42:40]Write to MH i2c: F0 00 00 4D 1E 5A [07:42:40]Write i2c OK [07:42:40]MH_I2C_Read... [07:42:40]Read from MH i2c: F0 [07:42:40]MH_I2C_Read... [07:42:40]Read from MH i2c: F0 09 00 [07:42:40]MH_I2C_Read... [07:42:40]Read from MH i2c: F0 09 00 4D 1E 00 73 37 1A 66 23 5B 8F 65 FF [07:42:40]GetLastDocTimeStamp 1712994061 [07:42:40]current date 1712994163 [07:42:40]FM_GetShiftState [07:42:40]SAM_PROTO_GetShiftState [07:42:40]wFMCommunicate request_size=4 [07:42:40]MH_SAM_APDU [07:42:40]CAPDU: 80 13 01 00 [07:42:40]Write to MH i2c: E2 08 00 4E 1E 80 13 01 00 00 00 00 00 E9 [07:42:40]Write i2c OK [07:42:40]MH_I2C_Read... [07:42:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:40]Read from MH i2c: E2 [07:42:40]MH_I2C_Read... [07:42:40]Read from MH i2c: E2 0E 00 [07:42:40]MH_I2C_Read... [07:42:40]Read from MH i2c: E2 0E 00 4E 1E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 02 [07:42:40]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:42:40]wFMCommunicate OK [07:42:40]SAM_PROTO_GetShiftState done [07:42:40]FM_GetShiftState done [07:42:40]opened in 1712967615 [07:42:40]opened+sec_in_day 1713054015 [07:42:40]quantity*price = 53947 [07:42:40]sum+1 = 53949 [07:42:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 539.00 Внесено: 539.00 СДАЧА: 0.00 НСП 1% : 4.77 НДС 12% : 57.29 Наличными: 539.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 28 13.04.2024 07:42 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28821 ФПД: 1276286062642 1/tax-web-control/client/api/v1/ticket?date=20240413T074243&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28821&fm=1276286062642&tin=02508201610067®Number=0000138879044617&sum=53900 [07:42:41]StoreToDocumentArchive [07:42:41]shift 115 fd 28821 [07:42:41]save to /storage/0115/doc_00028821 [07:42:41]save last doc name /storage/0115/doc_00028821 to /storage/kkm_last_doc_name [07:42:41]save OK [07:42:41]Clear old archive folders... [07:42:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:42:41]tlvbuf is 011A3A80 [07:42:41]SAM_PROTO_ClearQueue [07:42:41]wFMCommunicate request_size=4 [07:42:41]MH_SAM_APDU [07:42:41]CAPDU: 80 09 00 00 [07:42:41]Write to MH i2c: E2 08 00 5B 1E 80 09 00 00 00 00 00 00 EB [07:42:41]Write i2c OK [07:42:41]MH_I2C_Read... [07:42:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:42:41]Read from MH i2c: E2 [07:42:41]MH_I2C_Read... [07:42:41]Read from MH i2c: E2 03 00 [07:42:41]MH_I2C_Read... [07:42:41]Read from MH i2c: E2 03 00 5B 1E 00 90 00 ED [07:42:41]RAPDU: 90 00 [07:42:41]wFMCommunicate OK [07:42:41]SAM_PROTO_ClearQueue done [07:42:41]KKMCreateOFDPacket [07:42:41]OFDProtocolAddRootSTLVToBuf [07:42:41]FM_MakeSignedData [07:42:41]FM_MakeSignedData [07:42:41]SAM_PROTO_SignData [07:42:41]wFMCommunicate request_size=4 [07:42:41]MH_SAM_APDU [07:42:41]CAPDU: 80 0D 01 02 [07:42:41]Write to MH i2c: E2 08 00 5C 1E 80 0D 01 02 00 00 00 00 F3 [07:42:41]Write i2c OK [07:42:41]MH_I2C_Read... [07:42:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:42:41]Read from MH i2c: E2 [07:42:41]MH_I2C_Read... [07:42:41]Read from MH i2c: E2 03 00 [07:42:41]MH_I2C_Read... [07:42:41]Read from MH i2c: E2 03 00 5C 1E 00 90 00 EE [07:42:41]RAPDU: 90 00 [07:42:41]wFMCommunicate OK [07:42:41]wFMCommunicate request_size=255 [07:42:41]MH_SAM_APDU [07:42: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 C6 20 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 BC D2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 16 00 00 00 00 07 04 06 00 8C D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 73 37 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 70 00 00 35 04 06 00 01 [07:42:41]Write to MH i2c: E2 02 01 5D 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 C6 20 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 BC D2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 16 00 00 00 00 07 04 06 00 8C D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 73 37 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 70 00 00 35 04 06 00 01 00 00 95 [07:42:41]Write i2c OK [07:42:41]MH_I2C_Read... [07:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:41]Read from MH i2c: E2 [07:42:41]MH_I2C_Read... [07:42:41]Read from MH i2c: E2 03 00 [07:42:41]MH_I2C_Read... [07:42:41]Read from MH i2c: E2 03 00 5D 1E 00 90 00 EF [07:42:41]RAPDU: 90 00 [07:42:41]wFMCommunicate OK [07:42:41]wFMCommunicate request_size=10 [07:42:41]MH_SAM_APDU [07:42:41]CAPDU: 80 0D 02 02 05 29 28 93 D0 32 [07:42:41]Write to MH i2c: E2 0D 00 5E 1E 80 0D 02 02 05 00 29 28 93 D0 32 00 00 E6 [07:42:41]Write i2c OK [07:42:41]MH_I2C_Read... [07:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:41]Read from MH i2c: E2 [07:42:41]MH_I2C_Read... [07:42:41]Read from MH i2c: E2 03 00 [07:42:41]MH_I2C_Read... [07:42:41]Read from MH i2c: E2 03 00 5E 1E 00 90 00 F0 [07:42:41]RAPDU: 90 00 [07:42:41]wFMCommunicate OK [07:42:41]wFMCommunicate request_size=4 [07:42:41]MH_SAM_APDU [07:42:41]CAPDU: 80 0D 03 02 [07:42:41]Write to MH i2c: E2 08 00 5F 1E 80 0D 03 02 00 00 00 00 F8 [07:42:41]Write i2c OK [07:42:41]MH_I2C_Read... [07:42:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:42:41]Read from MH i2c: E2 [07:42:41]MH_I2C_Read... [07:42:41]Read from MH i2c: E2 0B 00 [07:42:41]MH_I2C_Read... [07:42:41]Read from MH i2c: E2 0B 00 5F 1E 00 8F 82 D7 FD B5 8C 5A 7F 90 00 F8 [07:42:41]RAPDU: 8F 82 D7 FD B5 8C 5A 7F 90 00 [07:42:41]wFMCommunicate OK [07:42:41]SAM_PROTO_SignData done [07:42:41]FM_MakeSignedData done [07:42:41]CreateOFDProtocolMessage [07:42:41]wFMCommunicate request_size=4 [07:42:41]MH_SAM_APDU [07:42:41]CAPDU: 80 11 00 00 [07:42:41]Write to MH i2c: E2 08 00 60 1E 80 11 00 00 00 00 00 00 F8 [07:42:41]Write i2c OK [07:42:41]MH_I2C_Read... [07:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:42]Read from MH i2c: E2 [07:42:42]MH_I2C_Read... [07:42:42]Read from MH i2c: E2 17 00 [07:42:42]MH_I2C_Read... [07:42:42]Read from MH i2c: E2 17 00 60 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 47 [07:42:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:42:42]wFMCommunicate OK [07:42:42]CreateOFDProtocolMessage done [07:42:42]OFDSenderStorePacket 28821 [07:42:42]StoreOFDPacket docnum=28821 [07:42:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 5F E4 07 01 61 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C6 20 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 BC D2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 16 00 00 00 00 07 04 06 00 8C D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 73 37 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 70 00 00 35 04 06 00 01 29 28 93 D0 32 8F 82 D7 FD B5 8C 5A 7F [07:42:42]CheckFolder [07:42:42]dirname=/storage/ofd_packets [07:42:42]CheckFolder done [07:42:42]ProducePacketName [07:42:42]name=ofd_packets/00028821 [07:42:42]NVStorageSaveData ofd_packets/00028821 [07:42:42]File name is /storage/ofd_packets/00028821 [07:42:42]Write 301 bytes [07:42:42]NVStorageSaveData done [07:42:42]OFDSenderStorePacket done [07:42:42]KKMCreateOFDPacket done [07:42:42]NVStorageSaveData kkm_last_timestamp [07:42:42]File name is /storage/kkm_last_timestamp [07:42:42]Write 4 bytes [07:42:42]NVStorageSaveData done [07:42:42]ExternCall_PrintAddStr [07:42:42]wPrintStart [07:42:42]Write to MH i2c: 01 00 00 61 1E 7F [07:42:42]Write i2c OK [07:42:42]MH_I2C_Read... [07:42:42]Read from MH i2c: 01 [07:42:42]MH_I2C_Read... [07:42:42]Read from MH i2c: 01 07 00 [07:42:42]MH_I2C_Read... [07:42:42]Read from MH i2c: 01 07 00 61 1E 00 00 00 00 00 FF 0F 94 [07:42:42]RasterBufferAndPrint [07:42:42]line Счет N : (1)347169 [07:42:42]line ИНН: 02508201610067 [07:42:42]line Контрольно-Кассовый Чек [07:42:42]line ПРОДАЖА [07:42:42]line ТРК (МРК, ГНК) : 23 [07:42:42]line Товар: 2710124130 [07:42:42]line Аи-92-К-5 [07:42:42]line 8.390 * 64.30 [07:42:42]line = 539.48 [07:42:42]line НДС 12% НСП 1% [07:42:42]line > о реализуемом товаре [07:42:42]line ОКРУГЛЕНИЕ: -0.48 [07:42:42]line ИТОГО: 539.00 [07:42:42]line Внесено: 539.00 [07:42:42]line СДАЧА: 0.00 [07:42:42]line НСП 1% : 4.77 [07:42:42]line НДС 12% : 57.29 [07:42:42]line Наличными: 539.00 [07:42:42]line Безнал.: 0.00 [07:42:42]line Место: АЗС № 108 "Партнер Нефть" [07:42:42]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:42:42]line СНО: Общий режим [07:42:42]line Чек 28 13.04.2024 07:42 [07:42:42]line Смена: 115 ФФД: 1.0 [07:42:42]line ЗНМ: 0300000027 [07:42:42]line РНМ: 0000138879044617 [07:42:42]line Версия ККМ: 001 [07:42:42]line ФМ: 0000000000963154 [07:42:42]line ФД: 28821 [07:42:42]line ФПД: 1276286062642 [07:42:42]line 1/tax-web-control/client/api/v1/ticket?date=20240413T074243&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28821&fm=1276286062642&tin=02508201610067®Number=0000138879044617&sum=53900 [07:42:42]OFD Sender: Processing packet 28821 [packets to send 8, broken 7] [07:42:42]ProducePacketName [07:42:42]name=ofd_packets/00028821 [07:42:42]OFD Sender: To server: pG, [07:42:42]CommunicateWithHost lk.salyk.kg:30040 [07:42:42]ConnectInit lk.salyk.kg [07:42:42]written 0, free lines is 4095 [07:42:42]Connected sock=10 [07:42: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 31 35 34 0F 01 00 00 5F E4 07 01 61 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C6 20 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 BC D2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 16 00 00 00 00 07 04 06 00 8C D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 73 37 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 70 00 00 35 04 06 00 01 29 28 93 D0 32 8F 82 D7 FD B5 8C 5A 7F [07:42:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0E FD 47 00 98 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 31 35 34 10 04 04 00 95 70 00 00 F4 03 04 00 1B E2 19 66 B6 04 01 00 00 68 13 62 37 5B D1 CE FA [07:42:42]CommunicateWithHost err = 0 [07:42:42]CheckOFDResponse [07:42:42]1017 (14) - 77093643461234 [07:42:42]1041 (16) - 0000000000963154 [07:42:42]1040 (4) - 28821 [07:42:42]1012 (4) - 13.04.2024 01:38 [07:42:42]1206 (1) - 0 [07:42:42]OFD Sender: Remove packet 28821 [07:42:42]ProducePacketName [07:42:42]name=ofd_packets/00028821 [07:42:42]NVStorageDeleteData [07:42:42]Write to MH i2c: 01 00 00 8B 1E A9 [07:42:42]Write i2c OK [07:42:42]MH_I2C_Read... [07:42:42]Read from MH i2c: 01 [07:42:42]MH_I2C_Read... [07:42:42]Read from MH i2c: 01 07 00 [07:42:42]MH_I2C_Read... [07:42:42]Read from MH i2c: 01 07 00 8B 1E 00 00 00 00 00 CA 0C 86 [07:42:42]RasterBufferAndPrint [07:42:42]line [07:42:42]line [07:42:42]line [07:42:42]line [07:42:42]line [07:42:42]written 0, free lines is 3279 [07:42:42]MH_Cut [07:42:42]Write to MH i2c: D1 01 00 92 1E 01 82 [07:42:42]Write i2c OK [07:42:42]MH_I2C_Read... [07:42:42]Read from MH i2c: D1 [07:42:42]MH_I2C_Read... [07:42:42]Read from MH i2c: D1 01 00 [07:42:42]MH_I2C_Read... [07:42:42]Read from MH i2c: D1 01 00 92 1E 00 81 [07:42:42]Write to MH i2c: 01 00 00 93 1E B1 [07:42:42]Write i2c OK [07:42:42]MH_I2C_Read... [07:42:43]OFD Sender: No OFD packet to send [07:42:43]*** Cut start [07:42:43]*** Partial cut [07:42:43]*** CUTSNS_PIN = 1 [07:42:43]*** CUTSNS_PIN = 0 [07:42:43]*** Brake cut motor [07:42:44]Read from MH i2c: 01 [07:42:44]MH_I2C_Read... [07:42:44]*** Stop cut motor [07:42:44]*** Cut end [07:42:44]Read from MH i2c: 01 07 00 [07:42:44]MH_I2C_Read... [07:42:44]Read from MH i2c: 01 07 00 93 1E 00 00 00 00 00 FF 0F C6 [07:42:44]process_action close_receipt done [07:42:44]requested_data is exist [07:42:44]produce_requested_data [07:42:44]requested_item fm.sn is exist - process it [07:42:44]wFMCommunicate request_size=4 [07:42:44]MH_SAM_APDU [07:42:44]CAPDU: 80 11 00 00 [07:42:44]Write to MH i2c: E2 08 00 94 1E 80 11 00 00 00 00 00 00 2C [07:42:44]Write i2c OK [07:42:44]MH_I2C_Read... [07:42:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:44]Read from MH i2c: E2 [07:42:44]MH_I2C_Read... [07:42:44]Read from MH i2c: E2 17 00 [07:42:44]MH_I2C_Read... [07:42:44]Read from MH i2c: E2 17 00 94 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7B [07:42:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:42:44]wFMCommunicate OK [07:42:44]requested_item fd.num is exist - process it [07:42:44]SAM_PROTO_GetFieldsCounters [07:42:44]wFMCommunicate request_size=4 [07:42:44]MH_SAM_APDU [07:42:44]CAPDU: 80 13 00 00 [07:42:44]Write to MH i2c: E2 08 00 95 1E 80 13 00 00 00 00 00 00 2F [07:42:44]Write i2c OK [07:42:44]MH_I2C_Read... [07:42:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:42:44]Read from MH i2c: E2 [07:42:44]MH_I2C_Read... [07:42:44]Read from MH i2c: E2 62 00 [07:42:44]MH_I2C_Read... [07:42:44]Read from MH i2c: E2 62 00 95 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 95 70 00 00 0E 04 04 00 73 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 39 [07:42: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 95 70 00 00 0E 04 04 00 73 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:42:44]wFMCommunicate OK [07:42:44]SAM_PROTO_GetFieldsCounters done [07:42:44]requested_item shift.num is exist - process it [07:42:44]requested_item shift.opened is exist - process it [07:42:44]req_shift_opened [07:42:44]FM_GetShiftState [07:42:44]SAM_PROTO_GetShiftState [07:42:44]wFMCommunicate request_size=4 [07:42:44]MH_SAM_APDU [07:42:44]CAPDU: 80 13 01 00 [07:42:44]Write to MH i2c: E2 08 00 96 1E 80 13 01 00 00 00 00 00 31 [07:42:44]Write i2c OK [07:42:44]MH_I2C_Read... [07:42:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:44]Read from MH i2c: E2 [07:42:44]MH_I2C_Read... [07:42:44]Read from MH i2c: E2 0E 00 [07:42:44]MH_I2C_Read... [07:42:44]Read from MH i2c: E2 0E 00 96 1E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 4A [07:42:44]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:42:44]wFMCommunicate OK [07:42:44]SAM_PROTO_GetShiftState done [07:42:44]FM_GetShiftState done [07:42:44]req_shift_opened done [07:42:44]requested_item shift.open_date is exist - process it [07:42:44]req_shift_open_date [07:42:44]req_shift_open_date done [07:42:44]produce_requested_data done [07:42:44]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28821,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [07:42:44]process_action_free close_receipt [07:42:44]json_value_free [07:42:44]json_value_free done [07:42:44]process_json_proto returns [07:42:44]Send response to host [07:42:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28821,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [07:42:44]free response buf [07:42:44]execute_script done [07:42:44]execute_script returns [07:42:44]free content buf [07:42:44]Sock 7.Close socket [07:42:44]Sock 7.Thread stoped [07:42:48]OFD Sender: No OFD packet to send [07:42:53]OFD Sender: No OFD packet to send [07:42:58]OFD Sender: No OFD packet to send [07:43:03]OFD Sender: No OFD packet to send [07:43:08]OFD Sender: No OFD packet to send [07:43:13]OFD Sender: No OFD packet to send [07:43:18]OFD Sender: No OFD packet to send [07:43:23]OFD Sender: No OFD packet to send [07:43:28]OFD Sender: No OFD packet to send [07:43:33]OFD Sender: No OFD packet to send [07:43:38]OFD Sender: No OFD packet to send [07:43:43]OFD Sender: No OFD packet to send [07:43:48]OFD Sender: No OFD packet to send [07:43:53]OFD Sender: No OFD packet to send [07:43:58]OFD Sender: No OFD packet to send [07:44:03]OFD Sender: No OFD packet to send [07:44:08]OFD Sender: No OFD packet to send [07:44:13]OFD Sender: No OFD packet to send [07:44:18]OFD Sender: No OFD packet to send [07:44:23]OFD Sender: No OFD packet to send [07:44:28]OFD Sender: No OFD packet to send [07:44:33]OFD Sender: No OFD packet to send [07:44:38]OFD Sender: No OFD packet to send [07:44:43]OFD Sender: No OFD packet to send [07:44:48]OFD Sender: No OFD packet to send [07:44:53]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:09]accept exits with 9 [07:48:09]New connection [07:48:09]New thread 3066928484 created [07:48:09]Thread 3066785124 joined [07:48:09]Waiting for new connection... [07:48:09] Sock 9.Parse request [07:48:09]Sock 9.Check first char [07:48:09]Sock 9.First char is OK [07:48:09]request: POST /json_proto HTTP/1.0 [07:48:09]Method: POST [07:48:09]URL: /json_proto [07:48:09]Method is POST - this is cgi request [07:48:09]url: /json_proto [07:48:09]query_string will be loaded in cgi processing [07:48:09]execute_cgi json_proto POST (null) [07:48:09]execute_cgi path=json_proto method=POST [07:48:09]POST find Content-Length [07:48:09]Host: 172.17.33.3:8080 [07:48:09]Content-Length: 670 [07:48:09]Content-Type: application/json [07:48:09] [07:48:09]POST finish read [07:48:09]Found Content-Length = 670 [07:48:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:09]execute_script... [07:48: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)347170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:09]POST & json_proto [07:48:09]process_json_proto [07:48:09]json parsed OK: [07:48:09]protocol is kg_v1.0 [07:48:09]action value=close_receipt [07:48:09]process_action close_receipt [07:48:09]cmd_close_receipt [07:48:09]MH_GetDate [07:48:09]Write to MH i2c: F0 00 00 97 1E A4 [07:48:09]Write i2c OK [07:48:09]MH_I2C_Read... [07:48:09]Read from MH i2c: F0 [07:48:09]MH_I2C_Read... [07:48:09]Read from MH i2c: F0 09 00 [07:48:09]MH_I2C_Read... [07:48:09]Read from MH i2c: F0 09 00 97 1E 00 BD 38 1A 66 23 5B 8F 65 94 [07:48:09]GetLastDocTimeStamp 1712994163 [07:48:09]current date 1712994493 [07:48:09]FM_GetShiftState [07:48:09]SAM_PROTO_GetShiftState [07:48:09]wFMCommunicate request_size=4 [07:48:09]MH_SAM_APDU [07:48:09]CAPDU: 80 13 01 00 [07:48:09]Write to MH i2c: E2 08 00 98 1E 80 13 01 00 00 00 00 00 33 [07:48:09]Write i2c OK [07:48:09]MH_I2C_Read... [07:48:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:09]Read from MH i2c: E2 [07:48:09]MH_I2C_Read... [07:48:09]Read from MH i2c: E2 0E 00 [07:48:09]MH_I2C_Read... [07:48:09]Read from MH i2c: E2 0E 00 98 1E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 4C [07:48:09]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:48:09]wFMCommunicate OK [07:48:09]SAM_PROTO_GetShiftState done [07:48:09]FM_GetShiftState done [07:48:09]opened in 1712967615 [07:48:09]opened+sec_in_day 1713054015 [07:48:09]quantity*price = 50019 [07:48:09]sum+1 = 50021 [07:48:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 29 13.04.2024 07:48 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28822 ФПД: 156026936155665 1/tax-web-control/client/api/v1/ticket?date=20240413T074813&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28822&fm=156026936155665&tin=02508201610067®Number=0000138879044617&sum=50000 [07:48:10]StoreToDocumentArchive [07:48:10]shift 115 fd 28822 [07:48:10]save to /storage/0115/doc_00028822 [07:48:10]save last doc name /storage/0115/doc_00028822 to /storage/kkm_last_doc_name [07:48:10]save OK [07:48:10]Clear old archive folders... [07:48:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:48:10]tlvbuf is 01222D90 [07:48:10]SAM_PROTO_ClearQueue [07:48:10]wFMCommunicate request_size=4 [07:48:10]MH_SAM_APDU [07:48:10]CAPDU: 80 09 00 00 [07:48:10]Write to MH i2c: E2 08 00 A5 1E 80 09 00 00 00 00 00 00 35 [07:48:10]Write i2c OK [07:48:10]MH_I2C_Read... [07:48:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:48:10]Read from MH i2c: E2 [07:48:10]MH_I2C_Read... [07:48:10]Read from MH i2c: E2 03 00 [07:48:10]MH_I2C_Read... [07:48:10]Read from MH i2c: E2 03 00 A5 1E 00 90 00 37 [07:48:10]RAPDU: 90 00 [07:48:10]wFMCommunicate OK [07:48:10]SAM_PROTO_ClearQueue done [07:48:10]KKMCreateOFDPacket [07:48:10]OFDProtocolAddRootSTLVToBuf [07:48:10]FM_MakeSignedData [07:48:10]FM_MakeSignedData [07:48:10]SAM_PROTO_SignData [07:48:10]wFMCommunicate request_size=4 [07:48:10]MH_SAM_APDU [07:48:10]CAPDU: 80 0D 01 02 [07:48:10]Write to MH i2c: E2 08 00 A6 1E 80 0D 01 02 00 00 00 00 3D [07:48:10]Write i2c OK [07:48:10]MH_I2C_Read... [07:48:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:48:10]Read from MH i2c: E2 [07:48:10]MH_I2C_Read... [07:48:10]Read from MH i2c: E2 03 00 [07:48:10]MH_I2C_Read... [07:48:10]Read from MH i2c: E2 03 00 A6 1E 00 90 00 38 [07:48:10]RAPDU: 90 00 [07:48:10]wFMCommunicate OK [07:48:10]wFMCommunicate request_size=255 [07:48:10]MH_SAM_APDU [07:48:10]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1D 00 00 00 F4 03 04 00 BD 38 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 96 70 00 00 35 04 06 00 [07:48:10]Write to MH i2c: E2 02 01 A7 1E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1D 00 00 00 F4 03 04 00 BD 38 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 96 70 00 00 35 04 06 00 00 00 9A [07:48:10]Write i2c OK [07:48:10]MH_I2C_Read... [07:48:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:11]Read from MH i2c: E2 [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: E2 03 00 [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: E2 03 00 A7 1E 00 90 00 39 [07:48:11]RAPDU: 90 00 [07:48:11]wFMCommunicate OK [07:48:11]wFMCommunicate request_size=11 [07:48:11]MH_SAM_APDU [07:48:11]CAPDU: 80 0D 02 02 06 8D E7 DA 1A DE 11 [07:48:11]Write to MH i2c: E2 0E 00 A8 1E 80 0D 02 02 06 00 8D E7 DA 1A DE 11 00 00 A3 [07:48:11]Write i2c OK [07:48:11]MH_I2C_Read... [07:48:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:11]Read from MH i2c: E2 [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: E2 03 00 [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: E2 03 00 A8 1E 00 90 00 3A [07:48:11]RAPDU: 90 00 [07:48:11]wFMCommunicate OK [07:48:11]wFMCommunicate request_size=4 [07:48:11]MH_SAM_APDU [07:48:11]CAPDU: 80 0D 03 02 [07:48:11]Write to MH i2c: E2 08 00 A9 1E 80 0D 03 02 00 00 00 00 42 [07:48:11]Write i2c OK [07:48:11]MH_I2C_Read... [07:48:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:48:11]Read from MH i2c: E2 [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: E2 0B 00 [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: E2 0B 00 A9 1E 00 96 7C E1 0E D7 BB 81 F4 90 00 4B [07:48:11]RAPDU: 96 7C E1 0E D7 BB 81 F4 90 00 [07:48:11]wFMCommunicate OK [07:48:11]SAM_PROTO_SignData done [07:48:11]FM_MakeSignedData done [07:48:11]CreateOFDProtocolMessage [07:48:11]wFMCommunicate request_size=4 [07:48:11]MH_SAM_APDU [07:48:11]CAPDU: 80 11 00 00 [07:48:11]Write to MH i2c: E2 08 00 AA 1E 80 11 00 00 00 00 00 00 42 [07:48:11]Write i2c OK [07:48:11]MH_I2C_Read... [07:48:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:11]Read from MH i2c: E2 [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: E2 17 00 [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: E2 17 00 AA 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 91 [07:48:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:48:11]wFMCommunicate OK [07:48:11]CreateOFDProtocolMessage done [07:48:11]OFDSenderStorePacket 28822 [07:48:11]StoreOFDPacket docnum=28822 [07:48:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 14 F1 08 01 14 1C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1D 00 00 00 F4 03 04 00 BD 38 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 96 70 00 00 35 04 06 00 8D E7 DA 1A DE 11 96 7C E1 0E D7 BB 81 F4 [07:48:11]CheckFolder [07:48:11]dirname=/storage/ofd_packets [07:48:11]CheckFolder done [07:48:11]ProducePacketName [07:48:11]name=ofd_packets/00028822 [07:48:11]NVStorageSaveData ofd_packets/00028822 [07:48:11]File name is /storage/ofd_packets/00028822 [07:48:11]Write 302 bytes [07:48:11]NVStorageSaveData done [07:48:11]OFDSenderStorePacket done [07:48:11]KKMCreateOFDPacket done [07:48:11]NVStorageSaveData kkm_last_timestamp [07:48:11]File name is /storage/kkm_last_timestamp [07:48:11]Write 4 bytes [07:48:11]NVStorageSaveData done [07:48:11]ExternCall_PrintAddStr [07:48:11]wPrintStart [07:48:11]Write to MH i2c: 01 00 00 AB 1E C9 [07:48:11]Write i2c OK [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: 01 [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: 01 07 00 [07:48:11]MH_I2C_Read... [07:48:11]Read from MH i2c: 01 07 00 AB 1E 00 00 00 00 00 FF 0F DE [07:48:11]RasterBufferAndPrint [07:48:11]line Счет N : (1)347170 [07:48:11]line ИНН: 02508201610067 [07:48:11]line Контрольно-Кассовый Чек [07:48:11]line ПРОДАЖА [07:48:11]line ТРК (МРК, ГНК) : 31 [07:48:11]line Товар: 2710124130 [07:48:11]line SUPER-92-К-5 [07:48:11]line 7.660 * 65.30 [07:48:11]line = 500.20 [07:48:11]line НДС 12% НСП 1% [07:48:11]line > о реализуемом товаре [07:48:11]line ОКРУГЛЕНИЕ: -0.20 [07:48:11]line ИТОГО: 500.00 [07:48:11]line Внесено: 500.00 [07:48:11]line СДАЧА: 0.00 [07:48:11]line НСП 1% : 4.43 [07:48:11]line НДС 12% : 53.12 [07:48:11]line Наличными: 500.00 [07:48:11]line Безнал.: 0.00 [07:48:11]line Место: АЗС № 108 "Партнер Нефть" [07:48:11]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:48:11]line СНО: Общий режим [07:48:11]line Чек 29 13.04.2024 07:48 [07:48:11]line Смена: 115 ФФД: 1.0 [07:48:11]line ЗНМ: 0300000027 [07:48:11]line РНМ: 0000138879044617 [07:48:11]line Версия ККМ: 001 [07:48:11]line ФМ: 0000000000963154 [07:48:11]line ФД: 28822 [07:48:11]line ФПД: 156026936155665 [07:48:11]line 1/tax-web-control/client/api/v1/ticket?date=20240413T074813&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28822&fm=156026936155665&tin=02508201610067®Number=0000138879044617&sum=50000 [07:48:11]OFD Sender: Processing packet 28822 [packets to send 8, broken 7] [07:48:11]ProducePacketName [07:48:11]name=ofd_packets/00028822 [07:48:11]OFD Sender: To server: pG, [07:48:11]CommunicateWithHost lk.salyk.kg:30040 [07:48:11]ConnectInit lk.salyk.kg [07:48:11]written 0, free lines is 4095 [07:48:11]Connected sock=10 [07:48: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 31 35 34 10 01 00 00 14 F1 08 01 14 1C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1D 00 00 00 F4 03 04 00 BD 38 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 96 70 00 00 35 04 06 00 8D E7 DA 1A DE 11 96 7C E1 0E D7 BB 81 F4 [07:48:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2D 03 47 00 D6 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 31 35 34 10 04 04 00 96 70 00 00 F4 03 04 00 64 E3 19 66 B6 04 01 00 00 48 9A 82 EC 5F 7B F0 9D [07:48:11]CommunicateWithHost err = 0 [07:48:11]CheckOFDResponse [07:48:11]1017 (14) - 77093643461234 [07:48:11]1041 (16) - 0000000000963154 [07:48:11]1040 (4) - 28822 [07:48:11]1012 (4) - 13.04.2024 01:44 [07:48:11]1206 (1) - 0 [07:48:11]OFD Sender: Remove packet 28822 [07:48:11]ProducePacketName [07:48:11]name=ofd_packets/00028822 [07:48:11]NVStorageDeleteData [07:48:12]Write to MH i2c: 01 00 00 D5 1E F3 [07:48:12]Write i2c OK [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: 01 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: 01 07 00 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: 01 07 00 D5 1E 00 00 00 00 00 CC 0C D2 [07:48:12]RasterBufferAndPrint [07:48:12]line [07:48:12]line [07:48:12]line [07:48:12]line [07:48:12]line [07:48:12]written 0, free lines is 3282 [07:48:12]MH_Cut [07:48:12]Write to MH i2c: D1 01 00 DC 1E 01 CC [07:48:12]Write i2c OK [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: D1 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: D1 01 00 [07:48:12]MH_I2C_Read... [07:48:12]Read from MH i2c: D1 01 00 DC 1E 00 CB [07:48:12]Write to MH i2c: 01 00 00 DD 1E FB [07:48:12]Write i2c OK [07:48:12]MH_I2C_Read... [07:48:12]OFD Sender: No OFD packet to send [07:48:12]*** Cut start [07:48:12]*** Partial cut [07:48:12]*** CUTSNS_PIN = 1 [07:48:12]*** CUTSNS_PIN = 0 [07:48:13]*** Brake cut motor [07:48:13]Read from MH i2c: 01 [07:48:13]MH_I2C_Read... [07:48:13]*** Stop cut motor [07:48:13]*** Cut end [07:48:13]Read from MH i2c: 01 07 00 [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: 01 07 00 DD 1E 00 00 00 00 00 FF 0F 10 [07:48:13]process_action close_receipt done [07:48:13]requested_data is exist [07:48:13]produce_requested_data [07:48:13]requested_item fm.sn is exist - process it [07:48:13]wFMCommunicate request_size=4 [07:48:13]MH_SAM_APDU [07:48:13]CAPDU: 80 11 00 00 [07:48:13]Write to MH i2c: E2 08 00 DE 1E 80 11 00 00 00 00 00 00 76 [07:48:13]Write i2c OK [07:48:13]MH_I2C_Read... [07:48:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:13]Read from MH i2c: E2 [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: E2 17 00 [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: E2 17 00 DE 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C5 [07:48:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:48:13]wFMCommunicate OK [07:48:13]requested_item fd.num is exist - process it [07:48:13]SAM_PROTO_GetFieldsCounters [07:48:13]wFMCommunicate request_size=4 [07:48:13]MH_SAM_APDU [07:48:13]CAPDU: 80 13 00 00 [07:48:13]Write to MH i2c: E2 08 00 DF 1E 80 13 00 00 00 00 00 00 79 [07:48:13]Write i2c OK [07:48:13]MH_I2C_Read... [07:48:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:48:13]Read from MH i2c: E2 [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: E2 62 00 [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: E2 62 00 DF 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 96 70 00 00 0E 04 04 00 73 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 87 [07:48: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 96 70 00 00 0E 04 04 00 73 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:13]wFMCommunicate OK [07:48:13]SAM_PROTO_GetFieldsCounters done [07:48:13]requested_item shift.num is exist - process it [07:48:13]requested_item shift.opened is exist - process it [07:48:13]req_shift_opened [07:48:13]FM_GetShiftState [07:48:13]SAM_PROTO_GetShiftState [07:48:13]wFMCommunicate request_size=4 [07:48:13]MH_SAM_APDU [07:48:13]CAPDU: 80 13 01 00 [07:48:13]Write to MH i2c: E2 08 00 E0 1E 80 13 01 00 00 00 00 00 7B [07:48:13]Write i2c OK [07:48:13]MH_I2C_Read... [07:48:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:13]Read from MH i2c: E2 [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: E2 0E 00 [07:48:13]MH_I2C_Read... [07:48:13]Read from MH i2c: E2 0E 00 E0 1E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 94 [07:48:13]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:48:13]wFMCommunicate OK [07:48:13]SAM_PROTO_GetShiftState done [07:48:13]FM_GetShiftState done [07:48:13]req_shift_opened done [07:48:13]requested_item shift.open_date is exist - process it [07:48:13]req_shift_open_date [07:48:13]req_shift_open_date done [07:48:13]produce_requested_data done [07:48:13]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28822,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [07:48:13]process_action_free close_receipt [07:48:13]json_value_free [07:48:13]json_value_free done [07:48:13]process_json_proto returns [07:48:13]Send response to host [07:48:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28822,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [07:48:13]free response buf [07:48:13]execute_script done [07:48:13]execute_script returns [07:48:13]free content buf [07:48:13]Sock 9.Close socket [07:48:13]Sock 9.Thread stoped [07:48:17]OFD Sender: No OFD packet to send [07:48:22]OFD Sender: No OFD packet to send [07:48:27]OFD Sender: No OFD packet to send [07:48:32]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]OFD Sender: No OFD packet to send [07:48:52]OFD Sender: No OFD packet to send [07:48:57]OFD Sender: No OFD packet to send [07:49:02]OFD Sender: No OFD packet to send [07:49:07]OFD Sender: No OFD packet to send [07:49:12]OFD Sender: No OFD packet to send [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:03]accept exits with 7 [07:50:03]New connection [07:50:03]New thread 3066785124 created [07:50:03]Thread 3066928484 joined [07:50:03]Waiting for new connection... [07:50:03] Sock 7.Parse request [07:50:03]Sock 7.Check first char [07:50:03]Sock 7.First char is OK [07:50:03]request: POST /json_proto HTTP/1.0 [07:50:03]Method: POST [07:50:03]URL: /json_proto [07:50:03]Method is POST - this is cgi request [07:50:03]url: /json_proto [07:50:03]query_string will be loaded in cgi processing [07:50:03]execute_cgi json_proto POST (null) [07:50:03]execute_cgi path=json_proto method=POST [07:50:03]POST find Content-Length [07:50:03]Host: 172.17.33.3:8080 [07:50:03]Content-Length: 682 [07:50:03]Content-Type: application/json [07:50:03] [07:50:03]POST finish read [07:50:03]Found Content-Length = 682 [07:50:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 54.440, "sum" : 3500.49, "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" ] } } [07:50:03]execute_script... [07:50: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)347171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 54.440, "sum" : 3500.49, "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" ] } } [07:50:03]POST & json_proto [07:50:03]process_json_proto [07:50:03]json parsed OK: [07:50:03]protocol is kg_v1.0 [07:50:03]action value=close_receipt [07:50:03]process_action close_receipt [07:50:03]cmd_close_receipt [07:50:03]MH_GetDate [07:50:03]Write to MH i2c: F0 00 00 E1 1E EE [07:50:04]Write i2c OK [07:50:04]MH_I2C_Read... [07:50:04]Read from MH i2c: F0 [07:50:04]MH_I2C_Read... [07:50:04]Read from MH i2c: F0 09 00 [07:50:04]MH_I2C_Read... [07:50:04]Read from MH i2c: F0 09 00 E1 1E 00 2F 39 1A 66 23 5B 8F 65 51 [07:50:04]GetLastDocTimeStamp 1712994493 [07:50:04]current date 1712994607 [07:50:04]FM_GetShiftState [07:50:04]SAM_PROTO_GetShiftState [07:50:04]wFMCommunicate request_size=4 [07:50:04]MH_SAM_APDU [07:50:04]CAPDU: 80 13 01 00 [07:50:04]Write to MH i2c: E2 08 00 E2 1E 80 13 01 00 00 00 00 00 7D [07:50:04]Write i2c OK [07:50:04]MH_I2C_Read... [07:50:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:04]Read from MH i2c: E2 [07:50:04]MH_I2C_Read... [07:50:04]Read from MH i2c: E2 0E 00 [07:50:04]MH_I2C_Read... [07:50:04]Read from MH i2c: E2 0E 00 E2 1E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 96 [07:50:04]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:50:04]wFMCommunicate OK [07:50:04]SAM_PROTO_GetShiftState done [07:50:04]FM_GetShiftState done [07:50:04]opened in 1712967615 [07:50:04]opened+sec_in_day 1713054015 [07:50:04]quantity*price = 350049 [07:50:04]sum+1 = 350050 [07:50:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.73 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 30 13.04.2024 07:50 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28823 ФПД: 67282054429449 1/tax-web-control/client/api/v1/ticket?date=20240413T075007&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28823&fm=67282054429449&tin=02508201610067®Number=0000138879044617&sum=350000 [07:50:05]StoreToDocumentArchive [07:50:05]shift 115 fd 28823 [07:50:05]save to /storage/0115/doc_00028823 [07:50:05]save last doc name /storage/0115/doc_00028823 to /storage/kkm_last_doc_name [07:50:05]save OK [07:50:05]Clear old archive folders... [07:50:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:50:05]tlvbuf is 011A3D30 [07:50:05]SAM_PROTO_ClearQueue [07:50:05]wFMCommunicate request_size=4 [07:50:05]MH_SAM_APDU [07:50:05]CAPDU: 80 09 00 00 [07:50:05]Write to MH i2c: E2 08 00 EF 1E 80 09 00 00 00 00 00 00 7F [07:50:05]Write i2c OK [07:50:05]MH_I2C_Read... [07:50:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:50:05]Read from MH i2c: E2 [07:50:05]MH_I2C_Read... [07:50:05]Read from MH i2c: E2 03 00 [07:50:05]MH_I2C_Read... [07:50:05]Read from MH i2c: E2 03 00 EF 1E 00 90 00 81 [07:50:05]RAPDU: 90 00 [07:50:05]wFMCommunicate OK [07:50:05]SAM_PROTO_ClearQueue done [07:50:05]KKMCreateOFDPacket [07:50:05]OFDProtocolAddRootSTLVToBuf [07:50:05]FM_MakeSignedData [07:50:05]FM_MakeSignedData [07:50:05]SAM_PROTO_SignData [07:50:05]wFMCommunicate request_size=4 [07:50:05]MH_SAM_APDU [07:50:05]CAPDU: 80 0D 01 02 [07:50:05]Write to MH i2c: E2 08 00 F0 1E 80 0D 01 02 00 00 00 00 87 [07:50:05]Write i2c OK [07:50:05]MH_I2C_Read... [07:50:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:50:05]Read from MH i2c: E2 [07:50:05]MH_I2C_Read... [07:50:05]Read from MH i2c: E2 03 00 [07:50:05]MH_I2C_Read... [07:50:05]Read from MH i2c: E2 03 00 F0 1E 00 90 00 82 [07:50:05]RAPDU: 90 00 [07:50:05]wFMCommunicate OK [07:50:05]wFMCommunicate request_size=255 [07:50:05]MH_SAM_APDU [07:50:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 D4 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 61 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 35 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 1E 00 00 00 F4 03 04 00 2F 39 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 97 70 00 00 35 04 06 00 3D [07:50:05]Write to MH i2c: E2 02 01 F1 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 A8 D4 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 61 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 35 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 1E 00 00 00 F4 03 04 00 2F 39 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 97 70 00 00 35 04 06 00 3D 00 00 DF [07:50:05]Write i2c OK [07:50:05]MH_I2C_Read... [07:50:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:05]Read from MH i2c: E2 [07:50:05]MH_I2C_Read... [07:50:05]Read from MH i2c: E2 03 00 [07:50:05]MH_I2C_Read... [07:50:05]Read from MH i2c: E2 03 00 F1 1E 00 90 00 83 [07:50:05]RAPDU: 90 00 [07:50:05]wFMCommunicate OK [07:50:05]wFMCommunicate request_size=10 [07:50:05]MH_SAM_APDU [07:50:05]CAPDU: 80 0D 02 02 05 31 52 F4 3B 09 [07:50:05]Write to MH i2c: E2 0D 00 F2 1E 80 0D 02 02 05 00 31 52 F4 3B 09 00 00 4F [07:50:05]Write i2c OK [07:50:05]MH_I2C_Read... [07:50:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:05]Read from MH i2c: E2 [07:50:05]MH_I2C_Read... [07:50:05]Read from MH i2c: E2 03 00 [07:50:05]MH_I2C_Read... [07:50:05]Read from MH i2c: E2 03 00 F2 1E 00 90 00 84 [07:50:05]RAPDU: 90 00 [07:50:05]wFMCommunicate OK [07:50:05]wFMCommunicate request_size=4 [07:50:05]MH_SAM_APDU [07:50:05]CAPDU: 80 0D 03 02 [07:50:05]Write to MH i2c: E2 08 00 F3 1E 80 0D 03 02 00 00 00 00 8C [07:50:05]Write i2c OK [07:50:05]MH_I2C_Read... [07:50:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:50:05]Read from MH i2c: E2 [07:50:05]MH_I2C_Read... [07:50:05]Read from MH i2c: E2 0B 00 [07:50:05]MH_I2C_Read... [07:50:05]Read from MH i2c: E2 0B 00 F3 1E 00 BF 30 8E EF EE CE 7C A1 90 00 D2 [07:50:05]RAPDU: BF 30 8E EF EE CE 7C A1 90 00 [07:50:05]wFMCommunicate OK [07:50:05]SAM_PROTO_SignData done [07:50:05]FM_MakeSignedData done [07:50:05]CreateOFDProtocolMessage [07:50:05]wFMCommunicate request_size=4 [07:50:05]MH_SAM_APDU [07:50:05]CAPDU: 80 11 00 00 [07:50:05]Write to MH i2c: E2 08 00 F4 1E 80 11 00 00 00 00 00 00 8C [07:50:05]Write i2c OK [07:50:05]MH_I2C_Read... [07:50:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:05]Read from MH i2c: E2 [07:50:05]MH_I2C_Read... [07:50:05]Read from MH i2c: E2 17 00 [07:50:05]MH_I2C_Read... [07:50:05]Read from MH i2c: E2 17 00 F4 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DB [07:50:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:50:05]wFMCommunicate OK [07:50:05]CreateOFDProtocolMessage done [07:50:05]OFDSenderStorePacket 28823 [07:50:05]StoreOFDPacket docnum=28823 [07:50:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EA 29 07 01 4D 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 A8 D4 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 61 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 35 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 1E 00 00 00 F4 03 04 00 2F 39 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 97 70 00 00 35 04 06 00 3D 31 52 F4 3B 09 BF 30 8E EF EE CE 7C A1 [07:50:05]CheckFolder [07:50:05]dirname=/storage/ofd_packets [07:50:05]CheckFolder done [07:50:05]ProducePacketName [07:50:05]name=ofd_packets/00028823 [07:50:05]NVStorageSaveData ofd_packets/00028823 [07:50:05]File name is /storage/ofd_packets/00028823 [07:50:05]Write 301 bytes [07:50:05]NVStorageSaveData done [07:50:05]OFDSenderStorePacket done [07:50:05]KKMCreateOFDPacket done [07:50:05]NVStorageSaveData kkm_last_timestamp [07:50:05]File name is /storage/kkm_last_timestamp [07:50:05]Write 4 bytes [07:50:05]NVStorageSaveData done [07:50:05]ExternCall_PrintAddStr [07:50:05]wPrintStart [07:50:05]Write to MH i2c: 01 00 00 F5 1E 13 [07:50:05]Write i2c OK [07:50:05]MH_I2C_Read... [07:50:05]Read from MH i2c: 01 [07:50:05]MH_I2C_Read... [07:50:05]Read from MH i2c: 01 07 00 [07:50:05]MH_I2C_Read... [07:50:05]Read from MH i2c: 01 07 00 F5 1E 00 00 00 00 00 FF 0F 28 [07:50:05]RasterBufferAndPrint [07:50:05]line Счет N : (1)347171 [07:50:05]line ИНН: 02508201610067 [07:50:05]line Контрольно-Кассовый Чек [07:50:05]line ПРОДАЖА [07:50:05]line ТРК (МРК, ГНК) : 13 [07:50:05]line Товар: 2710124130 [07:50:05]line Аи-92-К-5 [07:50:05]line 54.440 * 64.30 [07:50:05]line = 3500.49 [07:50:05]line НДС 12% НСП 1% [07:50:05]line > о реализуемом товаре [07:50:05]line ОКРУГЛЕНИЕ: -0.49 [07:50:05]line ИТОГО: 3500.00 [07:50:05]line Внесено: 3500.00 [07:50:05]line СДАЧА: 0.00 [07:50:05]line НСП 1% : 30.98 [07:50:05]line НДС 12% : 371.73 [07:50:05]line Наличными: 3500.00 [07:50:05]line Безнал.: 0.00 [07:50:05]line Место: АЗС № 108 "Партнер Нефть" [07:50:05]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:50:05]line СНО: Общий режим [07:50:05]line Чек 30 13.04.2024 07:50 [07:50:05]line Смена: 115 ФФД: 1.0 [07:50:05]line ЗНМ: 0300000027 [07:50:05]line РНМ: 0000138879044617 [07:50:05]line Версия ККМ: 001 [07:50:05]line ФМ: 0000000000963154 [07:50:05]line ФД: 28823 [07:50:05]line ФПД: 67282054429449 [07:50:05]line 1/tax-web-control/client/api/v1/ticket?date=20240413T075007&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28823&fm=67282054429449&tin=02508201610067®Number=0000138879044617&sum=350000 [07:50:06]OFD Sender: Processing packet 28823 [packets to send 8, broken 7] [07:50:06]ProducePacketName [07:50:06]name=ofd_packets/00028823 [07:50:06]OFD Sender: To server: pG, [07:50:06]CommunicateWithHost lk.salyk.kg:30040 [07:50:06]ConnectInit lk.salyk.kg [07:50:06]written 0, free lines is 4095 [07:50:06]Connected sock=10 [07:50: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 31 35 34 0F 01 00 00 EA 29 07 01 4D 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 A8 D4 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 61 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 35 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 1E 00 00 00 F4 03 04 00 2F 39 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 97 70 00 00 35 04 06 00 3D 31 52 F4 3B 09 BF 30 8E EF EE CE 7C A1 [07:50:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 32 57 47 00 CC 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 31 35 34 10 04 04 00 97 70 00 00 F4 03 04 00 D7 E3 19 66 B6 04 01 00 00 EF CC F5 64 F3 6B 93 E4 [07:50:06]CommunicateWithHost err = 0 [07:50:06]CheckOFDResponse [07:50:06]1017 (14) - 77093643461234 [07:50:06]1041 (16) - 0000000000963154 [07:50:06]1040 (4) - 28823 [07:50:06]1012 (4) - 13.04.2024 01:45 [07:50:06]1206 (1) - 0 [07:50:06]OFD Sender: Remove packet 28823 [07:50:06]ProducePacketName [07:50:06]name=ofd_packets/00028823 [07:50:06]NVStorageDeleteData [07:50:06]Write to MH i2c: 01 00 00 1F 1F 3E [07:50:06]Write i2c OK [07:50:06]MH_I2C_Read... [07:50:06]Read from MH i2c: 01 [07:50:06]MH_I2C_Read... [07:50:06]Read from MH i2c: 01 07 00 [07:50:06]MH_I2C_Read... [07:50:06]Read from MH i2c: 01 07 00 1F 1F 00 00 00 00 00 D1 0C 22 [07:50:06]RasterBufferAndPrint [07:50:06]line [07:50:06]line [07:50:06]line [07:50:06]line [07:50:06]line [07:50:06]written 0, free lines is 3285 [07:50:06]MH_Cut [07:50:06]Write to MH i2c: D1 01 00 26 1F 01 17 [07:50:06]Write i2c OK [07:50:06]MH_I2C_Read... [07:50:06]Read from MH i2c: D1 [07:50:06]MH_I2C_Read... [07:50:06]Read from MH i2c: D1 01 00 [07:50:06]MH_I2C_Read... [07:50:06]Read from MH i2c: D1 01 00 26 1F 00 16 [07:50:06]Write to MH i2c: 01 00 00 27 1F 46 [07:50:06]Write i2c OK [07:50:06]MH_I2C_Read... [07:50:06]OFD Sender: No OFD packet to send [07:50:07]*** Cut start [07:50:07]*** Partial cut [07:50:07]*** CUTSNS_PIN = 1 [07:50:07]*** CUTSNS_PIN = 0 [07:50:07]*** Brake cut motor [07:50:07]Read from MH i2c: 01 [07:50:07]MH_I2C_Read... [07:50:07]*** Stop cut motor [07:50:07]*** Cut end [07:50:07]Read from MH i2c: 01 07 00 [07:50:07]MH_I2C_Read... [07:50:07]Read from MH i2c: 01 07 00 27 1F 00 00 00 00 00 FF 0F 5B [07:50:07]process_action close_receipt done [07:50:07]requested_data is exist [07:50:07]produce_requested_data [07:50:07]requested_item fm.sn is exist - process it [07:50:07]wFMCommunicate request_size=4 [07:50:07]MH_SAM_APDU [07:50:07]CAPDU: 80 11 00 00 [07:50:07]Write to MH i2c: E2 08 00 28 1F 80 11 00 00 00 00 00 00 C1 [07:50:07]Write i2c OK [07:50:07]MH_I2C_Read... [07:50:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:08]Read from MH i2c: E2 [07:50:08]MH_I2C_Read... [07:50:08]Read from MH i2c: E2 17 00 [07:50:08]MH_I2C_Read... [07:50:08]Read from MH i2c: E2 17 00 28 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 10 [07:50:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:50:08]wFMCommunicate OK [07:50:08]requested_item fd.num is exist - process it [07:50:08]SAM_PROTO_GetFieldsCounters [07:50:08]wFMCommunicate request_size=4 [07:50:08]MH_SAM_APDU [07:50:08]CAPDU: 80 13 00 00 [07:50:08]Write to MH i2c: E2 08 00 29 1F 80 13 00 00 00 00 00 00 C4 [07:50:08]Write i2c OK [07:50:08]MH_I2C_Read... [07:50:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:50:08]Read from MH i2c: E2 [07:50:08]MH_I2C_Read... [07:50:08]Read from MH i2c: E2 62 00 [07:50:08]MH_I2C_Read... [07:50:08]Read from MH i2c: E2 62 00 29 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 97 70 00 00 0E 04 04 00 73 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 D6 [07:50: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 97 70 00 00 0E 04 04 00 73 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:50:08]wFMCommunicate OK [07:50:08]SAM_PROTO_GetFieldsCounters done [07:50:08]requested_item shift.num is exist - process it [07:50:08]requested_item shift.opened is exist - process it [07:50:08]req_shift_opened [07:50:08]FM_GetShiftState [07:50:08]SAM_PROTO_GetShiftState [07:50:08]wFMCommunicate request_size=4 [07:50:08]MH_SAM_APDU [07:50:08]CAPDU: 80 13 01 00 [07:50:08]Write to MH i2c: E2 08 00 2A 1F 80 13 01 00 00 00 00 00 C6 [07:50:08]Write i2c OK [07:50:08]MH_I2C_Read... [07:50:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:08]Read from MH i2c: E2 [07:50:08]MH_I2C_Read... [07:50:08]Read from MH i2c: E2 0E 00 [07:50:08]MH_I2C_Read... [07:50:08]Read from MH i2c: E2 0E 00 2A 1F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 DF [07:50:08]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:50:08]wFMCommunicate OK [07:50:08]SAM_PROTO_GetShiftState done [07:50:08]FM_GetShiftState done [07:50:08]req_shift_opened done [07:50:08]requested_item shift.open_date is exist - process it [07:50:08]req_shift_open_date [07:50:08]req_shift_open_date done [07:50:08]produce_requested_data done [07:50:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28823,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [07:50:08]process_action_free close_receipt [07:50:08]json_value_free [07:50:08]json_value_free done [07:50:08]process_json_proto returns [07:50:08]Send response to host [07:50:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28823,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [07:50:08]free response buf [07:50:08]execute_script done [07:50:08]execute_script returns [07:50:08]free content buf [07:50:08]Sock 7.Close socket [07:50:08]Sock 7.Thread stoped [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:11]OFD Sender: No OFD packet to send [07:51:16]OFD Sender: No OFD packet to send [07:51:21]OFD Sender: No OFD packet to send [07:51:26]OFD Sender: No OFD packet to send [07:51:31]OFD Sender: No OFD packet to send [07:51:36]OFD Sender: No OFD packet to send [07:51:41]OFD Sender: No OFD packet to send [07:51:46]OFD Sender: No OFD packet to send [07:51:51]OFD Sender: No OFD packet to send [07:51:56]OFD Sender: No OFD packet to send [07:52:01]OFD Sender: No OFD packet to send [07:52:06]OFD Sender: No OFD packet to send [07:52:11]OFD Sender: No OFD packet to send [07:52:16]accept exits with 9 [07:52:16]New connection [07:52:16]New thread 3066928484 created [07:52:16]Thread 3066785124 joined [07:52:16]Waiting for new connection... [07:52:16] Sock 9.Parse request [07:52:16]Sock 9.Check first char [07:52:16]Sock 9.First char is OK [07:52:16]request: POST /json_proto HTTP/1.0 [07:52:16]Method: POST [07:52:16]URL: /json_proto [07:52:16]Method is POST - this is cgi request [07:52:16]url: /json_proto [07:52:16]query_string will be loaded in cgi processing [07:52:16]execute_cgi json_proto POST (null) [07:52:16]execute_cgi path=json_proto method=POST [07:52:16]POST find Content-Length [07:52:16]Host: 172.17.33.3:8080 [07:52:16]Content-Length: 670 [07:52:16]Content-Type: application/json [07:52:16] [07:52:16]POST finish read [07:52:16]Found Content-Length = 670 [07:52:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 4.600, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:16]execute_script... [07:52: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)347173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 4.600, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:16]POST & json_proto [07:52:16]process_json_proto [07:52:16]json parsed OK: [07:52:16]protocol is kg_v1.0 [07:52:16]action value=close_receipt [07:52:16]process_action close_receipt [07:52:16]cmd_close_receipt [07:52:16]MH_GetDate [07:52:16]Write to MH i2c: F0 00 00 2B 1F 39 [07:52:16]Write i2c OK [07:52:16]MH_I2C_Read... [07:52:16]Read from MH i2c: F0 [07:52:16]MH_I2C_Read... [07:52:16]Read from MH i2c: F0 09 00 [07:52:16]MH_I2C_Read... [07:52:16]Read from MH i2c: F0 09 00 2B 1F 00 B4 39 1A 66 23 5B 8F 65 21 [07:52:16]GetLastDocTimeStamp 1712994607 [07:52:16]current date 1712994740 [07:52:16]FM_GetShiftState [07:52:16]SAM_PROTO_GetShiftState [07:52:16]wFMCommunicate request_size=4 [07:52:16]MH_SAM_APDU [07:52:16]CAPDU: 80 13 01 00 [07:52:16]Write to MH i2c: E2 08 00 2C 1F 80 13 01 00 00 00 00 00 C8 [07:52:16]Write i2c OK [07:52:16]MH_I2C_Read... [07:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:16]Read from MH i2c: E2 [07:52:16]MH_I2C_Read... [07:52:16]Read from MH i2c: E2 0E 00 [07:52:16]MH_I2C_Read... [07:52:16]Read from MH i2c: E2 0E 00 2C 1F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 E1 [07:52:16]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:52:16]wFMCommunicate OK [07:52:16]SAM_PROTO_GetShiftState done [07:52:16]FM_GetShiftState done [07:52:16]opened in 1712967615 [07:52:16]opened+sec_in_day 1713054015 [07:52:16]quantity*price = 30038 [07:52:16]sum+1 = 30039 [07:52:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 31 13.04.2024 07:52 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28824 ФПД: 72590545206411 1/tax-web-control/client/api/v1/ticket?date=20240413T075220&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28824&fm=72590545206411&tin=02508201610067®Number=0000138879044617&sum=30000 [07:52:17]StoreToDocumentArchive [07:52:17]shift 115 fd 28824 [07:52:17]save to /storage/0115/doc_00028824 [07:52:17]save last doc name /storage/0115/doc_00028824 to /storage/kkm_last_doc_name [07:52:17]save OK [07:52:17]Clear old archive folders... [07:52:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:52:17]tlvbuf is B6F52600 [07:52:17]SAM_PROTO_ClearQueue [07:52:17]wFMCommunicate request_size=4 [07:52:17]MH_SAM_APDU [07:52:17]CAPDU: 80 09 00 00 [07:52:17]Write to MH i2c: E2 08 00 39 1F 80 09 00 00 00 00 00 00 CA [07:52:17]Write i2c OK [07:52:17]MH_I2C_Read... [07:52:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:52:17]Read from MH i2c: E2 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: E2 03 00 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: E2 03 00 39 1F 00 90 00 CC [07:52:17]RAPDU: 90 00 [07:52:17]wFMCommunicate OK [07:52:17]SAM_PROTO_ClearQueue done [07:52:17]KKMCreateOFDPacket [07:52:17]OFDProtocolAddRootSTLVToBuf [07:52:17]FM_MakeSignedData [07:52:17]FM_MakeSignedData [07:52:17]SAM_PROTO_SignData [07:52:17]wFMCommunicate request_size=4 [07:52:17]MH_SAM_APDU [07:52:17]CAPDU: 80 0D 01 02 [07:52:17]Write to MH i2c: E2 08 00 3A 1F 80 0D 01 02 00 00 00 00 D2 [07:52:17]Write i2c OK [07:52:17]MH_I2C_Read... [07:52:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:52:17]Read from MH i2c: E2 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: E2 03 00 [07:52:17]MH_I2C_Read... [07:52:17]Read from MH i2c: E2 03 00 3A 1F 00 90 00 CD [07:52:17]RAPDU: 90 00 [07:52:17]wFMCommunicate OK [07:52:17]wFMCommunicate request_size=255 [07:52:17]MH_SAM_APDU [07:52:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 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 1F 00 00 00 F4 03 04 00 B4 39 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 70 00 00 35 04 06 00 [07:52:17]Write to MH i2c: E2 02 01 3B 1F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 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 1F 00 00 00 F4 03 04 00 B4 39 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 70 00 00 35 04 06 00 00 00 F0 [07:52:17]Write i2c OK [07:52:17]MH_I2C_Read... [07:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:18]Read from MH i2c: E2 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: E2 03 00 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: E2 03 00 3B 1F 00 90 00 CE [07:52:18]RAPDU: 90 00 [07:52:18]wFMCommunicate OK [07:52:18]wFMCommunicate request_size=11 [07:52:18]MH_SAM_APDU [07:52:18]CAPDU: 80 0D 02 02 06 42 05 4D A9 3C 8B [07:52:18]Write to MH i2c: E2 0E 00 3C 1F 80 0D 02 02 06 00 42 05 4D A9 3C 8B 00 00 E5 [07:52:18]Write i2c OK [07:52:18]MH_I2C_Read... [07:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:18]Read from MH i2c: E2 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: E2 03 00 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: E2 03 00 3C 1F 00 90 00 CF [07:52:18]RAPDU: 90 00 [07:52:18]wFMCommunicate OK [07:52:18]wFMCommunicate request_size=4 [07:52:18]MH_SAM_APDU [07:52:18]CAPDU: 80 0D 03 02 [07:52:18]Write to MH i2c: E2 08 00 3D 1F 80 0D 03 02 00 00 00 00 D7 [07:52:18]Write i2c OK [07:52:18]MH_I2C_Read... [07:52:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:52:18]Read from MH i2c: E2 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: E2 0B 00 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: E2 0B 00 3D 1F 00 B8 7F 80 58 CE DE 0B 2D 90 00 CB [07:52:18]RAPDU: B8 7F 80 58 CE DE 0B 2D 90 00 [07:52:18]wFMCommunicate OK [07:52:18]SAM_PROTO_SignData done [07:52:18]FM_MakeSignedData done [07:52:18]CreateOFDProtocolMessage [07:52:18]wFMCommunicate request_size=4 [07:52:18]MH_SAM_APDU [07:52:18]CAPDU: 80 11 00 00 [07:52:18]Write to MH i2c: E2 08 00 3E 1F 80 11 00 00 00 00 00 00 D7 [07:52:18]Write i2c OK [07:52:18]MH_I2C_Read... [07:52:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:18]Read from MH i2c: E2 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: E2 17 00 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: E2 17 00 3E 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 26 [07:52:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:52:18]wFMCommunicate OK [07:52:18]CreateOFDProtocolMessage done [07:52:18]OFDSenderStorePacket 28824 [07:52:18]StoreOFDPacket docnum=28824 [07:52:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 32 E2 08 01 C8 21 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 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 1F 00 00 00 F4 03 04 00 B4 39 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 70 00 00 35 04 06 00 42 05 4D A9 3C 8B B8 7F 80 58 CE DE 0B 2D [07:52:18]CheckFolder [07:52:18]dirname=/storage/ofd_packets [07:52:18]CheckFolder done [07:52:18]ProducePacketName [07:52:18]name=ofd_packets/00028824 [07:52:18]NVStorageSaveData ofd_packets/00028824 [07:52:18]File name is /storage/ofd_packets/00028824 [07:52:18]Write 302 bytes [07:52:18]NVStorageSaveData done [07:52:18]OFDSenderStorePacket done [07:52:18]KKMCreateOFDPacket done [07:52:18]NVStorageSaveData kkm_last_timestamp [07:52:18]File name is /storage/kkm_last_timestamp [07:52:18]Write 4 bytes [07:52:18]NVStorageSaveData done [07:52:18]ExternCall_PrintAddStr [07:52:18]wPrintStart [07:52:18]Write to MH i2c: 01 00 00 3F 1F 5E [07:52:18]Write i2c OK [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: 01 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: 01 07 00 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: 01 07 00 3F 1F 00 00 00 00 00 FF 0F 73 [07:52:18]RasterBufferAndPrint [07:52:18]line Счет N : (1)347173 [07:52:18]line ИНН: 02508201610067 [07:52:18]line Контрольно-Кассовый Чек [07:52:18]line ПРОДАЖА [07:52:18]line ТРК (МРК, ГНК) : 12 [07:52:18]line Товар: 2710124130 [07:52:18]line SUPER-92-К-5 [07:52:18]line 4.600 * 65.30 [07:52:18]line = 300.38 [07:52:18]line НДС 12% НСП 1% [07:52:18]line > о реализуемом товаре [07:52:18]line ОКРУГЛЕНИЕ: -0.38 [07:52:18]line ИТОГО: 300.00 [07:52:18]line Внесено: 300.00 [07:52:18]line СДАЧА: 0.00 [07:52:18]line НСП 1% : 2.66 [07:52:18]line НДС 12% : 31.90 [07:52:18]line Наличными: 300.00 [07:52:18]line Безнал.: 0.00 [07:52:18]line Место: АЗС № 108 "Партнер Нефть" [07:52:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:52:18]line СНО: Общий режим [07:52:18]line Чек 31 13.04.2024 07:52 [07:52:18]line Смена: 115 ФФД: 1.0 [07:52:18]line ЗНМ: 0300000027 [07:52:18]line РНМ: 0000138879044617 [07:52:18]line Версия ККМ: 001 [07:52:18]line ФМ: 0000000000963154 [07:52:18]line ФД: 28824 [07:52:18]line ФПД: 72590545206411 [07:52:18]line 1/tax-web-control/client/api/v1/ticket?date=20240413T075220&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28824&fm=72590545206411&tin=02508201610067®Number=0000138879044617&sum=30000 [07:52:18]OFD Sender: Processing packet 28824 [packets to send 8, broken 7] [07:52:18]ProducePacketName [07:52:18]name=ofd_packets/00028824 [07:52:18]OFD Sender: To server: pG, [07:52:18]CommunicateWithHost lk.salyk.kg:30040 [07:52:18]ConnectInit lk.salyk.kg [07:52:18]written 0, free lines is 4095 [07:52:18]Connected sock=10 [07:52: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 31 35 34 10 01 00 00 32 E2 08 01 C8 21 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 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 1F 00 00 00 F4 03 04 00 B4 39 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 70 00 00 35 04 06 00 42 05 4D A9 3C 8B B8 7F 80 58 CE DE 0B 2D [07:52:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 03 AA 47 00 23 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 31 35 34 10 04 04 00 98 70 00 00 F4 03 04 00 5B E4 19 66 B6 04 01 00 00 EB 7F EB F9 51 E0 A0 F5 [07:52:18]CommunicateWithHost err = 0 [07:52:18]CheckOFDResponse [07:52:18]1017 (14) - 77093643461234 [07:52:18]1041 (16) - 0000000000963154 [07:52:18]1040 (4) - 28824 [07:52:18]1012 (4) - 13.04.2024 01:48 [07:52:18]1206 (1) - 0 [07:52:18]OFD Sender: Remove packet 28824 [07:52:18]ProducePacketName [07:52:18]name=ofd_packets/00028824 [07:52:18]NVStorageDeleteData [07:52:18]Write to MH i2c: 01 00 00 69 1F 88 [07:52:18]Write i2c OK [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: 01 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: 01 07 00 [07:52:18]MH_I2C_Read... [07:52:18]Read from MH i2c: 01 07 00 69 1F 00 00 00 00 00 D2 0C 6D [07:52:18]RasterBufferAndPrint [07:52:18]line [07:52:18]line [07:52:18]line [07:52:18]line [07:52:18]line [07:52:19]written 0, free lines is 3290 [07:52:19]MH_Cut [07:52:19]Write to MH i2c: D1 01 00 70 1F 01 61 [07:52:19]Write i2c OK [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: D1 [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: D1 01 00 [07:52:19]MH_I2C_Read... [07:52:19]Read from MH i2c: D1 01 00 70 1F 00 60 [07:52:19]Write to MH i2c: 01 00 00 71 1F 90 [07:52:19]Write i2c OK [07:52:19]MH_I2C_Read... [07:52:19]OFD Sender: No OFD packet to send [07:52:19]*** Cut start [07:52:19]*** Partial cut [07:52:19]*** CUTSNS_PIN = 1 [07:52:19]*** CUTSNS_PIN = 0 [07:52:20]*** Brake cut motor [07:52:20]Read from MH i2c: 01 [07:52:20]MH_I2C_Read... [07:52:20]*** Stop cut motor [07:52:20]*** Cut end [07:52:20]Read from MH i2c: 01 07 00 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: 01 07 00 71 1F 00 00 00 00 00 FF 0F A5 [07:52:20]process_action close_receipt done [07:52:20]requested_data is exist [07:52:20]produce_requested_data [07:52:20]requested_item fm.sn is exist - process it [07:52:20]wFMCommunicate request_size=4 [07:52:20]MH_SAM_APDU [07:52:20]CAPDU: 80 11 00 00 [07:52:20]Write to MH i2c: E2 08 00 72 1F 80 11 00 00 00 00 00 00 0B [07:52:20]Write i2c OK [07:52:20]MH_I2C_Read... [07:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:20]Read from MH i2c: E2 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: E2 17 00 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: E2 17 00 72 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5A [07:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:52:20]wFMCommunicate OK [07:52:20]requested_item fd.num is exist - process it [07:52:20]SAM_PROTO_GetFieldsCounters [07:52:20]wFMCommunicate request_size=4 [07:52:20]MH_SAM_APDU [07:52:20]CAPDU: 80 13 00 00 [07:52:20]Write to MH i2c: E2 08 00 73 1F 80 13 00 00 00 00 00 00 0E [07:52:20]Write i2c OK [07:52:20]MH_I2C_Read... [07:52:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:52:20]Read from MH i2c: E2 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: E2 62 00 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: E2 62 00 73 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 98 70 00 00 0E 04 04 00 73 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 24 [07:52: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 98 70 00 00 0E 04 04 00 73 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:52:20]wFMCommunicate OK [07:52:20]SAM_PROTO_GetFieldsCounters done [07:52:20]requested_item shift.num is exist - process it [07:52:20]requested_item shift.opened is exist - process it [07:52:20]req_shift_opened [07:52:20]FM_GetShiftState [07:52:20]SAM_PROTO_GetShiftState [07:52:20]wFMCommunicate request_size=4 [07:52:20]MH_SAM_APDU [07:52:20]CAPDU: 80 13 01 00 [07:52:20]Write to MH i2c: E2 08 00 74 1F 80 13 01 00 00 00 00 00 10 [07:52:20]Write i2c OK [07:52:20]MH_I2C_Read... [07:52:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:20]Read from MH i2c: E2 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: E2 0E 00 [07:52:20]MH_I2C_Read... [07:52:20]Read from MH i2c: E2 0E 00 74 1F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 29 [07:52:20]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:52:20]wFMCommunicate OK [07:52:20]SAM_PROTO_GetShiftState done [07:52:20]FM_GetShiftState done [07:52:20]req_shift_opened done [07:52:20]requested_item shift.open_date is exist - process it [07:52:20]req_shift_open_date [07:52:20]req_shift_open_date done [07:52:20]produce_requested_data done [07:52:20]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28824,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [07:52:20]process_action_free close_receipt [07:52:20]json_value_free [07:52:20]json_value_free done [07:52:20]process_json_proto returns [07:52:20]Send response to host [07:52:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28824,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [07:52:20]free response buf [07:52:20]execute_script done [07:52:20]execute_script returns [07:52:20]free content buf [07:52:20]Sock 9.Close socket [07:52:20]Sock 9.Thread stoped [07:52:24]OFD Sender: No OFD packet to send [07:52:29]OFD Sender: No OFD packet to send [07:52:34]OFD Sender: No OFD packet to send [07:52:39]OFD Sender: No OFD packet to send [07:52:40]accept exits with 7 [07:52:40]New connection [07:52:40]New thread 3066785124 created [07:52:40]Thread 3066928484 joined [07:52:40]Waiting for new connection... [07:52:40] Sock 7.Parse request [07:52:40]Sock 7.Check first char [07:52:40]Sock 7.First char is OK [07:52:40]request: POST /json_proto HTTP/1.0 [07:52:40]Method: POST [07:52:40]URL: /json_proto [07:52:40]Method is POST - this is cgi request [07:52:40]url: /json_proto [07:52:40]query_string will be loaded in cgi processing [07:52:40]execute_cgi json_proto POST (null) [07:52:40]execute_cgi path=json_proto method=POST [07:52:40]POST find Content-Length [07:52:40]Host: 172.17.33.3:8080 [07:52:40]Content-Length: 682 [07:52:40]Content-Type: application/json [07:52:40] [07:52:40]POST finish read [07:52:40]Found Content-Length = 682 [07:52:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347172", "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" : 64.30, "quantity" : 31.110, "sum" : 2000.37, "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:52:40]execute_script... [07:52: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)347172", "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" : 64.30, "quantity" : 31.110, "sum" : 2000.37, "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:52:40]POST & json_proto [07:52:40]process_json_proto [07:52:40]json parsed OK: [07:52:40]protocol is kg_v1.0 [07:52:40]action value=close_receipt [07:52:40]process_action close_receipt [07:52:40]cmd_close_receipt [07:52:40]MH_GetDate [07:52:40]Write to MH i2c: F0 00 00 75 1F 83 [07:52:40]Write i2c OK [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: F0 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: F0 09 00 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: F0 09 00 75 1F 00 CC 39 1A 66 23 5B 8F 65 83 [07:52:40]GetLastDocTimeStamp 1712994740 [07:52:40]current date 1712994764 [07:52:40]FM_GetShiftState [07:52:40]SAM_PROTO_GetShiftState [07:52:40]wFMCommunicate request_size=4 [07:52:40]MH_SAM_APDU [07:52:40]CAPDU: 80 13 01 00 [07:52:40]Write to MH i2c: E2 08 00 76 1F 80 13 01 00 00 00 00 00 12 [07:52:40]Write i2c OK [07:52:40]MH_I2C_Read... [07:52:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:40]Read from MH i2c: E2 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 0E 00 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 0E 00 76 1F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 2B [07:52:40]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:52:40]wFMCommunicate OK [07:52:40]SAM_PROTO_GetShiftState done [07:52:40]FM_GetShiftState done [07:52:40]opened in 1712967615 [07:52:40]opened+sec_in_day 1713054015 [07:52:40]quantity*price = 200037 [07:52:40]sum+1 = 200038 [07:52:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 32 13.04.2024 07:52 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28825 ФПД: 110594591831620 1/tax-web-control/client/api/v1/ticket?date=20240413T075244&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28825&fm=110594591831620&tin=02508201610067®Number=0000138879044617&sum=200000 [07:52:41]StoreToDocumentArchive [07:52:41]shift 115 fd 28825 [07:52:41]save to /storage/0115/doc_00028825 [07:52:41]save last doc name /storage/0115/doc_00028825 to /storage/kkm_last_doc_name [07:52:41]save OK [07:52:41]Clear old archive folders... [07:52:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:52:41]tlvbuf is 011A3BF0 [07:52:41]SAM_PROTO_ClearQueue [07:52:41]wFMCommunicate request_size=4 [07:52:41]MH_SAM_APDU [07:52:41]CAPDU: 80 09 00 00 [07:52:41]Write to MH i2c: E2 08 00 83 1F 80 09 00 00 00 00 00 00 14 [07:52:41]Write i2c OK [07:52:41]MH_I2C_Read... [07:52:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:52:41]Read from MH i2c: E2 [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: E2 03 00 [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: E2 03 00 83 1F 00 90 00 16 [07:52:41]RAPDU: 90 00 [07:52:41]wFMCommunicate OK [07:52:41]SAM_PROTO_ClearQueue done [07:52:41]KKMCreateOFDPacket [07:52:41]OFDProtocolAddRootSTLVToBuf [07:52:41]FM_MakeSignedData [07:52:41]FM_MakeSignedData [07:52:41]SAM_PROTO_SignData [07:52:41]wFMCommunicate request_size=4 [07:52:41]MH_SAM_APDU [07:52:41]CAPDU: 80 0D 01 02 [07:52:41]Write to MH i2c: E2 08 00 84 1F 80 0D 01 02 00 00 00 00 1C [07:52:41]Write i2c OK [07:52:41]MH_I2C_Read... [07:52:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:52:41]Read from MH i2c: E2 [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: E2 03 00 [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: E2 03 00 84 1F 00 90 00 17 [07:52:41]RAPDU: 90 00 [07:52:41]wFMCommunicate OK [07:52:41]wFMCommunicate request_size=255 [07:52:41]MH_SAM_APDU [07:52: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 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 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 20 00 00 00 F4 03 04 00 CC 39 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 99 70 00 00 35 04 06 00 64 [07:52:41]Write to MH i2c: E2 02 01 85 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 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 20 00 00 00 F4 03 04 00 CC 39 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 99 70 00 00 35 04 06 00 64 00 00 50 [07:52:41]Write i2c OK [07:52:41]MH_I2C_Read... [07:52:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:42]Read from MH i2c: E2 [07:52:42]MH_I2C_Read... [07:52:42]Read from MH i2c: E2 03 00 [07:52:42]MH_I2C_Read... [07:52:42]Read from MH i2c: E2 03 00 85 1F 00 90 00 18 [07:52:42]RAPDU: 90 00 [07:52:42]wFMCommunicate OK [07:52:42]wFMCommunicate request_size=10 [07:52:42]MH_SAM_APDU [07:52:42]CAPDU: 80 0D 02 02 05 95 CF 5C 36 44 [07:52:42]Write to MH i2c: E2 0D 00 86 1F 80 0D 02 02 05 00 95 CF 5C 36 44 00 00 63 [07:52:42]Write i2c OK [07:52:42]MH_I2C_Read... [07:52:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:42]Read from MH i2c: E2 [07:52:42]MH_I2C_Read... [07:52:42]Read from MH i2c: E2 03 00 [07:52:42]MH_I2C_Read... [07:52:42]Read from MH i2c: E2 03 00 86 1F 00 90 00 19 [07:52:42]RAPDU: 90 00 [07:52:42]wFMCommunicate OK [07:52:42]wFMCommunicate request_size=4 [07:52:42]MH_SAM_APDU [07:52:42]CAPDU: 80 0D 03 02 [07:52:42]Write to MH i2c: E2 08 00 87 1F 80 0D 03 02 00 00 00 00 21 [07:52:42]Write i2c OK [07:52:42]MH_I2C_Read... [07:52:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:52:42]Read from MH i2c: E2 [07:52:42]MH_I2C_Read... [07:52:42]Read from MH i2c: E2 0B 00 [07:52:42]MH_I2C_Read... [07:52:42]Read from MH i2c: E2 0B 00 87 1F 00 E8 64 AC 72 8A 97 32 2D 90 00 0C [07:52:42]RAPDU: E8 64 AC 72 8A 97 32 2D 90 00 [07:52:42]wFMCommunicate OK [07:52:42]SAM_PROTO_SignData done [07:52:42]FM_MakeSignedData done [07:52:42]CreateOFDProtocolMessage [07:52:42]wFMCommunicate request_size=4 [07:52:42]MH_SAM_APDU [07:52:42]CAPDU: 80 11 00 00 [07:52:42]Write to MH i2c: E2 08 00 88 1F 80 11 00 00 00 00 00 00 21 [07:52:42]Write i2c OK [07:52:42]MH_I2C_Read... [07:52:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:42]Read from MH i2c: E2 [07:52:42]MH_I2C_Read... [07:52:42]Read from MH i2c: E2 17 00 [07:52:42]MH_I2C_Read... [07:52:42]Read from MH i2c: E2 17 00 88 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 70 [07:52:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:52:42]wFMCommunicate OK [07:52:42]CreateOFDProtocolMessage done [07:52:42]OFDSenderStorePacket 28825 [07:52:42]StoreOFDPacket docnum=28825 [07:52:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 11 B8 07 01 6A A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 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 20 00 00 00 F4 03 04 00 CC 39 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 99 70 00 00 35 04 06 00 64 95 CF 5C 36 44 E8 64 AC 72 8A 97 32 2D [07:52:42]CheckFolder [07:52:42]dirname=/storage/ofd_packets [07:52:42]CheckFolder done [07:52:42]ProducePacketName [07:52:42]name=ofd_packets/00028825 [07:52:42]NVStorageSaveData ofd_packets/00028825 [07:52:42]File name is /storage/ofd_packets/00028825 [07:52:42]Write 301 bytes [07:52:42]NVStorageSaveData done [07:52:42]OFDSenderStorePacket done [07:52:42]KKMCreateOFDPacket done [07:52:42]NVStorageSaveData kkm_last_timestamp [07:52:42]File name is /storage/kkm_last_timestamp [07:52:42]Write 4 bytes [07:52:42]NVStorageSaveData done [07:52:42]ExternCall_PrintAddStr [07:52:42]wPrintStart [07:52:42]Write to MH i2c: 01 00 00 89 1F A8 [07:52:42]Write i2c OK [07:52:42]MH_I2C_Read... [07:52:42]Read from MH i2c: 01 [07:52:42]MH_I2C_Read... [07:52:42]Read from MH i2c: 01 07 00 [07:52:42]MH_I2C_Read... [07:52:42]Read from MH i2c: 01 07 00 89 1F 00 00 00 00 00 FF 0F BD [07:52:42]RasterBufferAndPrint [07:52:42]line Счет N : (1)347172 [07:52:42]line ИНН: 02508201610067 [07:52:42]line Контрольно-Кассовый Чек [07:52:42]line ПРОДАЖА [07:52:42]line ТРК (МРК, ГНК) : 32 [07:52:42]line Товар: 2710124130 [07:52:42]line Аи-92-К-5 [07:52:42]line 31.110 * 64.30 [07:52:42]line = 2000.37 [07:52:42]line НДС 12% НСП 1% [07:52:42]line > о реализуемом товаре [07:52:42]line ОКРУГЛЕНИЕ: -0.37 [07:52:42]line ИТОГО: 2000.00 [07:52:42]line Внесено: 2000.00 [07:52:42]line СДАЧА: 0.00 [07:52:42]line НСП 1% : 17.70 [07:52:42]line НДС 12% : 212.43 [07:52:42]line Наличными: 2000.00 [07:52:42]line Безнал.: 0.00 [07:52:42]line Место: АЗС № 108 "Партнер Нефть" [07:52:42]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:52:42]line СНО: Общий режим [07:52:42]line Чек 32 13.04.2024 07:52 [07:52:42]line Смена: 115 ФФД: 1.0 [07:52:42]line ЗНМ: 0300000027 [07:52:42]line РНМ: 0000138879044617 [07:52:42]line Версия ККМ: 001 [07:52:42]line ФМ: 0000000000963154 [07:52:42]line ФД: 28825 [07:52:42]line ФПД: 110594591831620 [07:52:42]line 1/tax-web-control/client/api/v1/ticket?date=20240413T075244&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28825&fm=110594591831620&tin=02508201610067®Number=0000138879044617&sum=200000 [07:52:42]OFD Sender: Processing packet 28825 [packets to send 8, broken 7] [07:52:42]ProducePacketName [07:52:42]name=ofd_packets/00028825 [07:52:42]OFD Sender: To server: pG, [07:52:42]CommunicateWithHost lk.salyk.kg:30040 [07:52:42]ConnectInit lk.salyk.kg [07:52:42]written 0, free lines is 4095 [07:52:42]Connected sock=10 [07:52: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 31 35 34 0F 01 00 00 11 B8 07 01 6A A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 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 20 00 00 00 F4 03 04 00 CC 39 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 99 70 00 00 35 04 06 00 64 95 CF 5C 36 44 E8 64 AC 72 8A 97 32 2D [07:52:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2D CA 47 00 61 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 31 35 34 10 04 04 00 99 70 00 00 F4 03 04 00 73 E4 19 66 B6 04 01 00 00 2A AB E7 66 D1 31 F9 B4 [07:52:42]CommunicateWithHost err = 0 [07:52:42]CheckOFDResponse [07:52:42]1017 (14) - 77093643461234 [07:52:42]1041 (16) - 0000000000963154 [07:52:42]1040 (4) - 28825 [07:52:42]1012 (4) - 13.04.2024 01:48 [07:52:42]1206 (1) - 0 [07:52:42]OFD Sender: Remove packet 28825 [07:52:42]ProducePacketName [07:52:42]name=ofd_packets/00028825 [07:52:42]NVStorageDeleteData [07:52:43]Write to MH i2c: 01 00 00 B3 1F D2 [07:52:43]Write i2c OK [07:52:43]MH_I2C_Read... [07:52:43]Read from MH i2c: 01 [07:52:43]MH_I2C_Read... [07:52:43]Read from MH i2c: 01 07 00 [07:52:43]MH_I2C_Read... [07:52:43]Read from MH i2c: 01 07 00 B3 1F 00 00 00 00 00 D3 0C B8 [07:52:43]RasterBufferAndPrint [07:52:43]line [07:52:43]line [07:52:43]line [07:52:43]line [07:52:43]line [07:52:43]written 0, free lines is 3287 [07:52:43]MH_Cut [07:52:43]Write to MH i2c: D1 01 00 BA 1F 01 AB [07:52:43]Write i2c OK [07:52:43]MH_I2C_Read... [07:52:43]Read from MH i2c: D1 [07:52:43]MH_I2C_Read... [07:52:43]Read from MH i2c: D1 01 00 [07:52:43]MH_I2C_Read... [07:52:43]Read from MH i2c: D1 01 00 BA 1F 00 AA [07:52:43]Write to MH i2c: 01 00 00 BB 1F DA [07:52:43]Write i2c OK [07:52:43]MH_I2C_Read... [07:52:43]OFD Sender: No OFD packet to send [07:52:43]*** Cut start [07:52:43]*** Partial cut [07:52:43]*** CUTSNS_PIN = 1 [07:52:44]*** CUTSNS_PIN = 0 [07:52:44]*** Brake cut motor [07:52:44]Read from MH i2c: 01 [07:52:44]MH_I2C_Read... [07:52:44]*** Stop cut motor [07:52:44]*** Cut end [07:52:44]Read from MH i2c: 01 07 00 [07:52:44]MH_I2C_Read... [07:52:44]Read from MH i2c: 01 07 00 BB 1F 00 00 00 00 00 FF 0F EF [07:52:44]process_action close_receipt done [07:52:44]requested_data is exist [07:52:44]produce_requested_data [07:52:44]requested_item fm.sn is exist - process it [07:52:44]wFMCommunicate request_size=4 [07:52:44]MH_SAM_APDU [07:52:44]CAPDU: 80 11 00 00 [07:52:44]Write to MH i2c: E2 08 00 BC 1F 80 11 00 00 00 00 00 00 55 [07:52:44]Write i2c OK [07:52:44]MH_I2C_Read... [07:52:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:44]Read from MH i2c: E2 [07:52:44]MH_I2C_Read... [07:52:44]Read from MH i2c: E2 17 00 [07:52:44]MH_I2C_Read... [07:52:44]Read from MH i2c: E2 17 00 BC 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A4 [07:52:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:52:44]wFMCommunicate OK [07:52:44]requested_item fd.num is exist - process it [07:52:44]SAM_PROTO_GetFieldsCounters [07:52:44]wFMCommunicate request_size=4 [07:52:44]MH_SAM_APDU [07:52:44]CAPDU: 80 13 00 00 [07:52:44]Write to MH i2c: E2 08 00 BD 1F 80 13 00 00 00 00 00 00 58 [07:52:44]Write i2c OK [07:52:44]MH_I2C_Read... [07:52:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:52:44]Read from MH i2c: E2 [07:52:44]MH_I2C_Read... [07:52:44]Read from MH i2c: E2 62 00 [07:52:44]MH_I2C_Read... [07:52:44]Read from MH i2c: E2 62 00 BD 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 99 70 00 00 0E 04 04 00 73 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 72 [07:52: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 99 70 00 00 0E 04 04 00 73 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 [07:52:44]wFMCommunicate OK [07:52:44]SAM_PROTO_GetFieldsCounters done [07:52:44]requested_item shift.num is exist - process it [07:52:44]requested_item shift.opened is exist - process it [07:52:44]req_shift_opened [07:52:44]FM_GetShiftState [07:52:44]SAM_PROTO_GetShiftState [07:52:44]wFMCommunicate request_size=4 [07:52:44]MH_SAM_APDU [07:52:44]CAPDU: 80 13 01 00 [07:52:44]Write to MH i2c: E2 08 00 BE 1F 80 13 01 00 00 00 00 00 5A [07:52:44]Write i2c OK [07:52:44]MH_I2C_Read... [07:52:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:44]Read from MH i2c: E2 [07:52:44]MH_I2C_Read... [07:52:44]Read from MH i2c: E2 0E 00 [07:52:44]MH_I2C_Read... [07:52:44]Read from MH i2c: E2 0E 00 BE 1F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 73 [07:52:44]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:52:44]wFMCommunicate OK [07:52:44]SAM_PROTO_GetShiftState done [07:52:44]FM_GetShiftState done [07:52:44]req_shift_opened done [07:52:44]requested_item shift.open_date is exist - process it [07:52:44]req_shift_open_date [07:52:44]req_shift_open_date done [07:52:44]produce_requested_data done [07:52:44]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28825,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [07:52:44]process_action_free close_receipt [07:52:44]json_value_free [07:52:44]json_value_free done [07:52:44]process_json_proto returns [07:52:44]Send response to host [07:52:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28825,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [07:52:44]free response buf [07:52:44]execute_script done [07:52:44]execute_script returns [07:52:44]free content buf [07:52:44]Sock 7.Close socket [07:52:44]Sock 7.Thread stoped [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:08]OFD Sender: No OFD packet to send [07:54:08]accept exits with 9 [07:54:08]New connection [07:54:08]New thread 3066928484 created [07:54:08]Thread 3066785124 joined [07:54:08]Waiting for new connection... [07:54:08] Sock 9.Parse request [07:54:08]Sock 9.Check first char [07:54:08]Sock 9.First char is OK [07:54:08]request: POST /json_proto HTTP/1.0 [07:54:08]Method: POST [07:54:08]URL: /json_proto [07:54:08]Method is POST - this is cgi request [07:54:08]url: /json_proto [07:54:08]query_string will be loaded in cgi processing [07:54:08]execute_cgi json_proto POST (null) [07:54:08]execute_cgi path=json_proto method=POST [07:54:08]POST find Content-Length [07:54:08]Host: 172.17.33.3:8080 [07:54:08]Content-Length: 726 [07:54:08]Content-Type: application/json [07:54:08] [07:54:08]POST finish read [07:54:08]Found Content-Length = 726 [07:54:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 28824, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 4.600, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:08]execute_script... [07:54:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 28824, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 4.600, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:08]POST & json_proto [07:54:08]process_json_proto [07:54:08]json parsed OK: [07:54:08]protocol is kg_v1.0 [07:54:08]action value=close_receipt [07:54:08]process_action close_receipt [07:54:08]cmd_close_receipt [07:54:08]MH_GetDate [07:54:08]Write to MH i2c: F0 00 00 BF 1F CD [07:54:08]Write i2c OK [07:54:08]MH_I2C_Read... [07:54:08]Read from MH i2c: F0 [07:54:08]MH_I2C_Read... [07:54:08]Read from MH i2c: F0 09 00 [07:54:08]MH_I2C_Read... [07:54:08]Read from MH i2c: F0 09 00 BF 1F 00 24 3A 1A 66 23 5B 8F 65 26 [07:54:08]GetLastDocTimeStamp 1712994764 [07:54:08]current date 1712994852 [07:54:08]FM_GetShiftState [07:54:08]SAM_PROTO_GetShiftState [07:54:08]wFMCommunicate request_size=4 [07:54:08]MH_SAM_APDU [07:54:08]CAPDU: 80 13 01 00 [07:54:08]Write to MH i2c: E2 08 00 C0 1F 80 13 01 00 00 00 00 00 5C [07:54:08]Write i2c OK [07:54:08]MH_I2C_Read... [07:54:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:08]Read from MH i2c: E2 [07:54:08]MH_I2C_Read... [07:54:08]Read from MH i2c: E2 0E 00 [07:54:08]MH_I2C_Read... [07:54:08]Read from MH i2c: E2 0E 00 C0 1F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 75 [07:54:08]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:54:08]wFMCommunicate OK [07:54:08]SAM_PROTO_GetShiftState done [07:54:08]FM_GetShiftState done [07:54:08]opened in 1712967615 [07:54:08]opened+sec_in_day 1713054015 [07:54:08]quantity*price = 30038 [07:54:08]sum+1 = 30039 [07:54:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 33 13.04.2024 07:54 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФД осн.: 28824 ФМ осн.: 0000000000963154 ФМ: 0000000000963154 ФД: 28826 ФПД: 180810105619111 1/tax-web-control/client/api/v1/ticket?date=20240413T075412&type=2&operation_type=1&fn_number=0000000000963154&fd_number=28826&fm=180810105619111&tin=02508201610067®Number=0000138879044617&sum=30000 [07:54:09]StoreToDocumentArchive [07:54:09]shift 115 fd 28826 [07:54:09]save to /storage/0115/doc_00028826 [07:54:09]save last doc name /storage/0115/doc_00028826 to /storage/kkm_last_doc_name [07:54:09]save OK [07:54:09]Clear old archive folders... [07:54:09]ProcessDocumentItem done err = 0, tmpTLVsize=280 [07:54:09]tlvbuf is B6DA22C0 [07:54:09]SAM_PROTO_ClearQueue [07:54:09]wFMCommunicate request_size=4 [07:54:09]MH_SAM_APDU [07:54:09]CAPDU: 80 09 00 00 [07:54:09]Write to MH i2c: E2 08 00 CF 1F 80 09 00 00 00 00 00 00 60 [07:54:09]Write i2c OK [07:54:09]MH_I2C_Read... [07:54:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:09]Read from MH i2c: E2 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: E2 03 00 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: E2 03 00 CF 1F 00 90 00 62 [07:54:09]RAPDU: 90 00 [07:54:09]wFMCommunicate OK [07:54:09]SAM_PROTO_ClearQueue done [07:54:09]KKMCreateOFDPacket [07:54:09]OFDProtocolAddRootSTLVToBuf [07:54:09]FM_MakeSignedData [07:54:09]FM_MakeSignedData [07:54:09]SAM_PROTO_SignData [07:54:09]wFMCommunicate request_size=4 [07:54:09]MH_SAM_APDU [07:54:09]CAPDU: 80 0D 01 02 [07:54:09]Write to MH i2c: E2 08 00 D0 1F 80 0D 01 02 00 00 00 00 68 [07:54:09]Write i2c OK [07:54:09]MH_I2C_Read... [07:54:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:10]Read from MH i2c: E2 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: E2 03 00 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: E2 03 00 D0 1F 00 90 00 63 [07:54:10]RAPDU: 90 00 [07:54:10]wFMCommunicate OK [07:54:10]wFMCommunicate request_size=255 [07:54:10]MH_SAM_APDU [07:54:10]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 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 21 00 00 00 F4 03 04 00 24 3A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 98 70 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 [07:54:10]Write to MH i2c: E2 02 01 D1 1F 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 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 21 00 00 00 F4 03 04 00 24 3A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 98 70 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 00 00 2B [07:54:10]Write i2c OK [07:54:10]MH_I2C_Read... [07:54:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:10]Read from MH i2c: E2 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: E2 03 00 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: E2 03 00 D1 1F 00 90 00 64 [07:54:10]RAPDU: 90 00 [07:54:10]wFMCommunicate OK [07:54:10]wFMCommunicate request_size=39 [07:54:10]MH_SAM_APDU [07:54:10]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9A 70 00 00 35 04 06 00 A4 72 22 1E 02 A7 [07:54:10]Write to MH i2c: E2 2A 00 D2 1F 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9A 70 00 00 35 04 06 00 A4 72 22 1E 02 A7 00 00 2B [07:54:10]Write i2c OK [07:54:10]MH_I2C_Read... [07:54:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:10]Read from MH i2c: E2 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: E2 03 00 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: E2 03 00 D2 1F 00 90 00 65 [07:54:10]RAPDU: 90 00 [07:54:10]wFMCommunicate OK [07:54:10]wFMCommunicate request_size=4 [07:54:10]MH_SAM_APDU [07:54:10]CAPDU: 80 0D 03 02 [07:54:10]Write to MH i2c: E2 08 00 D3 1F 80 0D 03 02 00 00 00 00 6D [07:54:10]Write i2c OK [07:54:10]MH_I2C_Read... [07:54:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:10]Read from MH i2c: E2 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: E2 0B 00 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: E2 0B 00 D3 1F 00 5E 33 9F 46 AF F6 3D F6 90 00 BC [07:54:10]RAPDU: 5E 33 9F 46 AF F6 3D F6 90 00 [07:54:10]wFMCommunicate OK [07:54:10]SAM_PROTO_SignData done [07:54:10]FM_MakeSignedData done [07:54:10]CreateOFDProtocolMessage [07:54:10]wFMCommunicate request_size=4 [07:54:10]MH_SAM_APDU [07:54:10]CAPDU: 80 11 00 00 [07:54:10]Write to MH i2c: E2 08 00 D4 1F 80 11 00 00 00 00 00 00 6D [07:54:10]Write i2c OK [07:54:10]MH_I2C_Read... [07:54:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:10]Read from MH i2c: E2 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: E2 17 00 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: E2 17 00 D4 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BC [07:54:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:54:10]wFMCommunicate OK [07:54:10]CreateOFDProtocolMessage done [07:54:10]OFDSenderStorePacket 28826 [07:54:10]StoreOFDPacket docnum=28826 [07:54:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 2C 01 00 00 46 A9 24 01 FB F4 5A 03 01 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 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 21 00 00 00 F4 03 04 00 24 3A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 98 70 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9A 70 00 00 35 04 06 00 A4 72 22 1E 02 A7 5E 33 9F 46 AF F6 3D F6 [07:54:10]CheckFolder [07:54:10]dirname=/storage/ofd_packets [07:54:10]CheckFolder done [07:54:10]ProducePacketName [07:54:10]name=ofd_packets/00028826 [07:54:10]NVStorageSaveData ofd_packets/00028826 [07:54:10]File name is /storage/ofd_packets/00028826 [07:54:10]Write 330 bytes [07:54:10]NVStorageSaveData done [07:54:10]OFDSenderStorePacket done [07:54:10]KKMCreateOFDPacket done [07:54:10]NVStorageSaveData kkm_last_timestamp [07:54:10]File name is /storage/kkm_last_timestamp [07:54:10]Write 4 bytes [07:54:10]NVStorageSaveData done [07:54:10]ExternCall_PrintAddStr [07:54:10]wPrintStart [07:54:10]Write to MH i2c: 01 00 00 D5 1F F4 [07:54:10]Write i2c OK [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: 01 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: 01 07 00 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: 01 07 00 D5 1F 00 00 00 00 00 FF 0F 09 [07:54:10]RasterBufferAndPrint [07:54:10]line Счет N : (1)347173 [07:54:10]line ИНН: 02508201610067 [07:54:10]line Контрольно-Кассовый Чек [07:54:10]line ВОЗВРАТ ПРОДАЖИ [07:54:10]line ТРК (МРК, ГНК) : 12 [07:54:10]line Товар: 2710124130 [07:54:10]line SUPER-92-К-5 [07:54:10]line 4.600 * 65.30 [07:54:10]line = 300.38 [07:54:10]line НДС 12% НСП 1% [07:54:10]line > о реализуемом товаре [07:54:10]line ОКРУГЛЕНИЕ: -0.38 [07:54:10]line ИТОГО: 300.00 [07:54:10]line НСП 1% : 2.66 [07:54:10]line НДС 12% : 31.90 [07:54:10]line Наличными: 300.00 [07:54:10]line Безнал.: 0.00 [07:54:10]line Место: АЗС № 108 "Партнер Нефть" [07:54:10]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:54:10]line СНО: Общий режим [07:54:10]line Чек 33 13.04.2024 07:54 [07:54:10]line Смена: 115 ФФД: 1.0 [07:54:10]line ЗНМ: 0300000027 [07:54:10]line РНМ: 0000138879044617 [07:54:10]line Версия ККМ: 001 [07:54:10]line ФД осн.: 28824 [07:54:10]line ФМ осн.: 0000000000963154 [07:54:10]line ФМ: 0000000000963154 [07:54:10]line ФД: 28826 [07:54:10]line ФПД: 180810105619111 [07:54:10]line 1/tax-web-control/client/api/v1/ticket?date=20240413T075412&type=2&operation_type=1&fn_number=0000000000963154&fd_number=28826&fm=180810105619111&tin=02508201610067®Number=0000138879044617&sum=30000 [07:54:10]OFD Sender: Processing packet 28826 [packets to send 8, broken 7] [07:54:10]ProducePacketName [07:54:10]name=ofd_packets/00028826 [07:54:10]OFD Sender: To server: pG, [07:54:10]CommunicateWithHost lk.salyk.kg:30040 [07:54:10]ConnectInit lk.salyk.kg [07:54:10]written 0, free lines is 4095 [07:54:10]Connected sock=10 [07:54: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 31 35 34 2C 01 00 00 46 A9 24 01 FB F4 5A 03 01 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 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 21 00 00 00 F4 03 04 00 24 3A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 98 70 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9A 70 00 00 35 04 06 00 A4 72 22 1E 02 A7 5E 33 9F 46 AF F6 3D F6 [07:54:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 08 9B 47 00 A6 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 31 35 34 10 04 04 00 9A 70 00 00 F4 03 04 00 CC E4 19 66 B6 04 01 00 00 C6 6F 29 EF A1 1D CF 31 [07:54:11]CommunicateWithHost err = 0 [07:54:11]CheckOFDResponse [07:54:11]1017 (14) - 77093643461234 [07:54:11]1041 (16) - 0000000000963154 [07:54:11]1040 (4) - 28826 [07:54:11]1012 (4) - 13.04.2024 01:50 [07:54:11]1206 (1) - 0 [07:54:11]OFD Sender: Remove packet 28826 [07:54:11]ProducePacketName [07:54:11]name=ofd_packets/00028826 [07:54:11]NVStorageDeleteData [07:54:11]Write to MH i2c: 01 00 00 FF 1F 1E [07:54:11]Write i2c OK [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: 01 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: 01 07 00 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: 01 07 00 FF 1F 00 00 00 00 00 C6 0C F7 [07:54:11]RasterBufferAndPrint [07:54:11]line [07:54:11]line [07:54:11]line [07:54:11]line [07:54:11]line [07:54:11]written 0, free lines is 3276 [07:54:11]MH_Cut [07:54:11]Write to MH i2c: D1 01 00 06 20 01 F8 [07:54:11]Write i2c OK [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: D1 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: D1 01 00 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: D1 01 00 06 20 00 F7 [07:54:11]Write to MH i2c: 01 00 00 07 20 27 [07:54:11]Write i2c OK [07:54:11]MH_I2C_Read... [07:54:11]OFD Sender: No OFD packet to send [07:54:12]*** Cut start [07:54:12]*** Partial cut [07:54:12]*** CUTSNS_PIN = 1 [07:54:12]*** CUTSNS_PIN = 0 [07:54:12]*** Brake cut motor [07:54:12]Read from MH i2c: 01 [07:54:12]MH_I2C_Read... [07:54:12]*** Stop cut motor [07:54:12]*** Cut end [07:54:12]Read from MH i2c: 01 07 00 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: 01 07 00 07 20 00 00 00 00 00 FF 0F 3C [07:54:12]process_action close_receipt done [07:54:12]requested_data is exist [07:54:12]produce_requested_data [07:54:12]requested_item fm.sn is exist - process it [07:54:12]wFMCommunicate request_size=4 [07:54:12]MH_SAM_APDU [07:54:12]CAPDU: 80 11 00 00 [07:54:12]Write to MH i2c: E2 08 00 08 20 80 11 00 00 00 00 00 00 A2 [07:54:12]Write i2c OK [07:54:12]MH_I2C_Read... [07:54:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:12]Read from MH i2c: E2 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 17 00 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 17 00 08 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F1 [07:54:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:54:12]wFMCommunicate OK [07:54:12]requested_item fd.num is exist - process it [07:54:12]SAM_PROTO_GetFieldsCounters [07:54:12]wFMCommunicate request_size=4 [07:54:12]MH_SAM_APDU [07:54:12]CAPDU: 80 13 00 00 [07:54:12]Write to MH i2c: E2 08 00 09 20 80 13 00 00 00 00 00 00 A5 [07:54:12]Write i2c OK [07:54:12]MH_I2C_Read... [07:54:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:12]Read from MH i2c: E2 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 62 00 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 62 00 09 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9A 70 00 00 0E 04 04 00 73 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 C3 [07:54: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9A 70 00 00 0E 04 04 00 73 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 [07:54:12]wFMCommunicate OK [07:54:12]SAM_PROTO_GetFieldsCounters done [07:54:12]requested_item shift.num is exist - process it [07:54:12]requested_item shift.opened is exist - process it [07:54:12]req_shift_opened [07:54:12]FM_GetShiftState [07:54:12]SAM_PROTO_GetShiftState [07:54:12]wFMCommunicate request_size=4 [07:54:12]MH_SAM_APDU [07:54:12]CAPDU: 80 13 01 00 [07:54:12]Write to MH i2c: E2 08 00 0A 20 80 13 01 00 00 00 00 00 A7 [07:54:12]Write i2c OK [07:54:12]MH_I2C_Read... [07:54:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:12]Read from MH i2c: E2 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 0E 00 [07:54:12]MH_I2C_Read... [07:54:12]Read from MH i2c: E2 0E 00 0A 20 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 C0 [07:54:12]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:54:12]wFMCommunicate OK [07:54:12]SAM_PROTO_GetShiftState done [07:54:12]FM_GetShiftState done [07:54:12]req_shift_opened done [07:54:12]requested_item shift.open_date is exist - process it [07:54:12]req_shift_open_date [07:54:12]req_shift_open_date done [07:54:12]produce_requested_data done [07:54:12]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28826,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [07:54:12]process_action_free close_receipt [07:54:12]json_value_free [07:54:12]json_value_free done [07:54:12]process_json_proto returns [07:54:12]Send response to host [07:54:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28826,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [07:54:12]free response buf [07:54:12]execute_script done [07:54:12]execute_script returns [07:54:12]free content buf [07:54:12]Sock 9.Close socket [07:54:12]Sock 9.Thread stoped [07:54:16]OFD Sender: No OFD packet to send [07:54:21]OFD Sender: No OFD packet to send [07:54:26]OFD Sender: No OFD packet to send [07:54:31]OFD Sender: No OFD packet to send [07:54:36]OFD Sender: No OFD packet to send [07:54:41]OFD Sender: No OFD packet to send [07:54:46]OFD Sender: No OFD packet to send [07:54:51]OFD Sender: No OFD packet to send [07:54:52]accept exits with 7 [07:54:52]New connection [07:54:52]New thread 3066785124 created [07:54:52]Thread 3066928484 joined [07:54:52]Waiting for new connection... [07:54:52] Sock 7.Parse request [07:54:52]Sock 7.Check first char [07:54:52]Sock 7.First char is OK [07:54:52]request: POST /json_proto HTTP/1.0 [07:54:52]Method: POST [07:54:52]URL: /json_proto [07:54:52]Method is POST - this is cgi request [07:54:52]url: /json_proto [07:54:52]query_string will be loaded in cgi processing [07:54:52]execute_cgi json_proto POST (null) [07:54:52]execute_cgi path=json_proto method=POST [07:54:52]POST find Content-Length [07:54:52]Host: 172.17.33.3:8080 [07:54:52]Content-Length: 670 [07:54:52]Content-Type: application/json [07:54:52] [07:54:52]POST finish read [07:54:52]Found Content-Length = 670 [07:54:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 3.070, "sum" : 200.47, "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" ] } } [07:54:52]execute_script... [07:54:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 3.070, "sum" : 200.47, "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" ] } } [07:54:52]POST & json_proto [07:54:52]process_json_proto [07:54:52]json parsed OK: [07:54:52]protocol is kg_v1.0 [07:54:52]action value=close_receipt [07:54:52]process_action close_receipt [07:54:52]cmd_close_receipt [07:54:52]MH_GetDate [07:54:52]Write to MH i2c: F0 00 00 0B 20 1A [07:54:52]Write i2c OK [07:54:52]MH_I2C_Read... [07:54:52]Read from MH i2c: F0 [07:54:52]MH_I2C_Read... [07:54:52]Read from MH i2c: F0 09 00 [07:54:52]MH_I2C_Read... [07:54:52]Read from MH i2c: F0 09 00 0B 20 00 4F 3A 1A 66 23 5B 8F 65 9E [07:54:52]GetLastDocTimeStamp 1712994852 [07:54:52]current date 1712994895 [07:54:52]FM_GetShiftState [07:54:52]SAM_PROTO_GetShiftState [07:54:52]wFMCommunicate request_size=4 [07:54:52]MH_SAM_APDU [07:54:52]CAPDU: 80 13 01 00 [07:54:52]Write to MH i2c: E2 08 00 0C 20 80 13 01 00 00 00 00 00 A9 [07:54:52]Write i2c OK [07:54:52]MH_I2C_Read... [07:54:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:52]Read from MH i2c: E2 [07:54:52]MH_I2C_Read... [07:54:52]Read from MH i2c: E2 0E 00 [07:54:52]MH_I2C_Read... [07:54:52]Read from MH i2c: E2 0E 00 0C 20 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 C2 [07:54:52]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:54:52]wFMCommunicate OK [07:54:52]SAM_PROTO_GetShiftState done [07:54:52]FM_GetShiftState done [07:54:52]opened in 1712967615 [07:54:52]opened+sec_in_day 1713054015 [07:54:52]quantity*price = 20047 [07:54:52]sum+1 = 20048 [07:54:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 34 13.04.2024 07:54 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28827 ФПД: 183834014603711 1/tax-web-control/client/api/v1/ticket?date=20240413T075455&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28827&fm=183834014603711&tin=02508201610067®Number=0000138879044617&sum=20000 [07:54:53]StoreToDocumentArchive [07:54:53]shift 115 fd 28827 [07:54:53]save to /storage/0115/doc_00028827 [07:54:53]save last doc name /storage/0115/doc_00028827 to /storage/kkm_last_doc_name [07:54:53]save OK [07:54:53]Clear old archive folders... [07:54:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:54:53]tlvbuf is 011A3D90 [07:54:53]SAM_PROTO_ClearQueue [07:54:53]wFMCommunicate request_size=4 [07:54:53]MH_SAM_APDU [07:54:53]CAPDU: 80 09 00 00 [07:54:53]Write to MH i2c: E2 08 00 19 20 80 09 00 00 00 00 00 00 AB [07:54:53]Write i2c OK [07:54:53]MH_I2C_Read... [07:54:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:53]Read from MH i2c: E2 [07:54:53]MH_I2C_Read... [07:54:53]Read from MH i2c: E2 03 00 [07:54:53]MH_I2C_Read... [07:54:53]Read from MH i2c: E2 03 00 19 20 00 90 00 AD [07:54:53]RAPDU: 90 00 [07:54:53]wFMCommunicate OK [07:54:53]SAM_PROTO_ClearQueue done [07:54:53]KKMCreateOFDPacket [07:54:53]OFDProtocolAddRootSTLVToBuf [07:54:53]FM_MakeSignedData [07:54:53]FM_MakeSignedData [07:54:53]SAM_PROTO_SignData [07:54:53]wFMCommunicate request_size=4 [07:54:53]MH_SAM_APDU [07:54:53]CAPDU: 80 0D 01 02 [07:54:53]Write to MH i2c: E2 08 00 1A 20 80 0D 01 02 00 00 00 00 B3 [07:54:53]Write i2c OK [07:54:53]MH_I2C_Read... [07:54:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:53]Read from MH i2c: E2 [07:54:53]MH_I2C_Read... [07:54:53]Read from MH i2c: E2 03 00 [07:54:53]MH_I2C_Read... [07:54:53]Read from MH i2c: E2 03 00 1A 20 00 90 00 AE [07:54:53]RAPDU: 90 00 [07:54:53]wFMCommunicate OK [07:54:53]wFMCommunicate request_size=255 [07:54:53]MH_SAM_APDU [07:54:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4F 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 51 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 22 00 00 00 F4 03 04 00 4F 3A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9B 70 00 00 35 04 06 00 [07:54:53]Write to MH i2c: E2 02 01 1B 20 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4F 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 51 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 22 00 00 00 F4 03 04 00 4F 3A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9B 70 00 00 35 04 06 00 00 00 54 [07:54:53]Write i2c OK [07:54:53]MH_I2C_Read... [07:54:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:53]Read from MH i2c: E2 [07:54:53]MH_I2C_Read... [07:54:53]Read from MH i2c: E2 03 00 [07:54:53]MH_I2C_Read... [07:54:53]Read from MH i2c: E2 03 00 1B 20 00 90 00 AF [07:54:53]RAPDU: 90 00 [07:54:53]wFMCommunicate OK [07:54:53]wFMCommunicate request_size=11 [07:54:53]MH_SAM_APDU [07:54:53]CAPDU: 80 0D 02 02 06 A7 32 31 23 59 BF [07:54:53]Write to MH i2c: E2 0E 00 1C 20 80 0D 02 02 06 00 A7 32 31 23 59 BF 00 00 07 [07:54:53]Write i2c OK [07:54:53]MH_I2C_Read... [07:54:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:53]Read from MH i2c: E2 [07:54:53]MH_I2C_Read... [07:54:53]Read from MH i2c: E2 03 00 [07:54:53]MH_I2C_Read... [07:54:53]Read from MH i2c: E2 03 00 1C 20 00 90 00 B0 [07:54:53]RAPDU: 90 00 [07:54:53]wFMCommunicate OK [07:54:53]wFMCommunicate request_size=4 [07:54:53]MH_SAM_APDU [07:54:53]CAPDU: 80 0D 03 02 [07:54:53]Write to MH i2c: E2 08 00 1D 20 80 0D 03 02 00 00 00 00 B8 [07:54:53]Write i2c OK [07:54:53]MH_I2C_Read... [07:54:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:53]Read from MH i2c: E2 [07:54:53]MH_I2C_Read... [07:54:53]Read from MH i2c: E2 0B 00 [07:54:53]MH_I2C_Read... [07:54:53]Read from MH i2c: E2 0B 00 1D 20 00 5A AF 85 AB A3 26 0B EE 90 00 B4 [07:54:53]RAPDU: 5A AF 85 AB A3 26 0B EE 90 00 [07:54:53]wFMCommunicate OK [07:54:53]SAM_PROTO_SignData done [07:54:53]FM_MakeSignedData done [07:54:53]CreateOFDProtocolMessage [07:54:53]wFMCommunicate request_size=4 [07:54:53]MH_SAM_APDU [07:54:53]CAPDU: 80 11 00 00 [07:54:53]Write to MH i2c: E2 08 00 1E 20 80 11 00 00 00 00 00 00 B8 [07:54:53]Write i2c OK [07:54:53]MH_I2C_Read... [07:54:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:53]Read from MH i2c: E2 [07:54:53]MH_I2C_Read... [07:54:53]Read from MH i2c: E2 17 00 [07:54:53]MH_I2C_Read... [07:54:53]Read from MH i2c: E2 17 00 1E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 07 [07:54:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:54:53]wFMCommunicate OK [07:54:53]CreateOFDProtocolMessage done [07:54:53]OFDSenderStorePacket 28827 [07:54:53]StoreOFDPacket docnum=28827 [07:54:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 F3 4C 08 01 2A 64 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4F 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 51 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 22 00 00 00 F4 03 04 00 4F 3A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9B 70 00 00 35 04 06 00 A7 32 31 23 59 BF 5A AF 85 AB A3 26 0B EE [07:54:53]CheckFolder [07:54:53]dirname=/storage/ofd_packets [07:54:53]CheckFolder done [07:54:53]ProducePacketName [07:54:53]name=ofd_packets/00028827 [07:54:53]NVStorageSaveData ofd_packets/00028827 [07:54:53]File name is /storage/ofd_packets/00028827 [07:54:53]Write 302 bytes [07:54:53]NVStorageSaveData done [07:54:53]OFDSenderStorePacket done [07:54:53]KKMCreateOFDPacket done [07:54:53]NVStorageSaveData kkm_last_timestamp [07:54:53]File name is /storage/kkm_last_timestamp [07:54:53]Write 4 bytes [07:54:53]NVStorageSaveData done [07:54:53]ExternCall_PrintAddStr [07:54:53]wPrintStart [07:54:53]Write to MH i2c: 01 00 00 1F 20 3F [07:54:53]Write i2c OK [07:54:53]MH_I2C_Read... [07:54:53]Read from MH i2c: 01 [07:54:53]MH_I2C_Read... [07:54:53]Read from MH i2c: 01 07 00 [07:54:53]MH_I2C_Read... [07:54:53]Read from MH i2c: 01 07 00 1F 20 00 00 00 00 00 FF 0F 54 [07:54:53]RasterBufferAndPrint [07:54:53]line Счет N : (1)347177 [07:54:53]line ИНН: 02508201610067 [07:54:53]line Контрольно-Кассовый Чек [07:54:53]line ПРОДАЖА [07:54:53]line ТРК (МРК, ГНК) : 41 [07:54:53]line Товар: 2710124130 [07:54:53]line SUPER-92-К-5 [07:54:53]line 3.070 * 65.30 [07:54:53]line = 200.47 [07:54:53]line НДС 12% НСП 1% [07:54:53]line > о реализуемом товаре [07:54:53]line ОКРУГЛЕНИЕ: -0.47 [07:54:53]line ИТОГО: 200.00 [07:54:53]line Внесено: 200.00 [07:54:53]line СДАЧА: 0.00 [07:54:53]line НСП 1% : 1.77 [07:54:53]line НДС 12% : 21.29 [07:54:53]line Наличными: 200.00 [07:54:53]line Безнал.: 0.00 [07:54:53]line Место: АЗС № 108 "Партнер Нефть" [07:54:53]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:54:53]line СНО: Общий режим [07:54:53]line Чек 34 13.04.2024 07:54 [07:54:53]line Смена: 115 ФФД: 1.0 [07:54:53]line ЗНМ: 0300000027 [07:54:53]line РНМ: 0000138879044617 [07:54:53]line Версия ККМ: 001 [07:54:53]line ФМ: 0000000000963154 [07:54:53]line ФД: 28827 [07:54:53]line ФПД: 183834014603711 [07:54:53]line 1/tax-web-control/client/api/v1/ticket?date=20240413T075455&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28827&fm=183834014603711&tin=02508201610067®Number=0000138879044617&sum=20000 [07:54:54]OFD Sender: Processing packet 28827 [packets to send 8, broken 7] [07:54:54]ProducePacketName [07:54:54]name=ofd_packets/00028827 [07:54:54]OFD Sender: To server: pG, [07:54:54]CommunicateWithHost lk.salyk.kg:30040 [07:54:54]ConnectInit lk.salyk.kg [07:54:54]written 0, free lines is 4095 [07:54:54]Connected sock=10 [07:54:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 F3 4C 08 01 2A 64 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4F 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 51 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 22 00 00 00 F4 03 04 00 4F 3A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9B 70 00 00 35 04 06 00 A7 32 31 23 59 BF 5A AF 85 AB A3 26 0B EE [07:54:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F3 4D 47 00 20 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 31 35 34 10 04 04 00 9B 70 00 00 F4 03 04 00 F7 E4 19 66 B6 04 01 00 00 AF E5 30 08 EB 69 51 17 [07:54:54]CommunicateWithHost err = 0 [07:54:54]CheckOFDResponse [07:54:54]1017 (14) - 77093643461234 [07:54:54]1041 (16) - 0000000000963154 [07:54:54]1040 (4) - 28827 [07:54:54]1012 (4) - 13.04.2024 01:50 [07:54:54]1206 (1) - 0 [07:54:54]OFD Sender: Remove packet 28827 [07:54:54]ProducePacketName [07:54:54]name=ofd_packets/00028827 [07:54:54]NVStorageDeleteData [07:54:54]Write to MH i2c: 01 00 00 49 20 69 [07:54:54]Write i2c OK [07:54:54]MH_I2C_Read... [07:54:54]Read from MH i2c: 01 [07:54:54]MH_I2C_Read... [07:54:54]Read from MH i2c: 01 07 00 [07:54:54]MH_I2C_Read... [07:54:54]Read from MH i2c: 01 07 00 49 20 00 00 00 00 00 CD 0C 49 [07:54:54]RasterBufferAndPrint [07:54:54]line [07:54:54]line [07:54:54]line [07:54:54]line [07:54:54]line [07:54:54]written 0, free lines is 3283 [07:54:54]MH_Cut [07:54:54]Write to MH i2c: D1 01 00 50 20 01 42 [07:54:54]Write i2c OK [07:54:54]MH_I2C_Read... [07:54:54]Read from MH i2c: D1 [07:54:54]MH_I2C_Read... [07:54:54]Read from MH i2c: D1 01 00 [07:54:54]MH_I2C_Read... [07:54:54]Read from MH i2c: D1 01 00 50 20 00 41 [07:54:54]Write to MH i2c: 01 00 00 51 20 71 [07:54:54]Write i2c OK [07:54:54]MH_I2C_Read... [07:54:54]OFD Sender: No OFD packet to send [07:54:55]*** Cut start [07:54:55]*** Partial cut [07:54:55]*** CUTSNS_PIN = 1 [07:54:55]*** CUTSNS_PIN = 0 [07:54:55]*** Brake cut motor [07:54:56]Read from MH i2c: 01 [07:54:56]MH_I2C_Read... [07:54:56]*** Stop cut motor [07:54:56]*** Cut end [07:54:56]Read from MH i2c: 01 07 00 [07:54:56]MH_I2C_Read... [07:54:56]Read from MH i2c: 01 07 00 51 20 00 00 00 00 00 FF 0F 86 [07:54:56]process_action close_receipt done [07:54:56]requested_data is exist [07:54:56]produce_requested_data [07:54:56]requested_item fm.sn is exist - process it [07:54:56]wFMCommunicate request_size=4 [07:54:56]MH_SAM_APDU [07:54:56]CAPDU: 80 11 00 00 [07:54:56]Write to MH i2c: E2 08 00 52 20 80 11 00 00 00 00 00 00 EC [07:54:56]Write i2c OK [07:54:56]MH_I2C_Read... [07:54:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:56]Read from MH i2c: E2 [07:54:56]MH_I2C_Read... [07:54:56]Read from MH i2c: E2 17 00 [07:54:56]MH_I2C_Read... [07:54:56]Read from MH i2c: E2 17 00 52 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3B [07:54:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:54:56]wFMCommunicate OK [07:54:56]requested_item fd.num is exist - process it [07:54:56]SAM_PROTO_GetFieldsCounters [07:54:56]wFMCommunicate request_size=4 [07:54:56]MH_SAM_APDU [07:54:56]CAPDU: 80 13 00 00 [07:54:56]Write to MH i2c: E2 08 00 53 20 80 13 00 00 00 00 00 00 EF [07:54:56]Write i2c OK [07:54:56]MH_I2C_Read... [07:54:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:56]Read from MH i2c: E2 [07:54:56]MH_I2C_Read... [07:54:56]Read from MH i2c: E2 62 00 [07:54:56]MH_I2C_Read... [07:54:56]Read from MH i2c: E2 62 00 53 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9B 70 00 00 0E 04 04 00 73 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 11 [07:54:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9B 70 00 00 0E 04 04 00 73 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 [07:54:56]wFMCommunicate OK [07:54:56]SAM_PROTO_GetFieldsCounters done [07:54:56]requested_item shift.num is exist - process it [07:54:56]requested_item shift.opened is exist - process it [07:54:56]req_shift_opened [07:54:56]FM_GetShiftState [07:54:56]SAM_PROTO_GetShiftState [07:54:56]wFMCommunicate request_size=4 [07:54:56]MH_SAM_APDU [07:54:56]CAPDU: 80 13 01 00 [07:54:56]Write to MH i2c: E2 08 00 54 20 80 13 01 00 00 00 00 00 F1 [07:54:56]Write i2c OK [07:54:56]MH_I2C_Read... [07:54:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:56]Read from MH i2c: E2 [07:54:56]MH_I2C_Read... [07:54:56]Read from MH i2c: E2 0E 00 [07:54:56]MH_I2C_Read... [07:54:56]Read from MH i2c: E2 0E 00 54 20 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 0A [07:54:56]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:54:56]wFMCommunicate OK [07:54:56]SAM_PROTO_GetShiftState done [07:54:56]FM_GetShiftState done [07:54:56]req_shift_opened done [07:54:56]requested_item shift.open_date is exist - process it [07:54:56]req_shift_open_date [07:54:56]req_shift_open_date done [07:54:56]produce_requested_data done [07:54:56]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28827,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [07:54:56]process_action_free close_receipt [07:54:56]json_value_free [07:54:56]json_value_free done [07:54:56]process_json_proto returns [07:54:56]Send response to host [07:54:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28827,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [07:54:56]free response buf [07:54:56]execute_script done [07:54:56]execute_script returns [07:54:56]free content buf [07:54:56]Sock 7.Close socket [07:54:56]Sock 7.Thread stoped [07:54:59]OFD Sender: No OFD packet to send [07:55:02]int [07:55:02]Write to MH i2c: 01 00 00 55 20 75 [07:55:02]*** FLAG_PRN_KEY set [07:55:02]Write i2c OK [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 07 00 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 07 00 55 20 00 08 00 00 00 FF 0F 92 [07:55:02]state=0 [07:55:02]Key pressed [07:55:02]Feed [07:55:02]Write to MH i2c: D8 00 00 56 20 4D [07:55:02]*** FLAG_PRN_KEY reset [07:55:02]Write i2c OK [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: D8 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: D8 01 00 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: D8 01 00 56 20 00 4E [07:55:02]int line is 0 - check status [07:55:02]Write to MH i2c: 01 00 00 57 20 77 [07:55:02]Write i2c OK [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 07 00 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 07 00 57 20 00 00 00 00 00 F5 0F 82 [07:55:02]state=2 [07:55:02]Stop feed [07:55:02]int [07:55:02]Write to MH i2c: 01 00 00 58 20 78 [07:55:02]Write i2c OK [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 07 00 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 07 00 58 20 00 00 00 00 00 F5 0F 83 [07:55:02]state=0 [07:55:02]int [07:55:02]Write to MH i2c: 01 00 00 59 20 79 [07:55:02]*** FLAG_PRN_KEY set [07:55:02]Write i2c OK [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 07 00 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 07 00 59 20 00 08 00 00 00 F5 0F 8C [07:55:02]state=0 [07:55:02]Key pressed [07:55:02]Feed [07:55:02]Write to MH i2c: D8 00 00 5A 20 51 [07:55:02]Write i2c OK [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: D8 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: D8 01 00 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: D8 01 00 5A 20 00 52 [07:55:02]int [07:55:02]Write to MH i2c: 01 00 00 5B 20 7B [07:55:02]Write i2c OK [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 07 00 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 07 00 5B 20 00 48 00 00 00 3C 00 06 [07:55:02]state=2 [07:55:02]Key pressed [07:55:02]int [07:55:02]Write to MH i2c: 01 00 00 5C 20 7C [07:55:02]*** FLAG_PRN_KEY reset [07:55:02]Write i2c OK [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 07 00 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 07 00 5C 20 00 00 00 00 00 FA 0F 8C [07:55:02]state=2 [07:55:02]Stop feed [07:55:02]int [07:55:02]Write to MH i2c: 01 00 00 5D 20 7D [07:55:02]*** FLAG_PRN_KEY set [07:55:02]Write i2c OK [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 07 00 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 07 00 5D 20 00 08 00 00 00 FF 0F 9A [07:55:02]state=0 [07:55:02]Key pressed [07:55:02]Feed [07:55:02]Write to MH i2c: D8 00 00 5E 20 55 [07:55:02]Write i2c OK [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: D8 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: D8 01 00 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: D8 01 00 5E 20 00 56 [07:55:02]int [07:55:02]Write to MH i2c: 01 00 00 5F 20 7F [07:55:02]Write i2c OK [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 07 00 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 07 00 5F 20 00 48 00 00 00 3C 00 0A [07:55:02]state=2 [07:55:02]Key pressed [07:55:02]int [07:55:02]Write to MH i2c: 01 00 00 60 20 80 [07:55:02]*** FLAG_PRN_KEY reset [07:55:02]Write i2c OK [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 07 00 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 07 00 60 20 00 00 00 00 00 F6 0F 8C [07:55:02]state=2 [07:55:02]Stop feed [07:55:02]int [07:55:02]Write to MH i2c: 01 00 00 61 20 81 [07:55:02]*** FLAG_PRN_KEY set [07:55:02]Write i2c OK [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 07 00 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 07 00 61 20 00 08 00 00 00 FF 0F 9E [07:55:02]state=0 [07:55:02]Key pressed [07:55:02]Feed [07:55:02]Write to MH i2c: D8 00 00 62 20 59 [07:55:02]Write i2c OK [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: D8 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: D8 01 00 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: D8 01 00 62 20 00 5A [07:55:02]int [07:55:02]Write to MH i2c: 01 00 00 63 20 83 [07:55:02]Write i2c OK [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 07 00 [07:55:02]MH_I2C_Read... [07:55:02]Read from MH i2c: 01 07 00 63 20 00 48 00 00 00 3C 00 0E [07:55:02]state=2 [07:55:02]Key pressed [07:55:03]int [07:55:03]Write to MH i2c: 01 00 00 64 20 84 [07:55:03]*** FLAG_PRN_KEY reset [07:55:03]Write i2c OK [07:55:03]MH_I2C_Read... [07:55:03]Read from MH i2c: 01 [07:55:03]MH_I2C_Read... [07:55:03]Read from MH i2c: 01 07 00 [07:55:03]MH_I2C_Read... [07:55:03]Read from MH i2c: 01 07 00 64 20 00 00 00 00 00 F6 0F 90 [07:55:03]state=2 [07:55:03]Stop feed [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]accept exits with 9 [07:55:29]New connection [07:55:29]New thread 3066928484 created [07:55:29]Thread 3066785124 joined [07:55:29]Waiting for new connection... [07:55:29] Sock 9.Parse request [07:55:29]Sock 9.Check first char [07:55:29]Sock 9.First char is OK [07:55:29]request: POST /json_proto HTTP/1.0 [07:55:29]Method: POST [07:55:29]URL: /json_proto [07:55:29]Method is POST - this is cgi request [07:55:29]url: /json_proto [07:55:29]query_string will be loaded in cgi processing [07:55:29]execute_cgi json_proto POST (null) [07:55:29]execute_cgi path=json_proto method=POST [07:55:29]POST find Content-Length [07:55:29]Host: 172.17.33.3:8080 [07:55:29]Content-Length: 670 [07:55:29]Content-Type: application/json [07:55:29] [07:55:29]POST finish read [07:55:29]Found Content-Length = 670 [07:55:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 6.130, "sum" : 400.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:55:29]execute_script... [07:55:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 6.130, "sum" : 400.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:55:29]POST & json_proto [07:55:29]process_json_proto [07:55:29]json parsed OK: [07:55:29]protocol is kg_v1.0 [07:55:29]action value=close_receipt [07:55:29]process_action close_receipt [07:55:29]cmd_close_receipt [07:55:29]MH_GetDate [07:55:29]Write to MH i2c: F0 00 00 65 20 74 [07:55:29]Write i2c OK [07:55:29]MH_I2C_Read... [07:55:29]Read from MH i2c: F0 [07:55:29]MH_I2C_Read... [07:55:29]Read from MH i2c: F0 09 00 [07:55:29]MH_I2C_Read... [07:55:29]Read from MH i2c: F0 09 00 65 20 00 74 3A 1A 66 23 5B 8F 65 1D [07:55:29]GetLastDocTimeStamp 1712994895 [07:55:29]current date 1712994932 [07:55:29]FM_GetShiftState [07:55:29]SAM_PROTO_GetShiftState [07:55:29]wFMCommunicate request_size=4 [07:55:29]MH_SAM_APDU [07:55:29]CAPDU: 80 13 01 00 [07:55:29]Write to MH i2c: E2 08 00 66 20 80 13 01 00 00 00 00 00 03 [07:55:29]Write i2c OK [07:55:29]MH_I2C_Read... [07:55:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:29]Read from MH i2c: E2 [07:55:29]MH_I2C_Read... [07:55:29]Read from MH i2c: E2 0E 00 [07:55:29]MH_I2C_Read... [07:55:29]Read from MH i2c: E2 0E 00 66 20 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 1C [07:55:29]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:55:29]wFMCommunicate OK [07:55:29]SAM_PROTO_GetShiftState done [07:55:29]FM_GetShiftState done [07:55:29]opened in 1712967615 [07:55:29]opened+sec_in_day 1713054015 [07:55:29]quantity*price = 40028 [07:55:29]sum+1 = 40030 [07:55:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.51 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 35 13.04.2024 07:55 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28828 ФПД: 146046436327356 1/tax-web-control/client/api/v1/ticket?date=20240413T075532&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28828&fm=146046436327356&tin=02508201610067®Number=0000138879044617&sum=40000 [07:55:30]StoreToDocumentArchive [07:55:30]shift 115 fd 28828 [07:55:30]save to /storage/0115/doc_00028828 [07:55:30]save last doc name /storage/0115/doc_00028828 to /storage/kkm_last_doc_name [07:55:30]save OK [07:55:30]Clear old archive folders... [07:55:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:55:30]tlvbuf is 0121DDD0 [07:55:30]SAM_PROTO_ClearQueue [07:55:30]wFMCommunicate request_size=4 [07:55:30]MH_SAM_APDU [07:55:30]CAPDU: 80 09 00 00 [07:55:30]Write to MH i2c: E2 08 00 73 20 80 09 00 00 00 00 00 00 05 [07:55:30]Write i2c OK [07:55:30]MH_I2C_Read... [07:55:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:55:30]Read from MH i2c: E2 [07:55:30]MH_I2C_Read... [07:55:30]Read from MH i2c: E2 03 00 [07:55:30]MH_I2C_Read... [07:55:30]Read from MH i2c: E2 03 00 73 20 00 90 00 07 [07:55:30]RAPDU: 90 00 [07:55:30]wFMCommunicate OK [07:55:30]SAM_PROTO_ClearQueue done [07:55:30]KKMCreateOFDPacket [07:55:30]OFDProtocolAddRootSTLVToBuf [07:55:30]FM_MakeSignedData [07:55:30]FM_MakeSignedData [07:55:30]SAM_PROTO_SignData [07:55:30]wFMCommunicate request_size=4 [07:55:30]MH_SAM_APDU [07:55:30]CAPDU: 80 0D 01 02 [07:55:30]Write to MH i2c: E2 08 00 74 20 80 0D 01 02 00 00 00 00 0D [07:55:30]Write i2c OK [07:55:30]MH_I2C_Read... [07:55:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:55:30]Read from MH i2c: E2 [07:55:30]MH_I2C_Read... [07:55:30]Read from MH i2c: E2 03 00 [07:55:30]MH_I2C_Read... [07:55:30]Read from MH i2c: E2 03 00 74 20 00 90 00 08 [07:55:30]RAPDU: 90 00 [07:55:30]wFMCommunicate OK [07:55:30]wFMCommunicate request_size=255 [07:55:30]MH_SAM_APDU [07:55:30]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 5D 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 23 00 00 00 F4 03 04 00 74 3A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9C 70 00 00 35 04 06 00 [07:55:30]Write to MH i2c: E2 02 01 75 20 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 5D 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 23 00 00 00 F4 03 04 00 74 3A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9C 70 00 00 35 04 06 00 00 00 11 [07:55:30]Write i2c OK [07:55:30]MH_I2C_Read... [07:55:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:30]Read from MH i2c: E2 [07:55:30]MH_I2C_Read... [07:55:30]Read from MH i2c: E2 03 00 [07:55:30]MH_I2C_Read... [07:55:30]Read from MH i2c: E2 03 00 75 20 00 90 00 09 [07:55:30]RAPDU: 90 00 [07:55:30]wFMCommunicate OK [07:55:30]wFMCommunicate request_size=11 [07:55:30]MH_SAM_APDU [07:55:30]CAPDU: 80 0D 02 02 06 84 D4 15 F5 3F BC [07:55:30]Write to MH i2c: E2 0E 00 76 20 80 0D 02 02 06 00 84 D4 15 F5 3F BC 00 00 79 [07:55:30]Write i2c OK [07:55:30]MH_I2C_Read... [07:55:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:30]Read from MH i2c: E2 [07:55:30]MH_I2C_Read... [07:55:30]Read from MH i2c: E2 03 00 [07:55:30]MH_I2C_Read... [07:55:30]Read from MH i2c: E2 03 00 76 20 00 90 00 0A [07:55:30]RAPDU: 90 00 [07:55:30]wFMCommunicate OK [07:55:30]wFMCommunicate request_size=4 [07:55:30]MH_SAM_APDU [07:55:30]CAPDU: 80 0D 03 02 [07:55:30]Write to MH i2c: E2 08 00 77 20 80 0D 03 02 00 00 00 00 12 [07:55:30]Write i2c OK [07:55:30]MH_I2C_Read... [07:55:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:55:30]Read from MH i2c: E2 [07:55:30]MH_I2C_Read... [07:55:30]Read from MH i2c: E2 0B 00 [07:55:30]MH_I2C_Read... [07:55:30]Read from MH i2c: E2 0B 00 77 20 00 AC D4 3A DF 73 20 54 D9 90 00 6C [07:55:30]RAPDU: AC D4 3A DF 73 20 54 D9 90 00 [07:55:30]wFMCommunicate OK [07:55:30]SAM_PROTO_SignData done [07:55:30]FM_MakeSignedData done [07:55:30]CreateOFDProtocolMessage [07:55:30]wFMCommunicate request_size=4 [07:55:30]MH_SAM_APDU [07:55:30]CAPDU: 80 11 00 00 [07:55:30]Write to MH i2c: E2 08 00 78 20 80 11 00 00 00 00 00 00 12 [07:55:30]Write i2c OK [07:55:30]MH_I2C_Read... [07:55:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:30]Read from MH i2c: E2 [07:55:30]MH_I2C_Read... [07:55:30]Read from MH i2c: E2 17 00 [07:55:30]MH_I2C_Read... [07:55:30]Read from MH i2c: E2 17 00 78 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 61 [07:55:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:55:30]wFMCommunicate OK [07:55:30]CreateOFDProtocolMessage done [07:55:30]OFDSenderStorePacket 28828 [07:55:30]StoreOFDPacket docnum=28828 [07:55:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 D5 4D 08 01 6E 5B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 5D 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 23 00 00 00 F4 03 04 00 74 3A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9C 70 00 00 35 04 06 00 84 D4 15 F5 3F BC AC D4 3A DF 73 20 54 D9 [07:55:30]CheckFolder [07:55:30]dirname=/storage/ofd_packets [07:55:30]CheckFolder done [07:55:30]ProducePacketName [07:55:30]name=ofd_packets/00028828 [07:55:30]NVStorageSaveData ofd_packets/00028828 [07:55:30]File name is /storage/ofd_packets/00028828 [07:55:30]Write 302 bytes [07:55:30]NVStorageSaveData done [07:55:30]OFDSenderStorePacket done [07:55:30]KKMCreateOFDPacket done [07:55:30]NVStorageSaveData kkm_last_timestamp [07:55:30]File name is /storage/kkm_last_timestamp [07:55:30]Write 4 bytes [07:55:30]NVStorageSaveData done [07:55:30]ExternCall_PrintAddStr [07:55:30]wPrintStart [07:55:30]Write to MH i2c: 01 00 00 79 20 99 [07:55:30]Write i2c OK [07:55:30]MH_I2C_Read... [07:55:30]Read from MH i2c: 01 [07:55:30]MH_I2C_Read... [07:55:30]Read from MH i2c: 01 07 00 [07:55:30]MH_I2C_Read... [07:55:30]Read from MH i2c: 01 07 00 79 20 00 00 00 00 00 FF 0F AE [07:55:30]RasterBufferAndPrint [07:55:30]line Счет N : (1)347174 [07:55:30]line ИНН: 02508201610067 [07:55:30]line Контрольно-Кассовый Чек [07:55:30]line ПРОДАЖА [07:55:30]line ТРК (МРК, ГНК) : 22 [07:55:30]line Товар: 2710124130 [07:55:30]line SUPER-92-К-5 [07:55:30]line 6.130 * 65.30 [07:55:30]line = 400.29 [07:55:30]line НДС 12% НСП 1% [07:55:30]line > о реализуемом товаре [07:55:30]line ОКРУГЛЕНИЕ: -0.29 [07:55:30]line ИТОГО: 400.00 [07:55:30]line Внесено: 400.00 [07:55:30]line СДАЧА: 0.00 [07:55:30]line НСП 1% : 3.54 [07:55:30]line НДС 12% : 42.51 [07:55:30]line Наличными: 400.00 [07:55:30]line Безнал.: 0.00 [07:55:30]line Место: АЗС № 108 "Партнер Нефть" [07:55:30]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:55:30]line СНО: Общий режим [07:55:30]line Чек 35 13.04.2024 07:55 [07:55:30]line Смена: 115 ФФД: 1.0 [07:55:30]line ЗНМ: 0300000027 [07:55:30]line РНМ: 0000138879044617 [07:55:30]line Версия ККМ: 001 [07:55:30]line ФМ: 0000000000963154 [07:55:30]line ФД: 28828 [07:55:30]line ФПД: 146046436327356 [07:55:30]line 1/tax-web-control/client/api/v1/ticket?date=20240413T075532&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28828&fm=146046436327356&tin=02508201610067®Number=0000138879044617&sum=40000 [07:55:31]OFD Sender: Processing packet 28828 [packets to send 8, broken 7] [07:55:31]ProducePacketName [07:55:31]name=ofd_packets/00028828 [07:55:31]OFD Sender: To server: pG, [07:55:31]CommunicateWithHost lk.salyk.kg:30040 [07:55:31]ConnectInit lk.salyk.kg [07:55:31]written 0, free lines is 4095 [07:55:31]Connected sock=10 [07:55:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 D5 4D 08 01 6E 5B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 5D 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 23 00 00 00 F4 03 04 00 74 3A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9C 70 00 00 35 04 06 00 84 D4 15 F5 3F BC AC D4 3A DF 73 20 54 D9 [07:55:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DD 05 47 00 38 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 31 35 34 10 04 04 00 9C 70 00 00 F4 03 04 00 1C E5 19 66 B6 04 01 00 00 98 36 2B 82 E5 BB 98 49 [07:55:31]CommunicateWithHost err = 0 [07:55:31]CheckOFDResponse [07:55:31]1017 (14) - 77093643461234 [07:55:31]1041 (16) - 0000000000963154 [07:55:31]1040 (4) - 28828 [07:55:31]1012 (4) - 13.04.2024 01:51 [07:55:31]1206 (1) - 0 [07:55:31]OFD Sender: Remove packet 28828 [07:55:31]ProducePacketName [07:55:31]name=ofd_packets/00028828 [07:55:31]NVStorageDeleteData [07:55:31]Write to MH i2c: 01 00 00 A3 20 C3 [07:55:31]Write i2c OK [07:55:31]MH_I2C_Read... [07:55:31]Read from MH i2c: 01 [07:55:31]MH_I2C_Read... [07:55:31]Read from MH i2c: 01 07 00 [07:55:31]MH_I2C_Read... [07:55:31]Read from MH i2c: 01 07 00 A3 20 00 00 00 00 00 CE 0C A4 [07:55:31]RasterBufferAndPrint [07:55:31]line [07:55:31]line [07:55:31]line [07:55:31]line [07:55:31]line [07:55:31]written 0, free lines is 3284 [07:55:31]MH_Cut [07:55:31]Write to MH i2c: D1 01 00 AA 20 01 9C [07:55:31]Write i2c OK [07:55:31]MH_I2C_Read... [07:55:31]Read from MH i2c: D1 [07:55:31]MH_I2C_Read... [07:55:31]Read from MH i2c: D1 01 00 [07:55:31]MH_I2C_Read... [07:55:31]Read from MH i2c: D1 01 00 AA 20 00 9B [07:55:31]Write to MH i2c: 01 00 00 AB 20 CB [07:55:31]Write i2c OK [07:55:31]MH_I2C_Read... [07:55:31]OFD Sender: No OFD packet to send [07:55:32]*** Cut start [07:55:32]*** Partial cut [07:55:32]*** CUTSNS_PIN = 1 [07:55:32]*** CUTSNS_PIN = 0 [07:55:32]*** Brake cut motor [07:55:32]Read from MH i2c: 01 [07:55:32]MH_I2C_Read... [07:55:32]*** Stop cut motor [07:55:32]*** Cut end [07:55:32]Read from MH i2c: 01 07 00 [07:55:32]MH_I2C_Read... [07:55:32]Read from MH i2c: 01 07 00 AB 20 00 00 00 00 00 FF 0F E0 [07:55:32]process_action close_receipt done [07:55:32]requested_data is exist [07:55:32]produce_requested_data [07:55:32]requested_item fm.sn is exist - process it [07:55:32]wFMCommunicate request_size=4 [07:55:32]MH_SAM_APDU [07:55:32]CAPDU: 80 11 00 00 [07:55:32]Write to MH i2c: E2 08 00 AC 20 80 11 00 00 00 00 00 00 46 [07:55:32]Write i2c OK [07:55:32]MH_I2C_Read... [07:55:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:33]Read from MH i2c: E2 [07:55:33]MH_I2C_Read... [07:55:33]Read from MH i2c: E2 17 00 [07:55:33]MH_I2C_Read... [07:55:33]Read from MH i2c: E2 17 00 AC 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 95 [07:55:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:55:33]wFMCommunicate OK [07:55:33]requested_item fd.num is exist - process it [07:55:33]SAM_PROTO_GetFieldsCounters [07:55:33]wFMCommunicate request_size=4 [07:55:33]MH_SAM_APDU [07:55:33]CAPDU: 80 13 00 00 [07:55:33]Write to MH i2c: E2 08 00 AD 20 80 13 00 00 00 00 00 00 49 [07:55:33]Write i2c OK [07:55:33]MH_I2C_Read... [07:55:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:55:33]Read from MH i2c: E2 [07:55:33]MH_I2C_Read... [07:55:33]Read from MH i2c: E2 62 00 [07:55:33]MH_I2C_Read... [07:55:33]Read from MH i2c: E2 62 00 AD 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9C 70 00 00 0E 04 04 00 73 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 6F [07:55:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9C 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:55:33]wFMCommunicate OK [07:55:33]SAM_PROTO_GetFieldsCounters done [07:55:33]requested_item shift.num is exist - process it [07:55:33]requested_item shift.opened is exist - process it [07:55:33]req_shift_opened [07:55:33]FM_GetShiftState [07:55:33]SAM_PROTO_GetShiftState [07:55:33]wFMCommunicate request_size=4 [07:55:33]MH_SAM_APDU [07:55:33]CAPDU: 80 13 01 00 [07:55:33]Write to MH i2c: E2 08 00 AE 20 80 13 01 00 00 00 00 00 4B [07:55:33]Write i2c OK [07:55:33]MH_I2C_Read... [07:55:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:33]Read from MH i2c: E2 [07:55:33]MH_I2C_Read... [07:55:33]Read from MH i2c: E2 0E 00 [07:55:33]MH_I2C_Read... [07:55:33]Read from MH i2c: E2 0E 00 AE 20 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 64 [07:55:33]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:55:33]wFMCommunicate OK [07:55:33]SAM_PROTO_GetShiftState done [07:55:33]FM_GetShiftState done [07:55:33]req_shift_opened done [07:55:33]requested_item shift.open_date is exist - process it [07:55:33]req_shift_open_date [07:55:33]req_shift_open_date done [07:55:33]produce_requested_data done [07:55:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28828,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [07:55:33]process_action_free close_receipt [07:55:33]json_value_free [07:55:33]json_value_free done [07:55:33]process_json_proto returns [07:55:33]Send response to host [07:55:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28828,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [07:55:33]free response buf [07:55:33]execute_script done [07:55:33]execute_script returns [07:55:33]free content buf [07:55:33]Sock 9.Close socket [07:55:33]Sock 9.Thread stoped [07:55:34]int [07:55:34]Write to MH i2c: 01 00 00 AF 20 CF [07:55:34]*** FLAG_PRN_KEY set [07:55:34]Write i2c OK [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: 01 [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: 01 07 00 [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: 01 07 00 AF 20 00 08 00 00 00 FF 0F EC [07:55:34]state=0 [07:55:34]Key pressed [07:55:34]Feed [07:55:34]Write to MH i2c: D8 00 00 B0 20 A7 [07:55:34]Write i2c OK [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: D8 [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: D8 01 00 [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: D8 01 00 B0 20 00 A8 [07:55:34]int [07:55:34]Write to MH i2c: 01 00 00 B1 20 D1 [07:55:34]Write i2c OK [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: 01 [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: 01 07 00 [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: 01 07 00 B1 20 00 48 00 00 00 3C 00 5C [07:55:34]state=2 [07:55:34]Key pressed [07:55:34]int [07:55:34]Write to MH i2c: 01 00 00 B2 20 D2 [07:55:34]*** FLAG_PRN_KEY reset [07:55:34]Write i2c OK [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: 01 [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: 01 07 00 [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: 01 07 00 B2 20 00 00 00 00 00 F9 0F E1 [07:55:34]state=2 [07:55:34]Stop feed [07:55:34]accept exits with 7 [07:55:34]New connection [07:55:34]New thread 3066785124 created [07:55:34]Thread 3066928484 joined [07:55:34]Waiting for new connection... [07:55:34] Sock 7.Parse request [07:55:34]Sock 7.Check first char [07:55:34]Sock 7.First char is OK [07:55:34]request: POST /json_proto HTTP/1.0 [07:55:34]Method: POST [07:55:34]URL: /json_proto [07:55:34]Method is POST - this is cgi request [07:55:34]url: /json_proto [07:55:34]query_string will be loaded in cgi processing [07:55:34]execute_cgi json_proto POST (null) [07:55:34]execute_cgi path=json_proto method=POST [07:55:34]POST find Content-Length [07:55:34]Host: 172.17.33.3:8080 [07:55:34]Content-Length: 675 [07:55:34]Content-Type: application/json [07:55:34] [07:55:34]POST finish read [07:55:34]Found Content-Length = 675 [07:55:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:55:34]execute_script... [07:55: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)347176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:55:34]POST & json_proto [07:55:34]process_json_proto [07:55:34]json parsed OK: [07:55:34]protocol is kg_v1.0 [07:55:34]action value=close_receipt [07:55:34]process_action close_receipt [07:55:34]cmd_close_receipt [07:55:34]MH_GetDate [07:55:34]Write to MH i2c: F0 00 00 B3 20 C2 [07:55:34]*** FLAG_PRN_KEY set [07:55:34]int [07:55:34]Write i2c OK [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: F0 [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: F0 09 00 [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: F0 09 00 B3 20 00 7A 3A 1A 66 23 5B 8F 65 71 [07:55:34]GetLastDocTimeStamp 1712994932 [07:55:34]current date 1712994938 [07:55:34]FM_GetShiftState [07:55:34]SAM_PROTO_GetShiftState [07:55:34]wFMCommunicate request_size=4 [07:55:34]MH_SAM_APDU [07:55:34]CAPDU: 80 13 01 00 [07:55:34]Write to MH i2c: E2 08 00 B4 20 80 13 01 00 00 00 00 00 51 [07:55:34]Write i2c OK [07:55:34]MH_I2C_Read... [07:55:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:34]Read from MH i2c: E2 [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: E2 0E 00 [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: E2 0E 00 B4 20 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 6A [07:55:34]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:55:34]wFMCommunicate OK [07:55:34]SAM_PROTO_GetShiftState done [07:55:34]FM_GetShiftState done [07:55:34]opened in 1712967615 [07:55:34]opened+sec_in_day 1713054015 [07:55:34]quantity*price = 100039 [07:55:34]sum+1 = 100041 [07:55:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 36 13.04.2024 07:55 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28829 ФПД: 256887864113874 1/tax-web-control/client/api/v1/ticket?date=20240413T075538&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28829&fm=256887864113874&tin=02508201610067®Number=0000138879044617&sum=100000 [07:55:36]StoreToDocumentArchive [07:55:36]shift 115 fd 28829 [07:55:36]save to /storage/0115/doc_00028829 [07:55:36]save last doc name /storage/0115/doc_00028829 to /storage/kkm_last_doc_name [07:55:36]save OK [07:55:36]Clear old archive folders... [07:55:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:55:36]tlvbuf is B6ED4640 [07:55:36]SAM_PROTO_ClearQueue [07:55:36]wFMCommunicate request_size=4 [07:55:36]MH_SAM_APDU [07:55:36]CAPDU: 80 09 00 00 [07:55:36]Write to MH i2c: E2 08 00 C6 20 80 09 00 00 00 00 00 00 58 [07:55:36]Write i2c OK [07:55:36]MH_I2C_Read... [07:55:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:55:36]Read from MH i2c: E2 [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: E2 03 00 [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: E2 03 00 C6 20 00 90 00 5A [07:55:36]RAPDU: 90 00 [07:55:36]wFMCommunicate OK [07:55:36]SAM_PROTO_ClearQueue done [07:55:36]KKMCreateOFDPacket [07:55:36]OFDProtocolAddRootSTLVToBuf [07:55:36]FM_MakeSignedData [07:55:36]FM_MakeSignedData [07:55:36]SAM_PROTO_SignData [07:55:36]wFMCommunicate request_size=4 [07:55:36]MH_SAM_APDU [07:55:36]CAPDU: 80 0D 01 02 [07:55:36]Write to MH i2c: E2 08 00 C7 20 80 0D 01 02 00 00 00 00 60 [07:55:36]Write i2c OK [07:55:36]MH_I2C_Read... [07:55:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:55:36]Read from MH i2c: E2 [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: E2 03 00 [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: E2 03 00 C7 20 00 90 00 5B [07:55:36]RAPDU: 90 00 [07:55:36]wFMCommunicate OK [07:55:36]wFMCommunicate request_size=255 [07:55:36]MH_SAM_APDU [07:55:36]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 7A 3A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9D 70 00 00 35 04 06 00 [07:55:36]Write to MH i2c: E2 02 01 C8 20 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E int [07:55:36]00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 7A 3A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9D 70 00 00 35 04 06 00 00 00 75 [07:55:36]*** FLAG_PRN_KEY set [07:55:36]Write i2c OK [07:55:36]MH_I2C_Read... [07:55:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:36]Read from MH i2c: E2 [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: E2 03 00 [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: E2 03 00 C8 20 00 90 00 5C [07:55:36]RAPDU: Write to MH i2c: 90 01 00 00 00 [07:55:36]C9 wFMCommunicate OK [07:55:36]20 wFMCommunicate request_size=11 [07:55:36]E9 MH_SAM_APDU [07:55:36] [07:55:36]CAPDU: 80 0D 02 02 06 E9 A3 5D E3 3A D2 [07:55:36]Write i2c OK [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: 01 [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: 01 07 00 [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: 01 07 00 C9 20 00 08 00 00 00 FF 0F 06 [07:55:36]state=0 [07:55:36]Write to MH i2c: Key pressed [07:55:36]E2 Feed [07:55:36]0E 00 CA 20 80 0D 02 02 06 00 E9 A3 5D E3 3A D2 00 00 48 [07:55:36]Write i2c OK [07:55:36]MH_I2C_Read... [07:55:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:36]Read from MH i2c: E2 [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: E2 03 00 [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: E2 03 00 CA 20 00 90 00 5E [07:55:36]Write to MH i2c: RAPDU: D8 90 00 00 00 [07:55:36]CB wFMCommunicate OK [07:55:36]20 wFMCommunicate request_size=4 [07:55:36]C2 MH_SAM_APDU [07:55:36] [07:55:36]CAPDU: 80 0D 03 02 [07:55:36]OFD Sender: No OFD packet to send [07:55:36]Write i2c OK [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: D8 [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: D8 01 00 [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: D8 01 00 CB 20 00 C3 [07:55:36]Write to MH i2c: int line is 0 - check status [07:55:36]E2 08 00 CC 20 80 0D 03 02 00 00 00 00 67 [07:55:36]Write i2c OK [07:55:36]MH_I2C_Read... [07:55:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:55:36]*** FLAG_PRN_KEY reset [07:55:36]Read from MH i2c: E2 [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: E2 0B 00 [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: E2 0B 00 CC 20 00 C1 6B 6F 64 FC 6A 46 B9 90 00 CC [07:55:36]RAPDU: C1 6B 6F 64 FC 6A 46 B9 90 00 [07:55:36]wFMCommunicate OK [07:55:36]SAM_PROTO_SignData done [07:55:36]FM_MakeSignedData done [07:55:36]CreateOFDProtocolMessage [07:55:36]wFMCommunicate request_size=4 [07:55:36]MH_SAM_APDU [07:55:36]CAPDU: 80 11 00 00 [07:55:36]Write to MH i2c: 01 00 00 CD 20 ED [07:55:37]Write i2c OK [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: 01 [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: 01 07 00 [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: 01 07 00 CD 20 00 00 00 00 00 FE 0F 01 [07:55:37]state=2 [07:55:37]Stop feed [07:55:37]Write to MH i2c: E2 08 00 CE 20 80 11 00 00 00 00 00 00 68 [07:55:37]int [07:55:37]Write i2c OK [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: E2 [07:55:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: E2 17 00 [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: E2 17 00 CE 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B7 [07:55:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:55:37]wFMCommunicate OK [07:55:37]CreateOFDProtocolMessage done [07:55:37]OFDSenderStorePacket 28829 [07:55:37]StoreOFDPacket docnum=28829 [07:55:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 BF 3A 08 01 92 84 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 7A 3A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9D 70 00 00 35 04 06 00 E9 A3 5D E3 3A D2 C1 6B 6F 64 FC 6A 46 B9 [07:55:37]CheckFolder [07:55:37]dirname=/storage/ofd_packets [07:55:37]CheckFolder done [07:55:37]ProducePacketName [07:55:37]name=ofd_packets/00028829 [07:55:37]NVStorageSaveData ofd_packets/00028829 [07:55:37]File name is /storage/ofd_packets/00028829 [07:55:37]Write to MH i2c: 01 00 00 CF 20 EF [07:55:37]Write 302 bytes [07:55:37]NVStorageSaveData done [07:55:37]OFDSenderStorePacket done [07:55:37]KKMCreateOFDPacket done [07:55:37]NVStorageSaveData kkm_last_timestamp [07:55:37]File name is /storage/kkm_last_timestamp [07:55:37]Write 4 bytes [07:55:37]NVStorageSaveData done [07:55:37]ExternCall_PrintAddStr [07:55:37]wPrintStart [07:55:37]Write i2c OK [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: 01 [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: 01 07 00 [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: 01 07 00 CF 20 *** FLAG_PRN_KEY set [07:55:37]00 00 00 00 00 FF 0F 04 [07:55:37]state=0 [07:55:37]int line is 0 - check status [07:55:37]Write to MH i2c: 01 00 00 D0 20 F0 [07:55:37]OFD Sender: Processing packet 28829 [packets to send 8, broken 7] [07:55:37]ProducePacketName [07:55:37]name=ofd_packets/00028829 [07:55:37]OFD Sender: To server: pG, [07:55:37]CommunicateWithHost lk.salyk.kg:30040 [07:55:37]ConnectInit lk.salyk.kg [07:55:37]Write i2c OK [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: 01 [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: 01 07 00 [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: 01 07 00 D0 20 00 08 00 00 00 FF 0F 0D [07:55:37]state=0 [07:55:37]Key pressed [07:55:37]Feed [07:55:37]Write to MH i2c: D8 00 00 D1 20 C8 [07:55:37]Write i2c OK [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: D8 [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: D8 01 00 [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: D8 01 00 D1 20 00 C9 [07:55:37]int line is 0 - check status [07:55:37]Write to MH i2c: 01 00 00 D2 20 F2 [07:55:37]Write i2c OK [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: 01 [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: 01 07 00 [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: 01 07 00 D2 20 00 48 00 00 00 3C 00 7D [07:55:37]state=2 [07:55:37]Key pressed [07:55:37]Write to MH i2c: 01 00 00 D3 20 F3 [07:55:37]int [07:55:37]Write i2c OK [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: 01 [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: 01 07 00 [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: 01 07 00 D3 20 00 48 00 00 00 3C 00 7E [07:55:37]RasterBufferAndPrint [07:55:37]Connected sock=6 [07:55:37]line Счет N : (1)347176 [07:55:37]Data to sent: line ИНН: 02508201610067 [07:55:37]87 line Контрольно-Кассовый Чек [07:55:37]95 line ПРОДАЖА [07:55:37]F6 line ТРК (МРК, ГНК) : 12 [07:55:37]70 line Товар: 2710124130 [07:55:37]47 line SUPER-92-К-5 [07:55:37]2C line 15.320 * 65.30 [07:55:37]01 line = 1000.40 [07:55:37]00 line НДС 12% НСП 1% [07:55:37]30 line > о реализуемом товаре [07:55:37]30 line ОКРУГЛЕНИЕ: -0.40 [07:55:37]30 line ИТОГО: 1000.00 [07:55:37]30 line Внесено: 1000.00 [07:55:37]30 line СДАЧА: 0.00 [07:55:37]30 line НСП 1% : 8.85 [07:55:37]30 line НДС 12% : 106.24 [07:55:37]30 line Наличными: 1000.00 [07:55:37]30 line Безнал.: 0.00 [07:55:37]30 line Место: АЗС № 108 "Партнер Нефть" [07:55:37]39 line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [07:55:37]36 line СНО: Общий режим [07:55:37]33 line Чек 36 13.04.2024 07:55 [07:55:37]31 line Смена: 115 ФФД: 1.0 [07:55:37]35 line ЗНМ: 0300000027 [07:55:37]Write to MH i2c: line РНМ: 0000138879044617 [07:55:37]01 line Версия ККМ: 001 [07:55:37]00 line ФМ: 0000000000963154 [07:55:37]00 line ФД: 28829 [07:55:37]D4 line ФПД: 256887864113874 [07:55:37]20 line 1/tax-web-control/client/api/v1/ticket?date=20240413T075538&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28829&fm=256887864113874&tin=02508201610067®Number=0000138879044617&sum=100000 [07:55:37]F4 [07:55:37]34 10 01 00 00 BF 3A 08 01 92 84 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A state=2 [07:55:37]2D Key pressed [07:55:37]written 0, free lines is 60 [07:55:37]35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 7A 3A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9D 70 00 00 35 04 06 00 E9 A3 5D E3 3A D2 C1 6B 6F 64 FC 6A 46 B9 [07:55:37]*** FLAG_PRN_KEY reset [07:55:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D3 79 47 00 AA 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9D 70 00 00 F4 03 04 00 22 E5 19 66 B6 04 01 00 00 7F 88 5D 25 11 88 6D D4 [07:55:37]CommunicateWithHost err = 0 [07:55:37]CheckOFDResponse [07:55:37]1017 (14) - 77093643461234 [07:55:37]1041 (16) - 0000000000963154 [07:55:37]1040 (4) - 28829 [07:55:37]1012 (4) - 13.04.2024 01:51 [07:55:37]1206 (1) - 0 [07:55:37]OFD Sender: Remove packet 28829 [07:55:37]ProducePacketName [07:55:37]name=ofd_packets/00028829 [07:55:37]NVStorageDeleteData [07:55:37]Write to MH i2c: 01 00 00 FE 20 1E [07:55:37]Write i2c OK [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: 01 [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: 01 07 00 [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: 01 07 00 FE 20 00 00 00 00 00 58 0D 8A [07:55:37]RasterBufferAndPrint [07:55:37]line [07:55:37]line [07:55:37]line [07:55:37]line [07:55:37]line [07:55:37]written 0, free lines is 3429 [07:55:37]MH_Cut [07:55:37]Write to MH i2c: D1 01 00 05 21 01 F8 [07:55:37]Write i2c OK [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: D1 [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: D1 01 00 [07:55:37]MH_I2C_Read... [07:55:37]Read from MH i2c: D1 01 00 05 21 00 F7 [07:55:37]Write to MH i2c: 01 00 00 06 21 27 [07:55:37]Write i2c OK [07:55:37]MH_I2C_Read... [07:55:37]OFD Sender: No OFD packet to send [07:55:38]*** Cut start [07:55:38]*** Partial cut [07:55:38]*** CUTSNS_PIN = 1 [07:55:38]*** CUTSNS_PIN = 0 [07:55:38]*** Brake cut motor [07:55:38]Read from MH i2c: 01 [07:55:38]MH_I2C_Read... [07:55:38]*** Stop cut motor [07:55:38]*** Cut end [07:55:38]Read from MH i2c: 01 07 00 [07:55:38]MH_I2C_Read... [07:55:38]Read from MH i2c: 01 07 00 06 21 00 00 00 00 00 FF 0F 3C [07:55:38]process_action close_receipt done [07:55:39]requested_data is exist [07:55:39]produce_requested_data [07:55:39]requested_item fm.sn is exist - process it [07:55:39]wFMCommunicate request_size=4 [07:55:39]MH_SAM_APDU [07:55:39]CAPDU: 80 11 00 00 [07:55:39]Write to MH i2c: E2 08 00 07 21 80 11 00 00 00 00 00 00 A2 [07:55:39]Write i2c OK [07:55:39]MH_I2C_Read... [07:55:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:39]Read from MH i2c: E2 [07:55:39]MH_I2C_Read... [07:55:39]Read from MH i2c: E2 17 00 [07:55:39]MH_I2C_Read... [07:55:39]Read from MH i2c: E2 17 00 07 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F1 [07:55:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:55:39]wFMCommunicate OK [07:55:39]requested_item fd.num is exist - process it [07:55:39]SAM_PROTO_GetFieldsCounters [07:55:39]wFMCommunicate request_size=4 [07:55:39]MH_SAM_APDU [07:55:39]CAPDU: 80 13 00 00 [07:55:39]Write to MH i2c: E2 08 00 08 21 80 13 00 00 00 00 00 00 A5 [07:55:39]Write i2c OK [07:55:39]MH_I2C_Read... [07:55:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:55:39]Read from MH i2c: E2 [07:55:39]MH_I2C_Read... [07:55:39]Read from MH i2c: E2 62 00 [07:55:39]MH_I2C_Read... [07:55:39]Read from MH i2c: E2 62 00 08 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9D 70 00 00 0E 04 04 00 73 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 CF [07:55: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9D 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:55:39]wFMCommunicate OK [07:55:39]SAM_PROTO_GetFieldsCounters done [07:55:39]requested_item shift.num is exist - process it [07:55:39]requested_item shift.opened is exist - process it [07:55:39]req_shift_opened [07:55:39]FM_GetShiftState [07:55:39]SAM_PROTO_GetShiftState [07:55:39]wFMCommunicate request_size=4 [07:55:39]MH_SAM_APDU [07:55:39]CAPDU: 80 13 01 00 [07:55:39]Write to MH i2c: E2 08 00 09 21 80 13 01 00 00 00 00 00 A7 [07:55:39]Write i2c OK [07:55:39]MH_I2C_Read... [07:55:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:39]Read from MH i2c: E2 [07:55:39]MH_I2C_Read... [07:55:39]Read from MH i2c: E2 0E 00 [07:55:39]MH_I2C_Read... [07:55:39]Read from MH i2c: E2 0E 00 09 21 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 C0 [07:55:39]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:55:39]wFMCommunicate OK [07:55:39]SAM_PROTO_GetShiftState done [07:55:39]FM_GetShiftState done [07:55:39]req_shift_opened done [07:55:39]requested_item shift.open_date is exist - process it [07:55:39]req_shift_open_date [07:55:39]req_shift_open_date done [07:55:39]produce_requested_data done [07:55:39]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28829,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [07:55:39]process_action_free close_receipt [07:55:39]json_value_free [07:55:39]json_value_free done [07:55:39]process_json_proto returns [07:55:39]Send response to host [07:55:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28829,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [07:55:39]free response buf [07:55:39]execute_script done [07:55:39]execute_script returns [07:55:39]free content buf [07:55:39]Sock 7.Close socket [07:55:39]Sock 7.Thread stoped [07:55:41]int [07:55:41]Write to MH i2c: 01 00 00 0A 21 2B [07:55:41]*** FLAG_PRN_KEY set [07:55:41]Write i2c OK [07:55:41]MH_I2C_Read... [07:55:41]Read from MH i2c: 01 [07:55:41]MH_I2C_Read... [07:55:41]Read from MH i2c: 01 07 00 [07:55:41]MH_I2C_Read... [07:55:41]Read from MH i2c: 01 07 00 0A 21 00 08 00 00 00 FF 0F 48 [07:55:41]state=2 [07:55:41]Key pressed [07:55:41]int [07:55:41]Write to MH i2c: 01 00 00 0B 21 2C [07:55:41]*** FLAG_PRN_KEY reset [07:55:41]Write i2c OK [07:55:41]MH_I2C_Read... [07:55:41]Read from MH i2c: 01 [07:55:41]MH_I2C_Read... [07:55:41]Read from MH i2c: 01 07 00 [07:55:41]MH_I2C_Read... [07:55:41]Read from MH i2c: 01 07 00 0B 21 00 00 00 00 00 FF 0F 41 [07:55:41]state=2 [07:55:41]Stop feed [07:55:41]int [07:55:41]Write to MH i2c: 01 00 00 0C 21 2D [07:55:41]*** FLAG_PRN_KEY set [07:55:41]Write i2c OK [07:55:41]MH_I2C_Read... [07:55:41]Read from MH i2c: 01 [07:55:41]MH_I2C_Read... [07:55:41]Read from MH i2c: 01 07 00 [07:55:41]MH_I2C_Read... [07:55:41]Read from MH i2c: 01 07 00 0C 21 00 08 00 00 00 FF 0F 4A [07:55:41]state=0 [07:55:41]Key pressed [07:55:41]Feed [07:55:41]Write to MH i2c: D8 00 00 0D 21 05 [07:55:41]Write i2c OK [07:55:41]MH_I2C_Read... [07:55:41]Read from MH i2c: D8 [07:55:41]MH_I2C_Read... [07:55:41]Read from MH i2c: D8 01 00 [07:55:41]MH_I2C_Read... [07:55:41]Read from MH i2c: D8 01 00 0D 21 00 06 [07:55:41]int [07:55:41]Write to MH i2c: 01 00 00 0E 21 2F [07:55:41]Write i2c OK [07:55:41]MH_I2C_Read... [07:55:41]Read from MH i2c: 01 [07:55:41]MH_I2C_Read... [07:55:41]Read from MH i2c: 01 07 00 [07:55:41]MH_I2C_Read... [07:55:41]Read from MH i2c: 01 07 00 0E 21 00 48 00 00 00 3C 00 BA [07:55:41]state=2 [07:55:41]Key pressed [07:55:41]int [07:55:41]Write to MH i2c: 01 00 00 0F 21 30 [07:55:41]*** FLAG_PRN_KEY reset [07:55:41]Write i2c OK [07:55:41]MH_I2C_Read... [07:55:41]Read from MH i2c: 01 [07:55:41]MH_I2C_Read... [07:55:41]Read from MH i2c: 01 07 00 [07:55:41]MH_I2C_Read... [07:55:41]Read from MH i2c: 01 07 00 0F 21 00 00 00 00 00 FD 0F 43 [07:55:41]state=2 [07:55:41]Stop feed [07:55:42]int [07:55:42]Write to MH i2c: 01 00 00 10 21 31 [07:55:42]*** FLAG_PRN_KEY set [07:55:42]Write i2c OK [07:55:42]MH_I2C_Read... [07:55:42]Read from MH i2c: 01 [07:55:42]MH_I2C_Read... [07:55:42]Read from MH i2c: 01 07 00 [07:55:42]MH_I2C_Read... [07:55:42]Read from MH i2c: 01 07 00 10 21 00 08 00 00 00 FF 0F 4E [07:55:42]state=0 [07:55:42]Key pressed [07:55:42]Feed [07:55:42]Write to MH i2c: D8 00 00 11 21 09 [07:55:42]Write i2c OK [07:55:42]MH_I2C_Read... [07:55:42]Read from MH i2c: D8 [07:55:42]MH_I2C_Read... [07:55:42]Read from MH i2c: D8 01 00 [07:55:42]MH_I2C_Read... [07:55:42]Read from MH i2c: D8 01 00 11 21 00 0A [07:55:42]int [07:55:42]Write to MH i2c: 01 00 00 12 21 33 [07:55:42]Write i2c OK [07:55:42]MH_I2C_Read... [07:55:42]Read from MH i2c: 01 [07:55:42]MH_I2C_Read... [07:55:42]Read from MH i2c: 01 07 00 [07:55:42]MH_I2C_Read... [07:55:42]Read from MH i2c: 01 07 00 12 21 00 48 00 00 00 3C 00 BE [07:55:42]state=2 [07:55:42]Key pressed [07:55:42]int [07:55:42]Write to MH i2c: 01 00 00 13 21 34 [07:55:42]*** FLAG_PRN_KEY reset [07:55:42]Write i2c OK [07:55:42]MH_I2C_Read... [07:55:42]Read from MH i2c: 01 [07:55:42]MH_I2C_Read... [07:55:42]Read from MH i2c: 01 07 00 [07:55:42]MH_I2C_Read... [07:55:42]Read from MH i2c: 01 07 00 13 21 00 00 00 00 00 FA 0F 44 [07:55:42]state=2 [07:55:42]Stop feed [07:55:42]int [07:55:42]Write to MH i2c: 01 00 00 14 21 35 [07:55:42]*** FLAG_PRN_KEY set [07:55:42]Write i2c OK [07:55:42]MH_I2C_Read... [07:55:42]Read from MH i2c: 01 [07:55:42]MH_I2C_Read... [07:55:42]Read from MH i2c: 01 07 00 [07:55:42]MH_I2C_Read... [07:55:42]Read from MH i2c: 01 07 00 14 21 00 08 00 00 00 FF 0F 52 [07:55:42]state=0 [07:55:42]Key pressed [07:55:42]Feed [07:55:42]Write to MH i2c: D8 00 00 15 21 0D [07:55:42]Write i2c OK [07:55:42]MH_I2C_Read... [07:55:42]Read from MH i2c: D8 [07:55:42]MH_I2C_Read... [07:55:42]Read from MH i2c: D8 01 00 [07:55:42]MH_I2C_Read... [07:55:42]Read from MH i2c: D8 01 00 15 21 00 0E [07:55:42]int [07:55:42]Write to MH i2c: 01 00 00 16 21 37 [07:55:42]Write i2c OK [07:55:42]MH_I2C_Read... [07:55:42]Read from MH i2c: 01 [07:55:42]MH_I2C_Read... [07:55:42]Read from MH i2c: 01 07 00 [07:55:42]MH_I2C_Read... [07:55:42]Read from MH i2c: 01 07 00 16 21 00 48 00 00 00 3C 00 C2 [07:55:42]state=2 [07:55:42]Key pressed [07:55:42]int [07:55:42]Write to MH i2c: 01 00 00 17 21 38 [07:55:42]*** FLAG_PRN_KEY reset [07:55:42]Write i2c OK [07:55:42]MH_I2C_Read... [07:55:42]Read from MH i2c: 01 [07:55:42]MH_I2C_Read... [07:55:42]Read from MH i2c: 01 07 00 [07:55:42]MH_I2C_Read... [07:55:42]Read from MH i2c: 01 07 00 17 21 00 00 00 00 00 FD 0F 4B [07:55:42]state=2 [07:55:42]Stop feed [07:55:43]OFD Sender: No OFD packet to send [07:55:48]OFD Sender: No OFD packet to send [07:55:53]OFD Sender: No OFD packet to send [07:55:58]OFD Sender: No OFD packet to send [07:56:03]OFD Sender: No OFD packet to send [07:56:08]OFD Sender: No OFD packet to send [07:56:13]OFD Sender: No OFD packet to send [07:56:18]OFD Sender: No OFD packet to send [07:56:23]OFD Sender: No OFD packet to send [07:56:28]OFD Sender: No OFD packet to send [07:56:33]OFD Sender: No OFD packet to send [07:56:38]OFD Sender: No OFD packet to send [07:56:43]OFD Sender: No OFD packet to send [07:56:48]OFD Sender: No OFD packet to send [07:56:53]OFD Sender: No OFD packet to send [07:56:58]OFD Sender: No OFD packet to send [07:57:03]OFD Sender: No OFD packet to send [07:57:08]OFD Sender: No OFD packet to send [07:57:13]OFD Sender: No OFD packet to send [07:57:18]OFD Sender: No OFD packet to send [07:57:23]OFD Sender: No OFD packet to send [07:57:28]OFD Sender: No OFD packet to send [07:57:33]OFD Sender: No OFD packet to send [07:57:38]OFD Sender: No OFD packet to send [07:57:43]OFD Sender: No OFD packet to send [07:57:48]OFD Sender: No OFD packet to send [07:57:53]OFD Sender: No OFD packet to send [07:57:58]OFD Sender: No OFD packet to send [07:58:03]OFD Sender: No OFD packet to send [07:58:08]OFD Sender: No OFD packet to send [07:58:13]OFD Sender: No OFD packet to send [07:58:18]OFD Sender: No OFD packet to send [07:58:23]OFD Sender: No OFD packet to send [07:58:28]OFD Sender: No OFD packet to send [07:58:33]OFD Sender: No OFD packet to send [07:58:38]OFD Sender: No OFD packet to send [07:58:39]accept exits with 9 [07:58:39]New connection [07:58:39]New thread 3066928484 created [07:58:39]Thread 3066785124 joined [07:58:39]Waiting for new connection... [07:58:39] Sock 9.Parse request [07:58:39]Sock 9.Check first char [07:58:39]Sock 9.First char is OK [07:58:39]request: POST /json_proto HTTP/1.0 [07:58:39]Method: POST [07:58:39]URL: /json_proto [07:58:39]Method is POST - this is cgi request [07:58:39]url: /json_proto [07:58:39]query_string will be loaded in cgi processing [07:58:39]execute_cgi json_proto POST (null) [07:58:39]execute_cgi path=json_proto method=POST [07:58:39]POST find Content-Length [07:58:39]Host: 172.17.33.3:8080 [07:58:39]Content-Length: 1210 [07:58:39]Content-Type: application/json [07:58:39] [07:58:39]POST finish read [07:58:39]Found Content-Length = 1210 [07:58:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347175\u000A13.04.2024 07:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 71\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2711129700\u000A\u0413\u0410\u0417-\u041A-5\u000A 41.900 x 32.90\u000A\u0418\u0422\u041E\u0413: 1378.51\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43487\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:39]execute_script... [07:58:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347175\u000A13.04.2024 07:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 71\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2711129700\u000A\u0413\u0410\u0417-\u041A-5\u000A 41.900 x 32.90\u000A\u0418\u0422\u041E\u0413: 1378.51\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43487\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:39]POST & json_proto [07:58:39]process_json_proto [07:58:39]json parsed OK: [07:58:39]protocol is kg_v1.0 [07:58:39]action value=print_text [07:58:39]process_action print_text [07:58:39]cmd_print_text [07:58:39]ExternCall_PrintAddStr [07:58:39]wPrintStart [07:58:39]Write to MH i2c: 01 00 00 18 21 39 [07:58:39]Write i2c OK [07:58:39]MH_I2C_Read... [07:58:39]Read from MH i2c: 01 [07:58:39]MH_I2C_Read... [07:58:39]Read from MH i2c: 01 07 00 [07:58:39]MH_I2C_Read... [07:58:39]Read from MH i2c: 01 07 00 18 21 00 00 00 00 00 FF 0F 4E [07:58:39]RasterBufferAndPrint [07:58:39]line *****ТОВАРНЫЙ ЧЕК***** [07:58:39]line АЗС 108 [07:58:39]line Партнер нефть [07:58:39]line 02508201610067 [07:58:39]line Кассир : Шадыканова Ж. [07:58:39]line Счет N : (1)347175 [07:58:39]line 13.04.2024 07:40 [07:58:39]line ПРОДАЖА [07:58:39]line ТРК (МРК, ГНК): 71 [07:58:39]line Вид ГСМ : 2711129700 [07:58:39]line ГАЗ-К-5 [07:58:39]line 41.900 x 32.90 [07:58:39]line ИТОГ: 1378.51 [07:58:39]line Тип оплаты: Талоны: Топливная Карта [07:58:39]line 43487 [07:58:39]line ______________________ [07:58:39]line (подпись) [07:58:39]written 0, free lines is 4095 [07:58:39]Write to MH i2c: 01 00 00 2D 21 4E [07:58:39]Write i2c OK [07:58:39]MH_I2C_Read... [07:58:39]Read from MH i2c: 01 [07:58:39]MH_I2C_Read... [07:58:39]Read from MH i2c: 01 07 00 [07:58:39]MH_I2C_Read... [07:58:39]Read from MH i2c: 01 07 00 2D 21 00 00 00 00 00 F6 0D 58 [07:58:39]RasterBufferAndPrint [07:58:39]line [07:58:39]line [07:58:39]line [07:58:39]line [07:58:39]line [07:58:39]written 0, free lines is 3576 [07:58:39]MH_Cut [07:58:39]Write to MH i2c: D1 01 00 34 21 01 27 [07:58:39]Write i2c OK [07:58:39]MH_I2C_Read... [07:58:39]Read from MH i2c: D1 [07:58:39]MH_I2C_Read... [07:58:39]Read from MH i2c: D1 01 00 [07:58:39]MH_I2C_Read... [07:58:39]Read from MH i2c: D1 01 00 34 21 00 26 [07:58:39]Write to MH i2c: 01 00 00 35 21 56 [07:58:39]Write i2c OK [07:58:39]MH_I2C_Read... [07:58:39]*** Cut start [07:58:39]*** Partial cut [07:58:39]*** CUTSNS_PIN = 1 [07:58:39]*** CUTSNS_PIN = 0 [07:58:40]*** Brake cut motor [07:58:40]Read from MH i2c: 01 [07:58:40]MH_I2C_Read... [07:58:40]Read from MH i2c: 01 07 00 [07:58:40]MH_I2C_Read... [07:58:40]*** Stop cut motor [07:58:40]*** Cut end [07:58:40]Read from MH i2c: 01 07 00 35 21 00 00 00 00 00 FF 0F 6B [07:58:40]process_action print_text done [07:58:40]requested_data is exist [07:58:40]produce_requested_data [07:58:40]requested_item fm.sn is exist - process it [07:58:40]wFMCommunicate request_size=4 [07:58:40]MH_SAM_APDU [07:58:40]CAPDU: 80 11 00 00 [07:58:40]Write to MH i2c: E2 08 00 36 21 80 11 00 00 00 00 00 00 D1 [07:58:40]Write i2c OK [07:58:40]MH_I2C_Read... [07:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:40]Read from MH i2c: E2 [07:58:40]MH_I2C_Read... [07:58:40]Read from MH i2c: E2 17 00 [07:58:40]MH_I2C_Read... [07:58:40]Read from MH i2c: E2 17 00 36 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 20 [07:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [07:58:40]wFMCommunicate OK [07:58:40]requested_item fd.num is exist - process it [07:58:40]SAM_PROTO_GetFieldsCounters [07:58:40]wFMCommunicate request_size=4 [07:58:40]MH_SAM_APDU [07:58:40]CAPDU: 80 13 00 00 [07:58:40]Write to MH i2c: E2 08 00 37 21 80 13 00 00 00 00 00 00 D4 [07:58:40]Write i2c OK [07:58:40]MH_I2C_Read... [07:58:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:58:40]Read from MH i2c: E2 [07:58:40]MH_I2C_Read... [07:58:40]Read from MH i2c: E2 62 00 [07:58:40]MH_I2C_Read... [07:58:40]Read from MH i2c: E2 62 00 37 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9D 70 00 00 0E 04 04 00 73 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 FE [07:58: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9D 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:58:40]wFMCommunicate OK [07:58:40]SAM_PROTO_GetFieldsCounters done [07:58:40]requested_item shift.num is exist - process it [07:58:40]requested_item shift.opened is exist - process it [07:58:40]req_shift_opened [07:58:40]FM_GetShiftState [07:58:40]SAM_PROTO_GetShiftState [07:58:40]wFMCommunicate request_size=4 [07:58:40]MH_SAM_APDU [07:58:40]CAPDU: 80 13 01 00 [07:58:40]Write to MH i2c: E2 08 00 38 21 80 13 01 00 00 00 00 00 D6 [07:58:40]Write i2c OK [07:58:40]MH_I2C_Read... [07:58:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:40]Read from MH i2c: E2 [07:58:40]MH_I2C_Read... [07:58:40]Read from MH i2c: E2 0E 00 [07:58:40]MH_I2C_Read... [07:58:40]Read from MH i2c: E2 0E 00 38 21 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 EF [07:58:40]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [07:58:40]wFMCommunicate OK [07:58:40]SAM_PROTO_GetShiftState done [07:58:40]FM_GetShiftState done [07:58:40]req_shift_opened done [07:58:40]requested_item shift.open_date is exist - process it [07:58:40]req_shift_open_date [07:58:40]req_shift_open_date done [07:58:40]produce_requested_data done [07:58:40]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28829,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [07:58:40]process_action_free print_text [07:58:40]json_value_free [07:58:40]json_value_free done [07:58:40]process_json_proto returns [07:58:40]Send response to host [07:58:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28829,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [07:58:40]free response buf [07:58:40]execute_script done [07:58:40]execute_script returns [07:58:40]free content buf [07:58:40]Sock 9.Close socket [07:58:40]Sock 9.Thread stoped [07:58:43]OFD Sender: No OFD packet to send [07:58:48]OFD Sender: No OFD packet to send [07:58:53]OFD Sender: No OFD packet to send [07:58:58]OFD Sender: No OFD packet to send [07:59:03]OFD Sender: No OFD packet to send [07:59:08]OFD Sender: No OFD packet to send [07:59:13]OFD Sender: No OFD packet to send [07:59:18]OFD Sender: No OFD packet to send [07:59:23]OFD Sender: No OFD packet to send [07:59:28]OFD Sender: No OFD packet to send [07:59:33]OFD Sender: No OFD packet to send [07:59:38]OFD Sender: No OFD packet to send [07:59:43]OFD Sender: No OFD packet to send [07:59:48]OFD Sender: No OFD packet to send [07:59:53]OFD Sender: No OFD packet to send [07:59:58]OFD Sender: No OFD packet to send [08:00:03]OFD Sender: No OFD packet to send [08:00:08]OFD Sender: No OFD packet to send [08:00:13]OFD Sender: No OFD packet to send [08:00:18]OFD Sender: No OFD packet to send [08:00:23]OFD Sender: No OFD packet to send [08:00:28]OFD Sender: No OFD packet to send [08:00:33]OFD Sender: No OFD packet to send [08:00:38]OFD Sender: No OFD packet to send [08:00:43]OFD Sender: No OFD packet to send [08:00:48]OFD Sender: No OFD packet to send [08:00:53]OFD Sender: No OFD packet to send [08:00:58]OFD Sender: No OFD packet to send [08:01:03]OFD Sender: No OFD packet to send [08:01:08]OFD Sender: No OFD packet to send [08:01:13]OFD Sender: No OFD packet to send [08:01:18]OFD Sender: No OFD packet to send [08:01:23]OFD Sender: No OFD packet to send [08:01:28]OFD Sender: No OFD packet to send [08:01:33]OFD Sender: No OFD packet to send [08:01:38]OFD Sender: No OFD packet to send [08:01:43]OFD Sender: No OFD packet to send [08:01:48]OFD Sender: No OFD packet to send [08:01:53]OFD Sender: No OFD packet to send [08:01:58]OFD Sender: No OFD packet to send [08:02:03]OFD Sender: No OFD packet to send [08:02:08]OFD Sender: No OFD packet to send [08:02:13]OFD Sender: No OFD packet to send [08:02:18]OFD Sender: No OFD packet to send [08:02:23]OFD Sender: No OFD packet to send [08:02:28]OFD Sender: No OFD packet to send [08:02:33]OFD Sender: No OFD packet to send [08:02:38]OFD Sender: No OFD packet to send [08:02:43]OFD Sender: No OFD packet to send [08:02:48]OFD Sender: No OFD packet to send [08:02:53]OFD Sender: No OFD packet to send [08:02:58]OFD Sender: No OFD packet to send [08:03:03]OFD Sender: No OFD packet to send [08:03:08]OFD Sender: No OFD packet to send [08:03:13]OFD Sender: No OFD packet to send [08:03:18]OFD Sender: No OFD packet to send [08:03:23]OFD Sender: No OFD packet to send [08:03:28]OFD Sender: No OFD packet to send [08:03:33]OFD Sender: No OFD packet to send [08:03:38]OFD Sender: No OFD packet to send [08:03:43]OFD Sender: No OFD packet to send [08:03:48]OFD Sender: No OFD packet to send [08:03:53]OFD Sender: No OFD packet to send [08:03:53]accept exits with 7 [08:03:53]New connection [08:03:53]New thread 3066785124 created [08:03:53]Thread 3066928484 joined [08:03:53]Waiting for new connection... [08:03:53] Sock 7.Parse request [08:03:53]Sock 7.Check first char [08:03:53]Sock 7.First char is OK [08:03:53]request: POST /json_proto HTTP/1.0 [08:03:53]Method: POST [08:03:53]URL: /json_proto [08:03:53]Method is POST - this is cgi request [08:03:53]url: /json_proto [08:03:53]query_string will be loaded in cgi processing [08:03:53]execute_cgi json_proto POST (null) [08:03:53]execute_cgi path=json_proto method=POST [08:03:53]POST find Content-Length [08:03:53]Host: 172.17.33.3:8080 [08:03:53]Content-Length: 682 [08:03:53]Content-Type: application/json [08:03:53] [08:03:53]POST finish read [08:03:53]Found Content-Length = 682 [08:03:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347178", "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" : 64.30, "quantity" : 20.230, "sum" : 1300.79, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:53]execute_script... [08:03: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)347178", "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" : 64.30, "quantity" : 20.230, "sum" : 1300.79, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:53]POST & json_proto [08:03:53]process_json_proto [08:03:53]json parsed OK: [08:03:53]protocol is kg_v1.0 [08:03:53]action value=close_receipt [08:03:53]process_action close_receipt [08:03:53]cmd_close_receipt [08:03:53]MH_GetDate [08:03:53]Write to MH i2c: F0 00 00 39 21 49 [08:03:53]Write i2c OK [08:03:53]MH_I2C_Read... [08:03:53]Read from MH i2c: F0 [08:03:53]MH_I2C_Read... [08:03:53]Read from MH i2c: F0 09 00 [08:03:53]MH_I2C_Read... [08:03:53]Read from MH i2c: F0 09 00 39 21 00 6D 3C 1A 66 23 5B 8F 65 ED [08:03:53]GetLastDocTimeStamp 1712994938 [08:03:53]current date 1712995437 [08:03:53]FM_GetShiftState [08:03:53]SAM_PROTO_GetShiftState [08:03:53]wFMCommunicate request_size=4 [08:03:53]MH_SAM_APDU [08:03:53]CAPDU: 80 13 01 00 [08:03:53]Write to MH i2c: E2 08 00 3A 21 80 13 01 00 00 00 00 00 D8 [08:03:53]Write i2c OK [08:03:53]MH_I2C_Read... [08:03:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:53]Read from MH i2c: E2 [08:03:53]MH_I2C_Read... [08:03:53]Read from MH i2c: E2 0E 00 [08:03:53]MH_I2C_Read... [08:03:53]Read from MH i2c: E2 0E 00 3A 21 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F1 [08:03:53]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [08:03:53]wFMCommunicate OK [08:03:53]SAM_PROTO_GetShiftState done [08:03:53]FM_GetShiftState done [08:03:53]opened in 1712967615 [08:03:53]opened+sec_in_day 1713054015 [08:03:53]quantity*price = 130078 [08:03:53]sum+1 = 130080 [08:03:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.79 ИТОГО: 1300.00 Внесено: 2500.00 СДАЧА: 1200.00 НСП 1% : 11.51 НДС 12% : 138.14 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 37 13.04.2024 08:03 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28830 ФПД: 104746571527430 1/tax-web-control/client/api/v1/ticket?date=20240413T080357&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28830&fm=104746571527430&tin=02508201610067®Number=0000138879044617&sum=130000 [08:03:54]StoreToDocumentArchive [08:03:54]shift 115 fd 28830 [08:03:54]save to /storage/0115/doc_00028830 [08:03:54]save last doc name /storage/0115/doc_00028830 to /storage/kkm_last_doc_name [08:03:54]save OK [08:03:54]Clear old archive folders... [08:03:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:03:54]tlvbuf is B6EA2550 [08:03:54]SAM_PROTO_ClearQueue [08:03:54]wFMCommunicate request_size=4 [08:03:54]MH_SAM_APDU [08:03:54]CAPDU: 80 09 00 00 [08:03:54]Write to MH i2c: E2 08 00 47 21 80 09 00 00 00 00 00 00 DA [08:03:54]Write i2c OK [08:03:54]MH_I2C_Read... [08:03:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:54]Read from MH i2c: E2 [08:03:54]MH_I2C_Read... [08:03:54]Read from MH i2c: E2 03 00 [08:03:54]MH_I2C_Read... [08:03:54]Read from MH i2c: E2 03 00 47 21 00 90 00 DC [08:03:54]RAPDU: 90 00 [08:03:54]wFMCommunicate OK [08:03:54]SAM_PROTO_ClearQueue done [08:03:54]KKMCreateOFDPacket [08:03:54]OFDProtocolAddRootSTLVToBuf [08:03:54]FM_MakeSignedData [08:03:54]FM_MakeSignedData [08:03:54]SAM_PROTO_SignData [08:03:54]wFMCommunicate request_size=4 [08:03:54]MH_SAM_APDU [08:03:54]CAPDU: 80 0D 01 02 [08:03:54]Write to MH i2c: E2 08 00 48 21 80 0D 01 02 00 00 00 00 E2 [08:03:54]Write i2c OK [08:03:54]MH_I2C_Read... [08:03:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:54]Read from MH i2c: E2 [08:03:54]MH_I2C_Read... [08:03:54]Read from MH i2c: E2 03 00 [08:03:54]MH_I2C_Read... [08:03:54]Read from MH i2c: E2 03 00 48 21 00 90 00 DD [08:03:54]RAPDU: 90 00 [08:03:54]wFMCommunicate OK [08:03:54]wFMCommunicate request_size=255 [08:03:54]MH_SAM_APDU [08:03: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 06 4F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 1F FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 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 25 00 00 00 F4 03 04 00 6D 3C 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9E 70 00 00 35 04 06 00 5F [08:03:54]Write to MH i2c: E2 02 01 49 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 06 4F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 1F FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 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 25 00 00 00 F4 03 04 00 6D 3C 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9E 70 00 00 35 04 06 00 5F 00 00 25 [08:03:54]Write i2c OK [08:03:54]MH_I2C_Read... [08:03:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:54]Read from MH i2c: E2 [08:03:54]MH_I2C_Read... [08:03:54]Read from MH i2c: E2 03 00 [08:03:54]MH_I2C_Read... [08:03:54]Read from MH i2c: E2 03 00 49 21 00 90 00 DE [08:03:54]RAPDU: 90 00 [08:03:54]wFMCommunicate OK [08:03:54]wFMCommunicate request_size=10 [08:03:54]MH_SAM_APDU [08:03:54]CAPDU: 80 0D 02 02 05 44 36 2F F5 06 [08:03:54]Write to MH i2c: E2 0D 00 4A 21 80 0D 02 02 05 00 44 36 2F F5 06 00 00 93 [08:03:54]Write i2c OK [08:03:54]MH_I2C_Read... [08:03:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:55]Read from MH i2c: E2 [08:03:55]MH_I2C_Read... [08:03:55]Read from MH i2c: E2 03 00 [08:03:55]MH_I2C_Read... [08:03:55]Read from MH i2c: E2 03 00 4A 21 00 90 00 DF [08:03:55]RAPDU: 90 00 [08:03:55]wFMCommunicate OK [08:03:55]wFMCommunicate request_size=4 [08:03:55]MH_SAM_APDU [08:03:55]CAPDU: 80 0D 03 02 [08:03:55]Write to MH i2c: E2 08 00 4B 21 80 0D 03 02 00 00 00 00 E7 [08:03:55]Write i2c OK [08:03:55]MH_I2C_Read... [08:03:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:55]Read from MH i2c: E2 [08:03:55]MH_I2C_Read... [08:03:55]Read from MH i2c: E2 0B 00 [08:03:55]MH_I2C_Read... [08:03:55]Read from MH i2c: E2 0B 00 4B 21 00 6D 18 AD 6A A1 AA 9E E6 90 00 53 [08:03:55]RAPDU: 6D 18 AD 6A A1 AA 9E E6 90 00 [08:03:55]wFMCommunicate OK [08:03:55]SAM_PROTO_SignData done [08:03:55]FM_MakeSignedData done [08:03:55]CreateOFDProtocolMessage [08:03:55]wFMCommunicate request_size=4 [08:03:55]MH_SAM_APDU [08:03:55]CAPDU: 80 11 00 00 [08:03:55]Write to MH i2c: E2 08 00 4C 21 80 11 00 00 00 00 00 00 E7 [08:03:55]Write i2c OK [08:03:55]MH_I2C_Read... [08:03:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:55]Read from MH i2c: E2 [08:03:55]MH_I2C_Read... [08:03:55]Read from MH i2c: E2 17 00 [08:03:55]MH_I2C_Read... [08:03:55]Read from MH i2c: E2 17 00 4C 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 36 [08:03:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:03:55]wFMCommunicate OK [08:03:55]CreateOFDProtocolMessage done [08:03:55]OFDSenderStorePacket 28830 [08:03:55]StoreOFDPacket docnum=28830 [08:03:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7B 50 07 01 AA 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 06 4F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 1F FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 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 25 00 00 00 F4 03 04 00 6D 3C 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9E 70 00 00 35 04 06 00 5F 44 36 2F F5 06 6D 18 AD 6A A1 AA 9E E6 [08:03:55]CheckFolder [08:03:55]dirname=/storage/ofd_packets [08:03:55]CheckFolder done [08:03:55]ProducePacketName [08:03:55]name=ofd_packets/00028830 [08:03:55]NVStorageSaveData ofd_packets/00028830 [08:03:55]File name is /storage/ofd_packets/00028830 [08:03:55]Write 301 bytes [08:03:55]NVStorageSaveData done [08:03:55]OFDSenderStorePacket done [08:03:55]KKMCreateOFDPacket done [08:03:55]NVStorageSaveData kkm_last_timestamp [08:03:55]File name is /storage/kkm_last_timestamp [08:03:55]Write 4 bytes [08:03:55]NVStorageSaveData done [08:03:55]ExternCall_PrintAddStr [08:03:55]wPrintStart [08:03:55]Write to MH i2c: 01 00 00 4D 21 6E [08:03:55]Write i2c OK [08:03:55]MH_I2C_Read... [08:03:55]Read from MH i2c: 01 [08:03:55]MH_I2C_Read... [08:03:55]Read from MH i2c: 01 07 00 [08:03:55]MH_I2C_Read... [08:03:55]Read from MH i2c: 01 07 00 4D 21 00 00 00 00 00 FF 0F 83 [08:03:55]RasterBufferAndPrint [08:03:55]line Счет N : (1)347178 [08:03:55]line ИНН: 02508201610067 [08:03:55]line Контрольно-Кассовый Чек [08:03:55]line ПРОДАЖА [08:03:55]line ТРК (МРК, ГНК) : 42 [08:03:55]line Товар: 2710124130 [08:03:55]line Аи-92-К-5 [08:03:55]line 20.230 * 64.30 [08:03:55]line = 1300.79 [08:03:55]line НДС 12% НСП 1% [08:03:55]line > о реализуемом товаре [08:03:55]line ОКРУГЛЕНИЕ: -0.79 [08:03:55]line ИТОГО: 1300.00 [08:03:55]line Внесено: 2500.00 [08:03:55]line СДАЧА: 1200.00 [08:03:55]line НСП 1% : 11.51 [08:03:55]line НДС 12% : 138.14 [08:03:55]line Наличными: 1300.00 [08:03:55]line Безнал.: 0.00 [08:03:55]line Место: АЗС № 108 "Партнер Нефть" [08:03:55]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:03:55]line СНО: Общий режим [08:03:55]line Чек 37 13.04.2024 08:03 [08:03:55]line Смена: 115 ФФД: 1.0 [08:03:55]line ЗНМ: 0300000027 [08:03:55]line РНМ: 0000138879044617 [08:03:55]line Версия ККМ: 001 [08:03:55]line ФМ: 0000000000963154 [08:03:55]line ФД: 28830 [08:03:55]line ФПД: 104746571527430 [08:03:55]line 1/tax-web-control/client/api/v1/ticket?date=20240413T080357&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28830&fm=104746571527430&tin=02508201610067®Number=0000138879044617&sum=130000 [08:03:55]OFD Sender: Processing packet 28830 [packets to send 8, broken 7] [08:03:55]ProducePacketName [08:03:55]name=ofd_packets/00028830 [08:03:55]OFD Sender: To server: pG, [08:03:55]CommunicateWithHost lk.salyk.kg:30040 [08:03:55]ConnectInit lk.salyk.kg [08:03:55]written 0, free lines is 4095 [08:03:55]Connected sock=10 [08:03: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 31 35 34 0F 01 00 00 7B 50 07 01 AA 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 06 4F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 1F FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 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 25 00 00 00 F4 03 04 00 6D 3C 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9E 70 00 00 35 04 06 00 5F 44 36 2F F5 06 6D 18 AD 6A A1 AA 9E E6 [08:03:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 24 17 47 00 E3 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 31 35 34 10 04 04 00 9E 70 00 00 F4 03 04 00 14 E7 19 66 B6 04 01 00 00 E6 E1 89 F6 65 C3 20 6B [08:03:55]CommunicateWithHost err = 0 [08:03:55]CheckOFDResponse [08:03:55]1017 (14) - 77093643461234 [08:03:55]1041 (16) - 0000000000963154 [08:03:55]1040 (4) - 28830 [08:03:55]1012 (4) - 13.04.2024 01:59 [08:03:55]1206 (1) - 0 [08:03:55]OFD Sender: Remove packet 28830 [08:03:55]ProducePacketName [08:03:55]name=ofd_packets/00028830 [08:03:55]NVStorageDeleteData [08:03:55]Write to MH i2c: 01 00 00 77 21 98 [08:03:55]Write i2c OK [08:03:55]MH_I2C_Read... [08:03:55]Read from MH i2c: 01 [08:03:55]MH_I2C_Read... [08:03:55]Read from MH i2c: 01 07 00 [08:03:55]MH_I2C_Read... [08:03:55]Read from MH i2c: 01 07 00 77 21 00 00 00 00 00 C1 0C 6C [08:03:55]RasterBufferAndPrint [08:03:55]line [08:03:55]line [08:03:55]line [08:03:55]line [08:03:55]line [08:03:55]written 0, free lines is 3271 [08:03:55]MH_Cut [08:03:55]Write to MH i2c: D1 01 00 7E 21 01 71 [08:03:55]Write i2c OK [08:03:55]MH_I2C_Read... [08:03:55]Read from MH i2c: D1 [08:03:55]MH_I2C_Read... [08:03:55]Read from MH i2c: D1 01 00 [08:03:55]MH_I2C_Read... [08:03:55]Read from MH i2c: D1 01 00 7E 21 00 70 [08:03:55]Write to MH i2c: 01 00 00 7F 21 A0 [08:03:55]Write i2c OK [08:03:55]MH_I2C_Read... [08:03:56]OFD Sender: No OFD packet to send [08:03:56]*** Cut start [08:03:56]*** Partial cut [08:03:56]*** CUTSNS_PIN = 1 [08:03:56]*** CUTSNS_PIN = 0 [08:03:57]*** Brake cut motor [08:03:57]Read from MH i2c: 01 [08:03:57]MH_I2C_Read... [08:03:57]*** Stop cut motor [08:03:57]*** Cut end [08:03:57]Read from MH i2c: 01 07 00 [08:03:57]MH_I2C_Read... [08:03:57]Read from MH i2c: 01 07 00 7F 21 00 00 00 00 00 FF 0F B5 [08:03:57]process_action close_receipt done [08:03:57]requested_data is exist [08:03:57]produce_requested_data [08:03:57]requested_item fm.sn is exist - process it [08:03:57]wFMCommunicate request_size=4 [08:03:57]MH_SAM_APDU [08:03:57]CAPDU: 80 11 00 00 [08:03:57]Write to MH i2c: E2 08 00 80 21 80 11 00 00 00 00 00 00 1B [08:03:57]Write i2c OK [08:03:57]MH_I2C_Read... [08:03:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:57]Read from MH i2c: E2 [08:03:57]MH_I2C_Read... [08:03:57]Read from MH i2c: E2 17 00 [08:03:57]MH_I2C_Read... [08:03:57]Read from MH i2c: E2 17 00 80 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6A [08:03:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:03:57]wFMCommunicate OK [08:03:57]requested_item fd.num is exist - process it [08:03:57]SAM_PROTO_GetFieldsCounters [08:03:57]wFMCommunicate request_size=4 [08:03:57]MH_SAM_APDU [08:03:57]CAPDU: 80 13 00 00 [08:03:57]Write to MH i2c: E2 08 00 81 21 80 13 00 00 00 00 00 00 1E [08:03:57]Write i2c OK [08:03:57]MH_I2C_Read... [08:03:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:57]Read from MH i2c: E2 [08:03:57]MH_I2C_Read... [08:03:57]Read from MH i2c: E2 62 00 [08:03:57]MH_I2C_Read... [08:03:57]Read from MH i2c: E2 62 00 81 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9E 70 00 00 0E 04 04 00 73 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 4C [08:03: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9E 70 00 00 0E 04 04 00 73 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:03:57]wFMCommunicate OK [08:03:57]SAM_PROTO_GetFieldsCounters done [08:03:57]requested_item shift.num is exist - process it [08:03:57]requested_item shift.opened is exist - process it [08:03:57]req_shift_opened [08:03:57]FM_GetShiftState [08:03:57]SAM_PROTO_GetShiftState [08:03:57]wFMCommunicate request_size=4 [08:03:57]MH_SAM_APDU [08:03:57]CAPDU: 80 13 01 00 [08:03:57]Write to MH i2c: E2 08 00 82 21 80 13 01 00 00 00 00 00 20 [08:03:57]Write i2c OK [08:03:57]MH_I2C_Read... [08:03:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:57]Read from MH i2c: E2 [08:03:57]MH_I2C_Read... [08:03:57]Read from MH i2c: E2 0E 00 [08:03:57]MH_I2C_Read... [08:03:57]Read from MH i2c: E2 0E 00 82 21 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 39 [08:03:57]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [08:03:57]wFMCommunicate OK [08:03:57]SAM_PROTO_GetShiftState done [08:03:57]FM_GetShiftState done [08:03:57]req_shift_opened done [08:03:57]requested_item shift.open_date is exist - process it [08:03:57]req_shift_open_date [08:03:57]req_shift_open_date done [08:03:57]produce_requested_data done [08:03:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28830,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [08:03:57]process_action_free close_receipt [08:03:57]json_value_free [08:03:57]json_value_free done [08:03:57]process_json_proto returns [08:03:57]Send response to host [08:03:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28830,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [08:03:57]free response buf [08:03:57]execute_script done [08:03:57]execute_script returns [08:03:57]free content buf [08:03:57]Sock 7.Close socket [08:03:57]Sock 7.Thread stoped [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:05:01]OFD Sender: No OFD packet to send [08:05:06]OFD Sender: No OFD packet to send [08:05:11]OFD Sender: No OFD packet to send [08:05:16]OFD Sender: No OFD packet to send [08:05:21]OFD Sender: No OFD packet to send [08:05:26]OFD Sender: No OFD packet to send [08:05:31]OFD Sender: No OFD packet to send [08:05:36]OFD Sender: No OFD packet to send [08:05:41]OFD Sender: No OFD packet to send [08:05:46]OFD Sender: No OFD packet to send [08:05:51]OFD Sender: No OFD packet to send [08:05:56]OFD Sender: No OFD packet to send [08:06:01]OFD Sender: No OFD packet to send [08:06:06]OFD Sender: No OFD packet to send [08:06:11]OFD Sender: No OFD packet to send [08:06:16]OFD Sender: No OFD packet to send [08:06:21]OFD Sender: No OFD packet to send [08:06:26]OFD Sender: No OFD packet to send [08:06:31]OFD Sender: No OFD packet to send [08:06:36]OFD Sender: No OFD packet to send [08:06:41]OFD Sender: No OFD packet to send [08:06:46]OFD Sender: No OFD packet to send [08:06:51]OFD Sender: No OFD packet to send [08:06:56]OFD Sender: No OFD packet to send [08:07:01]OFD Sender: No OFD packet to send [08:07:06]OFD Sender: No OFD packet to send [08:07:11]OFD Sender: No OFD packet to send [08:07:16]OFD Sender: No OFD packet to send [08:07:21]OFD Sender: No OFD packet to send [08:07:26]OFD Sender: No OFD packet to send [08:07:31]OFD Sender: No OFD packet to send [08:07:36]OFD Sender: No OFD packet to send [08:07:41]OFD Sender: No OFD packet to send [08:07:45]accept exits with 9 [08:07:45]New connection [08:07:45]New thread 3066928484 created [08:07:45]Thread 3066785124 joined [08:07:45]Waiting for new connection... [08:07:45] Sock 9.Parse request [08:07:45]Sock 9.Check first char [08:07:45]Sock 9.First char is OK [08:07:45]request: POST /json_proto HTTP/1.0 [08:07:45]Method: POST [08:07:45]URL: /json_proto [08:07:45]Method is POST - this is cgi request [08:07:45]url: /json_proto [08:07:45]query_string will be loaded in cgi processing [08:07:45]execute_cgi json_proto POST (null) [08:07:45]execute_cgi path=json_proto method=POST [08:07:45]POST find Content-Length [08:07:45]Host: 172.17.33.3:8080 [08:07:45]Content-Length: 670 [08:07:45]Content-Type: application/json [08:07:45] [08:07:45]POST finish read [08:07:45]Found Content-Length = 670 [08:07:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "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:07:45]execute_script... [08:07: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)347179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "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:07:45]POST & json_proto [08:07:45]process_json_proto [08:07:45]json parsed OK: [08:07:45]protocol is kg_v1.0 [08:07:45]action value=close_receipt [08:07:45]process_action close_receipt [08:07:45]cmd_close_receipt [08:07:45]MH_GetDate [08:07:45]Write to MH i2c: F0 00 00 83 21 93 [08:07:45]Write i2c OK [08:07:45]MH_I2C_Read... [08:07:45]Read from MH i2c: F0 [08:07:45]MH_I2C_Read... [08:07:45]Read from MH i2c: F0 09 00 [08:07:45]MH_I2C_Read... [08:07:45]Read from MH i2c: F0 09 00 83 21 00 54 3D 1A 66 23 5B 8F 65 1F [08:07:45]GetLastDocTimeStamp 1712995437 [08:07:45]current date 1712995668 [08:07:45]FM_GetShiftState [08:07:45]SAM_PROTO_GetShiftState [08:07:45]wFMCommunicate request_size=4 [08:07:45]MH_SAM_APDU [08:07:45]CAPDU: 80 13 01 00 [08:07:45]Write to MH i2c: E2 08 00 84 21 80 13 01 00 00 00 00 00 22 [08:07:45]Write i2c OK [08:07:45]MH_I2C_Read... [08:07:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:45]Read from MH i2c: E2 [08:07:45]MH_I2C_Read... [08:07:45]Read from MH i2c: E2 0E 00 [08:07:45]MH_I2C_Read... [08:07:45]Read from MH i2c: E2 0E 00 84 21 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 3B [08:07:45]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [08:07:45]wFMCommunicate OK [08:07:45]SAM_PROTO_GetShiftState done [08:07:45]FM_GetShiftState done [08:07:45]opened in 1712967615 [08:07:45]opened+sec_in_day 1713054015 [08:07:45]quantity*price = 50019 [08:07:45]sum+1 = 50021 [08:07:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 38 13.04.2024 08:07 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28831 ФПД: 223287215158131 1/tax-web-control/client/api/v1/ticket?date=20240413T080748&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28831&fm=223287215158131&tin=02508201610067®Number=0000138879044617&sum=50000 [08:07:46]StoreToDocumentArchive [08:07:46]shift 115 fd 28831 [08:07:46]save to /storage/0115/doc_00028831 [08:07:46]save last doc name /storage/0115/doc_00028831 to /storage/kkm_last_doc_name [08:07:46]save OK [08:07:46]Clear old archive folders... [08:07:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:07:46]tlvbuf is B6F524F0 [08:07:46]SAM_PROTO_ClearQueue [08:07:46]wFMCommunicate request_size=4 [08:07:46]MH_SAM_APDU [08:07:46]CAPDU: 80 09 00 00 [08:07:46]Write to MH i2c: E2 08 00 91 21 80 09 00 00 00 00 00 00 24 [08:07:46]OFD Sender: No OFD packet to send [08:07:46]Write i2c OK [08:07:46]MH_I2C_Read... [08:07:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:46]Read from MH i2c: E2 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: E2 03 00 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: E2 03 00 91 21 00 90 00 26 [08:07:46]RAPDU: 90 00 [08:07:46]wFMCommunicate OK [08:07:46]SAM_PROTO_ClearQueue done [08:07:46]KKMCreateOFDPacket [08:07:46]OFDProtocolAddRootSTLVToBuf [08:07:46]FM_MakeSignedData [08:07:46]FM_MakeSignedData [08:07:46]SAM_PROTO_SignData [08:07:46]wFMCommunicate request_size=4 [08:07:46]MH_SAM_APDU [08:07:46]CAPDU: 80 0D 01 02 [08:07:46]Write to MH i2c: E2 08 00 92 21 80 0D 01 02 00 00 00 00 2C [08:07:46]Write i2c OK [08:07:46]MH_I2C_Read... [08:07:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:46]Read from MH i2c: E2 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: E2 03 00 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: E2 03 00 92 21 00 90 00 27 [08:07:46]RAPDU: 90 00 [08:07:46]wFMCommunicate OK [08:07:46]wFMCommunicate request_size=255 [08:07:46]MH_SAM_APDU [08:07:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 54 3D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9F 70 00 00 35 04 06 00 [08:07:46]Write to MH i2c: E2 02 01 93 21 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 54 3D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9F 70 00 00 35 04 06 00 00 00 37 [08:07:46]Write i2c OK [08:07:46]MH_I2C_Read... [08:07:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:46]Read from MH i2c: E2 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: E2 03 00 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: E2 03 00 93 21 00 90 00 28 [08:07:46]RAPDU: 90 00 [08:07:46]wFMCommunicate OK [08:07:46]wFMCommunicate request_size=11 [08:07:46]MH_SAM_APDU [08:07:46]CAPDU: 80 0D 02 02 06 CB 14 1B 24 73 73 [08:07:46]Write to MH i2c: E2 0E 00 94 21 80 0D 02 02 06 00 CB 14 1B 24 73 73 00 00 3F [08:07:46]Write i2c OK [08:07:46]MH_I2C_Read... [08:07:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:46]Read from MH i2c: E2 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: E2 03 00 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: E2 03 00 94 21 00 90 00 29 [08:07:46]RAPDU: 90 00 [08:07:46]wFMCommunicate OK [08:07:46]wFMCommunicate request_size=4 [08:07:46]MH_SAM_APDU [08:07:46]CAPDU: 80 0D 03 02 [08:07:46]Write to MH i2c: E2 08 00 95 21 80 0D 03 02 00 00 00 00 31 [08:07:46]Write i2c OK [08:07:46]MH_I2C_Read... [08:07:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:46]Read from MH i2c: E2 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: E2 0B 00 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: E2 0B 00 95 21 00 D3 76 A1 12 6A D5 0B 93 90 00 0B [08:07:46]RAPDU: D3 76 A1 12 6A D5 0B 93 90 00 [08:07:46]wFMCommunicate OK [08:07:46]SAM_PROTO_SignData done [08:07:46]FM_MakeSignedData done [08:07:46]CreateOFDProtocolMessage [08:07:46]wFMCommunicate request_size=4 [08:07:46]MH_SAM_APDU [08:07:46]CAPDU: 80 11 00 00 [08:07:46]Write to MH i2c: E2 08 00 96 21 80 11 00 00 00 00 00 00 31 [08:07:46]Write i2c OK [08:07:46]MH_I2C_Read... [08:07:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:46]Read from MH i2c: E2 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: E2 17 00 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: E2 17 00 96 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 80 [08:07:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:07:46]wFMCommunicate OK [08:07:46]CreateOFDProtocolMessage done [08:07:46]OFDSenderStorePacket 28831 [08:07:46]StoreOFDPacket docnum=28831 [08:07:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 A6 D3 08 01 87 B7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 54 3D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9F 70 00 00 35 04 06 00 CB 14 1B 24 73 73 D3 76 A1 12 6A D5 0B 93 [08:07:46]CheckFolder [08:07:46]dirname=/storage/ofd_packets [08:07:46]CheckFolder done [08:07:46]ProducePacketName [08:07:46]name=ofd_packets/00028831 [08:07:46]NVStorageSaveData ofd_packets/00028831 [08:07:46]File name is /storage/ofd_packets/00028831 [08:07:46]Write 302 bytes [08:07:46]NVStorageSaveData done [08:07:46]OFDSenderStorePacket done [08:07:46]KKMCreateOFDPacket done [08:07:46]NVStorageSaveData kkm_last_timestamp [08:07:46]File name is /storage/kkm_last_timestamp [08:07:46]Write 4 bytes [08:07:46]NVStorageSaveData done [08:07:46]ExternCall_PrintAddStr [08:07:46]wPrintStart [08:07:46]Write to MH i2c: 01 00 00 97 21 B8 [08:07:46]Write i2c OK [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: 01 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: 01 07 00 [08:07:46]MH_I2C_Read... [08:07:46]Read from MH i2c: 01 07 00 97 21 00 00 00 00 00 FF 0F CD [08:07:46]RasterBufferAndPrint [08:07:46]line Счет N : (1)347179 [08:07:46]line ИНН: 02508201610067 [08:07:46]line Контрольно-Кассовый Чек [08:07:46]line ПРОДАЖА [08:07:46]line ТРК (МРК, ГНК) : 22 [08:07:46]line Товар: 2710124130 [08:07:46]line SUPER-92-К-5 [08:07:46]line 7.660 * 65.30 [08:07:46]line = 500.20 [08:07:46]line НДС 12% НСП 1% [08:07:46]line > о реализуемом товаре [08:07:46]line ОКРУГЛЕНИЕ: -0.20 [08:07:46]line ИТОГО: 500.00 [08:07:46]line Внесено: 500.00 [08:07:46]line СДАЧА: 0.00 [08:07:46]line НСП 1% : 4.43 [08:07:46]line НДС 12% : 53.12 [08:07:46]line Наличными: 500.00 [08:07:46]line Безнал.: 0.00 [08:07:46]line Место: АЗС № 108 "Партнер Нефть" [08:07:46]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:07:46]line СНО: Общий режим [08:07:46]line Чек 38 13.04.2024 08:07 [08:07:46]line Смена: 115 ФФД: 1.0 [08:07:46]line ЗНМ: 0300000027 [08:07:46]line РНМ: 0000138879044617 [08:07:46]line Версия ККМ: 001 [08:07:46]line ФМ: 0000000000963154 [08:07:46]line ФД: 28831 [08:07:46]line ФПД: 223287215158131 [08:07:47]line 1/tax-web-control/client/api/v1/ticket?date=20240413T080748&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28831&fm=223287215158131&tin=02508201610067®Number=0000138879044617&sum=50000 [08:07:47]OFD Sender: Processing packet 28831 [packets to send 8, broken 7] [08:07:47]ProducePacketName [08:07:47]name=ofd_packets/00028831 [08:07:47]OFD Sender: To server: pG, [08:07:47]CommunicateWithHost lk.salyk.kg:30040 [08:07:47]ConnectInit lk.salyk.kg [08:07:47]written 0, free lines is 4095 [08:07:47]Connected sock=10 [08:07: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 31 35 34 10 01 00 00 A6 D3 08 01 87 B7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 54 3D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9F 70 00 00 35 04 06 00 CB 14 1B 24 73 73 D3 76 A1 12 6A D5 0B 93 [08:07:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 14 9C 47 00 7B 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 31 35 34 10 04 04 00 9F 70 00 00 F4 03 04 00 FC E7 19 66 B6 04 01 00 00 71 55 4D B6 D2 86 F6 90 [08:07:47]CommunicateWithHost err = 0 [08:07:47]CheckOFDResponse [08:07:47]1017 (14) - 77093643461234 [08:07:47]1041 (16) - 0000000000963154 [08:07:47]1040 (4) - 28831 [08:07:47]1012 (4) - 13.04.2024 02:03 [08:07:47]1206 (1) - 0 [08:07:47]OFD Sender: Remove packet 28831 [08:07:47]ProducePacketName [08:07:47]name=ofd_packets/00028831 [08:07:47]NVStorageDeleteData [08:07:47]Write to MH i2c: 01 00 00 C1 21 E2 [08:07:47]Write i2c OK [08:07:47]MH_I2C_Read... [08:07:47]Read from MH i2c: 01 [08:07:47]MH_I2C_Read... [08:07:47]Read from MH i2c: 01 07 00 [08:07:47]MH_I2C_Read... [08:07:47]Read from MH i2c: 01 07 00 C1 21 00 00 00 00 00 BD 0C B2 [08:07:47]RasterBufferAndPrint [08:07:47]line [08:07:47]line [08:07:47]line [08:07:47]line [08:07:47]line [08:07:47]written 0, free lines is 3267 [08:07:47]MH_Cut [08:07:47]Write to MH i2c: D1 01 00 C8 21 01 BB [08:07:47]Write i2c OK [08:07:47]MH_I2C_Read... [08:07:47]Read from MH i2c: D1 [08:07:47]MH_I2C_Read... [08:07:47]Read from MH i2c: D1 01 00 [08:07:47]MH_I2C_Read... [08:07:47]Read from MH i2c: D1 01 00 C8 21 00 BA [08:07:47]Write to MH i2c: 01 00 00 C9 21 EA [08:07:47]Write i2c OK [08:07:47]MH_I2C_Read... [08:07:48]OFD Sender: No OFD packet to send [08:07:48]*** Cut start [08:07:48]*** Partial cut [08:07:48]*** CUTSNS_PIN = 1 [08:07:48]*** CUTSNS_PIN = 0 [08:07:48]*** Brake cut motor [08:07:49]Read from MH i2c: 01 [08:07:49]MH_I2C_Read... [08:07:49]*** Stop cut motor [08:07:49]*** Cut end [08:07:49]Read from MH i2c: 01 07 00 [08:07:49]MH_I2C_Read... [08:07:49]Read from MH i2c: 01 07 00 C9 21 00 00 00 00 00 FF 0F FF [08:07:49]process_action close_receipt done [08:07:49]requested_data is exist [08:07:49]produce_requested_data [08:07:49]requested_item fm.sn is exist - process it [08:07:49]wFMCommunicate request_size=4 [08:07:49]MH_SAM_APDU [08:07:49]CAPDU: 80 11 00 00 [08:07:49]Write to MH i2c: E2 08 00 CA 21 80 11 00 00 00 00 00 00 65 [08:07:49]Write i2c OK [08:07:49]MH_I2C_Read... [08:07:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:49]Read from MH i2c: E2 [08:07:49]MH_I2C_Read... [08:07:49]Read from MH i2c: E2 17 00 [08:07:49]MH_I2C_Read... [08:07:49]Read from MH i2c: E2 17 00 CA 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B4 [08:07:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:07:49]wFMCommunicate OK [08:07:49]requested_item fd.num is exist - process it [08:07:49]SAM_PROTO_GetFieldsCounters [08:07:49]wFMCommunicate request_size=4 [08:07:49]MH_SAM_APDU [08:07:49]CAPDU: 80 13 00 00 [08:07:49]Write to MH i2c: E2 08 00 CB 21 80 13 00 00 00 00 00 00 68 [08:07:49]Write i2c OK [08:07:49]MH_I2C_Read... [08:07:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:49]Read from MH i2c: E2 [08:07:49]MH_I2C_Read... [08:07:49]Read from MH i2c: E2 62 00 [08:07:49]MH_I2C_Read... [08:07:49]Read from MH i2c: E2 62 00 CB 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9F 70 00 00 0E 04 04 00 73 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 9A [08:07: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9F 70 00 00 0E 04 04 00 73 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:07:49]wFMCommunicate OK [08:07:49]SAM_PROTO_GetFieldsCounters done [08:07:49]requested_item shift.num is exist - process it [08:07:49]requested_item shift.opened is exist - process it [08:07:49]req_shift_opened [08:07:49]FM_GetShiftState [08:07:49]SAM_PROTO_GetShiftState [08:07:49]wFMCommunicate request_size=4 [08:07:49]MH_SAM_APDU [08:07:49]CAPDU: 80 13 01 00 [08:07:49]Write to MH i2c: E2 08 00 CC 21 80 13 01 00 00 00 00 00 6A [08:07:49]Write i2c OK [08:07:49]MH_I2C_Read... [08:07:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:49]Read from MH i2c: E2 [08:07:49]MH_I2C_Read... [08:07:49]Read from MH i2c: E2 0E 00 [08:07:49]MH_I2C_Read... [08:07:49]Read from MH i2c: E2 0E 00 CC 21 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 83 [08:07:49]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [08:07:49]wFMCommunicate OK [08:07:49]SAM_PROTO_GetShiftState done [08:07:49]FM_GetShiftState done [08:07:49]req_shift_opened done [08:07:49]requested_item shift.open_date is exist - process it [08:07:49]req_shift_open_date [08:07:49]req_shift_open_date done [08:07:49]produce_requested_data done [08:07:49]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28831,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [08:07:49]process_action_free close_receipt [08:07:49]json_value_free [08:07:49]json_value_free done [08:07:49]process_json_proto returns [08:07:49]Send response to host [08:07:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28831,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [08:07:49]free response buf [08:07:49]execute_script done [08:07:49]execute_script returns [08:07:49]free content buf [08:07:49]Sock 9.Close socket [08:07:49]Sock 9.Thread stoped [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [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:55]accept exits with 7 [08:09:55]New connection [08:09:55]New thread 3066785124 created [08:09:55]Thread 3066928484 joined [08:09:55]Waiting for new connection... [08:09:55] Sock 7.Parse request [08:09:55]Sock 7.Check first char [08:09:55]Sock 7.First char is OK [08:09:55]request: POST /json_proto HTTP/1.0 [08:09:55]Method: POST [08:09:55]URL: /json_proto [08:09:55]Method is POST - this is cgi request [08:09:55]url: /json_proto [08:09:55]query_string will be loaded in cgi processing [08:09:55]execute_cgi json_proto POST (null) [08:09:55]execute_cgi path=json_proto method=POST [08:09:55]POST find Content-Length [08:09:55]Host: 172.17.33.3:8080 [08:09:55]Content-Length: 675 [08:09:55]Content-Type: application/json [08:09:55] [08:09:55]POST finish read [08:09:55]Found Content-Length = 675 [08:09:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:55]execute_script... [08:09: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)347180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:55]POST & json_proto [08:09:55]process_json_proto [08:09:55]json parsed OK: [08:09:55]protocol is kg_v1.0 [08:09:55]action value=close_receipt [08:09:55]process_action close_receipt [08:09:55]cmd_close_receipt [08:09:55]MH_GetDate [08:09:55]Write to MH i2c: F0 00 00 CD 21 DD [08:09:55]Write i2c OK [08:09:55]MH_I2C_Read... [08:09:55]Read from MH i2c: F0 [08:09:55]MH_I2C_Read... [08:09:55]Read from MH i2c: F0 09 00 [08:09:55]MH_I2C_Read... [08:09:55]Read from MH i2c: F0 09 00 CD 21 00 D7 3D 1A 66 23 5B 8F 65 EC [08:09:55]GetLastDocTimeStamp 1712995668 [08:09:55]current date 1712995799 [08:09:55]FM_GetShiftState [08:09:55]SAM_PROTO_GetShiftState [08:09:55]wFMCommunicate request_size=4 [08:09:55]MH_SAM_APDU [08:09:55]CAPDU: 80 13 01 00 [08:09:55]Write to MH i2c: E2 08 00 CE 21 80 13 01 00 00 00 00 00 6C [08:09:55]Write i2c OK [08:09:55]MH_I2C_Read... [08:09:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:55]Read from MH i2c: E2 [08:09:55]MH_I2C_Read... [08:09:55]Read from MH i2c: E2 0E 00 [08:09:55]MH_I2C_Read... [08:09:55]Read from MH i2c: E2 0E 00 CE 21 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 85 [08:09:55]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [08:09:55]wFMCommunicate OK [08:09:55]SAM_PROTO_GetShiftState done [08:09:55]FM_GetShiftState done [08:09:55]opened in 1712967615 [08:09:55]opened+sec_in_day 1713054015 [08:09:55]quantity*price = 100039 [08:09:55]sum+1 = 100041 [08:09:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 39 13.04.2024 08:09 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28832 ФПД: 250284538979548 1/tax-web-control/client/api/v1/ticket?date=20240413T080959&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28832&fm=250284538979548&tin=02508201610067®Number=0000138879044617&sum=100000 [08:09:56]StoreToDocumentArchive [08:09:56]shift 115 fd 28832 [08:09:56]save to /storage/0115/doc_00028832 [08:09:56]save last doc name /storage/0115/doc_00028832 to /storage/kkm_last_doc_name [08:09:56]save OK [08:09:56]Clear old archive folders... [08:09:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:09:56]tlvbuf is B6ED44A0 [08:09:56]SAM_PROTO_ClearQueue [08:09:56]wFMCommunicate request_size=4 [08:09:56]MH_SAM_APDU [08:09:56]CAPDU: 80 09 00 00 [08:09:56]Write to MH i2c: E2 08 00 DB 21 80 09 00 00 00 00 00 00 6E [08:09:56]Write i2c OK [08:09:56]MH_I2C_Read... [08:09:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:56]Read from MH i2c: E2 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 03 00 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 03 00 DB 21 00 90 00 70 [08:09:56]RAPDU: 90 00 [08:09:56]wFMCommunicate OK [08:09:56]SAM_PROTO_ClearQueue done [08:09:56]KKMCreateOFDPacket [08:09:56]OFDProtocolAddRootSTLVToBuf [08:09:56]FM_MakeSignedData [08:09:56]FM_MakeSignedData [08:09:56]SAM_PROTO_SignData [08:09:56]wFMCommunicate request_size=4 [08:09:56]MH_SAM_APDU [08:09:56]CAPDU: 80 0D 01 02 [08:09:56]Write to MH i2c: E2 08 00 DC 21 80 0D 01 02 00 00 00 00 76 [08:09:56]Write i2c OK [08:09:56]MH_I2C_Read... [08:09:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:56]Read from MH i2c: E2 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 03 00 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 03 00 DC 21 00 90 00 71 [08:09:56]RAPDU: 90 00 [08:09:56]wFMCommunicate OK [08:09:56]wFMCommunicate request_size=255 [08:09:56]MH_SAM_APDU [08:09:56]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D7 3D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A0 70 00 00 35 04 06 00 [08:09:56]Write to MH i2c: E2 02 01 DD 21 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D7 3D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A0 70 00 00 35 04 06 00 00 00 F1 [08:09:56]Write i2c OK [08:09:56]MH_I2C_Read... [08:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:56]Read from MH i2c: E2 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 03 00 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 03 00 DD 21 00 90 00 72 [08:09:56]RAPDU: 90 00 [08:09:56]wFMCommunicate OK [08:09:56]wFMCommunicate request_size=11 [08:09:56]MH_SAM_APDU [08:09:56]CAPDU: 80 0D 02 02 06 E3 A1 E9 09 E4 DC [08:09:56]Write to MH i2c: E2 0E 00 DE 21 80 0D 02 02 06 00 E3 A1 E9 09 E4 DC 00 00 BB [08:09:56]Write i2c OK [08:09:56]MH_I2C_Read... [08:09:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:57]Read from MH i2c: E2 [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: E2 03 00 [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: E2 03 00 DE 21 00 90 00 73 [08:09:57]RAPDU: 90 00 [08:09:57]wFMCommunicate OK [08:09:57]wFMCommunicate request_size=4 [08:09:57]MH_SAM_APDU [08:09:57]CAPDU: 80 0D 03 02 [08:09:57]Write to MH i2c: E2 08 00 DF 21 80 0D 03 02 00 00 00 00 7B [08:09:57]Write i2c OK [08:09:57]MH_I2C_Read... [08:09:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:57]Read from MH i2c: E2 [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: E2 0B 00 [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: E2 0B 00 DF 21 00 27 C0 67 76 CB FB AB 09 90 00 BA [08:09:57]RAPDU: 27 C0 67 76 CB FB AB 09 90 00 [08:09:57]wFMCommunicate OK [08:09:57]SAM_PROTO_SignData done [08:09:57]FM_MakeSignedData done [08:09:57]CreateOFDProtocolMessage [08:09:57]wFMCommunicate request_size=4 [08:09:57]MH_SAM_APDU [08:09:57]CAPDU: 80 11 00 00 [08:09:57]Write to MH i2c: E2 08 00 E0 21 80 11 00 00 00 00 00 00 7B [08:09:57]Write i2c OK [08:09:57]MH_I2C_Read... [08:09:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:57]Read from MH i2c: E2 [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: E2 17 00 [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: E2 17 00 E0 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CA [08:09:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:09:57]wFMCommunicate OK [08:09:57]CreateOFDProtocolMessage done [08:09:57]OFDSenderStorePacket 28832 [08:09:57]StoreOFDPacket docnum=28832 [08:09:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 DD 46 08 01 D6 A9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D7 3D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A0 70 00 00 35 04 06 00 E3 A1 E9 09 E4 DC 27 C0 67 76 CB FB AB 09 [08:09:57]CheckFolder [08:09:57]dirname=/storage/ofd_packets [08:09:57]CheckFolder done [08:09:57]ProducePacketName [08:09:57]name=ofd_packets/00028832 [08:09:57]NVStorageSaveData ofd_packets/00028832 [08:09:57]File name is /storage/ofd_packets/00028832 [08:09:57]Write 302 bytes [08:09:57]NVStorageSaveData done [08:09:57]OFDSenderStorePacket done [08:09:57]KKMCreateOFDPacket done [08:09:57]NVStorageSaveData kkm_last_timestamp [08:09:57]File name is /storage/kkm_last_timestamp [08:09:57]Write 4 bytes [08:09:57]NVStorageSaveData done [08:09:57]ExternCall_PrintAddStr [08:09:57]wPrintStart [08:09:57]Write to MH i2c: 01 00 00 E1 21 02 [08:09:57]Write i2c OK [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: 01 [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: 01 07 00 [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: 01 07 00 E1 21 00 00 00 00 00 FF 0F 17 [08:09:57]RasterBufferAndPrint [08:09:57]line Счет N : (1)347180 [08:09:57]line ИНН: 02508201610067 [08:09:57]line Контрольно-Кассовый Чек [08:09:57]line ПРОДАЖА [08:09:57]line ТРК (МРК, ГНК) : 41 [08:09:57]line Товар: 2710124130 [08:09:57]line SUPER-92-К-5 [08:09:57]line 15.320 * 65.30 [08:09:57]line = 1000.40 [08:09:57]line НДС 12% НСП 1% [08:09:57]line > о реализуемом товаре [08:09:57]line ОКРУГЛЕНИЕ: -0.40 [08:09:57]line ИТОГО: 1000.00 [08:09:57]line Внесено: 1000.00 [08:09:57]line СДАЧА: 0.00 [08:09:57]line НСП 1% : 8.85 [08:09:57]line НДС 12% : 106.24 [08:09:57]line Наличными: 1000.00 [08:09:57]line Безнал.: 0.00 [08:09:57]line Место: АЗС № 108 "Партнер Нефть" [08:09:57]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:09:57]line СНО: Общий режим [08:09:57]line Чек 39 13.04.2024 08:09 [08:09:57]line Смена: 115 ФФД: 1.0 [08:09:57]line ЗНМ: 0300000027 [08:09:57]line РНМ: 0000138879044617 [08:09:57]line Версия ККМ: 001 [08:09:57]line ФМ: 0000000000963154 [08:09:57]line ФД: 28832 [08:09:57]line ФПД: 250284538979548 [08:09:57]line 1/tax-web-control/client/api/v1/ticket?date=20240413T080959&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28832&fm=250284538979548&tin=02508201610067®Number=0000138879044617&sum=100000 [08:09:57]OFD Sender: Processing packet 28832 [packets to send 8, broken 7] [08:09:57]ProducePacketName [08:09:57]name=ofd_packets/00028832 [08:09:57]OFD Sender: To server: pG, [08:09:57]CommunicateWithHost lk.salyk.kg:30040 [08:09:57]ConnectInit lk.salyk.kg [08:09:57]written 0, free lines is 4095 [08:09:57]Connected sock=10 [08:09: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 31 35 34 10 01 00 00 DD 46 08 01 D6 A9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D7 3D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A0 70 00 00 35 04 06 00 E3 A1 E9 09 E4 DC 27 C0 67 76 CB FB AB 09 [08:09:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 3B 4F 47 00 87 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 31 35 34 10 04 04 00 A0 70 00 00 F4 03 04 00 7E E8 19 66 B6 04 01 00 00 83 2A 9E DB 49 64 95 C5 [08:09:57]CommunicateWithHost err = 0 [08:09:57]CheckOFDResponse [08:09:57]1017 (14) - 77093643461234 [08:09:57]1041 (16) - 0000000000963154 [08:09:57]1040 (4) - 28832 [08:09:57]1012 (4) - 13.04.2024 02:05 [08:09:57]1206 (1) - 0 [08:09:57]OFD Sender: Remove packet 28832 [08:09:57]ProducePacketName [08:09:57]name=ofd_packets/00028832 [08:09:57]NVStorageDeleteData [08:09:57]Write to MH i2c: 01 00 00 0B 22 2D [08:09:57]Write i2c OK [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: 01 [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: 01 07 00 [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: 01 07 00 0B 22 00 00 00 00 00 C0 0C 00 [08:09:57]RasterBufferAndPrint [08:09:57]line [08:09:57]line [08:09:57]line [08:09:57]line [08:09:57]line [08:09:57]written 0, free lines is 3268 [08:09:57]MH_Cut [08:09:57]Write to MH i2c: D1 01 00 12 22 01 06 [08:09:57]Write i2c OK [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: D1 [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: D1 01 00 [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: D1 01 00 12 22 00 05 [08:09:57]Write to MH i2c: 01 00 00 13 22 35 [08:09:57]Write i2c OK [08:09:57]MH_I2C_Read... [08:09:58]OFD Sender: No OFD packet to send [08:09:58]*** Cut start [08:09:58]*** Partial cut [08:09:58]*** CUTSNS_PIN = 1 [08:09:58]*** CUTSNS_PIN = 0 [08:09:59]*** Brake cut motor [08:09:59]Read from MH i2c: 01 [08:09:59]MH_I2C_Read... [08:09:59]*** Stop cut motor [08:09:59]*** Cut end [08:09:59]Read from MH i2c: 01 07 00 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: 01 07 00 13 22 00 00 00 00 00 FF 0F 4A [08:09:59]process_action close_receipt done [08:09:59]requested_data is exist [08:09:59]produce_requested_data [08:09:59]requested_item fm.sn is exist - process it [08:09:59]wFMCommunicate request_size=4 [08:09:59]MH_SAM_APDU [08:09:59]CAPDU: 80 11 00 00 [08:09:59]Write to MH i2c: E2 08 00 14 22 80 11 00 00 00 00 00 00 B0 [08:09:59]Write i2c OK [08:09:59]MH_I2C_Read... [08:09:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:59]Read from MH i2c: E2 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 17 00 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 17 00 14 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FF [08:09:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:09:59]wFMCommunicate OK [08:09:59]requested_item fd.num is exist - process it [08:09:59]SAM_PROTO_GetFieldsCounters [08:09:59]wFMCommunicate request_size=4 [08:09:59]MH_SAM_APDU [08:09:59]CAPDU: 80 13 00 00 [08:09:59]Write to MH i2c: E2 08 00 15 22 80 13 00 00 00 00 00 00 B3 [08:09:59]Write i2c OK [08:09:59]MH_I2C_Read... [08:09:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:59]Read from MH i2c: E2 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 62 00 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 62 00 15 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A0 70 00 00 0E 04 04 00 73 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 E9 [08:09: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A0 70 00 00 0E 04 04 00 73 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:09:59]wFMCommunicate OK [08:09:59]SAM_PROTO_GetFieldsCounters done [08:09:59]requested_item shift.num is exist - process it [08:09:59]requested_item shift.opened is exist - process it [08:09:59]req_shift_opened [08:09:59]FM_GetShiftState [08:09:59]SAM_PROTO_GetShiftState [08:09:59]wFMCommunicate request_size=4 [08:09:59]MH_SAM_APDU [08:09:59]CAPDU: 80 13 01 00 [08:09:59]Write to MH i2c: E2 08 00 16 22 80 13 01 00 00 00 00 00 B5 [08:09:59]Write i2c OK [08:09:59]MH_I2C_Read... [08:09:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:59]Read from MH i2c: E2 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 0E 00 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 0E 00 16 22 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 CE [08:09:59]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [08:09:59]wFMCommunicate OK [08:09:59]SAM_PROTO_GetShiftState done [08:09:59]FM_GetShiftState done [08:09:59]req_shift_opened done [08:09:59]requested_item shift.open_date is exist - process it [08:09:59]req_shift_open_date [08:09:59]req_shift_open_date done [08:09:59]produce_requested_data done [08:09:59]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28832,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [08:09:59]process_action_free close_receipt [08:09:59]json_value_free [08:09:59]json_value_free done [08:09:59]process_json_proto returns [08:09:59]Send response to host [08:09:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28832,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [08:09:59]free response buf [08:09:59]execute_script done [08:09:59]execute_script returns [08:09:59]free content buf [08:09:59]Sock 7.Close socket [08:09:59]Sock 7.Thread stoped [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:18]OFD Sender: No OFD packet to send [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:38]OFD Sender: No OFD packet to send [08:12:43]OFD Sender: No OFD packet to send [08:12:48]OFD Sender: No OFD packet to send [08:12:53]OFD Sender: No OFD packet to send [08:12:58]OFD Sender: No OFD packet to send [08:13:03]OFD Sender: No OFD packet to send [08:13:08]OFD Sender: No OFD packet to send [08:13:13]OFD Sender: No OFD packet to send [08:13:18]OFD Sender: No OFD packet to send [08:13:23]OFD Sender: No OFD packet to send [08:13:28]OFD Sender: No OFD packet to send [08:13:33]OFD Sender: No OFD packet to send [08:13:38]OFD Sender: No OFD packet to send [08:13:43]OFD Sender: No OFD packet to send [08:13:48]OFD Sender: No OFD packet to send [08:13:53]OFD Sender: No OFD packet to send [08:13:58]OFD Sender: No OFD packet to send [08:14:03]OFD Sender: No OFD packet to send [08:14:08]OFD Sender: No OFD packet to send [08:14:13]OFD Sender: No OFD packet to send [08:14:18]OFD Sender: No OFD packet to send [08:14:23]OFD Sender: No OFD packet to send [08:14:28]OFD Sender: No OFD packet to send [08:14:33]OFD Sender: No OFD packet to send [08:14:38]OFD Sender: No OFD packet to send [08:14:43]OFD Sender: No OFD packet to send [08:14:48]OFD Sender: No OFD packet to send [08:14:53]OFD Sender: No OFD packet to send [08:14:58]OFD Sender: No OFD packet to send [08:15:03]OFD Sender: No OFD packet to send [08:15:08]OFD Sender: No OFD packet to send [08:15:13]OFD Sender: No OFD packet to send [08:15:18]OFD Sender: No OFD packet to send [08:15:23]OFD Sender: No OFD packet to send [08:15:28]OFD Sender: No OFD packet to send [08:15:33]OFD Sender: No OFD packet to send [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:58]OFD Sender: No OFD packet to send [08:17:03]OFD Sender: No OFD packet to send [08:17:08]OFD Sender: No OFD packet to send [08:17:13]OFD Sender: No OFD packet to send [08:17:18]OFD Sender: No OFD packet to send [08:17:23]OFD Sender: No OFD packet to send [08:17:28]OFD Sender: No OFD packet to send [08:17:33]OFD Sender: No OFD packet to send [08:17:38]OFD Sender: No OFD packet to send [08:17:43]OFD Sender: No OFD packet to send [08:17:48]OFD Sender: No OFD packet to send [08:17:53]OFD Sender: No OFD packet to send [08:17:58]OFD Sender: No OFD packet to send [08:18:03]OFD Sender: No OFD packet to send [08:18:08]OFD Sender: No OFD packet to send [08:18:13]OFD Sender: No OFD packet to send [08:18:18]OFD Sender: No OFD packet to send [08:18:23]OFD Sender: No OFD packet to send [08:18:28]OFD Sender: No OFD packet to send [08:18:33]OFD Sender: No OFD packet to send [08:18:38]OFD Sender: No OFD packet to send [08:18:43]OFD Sender: No OFD packet to send [08:18:48]OFD Sender: No OFD packet to send [08:18:53]OFD Sender: No OFD packet to send [08:18:58]OFD Sender: No OFD packet to send [08:19:03]OFD Sender: No OFD packet to send [08:19:08]OFD Sender: No OFD packet to send [08:19:13]OFD Sender: No OFD packet to send [08:19:18]OFD Sender: No OFD packet to send [08:19:23]OFD Sender: No OFD packet to send [08:19:28]OFD Sender: No OFD packet to send [08:19:33]OFD Sender: No OFD packet to send [08:19:38]OFD Sender: No OFD packet to send [08:19:43]OFD Sender: No OFD packet to send [08:19:48]OFD Sender: No OFD packet to send [08:19:53]OFD Sender: No OFD packet to send [08:19:58]OFD Sender: No OFD packet to send [08:20:03]OFD Sender: No OFD packet to send [08:20:08]OFD Sender: No OFD packet to send [08:20:13]OFD Sender: No OFD packet to send [08:20:18]OFD Sender: No OFD packet to send [08:20:23]OFD Sender: No OFD packet to send [08:20:28]OFD Sender: No OFD packet to send [08:20:33]OFD Sender: No OFD packet to send [08:20:38]OFD Sender: No OFD packet to send [08:20:43]OFD Sender: No OFD packet to send [08:20:48]OFD Sender: No OFD packet to send [08:20:53]OFD Sender: No OFD packet to send [08:20:58]OFD Sender: No OFD packet to send [08:21:03]OFD Sender: No OFD packet to send [08:21:08]OFD Sender: No OFD packet to send [08:21:13]OFD Sender: No OFD packet to send [08:21:18]OFD Sender: No OFD packet to send [08:21:23]OFD Sender: No OFD packet to send [08:21:28]OFD Sender: No OFD packet to send [08:21:33]OFD Sender: No OFD packet to send [08:21:38]OFD Sender: No OFD packet to send [08:21:43]OFD Sender: No OFD packet to send [08:21:48]OFD Sender: No OFD packet to send [08:21:53]OFD Sender: No OFD packet to send [08:21:58]OFD Sender: No OFD packet to send [08:22:03]OFD Sender: No OFD packet to send [08:22:08]OFD Sender: No OFD packet to send [08:22:13]OFD Sender: No OFD packet to send [08:22:18]OFD Sender: No OFD packet to send [08:22:23]OFD Sender: No OFD packet to send [08:22:28]OFD Sender: No OFD packet to send [08:22:33]OFD Sender: No OFD packet to send [08:22:38]OFD Sender: No OFD packet to send [08:22:43]OFD Sender: No OFD packet to send [08:22:48]OFD Sender: No OFD packet to send [08:22:53]OFD Sender: No OFD packet to send [08:22:58]OFD Sender: No OFD packet to send [08:23:03]OFD Sender: No OFD packet to send [08:23:08]OFD Sender: No OFD packet to send [08:23:13]OFD Sender: No OFD packet to send [08:23:18]OFD Sender: No OFD packet to send [08:23:23]OFD Sender: No OFD packet to send [08:23:28]OFD Sender: No OFD packet to send [08:23:33]OFD Sender: No OFD packet to send [08:23:38]OFD Sender: No OFD packet to send [08:23:43]OFD Sender: No OFD packet to send [08:23:48]OFD Sender: No OFD packet to send [08:23:53]OFD Sender: No OFD packet to send [08:23:58]OFD Sender: No OFD packet to send [08:24:03]OFD Sender: No OFD packet to send [08:24:08]OFD Sender: No OFD packet to send [08:24:13]OFD Sender: No OFD packet to send [08:24:18]OFD Sender: No OFD packet to send [08:24:23]OFD Sender: No OFD packet to send [08:24:28]OFD Sender: No OFD packet to send [08:24:33]OFD Sender: No OFD packet to send [08:24:38]OFD Sender: No OFD packet to send [08:24:43]OFD Sender: No OFD packet to send [08:24:48]OFD Sender: No OFD packet to send [08:24:53]OFD Sender: No OFD packet to send [08:24:58]OFD Sender: No OFD packet to send [08:25:03]OFD Sender: No OFD packet to send [08:25:08]OFD Sender: No OFD packet to send [08:25:13]OFD Sender: No OFD packet to send [08:25:18]OFD Sender: No OFD packet to send [08:25:23]OFD Sender: No OFD packet to send [08:25:28]OFD Sender: No OFD packet to send [08:25:33]OFD Sender: No OFD packet to send [08:25:38]OFD Sender: No OFD packet to send [08:25:43]OFD Sender: No OFD packet to send [08:25:48]OFD Sender: No OFD packet to send [08:25:53]OFD Sender: No OFD packet to send [08:25:58]OFD Sender: No OFD packet to send [08:26:03]OFD Sender: No OFD packet to send [08:26:08]OFD Sender: No OFD packet to send [08:26:13]OFD Sender: No OFD packet to send [08:26:18]OFD Sender: No OFD packet to send [08:26:24]OFD Sender: No OFD packet to send [08:26:29]OFD Sender: No OFD packet to send [08:26:34]OFD Sender: No OFD packet to send [08:26:39]OFD Sender: No OFD packet to send [08:26:44]OFD Sender: No OFD packet to send [08:26:49]OFD Sender: No OFD packet to send [08:26:54]OFD Sender: No OFD packet to send [08:26:59]OFD Sender: No OFD packet to send [08:27:04]OFD Sender: No OFD packet to send [08:27:09]OFD Sender: No OFD packet to send [08:27:14]OFD Sender: No OFD packet to send [08:27:19]OFD Sender: No OFD packet to send [08:27:24]OFD Sender: No OFD packet to send [08:27:29]OFD Sender: No OFD packet to send [08:27:34]OFD Sender: No OFD packet to send [08:27:39]OFD Sender: No OFD packet to send [08:27:44]OFD Sender: No OFD packet to send [08:27:49]OFD Sender: No OFD packet to send [08:27:54]OFD Sender: No OFD packet to send [08:27:59]OFD Sender: No OFD packet to send [08:28:04]OFD Sender: No OFD packet to send [08:28:09]OFD Sender: No OFD packet to send [08:28:14]OFD Sender: No OFD packet to send [08:28:19]OFD Sender: No OFD packet to send [08:28:24]OFD Sender: No OFD packet to send [08:28:29]OFD Sender: No OFD packet to send [08:28:34]OFD Sender: No OFD packet to send [08:28:39]OFD Sender: No OFD packet to send [08:28:44]OFD Sender: No OFD packet to send [08:28:49]OFD Sender: No OFD packet to send [08:28:54]OFD Sender: No OFD packet to send [08:28:59]OFD Sender: No OFD packet to send [08:29:04]OFD Sender: No OFD packet to send [08:29:09]OFD Sender: No OFD packet to send [08:29:14]OFD Sender: No OFD packet to send [08:29:19]OFD Sender: No OFD packet to send [08:29:24]OFD Sender: No OFD packet to send [08:29:29]OFD Sender: No OFD packet to send [08:29:34]OFD Sender: No OFD packet to send [08:29:39]OFD Sender: No OFD packet to send [08:29:44]OFD Sender: No OFD packet to send [08:29:49]OFD Sender: No OFD packet to send [08:29:54]OFD Sender: No OFD packet to send [08:29:59]OFD Sender: No OFD packet to send [08:30:04]OFD Sender: No OFD packet to send [08:30:09]OFD Sender: No OFD packet to send [08:30:14]OFD Sender: No OFD packet to send [08:30:19]OFD Sender: No OFD packet to send [08:30:24]OFD Sender: No OFD packet to send [08:30:29]OFD Sender: No OFD packet to send [08:30:34]OFD Sender: No OFD packet to send [08:30:39]OFD Sender: No OFD packet to send [08:30:44]OFD Sender: No OFD packet to send [08:30:49]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:16]accept exits with 9 [08:31:16]New connection [08:31:16]New thread 3066928484 created [08:31:16]Thread 3066785124 joined [08:31:16]Waiting for new connection... [08:31:16] Sock 9.Parse request [08:31:16]Sock 9.Check first char [08:31:16]Sock 9.First char is OK [08:31:16]request: POST /json_proto HTTP/1.0 [08:31:16]Method: POST [08:31:16]URL: /json_proto [08:31:16]Method is POST - this is cgi request [08:31:16]url: /json_proto [08:31:16]query_string will be loaded in cgi processing [08:31:16]execute_cgi json_proto POST (null) [08:31:16]execute_cgi path=json_proto method=POST [08:31:16]POST find Content-Length [08:31:16]Host: 172.17.33.3:8080 [08:31:16]Content-Length: 670 [08:31:16]Content-Type: application/json [08:31:16] [08:31:16]POST finish read [08:31:16]Found Content-Length = 670 [08:31:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 9.190, "sum" : 600.11, "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" ] } } [08:31:16]execute_script... [08:31: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)347181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 9.190, "sum" : 600.11, "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" ] } } [08:31:16]POST & json_proto [08:31:16]process_json_proto [08:31:16]json parsed OK: [08:31:16]protocol is kg_v1.0 [08:31:16]action value=close_receipt [08:31:16]process_action close_receipt [08:31:16]cmd_close_receipt [08:31:16]MH_GetDate [08:31:16]Write to MH i2c: F0 00 00 17 22 28 [08:31:16]Write i2c OK [08:31:16]MH_I2C_Read... [08:31:16]Read from MH i2c: F0 [08:31:16]MH_I2C_Read... [08:31:16]Read from MH i2c: F0 09 00 [08:31:16]MH_I2C_Read... [08:31:16]Read from MH i2c: F0 09 00 17 22 00 D8 42 1A 66 23 5B 8F 65 3D [08:31:16]GetLastDocTimeStamp 1712995799 [08:31:16]current date 1712997080 [08:31:16]FM_GetShiftState [08:31:16]SAM_PROTO_GetShiftState [08:31:16]wFMCommunicate request_size=4 [08:31:16]MH_SAM_APDU [08:31:16]CAPDU: 80 13 01 00 [08:31:16]Write to MH i2c: E2 08 00 18 22 80 13 01 00 00 00 00 00 B7 [08:31:16]Write i2c OK [08:31:16]MH_I2C_Read... [08:31:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:16]Read from MH i2c: E2 [08:31:16]MH_I2C_Read... [08:31:16]Read from MH i2c: E2 0E 00 [08:31:16]MH_I2C_Read... [08:31:16]Read from MH i2c: E2 0E 00 18 22 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D0 [08:31:16]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [08:31:16]wFMCommunicate OK [08:31:17]SAM_PROTO_GetShiftState done [08:31:17]FM_GetShiftState done [08:31:17]opened in 1712967615 [08:31:17]opened+sec_in_day 1713054015 [08:31:17]quantity*price = 60010 [08:31:17]sum+1 = 60012 [08:31:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 40 13.04.2024 08:31 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28833 ФПД: 210135091857102 1/tax-web-control/client/api/v1/ticket?date=20240413T083120&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28833&fm=210135091857102&tin=02508201610067®Number=0000138879044617&sum=60000 [08:31:18]StoreToDocumentArchive [08:31:18]shift 115 fd 28833 [08:31:18]save to /storage/0115/doc_00028833 [08:31:18]save last doc name /storage/0115/doc_00028833 to /storage/kkm_last_doc_name [08:31:18]save OK [08:31:18]Clear old archive folders... [08:31:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:31:18]tlvbuf is B6F4F150 [08:31:18]SAM_PROTO_ClearQueue [08:31:18]wFMCommunicate request_size=4 [08:31:18]MH_SAM_APDU [08:31:18]CAPDU: 80 09 00 00 [08:31:18]Write to MH i2c: E2 08 00 25 22 80 09 00 00 00 00 00 00 B9 [08:31:18]Write i2c OK [08:31:18]MH_I2C_Read... [08:31:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:18]Read from MH i2c: E2 [08:31:18]MH_I2C_Read... [08:31:18]Read from MH i2c: E2 03 00 [08:31:18]MH_I2C_Read... [08:31:18]Read from MH i2c: E2 03 00 25 22 00 90 00 BB [08:31:18]RAPDU: 90 00 [08:31:18]wFMCommunicate OK [08:31:18]SAM_PROTO_ClearQueue done [08:31:18]KKMCreateOFDPacket [08:31:18]OFDProtocolAddRootSTLVToBuf [08:31:18]FM_MakeSignedData [08:31:18]FM_MakeSignedData [08:31:18]SAM_PROTO_SignData [08:31:18]wFMCommunicate request_size=4 [08:31:18]MH_SAM_APDU [08:31:18]CAPDU: 80 0D 01 02 [08:31:18]Write to MH i2c: E2 08 00 26 22 80 0D 01 02 00 00 00 00 C1 [08:31:18]Write i2c OK [08:31:18]MH_I2C_Read... [08:31:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:18]Read from MH i2c: E2 [08:31:18]MH_I2C_Read... [08:31:18]Read from MH i2c: E2 03 00 [08:31:18]MH_I2C_Read... [08:31:18]Read from MH i2c: E2 03 00 26 22 00 90 00 BC [08:31:18]RAPDU: 90 00 [08:31:18]wFMCommunicate OK [08:31:18]wFMCommunicate request_size=255 [08:31:18]MH_SAM_APDU [08:31:18]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 28 00 00 00 F4 03 04 00 D8 42 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A1 70 00 00 35 04 06 00 [08:31:18]Write to MH i2c: E2 02 01 27 22 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 28 00 00 00 F4 03 04 00 D8 42 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A1 70 00 00 35 04 06 00 00 00 77 [08:31:18]Write i2c OK [08:31:18]MH_I2C_Read... [08:31:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:18]Read from MH i2c: E2 [08:31:18]MH_I2C_Read... [08:31:18]Read from MH i2c: E2 03 00 [08:31:18]MH_I2C_Read... [08:31:18]Read from MH i2c: E2 03 00 27 22 00 90 00 BD [08:31:18]RAPDU: 90 00 [08:31:18]wFMCommunicate OK [08:31:18]wFMCommunicate request_size=11 [08:31:18]MH_SAM_APDU [08:31:18]CAPDU: 80 0D 02 02 06 BF 1D E3 81 46 CE [08:31:18]Write to MH i2c: E2 0E 00 28 22 80 0D 02 02 06 00 BF 1D E3 81 46 CE 00 00 24 [08:31:18]Write i2c OK [08:31:18]MH_I2C_Read... [08:31:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:18]Read from MH i2c: E2 [08:31:18]MH_I2C_Read... [08:31:18]Read from MH i2c: E2 03 00 [08:31:18]MH_I2C_Read... [08:31:18]Read from MH i2c: E2 03 00 28 22 00 90 00 BE [08:31:18]RAPDU: 90 00 [08:31:18]wFMCommunicate OK [08:31:18]wFMCommunicate request_size=4 [08:31:18]MH_SAM_APDU [08:31:18]CAPDU: 80 0D 03 02 [08:31:18]Write to MH i2c: E2 08 00 29 22 80 0D 03 02 00 00 00 00 C6 [08:31:18]Write i2c OK [08:31:18]MH_I2C_Read... [08:31:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:18]Read from MH i2c: E2 [08:31:18]MH_I2C_Read... [08:31:18]Read from MH i2c: E2 0B 00 [08:31:18]MH_I2C_Read... [08:31:18]Read from MH i2c: E2 0B 00 29 22 00 9C A2 39 88 34 7F 02 17 90 00 92 [08:31:18]RAPDU: 9C A2 39 88 34 7F 02 17 90 00 [08:31:18]wFMCommunicate OK [08:31:18]SAM_PROTO_SignData done [08:31:18]FM_MakeSignedData done [08:31:18]CreateOFDProtocolMessage [08:31:18]wFMCommunicate request_size=4 [08:31:18]MH_SAM_APDU [08:31:18]CAPDU: 80 11 00 00 [08:31:18]Write to MH i2c: E2 08 00 2A 22 80 11 00 00 00 00 00 00 C6 [08:31:18]Write i2c OK [08:31:18]MH_I2C_Read... [08:31:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:18]Read from MH i2c: E2 [08:31:18]MH_I2C_Read... [08:31:18]Read from MH i2c: E2 17 00 [08:31:18]MH_I2C_Read... [08:31:18]Read from MH i2c: E2 17 00 2A 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 15 [08:31:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:31:18]wFMCommunicate OK [08:31:18]CreateOFDProtocolMessage done [08:31:18]OFDSenderStorePacket 28833 [08:31:18]StoreOFDPacket docnum=28833 [08:31:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 AB 33 08 01 A6 7E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 28 00 00 00 F4 03 04 00 D8 42 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A1 70 00 00 35 04 06 00 BF 1D E3 81 46 CE 9C A2 39 88 34 7F 02 17 [08:31:18]CheckFolder [08:31:18]dirname=/storage/ofd_packets [08:31:18]CheckFolder done [08:31:18]ProducePacketName [08:31:18]name=ofd_packets/00028833 [08:31:18]NVStorageSaveData ofd_packets/00028833 [08:31:18]File name is /storage/ofd_packets/00028833 [08:31:18]Write 302 bytes [08:31:18]NVStorageSaveData done [08:31:18]OFDSenderStorePacket done [08:31:18]KKMCreateOFDPacket done [08:31:18]NVStorageSaveData kkm_last_timestamp [08:31:18]File name is /storage/kkm_last_timestamp [08:31:18]Write 4 bytes [08:31:18]NVStorageSaveData done [08:31:18]ExternCall_PrintAddStr [08:31:18]wPrintStart [08:31:18]Write to MH i2c: 01 00 00 2B 22 4D [08:31:18]Write i2c OK [08:31:18]MH_I2C_Read... [08:31:18]Read from MH i2c: 01 [08:31:18]MH_I2C_Read... [08:31:18]Read from MH i2c: 01 07 00 [08:31:18]MH_I2C_Read... [08:31:18]Read from MH i2c: 01 07 00 2B 22 00 00 00 00 00 FF 0F 62 [08:31:18]RasterBufferAndPrint [08:31:18]line Счет N : (1)347181 [08:31:18]line ИНН: 02508201610067 [08:31:18]line Контрольно-Кассовый Чек [08:31:18]line ПРОДАЖА [08:31:18]line ТРК (МРК, ГНК) : 31 [08:31:18]line Товар: 2710124130 [08:31:18]line SUPER-92-К-5 [08:31:18]line 9.190 * 65.30 [08:31:18]line = 600.11 [08:31:18]line НДС 12% НСП 1% [08:31:18]line > о реализуемом товаре [08:31:18]line ОКРУГЛЕНИЕ: -0.11 [08:31:18]line ИТОГО: 600.00 [08:31:18]line Внесено: 600.00 [08:31:18]line СДАЧА: 0.00 [08:31:18]line НСП 1% : 5.31 [08:31:18]line НДС 12% : 63.73 [08:31:18]line Наличными: 600.00 [08:31:18]line Безнал.: 0.00 [08:31:18]line Место: АЗС № 108 "Партнер Нефть" [08:31:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:31:18]line СНО: Общий режим [08:31:18]line Чек 40 13.04.2024 08:31 [08:31:18]line Смена: 115 ФФД: 1.0 [08:31:18]line ЗНМ: 0300000027 [08:31:18]line РНМ: 0000138879044617 [08:31:18]line Версия ККМ: 001 [08:31:18]line ФМ: 0000000000963154 [08:31:18]line ФД: 28833 [08:31:18]line ФПД: 210135091857102 [08:31:18]line 1/tax-web-control/client/api/v1/ticket?date=20240413T083120&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28833&fm=210135091857102&tin=02508201610067®Number=0000138879044617&sum=60000 [08:31:18]OFD Sender: Processing packet 28833 [packets to send 8, broken 7] [08:31:18]ProducePacketName [08:31:18]name=ofd_packets/00028833 [08:31:18]OFD Sender: To server: pG, [08:31:18]CommunicateWithHost lk.salyk.kg:30040 [08:31:18]ConnectInit lk.salyk.kg [08:31:18]written 0, free lines is 4095 [08:31:19]Connected sock=10 [08:31: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 31 35 34 10 01 00 00 AB 33 08 01 A6 7E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 28 00 00 00 F4 03 04 00 D8 42 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A1 70 00 00 35 04 06 00 BF 1D E3 81 46 CE 9C A2 39 88 34 7F 02 17 [08:31:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 42 53 47 00 AC 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 31 35 34 10 04 04 00 A1 70 00 00 F4 03 04 00 80 ED 19 66 B6 04 01 00 00 FA 1D 0C 0C FF E7 1F 59 [08:31:19]CommunicateWithHost err = 0 [08:31:19]CheckOFDResponse [08:31:19]1017 (14) - 77093643461234 [08:31:19]1041 (16) - 0000000000963154 [08:31:19]1040 (4) - 28833 [08:31:19]1012 (4) - 13.04.2024 02:27 [08:31:19]1206 (1) - 0 [08:31:19]OFD Sender: Remove packet 28833 [08:31:19]ProducePacketName [08:31:19]name=ofd_packets/00028833 [08:31:19]NVStorageDeleteData [08:31:19]Write to MH i2c: 01 00 00 55 22 77 [08:31:19]Write i2c OK [08:31:19]MH_I2C_Read... [08:31:19]Read from MH i2c: 01 [08:31:19]MH_I2C_Read... [08:31:19]Read from MH i2c: 01 07 00 [08:31:19]MH_I2C_Read... [08:31:19]Read from MH i2c: 01 07 00 55 22 00 00 00 00 00 BA 0C 44 [08:31:19]RasterBufferAndPrint [08:31:19]line [08:31:19]line [08:31:19]line [08:31:19]line [08:31:19]line [08:31:19]written 0, free lines is 3263 [08:31:19]MH_Cut [08:31:19]Write to MH i2c: D1 01 00 5C 22 01 50 [08:31:19]Write i2c OK [08:31:19]MH_I2C_Read... [08:31:19]Read from MH i2c: D1 [08:31:19]MH_I2C_Read... [08:31:19]Read from MH i2c: D1 01 00 [08:31:19]MH_I2C_Read... [08:31:19]Read from MH i2c: D1 01 00 5C 22 00 4F [08:31:19]Write to MH i2c: 01 00 00 5D 22 7F [08:31:19]Write i2c OK [08:31:19]MH_I2C_Read... [08:31:19]OFD Sender: No OFD packet to send [08:31:20]*** Cut start [08:31:20]*** Partial cut [08:31:20]*** CUTSNS_PIN = 1 [08:31:20]*** CUTSNS_PIN = 0 [08:31:20]*** Brake cut motor [08:31:20]Read from MH i2c: 01 [08:31:20]MH_I2C_Read... [08:31:20]*** Stop cut motor [08:31:20]*** Cut end [08:31:20]Read from MH i2c: 01 07 00 [08:31:20]MH_I2C_Read... [08:31:20]Read from MH i2c: 01 07 00 5D 22 00 00 00 00 00 FF 0F 94 [08:31:20]process_action close_receipt done [08:31:20]requested_data is exist [08:31:20]produce_requested_data [08:31:20]requested_item fm.sn is exist - process it [08:31:20]wFMCommunicate request_size=4 [08:31:20]MH_SAM_APDU [08:31:20]CAPDU: 80 11 00 00 [08:31:20]Write to MH i2c: E2 08 00 5E 22 80 11 00 00 00 00 00 00 FA [08:31:20]Write i2c OK [08:31:20]MH_I2C_Read... [08:31:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:20]Read from MH i2c: E2 [08:31:20]MH_I2C_Read... [08:31:20]Read from MH i2c: E2 17 00 [08:31:20]MH_I2C_Read... [08:31:20]Read from MH i2c: E2 17 00 5E 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 49 [08:31:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:31:20]wFMCommunicate OK [08:31:20]requested_item fd.num is exist - process it [08:31:20]SAM_PROTO_GetFieldsCounters [08:31:20]wFMCommunicate request_size=4 [08:31:20]MH_SAM_APDU [08:31:20]CAPDU: 80 13 00 00 [08:31:20]Write to MH i2c: E2 08 00 5F 22 80 13 00 00 00 00 00 00 FD [08:31:20]Write i2c OK [08:31:20]MH_I2C_Read... [08:31:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:21]Read from MH i2c: E2 [08:31:21]MH_I2C_Read... [08:31:21]Read from MH i2c: E2 62 00 [08:31:21]MH_I2C_Read... [08:31:21]Read from MH i2c: E2 62 00 5F 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A1 70 00 00 0E 04 04 00 73 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 37 [08:31: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A1 70 00 00 0E 04 04 00 73 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:31:21]wFMCommunicate OK [08:31:21]SAM_PROTO_GetFieldsCounters done [08:31:21]requested_item shift.num is exist - process it [08:31:21]requested_item shift.opened is exist - process it [08:31:21]req_shift_opened [08:31:21]FM_GetShiftState [08:31:21]SAM_PROTO_GetShiftState [08:31:21]wFMCommunicate request_size=4 [08:31:21]MH_SAM_APDU [08:31:21]CAPDU: 80 13 01 00 [08:31:21]Write to MH i2c: E2 08 00 60 22 80 13 01 00 00 00 00 00 FF [08:31:21]Write i2c OK [08:31:21]MH_I2C_Read... [08:31:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:21]Read from MH i2c: E2 [08:31:21]MH_I2C_Read... [08:31:21]Read from MH i2c: E2 0E 00 [08:31:21]MH_I2C_Read... [08:31:21]Read from MH i2c: E2 0E 00 60 22 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 18 [08:31:21]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [08:31:21]wFMCommunicate OK [08:31:21]SAM_PROTO_GetShiftState done [08:31:21]FM_GetShiftState done [08:31:21]req_shift_opened done [08:31:21]requested_item shift.open_date is exist - process it [08:31:21]req_shift_open_date [08:31:21]req_shift_open_date done [08:31:21]produce_requested_data done [08:31:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28833,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [08:31:21]process_action_free close_receipt [08:31:21]json_value_free [08:31:21]json_value_free done [08:31:21]process_json_proto returns [08:31:21]Send response to host [08:31:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28833,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [08:31:21]free response buf [08:31:21]execute_script done [08:31:21]execute_script returns [08:31:21]free content buf [08:31:21]Sock 9.Close socket [08:31:21]Sock 9.Thread stoped [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:09]OFD Sender: No OFD packet to send [08:32:14]OFD Sender: No OFD packet to send [08:32:19]OFD Sender: No OFD packet to send [08:32:24]OFD Sender: No OFD packet to send [08:32:29]OFD Sender: No OFD packet to send [08:32:34]OFD Sender: No OFD packet to send [08:32:39]OFD Sender: No OFD packet to send [08:32:41]accept exits with 7 [08:32:41]New connection [08:32:41]New thread 3066785124 created [08:32:41]Thread 3066928484 joined [08:32:41]Waiting for new connection... [08:32:41] Sock 7.Parse request [08:32:41]Sock 7.Check first char [08:32:41]Sock 7.First char is OK [08:32:41]request: POST /json_proto HTTP/1.0 [08:32:41]Method: POST [08:32:41]URL: /json_proto [08:32:41]Method is POST - this is cgi request [08:32:41]url: /json_proto [08:32:41]query_string will be loaded in cgi processing [08:32:41]execute_cgi json_proto POST (null) [08:32:41]execute_cgi path=json_proto method=POST [08:32:41]POST find Content-Length [08:32:41]Host: 172.17.33.3:8080 [08:32:41]Content-Length: 681 [08:32:41]Content-Type: application/json [08:32:41] [08:32:41]POST finish read [08:32:41]Found Content-Length = 681 [08:32:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 12.160, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:41]execute_script... [08:32: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)347182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 12.160, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:41]POST & json_proto [08:32:41]process_json_proto [08:32:41]json parsed OK: [08:32:41]protocol is kg_v1.0 [08:32:41]action value=close_receipt [08:32:41]process_action close_receipt [08:32:41]cmd_close_receipt [08:32:41]MH_GetDate [08:32:41]Write to MH i2c: F0 00 00 61 22 72 [08:32:41]Write i2c OK [08:32:41]MH_I2C_Read... [08:32:41]Read from MH i2c: F0 [08:32:41]MH_I2C_Read... [08:32:41]Read from MH i2c: F0 09 00 [08:32:41]MH_I2C_Read... [08:32:41]Read from MH i2c: F0 09 00 61 22 00 2D 43 1A 66 23 5B 8F 65 DD [08:32:41]GetLastDocTimeStamp 1712997080 [08:32:41]current date 1712997165 [08:32:41]FM_GetShiftState [08:32:41]SAM_PROTO_GetShiftState [08:32:41]wFMCommunicate request_size=4 [08:32:41]MH_SAM_APDU [08:32:41]CAPDU: 80 13 01 00 [08:32:41]Write to MH i2c: E2 08 00 62 22 80 13 01 00 00 00 00 00 01 [08:32:41]Write i2c OK [08:32:41]MH_I2C_Read... [08:32:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:41]Read from MH i2c: E2 [08:32:41]MH_I2C_Read... [08:32:41]Read from MH i2c: E2 0E 00 [08:32:41]MH_I2C_Read... [08:32:41]Read from MH i2c: E2 0E 00 62 22 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 1A [08:32:41]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [08:32:41]wFMCommunicate OK [08:32:41]SAM_PROTO_GetShiftState done [08:32:41]FM_GetShiftState done [08:32:41]opened in 1712967615 [08:32:41]opened+sec_in_day 1713054015 [08:32:41]quantity*price = 40006 [08:32:41]sum+1 = 40007 [08:32:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 41 13.04.2024 08:32 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28834 ФПД: 131161485292535 1/tax-web-control/client/api/v1/ticket?date=20240413T083245&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28834&fm=131161485292535&tin=02508201610067®Number=0000138879044617&sum=40000 [08:32:42]StoreToDocumentArchive [08:32:42]shift 115 fd 28834 [08:32:42]save to /storage/0115/doc_00028834 [08:32:42]save last doc name /storage/0115/doc_00028834 to /storage/kkm_last_doc_name [08:32:42]save OK [08:32:42]Clear old archive folders... [08:32:42]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:32:42]tlvbuf is 011BCDA0 [08:32:42]SAM_PROTO_ClearQueue [08:32:42]wFMCommunicate request_size=4 [08:32:42]MH_SAM_APDU [08:32:42]CAPDU: 80 09 00 00 [08:32:42]Write to MH i2c: E2 08 00 6F 22 80 09 00 00 00 00 00 00 03 [08:32:42]Write i2c OK [08:32:42]MH_I2C_Read... [08:32:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:42]Read from MH i2c: E2 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 03 00 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 03 00 6F 22 00 90 00 05 [08:32:42]RAPDU: 90 00 [08:32:42]wFMCommunicate OK [08:32:42]SAM_PROTO_ClearQueue done [08:32:42]KKMCreateOFDPacket [08:32:42]OFDProtocolAddRootSTLVToBuf [08:32:42]FM_MakeSignedData [08:32:42]FM_MakeSignedData [08:32:42]SAM_PROTO_SignData [08:32:42]wFMCommunicate request_size=4 [08:32:42]MH_SAM_APDU [08:32:42]CAPDU: 80 0D 01 02 [08:32:42]Write to MH i2c: E2 08 00 70 22 80 0D 01 02 00 00 00 00 0B [08:32:42]Write i2c OK [08:32:42]MH_I2C_Read... [08:32:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:42]Read from MH i2c: E2 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 03 00 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 03 00 70 22 00 90 00 06 [08:32:42]RAPDU: 90 00 [08:32:42]wFMCommunicate OK [08:32:42]wFMCommunicate request_size=255 [08:32:42]MH_SAM_APDU [08:32:42]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 DA 0C 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 29 00 00 00 F4 03 04 00 2D 43 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A2 70 00 00 35 04 06 00 77 4A [08:32:42]Write to MH i2c: E2 02 01 71 22 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 DA 0C 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 29 00 00 00 F4 03 04 00 2D 43 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A2 70 00 00 35 04 06 00 77 4A 00 00 7B [08:32:42]Write i2c OK [08:32:42]MH_I2C_Read... [08:32:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:43]Read from MH i2c: E2 [08:32:43]MH_I2C_Read... [08:32:43]Read from MH i2c: E2 03 00 [08:32:43]MH_I2C_Read... [08:32:43]Read from MH i2c: E2 03 00 71 22 00 90 00 07 [08:32:43]RAPDU: 90 00 [08:32:43]wFMCommunicate OK [08:32:43]wFMCommunicate request_size=9 [08:32:43]MH_SAM_APDU [08:32:43]CAPDU: 80 0D 02 02 04 69 BD 33 F7 [08:32:43]Write to MH i2c: E2 0C 00 72 22 80 0D 02 02 04 00 69 BD 33 F7 00 00 66 [08:32:43]Write i2c OK [08:32:43]MH_I2C_Read... [08:32:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:43]Read from MH i2c: E2 [08:32:43]MH_I2C_Read... [08:32:43]Read from MH i2c: E2 03 00 [08:32:43]MH_I2C_Read... [08:32:43]Read from MH i2c: E2 03 00 72 22 00 90 00 08 [08:32:43]RAPDU: 90 00 [08:32:43]wFMCommunicate OK [08:32:43]wFMCommunicate request_size=4 [08:32:43]MH_SAM_APDU [08:32:43]CAPDU: 80 0D 03 02 [08:32:43]Write to MH i2c: E2 08 00 73 22 80 0D 03 02 00 00 00 00 10 [08:32:43]Write i2c OK [08:32:43]MH_I2C_Read... [08:32:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:43]Read from MH i2c: E2 [08:32:43]MH_I2C_Read... [08:32:43]Read from MH i2c: E2 0B 00 [08:32:43]MH_I2C_Read... [08:32:43]Read from MH i2c: E2 0B 00 73 22 00 20 38 96 D2 D9 90 96 F8 90 00 C8 [08:32:43]RAPDU: 20 38 96 D2 D9 90 96 F8 90 00 [08:32:43]wFMCommunicate OK [08:32:43]SAM_PROTO_SignData done [08:32:43]FM_MakeSignedData done [08:32:43]CreateOFDProtocolMessage [08:32:43]wFMCommunicate request_size=4 [08:32:43]MH_SAM_APDU [08:32:43]CAPDU: 80 11 00 00 [08:32:43]Write to MH i2c: E2 08 00 74 22 80 11 00 00 00 00 00 00 10 [08:32:43]Write i2c OK [08:32:43]MH_I2C_Read... [08:32:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:43]Read from MH i2c: E2 [08:32:43]MH_I2C_Read... [08:32:43]Read from MH i2c: E2 17 00 [08:32:43]MH_I2C_Read... [08:32:43]Read from MH i2c: E2 17 00 74 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5F [08:32:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:32:43]wFMCommunicate OK [08:32:43]CreateOFDProtocolMessage done [08:32:43]OFDSenderStorePacket 28834 [08:32:43]StoreOFDPacket docnum=28834 [08:32:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 84 FE 06 01 F9 4A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 DA 0C 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 29 00 00 00 F4 03 04 00 2D 43 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A2 70 00 00 35 04 06 00 77 4A 69 BD 33 F7 20 38 96 D2 D9 90 96 F8 [08:32:43]CheckFolder [08:32:43]dirname=/storage/ofd_packets [08:32:43]CheckFolder done [08:32:43]ProducePacketName [08:32:43]name=ofd_packets/00028834 [08:32:43]NVStorageSaveData ofd_packets/00028834 [08:32:43]File name is /storage/ofd_packets/00028834 [08:32:43]Write 300 bytes [08:32:43]NVStorageSaveData done [08:32:43]OFDSenderStorePacket done [08:32:43]KKMCreateOFDPacket done [08:32:43]NVStorageSaveData kkm_last_timestamp [08:32:43]File name is /storage/kkm_last_timestamp [08:32:43]Write 4 bytes [08:32:43]NVStorageSaveData done [08:32:43]ExternCall_PrintAddStr [08:32:43]wPrintStart [08:32:43]Write to MH i2c: 01 00 00 75 22 97 [08:32:43]OFD Sender: Processing packet 28834 [packets to send 8, broken 7] [08:32:43]ProducePacketName [08:32:43]name=ofd_packets/00028834 [08:32:43]OFD Sender: To server: pG, [08:32:43]CommunicateWithHost lk.salyk.kg:30040 [08:32:43]ConnectInit lk.salyk.kg [08:32:43]Write i2c OK [08:32:43]MH_I2C_Read... [08:32:43]Read from MH i2c: 01 [08:32:43]MH_I2C_Read... [08:32:43]Read from MH i2c: 01 07 00 [08:32:43]MH_I2C_Read... [08:32:43]Read from MH i2c: 01 07 00 75 22 00 00 00 00 00 FF 0F AC [08:32:43]RasterBufferAndPrint [08:32:43]line Счет N : (1)347182 [08:32:43]line ИНН: 02508201610067 [08:32:43]line Контрольно-Кассовый Чек [08:32:43]line ПРОДАЖА [08:32:43]line ТРК (МРК, ГНК) : 71 [08:32:43]line Товар: 2711129700 [08:32:43]line ГАЗ-К-5 [08:32:43]line 12.160 * 32.90 [08:32:43]line = 400.06 [08:32:43]line НДС 12% НСП 1% [08:32:43]line > о реализуемом товаре [08:32:43]line ОКРУГЛЕНИЕ: -0.06 [08:32:43]line ИТОГО: 400.00 [08:32:43]line Внесено: 400.00 [08:32:43]line СДАЧА: 0.00 [08:32:43]line НСП 1% : 3.54 [08:32:43]line НДС 12% : 42.48 [08:32:43]line Наличными: 400.00 [08:32:43]line Безнал.: 0.00 [08:32:43]line Место: АЗС № 108 "Партнер Нефть" [08:32:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:32:43]line СНО: Общий режим [08:32:43]line Чек 41 13.04.2024 08:32 [08:32:43]line Смена: 115 ФФД: 1.0 [08:32:43]line ЗНМ: 0300000027 [08:32:43]line РНМ: 0000138879044617 [08:32:43]line Версия ККМ: 001 [08:32:43]line ФМ: 0000000000963154 [08:32:43]line ФД: 28834 [08:32:43]line ФПД: 131161485292535 [08:32:43]line 1/tax-web-control/client/api/v1/ticket?date=20240413T083245&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28834&fm=131161485292535&tin=02508201610067®Number=0000138879044617&sum=40000 [08:32:43]written 0, free lines is 4095 [08:32:43]Connected sock=10 [08:32: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 31 35 34 0E 01 00 00 84 FE 06 01 F9 4A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 DA 0C 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 29 00 00 00 F4 03 04 00 2D 43 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A2 70 00 00 35 04 06 00 77 4A 69 BD 33 F7 20 38 96 D2 D9 90 96 F8 [08:32:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DE 9F 47 00 6B 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 31 35 34 10 04 04 00 A2 70 00 00 F4 03 04 00 D4 ED 19 66 B6 04 01 00 00 1C 8F 18 26 85 8A 35 C3 [08:32:43]CommunicateWithHost err = 0 [08:32:43]CheckOFDResponse [08:32:43]1017 (14) - 77093643461234 [08:32:43]1041 (16) - 0000000000963154 [08:32:43]1040 (4) - 28834 [08:32:43]1012 (4) - 13.04.2024 02:28 [08:32:43]1206 (1) - 0 [08:32:43]OFD Sender: Remove packet 28834 [08:32:43]ProducePacketName [08:32:43]name=ofd_packets/00028834 [08:32:43]NVStorageDeleteData [08:32:43]Write to MH i2c: 01 00 00 9F 22 C1 [08:32:43]Write i2c OK [08:32:43]MH_I2C_Read... [08:32:43]Read from MH i2c: 01 [08:32:43]MH_I2C_Read... [08:32:43]Read from MH i2c: 01 07 00 [08:32:43]MH_I2C_Read... [08:32:43]Read from MH i2c: 01 07 00 9F 22 00 00 00 00 00 BB 0C 8F [08:32:43]RasterBufferAndPrint [08:32:43]line [08:32:43]line [08:32:43]line [08:32:43]line [08:32:43]line [08:32:43]written 0, free lines is 3263 [08:32:43]MH_Cut [08:32:43]Write to MH i2c: D1 01 00 A6 22 01 9A [08:32:43]Write i2c OK [08:32:43]MH_I2C_Read... [08:32:43]Read from MH i2c: D1 [08:32:43]MH_I2C_Read... [08:32:43]Read from MH i2c: D1 01 00 [08:32:43]MH_I2C_Read... [08:32:43]Read from MH i2c: D1 01 00 A6 22 00 99 [08:32:43]Write to MH i2c: 01 00 00 A7 22 C9 [08:32:43]Write i2c OK [08:32:43]MH_I2C_Read... [08:32:44]OFD Sender: No OFD packet to send [08:32:44]*** Cut start [08:32:44]*** Partial cut [08:32:44]*** CUTSNS_PIN = 1 [08:32:44]*** CUTSNS_PIN = 0 [08:32:44]*** Brake cut motor [08:32:45]Read from MH i2c: 01 [08:32:45]MH_I2C_Read... [08:32:45]*** Stop cut motor [08:32:45]*** Cut end [08:32:45]Read from MH i2c: 01 07 00 [08:32:45]MH_I2C_Read... [08:32:45]Read from MH i2c: 01 07 00 A7 22 00 00 00 00 00 FF 0F DE [08:32:45]process_action close_receipt done [08:32:45]requested_data is exist [08:32:45]produce_requested_data [08:32:45]requested_item fm.sn is exist - process it [08:32:45]wFMCommunicate request_size=4 [08:32:45]MH_SAM_APDU [08:32:45]CAPDU: 80 11 00 00 [08:32:45]Write to MH i2c: E2 08 00 A8 22 80 11 00 00 00 00 00 00 44 [08:32:45]Write i2c OK [08:32:45]MH_I2C_Read... [08:32:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:45]Read from MH i2c: E2 [08:32:45]MH_I2C_Read... [08:32:45]Read from MH i2c: E2 17 00 [08:32:45]MH_I2C_Read... [08:32:45]Read from MH i2c: E2 17 00 A8 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 93 [08:32:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:32:45]wFMCommunicate OK [08:32:45]requested_item fd.num is exist - process it [08:32:45]SAM_PROTO_GetFieldsCounters [08:32:45]wFMCommunicate request_size=4 [08:32:45]MH_SAM_APDU [08:32:45]CAPDU: 80 13 00 00 [08:32:45]Write to MH i2c: E2 08 00 A9 22 80 13 00 00 00 00 00 00 47 [08:32:45]Write i2c OK [08:32:45]MH_I2C_Read... [08:32:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:45]Read from MH i2c: E2 [08:32:45]MH_I2C_Read... [08:32:45]Read from MH i2c: E2 62 00 [08:32:45]MH_I2C_Read... [08:32:45]Read from MH i2c: E2 62 00 A9 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A2 70 00 00 0E 04 04 00 73 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 85 [08:32: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A2 70 00 00 0E 04 04 00 73 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:32:45]wFMCommunicate OK [08:32:45]SAM_PROTO_GetFieldsCounters done [08:32:45]requested_item shift.num is exist - process it [08:32:45]requested_item shift.opened is exist - process it [08:32:45]req_shift_opened [08:32:45]FM_GetShiftState [08:32:45]SAM_PROTO_GetShiftState [08:32:45]wFMCommunicate request_size=4 [08:32:45]MH_SAM_APDU [08:32:45]CAPDU: 80 13 01 00 [08:32:45]Write to MH i2c: E2 08 00 AA 22 80 13 01 00 00 00 00 00 49 [08:32:45]Write i2c OK [08:32:45]MH_I2C_Read... [08:32:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:45]Read from MH i2c: E2 [08:32:45]MH_I2C_Read... [08:32:45]Read from MH i2c: E2 0E 00 [08:32:45]MH_I2C_Read... [08:32:45]Read from MH i2c: E2 0E 00 AA 22 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 62 [08:32:45]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [08:32:45]wFMCommunicate OK [08:32:45]SAM_PROTO_GetShiftState done [08:32:45]FM_GetShiftState done [08:32:45]req_shift_opened done [08:32:45]requested_item shift.open_date is exist - process it [08:32:45]req_shift_open_date [08:32:45]req_shift_open_date done [08:32:45]produce_requested_data done [08:32:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28834,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [08:32:45]process_action_free close_receipt [08:32:45]json_value_free [08:32:45]json_value_free done [08:32:45]process_json_proto returns [08:32:45]Send response to host [08:32:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28834,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [08:32:45]free response buf [08:32:45]execute_script done [08:32:45]execute_script returns [08:32:45]free content buf [08:32:45]Sock 7.Close socket [08:32:45]Sock 7.Thread stoped [08:32:49]OFD Sender: No OFD packet to send [08:32:54]OFD Sender: No OFD packet to send [08:32:59]OFD Sender: No OFD packet to send [08:33:04]OFD Sender: No OFD packet to send [08:33:09]OFD Sender: No OFD packet to send [08:33:14]OFD Sender: No OFD packet to send [08:33:19]OFD Sender: No OFD packet to send [08:33:24]OFD Sender: No OFD packet to send [08:33:29]OFD Sender: No OFD packet to send [08:33:34]OFD Sender: No OFD packet to send [08:33:39]OFD Sender: No OFD packet to send [08:33:44]OFD Sender: No OFD packet to send [08:33:49]OFD Sender: No OFD packet to send [08:33:54]OFD Sender: No OFD packet to send [08:33:59]OFD Sender: No OFD packet to send [08:34:04]OFD Sender: No OFD packet to send [08:34:09]OFD Sender: No OFD packet to send [08:34:14]OFD Sender: No OFD packet to send [08:34:19]OFD Sender: No OFD packet to send [08:34:24]OFD Sender: No OFD packet to send [08:34:29]OFD Sender: No OFD packet to send [08:34:34]OFD Sender: No OFD packet to send [08:34:39]OFD Sender: No OFD packet to send [08:34:44]OFD Sender: No OFD packet to send [08:34:49]OFD Sender: No OFD packet to send [08:34:54]OFD Sender: No OFD packet to send [08:34:59]OFD Sender: No OFD packet to send [08:35:04]OFD Sender: No OFD packet to send [08:35:09]OFD Sender: No OFD packet to send [08:35:14]OFD Sender: No OFD packet to send [08:35:19]OFD Sender: No OFD packet to send [08:35:24]OFD Sender: No OFD packet to send [08:35:29]OFD Sender: No OFD packet to send [08:35:34]OFD Sender: No OFD packet to send [08:35:39]OFD Sender: No OFD packet to send [08:35:44]OFD Sender: No OFD packet to send [08:35:49]OFD Sender: No OFD packet to send [08:35:54]OFD Sender: No OFD packet to send [08:35:59]OFD Sender: No OFD packet to send [08:36:04]OFD Sender: No OFD packet to send [08:36:09]OFD Sender: No OFD packet to send [08:36:14]OFD Sender: No OFD packet to send [08:36:19]OFD Sender: No OFD packet to send [08:36:24]OFD Sender: No OFD packet to send [08:36:29]OFD Sender: No OFD packet to send [08:36:34]OFD Sender: No OFD packet to send [08:36:39]OFD Sender: No OFD packet to send [08:36:44]OFD Sender: No OFD packet to send [08:36:49]OFD Sender: No OFD packet to send [08:36:54]OFD Sender: No OFD packet to send [08:36:59]OFD Sender: No OFD packet to send [08:37:04]OFD Sender: No OFD packet to send [08:37:09]OFD Sender: No OFD packet to send [08:37:14]OFD Sender: No OFD packet to send [08:37:19]OFD Sender: No OFD packet to send [08:37:24]OFD Sender: No OFD packet to send [08:37:29]OFD Sender: No OFD packet to send [08:37:34]OFD Sender: No OFD packet to send [08:37:39]OFD Sender: No OFD packet to send [08:37:44]OFD Sender: No OFD packet to send [08:37:49]OFD Sender: No OFD packet to send [08:37:54]OFD Sender: No OFD packet to send [08:37:59]OFD Sender: No OFD packet to send [08:38:04]OFD Sender: No OFD packet to send [08:38:09]OFD Sender: No OFD packet to send [08:38:14]OFD Sender: No OFD packet to send [08:38:19]OFD Sender: No OFD packet to send [08:38:24]OFD Sender: No OFD packet to send [08:38:29]OFD Sender: No OFD packet to send [08:38:34]OFD Sender: No OFD packet to send [08:38:39]OFD Sender: No OFD packet to send [08:38:44]OFD Sender: No OFD packet to send [08:38:49]OFD Sender: No OFD packet to send [08:38:54]OFD Sender: No OFD packet to send [08:38:59]OFD Sender: No OFD packet to send [08:39:04]OFD Sender: No OFD packet to send [08:39:09]OFD Sender: No OFD packet to send [08:39:14]OFD Sender: No OFD packet to send [08:39:19]OFD Sender: No OFD packet to send [08:39:24]OFD Sender: No OFD packet to send [08:39:29]OFD Sender: No OFD packet to send [08:39:34]OFD Sender: No OFD packet to send [08:39:39]OFD Sender: No OFD packet to send [08:39:44]OFD Sender: No OFD packet to send [08:39:49]OFD Sender: No OFD packet to send [08:39:54]OFD Sender: No OFD packet to send [08:39:59]OFD Sender: No OFD packet to send [08:40:04]OFD Sender: No OFD packet to send [08:40:09]OFD Sender: No OFD packet to send [08:40:14]OFD Sender: No OFD packet to send [08:40:19]OFD Sender: No OFD packet to send [08:40:24]OFD Sender: No OFD packet to send [08:40:29]OFD Sender: No OFD packet to send [08:40:34]OFD Sender: No OFD packet to send [08:40:39]OFD Sender: No OFD packet to send [08:40:44]OFD Sender: No OFD packet to send [08:40:49]OFD Sender: No OFD packet to send [08:40:54]OFD Sender: No OFD packet to send [08:40:59]OFD Sender: No OFD packet to send [08:41:04]OFD Sender: No OFD packet to send [08:41:09]OFD Sender: No OFD packet to send [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]OFD Sender: No OFD packet to send [08:41:34]OFD Sender: No OFD packet to send [08:41:39]OFD Sender: No OFD packet to send [08:41:44]OFD Sender: No OFD packet to send [08:41:49]OFD Sender: No OFD packet to send [08:41:54]OFD Sender: No OFD packet to send [08:41:59]OFD Sender: No OFD packet to send [08:42:04]OFD Sender: No OFD packet to send [08:42:09]OFD Sender: No OFD packet to send [08:42:14]OFD Sender: No OFD packet to send [08:42:19]OFD Sender: No OFD packet to send [08:42:24]OFD Sender: No OFD packet to send [08:42:29]OFD Sender: No OFD packet to send [08:42:34]OFD Sender: No OFD packet to send [08:42:39]OFD Sender: No OFD packet to send [08:42:44]OFD Sender: No OFD packet to send [08:42:49]OFD Sender: No OFD packet to send [08:42:54]OFD Sender: No OFD packet to send [08:42:59]OFD Sender: No OFD packet to send [08:43:04]OFD Sender: No OFD packet to send [08:43:09]OFD Sender: No OFD packet to send [08:43:14]OFD Sender: No OFD packet to send [08:43:19]OFD Sender: No OFD packet to send [08:43:24]OFD Sender: No OFD packet to send [08:43:29]OFD Sender: No OFD packet to send [08:43:34]OFD Sender: No OFD packet to send [08:43:39]OFD Sender: No OFD packet to send [08:43:44]OFD Sender: No OFD packet to send [08:43:49]OFD Sender: No OFD packet to send [08:43:54]OFD Sender: No OFD packet to send [08:43:59]OFD Sender: No OFD packet to send [08:44:04]accept exits with 9 [08:44:04]New connection [08:44:04]New thread 3066928484 created [08:44:04]Thread 3066785124 joined [08:44:04]Waiting for new connection... [08:44:04] Sock 9.Parse request [08:44:04]Sock 9.Check first char [08:44:04]Sock 9.First char is OK [08:44:04]request: POST /json_proto HTTP/1.0 [08:44:04]Method: POST [08:44:04]URL: /json_proto [08:44:04]Method is POST - this is cgi request [08:44:04]url: /json_proto [08:44:04]query_string will be loaded in cgi processing [08:44:04]execute_cgi json_proto POST (null) [08:44:04]execute_cgi path=json_proto method=POST [08:44:04]POST find Content-Length [08:44:04]Host: 172.17.33.3:8080 [08:44:04]Content-Length: 1196 [08:44:04]Content-Type: application/json [08:44:04] [08:44:04]POST finish read [08:44:04]Found Content-Length = 1196 [08:44:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347183\u000A13.04.2024 08:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 643.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3879528\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:04]execute_script... [08:44:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347183\u000A13.04.2024 08:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 643.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3879528\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:04]POST & json_proto [08:44:04]process_json_proto [08:44:04]json parsed OK: [08:44:04]protocol is kg_v1.0 [08:44:04]action value=print_text [08:44:04]process_action print_text [08:44:04]cmd_print_text [08:44:04]ExternCall_PrintAddStr [08:44:04]wPrintStart [08:44:04]Write to MH i2c: 01 00 00 AB 22 CD [08:44:04]Write i2c OK [08:44:04]MH_I2C_Read... [08:44:04]Read from MH i2c: 01 [08:44:04]MH_I2C_Read... [08:44:04]Read from MH i2c: 01 07 00 [08:44:04]MH_I2C_Read... [08:44:04]Read from MH i2c: 01 07 00 AB 22 00 00 00 00 00 FF 0F E2 [08:44:04]RasterBufferAndPrint [08:44:04]line *****ТОВАРНЫЙ ЧЕК***** [08:44:04]line АЗС 108 [08:44:04]line Партнер нефть [08:44:04]line 02508201610067 [08:44:04]line Кассир : Шадыканова Ж. [08:44:04]line Счет N : (1)347183 [08:44:04]line 13.04.2024 08:25 [08:44:04]line ПРОДАЖА [08:44:04]line ТРК (МРК, ГНК): 23 [08:44:04]line Вид ГСМ : 2710124130 [08:44:04]line Аи-92-К-5 [08:44:04]line 10.000 x 64.30 [08:44:04]line ИТОГ: 643.00 [08:44:04]line Тип оплаты: Талоны: Партнер нефть [08:44:04]line 3879528 [08:44:04]line ______________________ [08:44:04]line (подпись) [08:44:04]written 0, free lines is 4095 [08:44:04]Write to MH i2c: 01 00 00 C0 22 E2 [08:44:04]Write i2c OK [08:44:04]MH_I2C_Read... [08:44:04]Read from MH i2c: 01 [08:44:04]MH_I2C_Read... [08:44:04]Read from MH i2c: 01 07 00 [08:44:04]MH_I2C_Read... [08:44:04]Read from MH i2c: 01 07 00 C0 22 00 00 00 00 00 F6 0D EC [08:44:04]RasterBufferAndPrint [08:44:04]line [08:44:04]line [08:44:04]line [08:44:04]line [08:44:04]line [08:44:04]written 0, free lines is 3576 [08:44:04]MH_Cut [08:44:04]Write to MH i2c: D1 01 00 C7 22 01 BB [08:44:04]Write i2c OK [08:44:04]MH_I2C_Read... [08:44:04]Read from MH i2c: D1 [08:44:04]MH_I2C_Read... [08:44:04]Read from MH i2c: D1 01 00 [08:44:04]MH_I2C_Read... [08:44:04]Read from MH i2c: D1 01 00 C7 22 00 BA [08:44:04]Write to MH i2c: 01 00 00 C8 22 EA [08:44:04]Write i2c OK [08:44:04]MH_I2C_Read... [08:44:04]OFD Sender: No OFD packet to send [08:44:04]*** Cut start [08:44:04]*** Partial cut [08:44:04]*** CUTSNS_PIN = 1 [08:44:04]*** CUTSNS_PIN = 0 [08:44:05]*** Brake cut motor [08:44:05]Read from MH i2c: 01 [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: 01 07 00 [08:44:05]MH_I2C_Read... [08:44:05]*** Stop cut motor [08:44:05]*** Cut end [08:44:05]Read from MH i2c: 01 07 00 C8 22 00 00 00 00 00 FF 0F FF [08:44:05]process_action print_text done [08:44:05]requested_data is exist [08:44:05]produce_requested_data [08:44:05]requested_item fm.sn is exist - process it [08:44:05]wFMCommunicate request_size=4 [08:44:05]MH_SAM_APDU [08:44:05]CAPDU: 80 11 00 00 [08:44:05]Write to MH i2c: E2 08 00 C9 22 80 11 00 00 00 00 00 00 65 [08:44:05]Write i2c OK [08:44:05]MH_I2C_Read... [08:44:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:05]Read from MH i2c: E2 [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: E2 17 00 [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: E2 17 00 C9 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B4 [08:44:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:44:05]wFMCommunicate OK [08:44:05]requested_item fd.num is exist - process it [08:44:05]SAM_PROTO_GetFieldsCounters [08:44:05]wFMCommunicate request_size=4 [08:44:05]MH_SAM_APDU [08:44:05]CAPDU: 80 13 00 00 [08:44:05]Write to MH i2c: E2 08 00 CA 22 80 13 00 00 00 00 00 00 68 [08:44:05]Write i2c OK [08:44:05]MH_I2C_Read... [08:44:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:05]Read from MH i2c: E2 [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: E2 62 00 [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: E2 62 00 CA 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A2 70 00 00 0E 04 04 00 73 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 A6 [08:44:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A2 70 00 00 0E 04 04 00 73 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:44:05]wFMCommunicate OK [08:44:05]SAM_PROTO_GetFieldsCounters done [08:44:05]requested_item shift.num is exist - process it [08:44:05]requested_item shift.opened is exist - process it [08:44:05]req_shift_opened [08:44:05]FM_GetShiftState [08:44:05]SAM_PROTO_GetShiftState [08:44:05]wFMCommunicate request_size=4 [08:44:05]MH_SAM_APDU [08:44:05]CAPDU: 80 13 01 00 [08:44:05]Write to MH i2c: E2 08 00 CB 22 80 13 01 00 00 00 00 00 6A [08:44:05]Write i2c OK [08:44:05]MH_I2C_Read... [08:44:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:05]Read from MH i2c: E2 [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: E2 0E 00 [08:44:05]MH_I2C_Read... [08:44:05]Read from MH i2c: E2 0E 00 CB 22 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 83 [08:44:05]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [08:44:05]wFMCommunicate OK [08:44:05]SAM_PROTO_GetShiftState done [08:44:05]FM_GetShiftState done [08:44:05]req_shift_opened done [08:44:05]requested_item shift.open_date is exist - process it [08:44:05]req_shift_open_date [08:44:05]req_shift_open_date done [08:44:05]produce_requested_data done [08:44:05]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28834,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [08:44:05]process_action_free print_text [08:44:05]json_value_free [08:44:05]json_value_free done [08:44:05]process_json_proto returns [08:44:05]Send response to host [08:44:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28834,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [08:44:05]free response buf [08:44:05]execute_script done [08:44:05]execute_script returns [08:44:05]free content buf [08:44:05]Sock 9.Close socket [08:44:05]Sock 9.Thread stoped [08:44:09]OFD Sender: No OFD packet to send [08:44:14]OFD Sender: No OFD packet to send [08:44:19]OFD Sender: No OFD packet to send [08:44:24]OFD Sender: No OFD packet to send [08:44:29]OFD Sender: No OFD packet to send [08:44:34]OFD Sender: No OFD packet to send [08:44:39]OFD Sender: No OFD packet to send [08:44:44]OFD Sender: No OFD packet to send [08:44:49]OFD Sender: No OFD packet to send [08:44:54]OFD Sender: No OFD packet to send [08:44:59]OFD Sender: No OFD packet to send [08:45:04]OFD Sender: No OFD packet to send [08:45:09]OFD Sender: No OFD packet to send [08:45:14]OFD Sender: No OFD packet to send [08:45:19]OFD Sender: No OFD packet to send [08:45:24]OFD Sender: No OFD packet to send [08:45:29]OFD Sender: No OFD packet to send [08:45:34]OFD Sender: No OFD packet to send [08:45:39]OFD Sender: No OFD packet to send [08:45:44]OFD Sender: No OFD packet to send [08:45:49]OFD Sender: No OFD packet to send [08:45:54]OFD Sender: No OFD packet to send [08:45:59]OFD Sender: No OFD packet to send [08:46:04]OFD Sender: No OFD packet to send [08:46:09]OFD Sender: No OFD packet to send [08:46:14]OFD Sender: No OFD packet to send [08:46:19]OFD Sender: No OFD packet to send [08:46:24]OFD Sender: No OFD packet to send [08:46:29]OFD Sender: No OFD packet to send [08:46:34]OFD Sender: No OFD packet to send [08:46:39]OFD Sender: No OFD packet to send [08:46:44]OFD Sender: No OFD packet to send [08:46:49]OFD Sender: No OFD packet to send [08:46:54]OFD Sender: No OFD packet to send [08:46:59]OFD Sender: No OFD packet to send [08:47:04]OFD Sender: No OFD packet to send [08:47:09]OFD Sender: No OFD packet to send [08:47:14]OFD Sender: No OFD packet to send [08:47:19]OFD Sender: No OFD packet to send [08:47:24]OFD Sender: No OFD packet to send [08:47:29]OFD Sender: No OFD packet to send [08:47:34]OFD Sender: No OFD packet to send [08:47:39]OFD Sender: No OFD packet to send [08:47:44]OFD Sender: No OFD packet to send [08:47:49]OFD Sender: No OFD packet to send [08:47:54]OFD Sender: No OFD packet to send [08:47:59]OFD Sender: No OFD packet to send [08:48:04]OFD Sender: No OFD packet to send [08:48:09]OFD Sender: No OFD packet to send [08:48:14]OFD Sender: No OFD packet to send [08:48:19]OFD Sender: No OFD packet to send [08:48:24]OFD Sender: No OFD packet to send [08:48:29]OFD Sender: No OFD packet to send [08:48:34]OFD Sender: No OFD packet to send [08:48:39]OFD Sender: No OFD packet to send [08:48:44]OFD Sender: No OFD packet to send [08:48:49]OFD Sender: No OFD packet to send [08:48:54]OFD Sender: No OFD packet to send [08:48:59]OFD Sender: No OFD packet to send [08:49:04]OFD Sender: No OFD packet to send [08:49:09]OFD Sender: No OFD packet to send [08:49:14]OFD Sender: No OFD packet to send [08:49:19]OFD Sender: No OFD packet to send [08:49:24]OFD Sender: No OFD packet to send [08:49:29]OFD Sender: No OFD packet to send [08:49:34]OFD Sender: No OFD packet to send [08:49:39]OFD Sender: No OFD packet to send [08:49:44]OFD Sender: No OFD packet to send [08:49:49]OFD Sender: No OFD packet to send [08:49:54]OFD Sender: No OFD packet to send [08:49:59]OFD Sender: No OFD packet to send [08:50:04]OFD Sender: No OFD packet to send [08:50:09]OFD Sender: No OFD packet to send [08:50:14]OFD Sender: No OFD packet to send [08:50:19]OFD Sender: No OFD packet to send [08:50:24]OFD Sender: No OFD packet to send [08:50:29]OFD Sender: No OFD packet to send [08:50:34]OFD Sender: No OFD packet to send [08:50:39]OFD Sender: No OFD packet to send [08:50:44]OFD Sender: No OFD packet to send [08:50:49]OFD Sender: No OFD packet to send [08:50:54]OFD Sender: No OFD packet to send [08:50:59]OFD Sender: No OFD packet to send [08:51:04]OFD Sender: No OFD packet to send [08:51:09]OFD Sender: No OFD packet to send [08:51:14]OFD Sender: No OFD packet to send [08:51:19]OFD Sender: No OFD packet to send [08:51:24]OFD Sender: No OFD packet to send [08:51:29]OFD Sender: No OFD packet to send [08:51:34]OFD Sender: No OFD packet to send [08:51:39]OFD Sender: No OFD packet to send [08:51:44]OFD Sender: No OFD packet to send [08:51:49]OFD Sender: No OFD packet to send [08:51:52]accept exits with 7 [08:51:52]New connection [08:51:52]New thread 3066785124 created [08:51:52]Thread 3066928484 joined [08:51:52]Waiting for new connection... [08:51:52] Sock 7.Parse request [08:51:52]Sock 7.Check first char [08:51:52]Sock 7.First char is OK [08:51:52]request: POST /json_proto HTTP/1.0 [08:51:52]Method: POST [08:51:52]URL: /json_proto [08:51:52]Method is POST - this is cgi request [08:51:52]url: /json_proto [08:51:52]query_string will be loaded in cgi processing [08:51:52]execute_cgi json_proto POST (null) [08:51:52]execute_cgi path=json_proto method=POST [08:51:52]POST find Content-Length [08:51:52]Host: 172.17.33.3:8080 [08:51:52]Content-Length: 840 [08:51:52]Content-Type: application/json [08:51:52] [08:51:52]POST finish read [08:51:52]Found Content-Length = 840 [08:51:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347185", "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" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:52]execute_script... [08:51: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)347185", "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" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:52]POST & json_proto [08:51:52]process_json_proto [08:51:52]json parsed OK: [08:51:52]protocol is kg_v1.0 [08:51:52]action value=close_receipt [08:51:52]process_action close_receipt [08:51:52]cmd_close_receipt [08:51:52]MH_GetDate [08:51:52]Write to MH i2c: F0 00 00 CC 22 DD [08:51:52]Write i2c OK [08:51:52]MH_I2C_Read... [08:51:52]Read from MH i2c: F0 [08:51:52]MH_I2C_Read... [08:51:52]Read from MH i2c: F0 09 00 [08:51:52]MH_I2C_Read... [08:51:52]Read from MH i2c: F0 09 00 CC 22 00 AB 47 1A 66 23 5B 8F 65 CA [08:51:52]GetLastDocTimeStamp 1712997165 [08:51:52]current date 1712998315 [08:51:52]FM_GetShiftState [08:51:52]SAM_PROTO_GetShiftState [08:51:52]wFMCommunicate request_size=4 [08:51:52]MH_SAM_APDU [08:51:52]CAPDU: 80 13 01 00 [08:51:52]Write to MH i2c: E2 08 00 CD 22 80 13 01 00 00 00 00 00 6C [08:51:52]Write i2c OK [08:51:52]MH_I2C_Read... [08:51:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:52]Read from MH i2c: E2 [08:51:52]MH_I2C_Read... [08:51:52]Read from MH i2c: E2 0E 00 [08:51:52]MH_I2C_Read... [08:51:52]Read from MH i2c: E2 0E 00 CD 22 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 85 [08:51:52]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [08:51:52]wFMCommunicate OK [08:51:52]SAM_PROTO_GetShiftState done [08:51:52]FM_GetShiftState done [08:51:52]opened in 1712967615 [08:51:52]opened+sec_in_day 1713054015 [08:51:52]quantity*price = 100056 [08:51:52]sum+1 = 100058 [08:51:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.57 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.57 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 42 13.04.2024 08:51 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28835 ФПД: 269301640245217 1/tax-web-control/client/api/v1/ticket?date=20240413T085155&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28835&fm=269301640245217&tin=02508201610067®Number=0000138879044617&sum=100057 [08:51:53]StoreToDocumentArchive [08:51:53]shift 115 fd 28835 [08:51:53]save to /storage/0115/doc_00028835 [08:51:53]save last doc name /storage/0115/doc_00028835 to /storage/kkm_last_doc_name [08:51:53]save OK [08:51:53]Clear old archive folders... [08:51:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:51:53]tlvbuf is 012104F0 [08:51:53]SAM_PROTO_ClearQueue [08:51:53]wFMCommunicate request_size=4 [08:51:53]MH_SAM_APDU [08:51:53]CAPDU: 80 09 00 00 [08:51:53]Write to MH i2c: E2 08 00 DA 22 80 09 00 00 00 00 00 00 6E [08:51:53]Write i2c OK [08:51:53]MH_I2C_Read... [08:51:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:53]Read from MH i2c: E2 [08:51:53]MH_I2C_Read... [08:51:53]Read from MH i2c: E2 03 00 [08:51:53]MH_I2C_Read... [08:51:53]Read from MH i2c: E2 03 00 DA 22 00 90 00 70 [08:51:53]RAPDU: 90 00 [08:51:53]wFMCommunicate OK [08:51:53]SAM_PROTO_ClearQueue done [08:51:53]KKMCreateOFDPacket [08:51:53]OFDProtocolAddRootSTLVToBuf [08:51:53]FM_MakeSignedData [08:51:53]FM_MakeSignedData [08:51:53]SAM_PROTO_SignData [08:51:53]wFMCommunicate request_size=4 [08:51:53]MH_SAM_APDU [08:51:53]CAPDU: 80 0D 01 02 [08:51:53]Write to MH i2c: E2 08 00 DB 22 80 0D 01 02 00 00 00 00 76 [08:51:53]Write i2c OK [08:51:53]MH_I2C_Read... [08:51:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:53]Read from MH i2c: E2 [08:51:53]MH_I2C_Read... [08:51:53]Read from MH i2c: E2 03 00 [08:51:53]MH_I2C_Read... [08:51:53]Read from MH i2c: E2 03 00 DB 22 00 90 00 71 [08:51:53]RAPDU: 90 00 [08:51:53]wFMCommunicate OK [08:51:53]wFMCommunicate request_size=255 [08:51:53]MH_SAM_APDU [08:51:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 AB 47 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A3 70 00 00 35 04 06 00 F4 ED AC 9A [08:51:53]Write to MH i2c: E2 02 01 DC 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 AB 47 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A3 70 00 00 35 04 06 00 F4 ED AC 9A 00 00 10 [08:51:53]Write i2c OK [08:51:53]MH_I2C_Read... [08:51:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:53]Read from MH i2c: E2 [08:51:53]MH_I2C_Read... [08:51:53]Read from MH i2c: E2 03 00 [08:51:53]MH_I2C_Read... [08:51:53]Read from MH i2c: E2 03 00 DC 22 00 90 00 72 [08:51:53]RAPDU: 90 00 [08:51:53]wFMCommunicate OK [08:51:53]wFMCommunicate request_size=7 [08:51:53]MH_SAM_APDU [08:51:53]CAPDU: 80 0D 02 02 02 AF E1 [08:51:53]Write to MH i2c: E2 0A 00 DD 22 80 0D 02 02 02 00 AF E1 00 00 0D [08:51:53]Write i2c OK [08:51:53]MH_I2C_Read... [08:51:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:53]Read from MH i2c: E2 [08:51:53]MH_I2C_Read... [08:51:53]Read from MH i2c: E2 03 00 [08:51:53]MH_I2C_Read... [08:51:53]Read from MH i2c: E2 03 00 DD 22 00 90 00 73 [08:51:53]RAPDU: 90 00 [08:51:53]wFMCommunicate OK [08:51:53]wFMCommunicate request_size=4 [08:51:53]MH_SAM_APDU [08:51:53]CAPDU: 80 0D 03 02 [08:51:53]Write to MH i2c: E2 08 00 DE 22 80 0D 03 02 00 00 00 00 7B [08:51:53]Write i2c OK [08:51:53]MH_I2C_Read... [08:51:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:53]Read from MH i2c: E2 [08:51:53]MH_I2C_Read... [08:51:53]Read from MH i2c: E2 0B 00 [08:51:53]MH_I2C_Read... [08:51:53]Read from MH i2c: E2 0B 00 DE 22 00 E3 0B 2F 81 F7 34 F3 C6 90 00 FE [08:51:53]RAPDU: E3 0B 2F 81 F7 34 F3 C6 90 00 [08:51:53]wFMCommunicate OK [08:51:53]SAM_PROTO_SignData done [08:51:53]FM_MakeSignedData done [08:51:53]CreateOFDProtocolMessage [08:51:53]wFMCommunicate request_size=4 [08:51:53]MH_SAM_APDU [08:51:53]CAPDU: 80 11 00 00 [08:51:53]Write to MH i2c: E2 08 00 DF 22 80 11 00 00 00 00 00 00 7B [08:51:53]Write i2c OK [08:51:53]MH_I2C_Read... [08:51:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:53]Read from MH i2c: E2 [08:51:53]MH_I2C_Read... [08:51:53]Read from MH i2c: E2 17 00 [08:51:53]MH_I2C_Read... [08:51:53]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 31 35 34 90 00 CA [08:51:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:51:53]wFMCommunicate OK [08:51:53]CreateOFDProtocolMessage done [08:51:53]OFDSenderStorePacket 28835 [08:51:53]StoreOFDPacket docnum=28835 [08:51:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 6E 97 04 01 09 31 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 AB 47 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A3 70 00 00 35 04 06 00 F4 ED AC 9A AF E1 E3 0B 2F 81 F7 34 F3 C6 [08:51:53]CheckFolder [08:51:53]dirname=/storage/ofd_packets [08:51:53]CheckFolder done [08:51:53]ProducePacketName [08:51:53]name=ofd_packets/00028835 [08:51:53]NVStorageSaveData ofd_packets/00028835 [08:51:53]File name is /storage/ofd_packets/00028835 [08:51:53]Write 298 bytes [08:51:53]NVStorageSaveData done [08:51:53]OFDSenderStorePacket done [08:51:53]KKMCreateOFDPacket done [08:51:53]NVStorageSaveData kkm_last_timestamp [08:51:53]File name is /storage/kkm_last_timestamp [08:51:53]Write 4 bytes [08:51:53]NVStorageSaveData done [08:51:53]ExternCall_PrintAddStr [08:51:53]wPrintStart [08:51:53]Write to MH i2c: 01 00 00 E0 22 02 [08:51:53]Write i2c OK [08:51:53]MH_I2C_Read... [08:51:53]Read from MH i2c: 01 [08:51:53]MH_I2C_Read... [08:51:53]Read from MH i2c: 01 07 00 [08:51:53]MH_I2C_Read... [08:51:53]Read from MH i2c: 01 07 00 E0 22 00 00 00 00 00 FF 0F 17 [08:51:53]RasterBufferAndPrint [08:51:53]line Счет N : (1)347185 [08:51:53]line ИНН: 02508201610067 [08:51:53]line Контрольно-Кассовый Чек [08:51:53]line ПРОДАЖА [08:51:53]line ТРК (МРК, ГНК) : 61 [08:51:53]line Товар: 2710194210 [08:51:53]line ДТ-К-5 [08:51:53]line 13.820 * 72.40 [08:51:53]line = 1000.57 [08:51:53]line НДС 12% НСП 1% [08:51:53]line > о реализуемом товаре [08:51:53]line ИТОГО: 1000.57 [08:51:53]line НСП 1% : 8.85 [08:51:53]line НДС 12% : 106.25 [08:51:53]line Наличными: 0.00 [08:51:53]line Безнал.: 1000.57 [08:51:53]line Место: АЗС № 108 "Партнер Нефть" [08:51:53]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:51:53]line СНО: Общий режим [08:51:53]line Чек 42 13.04.2024 08:51 [08:51:53]line Смена: 115 ФФД: 1.0 [08:51:53]line ЗНМ: 0300000027 [08:51:53]line РНМ: 0000138879044617 [08:51:53]line Версия ККМ: 001 [08:51:53]line Платежная система: АКБ Кыргызстан [08:51:53]line ФМ: 0000000000963154 [08:51:53]line ФД: 28835 [08:51:53]line ФПД: 269301640245217 [08:51:54]line 1/tax-web-control/client/api/v1/ticket?date=20240413T085155&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28835&fm=269301640245217&tin=02508201610067®Number=0000138879044617&sum=100057 [08:51:54]OFD Sender: Processing packet 28835 [packets to send 8, broken 7] [08:51:54]ProducePacketName [08:51:54]name=ofd_packets/00028835 [08:51:54]OFD Sender: To server: pG, [08:51:54]CommunicateWithHost lk.salyk.kg:30040 [08:51:54]ConnectInit lk.salyk.kg [08:51:54]written 0, free lines is 4095 [08:51:54]Connected sock=10 [08:51: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 31 35 34 0C 01 00 00 6E 97 04 01 09 31 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 AB 47 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A3 70 00 00 35 04 06 00 F4 ED AC 9A AF E1 E3 0B 2F 81 F7 34 F3 C6 [08:51:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DE 6A 47 00 88 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A3 70 00 00 F4 03 04 00 53 F2 19 66 B6 04 01 00 00 C2 FD 79 BE 8A 3A 4D 8E [08:51:54]CommunicateWithHost err = 0 [08:51:54]CheckOFDResponse [08:51:54]1017 (14) - 77093643461234 [08:51:54]1041 (16) - 0000000000963154 [08:51:54]1040 (4) - 28835 [08:51:54]1012 (4) - 13.04.2024 02:47 [08:51:54]1206 (1) - 0 [08:51:54]OFD Sender: Remove packet 28835 [08:51:54]ProducePacketName [08:51:54]name=ofd_packets/00028835 [08:51:54]NVStorageDeleteData [08:51:54]Write to MH i2c: 01 00 00 09 23 2C [08:51:54]Write i2c OK [08:51:54]MH_I2C_Read... [08:51:54]Read from MH i2c: 01 [08:51:54]MH_I2C_Read... [08:51:54]Read from MH i2c: 01 07 00 [08:51:54]MH_I2C_Read... [08:51:54]Read from MH i2c: 01 07 00 09 23 00 00 00 00 00 D4 0C 13 [08:51:54]RasterBufferAndPrint [08:51:54]line [08:51:54]line [08:51:54]line [08:51:54]line [08:51:54]line [08:51:54]written 0, free lines is 3290 [08:51:54]MH_Cut [08:51:54]Write to MH i2c: D1 01 00 10 23 01 05 [08:51:54]Write i2c OK [08:51:54]MH_I2C_Read... [08:51:54]Read from MH i2c: D1 [08:51:54]MH_I2C_Read... [08:51:54]Read from MH i2c: D1 01 00 [08:51:54]MH_I2C_Read... [08:51:54]Read from MH i2c: D1 01 00 10 23 00 04 [08:51:54]Write to MH i2c: 01 00 00 11 23 34 [08:51:54]Write i2c OK [08:51:54]MH_I2C_Read... [08:51:54]OFD Sender: No OFD packet to send [08:51:55]*** Cut start [08:51:55]*** Partial cut [08:51:55]*** CUTSNS_PIN = 1 [08:51:55]*** CUTSNS_PIN = 0 [08:51:55]*** Brake cut motor [08:51:55]Read from MH i2c: 01 [08:51:55]MH_I2C_Read... [08:51:55]*** Stop cut motor [08:51:56]*** Cut end [08:51:56]Read from MH i2c: 01 07 00 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: 01 07 00 11 23 00 00 00 00 00 FF 0F 49 [08:51:56]process_action close_receipt done [08:51:56]requested_data is exist [08:51:56]produce_requested_data [08:51:56]requested_item fm.sn is exist - process it [08:51:56]wFMCommunicate request_size=4 [08:51:56]MH_SAM_APDU [08:51:56]CAPDU: 80 11 00 00 [08:51:56]Write to MH i2c: E2 08 00 12 23 80 11 00 00 00 00 00 00 AF [08:51:56]Write i2c OK [08:51:56]MH_I2C_Read... [08:51:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:56]Read from MH i2c: E2 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: E2 17 00 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: E2 17 00 12 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FE [08:51:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:51:56]wFMCommunicate OK [08:51:56]requested_item fd.num is exist - process it [08:51:56]SAM_PROTO_GetFieldsCounters [08:51:56]wFMCommunicate request_size=4 [08:51:56]MH_SAM_APDU [08:51:56]CAPDU: 80 13 00 00 [08:51:56]Write to MH i2c: E2 08 00 13 23 80 13 00 00 00 00 00 00 B2 [08:51:56]Write i2c OK [08:51:56]MH_I2C_Read... [08:51:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:56]Read from MH i2c: E2 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: E2 62 00 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: E2 62 00 13 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A3 70 00 00 0E 04 04 00 73 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 F4 [08:51: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A3 70 00 00 0E 04 04 00 73 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:51:56]wFMCommunicate OK [08:51:56]SAM_PROTO_GetFieldsCounters done [08:51:56]requested_item shift.num is exist - process it [08:51:56]requested_item shift.opened is exist - process it [08:51:56]req_shift_opened [08:51:56]FM_GetShiftState [08:51:56]SAM_PROTO_GetShiftState [08:51:56]wFMCommunicate request_size=4 [08:51:56]MH_SAM_APDU [08:51:56]CAPDU: 80 13 01 00 [08:51:56]Write to MH i2c: E2 08 00 14 23 80 13 01 00 00 00 00 00 B4 [08:51:56]Write i2c OK [08:51:56]MH_I2C_Read... [08:51:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:56]Read from MH i2c: E2 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: E2 0E 00 [08:51:56]MH_I2C_Read... [08:51:56]Read from MH i2c: E2 0E 00 14 23 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 CD [08:51:56]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [08:51:56]wFMCommunicate OK [08:51:56]SAM_PROTO_GetShiftState done [08:51:56]FM_GetShiftState done [08:51:56]req_shift_opened done [08:51:56]requested_item shift.open_date is exist - process it [08:51:56]req_shift_open_date [08:51:56]req_shift_open_date done [08:51:56]produce_requested_data done [08:51:56]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28835,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [08:51:56]process_action_free close_receipt [08:51:56]json_value_free [08:51:56]json_value_free done [08:51:56]process_json_proto returns [08:51:56]Send response to host [08:51:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28835,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [08:51:56]free response buf [08:51:56]execute_script done [08:51:56]execute_script returns [08:51:56]free content buf [08:51:56]Sock 7.Close socket [08:51:56]Sock 7.Thread stoped [08:51:59]OFD Sender: No OFD packet to send [08:52:04]OFD Sender: No OFD packet to send [08:52:09]OFD Sender: No OFD packet to send [08:52:12]accept exits with 9 [08:52:12]New connection [08:52:12]New thread 3066928484 created [08:52:12]Thread 3066785124 joined [08:52:12]Waiting for new connection... [08:52:12] Sock 9.Parse request [08:52:12]Sock 9.Check first char [08:52:12]Sock 9.First char is OK [08:52:12]request: POST /json_proto HTTP/1.0 [08:52:12]Method: POST [08:52:12]URL: /json_proto [08:52:12]Method is POST - this is cgi request [08:52:12]url: /json_proto [08:52:12]query_string will be loaded in cgi processing [08:52:12]execute_cgi json_proto POST (null) [08:52:12]execute_cgi path=json_proto method=POST [08:52:12]POST find Content-Length [08:52:12]Host: 172.17.33.3:8080 [08:52:12]Content-Length: 670 [08:52:12]Content-Type: application/json [08:52:12] [08:52:12]POST finish read [08:52:12]Found Content-Length = 670 [08:52:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 6.130, "sum" : 400.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:12]execute_script... [08:52: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)347187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 6.130, "sum" : 400.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:12]POST & json_proto [08:52:12]process_json_proto [08:52:12]json parsed OK: [08:52:12]protocol is kg_v1.0 [08:52:12]action value=close_receipt [08:52:12]process_action close_receipt [08:52:12]cmd_close_receipt [08:52:12]MH_GetDate [08:52:12]Write to MH i2c: F0 00 00 15 23 27 [08:52:12]Write i2c OK [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: F0 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: F0 09 00 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: F0 09 00 15 23 00 C0 47 1A 66 23 5B 8F 65 29 [08:52:12]GetLastDocTimeStamp 1712998315 [08:52:12]current date 1712998336 [08:52:12]FM_GetShiftState [08:52:12]SAM_PROTO_GetShiftState [08:52:12]wFMCommunicate request_size=4 [08:52:12]MH_SAM_APDU [08:52:12]CAPDU: 80 13 01 00 [08:52:12]Write to MH i2c: E2 08 00 16 23 80 13 01 00 00 00 00 00 B6 [08:52:12]Write i2c OK [08:52:12]MH_I2C_Read... [08:52:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:12]Read from MH i2c: E2 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 0E 00 [08:52:12]MH_I2C_Read... [08:52:12]Read from MH i2c: E2 0E 00 16 23 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 CF [08:52:12]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [08:52:12]wFMCommunicate OK [08:52:12]SAM_PROTO_GetShiftState done [08:52:12]FM_GetShiftState done [08:52:12]opened in 1712967615 [08:52:12]opened+sec_in_day 1713054015 [08:52:12]quantity*price = 40028 [08:52:12]sum+1 = 40030 [08:52:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.51 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 43 13.04.2024 08:52 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28836 ФПД: 42910700649692 1/tax-web-control/client/api/v1/ticket?date=20240413T085216&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28836&fm=42910700649692&tin=02508201610067®Number=0000138879044617&sum=40000 [08:52:13]StoreToDocumentArchive [08:52:13]shift 115 fd 28836 [08:52:13]save to /storage/0115/doc_00028836 [08:52:13]save last doc name /storage/0115/doc_00028836 to /storage/kkm_last_doc_name [08:52:13]save OK [08:52:13]Clear old archive folders... [08:52:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:52:13]tlvbuf is B6EBB5A0 [08:52:13]SAM_PROTO_ClearQueue [08:52:13]wFMCommunicate request_size=4 [08:52:13]MH_SAM_APDU [08:52:13]CAPDU: 80 09 00 00 [08:52:13]Write to MH i2c: E2 08 00 23 23 80 09 00 00 00 00 00 00 B8 [08:52:13]Write i2c OK [08:52:13]MH_I2C_Read... [08:52:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:13]Read from MH i2c: E2 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: E2 03 00 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: E2 03 00 23 23 00 90 00 BA [08:52:13]RAPDU: 90 00 [08:52:13]wFMCommunicate OK [08:52:13]SAM_PROTO_ClearQueue done [08:52:13]KKMCreateOFDPacket [08:52:13]OFDProtocolAddRootSTLVToBuf [08:52:13]FM_MakeSignedData [08:52:13]FM_MakeSignedData [08:52:13]SAM_PROTO_SignData [08:52:13]wFMCommunicate request_size=4 [08:52:13]MH_SAM_APDU [08:52:13]CAPDU: 80 0D 01 02 [08:52:13]Write to MH i2c: E2 08 00 24 23 80 0D 01 02 00 00 00 00 C0 [08:52:13]Write i2c OK [08:52:13]MH_I2C_Read... [08:52:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:13]Read from MH i2c: E2 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: E2 03 00 [08:52:13]MH_I2C_Read... [08:52:13]Read from MH i2c: E2 03 00 24 23 00 90 00 BB [08:52:13]RAPDU: 90 00 [08:52:13]wFMCommunicate OK [08:52:13]wFMCommunicate request_size=255 [08:52:13]MH_SAM_APDU [08:52:13]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 5D 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 2B 00 00 00 F4 03 04 00 C0 47 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A4 70 00 00 35 04 06 00 [08:52:13]Write to MH i2c: E2 02 01 25 23 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 5D 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 2B 00 00 00 F4 03 04 00 C0 47 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A4 70 00 00 35 04 06 00 00 00 2D [08:52:13]Write i2c OK [08:52:13]MH_I2C_Read... [08:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:14]Read from MH i2c: E2 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: E2 03 00 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: E2 03 00 25 23 00 90 00 BC [08:52:14]RAPDU: 90 00 [08:52:14]wFMCommunicate OK [08:52:14]wFMCommunicate request_size=11 [08:52:14]MH_SAM_APDU [08:52:14]CAPDU: 80 0D 02 02 06 27 06 ED 11 BC DC [08:52:14]Write to MH i2c: E2 0E 00 26 23 80 0D 02 02 06 00 27 06 ED 11 BC DC 00 00 92 [08:52:14]Write i2c OK [08:52:14]MH_I2C_Read... [08:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:14]Read from MH i2c: E2 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: E2 03 00 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: E2 03 00 26 23 00 90 00 BD [08:52:14]RAPDU: 90 00 [08:52:14]wFMCommunicate OK [08:52:14]wFMCommunicate request_size=4 [08:52:14]MH_SAM_APDU [08:52:14]CAPDU: 80 0D 03 02 [08:52:14]Write to MH i2c: E2 08 00 27 23 80 0D 03 02 00 00 00 00 C5 [08:52:14]Write i2c OK [08:52:14]MH_I2C_Read... [08:52:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:14]Read from MH i2c: E2 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: E2 0B 00 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: E2 0B 00 27 23 00 33 90 37 BB 23 EE 55 B1 90 00 92 [08:52:14]RAPDU: 33 90 37 BB 23 EE 55 B1 90 00 [08:52:14]wFMCommunicate OK [08:52:14]SAM_PROTO_SignData done [08:52:14]FM_MakeSignedData done [08:52:14]CreateOFDProtocolMessage [08:52:14]wFMCommunicate request_size=4 [08:52:14]MH_SAM_APDU [08:52:14]CAPDU: 80 11 00 00 [08:52:14]Write to MH i2c: E2 08 00 28 23 80 11 00 00 00 00 00 00 C5 [08:52:14]Write i2c OK [08:52:14]MH_I2C_Read... [08:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:14]Read from MH i2c: E2 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: E2 17 00 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: E2 17 00 28 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 14 [08:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:52:14]wFMCommunicate OK [08:52:14]CreateOFDProtocolMessage done [08:52:14]OFDSenderStorePacket 28836 [08:52:14]StoreOFDPacket docnum=28836 [08:52:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 48 19 08 01 12 73 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 5D 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 2B 00 00 00 F4 03 04 00 C0 47 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A4 70 00 00 35 04 06 00 27 06 ED 11 BC DC 33 90 37 BB 23 EE 55 B1 [08:52:14]CheckFolder [08:52:14]dirname=/storage/ofd_packets [08:52:14]CheckFolder done [08:52:14]ProducePacketName [08:52:14]name=ofd_packets/00028836 [08:52:14]NVStorageSaveData ofd_packets/00028836 [08:52:14]File name is /storage/ofd_packets/00028836 [08:52:14]Write 302 bytes [08:52:14]NVStorageSaveData done [08:52:14]OFDSenderStorePacket done [08:52:14]KKMCreateOFDPacket done [08:52:14]NVStorageSaveData kkm_last_timestamp [08:52:14]File name is /storage/kkm_last_timestamp [08:52:14]Write 4 bytes [08:52:14]NVStorageSaveData done [08:52:14]ExternCall_PrintAddStr [08:52:14]wPrintStart [08:52:14]Write to MH i2c: 01 00 00 29 23 4C [08:52:14]Write i2c OK [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: 01 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: 01 07 00 [08:52:14]MH_I2C_Read... [08:52:14]Read from MH i2c: 01 07 00 29 23 00 00 00 00 00 FF 0F 61 [08:52:14]RasterBufferAndPrint [08:52:14]line Счет N : (1)347187 [08:52:14]line ИНН: 02508201610067 [08:52:14]line Контрольно-Кассовый Чек [08:52:14]line ПРОДАЖА [08:52:14]line ТРК (МРК, ГНК) : 31 [08:52:14]line Товар: 2710124130 [08:52:14]line SUPER-92-К-5 [08:52:14]line 6.130 * 65.30 [08:52:14]line = 400.29 [08:52:14]line НДС 12% НСП 1% [08:52:14]line > о реализуемом товаре [08:52:14]line ОКРУГЛЕНИЕ: -0.29 [08:52:14]line ИТОГО: 400.00 [08:52:14]line Внесено: 400.00 [08:52:14]line СДАЧА: 0.00 [08:52:14]line НСП 1% : 3.54 [08:52:14]line НДС 12% : 42.51 [08:52:14]line Наличными: 400.00 [08:52:14]line Безнал.: 0.00 [08:52:14]line Место: АЗС № 108 "Партнер Нефть" [08:52:14]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:52:14]line СНО: Общий режим [08:52:14]line Чек 43 13.04.2024 08:52 [08:52:14]line Смена: 115 ФФД: 1.0 [08:52:14]line ЗНМ: 0300000027 [08:52:14]line РНМ: 0000138879044617 [08:52:14]line Версия ККМ: 001 [08:52:14]line ФМ: 0000000000963154 [08:52:14]line ФД: 28836 [08:52:14]line ФПД: 42910700649692 [08:52:14]line 1/tax-web-control/client/api/v1/ticket?date=20240413T085216&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28836&fm=42910700649692&tin=02508201610067®Number=0000138879044617&sum=40000 [08:52:14]OFD Sender: Processing packet 28836 [packets to send 8, broken 7] [08:52:14]ProducePacketName [08:52:14]name=ofd_packets/00028836 [08:52:14]OFD Sender: To server: pG, [08:52:14]CommunicateWithHost lk.salyk.kg:30040 [08:52:14]ConnectInit lk.salyk.kg [08:52:14]written 0, free lines is 4095 [08:52:14]Connected sock=7 [08:52: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 31 35 34 10 01 00 00 48 19 08 01 12 73 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 5D 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 2B 00 00 00 F4 03 04 00 C0 47 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A4 70 00 00 35 04 06 00 27 06 ED 11 BC DC 33 90 37 BB 23 EE 55 B1 [08:52:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9E 7C 47 00 16 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 31 35 34 10 04 04 00 A4 70 00 00 F4 03 04 00 68 F2 19 66 B6 04 01 00 00 BB 8B CC 9D F4 01 F7 16 [08:52:14]CommunicateWithHost err = 0 [08:52:14]CheckOFDResponse [08:52:14]1017 (14) - 77093643461234 [08:52:14]1041 (16) - 0000000000963154 [08:52:14]1040 (4) - 28836 [08:52:14]1012 (4) - 13.04.2024 02:48 [08:52:14]1206 (1) - 0 [08:52:14]OFD Sender: Remove packet 28836 [08:52:14]ProducePacketName [08:52:14]name=ofd_packets/00028836 [08:52:14]NVStorageDeleteData [08:52:15]Write to MH i2c: 01 00 00 53 23 76 [08:52:15]Write i2c OK [08:52:15]MH_I2C_Read... [08:52:15]Read from MH i2c: 01 [08:52:15]MH_I2C_Read... [08:52:15]Read from MH i2c: 01 07 00 [08:52:15]MH_I2C_Read... [08:52:15]Read from MH i2c: 01 07 00 53 23 00 00 00 00 00 C1 0C 4A [08:52:15]RasterBufferAndPrint [08:52:15]line [08:52:15]line [08:52:15]line [08:52:15]line [08:52:15]line [08:52:15]written 0, free lines is 3269 [08:52:15]MH_Cut [08:52:15]Write to MH i2c: D1 01 00 5A 23 01 4F [08:52:15]Write i2c OK [08:52:15]MH_I2C_Read... [08:52:15]Read from MH i2c: D1 [08:52:15]MH_I2C_Read... [08:52:15]Read from MH i2c: D1 01 00 [08:52:15]MH_I2C_Read... [08:52:15]Read from MH i2c: D1 01 00 5A 23 00 4E [08:52:15]Write to MH i2c: 01 00 00 5B 23 7E [08:52:15]Write i2c OK [08:52:15]MH_I2C_Read... [08:52:15]OFD Sender: No OFD packet to send [08:52:15]*** Cut start [08:52:15]*** Partial cut [08:52:15]*** CUTSNS_PIN = 1 [08:52:16]*** CUTSNS_PIN = 0 [08:52:16]*** Brake cut motor [08:52:16]Read from MH i2c: 01 [08:52:16]MH_I2C_Read... [08:52:16]*** Stop cut motor [08:52:16]*** Cut end [08:52:16]Read from MH i2c: 01 07 00 [08:52:16]MH_I2C_Read... [08:52:16]Read from MH i2c: 01 07 00 5B 23 00 00 00 00 00 FF 0F 93 [08:52:16]process_action close_receipt done [08:52:16]requested_data is exist [08:52:16]produce_requested_data [08:52:16]requested_item fm.sn is exist - process it [08:52:16]wFMCommunicate request_size=4 [08:52:16]MH_SAM_APDU [08:52:16]CAPDU: 80 11 00 00 [08:52:16]Write to MH i2c: E2 08 00 5C 23 80 11 00 00 00 00 00 00 F9 [08:52:16]Write i2c OK [08:52:16]MH_I2C_Read... [08:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:16]Read from MH i2c: E2 [08:52:16]MH_I2C_Read... [08:52:16]Read from MH i2c: E2 17 00 [08:52:16]MH_I2C_Read... [08:52:16]Read from MH i2c: E2 17 00 5C 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 48 [08:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:52:16]wFMCommunicate OK [08:52:16]requested_item fd.num is exist - process it [08:52:16]SAM_PROTO_GetFieldsCounters [08:52:16]wFMCommunicate request_size=4 [08:52:16]MH_SAM_APDU [08:52:16]CAPDU: 80 13 00 00 [08:52:16]Write to MH i2c: E2 08 00 5D 23 80 13 00 00 00 00 00 00 FC [08:52:16]Write i2c OK [08:52:16]MH_I2C_Read... [08:52:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:16]Read from MH i2c: E2 [08:52:16]MH_I2C_Read... [08:52:16]Read from MH i2c: E2 62 00 [08:52:16]MH_I2C_Read... [08:52:16]Read from MH i2c: E2 62 00 5D 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A4 70 00 00 0E 04 04 00 73 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 42 [08:52: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A4 70 00 00 0E 04 04 00 73 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:52:16]wFMCommunicate OK [08:52:16]SAM_PROTO_GetFieldsCounters done [08:52:16]requested_item shift.num is exist - process it [08:52:16]requested_item shift.opened is exist - process it [08:52:16]req_shift_opened [08:52:16]FM_GetShiftState [08:52:16]SAM_PROTO_GetShiftState [08:52:16]wFMCommunicate request_size=4 [08:52:16]MH_SAM_APDU [08:52:16]CAPDU: 80 13 01 00 [08:52:16]Write to MH i2c: E2 08 00 5E 23 80 13 01 00 00 00 00 00 FE [08:52:16]Write i2c OK [08:52:16]MH_I2C_Read... [08:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:16]Read from MH i2c: E2 [08:52:16]MH_I2C_Read... [08:52:16]Read from MH i2c: E2 0E 00 [08:52:16]MH_I2C_Read... [08:52:16]Read from MH i2c: E2 0E 00 5E 23 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 17 [08:52:16]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [08:52:16]wFMCommunicate OK [08:52:16]SAM_PROTO_GetShiftState done [08:52:16]FM_GetShiftState done [08:52:16]req_shift_opened done [08:52:16]requested_item shift.open_date is exist - process it [08:52:16]req_shift_open_date [08:52:16]req_shift_open_date done [08:52:16]produce_requested_data done [08:52:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28836,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [08:52:16]process_action_free close_receipt [08:52:16]json_value_free [08:52:16]json_value_free done [08:52:16]process_json_proto returns [08:52:16]Send response to host [08:52:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28836,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [08:52:16]free response buf [08:52:16]execute_script done [08:52:16]execute_script returns [08:52:16]free content buf [08:52:16]Sock 9.Close socket [08:52:16]Sock 9.Thread stoped [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:08]accept exits with 10 [08:54:08]New connection [08:54:08]New thread 3066785124 created [08:54:08]Thread 3066928484 joined [08:54:08]Waiting for new connection... [08:54:08] Sock 10.Parse request [08:54:08]Sock 10.Check first char [08:54:08]Sock 10.First char is OK [08:54:08]request: POST /json_proto HTTP/1.0 [08:54:08]Method: POST [08:54:08]URL: /json_proto [08:54:08]Method is POST - this is cgi request [08:54:08]url: /json_proto [08:54:08]query_string will be loaded in cgi processing [08:54:08]execute_cgi json_proto POST (null) [08:54:08]execute_cgi path=json_proto method=POST [08:54:08]POST find Content-Length [08:54:08]Host: 172.17.33.3:8080 [08:54:08]Content-Length: 808 [08:54:08]Content-Type: application/json [08:54:08] [08:54:08]POST finish read [08:54:08]Found Content-Length = 808 [08:54:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347189", "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" : 64.30, "quantity" : 15.560, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:08]execute_script... [08:54: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)347189", "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" : 64.30, "quantity" : 15.560, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:08]POST & json_proto [08:54:08]process_json_proto [08:54:08]json parsed OK: [08:54:08]protocol is kg_v1.0 [08:54:08]action value=close_receipt [08:54:08]process_action close_receipt [08:54:08]cmd_close_receipt [08:54:08]MH_GetDate [08:54:08]Write to MH i2c: F0 00 00 5F 23 71 [08:54:08]Write i2c OK [08:54:08]MH_I2C_Read... [08:54:08]Read from MH i2c: F0 [08:54:08]MH_I2C_Read... [08:54:08]Read from MH i2c: F0 09 00 [08:54:08]MH_I2C_Read... [08:54:08]Read from MH i2c: F0 09 00 5F 23 00 34 48 1A 66 23 5B 8F 65 E8 [08:54:08]GetLastDocTimeStamp 1712998336 [08:54:08]current date 1712998452 [08:54:08]FM_GetShiftState [08:54:08]SAM_PROTO_GetShiftState [08:54:08]wFMCommunicate request_size=4 [08:54:08]MH_SAM_APDU [08:54:08]CAPDU: 80 13 01 00 [08:54:08]Write to MH i2c: E2 08 00 60 23 80 13 01 00 00 00 00 00 00 [08:54:08]Write i2c OK [08:54:08]MH_I2C_Read... [08:54:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:08]Read from MH i2c: E2 [08:54:08]MH_I2C_Read... [08:54:08]Read from MH i2c: E2 0E 00 [08:54:08]MH_I2C_Read... [08:54:08]Read from MH i2c: E2 0E 00 60 23 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 19 [08:54:08]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [08:54:08]wFMCommunicate OK [08:54:08]SAM_PROTO_GetShiftState done [08:54:08]FM_GetShiftState done [08:54:08]opened in 1712967615 [08:54:08]opened+sec_in_day 1713054015 [08:54:08]quantity*price = 100050 [08:54:08]sum+1 = 100052 [08:54:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 44 13.04.2024 08:54 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28837 ФПД: 144433745723465 1/tax-web-control/client/api/v1/ticket?date=20240413T085412&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28837&fm=144433745723465&tin=02508201610067®Number=0000138879044617&sum=100051 [08:54:09]StoreToDocumentArchive [08:54:09]shift 115 fd 28837 [08:54:09]save to /storage/0115/doc_00028837 [08:54:09]save last doc name /storage/0115/doc_00028837 to /storage/kkm_last_doc_name [08:54:09]save OK [08:54:09]Clear old archive folders... [08:54:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:54:09]tlvbuf is B6F4F4A0 [08:54:09]SAM_PROTO_ClearQueue [08:54:09]wFMCommunicate request_size=4 [08:54:09]MH_SAM_APDU [08:54:09]CAPDU: 80 09 00 00 [08:54:09]Write to MH i2c: E2 08 00 6D 23 80 09 00 00 00 00 00 00 02 [08:54:09]Write i2c OK [08:54:09]MH_I2C_Read... [08:54:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:09]Read from MH i2c: E2 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 03 00 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 03 00 6D 23 00 90 00 04 [08:54:09]RAPDU: 90 00 [08:54:09]wFMCommunicate OK [08:54:09]SAM_PROTO_ClearQueue done [08:54:09]KKMCreateOFDPacket [08:54:09]OFDProtocolAddRootSTLVToBuf [08:54:09]FM_MakeSignedData [08:54:09]FM_MakeSignedData [08:54:09]SAM_PROTO_SignData [08:54:09]wFMCommunicate request_size=4 [08:54:09]MH_SAM_APDU [08:54:09]CAPDU: 80 0D 01 02 [08:54:09]Write to MH i2c: E2 08 00 6E 23 80 0D 01 02 00 00 00 00 0A [08:54:09]Write i2c OK [08:54:09]MH_I2C_Read... [08:54:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:10]Read from MH i2c: E2 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: E2 03 00 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: E2 03 00 6E 23 00 90 00 05 [08:54:10]RAPDU: 90 00 [08:54:10]wFMCommunicate OK [08:54:10]wFMCommunicate request_size=255 [08:54:10]MH_SAM_APDU [08:54: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 2C 00 00 00 F4 03 04 00 34 48 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A5 70 00 00 35 04 06 00 83 [08:54:10]Write to MH i2c: E2 02 01 6F 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 2C 00 00 00 F4 03 04 00 34 48 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A5 70 00 00 35 04 06 00 83 00 00 CF [08:54:10]Write i2c OK [08:54:10]MH_I2C_Read... [08:54:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:10]Read from MH i2c: E2 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: E2 03 00 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: E2 03 00 6F 23 00 90 00 06 [08:54:10]RAPDU: 90 00 [08:54:10]wFMCommunicate OK [08:54:10]wFMCommunicate request_size=10 [08:54:10]MH_SAM_APDU [08:54:10]CAPDU: 80 0D 02 02 05 5C 9A 1B 80 49 [08:54:10]Write to MH i2c: E2 0D 00 70 23 80 0D 02 02 05 00 5C 9A 1B 80 49 00 00 F1 [08:54:10]Write i2c OK [08:54:10]MH_I2C_Read... [08:54:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:10]Read from MH i2c: E2 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: E2 03 00 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: E2 03 00 70 23 00 90 00 07 [08:54:10]RAPDU: 90 00 [08:54:10]wFMCommunicate OK [08:54:10]wFMCommunicate request_size=4 [08:54:10]MH_SAM_APDU [08:54:10]CAPDU: 80 0D 03 02 [08:54:10]Write to MH i2c: E2 08 00 71 23 80 0D 03 02 00 00 00 00 0F [08:54:10]Write i2c OK [08:54:10]MH_I2C_Read... [08:54:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:10]Read from MH i2c: E2 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: E2 0B 00 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: E2 0B 00 71 23 00 F1 67 24 22 42 D3 08 2B 90 00 F6 [08:54:10]RAPDU: F1 67 24 22 42 D3 08 2B 90 00 [08:54:10]wFMCommunicate OK [08:54:10]SAM_PROTO_SignData done [08:54:10]FM_MakeSignedData done [08:54:10]CreateOFDProtocolMessage [08:54:10]wFMCommunicate request_size=4 [08:54:10]MH_SAM_APDU [08:54:10]CAPDU: 80 11 00 00 [08:54:10]Write to MH i2c: E2 08 00 72 23 80 11 00 00 00 00 00 00 0F [08:54:10]Write i2c OK [08:54:10]MH_I2C_Read... [08:54:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:10]Read from MH i2c: E2 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: E2 17 00 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: E2 17 00 72 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5E [08:54:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:54:10]wFMCommunicate OK [08:54:10]CreateOFDProtocolMessage done [08:54:10]OFDSenderStorePacket 28837 [08:54:10]StoreOFDPacket docnum=28837 [08:54:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 01 5B 07 01 D8 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 2C 00 00 00 F4 03 04 00 34 48 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A5 70 00 00 35 04 06 00 83 5C 9A 1B 80 49 F1 67 24 22 42 D3 08 2B [08:54:10]CheckFolder [08:54:10]dirname=/storage/ofd_packets [08:54:10]CheckFolder done [08:54:10]ProducePacketName [08:54:10]name=ofd_packets/00028837 [08:54:10]NVStorageSaveData ofd_packets/00028837 [08:54:10]File name is /storage/ofd_packets/00028837 [08:54:10]Write 301 bytes [08:54:10]NVStorageSaveData done [08:54:10]OFDSenderStorePacket done [08:54:10]KKMCreateOFDPacket done [08:54:10]NVStorageSaveData kkm_last_timestamp [08:54:10]File name is /storage/kkm_last_timestamp [08:54:10]Write 4 bytes [08:54:10]NVStorageSaveData done [08:54:10]ExternCall_PrintAddStr [08:54:10]wPrintStart [08:54:10]Write to MH i2c: 01 00 00 73 23 96 [08:54:10]Write i2c OK [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: 01 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: 01 07 00 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: 01 07 00 73 23 00 00 00 00 00 FF 0F AB [08:54:10]RasterBufferAndPrint [08:54:10]line Счет N : (1)347189 [08:54:10]line ИНН: 02508201610067 [08:54:10]line Контрольно-Кассовый Чек [08:54:10]line ПРОДАЖА [08:54:10]line ТРК (МРК, ГНК) : 32 [08:54:10]line Товар: 2710124130 [08:54:10]line Аи-92-К-5 [08:54:10]line 15.560 * 64.30 [08:54:10]line = 1000.51 [08:54:10]line НДС 12% НСП 1% [08:54:10]line > о реализуемом товаре [08:54:10]line ИТОГО: 1000.51 [08:54:10]line НСП 1% : 8.85 [08:54:10]line НДС 12% : 106.25 [08:54:10]line Наличными: 0.00 [08:54:10]line Безнал.: 1000.51 [08:54:10]line Место: АЗС № 108 "Партнер Нефть" [08:54:10]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:54:10]line СНО: Общий режим [08:54:10]line Чек 44 13.04.2024 08:54 [08:54:10]line Смена: 115 ФФД: 1.0 [08:54:10]line ЗНМ: 0300000027 [08:54:10]line РНМ: 0000138879044617 [08:54:10]line Версия ККМ: 001 [08:54:10]line Платежная система: О! деньги [08:54:10]line ФМ: 0000000000963154 [08:54:10]line ФД: 28837 [08:54:10]line ФПД: 144433745723465 [08:54:10]line 1/tax-web-control/client/api/v1/ticket?date=20240413T085412&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28837&fm=144433745723465&tin=02508201610067®Number=0000138879044617&sum=100051 [08:54:10]OFD Sender: Processing packet 28837 [packets to send 8, broken 7] [08:54:10]ProducePacketName [08:54:10]name=ofd_packets/00028837 [08:54:10]OFD Sender: To server: pG, [08:54:10]CommunicateWithHost lk.salyk.kg:30040 [08:54:10]ConnectInit lk.salyk.kg [08:54:10]written 0, free lines is 4095 [08:54:10]Connected sock=9 [08:54: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 31 35 34 0F 01 00 00 01 5B 07 01 D8 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 2C 00 00 00 F4 03 04 00 34 48 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A5 70 00 00 35 04 06 00 83 5C 9A 1B 80 49 F1 67 24 22 42 D3 08 2B [08:54:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E2 71 47 00 C3 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 31 35 34 10 04 04 00 A5 70 00 00 F4 03 04 00 DC F2 19 66 B6 04 01 00 00 05 85 99 03 FA 03 7F C1 [08:54:11]CommunicateWithHost err = 0 [08:54:11]CheckOFDResponse [08:54:11]1017 (14) - 77093643461234 [08:54:11]1041 (16) - 0000000000963154 [08:54:11]1040 (4) - 28837 [08:54:11]1012 (4) - 13.04.2024 02:50 [08:54:11]1206 (1) - 0 [08:54:11]OFD Sender: Remove packet 28837 [08:54:11]ProducePacketName [08:54:11]name=ofd_packets/00028837 [08:54:11]NVStorageDeleteData [08:54:11]Write to MH i2c: 01 00 00 9C 23 BF [08:54:11]Write i2c OK [08:54:11]MH_I2C_Read... [08:54:11]Read from MH i2c: 01 [08:54:11]MH_I2C_Read... [08:54:11]Read from MH i2c: 01 07 00 [08:54:11]MH_I2C_Read... [08:54:11]Read from MH i2c: 01 07 00 9C 23 00 00 00 00 00 D6 0C A8 [08:54:11]RasterBufferAndPrint [08:54:11]line [08:54:11]line [08:54:11]line [08:54:11]line [08:54:11]line [08:54:11]written 0, free lines is 3292 [08:54:11]MH_Cut [08:54:11]Write to MH i2c: D1 01 00 A3 23 01 98 [08:54:11]Write i2c OK [08:54:11]MH_I2C_Read... [08:54:11]Read from MH i2c: D1 [08:54:11]MH_I2C_Read... [08:54:11]Read from MH i2c: D1 01 00 [08:54:11]MH_I2C_Read... [08:54:11]Read from MH i2c: D1 01 00 A3 23 00 97 [08:54:11]Write to MH i2c: 01 00 00 A4 23 C7 [08:54:11]Write i2c OK [08:54:11]MH_I2C_Read... [08:54:11]OFD Sender: No OFD packet to send [08:54:12]*** Cut start [08:54:12]*** Partial cut [08:54:12]*** CUTSNS_PIN = 1 [08:54:12]*** CUTSNS_PIN = 0 [08:54:12]*** Brake cut motor [08:54:12]Read from MH i2c: 01 [08:54:12]MH_I2C_Read... [08:54:12]*** Stop cut motor [08:54:12]*** Cut end [08:54:12]Read from MH i2c: 01 07 00 [08:54:12]MH_I2C_Read... [08:54:12]Read from MH i2c: 01 07 00 A4 23 00 00 00 00 00 FF 0F DC [08:54:12]process_action close_receipt done [08:54:12]requested_data is exist [08:54:12]produce_requested_data [08:54:12]requested_item fm.sn is exist - process it [08:54:12]wFMCommunicate request_size=4 [08:54:12]MH_SAM_APDU [08:54:12]CAPDU: 80 11 00 00 [08:54:12]Write to MH i2c: E2 08 00 A5 23 80 11 00 00 00 00 00 00 42 [08:54:12]Write i2c OK [08:54:12]MH_I2C_Read... [08:54:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:12]Read from MH i2c: E2 [08:54:12]MH_I2C_Read... [08:54:12]Read from MH i2c: E2 17 00 [08:54:12]MH_I2C_Read... [08:54:12]Read from MH i2c: E2 17 00 A5 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 91 [08:54:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:54:12]wFMCommunicate OK [08:54:12]requested_item fd.num is exist - process it [08:54:12]SAM_PROTO_GetFieldsCounters [08:54:12]wFMCommunicate request_size=4 [08:54:12]MH_SAM_APDU [08:54:12]CAPDU: 80 13 00 00 [08:54:12]Write to MH i2c: E2 08 00 A6 23 80 13 00 00 00 00 00 00 45 [08:54:12]Write i2c OK [08:54:12]MH_I2C_Read... [08:54:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:12]Read from MH i2c: E2 [08:54:12]MH_I2C_Read... [08:54:12]Read from MH i2c: E2 62 00 [08:54:12]MH_I2C_Read... [08:54:12]Read from MH i2c: E2 62 00 A6 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A5 70 00 00 0E 04 04 00 73 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 8F [08:54: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A5 70 00 00 0E 04 04 00 73 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:54:12]wFMCommunicate OK [08:54:12]SAM_PROTO_GetFieldsCounters done [08:54:12]requested_item shift.num is exist - process it [08:54:12]requested_item shift.opened is exist - process it [08:54:12]req_shift_opened [08:54:12]FM_GetShiftState [08:54:12]SAM_PROTO_GetShiftState [08:54:12]wFMCommunicate request_size=4 [08:54:12]MH_SAM_APDU [08:54:12]CAPDU: 80 13 01 00 [08:54:12]Write to MH i2c: E2 08 00 A7 23 80 13 01 00 00 00 00 00 47 [08:54:12]Write i2c OK [08:54:12]MH_I2C_Read... [08:54:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:12]Read from MH i2c: E2 [08:54:12]MH_I2C_Read... [08:54:12]Read from MH i2c: E2 0E 00 [08:54:12]MH_I2C_Read... [08:54:12]Read from MH i2c: E2 0E 00 A7 23 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 60 [08:54:12]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [08:54:12]wFMCommunicate OK [08:54:12]SAM_PROTO_GetShiftState done [08:54:12]FM_GetShiftState done [08:54:12]req_shift_opened done [08:54:12]requested_item shift.open_date is exist - process it [08:54:12]req_shift_open_date [08:54:12]req_shift_open_date done [08:54:12]produce_requested_data done [08:54:12]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28837,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [08:54:12]process_action_free close_receipt [08:54:12]json_value_free [08:54:12]json_value_free done [08:54:12]process_json_proto returns [08:54:12]Send response to host [08:54:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28837,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [08:54:12]free response buf [08:54:12]execute_script done [08:54:12]execute_script returns [08:54:12]free content buf [08:54:12]Sock 10.Close socket [08:54:12]Sock 10.Thread stoped [08:54:13]accept exits with 7 [08:54:13]New connection [08:54:13]New thread 3066928484 created [08:54:13]Thread 3066785124 joined [08:54:13]Waiting for new connection... [08:54:13] Sock 7.Parse request [08:54:13]Sock 7.Check first char [08:54:13]Sock 7.First char is OK [08:54:13]request: POST /json_proto HTTP/1.0 [08:54:13]Method: POST [08:54:13]URL: /json_proto [08:54:13]Method is POST - this is cgi request [08:54:13]url: /json_proto [08:54:13]query_string will be loaded in cgi processing [08:54:13]execute_cgi json_proto POST (null) [08:54:13]execute_cgi path=json_proto method=POST [08:54:13]POST find Content-Length [08:54:13]Host: 172.17.33.3:8080 [08:54:13]Content-Length: 843 [08:54:13]Content-Type: application/json [08:54:13] [08:54:13]POST finish read [08:54:13]Found Content-Length = 843 [08:54:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347184", "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" : 72.40, "quantity" : 199.130, "sum" : 14417.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 14417.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:13]execute_script... [08:54: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)347184", "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" : 72.40, "quantity" : 199.130, "sum" : 14417.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 14417.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:13]POST & json_proto [08:54:13]process_json_proto [08:54:13]json parsed OK: [08:54:13]protocol is kg_v1.0 [08:54:13]action value=close_receipt [08:54:13]process_action close_receipt [08:54:13]cmd_close_receipt [08:54:13]MH_GetDate [08:54:13]Write to MH i2c: F0 00 00 A8 23 BA [08:54:13]Write i2c OK [08:54:13]MH_I2C_Read... [08:54:13]Read from MH i2c: F0 [08:54:13]MH_I2C_Read... [08:54:13]Read from MH i2c: F0 09 00 [08:54:13]MH_I2C_Read... [08:54:13]Read from MH i2c: F0 09 00 A8 23 00 39 48 1A 66 23 5B 8F 65 36 [08:54:13]GetLastDocTimeStamp 1712998452 [08:54:13]current date 1712998457 [08:54:13]FM_GetShiftState [08:54:13]SAM_PROTO_GetShiftState [08:54:13]wFMCommunicate request_size=4 [08:54:13]MH_SAM_APDU [08:54:13]CAPDU: 80 13 01 00 [08:54:13]Write to MH i2c: E2 08 00 A9 23 80 13 01 00 00 00 00 00 49 [08:54:13]Write i2c OK [08:54:13]MH_I2C_Read... [08:54:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:13]Read from MH i2c: E2 [08:54:13]MH_I2C_Read... [08:54:13]Read from MH i2c: E2 0E 00 [08:54:13]MH_I2C_Read... [08:54:13]Read from MH i2c: E2 0E 00 A9 23 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 62 [08:54:13]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [08:54:13]wFMCommunicate OK [08:54:13]SAM_PROTO_GetShiftState done [08:54:13]FM_GetShiftState done [08:54:13]opened in 1712967615 [08:54:13]opened+sec_in_day 1713054015 [08:54:13]quantity*price = 1441701 [08:54:13]sum+1 = 1441702 [08:54:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 14417.01 НСП 1% : 127.58 НДС 12% : 1531.01 Наличными: 0.00 Безнал.: 14417.01 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 45 13.04.2024 08:54 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28838 ФПД: 187694906327275 1/tax-web-control/client/api/v1/ticket?date=20240413T085417&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28838&fm=187694906327275&tin=02508201610067®Number=0000138879044617&sum=1441701 [08:54:14]StoreToDocumentArchive [08:54:14]shift 115 fd 28838 [08:54:14]save to /storage/0115/doc_00028838 [08:54:14]save last doc name /storage/0115/doc_00028838 to /storage/kkm_last_doc_name [08:54:14]save OK [08:54:14]Clear old archive folders... [08:54:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:54:14]tlvbuf is B6DA2510 [08:54:14]SAM_PROTO_ClearQueue [08:54:14]wFMCommunicate request_size=4 [08:54:14]MH_SAM_APDU [08:54:14]CAPDU: 80 09 00 00 [08:54:14]Write to MH i2c: E2 08 00 B6 23 80 09 00 00 00 00 00 00 4B [08:54:14]Write i2c OK [08:54:14]MH_I2C_Read... [08:54:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:14]Read from MH i2c: E2 [08:54:14]MH_I2C_Read... [08:54:14]Read from MH i2c: E2 03 00 [08:54:14]MH_I2C_Read... [08:54:14]Read from MH i2c: E2 03 00 B6 23 00 90 00 4D [08:54:14]RAPDU: 90 00 [08:54:14]wFMCommunicate OK [08:54:14]SAM_PROTO_ClearQueue done [08:54:14]KKMCreateOFDPacket [08:54:14]OFDProtocolAddRootSTLVToBuf [08:54:14]FM_MakeSignedData [08:54:14]FM_MakeSignedData [08:54:14]SAM_PROTO_SignData [08:54:14]wFMCommunicate request_size=4 [08:54:14]MH_SAM_APDU [08:54:14]CAPDU: 80 0D 01 02 [08:54:14]Write to MH i2c: E2 08 00 B7 23 80 0D 01 02 00 00 00 00 53 [08:54:14]Write i2c OK [08:54:14]MH_I2C_Read... [08:54:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:14]Read from MH i2c: E2 [08:54:14]MH_I2C_Read... [08:54:14]Read from MH i2c: E2 03 00 [08:54:14]MH_I2C_Read... [08:54:14]Read from MH i2c: E2 03 00 B7 23 00 90 00 4E [08:54:14]RAPDU: 90 00 [08:54:14]wFMCommunicate OK [08:54:14]wFMCommunicate request_size=255 [08:54:14]MH_SAM_APDU [08:54: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 DA 09 03 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 A5 FF 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 FF 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 56 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 FF 15 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 39 48 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A6 70 00 00 35 04 06 00 AA B5 20 37 [08:54:14]Write to MH i2c: E2 02 01 B8 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 09 03 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 A5 FF 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 FF 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 56 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 FF 15 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 39 48 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A6 70 00 00 35 04 06 00 AA B5 20 37 00 00 1B [08:54:14]Write i2c OK [08:54:14]MH_I2C_Read... [08:54:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:14]Read from MH i2c: E2 [08:54:14]MH_I2C_Read... [08:54:14]Read from MH i2c: E2 03 00 [08:54:14]MH_I2C_Read... [08:54:14]Read from MH i2c: E2 03 00 B8 23 00 90 00 4F [08:54:14]RAPDU: 90 00 [08:54:14]wFMCommunicate OK [08:54:14]wFMCommunicate request_size=7 [08:54:14]MH_SAM_APDU [08:54:14]CAPDU: 80 0D 02 02 02 C0 EB [08:54:14]Write to MH i2c: E2 0A 00 B9 23 80 0D 02 02 02 00 C0 EB 00 00 05 [08:54:14]Write i2c OK [08:54:14]MH_I2C_Read... [08:54:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:14]Read from MH i2c: E2 [08:54:14]MH_I2C_Read... [08:54:14]Read from MH i2c: E2 03 00 [08:54:14]MH_I2C_Read... [08:54:14]Read from MH i2c: E2 03 00 B9 23 00 90 00 50 [08:54:14]RAPDU: 90 00 [08:54:14]wFMCommunicate OK [08:54:14]wFMCommunicate request_size=4 [08:54:14]MH_SAM_APDU [08:54:14]CAPDU: 80 0D 03 02 [08:54:14]Write to MH i2c: E2 08 00 BA 23 80 0D 03 02 00 00 00 00 58 [08:54:14]Write i2c OK [08:54:14]MH_I2C_Read... [08:54:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:15]Read from MH i2c: E2 [08:54:15]MH_I2C_Read... [08:54:15]Read from MH i2c: E2 0B 00 [08:54:15]MH_I2C_Read... [08:54:15]Read from MH i2c: E2 0B 00 BA 23 00 1E 1B 58 A4 C5 35 0B 13 90 00 A6 [08:54:15]RAPDU: 1E 1B 58 A4 C5 35 0B 13 90 00 [08:54:15]wFMCommunicate OK [08:54:15]SAM_PROTO_SignData done [08:54:15]FM_MakeSignedData done [08:54:15]CreateOFDProtocolMessage [08:54:15]wFMCommunicate request_size=4 [08:54:15]MH_SAM_APDU [08:54:15]CAPDU: 80 11 00 00 [08:54:15]Write to MH i2c: E2 08 00 BB 23 80 11 00 00 00 00 00 00 58 [08:54:15]Write i2c OK [08:54:15]MH_I2C_Read... [08:54:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:15]Read from MH i2c: E2 [08:54:15]MH_I2C_Read... [08:54:15]Read from MH i2c: E2 17 00 [08:54:15]MH_I2C_Read... [08:54:15]Read from MH i2c: E2 17 00 BB 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A7 [08:54:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:54:15]wFMCommunicate OK [08:54:15]CreateOFDProtocolMessage done [08:54:15]OFDSenderStorePacket 28838 [08:54:15]StoreOFDPacket docnum=28838 [08:54:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 69 C5 04 01 B1 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 DA 09 03 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 A5 FF 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 FF 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 56 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 FF 15 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 39 48 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A6 70 00 00 35 04 06 00 AA B5 20 37 C0 EB 1E 1B 58 A4 C5 35 0B 13 [08:54:15]CheckFolder [08:54:15]dirname=/storage/ofd_packets [08:54:15]CheckFolder done [08:54:15]ProducePacketName [08:54:15]name=ofd_packets/00028838 [08:54:15]NVStorageSaveData ofd_packets/00028838 [08:54:15]File name is /storage/ofd_packets/00028838 [08:54:15]Write 298 bytes [08:54:15]NVStorageSaveData done [08:54:15]OFDSenderStorePacket done [08:54:15]KKMCreateOFDPacket done [08:54:15]NVStorageSaveData kkm_last_timestamp [08:54:15]File name is /storage/kkm_last_timestamp [08:54:15]Write 4 bytes [08:54:15]NVStorageSaveData done [08:54:15]ExternCall_PrintAddStr [08:54:15]wPrintStart [08:54:15]Write to MH i2c: 01 00 00 BC 23 DF [08:54:15]Write i2c OK [08:54:15]MH_I2C_Read... [08:54:15]Read from MH i2c: 01 [08:54:15]MH_I2C_Read... [08:54:15]Read from MH i2c: 01 07 00 [08:54:15]MH_I2C_Read... [08:54:15]Read from MH i2c: 01 07 00 BC 23 00 00 00 00 00 FF 0F F4 [08:54:15]RasterBufferAndPrint [08:54:15]line Счет N : (1)347184 [08:54:15]line ИНН: 02508201610067 [08:54:15]line Контрольно-Кассовый Чек [08:54:15]line ПРОДАЖА [08:54:15]line ТРК (МРК, ГНК) : 51 [08:54:15]line Товар: 2710194210 [08:54:15]line ДТ-К-5 [08:54:15]line 199.130 * 72.40 [08:54:15]line = 14417.01 [08:54:15]line НДС 12% НСП 1% [08:54:15]line > о реализуемом товаре [08:54:15]line ИТОГО: 14417.01 [08:54:15]line НСП 1% : 127.58 [08:54:15]line НДС 12% : 1531.01 [08:54:15]line Наличными: 0.00 [08:54:15]line Безнал.: 14417.01 [08:54:15]line Место: АЗС № 108 "Партнер Нефть" [08:54:15]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:54:15]line СНО: Общий режим [08:54:15]line Чек 45 13.04.2024 08:54 [08:54:15]line Смена: 115 ФФД: 1.0 [08:54:15]line ЗНМ: 0300000027 [08:54:15]line РНМ: 0000138879044617 [08:54:15]line Версия ККМ: 001 [08:54:15]line Платежная система: АКБ Кыргызстан [08:54:15]line ФМ: 0000000000963154 [08:54:15]line ФД: 28838 [08:54:15]line ФПД: 187694906327275 [08:54:15]line 1/tax-web-control/client/api/v1/ticket?date=20240413T085417&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28838&fm=187694906327275&tin=02508201610067®Number=0000138879044617&sum=1441701 [08:54:15]OFD Sender: Processing packet 28838 [packets to send 8, broken 7] [08:54:15]ProducePacketName [08:54:15]name=ofd_packets/00028838 [08:54:15]OFD Sender: To server: pG, [08:54:15]CommunicateWithHost lk.salyk.kg:30040 [08:54:15]ConnectInit lk.salyk.kg [08:54:15]written 0, free lines is 4095 [08:54:15]Connected sock=10 [08:54: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 31 35 34 0C 01 00 00 69 C5 04 01 B1 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 DA 09 03 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 A5 FF 15 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 FF 15 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 56 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 FF 15 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 39 48 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A6 70 00 00 35 04 06 00 AA B5 20 37 C0 EB 1E 1B 58 A4 C5 35 0B 13 [08:54:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 27 33 47 00 63 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 31 35 34 10 04 04 00 A6 70 00 00 F4 03 04 00 E1 F2 19 66 B6 04 01 00 00 D7 92 DE 45 7A F8 EF D5 [08:54:15]CommunicateWithHost err = 0 [08:54:15]CheckOFDResponse [08:54:15]1017 (14) - 77093643461234 [08:54:15]1041 (16) - 0000000000963154 [08:54:15]1040 (4) - 28838 [08:54:15]1012 (4) - 13.04.2024 02:50 [08:54:15]1206 (1) - 0 [08:54:15]OFD Sender: Remove packet 28838 [08:54:15]ProducePacketName [08:54:15]name=ofd_packets/00028838 [08:54:15]NVStorageDeleteData [08:54:16]Write to MH i2c: 01 00 00 E5 23 08 [08:54:16]Write i2c OK [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: 01 [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: 01 07 00 [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: 01 07 00 E5 23 00 00 00 00 00 EB 0C 06 [08:54:16]RasterBufferAndPrint [08:54:16]line [08:54:16]line [08:54:16]line [08:54:16]line [08:54:16]line [08:54:16]written 0, free lines is 3320 [08:54:16]MH_Cut [08:54:16]Write to MH i2c: D1 01 00 EC 23 01 E1 [08:54:16]Write i2c OK [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: D1 [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: D1 01 00 [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: D1 01 00 EC 23 00 E0 [08:54:16]Write to MH i2c: 01 00 00 ED 23 10 [08:54:16]Write i2c OK [08:54:16]MH_I2C_Read... [08:54:16]OFD Sender: No OFD packet to send [08:54:16]*** Cut start [08:54:16]*** Partial cut [08:54:16]*** CUTSNS_PIN = 1 [08:54:17]*** CUTSNS_PIN = 0 [08:54:17]*** Brake cut motor [08:54:17]Read from MH i2c: 01 [08:54:17]MH_I2C_Read... [08:54:17]*** Stop cut motor [08:54:17]*** Cut end [08:54:17]Read from MH i2c: 01 07 00 [08:54:17]MH_I2C_Read... [08:54:17]Read from MH i2c: 01 07 00 ED 23 00 00 00 00 00 FF 0F 25 [08:54:17]process_action close_receipt done [08:54:17]requested_data is exist [08:54:17]produce_requested_data [08:54:17]requested_item fm.sn is exist - process it [08:54:17]wFMCommunicate request_size=4 [08:54:17]MH_SAM_APDU [08:54:17]CAPDU: 80 11 00 00 [08:54:17]Write to MH i2c: E2 08 00 EE 23 80 11 00 00 00 00 00 00 8B [08:54:17]Write i2c OK [08:54:17]MH_I2C_Read... [08:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:17]Read from MH i2c: E2 [08:54:17]MH_I2C_Read... [08:54:17]Read from MH i2c: E2 17 00 [08:54:17]MH_I2C_Read... [08:54:17]Read from MH i2c: E2 17 00 EE 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DA [08:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:54:17]wFMCommunicate OK [08:54:17]requested_item fd.num is exist - process it [08:54:17]SAM_PROTO_GetFieldsCounters [08:54:17]wFMCommunicate request_size=4 [08:54:17]MH_SAM_APDU [08:54:17]CAPDU: 80 13 00 00 [08:54:17]Write to MH i2c: E2 08 00 EF 23 80 13 00 00 00 00 00 00 8E [08:54:17]Write i2c OK [08:54:17]MH_I2C_Read... [08:54:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:17]Read from MH i2c: E2 [08:54:17]MH_I2C_Read... [08:54:17]Read from MH i2c: E2 62 00 [08:54:17]MH_I2C_Read... [08:54:17]Read from MH i2c: E2 62 00 EF 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A6 70 00 00 0E 04 04 00 73 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 DC [08:54: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A6 70 00 00 0E 04 04 00 73 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:54:17]wFMCommunicate OK [08:54:17]SAM_PROTO_GetFieldsCounters done [08:54:17]requested_item shift.num is exist - process it [08:54:17]requested_item shift.opened is exist - process it [08:54:17]req_shift_opened [08:54:17]FM_GetShiftState [08:54:17]SAM_PROTO_GetShiftState [08:54:17]wFMCommunicate request_size=4 [08:54:17]MH_SAM_APDU [08:54:17]CAPDU: 80 13 01 00 [08:54:17]Write to MH i2c: E2 08 00 F0 23 80 13 01 00 00 00 00 00 90 [08:54:17]Write i2c OK [08:54:17]MH_I2C_Read... [08:54:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:17]Read from MH i2c: E2 [08:54:17]MH_I2C_Read... [08:54:17]Read from MH i2c: E2 0E 00 [08:54:17]MH_I2C_Read... [08:54:17]Read from MH i2c: E2 0E 00 F0 23 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A9 [08:54:17]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [08:54:17]wFMCommunicate OK [08:54:17]SAM_PROTO_GetShiftState done [08:54:17]FM_GetShiftState done [08:54:17]req_shift_opened done [08:54:17]requested_item shift.open_date is exist - process it [08:54:17]req_shift_open_date [08:54:17]req_shift_open_date done [08:54:17]produce_requested_data done [08:54:17]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28838,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [08:54:17]process_action_free close_receipt [08:54:17]json_value_free [08:54:17]json_value_free done [08:54:17]process_json_proto returns [08:54:17]Send response to host [08:54:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28838,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [08:54:17]free response buf [08:54:17]execute_script done [08:54:17]execute_script returns [08:54:17]free content buf [08:54:17]Sock 7.Close socket [08:54:17]Sock 7.Thread stoped [08:54:21]OFD Sender: No OFD packet to send [08:54:26]OFD Sender: No OFD packet to send [08:54:31]OFD Sender: No OFD packet to send [08:54:36]OFD Sender: No OFD packet to send [08:54:41]OFD Sender: No OFD packet to send [08:54:46]OFD Sender: No OFD packet to send [08:54:51]OFD Sender: No OFD packet to send [08:54:56]OFD Sender: No OFD packet to send [08:55:01]OFD Sender: No OFD packet to send [08:55:06]OFD Sender: No OFD packet to send [08:55:11]OFD Sender: No OFD packet to send [08:55:16]OFD Sender: No OFD packet to send [08:55:20]accept exits with 9 [08:55:20]New connection [08:55:20]New thread 3066785124 created [08:55:20]Thread 3066928484 joined [08:55:20]Waiting for new connection... [08:55:20] Sock 9.Parse request [08:55:20]Sock 9.Check first char [08:55:20]Sock 9.First char is OK [08:55:20]request: POST /json_proto HTTP/1.0 [08:55:20]Method: POST [08:55:20]URL: /json_proto [08:55:20]Method is POST - this is cgi request [08:55:20]url: /json_proto [08:55:20]query_string will be loaded in cgi processing [08:55:20]execute_cgi json_proto POST (null) [08:55:20]execute_cgi path=json_proto method=POST [08:55:20]POST find Content-Length [08:55:20]Host: 172.17.33.3:8080 [08:55:20]Content-Length: 822 [08:55:20]Content-Type: application/json [08:55:20] [08:55:20]POST finish read [08:55:20]Found Content-Length = 822 [08:55:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:20]execute_script... [08:55: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)347188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:20]POST & json_proto [08:55:20]process_json_proto [08:55:20]json parsed OK: [08:55:20]protocol is kg_v1.0 [08:55:20]action value=close_receipt [08:55:20]process_action close_receipt [08:55:20]cmd_close_receipt [08:55:20]MH_GetDate [08:55:20]Write to MH i2c: F0 00 00 F1 23 03 [08:55:20]Write i2c OK [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: F0 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: F0 09 00 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: F0 09 00 F1 23 00 7C 48 1A 66 23 5B 8F 65 C2 [08:55:20]GetLastDocTimeStamp 1712998457 [08:55:20]current date 1712998524 [08:55:20]FM_GetShiftState [08:55:20]SAM_PROTO_GetShiftState [08:55:20]wFMCommunicate request_size=4 [08:55:20]MH_SAM_APDU [08:55:20]CAPDU: 80 13 01 00 [08:55:20]Write to MH i2c: E2 08 00 F2 23 80 13 01 00 00 00 00 00 92 [08:55:20]Write i2c OK [08:55:20]MH_I2C_Read... [08:55:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:20]Read from MH i2c: E2 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: E2 0E 00 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: E2 0E 00 F2 23 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 AB [08:55:20]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [08:55:20]wFMCommunicate OK [08:55:20]SAM_PROTO_GetShiftState done [08:55:20]FM_GetShiftState done [08:55:20]opened in 1712967615 [08:55:20]opened+sec_in_day 1713054015 [08:55:20]quantity*price = 100016 [08:55:20]sum+1 = 100017 [08:55:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 46 13.04.2024 08:55 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 28839 ФПД: 139134729620703 1/tax-web-control/client/api/v1/ticket?date=20240413T085524&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28839&fm=139134729620703&tin=02508201610067®Number=0000138879044617&sum=100016 [08:55:21]StoreToDocumentArchive [08:55:21]shift 115 fd 28839 [08:55:21]save to /storage/0115/doc_00028839 [08:55:21]save last doc name /storage/0115/doc_00028839 to /storage/kkm_last_doc_name [08:55:21]save OK [08:55:21]Clear old archive folders... [08:55:21]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:55:21]tlvbuf is 011D4FF0 [08:55:21]SAM_PROTO_ClearQueue [08:55:21]wFMCommunicate request_size=4 [08:55:21]MH_SAM_APDU [08:55:21]CAPDU: 80 09 00 00 [08:55:21]Write to MH i2c: E2 08 00 FF 23 80 09 00 00 00 00 00 00 94 [08:55:21]Write i2c OK [08:55:21]MH_I2C_Read... [08:55:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:22]Read from MH i2c: E2 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 03 00 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 03 00 FF 23 00 90 00 96 [08:55:22]RAPDU: 90 00 [08:55:22]wFMCommunicate OK [08:55:22]SAM_PROTO_ClearQueue done [08:55:22]KKMCreateOFDPacket [08:55:22]OFDProtocolAddRootSTLVToBuf [08:55:22]FM_MakeSignedData [08:55:22]FM_MakeSignedData [08:55:22]SAM_PROTO_SignData [08:55:22]wFMCommunicate request_size=4 [08:55:22]MH_SAM_APDU [08:55:22]CAPDU: 80 0D 01 02 [08:55:22]Write to MH i2c: E2 08 00 00 24 80 0D 01 02 00 00 00 00 9D [08:55:22]Write i2c OK [08:55:22]MH_I2C_Read... [08:55:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:22]Read from MH i2c: E2 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 03 00 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 03 00 00 24 00 90 00 98 [08:55:22]RAPDU: 90 00 [08:55:22]wFMCommunicate OK [08:55:22]wFMCommunicate request_size=255 [08:55:22]MH_SAM_APDU [08:55:22]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 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 2E 00 00 00 F4 03 04 00 7C 48 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A7 70 00 00 35 04 06 00 7E 8A [08:55:22]Write to MH i2c: E2 02 01 01 24 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 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 2E 00 00 00 F4 03 04 00 7C 48 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A7 70 00 00 35 04 06 00 7E 8A 00 00 57 [08:55:22]Write i2c OK [08:55:22]MH_I2C_Read... [08:55:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:22]Read from MH i2c: E2 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 03 00 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 03 00 01 24 00 90 00 99 [08:55:22]RAPDU: 90 00 [08:55:22]wFMCommunicate OK [08:55:22]wFMCommunicate request_size=9 [08:55:22]MH_SAM_APDU [08:55:22]CAPDU: 80 0D 02 02 04 D4 22 8C DF [08:55:22]Write to MH i2c: E2 0C 00 02 24 80 0D 02 02 04 00 D4 22 8C DF 00 00 09 [08:55:22]Write i2c OK [08:55:22]MH_I2C_Read... [08:55:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:22]Read from MH i2c: E2 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 03 00 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 03 00 02 24 00 90 00 9A [08:55:22]RAPDU: 90 00 [08:55:22]wFMCommunicate OK [08:55:22]wFMCommunicate request_size=4 [08:55:22]MH_SAM_APDU [08:55:22]CAPDU: 80 0D 03 02 [08:55:22]Write to MH i2c: E2 08 00 03 24 80 0D 03 02 00 00 00 00 A2 [08:55:22]Write i2c OK [08:55:22]MH_I2C_Read... [08:55:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:22]Read from MH i2c: E2 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 0B 00 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 0B 00 03 24 00 90 92 DD D0 4C 4C E8 2F 90 00 21 [08:55:22]RAPDU: 90 92 DD D0 4C 4C E8 2F 90 00 [08:55:22]wFMCommunicate OK [08:55:22]SAM_PROTO_SignData done [08:55:22]FM_MakeSignedData done [08:55:22]CreateOFDProtocolMessage [08:55:22]wFMCommunicate request_size=4 [08:55:22]MH_SAM_APDU [08:55:22]CAPDU: 80 11 00 00 [08:55:22]Write to MH i2c: E2 08 00 04 24 80 11 00 00 00 00 00 00 A2 [08:55:22]Write i2c OK [08:55:22]MH_I2C_Read... [08:55:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:22]Read from MH i2c: E2 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 17 00 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 17 00 04 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F1 [08:55:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:55:22]wFMCommunicate OK [08:55:22]CreateOFDProtocolMessage done [08:55:22]OFDSenderStorePacket 28839 [08:55:22]StoreOFDPacket docnum=28839 [08:55:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 4B B9 06 01 37 77 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 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 2E 00 00 00 F4 03 04 00 7C 48 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A7 70 00 00 35 04 06 00 7E 8A D4 22 8C DF 90 92 DD D0 4C 4C E8 2F [08:55:22]CheckFolder [08:55:22]dirname=/storage/ofd_packets [08:55:22]CheckFolder done [08:55:22]ProducePacketName [08:55:22]name=ofd_packets/00028839 [08:55:22]NVStorageSaveData ofd_packets/00028839 [08:55:22]File name is /storage/ofd_packets/00028839 [08:55:22]Write 300 bytes [08:55:22]NVStorageSaveData done [08:55:22]OFDSenderStorePacket done [08:55:22]KKMCreateOFDPacket done [08:55:22]NVStorageSaveData kkm_last_timestamp [08:55:22]File name is /storage/kkm_last_timestamp [08:55:22]Write 4 bytes [08:55:22]NVStorageSaveData done [08:55:22]ExternCall_PrintAddStr [08:55:22]wPrintStart [08:55:22]Write to MH i2c: 01 00 00 05 24 29 [08:55:22]Write i2c OK [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: 01 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: 01 07 00 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: 01 07 00 05 24 00 00 00 00 00 FF 0F 3E [08:55:22]RasterBufferAndPrint [08:55:22]line Счет N : (1)347188 [08:55:22]line ИНН: 02508201610067 [08:55:22]line Контрольно-Кассовый Чек [08:55:22]line ПРОДАЖА [08:55:22]line ТРК (МРК, ГНК) : 71 [08:55:22]line Товар: 2711129700 [08:55:22]line ГАЗ-К-5 [08:55:22]line 30.400 * 32.90 [08:55:22]line = 1000.16 [08:55:22]line НДС 12% НСП 1% [08:55:22]line > о реализуемом товаре [08:55:22]line ИТОГО: 1000.16 [08:55:22]line НСП 1% : 8.85 [08:55:22]line НДС 12% : 106.21 [08:55:22]line Наличными: 0.00 [08:55:22]line Безнал.: 1000.16 [08:55:22]line Место: АЗС № 108 "Партнер Нефть" [08:55:22]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:55:22]line СНО: Общий режим [08:55:22]line Чек 46 13.04.2024 08:55 [08:55:22]line Смена: 115 ФФД: 1.0 [08:55:22]line ЗНМ: 0300000027 [08:55:22]line РНМ: 0000138879044617 [08:55:22]line Версия ККМ: 001 [08:55:22]line Платежная система: Бакай Банк [08:55:22]line ФМ: 0000000000963154 [08:55:22]line ФД: 28839 [08:55:22]line ФПД: 139134729620703 [08:55:22]line 1/tax-web-control/client/api/v1/ticket?date=20240413T085524&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28839&fm=139134729620703&tin=02508201610067®Number=0000138879044617&sum=100016 [08:55:22]OFD Sender: Processing packet 28839 [packets to send 8, broken 7] [08:55:22]ProducePacketName [08:55:22]name=ofd_packets/00028839 [08:55:22]OFD Sender: To server: pG, [08:55:22]CommunicateWithHost lk.salyk.kg:30040 [08:55:22]ConnectInit lk.salyk.kg [08:55:22]written 0, free lines is 4095 [08:55:22]Connected sock=10 [08:55: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 31 35 34 0E 01 00 00 4B B9 06 01 37 77 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 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 2E 00 00 00 F4 03 04 00 7C 48 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A7 70 00 00 35 04 06 00 7E 8A D4 22 8C DF 90 92 DD D0 4C 4C E8 2F [08:55:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 3D 1A 47 00 67 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 31 35 34 10 04 04 00 A7 70 00 00 F4 03 04 00 24 F3 19 66 B6 04 01 00 00 C3 D4 93 4C 15 66 2F EB [08:55:23]CommunicateWithHost err = 0 [08:55:23]CheckOFDResponse [08:55:23]1017 (14) - 77093643461234 [08:55:23]1041 (16) - 0000000000963154 [08:55:23]1040 (4) - 28839 [08:55:23]1012 (4) - 13.04.2024 02:51 [08:55:23]1206 (1) - 0 [08:55:23]OFD Sender: Remove packet 28839 [08:55:23]ProducePacketName [08:55:23]name=ofd_packets/00028839 [08:55:23]NVStorageDeleteData [08:55:23]Write to MH i2c: 01 00 00 2E 24 52 [08:55:23]Write i2c OK [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: 01 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: 01 07 00 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: 01 07 00 2E 24 00 00 00 00 00 D0 0C 35 [08:55:23]RasterBufferAndPrint [08:55:23]line [08:55:23]line [08:55:23]line [08:55:23]line [08:55:23]line [08:55:23]written 0, free lines is 3284 [08:55:23]MH_Cut [08:55:23]Write to MH i2c: D1 01 00 35 24 01 2B [08:55:23]Write i2c OK [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: D1 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: D1 01 00 [08:55:23]MH_I2C_Read... [08:55:23]Read from MH i2c: D1 01 00 35 24 00 2A [08:55:23]Write to MH i2c: 01 00 00 36 24 5A [08:55:23]Write i2c OK [08:55:23]MH_I2C_Read... [08:55:23]OFD Sender: No OFD packet to send [08:55:24]*** Cut start [08:55:24]*** Partial cut [08:55:24]*** CUTSNS_PIN = 1 [08:55:24]*** CUTSNS_PIN = 0 [08:55:24]*** Brake cut motor [08:55:24]Read from MH i2c: 01 [08:55:24]MH_I2C_Read... [08:55:24]*** Stop cut motor [08:55:24]*** Cut end [08:55:24]Read from MH i2c: 01 07 00 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: 01 07 00 36 24 00 00 00 00 00 FF 0F 6F [08:55:24]process_action close_receipt done [08:55:24]requested_data is exist [08:55:24]produce_requested_data [08:55:24]requested_item fm.sn is exist - process it [08:55:24]wFMCommunicate request_size=4 [08:55:24]MH_SAM_APDU [08:55:24]CAPDU: 80 11 00 00 [08:55:24]Write to MH i2c: E2 08 00 37 24 80 11 00 00 00 00 00 00 D5 [08:55:24]Write i2c OK [08:55:24]MH_I2C_Read... [08:55:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:24]Read from MH i2c: E2 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 17 00 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 17 00 37 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 24 [08:55:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:55:24]wFMCommunicate OK [08:55:24]requested_item fd.num is exist - process it [08:55:24]SAM_PROTO_GetFieldsCounters [08:55:24]wFMCommunicate request_size=4 [08:55:24]MH_SAM_APDU [08:55:24]CAPDU: 80 13 00 00 [08:55:24]Write to MH i2c: E2 08 00 38 24 80 13 00 00 00 00 00 00 D8 [08:55:24]Write i2c OK [08:55:24]MH_I2C_Read... [08:55:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:24]Read from MH i2c: E2 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 62 00 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 62 00 38 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A7 70 00 00 0E 04 04 00 73 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 2A [08:55: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A7 70 00 00 0E 04 04 00 73 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:55:24]wFMCommunicate OK [08:55:24]SAM_PROTO_GetFieldsCounters done [08:55:24]requested_item shift.num is exist - process it [08:55:24]requested_item shift.opened is exist - process it [08:55:24]req_shift_opened [08:55:24]FM_GetShiftState [08:55:24]SAM_PROTO_GetShiftState [08:55:24]wFMCommunicate request_size=4 [08:55:24]MH_SAM_APDU [08:55:24]CAPDU: 80 13 01 00 [08:55:24]Write to MH i2c: E2 08 00 39 24 80 13 01 00 00 00 00 00 DA [08:55:24]Write i2c OK [08:55:24]MH_I2C_Read... [08:55:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:24]Read from MH i2c: E2 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 0E 00 [08:55:24]MH_I2C_Read... [08:55:24]Read from MH i2c: E2 0E 00 39 24 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F3 [08:55:24]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [08:55:24]wFMCommunicate OK [08:55:24]SAM_PROTO_GetShiftState done [08:55:24]FM_GetShiftState done [08:55:24]req_shift_opened done [08:55:24]requested_item shift.open_date is exist - process it [08:55:24]req_shift_open_date [08:55:24]req_shift_open_date done [08:55:24]produce_requested_data done [08:55:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28839,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [08:55:24]process_action_free close_receipt [08:55:24]json_value_free [08:55:24]json_value_free done [08:55:24]process_json_proto returns [08:55:24]Send response to host [08:55:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28839,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [08:55:24]free response buf [08:55:24]execute_script done [08:55:24]execute_script returns [08:55:24]free content buf [08:55:24]Sock 9.Close socket [08:55:24]Sock 9.Thread stoped [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [08:55:53]OFD Sender: No OFD packet to send [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:12]accept exits with 7 [08:59:12]New connection [08:59:12]New thread 3066928484 created [08:59:12]Thread 3066785124 joined [08:59:12]Waiting for new connection... [08:59:12] Sock 7.Parse request [08:59:12]Sock 7.Check first char [08:59:12]Sock 7.First char is OK [08:59:12]request: POST /json_proto HTTP/1.0 [08:59:12]Method: POST [08:59:12]URL: /json_proto [08:59:12]Method is POST - this is cgi request [08:59:12]url: /json_proto [08:59:12]query_string will be loaded in cgi processing [08:59:12]execute_cgi json_proto POST (null) [08:59:12]execute_cgi path=json_proto method=POST [08:59:12]POST find Content-Length [08:59:12]Host: 172.17.33.3:8080 [08:59:12]Content-Length: 677 [08:59:12]Content-Type: application/json [08:59:12] [08:59:12]POST finish read [08:59:12]Found Content-Length = 677 [08:59:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.120, "sum" : 200.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:12]execute_script... [08:59:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.120, "sum" : 200.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:12]POST & json_proto [08:59:12]process_json_proto [08:59:12]json parsed OK: [08:59:12]protocol is kg_v1.0 [08:59:12]action value=close_receipt [08:59:12]process_action close_receipt [08:59:12]cmd_close_receipt [08:59:12]MH_GetDate [08:59:12]Write to MH i2c: F0 00 00 3A 24 4D [08:59:12]Write i2c OK [08:59:12]MH_I2C_Read... [08:59:12]Read from MH i2c: F0 [08:59:12]MH_I2C_Read... [08:59:12]Read from MH i2c: F0 09 00 [08:59:12]MH_I2C_Read... [08:59:12]Read from MH i2c: F0 09 00 3A 24 00 64 49 1A 66 23 5B 8F 65 F5 [08:59:12]GetLastDocTimeStamp 1712998524 [08:59:12]current date 1712998756 [08:59:12]FM_GetShiftState [08:59:12]SAM_PROTO_GetShiftState [08:59:12]wFMCommunicate request_size=4 [08:59:12]MH_SAM_APDU [08:59:12]CAPDU: 80 13 01 00 [08:59:12]Write to MH i2c: E2 08 00 3B 24 80 13 01 00 00 00 00 00 DC [08:59:12]Write i2c OK [08:59:12]MH_I2C_Read... [08:59:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:12]Read from MH i2c: E2 [08:59:12]MH_I2C_Read... [08:59:12]Read from MH i2c: E2 0E 00 [08:59:12]MH_I2C_Read... [08:59:12]Read from MH i2c: E2 0E 00 3B 24 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F5 [08:59:12]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [08:59:12]wFMCommunicate OK [08:59:12]SAM_PROTO_GetShiftState done [08:59:12]FM_GetShiftState done [08:59:12]opened in 1712967615 [08:59:12]opened+sec_in_day 1713054015 [08:59:12]quantity*price = 20061 [08:59:12]sum+1 = 20063 [08:59:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 47 13.04.2024 08:59 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28840 ФПД: 87029845829581 1/tax-web-control/client/api/v1/ticket?date=20240413T085916&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28840&fm=87029845829581&tin=02508201610067®Number=0000138879044617&sum=20000 [08:59:13]StoreToDocumentArchive [08:59:13]shift 115 fd 28840 [08:59:13]save to /storage/0115/doc_00028840 [08:59:13]save last doc name /storage/0115/doc_00028840 to /storage/kkm_last_doc_name [08:59:13]save OK [08:59:13]Clear old archive folders... [08:59:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:59:13]tlvbuf is 011E32A0 [08:59:13]SAM_PROTO_ClearQueue [08:59:13]wFMCommunicate request_size=4 [08:59:13]MH_SAM_APDU [08:59:13]CAPDU: 80 09 00 00 [08:59:13]Write to MH i2c: E2 08 00 48 24 80 09 00 00 00 00 00 00 DE [08:59:13]Write i2c OK [08:59:13]MH_I2C_Read... [08:59:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:13]Read from MH i2c: E2 [08:59:13]MH_I2C_Read... [08:59:13]Read from MH i2c: E2 03 00 [08:59:13]MH_I2C_Read... [08:59:13]Read from MH i2c: E2 03 00 48 24 00 90 00 E0 [08:59:13]RAPDU: 90 00 [08:59:13]wFMCommunicate OK [08:59:13]SAM_PROTO_ClearQueue done [08:59:13]KKMCreateOFDPacket [08:59:13]OFDProtocolAddRootSTLVToBuf [08:59:13]FM_MakeSignedData [08:59:13]FM_MakeSignedData [08:59:13]SAM_PROTO_SignData [08:59:13]wFMCommunicate request_size=4 [08:59:13]MH_SAM_APDU [08:59:13]CAPDU: 80 0D 01 02 [08:59:13]Write to MH i2c: E2 08 00 49 24 80 0D 01 02 00 00 00 00 E6 [08:59:13]Write i2c OK [08:59:13]MH_I2C_Read... [08:59:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:13]Read from MH i2c: E2 [08:59:13]MH_I2C_Read... [08:59:13]Read from MH i2c: E2 03 00 [08:59:13]MH_I2C_Read... [08:59:13]Read from MH i2c: E2 03 00 49 24 00 90 00 E1 [08:59:13]RAPDU: 90 00 [08:59:13]wFMCommunicate OK [08:59:13]wFMCommunicate request_size=255 [08:59:13]MH_SAM_APDU [08:59:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 2F 00 00 00 F4 03 04 00 64 49 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A8 70 00 00 35 04 06 00 4F [08:59:13]Write to MH i2c: E2 02 01 4A 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 2F 00 00 00 F4 03 04 00 64 49 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A8 70 00 00 35 04 06 00 4F 00 00 49 [08:59:13]Write i2c OK [08:59:13]MH_I2C_Read... [08:59:13]Read from MH i2c: E2 [08:59:13]MH_I2C_Read... [08:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:13]Read from MH i2c: E2 03 00 [08:59:13]MH_I2C_Read... [08:59:13]Read from MH i2c: E2 03 00 4A 24 00 90 00 E2 [08:59:13]RAPDU: 90 00 [08:59:13]wFMCommunicate OK [08:59:13]wFMCommunicate request_size=10 [08:59:13]MH_SAM_APDU [08:59:13]CAPDU: 80 0D 02 02 05 27 37 0B A7 CD [08:59:13]Write to MH i2c: E2 0D 00 4B 24 80 0D 02 02 05 00 27 37 0B A7 CD 00 00 D0 [08:59:13]Write i2c OK [08:59:13]MH_I2C_Read... [08:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:13]Read from MH i2c: E2 [08:59:13]MH_I2C_Read... [08:59:13]Read from MH i2c: E2 03 00 [08:59:13]MH_I2C_Read... [08:59:13]Read from MH i2c: E2 03 00 4B 24 00 90 00 E3 [08:59:13]RAPDU: 90 00 [08:59:13]wFMCommunicate OK [08:59:13]wFMCommunicate request_size=4 [08:59:13]MH_SAM_APDU [08:59:13]CAPDU: 80 0D 03 02 [08:59:13]Write to MH i2c: E2 08 00 4C 24 80 0D 03 02 00 00 00 00 EB [08:59:13]Write i2c OK [08:59:13]MH_I2C_Read... [08:59:13]OFD Sender: No OFD packet to send [08:59:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:13]Read from MH i2c: E2 [08:59:13]MH_I2C_Read... [08:59:13]Read from MH i2c: E2 0B 00 [08:59:13]MH_I2C_Read... [08:59:13]Read from MH i2c: E2 0B 00 4C 24 00 FC 38 5E 93 31 F8 12 31 90 00 7D [08:59:13]RAPDU: FC 38 5E 93 31 F8 12 31 90 00 [08:59:13]wFMCommunicate OK [08:59:13]SAM_PROTO_SignData done [08:59:13]FM_MakeSignedData done [08:59:13]CreateOFDProtocolMessage [08:59:13]wFMCommunicate request_size=4 [08:59:13]MH_SAM_APDU [08:59:13]CAPDU: 80 11 00 00 [08:59:13]Write to MH i2c: E2 08 00 4D 24 80 11 00 00 00 00 00 00 EB [08:59:13]Write i2c OK [08:59:13]MH_I2C_Read... [08:59:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:13]Read from MH i2c: E2 [08:59:13]MH_I2C_Read... [08:59:13]Read from MH i2c: E2 17 00 [08:59:13]MH_I2C_Read... [08:59:13]Read from MH i2c: E2 17 00 4D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3A [08:59:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:59:13]wFMCommunicate OK [08:59:13]CreateOFDProtocolMessage done [08:59:13]OFDSenderStorePacket 28840 [08:59:13]StoreOFDPacket docnum=28840 [08:59:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 17 87 07 01 AA 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 2F 00 00 00 F4 03 04 00 64 49 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A8 70 00 00 35 04 06 00 4F 27 37 0B A7 CD FC 38 5E 93 31 F8 12 31 [08:59:13]CheckFolder [08:59:13]dirname=/storage/ofd_packets [08:59:13]CheckFolder done [08:59:13]ProducePacketName [08:59:13]name=ofd_packets/00028840 [08:59:13]NVStorageSaveData ofd_packets/00028840 [08:59:13]File name is /storage/ofd_packets/00028840 [08:59:13]Write 301 bytes [08:59:13]NVStorageSaveData done [08:59:13]OFDSenderStorePacket done [08:59:13]KKMCreateOFDPacket done [08:59:13]NVStorageSaveData kkm_last_timestamp [08:59:13]File name is /storage/kkm_last_timestamp [08:59:13]Write 4 bytes [08:59:13]NVStorageSaveData done [08:59:13]ExternCall_PrintAddStr [08:59:13]wPrintStart [08:59:13]Write to MH i2c: 01 00 00 4E 24 72 [08:59:13]Write i2c OK [08:59:13]MH_I2C_Read... [08:59:13]Read from MH i2c: 01 [08:59:13]MH_I2C_Read... [08:59:13]Read from MH i2c: 01 07 00 [08:59:13]MH_I2C_Read... [08:59:13]Read from MH i2c: 01 07 00 4E 24 00 00 00 00 00 FF 0F 87 [08:59:13]RasterBufferAndPrint [08:59:13]line Счет N : (1)347191 [08:59:13]line ИНН: 02508201610067 [08:59:13]line Контрольно-Кассовый Чек [08:59:13]line ПРОДАЖА [08:59:13]line ТРК (МРК, ГНК) : 13 [08:59:13]line Товар: 2710124130 [08:59:13]line Аи-92-К-5 [08:59:13]line 3.120 * 64.30 [08:59:13]line = 200.62 [08:59:13]line НДС 12% НСП 1% [08:59:13]line > о реализуемом товаре [08:59:13]line ОКРУГЛЕНИЕ: -0.62 [08:59:13]line ИТОГО: 200.00 [08:59:13]line Внесено: 200.00 [08:59:13]line СДАЧА: 0.00 [08:59:13]line НСП 1% : 1.77 [08:59:13]line НДС 12% : 21.30 [08:59:13]line Наличными: 200.00 [08:59:13]line Безнал.: 0.00 [08:59:13]line Место: АЗС № 108 "Партнер Нефть" [08:59:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:59:13]line СНО: Общий режим [08:59:13]line Чек 47 13.04.2024 08:59 [08:59:13]line Смена: 115 ФФД: 1.0 [08:59:13]line ЗНМ: 0300000027 [08:59:13]line РНМ: 0000138879044617 [08:59:13]line Версия ККМ: 001 [08:59:13]line ФМ: 0000000000963154 [08:59:13]line ФД: 28840 [08:59:13]line ФПД: 87029845829581 [08:59:13]line 1/tax-web-control/client/api/v1/ticket?date=20240413T085916&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28840&fm=87029845829581&tin=02508201610067®Number=0000138879044617&sum=20000 [08:59:13]OFD Sender: Processing packet 28840 [packets to send 8, broken 7] [08:59:13]ProducePacketName [08:59:13]name=ofd_packets/00028840 [08:59:14]OFD Sender: To server: pG, [08:59:14]CommunicateWithHost lk.salyk.kg:30040 [08:59:14]ConnectInit lk.salyk.kg [08:59:14]written 0, free lines is 4095 [08:59:14]Connected sock=10 [08:59: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 31 35 34 0F 01 00 00 17 87 07 01 AA 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 2F 00 00 00 F4 03 04 00 64 49 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A8 70 00 00 35 04 06 00 4F 27 37 0B A7 CD FC 38 5E 93 31 F8 12 31 [08:59:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A9 7E 47 00 E7 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 31 35 34 10 04 04 00 A8 70 00 00 F4 03 04 00 0B F4 19 66 B6 04 01 00 00 4E 0B 76 59 98 0D 1F 0E [08:59:14]CommunicateWithHost err = 0 [08:59:14]CheckOFDResponse [08:59:14]1017 (14) - 77093643461234 [08:59:14]1041 (16) - 0000000000963154 [08:59:14]1040 (4) - 28840 [08:59:14]1012 (4) - 13.04.2024 02:55 [08:59:14]1206 (1) - 0 [08:59:14]OFD Sender: Remove packet 28840 [08:59:14]ProducePacketName [08:59:14]name=ofd_packets/00028840 [08:59:14]NVStorageDeleteData [08:59:14]Write to MH i2c: 01 00 00 78 24 9C [08:59:14]Write i2c OK [08:59:14]MH_I2C_Read... [08:59:14]Read from MH i2c: 01 [08:59:14]MH_I2C_Read... [08:59:14]Read from MH i2c: 01 07 00 [08:59:14]MH_I2C_Read... [08:59:14]Read from MH i2c: 01 07 00 78 24 00 00 00 00 00 C6 0C 75 [08:59:14]RasterBufferAndPrint [08:59:14]line [08:59:14]line [08:59:14]line [08:59:14]line [08:59:14]line [08:59:14]written 0, free lines is 3276 [08:59:14]MH_Cut [08:59:14]Write to MH i2c: D1 01 00 7F 24 01 75 [08:59:14]Write i2c OK [08:59:14]MH_I2C_Read... [08:59:14]Read from MH i2c: D1 [08:59:14]MH_I2C_Read... [08:59:14]Read from MH i2c: D1 01 00 [08:59:14]MH_I2C_Read... [08:59:14]Read from MH i2c: D1 01 00 7F 24 00 74 [08:59:14]Write to MH i2c: 01 00 00 80 24 A4 [08:59:14]Write i2c OK [08:59:14]MH_I2C_Read... [08:59:15]OFD Sender: No OFD packet to send [08:59:15]*** Cut start [08:59:15]*** Partial cut [08:59:15]*** CUTSNS_PIN = 1 [08:59:15]*** CUTSNS_PIN = 0 [08:59:15]*** Brake cut motor [08:59:16]Read from MH i2c: 01 [08:59:16]MH_I2C_Read... [08:59:16]*** Stop cut motor [08:59:16]*** Cut end [08:59:16]Read from MH i2c: 01 07 00 [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: 01 07 00 80 24 00 00 00 00 00 FF 0F B9 [08:59:16]process_action close_receipt done [08:59:16]requested_data is exist [08:59:16]produce_requested_data [08:59:16]requested_item fm.sn is exist - process it [08:59:16]wFMCommunicate request_size=4 [08:59:16]MH_SAM_APDU [08:59:16]CAPDU: 80 11 00 00 [08:59:16]Write to MH i2c: E2 08 00 81 24 80 11 00 00 00 00 00 00 1F [08:59:16]Write i2c OK [08:59:16]MH_I2C_Read... [08:59:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:16]Read from MH i2c: E2 [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: E2 17 00 [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: E2 17 00 81 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6E [08:59:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:59:16]wFMCommunicate OK [08:59:16]requested_item fd.num is exist - process it [08:59:16]SAM_PROTO_GetFieldsCounters [08:59:16]wFMCommunicate request_size=4 [08:59:16]MH_SAM_APDU [08:59:16]CAPDU: 80 13 00 00 [08:59:16]Write to MH i2c: E2 08 00 82 24 80 13 00 00 00 00 00 00 22 [08:59:16]Write i2c OK [08:59:16]MH_I2C_Read... [08:59:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:16]Read from MH i2c: E2 [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: E2 62 00 [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: E2 62 00 82 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A8 70 00 00 0E 04 04 00 73 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 78 [08:59: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A8 70 00 00 0E 04 04 00 73 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:59:16]wFMCommunicate OK [08:59:16]SAM_PROTO_GetFieldsCounters done [08:59:16]requested_item shift.num is exist - process it [08:59:16]requested_item shift.opened is exist - process it [08:59:16]req_shift_opened [08:59:16]FM_GetShiftState [08:59:16]SAM_PROTO_GetShiftState [08:59:16]wFMCommunicate request_size=4 [08:59:16]MH_SAM_APDU [08:59:16]CAPDU: 80 13 01 00 [08:59:16]Write to MH i2c: E2 08 00 83 24 80 13 01 00 00 00 00 00 24 [08:59:16]Write i2c OK [08:59:16]MH_I2C_Read... [08:59:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:16]Read from MH i2c: E2 [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: E2 0E 00 [08:59:16]MH_I2C_Read... [08:59:16]Read from MH i2c: E2 0E 00 83 24 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 3D [08:59:16]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [08:59:16]wFMCommunicate OK [08:59:16]SAM_PROTO_GetShiftState done [08:59:16]FM_GetShiftState done [08:59:16]req_shift_opened done [08:59:16]requested_item shift.open_date is exist - process it [08:59:16]req_shift_open_date [08:59:16]req_shift_open_date done [08:59:16]produce_requested_data done [08:59:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28840,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [08:59:16]process_action_free close_receipt [08:59:16]json_value_free [08:59:16]json_value_free done [08:59:16]process_json_proto returns [08:59:16]Send response to host [08:59:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28840,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [08:59:16]free response buf [08:59:16]execute_script done [08:59:16]execute_script returns [08:59:16]free content buf [08:59:16]Sock 7.Close socket [08:59:16]Sock 7.Thread stoped [08:59:18]accept exits with 9 [08:59:18]New connection [08:59:18]New thread 3066785124 created [08:59:18]Thread 3066928484 joined [08:59:18]Waiting for new connection... [08:59:18] Sock 9.Parse request [08:59:18]Sock 9.Check first char [08:59:18]Sock 9.First char is OK [08:59:18]request: POST /json_proto HTTP/1.0 [08:59:18]Method: POST [08:59:18]URL: /json_proto [08:59:18]Method is POST - this is cgi request [08:59:18]url: /json_proto [08:59:18]query_string will be loaded in cgi processing [08:59:18]execute_cgi json_proto POST (null) [08:59:18]execute_cgi path=json_proto method=POST [08:59:18]POST find Content-Length [08:59:18]Host: 172.17.33.3:8080 [08:59:18]Content-Length: 841 [08:59:18]Content-Type: application/json [08:59:18] [08:59:18]POST finish read [08:59:18]Found Content-Length = 841 [08:59:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347190", "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" : 64.30, "quantity" : 10.890, "sum" : 700.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 700.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:18]execute_script... [08:59:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347190", "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" : 64.30, "quantity" : 10.890, "sum" : 700.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 700.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:18]POST & json_proto [08:59:18]process_json_proto [08:59:18]json parsed OK: [08:59:18]protocol is kg_v1.0 [08:59:18]action value=close_receipt [08:59:18]process_action close_receipt [08:59:18]cmd_close_receipt [08:59:18]MH_GetDate [08:59:18]Write to MH i2c: F0 00 00 84 24 97 [08:59:18]Write i2c OK [08:59:18]MH_I2C_Read... [08:59:18]Read from MH i2c: F0 [08:59:18]MH_I2C_Read... [08:59:18]Read from MH i2c: F0 09 00 [08:59:18]MH_I2C_Read... [08:59:18]Read from MH i2c: F0 09 00 84 24 00 6A 49 1A 66 23 5B 8F 65 45 [08:59:18]GetLastDocTimeStamp 1712998756 [08:59:18]current date 1712998762 [08:59:18]FM_GetShiftState [08:59:18]SAM_PROTO_GetShiftState [08:59:18]wFMCommunicate request_size=4 [08:59:18]MH_SAM_APDU [08:59:18]CAPDU: 80 13 01 00 [08:59:18]Write to MH i2c: E2 08 00 85 24 80 13 01 00 00 00 00 00 26 [08:59:18]Write i2c OK [08:59:18]MH_I2C_Read... [08:59:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:18]Read from MH i2c: E2 [08:59:18]MH_I2C_Read... [08:59:18]Read from MH i2c: E2 0E 00 [08:59:18]MH_I2C_Read... [08:59:18]Read from MH i2c: E2 0E 00 85 24 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 3F [08:59:18]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [08:59:18]wFMCommunicate OK [08:59:18]SAM_PROTO_GetShiftState done [08:59:18]FM_GetShiftState done [08:59:18]opened in 1712967615 [08:59:18]opened+sec_in_day 1713054015 [08:59:18]quantity*price = 70022 [08:59:18]sum+1 = 70024 [08:59:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.23 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 0.00 Безнал.: 700.23 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 48 13.04.2024 08:59 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28841 ФПД: 108486543101712 1/tax-web-control/client/api/v1/ticket?date=20240413T085922&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28841&fm=108486543101712&tin=02508201610067®Number=0000138879044617&sum=70023 [08:59:19]StoreToDocumentArchive [08:59:19]shift 115 fd 28841 [08:59:19]save to /storage/0115/doc_00028841 [08:59:19]save last doc name /storage/0115/doc_00028841 to /storage/kkm_last_doc_name [08:59:19]save OK [08:59:19]Clear old archive folders... [08:59:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:59:19]tlvbuf is 012330D0 [08:59:19]SAM_PROTO_ClearQueue [08:59:19]wFMCommunicate request_size=4 [08:59:19]MH_SAM_APDU [08:59:19]CAPDU: 80 09 00 00 [08:59:19]Write to MH i2c: E2 08 00 92 24 80 09 00 00 00 00 00 00 28 [08:59:19]Write i2c OK [08:59:19]MH_I2C_Read... [08:59:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:19]Read from MH i2c: E2 [08:59:19]MH_I2C_Read... [08:59:19]Read from MH i2c: E2 03 00 [08:59:19]MH_I2C_Read... [08:59:19]Read from MH i2c: E2 03 00 92 24 00 90 00 2A [08:59:19]RAPDU: 90 00 [08:59:19]wFMCommunicate OK [08:59:19]SAM_PROTO_ClearQueue done [08:59:19]KKMCreateOFDPacket [08:59:19]OFDProtocolAddRootSTLVToBuf [08:59:19]FM_MakeSignedData [08:59:19]FM_MakeSignedData [08:59:19]SAM_PROTO_SignData [08:59:19]wFMCommunicate request_size=4 [08:59:19]MH_SAM_APDU [08:59:19]CAPDU: 80 0D 01 02 [08:59:19]Write to MH i2c: E2 08 00 93 24 80 0D 01 02 00 00 00 00 30 [08:59:19]Write i2c OK [08:59:19]MH_I2C_Read... [08:59:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:19]Read from MH i2c: E2 [08:59:19]MH_I2C_Read... [08:59:19]Read from MH i2c: E2 03 00 [08:59:19]MH_I2C_Read... [08:59:19]Read from MH i2c: E2 03 00 93 24 00 90 00 2B [08:59:19]RAPDU: 90 00 [08:59:19]wFMCommunicate OK [08:59:19]wFMCommunicate request_size=255 [08:59:19]MH_SAM_APDU [08:59:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 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 00 00 00 00 00 00 39 04 06 00 87 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 6A 49 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A9 70 00 00 35 04 06 00 62 [08:59:19]Write to MH i2c: E2 02 01 94 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 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 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 00 00 00 00 00 00 39 04 06 00 87 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 6A 49 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A9 70 00 00 35 04 06 00 62 00 00 F5 [08:59:19]Write i2c OK [08:59:19]MH_I2C_Read... [08:59:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:19]Read from MH i2c: E2 [08:59:19]MH_I2C_Read... [08:59:19]Read from MH i2c: E2 03 00 [08:59:19]MH_I2C_Read... [08:59:19]Read from MH i2c: E2 03 00 94 24 00 90 00 2C [08:59:19]RAPDU: 90 00 [08:59:19]wFMCommunicate OK [08:59:19]wFMCommunicate request_size=10 [08:59:19]MH_SAM_APDU [08:59:19]CAPDU: 80 0D 02 02 05 AA FD DD 4F 10 [08:59:19]Write to MH i2c: E2 0D 00 95 24 80 0D 02 02 05 00 AA FD DD 4F 10 00 00 20 [08:59:19]Write i2c OK [08:59:19]MH_I2C_Read... [08:59:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:19]Read from MH i2c: E2 [08:59:19]MH_I2C_Read... [08:59:19]Read from MH i2c: E2 03 00 [08:59:19]MH_I2C_Read... [08:59:19]Read from MH i2c: E2 03 00 95 24 00 90 00 2D [08:59:19]RAPDU: 90 00 [08:59:19]wFMCommunicate OK [08:59:19]wFMCommunicate request_size=4 [08:59:19]MH_SAM_APDU [08:59:19]CAPDU: 80 0D 03 02 [08:59:19]Write to MH i2c: E2 08 00 96 24 80 0D 03 02 00 00 00 00 35 [08:59:19]Write i2c OK [08:59:19]MH_I2C_Read... [08:59:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:19]Read from MH i2c: E2 [08:59:19]MH_I2C_Read... [08:59:19]Read from MH i2c: E2 0B 00 [08:59:19]MH_I2C_Read... [08:59:19]Read from MH i2c: E2 0B 00 96 24 00 7D 75 89 D9 71 9B F4 6B 90 00 F5 [08:59:19]RAPDU: 7D 75 89 D9 71 9B F4 6B 90 00 [08:59:19]wFMCommunicate OK [08:59:19]SAM_PROTO_SignData done [08:59:19]FM_MakeSignedData done [08:59:19]CreateOFDProtocolMessage [08:59:19]wFMCommunicate request_size=4 [08:59:19]MH_SAM_APDU [08:59:19]CAPDU: 80 11 00 00 [08:59:19]Write to MH i2c: E2 08 00 97 24 80 11 00 00 00 00 00 00 35 [08:59:19]Write i2c OK [08:59:19]MH_I2C_Read... [08:59:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:20]Read from MH i2c: E2 [08:59:20]MH_I2C_Read... [08:59:20]Read from MH i2c: E2 17 00 [08:59:20]MH_I2C_Read... [08:59:20]Read from MH i2c: E2 17 00 97 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 84 [08:59:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:59:20]wFMCommunicate OK [08:59:20]CreateOFDProtocolMessage done [08:59:20]OFDSenderStorePacket 28841 [08:59:20]StoreOFDPacket docnum=28841 [08:59:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 03 A5 07 01 14 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 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 00 00 00 00 00 00 39 04 06 00 87 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 6A 49 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A9 70 00 00 35 04 06 00 62 AA FD DD 4F 10 7D 75 89 D9 71 9B F4 6B [08:59:20]CheckFolder [08:59:20]dirname=/storage/ofd_packets [08:59:20]CheckFolder done [08:59:20]ProducePacketName [08:59:20]name=ofd_packets/00028841 [08:59:20]NVStorageSaveData ofd_packets/00028841 [08:59:20]File name is /storage/ofd_packets/00028841 [08:59:20]Write 301 bytes [08:59:20]NVStorageSaveData done [08:59:20]OFDSenderStorePacket done [08:59:20]KKMCreateOFDPacket done [08:59:20]NVStorageSaveData kkm_last_timestamp [08:59:20]File name is /storage/kkm_last_timestamp [08:59:20]Write 4 bytes [08:59:20]NVStorageSaveData done [08:59:20]ExternCall_PrintAddStr [08:59:20]wPrintStart [08:59:20]Write to MH i2c: 01 00 00 98 24 BC [08:59:20]OFD Sender: No OFD packet to send [08:59:20]Write i2c OK [08:59:20]MH_I2C_Read... [08:59:20]Read from MH i2c: 01 [08:59:20]MH_I2C_Read... [08:59:20]Read from MH i2c: 01 07 00 [08:59:20]MH_I2C_Read... [08:59:20]Read from MH i2c: 01 07 00 98 24 00 00 00 00 00 FF 0F D1 [08:59:20]RasterBufferAndPrint [08:59:20]line Счет N : (1)347190 [08:59:20]line ИНН: 02508201610067 [08:59:20]line Контрольно-Кассовый Чек [08:59:20]line ПРОДАЖА [08:59:20]line ТРК (МРК, ГНК) : 32 [08:59:20]line Товар: 2710124130 [08:59:20]line Аи-92-К-5 [08:59:20]line 10.890 * 64.30 [08:59:20]line = 700.23 [08:59:20]line НДС 12% НСП 1% [08:59:20]line > о реализуемом товаре [08:59:20]line ИТОГО: 700.23 [08:59:20]line НСП 1% : 6.20 [08:59:20]line НДС 12% : 74.36 [08:59:20]line Наличными: 0.00 [08:59:20]line Безнал.: 700.23 [08:59:20]line Место: АЗС № 108 "Партнер Нефть" [08:59:20]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [08:59:20]line СНО: Общий режим [08:59:20]line Чек 48 13.04.2024 08:59 [08:59:20]line Смена: 115 ФФД: 1.0 [08:59:20]line ЗНМ: 0300000027 [08:59:20]line РНМ: 0000138879044617 [08:59:20]line Версия ККМ: 001 [08:59:20]line Платежная система: АКБ Кыргызстан [08:59:20]line ФМ: 0000000000963154 [08:59:20]line ФД: 28841 [08:59:20]line ФПД: 108486543101712 [08:59:20]line 1/tax-web-control/client/api/v1/ticket?date=20240413T085922&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28841&fm=108486543101712&tin=02508201610067®Number=0000138879044617&sum=70023 [08:59:20]OFD Sender: Processing packet 28841 [packets to send 8, broken 7] [08:59:20]ProducePacketName [08:59:20]name=ofd_packets/00028841 [08:59:20]OFD Sender: To server: pG, [08:59:20]CommunicateWithHost lk.salyk.kg:30040 [08:59:20]ConnectInit lk.salyk.kg [08:59:20]written 0, free lines is 4095 [08:59:20]Connected sock=10 [08:59:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 03 A5 07 01 14 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 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 00 00 00 00 00 00 39 04 06 00 87 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 6A 49 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A9 70 00 00 35 04 06 00 62 AA FD DD 4F 10 7D 75 89 D9 71 9B F4 6B [08:59:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 63 36 47 00 E4 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 31 35 34 10 04 04 00 A9 70 00 00 F4 03 04 00 11 F4 19 66 B6 04 01 00 00 58 71 26 5F 2B 17 33 E7 [08:59:20]CommunicateWithHost err = 0 [08:59:20]CheckOFDResponse [08:59:20]1017 (14) - 77093643461234 [08:59:20]1041 (16) - 0000000000963154 [08:59:20]1040 (4) - 28841 [08:59:20]1012 (4) - 13.04.2024 02:55 [08:59:20]1206 (1) - 0 [08:59:20]OFD Sender: Remove packet 28841 [08:59:20]ProducePacketName [08:59:20]name=ofd_packets/00028841 [08:59:20]NVStorageDeleteData [08:59:20]Write to MH i2c: 01 00 00 C1 24 E5 [08:59:20]Write i2c OK [08:59:20]MH_I2C_Read... [08:59:20]Read from MH i2c: 01 [08:59:20]MH_I2C_Read... [08:59:20]Read from MH i2c: 01 07 00 [08:59:20]MH_I2C_Read... [08:59:20]Read from MH i2c: 01 07 00 C1 24 00 00 00 00 00 FC 0C F4 [08:59:20]RasterBufferAndPrint [08:59:20]line [08:59:20]line [08:59:20]line [08:59:20]line [08:59:20]line [08:59:20]written 0, free lines is 3337 [08:59:20]MH_Cut [08:59:20]Write to MH i2c: D1 01 00 C8 24 01 BE [08:59:20]Write i2c OK [08:59:20]MH_I2C_Read... [08:59:20]Read from MH i2c: D1 [08:59:20]MH_I2C_Read... [08:59:20]Read from MH i2c: D1 01 00 [08:59:20]MH_I2C_Read... [08:59:20]Read from MH i2c: D1 01 00 C8 24 00 BD [08:59:20]Write to MH i2c: 01 00 00 C9 24 ED [08:59:20]Write i2c OK [08:59:20]MH_I2C_Read... [08:59:21]OFD Sender: No OFD packet to send [08:59:21]*** Cut start [08:59:21]*** Partial cut [08:59:21]*** CUTSNS_PIN = 1 [08:59:21]*** CUTSNS_PIN = 0 [08:59:21]*** Brake cut motor [08:59:22]Read from MH i2c: 01 [08:59:22]MH_I2C_Read... [08:59:22]*** Stop cut motor [08:59:22]*** Cut end [08:59:22]Read from MH i2c: 01 07 00 [08:59:22]MH_I2C_Read... [08:59:22]Read from MH i2c: 01 07 00 C9 24 00 00 00 00 00 FF 0F 02 [08:59:22]process_action close_receipt done [08:59:22]requested_data is exist [08:59:22]produce_requested_data [08:59:22]requested_item fm.sn is exist - process it [08:59:22]wFMCommunicate request_size=4 [08:59:22]MH_SAM_APDU [08:59:22]CAPDU: 80 11 00 00 [08:59:22]Write to MH i2c: E2 08 00 CA 24 80 11 00 00 00 00 00 00 68 [08:59:22]Write i2c OK [08:59:22]MH_I2C_Read... [08:59:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:22]Read from MH i2c: E2 [08:59:22]MH_I2C_Read... [08:59:22]Read from MH i2c: E2 17 00 [08:59:22]MH_I2C_Read... [08:59:22]Read from MH i2c: E2 17 00 CA 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B7 [08:59:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [08:59:22]wFMCommunicate OK [08:59:22]requested_item fd.num is exist - process it [08:59:22]SAM_PROTO_GetFieldsCounters [08:59:22]wFMCommunicate request_size=4 [08:59:22]MH_SAM_APDU [08:59:22]CAPDU: 80 13 00 00 [08:59:22]Write to MH i2c: E2 08 00 CB 24 80 13 00 00 00 00 00 00 6B [08:59:22]Write i2c OK [08:59:22]MH_I2C_Read... [08:59:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:22]Read from MH i2c: E2 [08:59:22]MH_I2C_Read... [08:59:22]Read from MH i2c: E2 62 00 [08:59:22]MH_I2C_Read... [08:59:22]Read from MH i2c: E2 62 00 CB 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A9 70 00 00 0E 04 04 00 73 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 C5 [08:59:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A9 70 00 00 0E 04 04 00 73 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:59:22]wFMCommunicate OK [08:59:22]SAM_PROTO_GetFieldsCounters done [08:59:22]requested_item shift.num is exist - process it [08:59:22]requested_item shift.opened is exist - process it [08:59:22]req_shift_opened [08:59:22]FM_GetShiftState [08:59:22]SAM_PROTO_GetShiftState [08:59:22]wFMCommunicate request_size=4 [08:59:22]MH_SAM_APDU [08:59:22]CAPDU: 80 13 01 00 [08:59:22]Write to MH i2c: E2 08 00 CC 24 80 13 01 00 00 00 00 00 6D [08:59:22]Write i2c OK [08:59:22]MH_I2C_Read... [08:59:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:22]Read from MH i2c: E2 [08:59:22]MH_I2C_Read... [08:59:22]Read from MH i2c: E2 0E 00 [08:59:22]MH_I2C_Read... [08:59:22]Read from MH i2c: E2 0E 00 CC 24 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 86 [08:59:22]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [08:59:22]wFMCommunicate OK [08:59:22]SAM_PROTO_GetShiftState done [08:59:22]FM_GetShiftState done [08:59:22]req_shift_opened done [08:59:22]requested_item shift.open_date is exist - process it [08:59:22]req_shift_open_date [08:59:22]req_shift_open_date done [08:59:22]produce_requested_data done [08:59:22]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28841,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [08:59:22]process_action_free close_receipt [08:59:22]json_value_free [08:59:22]json_value_free done [08:59:22]process_json_proto returns [08:59:22]Send response to host [08:59:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28841,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [08:59:22]free response buf [08:59:22]execute_script done [08:59:22]execute_script returns [08:59:22]free content buf [08:59:22]Sock 9.Close socket [08:59:22]Sock 9.Thread stoped [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:41]OFD Sender: No OFD packet to send [08:59:46]OFD Sender: No OFD packet to send [08:59:51]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:16]OFD Sender: No OFD packet to send [09:00:21]OFD Sender: No OFD packet to send [09:00:26]OFD Sender: No OFD packet to send [09:00:31]OFD Sender: No OFD packet to send [09:00:36]OFD Sender: No OFD packet to send [09:00:41]OFD Sender: No OFD packet to send [09:00:46]OFD Sender: No OFD packet to send [09:00:51]OFD Sender: No OFD packet to send [09:00:56]OFD Sender: No OFD packet to send [09:01:01]OFD Sender: No OFD packet to send [09:01:06]OFD Sender: No OFD packet to send [09:01:11]OFD Sender: No OFD packet to send [09:01:16]OFD Sender: No OFD packet to send [09:01:21]OFD Sender: No OFD packet to send [09:01:26]OFD Sender: No OFD packet to send [09:01:31]OFD Sender: No OFD packet to send [09:01:36]OFD Sender: No OFD packet to send [09:01:41]OFD Sender: No OFD packet to send [09:01:46]OFD Sender: No OFD packet to send [09:01:51]OFD Sender: No OFD packet to send [09:01:56]OFD Sender: No OFD packet to send [09:02:01]OFD Sender: No OFD packet to send [09:02:06]OFD Sender: No OFD packet to send [09:02:11]OFD Sender: No OFD packet to send [09:02:16]OFD Sender: No OFD packet to send [09:02:21]OFD Sender: No OFD packet to send [09:02:26]OFD Sender: No OFD packet to send [09:02:31]OFD Sender: No OFD packet to send [09:02:36]OFD Sender: No OFD packet to send [09:02:41]OFD Sender: No OFD packet to send [09:02:46]OFD Sender: No OFD packet to send [09:02:51]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03:06]OFD Sender: No OFD packet to send [09:03:11]OFD Sender: No OFD packet to send [09:03:16]OFD Sender: No OFD packet to send [09:03:21]OFD Sender: No OFD packet to send [09:03:26]OFD Sender: No OFD packet to send [09:03:31]OFD Sender: No OFD packet to send [09:03:36]OFD Sender: No OFD packet to send [09:03:41]OFD Sender: No OFD packet to send [09:03:46]OFD Sender: No OFD packet to send [09:03:51]OFD Sender: No OFD packet to send [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:05:01]OFD Sender: No OFD packet to send [09:05:02]accept exits with 7 [09:05:02]New connection [09:05:02]New thread 3066928484 created [09:05:02]Thread 3066785124 joined [09:05:02]Waiting for new connection... [09:05:02] Sock 7.Parse request [09:05:02]Sock 7.Check first char [09:05:02]Sock 7.First char is OK [09:05:02]request: POST /json_proto HTTP/1.0 [09:05:02]Method: POST [09:05:02]URL: /json_proto [09:05:02]Method is POST - this is cgi request [09:05:02]url: /json_proto [09:05:02]query_string will be loaded in cgi processing [09:05:02]execute_cgi json_proto POST (null) [09:05:02]execute_cgi path=json_proto method=POST [09:05:02]POST find Content-Length [09:05:02]Host: 172.17.33.3:8080 [09:05:02]Content-Length: 682 [09:05:02]Content-Type: application/json [09:05:02] [09:05:02]POST finish read [09:05:02]Found Content-Length = 682 [09:05:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:02]execute_script... [09:05: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)347192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:02]POST & json_proto [09:05:02]process_json_proto [09:05:02]json parsed OK: [09:05:02]protocol is kg_v1.0 [09:05:02]action value=close_receipt [09:05:02]process_action close_receipt [09:05:02]cmd_close_receipt [09:05:02]MH_GetDate [09:05:02]Write to MH i2c: F0 00 00 CD 24 E0 [09:05:02]Write i2c OK [09:05:02]MH_I2C_Read... [09:05:02]Read from MH i2c: F0 [09:05:02]MH_I2C_Read... [09:05:02]Read from MH i2c: F0 09 00 [09:05:02]MH_I2C_Read... [09:05:02]Read from MH i2c: F0 09 00 CD 24 00 C2 4A 1A 66 23 5B 8F 65 E7 [09:05:02]GetLastDocTimeStamp 1712998762 [09:05:02]current date 1712999106 [09:05:02]FM_GetShiftState [09:05:02]SAM_PROTO_GetShiftState [09:05:02]wFMCommunicate request_size=4 [09:05:02]MH_SAM_APDU [09:05:02]CAPDU: 80 13 01 00 [09:05:02]Write to MH i2c: E2 08 00 CE 24 80 13 01 00 00 00 00 00 6F [09:05:02]Write i2c OK [09:05:02]MH_I2C_Read... [09:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:02]Read from MH i2c: E2 [09:05:02]MH_I2C_Read... [09:05:02]Read from MH i2c: E2 0E 00 [09:05:02]MH_I2C_Read... [09:05:02]Read from MH i2c: E2 0E 00 CE 24 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 88 [09:05:02]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:05:02]wFMCommunicate OK [09:05:02]SAM_PROTO_GetShiftState done [09:05:02]FM_GetShiftState done [09:05:02]opened in 1712967615 [09:05:02]opened+sec_in_day 1713054015 [09:05:02]quantity*price = 100050 [09:05:02]sum+1 = 100052 [09:05:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 49 13.04.2024 09:05 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28842 ФПД: 48963538409359 1/tax-web-control/client/api/v1/ticket?date=20240413T090506&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28842&fm=48963538409359&tin=02508201610067®Number=0000138879044617&sum=100000 [09:05:03]StoreToDocumentArchive [09:05:03]shift 115 fd 28842 [09:05:03]save to /storage/0115/doc_00028842 [09:05:03]save last doc name /storage/0115/doc_00028842 to /storage/kkm_last_doc_name [09:05:03]save OK [09:05:03]Clear old archive folders... [09:05:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:05:03]tlvbuf is 01230420 [09:05:03]SAM_PROTO_ClearQueue [09:05:03]wFMCommunicate request_size=4 [09:05:03]MH_SAM_APDU [09:05:03]CAPDU: 80 09 00 00 [09:05:03]Write to MH i2c: E2 08 00 DB 24 80 09 00 00 00 00 00 00 71 [09:05:03]Write i2c OK [09:05:03]MH_I2C_Read... [09:05:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:03]Read from MH i2c: E2 [09:05:03]MH_I2C_Read... [09:05:03]Read from MH i2c: E2 03 00 [09:05:03]MH_I2C_Read... [09:05:03]Read from MH i2c: E2 03 00 DB 24 00 90 00 73 [09:05:03]RAPDU: 90 00 [09:05:03]wFMCommunicate OK [09:05:03]SAM_PROTO_ClearQueue done [09:05:03]KKMCreateOFDPacket [09:05:03]OFDProtocolAddRootSTLVToBuf [09:05:03]FM_MakeSignedData [09:05:03]FM_MakeSignedData [09:05:03]SAM_PROTO_SignData [09:05:03]wFMCommunicate request_size=4 [09:05:03]MH_SAM_APDU [09:05:03]CAPDU: 80 0D 01 02 [09:05:03]Write to MH i2c: E2 08 00 DC 24 80 0D 01 02 00 00 00 00 79 [09:05:03]Write i2c OK [09:05:03]MH_I2C_Read... [09:05:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:03]Read from MH i2c: E2 [09:05:03]MH_I2C_Read... [09:05:03]Read from MH i2c: E2 03 00 [09:05:03]MH_I2C_Read... [09:05:03]Read from MH i2c: E2 03 00 DC 24 00 90 00 74 [09:05:03]RAPDU: 90 00 [09:05:03]wFMCommunicate OK [09:05:03]wFMCommunicate request_size=255 [09:05:03]MH_SAM_APDU [09:05: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 C2 4A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AA 70 00 00 35 04 06 00 2C [09:05:03]Write to MH i2c: E2 02 01 DD 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 C2 4A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AA 70 00 00 35 04 06 00 2C 00 00 1B [09:05:03]Write i2c OK [09:05:03]MH_I2C_Read... [09:05:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:04]Read from MH i2c: E2 [09:05:04]MH_I2C_Read... [09:05:04]Read from MH i2c: E2 03 00 [09:05:04]MH_I2C_Read... [09:05:04]Read from MH i2c: E2 03 00 DD 24 00 90 00 75 [09:05:04]RAPDU: 90 00 [09:05:04]wFMCommunicate OK [09:05:04]wFMCommunicate request_size=10 [09:05:04]MH_SAM_APDU [09:05:04]CAPDU: 80 0D 02 02 05 88 36 50 57 8F [09:05:04]Write to MH i2c: E2 0D 00 DE 24 80 0D 02 02 05 00 88 36 50 57 8F 00 00 7A [09:05:04]Write i2c OK [09:05:04]MH_I2C_Read... [09:05:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:04]Read from MH i2c: E2 [09:05:04]MH_I2C_Read... [09:05:04]Read from MH i2c: E2 03 00 [09:05:04]MH_I2C_Read... [09:05:04]Read from MH i2c: E2 03 00 DE 24 00 90 00 76 [09:05:04]RAPDU: 90 00 [09:05:04]wFMCommunicate OK [09:05:04]wFMCommunicate request_size=4 [09:05:04]MH_SAM_APDU [09:05:04]CAPDU: 80 0D 03 02 [09:05:04]Write to MH i2c: E2 08 00 DF 24 80 0D 03 02 00 00 00 00 7E [09:05:04]Write i2c OK [09:05:04]MH_I2C_Read... [09:05:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:04]Read from MH i2c: E2 [09:05:04]MH_I2C_Read... [09:05:04]Read from MH i2c: E2 0B 00 [09:05:04]MH_I2C_Read... [09:05:04]Read from MH i2c: E2 0B 00 DF 24 00 BD C1 F3 3E 98 04 70 E8 90 00 22 [09:05:04]RAPDU: BD C1 F3 3E 98 04 70 E8 90 00 [09:05:04]wFMCommunicate OK [09:05:04]SAM_PROTO_SignData done [09:05:04]FM_MakeSignedData done [09:05:04]CreateOFDProtocolMessage [09:05:04]wFMCommunicate request_size=4 [09:05:04]MH_SAM_APDU [09:05:04]CAPDU: 80 11 00 00 [09:05:04]Write to MH i2c: E2 08 00 E0 24 80 11 00 00 00 00 00 00 7E [09:05:04]Write i2c OK [09:05:04]MH_I2C_Read... [09:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:04]Read from MH i2c: E2 [09:05:04]MH_I2C_Read... [09:05:04]Read from MH i2c: E2 17 00 [09:05:04]MH_I2C_Read... [09:05:04]Read from MH i2c: E2 17 00 E0 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CD [09:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:05:04]wFMCommunicate OK [09:05:04]CreateOFDProtocolMessage done [09:05:04]OFDSenderStorePacket 28842 [09:05:04]StoreOFDPacket docnum=28842 [09:05:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B4 81 07 01 91 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 C2 4A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AA 70 00 00 35 04 06 00 2C 88 36 50 57 8F BD C1 F3 3E 98 04 70 E8 [09:05:04]CheckFolder [09:05:04]dirname=/storage/ofd_packets [09:05:04]CheckFolder done [09:05:04]ProducePacketName [09:05:04]name=ofd_packets/00028842 [09:05:04]NVStorageSaveData ofd_packets/00028842 [09:05:04]File name is /storage/ofd_packets/00028842 [09:05:04]Write 301 bytes [09:05:04]NVStorageSaveData done [09:05:04]OFDSenderStorePacket done [09:05:04]KKMCreateOFDPacket done [09:05:04]NVStorageSaveData kkm_last_timestamp [09:05:04]File name is /storage/kkm_last_timestamp [09:05:04]Write 4 bytes [09:05:04]NVStorageSaveData done [09:05:04]ExternCall_PrintAddStr [09:05:04]wPrintStart [09:05:04]Write to MH i2c: 01 00 00 E1 24 05 [09:05:04]Write i2c OK [09:05:04]MH_I2C_Read... [09:05:04]Read from MH i2c: 01 [09:05:04]MH_I2C_Read... [09:05:04]Read from MH i2c: 01 07 00 [09:05:04]MH_I2C_Read... [09:05:04]Read from MH i2c: 01 07 00 E1 24 00 00 00 00 00 FF 0F 1A [09:05:04]RasterBufferAndPrint [09:05:04]line Счет N : (1)347192 [09:05:04]line ИНН: 02508201610067 [09:05:04]line Контрольно-Кассовый Чек [09:05:04]line ПРОДАЖА [09:05:04]line ТРК (МРК, ГНК) : 63 [09:05:04]line Товар: 2710124130 [09:05:04]line Аи-92-К-5 [09:05:04]line 15.560 * 64.30 [09:05:04]line = 1000.51 [09:05:04]line НДС 12% НСП 1% [09:05:04]line > о реализуемом товаре [09:05:04]line ОКРУГЛЕНИЕ: -0.51 [09:05:04]line ИТОГО: 1000.00 [09:05:04]line Внесено: 1000.00 [09:05:04]line СДАЧА: 0.00 [09:05:04]line НСП 1% : 8.85 [09:05:04]line НДС 12% : 106.25 [09:05:04]line Наличными: 1000.00 [09:05:04]line Безнал.: 0.00 [09:05:04]line Место: АЗС № 108 "Партнер Нефть" [09:05:04]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:05:04]line СНО: Общий режим [09:05:04]line Чек 49 13.04.2024 09:05 [09:05:04]line Смена: 115 ФФД: 1.0 [09:05:04]line ЗНМ: 0300000027 [09:05:04]line РНМ: 0000138879044617 [09:05:04]line Версия ККМ: 001 [09:05:04]line ФМ: 0000000000963154 [09:05:04]line ФД: 28842 [09:05:04]line ФПД: 48963538409359 [09:05:04]line 1/tax-web-control/client/api/v1/ticket?date=20240413T090506&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28842&fm=48963538409359&tin=02508201610067®Number=0000138879044617&sum=100000 [09:05:04]OFD Sender: Processing packet 28842 [packets to send 8, broken 7] [09:05:04]ProducePacketName [09:05:04]name=ofd_packets/00028842 [09:05:04]OFD Sender: To server: pG, [09:05:04]CommunicateWithHost lk.salyk.kg:30040 [09:05:04]ConnectInit lk.salyk.kg [09:05:04]written 0, free lines is 4095 [09:05:04]Connected sock=10 [09:05: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 31 35 34 0F 01 00 00 B4 81 07 01 91 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 C2 4A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AA 70 00 00 35 04 06 00 2C 88 36 50 57 8F BD C1 F3 3E 98 04 70 E8 [09:05:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 72 65 47 00 76 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 31 35 34 10 04 04 00 AA 70 00 00 F4 03 04 00 6A F5 19 66 B6 04 01 00 00 3F E6 7C 04 2F 9E 78 CF [09:05:04]CommunicateWithHost err = 0 [09:05:04]CheckOFDResponse [09:05:04]1017 (14) - 77093643461234 [09:05:04]1041 (16) - 0000000000963154 [09:05:04]1040 (4) - 28842 [09:05:04]1012 (4) - 13.04.2024 03:00 [09:05:04]1206 (1) - 0 [09:05:04]OFD Sender: Remove packet 28842 [09:05:04]ProducePacketName [09:05:04]name=ofd_packets/00028842 [09:05:04]NVStorageDeleteData [09:05:05]Write to MH i2c: 01 00 00 0B 25 30 [09:05:05]Write i2c OK [09:05:05]MH_I2C_Read... [09:05:05]Read from MH i2c: 01 [09:05:05]MH_I2C_Read... [09:05:05]Read from MH i2c: 01 07 00 [09:05:05]MH_I2C_Read... [09:05:05]Read from MH i2c: 01 07 00 0B 25 00 00 00 00 00 C6 0C 09 [09:05:05]RasterBufferAndPrint [09:05:05]line [09:05:05]line [09:05:05]line [09:05:05]line [09:05:05]line [09:05:05]written 0, free lines is 3274 [09:05:05]MH_Cut [09:05:05]Write to MH i2c: D1 01 00 12 25 01 09 [09:05:05]Write i2c OK [09:05:05]MH_I2C_Read... [09:05:05]Read from MH i2c: D1 [09:05:05]MH_I2C_Read... [09:05:05]Read from MH i2c: D1 01 00 [09:05:05]MH_I2C_Read... [09:05:05]Read from MH i2c: D1 01 00 12 25 00 08 [09:05:05]Write to MH i2c: 01 00 00 13 25 38 [09:05:05]Write i2c OK [09:05:05]MH_I2C_Read... [09:05:05]OFD Sender: No OFD packet to send [09:05:05]*** Cut start [09:05:05]*** Partial cut [09:05:05]*** CUTSNS_PIN = 1 [09:05:06]*** CUTSNS_PIN = 0 [09:05:06]*** Brake cut motor [09:05:06]Read from MH i2c: 01 [09:05:06]MH_I2C_Read... [09:05:06]*** Stop cut motor [09:05:06]*** Cut end [09:05:06]Read from MH i2c: 01 07 00 [09:05:06]MH_I2C_Read... [09:05:06]Read from MH i2c: 01 07 00 13 25 00 00 00 00 00 FF 0F 4D [09:05:06]process_action close_receipt done [09:05:06]requested_data is exist [09:05:06]produce_requested_data [09:05:06]requested_item fm.sn is exist - process it [09:05:06]wFMCommunicate request_size=4 [09:05:06]MH_SAM_APDU [09:05:06]CAPDU: 80 11 00 00 [09:05:06]Write to MH i2c: E2 08 00 14 25 80 11 00 00 00 00 00 00 B3 [09:05:06]Write i2c OK [09:05:06]MH_I2C_Read... [09:05:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:06]Read from MH i2c: E2 [09:05:06]MH_I2C_Read... [09:05:06]Read from MH i2c: E2 17 00 [09:05:06]MH_I2C_Read... [09:05:06]Read from MH i2c: E2 17 00 14 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 02 [09:05:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:05:06]wFMCommunicate OK [09:05:06]requested_item fd.num is exist - process it [09:05:06]SAM_PROTO_GetFieldsCounters [09:05:06]wFMCommunicate request_size=4 [09:05:06]MH_SAM_APDU [09:05:06]CAPDU: 80 13 00 00 [09:05:06]Write to MH i2c: E2 08 00 15 25 80 13 00 00 00 00 00 00 B6 [09:05:06]Write i2c OK [09:05:06]MH_I2C_Read... [09:05:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:06]Read from MH i2c: E2 [09:05:06]MH_I2C_Read... [09:05:06]Read from MH i2c: E2 62 00 [09:05:06]MH_I2C_Read... [09:05:06]Read from MH i2c: E2 62 00 15 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AA 70 00 00 0E 04 04 00 73 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 14 [09:05: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AA 70 00 00 0E 04 04 00 73 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 [09:05:06]wFMCommunicate OK [09:05:06]SAM_PROTO_GetFieldsCounters done [09:05:06]requested_item shift.num is exist - process it [09:05:06]requested_item shift.opened is exist - process it [09:05:06]req_shift_opened [09:05:06]FM_GetShiftState [09:05:06]SAM_PROTO_GetShiftState [09:05:06]wFMCommunicate request_size=4 [09:05:06]MH_SAM_APDU [09:05:06]CAPDU: 80 13 01 00 [09:05:06]Write to MH i2c: E2 08 00 16 25 80 13 01 00 00 00 00 00 B8 [09:05:06]Write i2c OK [09:05:06]MH_I2C_Read... [09:05:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:06]Read from MH i2c: E2 [09:05:06]MH_I2C_Read... [09:05:06]Read from MH i2c: E2 0E 00 [09:05:06]MH_I2C_Read... [09:05:06]Read from MH i2c: E2 0E 00 16 25 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D1 [09:05:06]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:05:06]wFMCommunicate OK [09:05:06]SAM_PROTO_GetShiftState done [09:05:06]FM_GetShiftState done [09:05:06]req_shift_opened done [09:05:06]requested_item shift.open_date is exist - process it [09:05:06]req_shift_open_date [09:05:06]req_shift_open_date done [09:05:06]produce_requested_data done [09:05:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28842,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [09:05:06]process_action_free close_receipt [09:05:06]json_value_free [09:05:06]json_value_free done [09:05:06]process_json_proto returns [09:05:06]Send response to host [09:05:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28842,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [09:05:06]free response buf [09:05:06]execute_script done [09:05:06]execute_script returns [09:05:06]free content buf [09:05:06]Sock 7.Close socket [09:05:06]Sock 7.Thread stoped [09:05:10]OFD Sender: No OFD packet to send [09:05:15]OFD Sender: No OFD packet to send [09:05:20]OFD Sender: No OFD packet to send [09:05:25]OFD Sender: No OFD packet to send [09:05:30]OFD Sender: No OFD packet to send [09:05:35]OFD Sender: No OFD packet to send [09:05:40]OFD Sender: No OFD packet to send [09:05:45]OFD Sender: No OFD packet to send [09:05:50]OFD Sender: No OFD packet to send [09:05:55]OFD Sender: No OFD packet to send [09:06:00]OFD Sender: No OFD packet to send [09:06:05]OFD Sender: No OFD packet to send [09:06:10]OFD Sender: No OFD packet to send [09:06:15]OFD Sender: No OFD packet to send [09:06: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:53]accept exits with 9 [09:08:53]New connection [09:08:53]New thread 3066785124 created [09:08:53]Thread 3066928484 joined [09:08:53]Waiting for new connection... [09:08:53] Sock 9.Parse request [09:08:53]Sock 9.Check first char [09:08:53]Sock 9.First char is OK [09:08:53]request: POST /json_proto HTTP/1.0 [09:08:53]Method: POST [09:08:53]URL: /json_proto [09:08:53]Method is POST - this is cgi request [09:08:53]url: /json_proto [09:08:53]query_string will be loaded in cgi processing [09:08:53]execute_cgi json_proto POST (null) [09:08:53]execute_cgi path=json_proto method=POST [09:08:53]POST find Content-Length [09:08:53]Host: 172.17.33.3:8080 [09:08:53]Content-Length: 674 [09:08:53]Content-Type: application/json [09:08:53] [09:08:53]POST finish read [09:08:53]Found Content-Length = 674 [09:08:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347193", "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" : 72.40, "quantity" : 4.150, "sum" : 300.46, "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" ] } } [09:08:53]execute_script... [09: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)347193", "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" : 72.40, "quantity" : 4.150, "sum" : 300.46, "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" ] } } [09:08:53]POST & json_proto [09:08:53]process_json_proto [09:08:53]json parsed OK: [09:08:53]protocol is kg_v1.0 [09:08:53]action value=close_receipt [09:08:53]process_action close_receipt [09:08:53]cmd_close_receipt [09:08:53]MH_GetDate [09:08:53]Write to MH i2c: F0 00 00 17 25 2B [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: F0 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: F0 09 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: F0 09 00 17 25 00 A9 4B 1A 66 23 5B 8F 65 1A [09:08:53]GetLastDocTimeStamp 1712999106 [09:08:53]current date 1712999337 [09:08:53]FM_GetShiftState [09:08:53]SAM_PROTO_GetShiftState [09:08:53]wFMCommunicate request_size=4 [09:08:53]MH_SAM_APDU [09:08:53]CAPDU: 80 13 01 00 [09:08:53]Write to MH i2c: E2 08 00 18 25 80 13 01 00 00 00 00 00 BA [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:53]Read from MH i2c: E2 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 0E 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 0E 00 18 25 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D3 [09:08:53]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:08:53]wFMCommunicate OK [09:08:53]SAM_PROTO_GetShiftState done [09:08:53]FM_GetShiftState done [09:08:53]opened in 1712967615 [09:08:53]opened+sec_in_day 1713054015 [09:08:53]quantity*price = 30046 [09:08:53]sum+1 = 30047 [09:08:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 50 13.04.2024 09:08 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28843 ФПД: 177256682011232 1/tax-web-control/client/api/v1/ticket?date=20240413T090857&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28843&fm=177256682011232&tin=02508201610067®Number=0000138879044617&sum=30000 [09:08:55]StoreToDocumentArchive [09:08:55]shift 115 fd 28843 [09:08:55]save to /storage/0115/doc_00028843 [09:08:55]save last doc name /storage/0115/doc_00028843 to /storage/kkm_last_doc_name [09:08:55]save OK [09:08:55]Clear old archive folders... [09:08:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:08:55]tlvbuf is 0120E930 [09:08:55]SAM_PROTO_ClearQueue [09:08:55]wFMCommunicate request_size=4 [09:08:55]MH_SAM_APDU [09:08:55]CAPDU: 80 09 00 00 [09:08:55]Write to MH i2c: E2 08 00 25 25 80 09 00 00 00 00 00 00 BC [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:55]Read from MH i2c: E2 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 03 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 03 00 25 25 00 90 00 BE [09:08:55]RAPDU: 90 00 [09:08:55]wFMCommunicate OK [09:08:55]SAM_PROTO_ClearQueue done [09:08:55]KKMCreateOFDPacket [09:08:55]OFDProtocolAddRootSTLVToBuf [09:08:55]FM_MakeSignedData [09:08:55]FM_MakeSignedData [09:08:55]SAM_PROTO_SignData [09:08:55]wFMCommunicate request_size=4 [09:08:55]MH_SAM_APDU [09:08:55]CAPDU: 80 0D 01 02 [09:08:55]Write to MH i2c: E2 08 00 26 25 80 0D 01 02 00 00 00 00 C4 [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:55]Read from MH i2c: E2 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 03 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 03 00 26 25 00 90 00 BF [09:08:55]RAPDU: 90 00 [09:08:55]wFMCommunicate OK [09:08:55]wFMCommunicate request_size=255 [09:08:55]MH_SAM_APDU [09:08: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 36 10 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 A9 4B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AB 70 00 00 35 04 06 00 A1 36 C9 90 [09:08:55]Write to MH i2c: E2 02 01 27 25 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 A9 4B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AB 70 00 00 35 04 06 00 A1 36 C9 90 00 00 F7 [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:55]Read from MH i2c: E2 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 03 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 03 00 27 25 00 90 00 C0 [09:08:55]RAPDU: 90 00 [09:08:55]wFMCommunicate OK [09:08:55]wFMCommunicate request_size=7 [09:08:55]MH_SAM_APDU [09:08:55]CAPDU: 80 0D 02 02 02 BA 60 [09:08:55]Write to MH i2c: E2 0A 00 28 25 80 0D 02 02 02 00 BA 60 00 00 E5 [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:55]Read from MH i2c: E2 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 03 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 03 00 28 25 00 90 00 C1 [09:08:55]RAPDU: 90 00 [09:08:55]wFMCommunicate OK [09:08:55]wFMCommunicate request_size=4 [09:08:55]MH_SAM_APDU [09:08:55]CAPDU: 80 0D 03 02 [09:08:55]Write to MH i2c: E2 08 00 29 25 80 0D 03 02 00 00 00 00 C9 [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:55]Read from MH i2c: E2 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 0B 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 0B 00 29 25 00 8A AF 7C 4E 2D FB 9E E2 90 00 75 [09:08:55]RAPDU: 8A AF 7C 4E 2D FB 9E E2 90 00 [09:08:55]wFMCommunicate OK [09:08:55]SAM_PROTO_SignData done [09:08:55]FM_MakeSignedData done [09:08:55]CreateOFDProtocolMessage [09:08:55]wFMCommunicate request_size=4 [09:08:55]MH_SAM_APDU [09:08:55]CAPDU: 80 11 00 00 [09:08:55]Write to MH i2c: E2 08 00 2A 25 80 11 00 00 00 00 00 00 C9 [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:55]Read from MH i2c: E2 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 17 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 17 00 2A 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 18 [09:08:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:08:55]wFMCommunicate OK [09:08:55]CreateOFDProtocolMessage done [09:08:55]OFDSenderStorePacket 28843 [09:08:55]StoreOFDPacket docnum=28843 [09:08:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 20 E6 04 01 5E CB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 A9 4B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AB 70 00 00 35 04 06 00 A1 36 C9 90 BA 60 8A AF 7C 4E 2D FB 9E E2 [09:08:55]CheckFolder [09:08:55]dirname=/storage/ofd_packets [09:08:55]CheckFolder done [09:08:55]ProducePacketName [09:08:55]name=ofd_packets/00028843 [09:08:55]NVStorageSaveData ofd_packets/00028843 [09:08:55]File name is /storage/ofd_packets/00028843 [09:08:55]Write 298 bytes [09:08:55]NVStorageSaveData done [09:08:55]OFDSenderStorePacket done [09:08:55]KKMCreateOFDPacket done [09:08:55]NVStorageSaveData kkm_last_timestamp [09:08:55]File name is /storage/kkm_last_timestamp [09:08:55]Write 4 bytes [09:08:55]NVStorageSaveData done [09:08:55]ExternCall_PrintAddStr [09:08:55]wPrintStart [09:08:55]Write to MH i2c: 01 00 00 2B 25 50 [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: 01 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: 01 07 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: 01 07 00 2B 25 00 00 00 00 00 FF 0F 65 [09:08:55]RasterBufferAndPrint [09:08:55]line Счет N : (1)347193 [09:08:55]line ИНН: 02508201610067 [09:08:55]line Контрольно-Кассовый Чек [09:08:55]line ПРОДАЖА [09:08:55]line ТРК (МРК, ГНК) : 51 [09:08:55]line Товар: 2710194210 [09:08:55]line ДТ-К-5 [09:08:55]line 4.150 * 72.40 [09:08:55]line = 300.46 [09:08:55]line НДС 12% НСП 1% [09:08:55]line > о реализуемом товаре [09:08:55]line ОКРУГЛЕНИЕ: -0.46 [09:08:55]line ИТОГО: 300.00 [09:08:55]line Внесено: 300.00 [09:08:55]line СДАЧА: 0.00 [09:08:55]line НСП 1% : 2.66 [09:08:55]line НДС 12% : 31.91 [09:08:55]line Наличными: 300.00 [09:08:55]line Безнал.: 0.00 [09:08:55]line Место: АЗС № 108 "Партнер Нефть" [09:08:55]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:08:55]line СНО: Общий режим [09:08:55]line Чек 50 13.04.2024 09:08 [09:08:55]line Смена: 115 ФФД: 1.0 [09:08:55]line ЗНМ: 0300000027 [09:08:55]line РНМ: 0000138879044617 [09:08:55]line Версия ККМ: 001 [09:08:55]line ФМ: 0000000000963154 [09:08:55]line ФД: 28843 [09:08:55]line ФПД: 177256682011232 [09:08:55]line 1/tax-web-control/client/api/v1/ticket?date=20240413T090857&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28843&fm=177256682011232&tin=02508201610067®Number=0000138879044617&sum=30000 [09:08:55]OFD Sender: Processing packet 28843 [packets to send 8, broken 7] [09:08:55]ProducePacketName [09:08:55]name=ofd_packets/00028843 [09:08:55]OFD Sender: To server: pG, [09:08:55]CommunicateWithHost lk.salyk.kg:30040 [09:08:55]ConnectInit lk.salyk.kg [09:08:55]written 0, free lines is 4095 [09:08:55]Connected sock=10 [09:08: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 31 35 34 0C 01 00 00 20 E6 04 01 5E CB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 A9 4B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AB 70 00 00 35 04 06 00 A1 36 C9 90 BA 60 8A AF 7C 4E 2D FB 9E E2 [09: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 31 35 34 4F 00 00 00 20 5B 47 00 82 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 31 35 34 10 04 04 00 AB 70 00 00 F4 03 04 00 51 F6 19 66 B6 04 01 00 00 E9 12 B1 54 5D CD B9 C0 [09:08:56]CommunicateWithHost err = 0 [09:08:56]CheckOFDResponse [09:08:56]1017 (14) - 77093643461234 [09:08:56]1041 (16) - 0000000000963154 [09:08:56]1040 (4) - 28843 [09:08:56]1012 (4) - 13.04.2024 03:04 [09:08:56]1206 (1) - 0 [09:08:56]OFD Sender: Remove packet 28843 [09:08:56]ProducePacketName [09:08:56]name=ofd_packets/00028843 [09:08:56]NVStorageDeleteData [09:08:56]Write to MH i2c: 01 00 00 55 25 7A [09:08:56]Write i2c OK [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: 01 [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: 01 07 00 [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: 01 07 00 55 25 00 00 00 00 00 C5 0C 52 [09:08:56]RasterBufferAndPrint [09:08:56]line [09:08:56]line [09:08:56]line [09:08:56]line [09:08:56]line [09:08:56]written 0, free lines is 3274 [09:08:56]MH_Cut [09:08:56]Write to MH i2c: D1 01 00 5C 25 01 53 [09:08:56]Write i2c OK [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: D1 [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: D1 01 00 [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: D1 01 00 5C 25 00 52 [09:08:56]Write to MH i2c: 01 00 00 5D 25 82 [09:08:56]Write i2c OK [09:08:56]MH_I2C_Read... [09:08:56]OFD Sender: No OFD packet to send [09:08:57]*** Cut start [09:08:57]*** Partial cut [09:08:57]*** CUTSNS_PIN = 1 [09:08:57]*** CUTSNS_PIN = 0 [09:08:57]*** Brake cut motor [09:08:57]Read from MH i2c: 01 [09:08:57]MH_I2C_Read... [09:08:57]*** Stop cut motor [09:08:57]*** Cut end [09:08:57]Read from MH i2c: 01 07 00 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: 01 07 00 5D 25 00 00 00 00 00 FF 0F 97 [09:08:57]process_action close_receipt done [09:08:57]requested_data is exist [09:08:57]produce_requested_data [09:08:57]requested_item fm.sn is exist - process it [09:08:57]wFMCommunicate request_size=4 [09:08:57]MH_SAM_APDU [09:08:57]CAPDU: 80 11 00 00 [09:08:57]Write to MH i2c: E2 08 00 5E 25 80 11 00 00 00 00 00 00 FD [09:08:57]Write i2c OK [09:08:57]MH_I2C_Read... [09:08:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:57]Read from MH i2c: E2 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: E2 17 00 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: E2 17 00 5E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4C [09:08:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:08:57]wFMCommunicate OK [09:08:57]requested_item fd.num is exist - process it [09:08:57]SAM_PROTO_GetFieldsCounters [09:08:57]wFMCommunicate request_size=4 [09:08:57]MH_SAM_APDU [09:08:57]CAPDU: 80 13 00 00 [09:08:57]Write to MH i2c: E2 08 00 5F 25 80 13 00 00 00 00 00 00 00 [09:08:57]Write i2c OK [09:08:57]MH_I2C_Read... [09:08:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:57]Read from MH i2c: E2 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: E2 62 00 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: E2 62 00 5F 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AB 70 00 00 0E 04 04 00 73 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 62 [09: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AB 70 00 00 0E 04 04 00 73 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 [09:08:57]wFMCommunicate OK [09:08:57]SAM_PROTO_GetFieldsCounters done [09:08:57]requested_item shift.num is exist - process it [09:08:57]requested_item shift.opened is exist - process it [09:08:57]req_shift_opened [09:08:57]FM_GetShiftState [09:08:57]SAM_PROTO_GetShiftState [09:08:57]wFMCommunicate request_size=4 [09:08:57]MH_SAM_APDU [09:08:57]CAPDU: 80 13 01 00 [09:08:57]Write to MH i2c: E2 08 00 60 25 80 13 01 00 00 00 00 00 02 [09:08:57]Write i2c OK [09:08:57]MH_I2C_Read... [09:08:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:57]Read from MH i2c: E2 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: E2 0E 00 [09:08:57]MH_I2C_Read... [09:08:57]Read from MH i2c: E2 0E 00 60 25 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 1B [09:08:57]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:08:57]wFMCommunicate OK [09:08:57]SAM_PROTO_GetShiftState done [09:08:57]FM_GetShiftState done [09:08:57]req_shift_opened done [09:08:57]requested_item shift.open_date is exist - process it [09:08:57]req_shift_open_date [09:08:57]req_shift_open_date done [09:08:57]produce_requested_data done [09:08:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28843,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [09:08:57]process_action_free close_receipt [09:08:57]json_value_free [09:08:57]json_value_free done [09:08:57]process_json_proto returns [09:08:57]Send response to host [09:08:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28843,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [09:08:57]free response buf [09:08:57]execute_script done [09:08:57]execute_script returns [09:08:57]free content buf [09:08:57]Sock 9.Close socket [09:08:57]Sock 9.Thread stoped [09:09:01]OFD Sender: No OFD packet to send [09:09:06]OFD Sender: No OFD packet to send [09:09:11]OFD Sender: No OFD packet to send [09:09:16]OFD Sender: No OFD packet to send [09:09:21]OFD Sender: No OFD packet to send [09:09:26]OFD Sender: No OFD packet to send [09:09:31]OFD Sender: No OFD packet to send [09:09:36]OFD Sender: No OFD packet to send [09:09:41]OFD Sender: No OFD packet to send [09:09:46]OFD Sender: No OFD packet to send [09:09:51]OFD Sender: No OFD packet to send [09:09:56]OFD Sender: No OFD packet to send [09:10:01]OFD Sender: No OFD packet to send [09:10:06]OFD Sender: No OFD packet to send [09:10:11]OFD Sender: No OFD packet to send [09:10:16]OFD Sender: No OFD packet to send [09:10:21]OFD Sender: No OFD packet to send [09:10:26]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:36]OFD Sender: No OFD packet to send [09:10:41]OFD Sender: No OFD packet to send [09:10:46]OFD Sender: No OFD packet to send [09:10:51]OFD Sender: No OFD packet to send [09:10:56]OFD Sender: No OFD packet to send [09:11:01]OFD Sender: No OFD packet to send [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:16]OFD Sender: No OFD packet to send [09:11:21]OFD Sender: No OFD packet to send [09:11:26]OFD Sender: No OFD packet to send [09:11:28]accept exits with 7 [09:11:28]New connection [09:11:28]New thread 3066928484 created [09:11:28]Thread 3066785124 joined [09:11:28]Waiting for new connection... [09:11:28] Sock 7.Parse request [09:11:28]Sock 7.Check first char [09:11:28]Sock 7.First char is OK [09:11:28]request: POST /json_proto HTTP/1.0 [09:11:28]Method: POST [09:11:28]URL: /json_proto [09:11:28]Method is POST - this is cgi request [09:11:28]url: /json_proto [09:11:28]query_string will be loaded in cgi processing [09:11:28]execute_cgi json_proto POST (null) [09:11:28]execute_cgi path=json_proto method=POST [09:11:28]POST find Content-Length [09:11:28]Host: 172.17.33.3:8080 [09:11:28]Content-Length: 674 [09:11:28]Content-Type: application/json [09:11:28] [09:11:28]POST finish read [09:11:28]Found Content-Length = 674 [09:11:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 5.530, "sum" : 400.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:28]execute_script... [09:11: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)347194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 5.530, "sum" : 400.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:28]POST & json_proto [09:11:28]process_json_proto [09:11:28]json parsed OK: [09:11:28]protocol is kg_v1.0 [09:11:28]action value=close_receipt [09:11:28]process_action close_receipt [09:11:28]cmd_close_receipt [09:11:28]MH_GetDate [09:11:28]Write to MH i2c: F0 00 00 61 25 75 [09:11:28]Write i2c OK [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: F0 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: F0 09 00 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: F0 09 00 61 25 00 44 4C 1A 66 23 5B 8F 65 00 [09:11:28]GetLastDocTimeStamp 1712999337 [09:11:28]current date 1712999492 [09:11:28]FM_GetShiftState [09:11:28]SAM_PROTO_GetShiftState [09:11:28]wFMCommunicate request_size=4 [09:11:28]MH_SAM_APDU [09:11:28]CAPDU: 80 13 01 00 [09:11:28]Write to MH i2c: E2 08 00 62 25 80 13 01 00 00 00 00 00 04 [09:11:28]Write i2c OK [09:11:28]MH_I2C_Read... [09:11:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:28]Read from MH i2c: E2 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 0E 00 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 0E 00 62 25 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 1D [09:11:28]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:11:28]wFMCommunicate OK [09:11:28]SAM_PROTO_GetShiftState done [09:11:28]FM_GetShiftState done [09:11:28]opened in 1712967615 [09:11:28]opened+sec_in_day 1713054015 [09:11:28]quantity*price = 40037 [09:11:28]sum+1 = 40038 [09:11:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 51 13.04.2024 09:11 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28844 ФПД: 106239587963879 1/tax-web-control/client/api/v1/ticket?date=20240413T091132&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28844&fm=106239587963879&tin=02508201610067®Number=0000138879044617&sum=40000 [09:11:29]StoreToDocumentArchive [09:11:29]shift 115 fd 28844 [09:11:29]save to /storage/0115/doc_00028844 [09:11:29]save last doc name /storage/0115/doc_00028844 to /storage/kkm_last_doc_name [09:11:29]save OK [09:11:29]Clear old archive folders... [09:11:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:11:29]tlvbuf is B6F52230 [09:11:29]SAM_PROTO_ClearQueue [09:11:29]wFMCommunicate request_size=4 [09:11:29]MH_SAM_APDU [09:11:29]CAPDU: 80 09 00 00 [09:11:29]Write to MH i2c: E2 08 00 6F 25 80 09 00 00 00 00 00 00 06 [09:11:29]Write i2c OK [09:11:29]MH_I2C_Read... [09:11:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:29]Read from MH i2c: E2 [09:11:29]MH_I2C_Read... [09:11:29]Read from MH i2c: E2 03 00 [09:11:29]MH_I2C_Read... [09:11:29]Read from MH i2c: E2 03 00 6F 25 00 90 00 08 [09:11:29]RAPDU: 90 00 [09:11:29]wFMCommunicate OK [09:11:29]SAM_PROTO_ClearQueue done [09:11:29]KKMCreateOFDPacket [09:11:29]OFDProtocolAddRootSTLVToBuf [09:11:29]FM_MakeSignedData [09:11:29]FM_MakeSignedData [09:11:29]SAM_PROTO_SignData [09:11:29]wFMCommunicate request_size=4 [09:11:29]MH_SAM_APDU [09:11:29]CAPDU: 80 0D 01 02 [09:11:29]Write to MH i2c: E2 08 00 70 25 80 0D 01 02 00 00 00 00 0E [09:11:29]Write i2c OK [09:11:29]MH_I2C_Read... [09:11:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:29]Read from MH i2c: E2 [09:11:29]MH_I2C_Read... [09:11:29]Read from MH i2c: E2 03 00 [09:11:29]MH_I2C_Read... [09:11:29]Read from MH i2c: E2 03 00 70 25 00 90 00 09 [09:11:29]RAPDU: 90 00 [09:11:29]wFMCommunicate OK [09:11:29]wFMCommunicate request_size=255 [09:11:29]MH_SAM_APDU [09:11: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 9A 15 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 65 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 9C 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 33 00 00 00 F4 03 04 00 44 4C 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AC 70 00 00 35 04 06 00 60 9F D4 E6 [09:11:29]Write to MH i2c: E2 02 01 71 25 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9A 15 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 65 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 9C 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 33 00 00 00 F4 03 04 00 44 4C 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AC 70 00 00 35 04 06 00 60 9F D4 E6 00 00 EE [09:11:29]Write i2c OK [09:11:29]MH_I2C_Read... [09:11:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:30]Read from MH i2c: E2 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: E2 03 00 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: E2 03 00 71 25 00 90 00 0A [09:11:30]RAPDU: 90 00 [09:11:30]wFMCommunicate OK [09:11:30]wFMCommunicate request_size=7 [09:11:30]MH_SAM_APDU [09:11:30]CAPDU: 80 0D 02 02 02 D3 E7 [09:11:30]Write to MH i2c: E2 0A 00 72 25 80 0D 02 02 02 00 D3 E7 00 00 CF [09:11:30]Write i2c OK [09:11:30]MH_I2C_Read... [09:11:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:30]Read from MH i2c: E2 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: E2 03 00 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: E2 03 00 72 25 00 90 00 0B [09:11:30]RAPDU: 90 00 [09:11:30]wFMCommunicate OK [09:11:30]wFMCommunicate request_size=4 [09:11:30]MH_SAM_APDU [09:11:30]CAPDU: 80 0D 03 02 [09:11:30]Write to MH i2c: E2 08 00 73 25 80 0D 03 02 00 00 00 00 13 [09:11:30]Write i2c OK [09:11:30]MH_I2C_Read... [09:11:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:30]Read from MH i2c: E2 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: E2 0B 00 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: E2 0B 00 73 25 00 C2 60 1C 73 39 95 1E 90 90 00 41 [09:11:30]RAPDU: C2 60 1C 73 39 95 1E 90 90 00 [09:11:30]wFMCommunicate OK [09:11:30]SAM_PROTO_SignData done [09:11:30]FM_MakeSignedData done [09:11:30]CreateOFDProtocolMessage [09:11:30]wFMCommunicate request_size=4 [09:11:30]MH_SAM_APDU [09:11:30]CAPDU: 80 11 00 00 [09:11:30]Write to MH i2c: E2 08 00 74 25 80 11 00 00 00 00 00 00 13 [09:11:30]Write i2c OK [09:11:30]MH_I2C_Read... [09:11:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:30]Read from MH i2c: E2 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: E2 17 00 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: E2 17 00 74 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 62 [09:11:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:11:30]wFMCommunicate OK [09:11:30]CreateOFDProtocolMessage done [09:11:30]OFDSenderStorePacket 28844 [09:11:30]StoreOFDPacket docnum=28844 [09:11:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 4D 55 04 01 3C FA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9A 15 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 65 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 9C 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 33 00 00 00 F4 03 04 00 44 4C 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AC 70 00 00 35 04 06 00 60 9F D4 E6 D3 E7 C2 60 1C 73 39 95 1E 90 [09:11:30]CheckFolder [09:11:30]dirname=/storage/ofd_packets [09:11:30]CheckFolder done [09:11:30]ProducePacketName [09:11:30]name=ofd_packets/00028844 [09:11:30]NVStorageSaveData ofd_packets/00028844 [09:11:30]File name is /storage/ofd_packets/00028844 [09:11:30]Write 298 bytes [09:11:30]NVStorageSaveData done [09:11:30]OFDSenderStorePacket done [09:11:30]KKMCreateOFDPacket done [09:11:30]NVStorageSaveData kkm_last_timestamp [09:11:30]File name is /storage/kkm_last_timestamp [09:11:30]Write 4 bytes [09:11:30]NVStorageSaveData done [09:11:30]ExternCall_PrintAddStr [09:11:30]wPrintStart [09:11:30]Write to MH i2c: 01 00 00 75 25 9A [09:11:30]Write i2c OK [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: 01 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: 01 07 00 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: 01 07 00 75 25 00 00 00 00 00 FF 0F AF [09:11:30]RasterBufferAndPrint [09:11:30]line Счет N : (1)347194 [09:11:30]line ИНН: 02508201610067 [09:11:30]line Контрольно-Кассовый Чек [09:11:30]line ПРОДАЖА [09:11:30]line ТРК (МРК, ГНК) : 21 [09:11:30]line Товар: 2710194210 [09:11:30]line ДТ-К-5 [09:11:30]line 5.530 * 72.40 [09:11:30]line = 400.37 [09:11:30]line НДС 12% НСП 1% [09:11:30]line > о реализуемом товаре [09:11:30]line ОКРУГЛЕНИЕ: -0.37 [09:11:30]line ИТОГО: 400.00 [09:11:30]line Внесено: 400.00 [09:11:30]line СДАЧА: 0.00 [09:11:30]line НСП 1% : 3.54 [09:11:30]line НДС 12% : 42.52 [09:11:30]line Наличными: 400.00 [09:11:30]line Безнал.: 0.00 [09:11:30]line Место: АЗС № 108 "Партнер Нефть" [09:11:30]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:11:30]line СНО: Общий режим [09:11:30]line Чек 51 13.04.2024 09:11 [09:11:30]line Смена: 115 ФФД: 1.0 [09:11:30]line ЗНМ: 0300000027 [09:11:30]line РНМ: 0000138879044617 [09:11:30]line Версия ККМ: 001 [09:11:30]line ФМ: 0000000000963154 [09:11:30]line ФД: 28844 [09:11:30]line ФПД: 106239587963879 [09:11:30]line 1/tax-web-control/client/api/v1/ticket?date=20240413T091132&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28844&fm=106239587963879&tin=02508201610067®Number=0000138879044617&sum=40000 [09:11:30]OFD Sender: Processing packet 28844 [packets to send 8, broken 7] [09:11:30]ProducePacketName [09:11:30]name=ofd_packets/00028844 [09:11:30]OFD Sender: To server: pG, [09:11:30]CommunicateWithHost lk.salyk.kg:30040 [09:11:30]ConnectInit lk.salyk.kg [09:11:30]written 0, free lines is 4095 [09:11:30]Connected sock=10 [09:11: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 31 35 34 0C 01 00 00 4D 55 04 01 3C FA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9A 15 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 65 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 9C 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 33 00 00 00 F4 03 04 00 44 4C 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AC 70 00 00 35 04 06 00 60 9F D4 E6 D3 E7 C2 60 1C 73 39 95 1E 90 [09:11:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 72 E8 47 00 1E C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AC 70 00 00 F4 03 04 00 EC F6 19 66 B6 04 01 00 00 5D BA 20 67 9E DD 40 EA [09:11:30]CommunicateWithHost err = 0 [09:11:30]CheckOFDResponse [09:11:30]1017 (14) - 77093643461234 [09:11:30]1041 (16) - 0000000000963154 [09:11:30]1040 (4) - 28844 [09:11:30]1012 (4) - 13.04.2024 03:07 [09:11:30]1206 (1) - 0 [09:11:30]OFD Sender: Remove packet 28844 [09:11:30]ProducePacketName [09:11:30]name=ofd_packets/00028844 [09:11:30]NVStorageDeleteData [09:11:31]Write to MH i2c: 01 00 00 9F 25 C4 [09:11:31]Write i2c OK [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: 01 [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: 01 07 00 [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: 01 07 00 9F 25 00 00 00 00 00 BC 0C 93 [09:11:31]RasterBufferAndPrint [09:11:31]line [09:11:31]line [09:11:31]line [09:11:31]line [09:11:31]line [09:11:31]written 0, free lines is 3264 [09:11:31]MH_Cut [09:11:31]Write to MH i2c: D1 01 00 A6 25 01 9D [09:11:31]Write i2c OK [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: D1 [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: D1 01 00 [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: D1 01 00 A6 25 00 9C [09:11:31]Write to MH i2c: 01 00 00 A7 25 CC [09:11:31]Write i2c OK [09:11:31]MH_I2C_Read... [09:11:31]OFD Sender: No OFD packet to send [09:11:31]*** Cut start [09:11:31]*** Partial cut [09:11:31]*** CUTSNS_PIN = 1 [09:11:31]*** CUTSNS_PIN = 0 [09:11:32]*** Brake cut motor [09:11:32]Read from MH i2c: 01 [09:11:32]MH_I2C_Read... [09:11:32]*** Stop cut motor [09:11:32]*** Cut end [09:11:32]Read from MH i2c: 01 07 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: 01 07 00 A7 25 00 00 00 00 00 FF 0F E1 [09:11:32]process_action close_receipt done [09:11:32]requested_data is exist [09:11:32]produce_requested_data [09:11:32]requested_item fm.sn is exist - process it [09:11:32]wFMCommunicate request_size=4 [09:11:32]MH_SAM_APDU [09:11:32]CAPDU: 80 11 00 00 [09:11:32]Write to MH i2c: E2 08 00 A8 25 80 11 00 00 00 00 00 00 47 [09:11:32]Write i2c OK [09:11:32]MH_I2C_Read... [09:11:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:32]Read from MH i2c: E2 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 17 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 17 00 A8 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 96 [09:11:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:11:32]wFMCommunicate OK [09:11:32]requested_item fd.num is exist - process it [09:11:32]SAM_PROTO_GetFieldsCounters [09:11:32]wFMCommunicate request_size=4 [09:11:32]MH_SAM_APDU [09:11:32]CAPDU: 80 13 00 00 [09:11:32]Write to MH i2c: E2 08 00 A9 25 80 13 00 00 00 00 00 00 4A [09:11:32]Write i2c OK [09:11:32]MH_I2C_Read... [09:11:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:32]Read from MH i2c: E2 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 62 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 62 00 A9 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AC 70 00 00 0E 04 04 00 73 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 B0 [09:11: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AC 70 00 00 0E 04 04 00 73 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 [09:11:32]wFMCommunicate OK [09:11:32]SAM_PROTO_GetFieldsCounters done [09:11:32]requested_item shift.num is exist - process it [09:11:32]requested_item shift.opened is exist - process it [09:11:32]req_shift_opened [09:11:32]FM_GetShiftState [09:11:32]SAM_PROTO_GetShiftState [09:11:32]wFMCommunicate request_size=4 [09:11:32]MH_SAM_APDU [09:11:32]CAPDU: 80 13 01 00 [09:11:32]Write to MH i2c: E2 08 00 AA 25 80 13 01 00 00 00 00 00 4C [09:11:32]Write i2c OK [09:11:32]MH_I2C_Read... [09:11:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:32]Read from MH i2c: E2 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 0E 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 0E 00 AA 25 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 65 [09:11:32]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:11:32]wFMCommunicate OK [09:11:32]SAM_PROTO_GetShiftState done [09:11:32]FM_GetShiftState done [09:11:32]req_shift_opened done [09:11:32]requested_item shift.open_date is exist - process it [09:11:32]req_shift_open_date [09:11:32]req_shift_open_date done [09:11:32]produce_requested_data done [09:11:32]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28844,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [09:11:32]process_action_free close_receipt [09:11:32]json_value_free [09:11:32]json_value_free done [09:11:32]process_json_proto returns [09:11:32]Send response to host [09:11:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28844,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [09:11:32]free response buf [09:11:32]execute_script done [09:11:32]execute_script returns [09:11:32]free content buf [09:11:32]Sock 7.Close socket [09:11:32]Sock 7.Thread stoped [09:11:36]OFD Sender: No OFD packet to send [09:11:41]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:21]OFD Sender: No OFD packet to send [09:13:26]OFD Sender: No OFD packet to send [09:13:31]OFD Sender: No OFD packet to send [09:13:36]OFD Sender: No OFD packet to send [09:13:41]OFD Sender: No OFD packet to send [09:13:46]OFD Sender: No OFD packet to send [09:13:51]OFD Sender: No OFD packet to send [09:13:56]OFD Sender: No OFD packet to send [09:14:01]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:11]OFD Sender: No OFD packet to send [09:14:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14:26]OFD Sender: No OFD packet to send [09:14:31]OFD Sender: No OFD packet to send [09:14:36]OFD Sender: No OFD packet to send [09:14:41]OFD Sender: No OFD packet to send [09:14:46]OFD Sender: No OFD packet to send [09:14:51]OFD Sender: No OFD packet to send [09:14:56]OFD Sender: No OFD packet to send [09:15:01]OFD Sender: No OFD packet to send [09:15:06]OFD Sender: No OFD packet to send [09:15:11]OFD Sender: No OFD packet to send [09:15:16]OFD Sender: No OFD packet to send [09:15:21]OFD Sender: No OFD packet to send [09:15:26]OFD Sender: No OFD packet to send [09:15:31]OFD Sender: No OFD packet to send [09:15:36]OFD Sender: No OFD packet to send [09:15:41]OFD Sender: No OFD packet to send [09:15:46]OFD Sender: No OFD packet to send [09:15:51]OFD Sender: No OFD packet to send [09:15:56]OFD Sender: No OFD packet to send [09:16:01]OFD Sender: No OFD packet to send [09:16:06]OFD Sender: No OFD packet to send [09:16:11]OFD Sender: No OFD packet to send [09:16:16]OFD Sender: No OFD packet to send [09:16:21]OFD Sender: No OFD packet to send [09:16:26]OFD Sender: No OFD packet to send [09:16:31]OFD Sender: No OFD packet to send [09:16:36]OFD Sender: No OFD packet to send [09:16:41]OFD Sender: No OFD packet to send [09:16:46]OFD Sender: No OFD packet to send [09:16:51]OFD Sender: No OFD packet to send [09:16:56]OFD Sender: No OFD packet to send [09:17:01]OFD Sender: No OFD packet to send [09:17:02]accept exits with 9 [09:17:02]New connection [09:17:02]New thread 3066785124 created [09:17:02]Thread 3066928484 joined [09:17:02]Waiting for new connection... [09:17:02] Sock 9.Parse request [09:17:02]Sock 9.Check first char [09:17:02]Sock 9.First char is OK [09:17:02]request: POST /json_proto HTTP/1.0 [09:17:02]Method: POST [09:17:02]URL: /json_proto [09:17:02]Method is POST - this is cgi request [09:17:02]url: /json_proto [09:17:02]query_string will be loaded in cgi processing [09:17:02]execute_cgi json_proto POST (null) [09:17:02]execute_cgi path=json_proto method=POST [09:17:02]POST find Content-Length [09:17:02]Host: 172.17.33.3:8080 [09:17:02]Content-Length: 663 [09:17:02]Content-Type: application/json [09:17:02] [09:17:02]POST finish read [09:17:02]Found Content-Length = 663 [09:17:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347195", "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" : 72.50, "quantity" : 20.000, "sum" : 1450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "payments": [ { "type": 0, "sum" : 1450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:02]execute_script... [09: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)347195", "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" : 72.50, "quantity" : 20.000, "sum" : 1450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "payments": [ { "type": 0, "sum" : 1450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:02]POST & json_proto [09:17:02]process_json_proto [09:17:02]json parsed OK: [09:17:02]protocol is kg_v1.0 [09:17:02]action value=close_receipt [09:17:02]process_action close_receipt [09:17:02]cmd_close_receipt [09:17:02]MH_GetDate [09:17:02]Write to MH i2c: F0 00 00 AB 25 BF [09:17:02]Write i2c OK [09:17:02]MH_I2C_Read... [09:17:02]Read from MH i2c: F0 [09:17:02]MH_I2C_Read... [09:17:02]Read from MH i2c: F0 09 00 [09:17:02]MH_I2C_Read... [09:17:02]Read from MH i2c: F0 09 00 AB 25 00 91 4D 1A 66 23 5B 8F 65 98 [09:17:02]GetLastDocTimeStamp 1712999492 [09:17:02]current date 1712999825 [09:17:02]FM_GetShiftState [09:17:02]SAM_PROTO_GetShiftState [09:17:02]wFMCommunicate request_size=4 [09:17:02]MH_SAM_APDU [09:17:02]CAPDU: 80 13 01 00 [09:17:02]Write to MH i2c: E2 08 00 AC 25 80 13 01 00 00 00 00 00 4E [09:17:02]Write i2c OK [09:17:02]MH_I2C_Read... [09:17:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:02]Read from MH i2c: E2 [09:17:02]MH_I2C_Read... [09:17:02]Read from MH i2c: E2 0E 00 [09:17:02]MH_I2C_Read... [09:17:02]Read from MH i2c: E2 0E 00 AC 25 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 67 [09:17:02]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:17:02]wFMCommunicate OK [09:17:02]SAM_PROTO_GetShiftState done [09:17:02]FM_GetShiftState done [09:17:02]opened in 1712967615 [09:17:02]opened+sec_in_day 1713054015 [09:17:02]quantity*price = 145000 [09:17:02]sum+1 = 145001 [09:17:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1450.00 Внесено: 5000.00 СДАЧА: 3550.00 НСП 1% : 12.83 НДС 12% : 153.98 Наличными: 1450.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 52 13.04.2024 09:17 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28845 ФПД: 253055524013904 1/tax-web-control/client/api/v1/ticket?date=20240413T091706&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28845&fm=253055524013904&tin=02508201610067®Number=0000138879044617&sum=145000 [09:17:03]StoreToDocumentArchive [09:17:03]shift 115 fd 28845 [09:17:03]save to /storage/0115/doc_00028845 [09:17:03]save last doc name /storage/0115/doc_00028845 to /storage/kkm_last_doc_name [09:17:03]save OK [09:17:03]Clear old archive folders... [09:17:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:03]tlvbuf is 01208620 [09:17:03]SAM_PROTO_ClearQueue [09:17:03]wFMCommunicate request_size=4 [09:17:03]MH_SAM_APDU [09:17:03]CAPDU: 80 09 00 00 [09:17:03]Write to MH i2c: E2 08 00 B9 25 80 09 00 00 00 00 00 00 50 [09:17:03]Write i2c OK [09:17:03]MH_I2C_Read... [09:17:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:03]Read from MH i2c: E2 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 03 00 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 03 00 B9 25 00 90 00 52 [09:17:03]RAPDU: 90 00 [09:17:03]wFMCommunicate OK [09:17:03]SAM_PROTO_ClearQueue done [09:17:03]KKMCreateOFDPacket [09:17:03]OFDProtocolAddRootSTLVToBuf [09:17:03]FM_MakeSignedData [09:17:03]FM_MakeSignedData [09:17:03]SAM_PROTO_SignData [09:17:03]wFMCommunicate request_size=4 [09:17:03]MH_SAM_APDU [09:17:03]CAPDU: 80 0D 01 02 [09:17:03]Write to MH i2c: E2 08 00 BA 25 80 0D 01 02 00 00 00 00 58 [09:17:03]Write i2c OK [09:17:03]MH_I2C_Read... [09:17:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:03]Read from MH i2c: E2 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 03 00 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 03 00 BA 25 00 90 00 53 [09:17:03]RAPDU: 90 00 [09:17:03]wFMCommunicate OK [09:17:03]wFMCommunicate request_size=255 [09:17:03]MH_SAM_APDU [09: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 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 52 1C 00 00 00 00 13 04 06 00 68 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 3C 00 00 00 00 07 04 06 00 68 36 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 92 4D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AD 70 00 00 35 04 06 00 E6 [09:17:03]Write to MH i2c: E2 02 01 BB 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 68 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 3C 00 00 00 00 07 04 06 00 68 36 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 92 4D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AD 70 00 00 35 04 06 00 E6 00 00 B2 [09:17:03]Write i2c OK [09:17:03]MH_I2C_Read... [09:17:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:03]Read from MH i2c: E2 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 03 00 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 03 00 BB 25 00 90 00 54 [09:17:03]RAPDU: 90 00 [09:17:03]wFMCommunicate OK [09:17:03]wFMCommunicate request_size=10 [09:17:03]MH_SAM_APDU [09:17:03]CAPDU: 80 0D 02 02 05 27 14 9E 07 50 [09:17:03]Write to MH i2c: E2 0D 00 BC 25 80 0D 02 02 05 00 27 14 9E 07 50 00 00 95 [09:17:03]Write i2c OK [09:17:03]MH_I2C_Read... [09:17:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:03]Read from MH i2c: E2 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 03 00 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 03 00 BC 25 00 90 00 55 [09:17:03]RAPDU: 90 00 [09:17:03]wFMCommunicate OK [09:17:03]wFMCommunicate request_size=4 [09:17:03]MH_SAM_APDU [09:17:03]CAPDU: 80 0D 03 02 [09:17:03]Write to MH i2c: E2 08 00 BD 25 80 0D 03 02 00 00 00 00 5D [09:17:03]Write i2c OK [09:17:03]MH_I2C_Read... [09:17:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:03]Read from MH i2c: E2 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 0B 00 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 0B 00 BD 25 00 7F 56 1A 95 D6 F9 7E E0 90 00 0F [09:17:03]RAPDU: 7F 56 1A 95 D6 F9 7E E0 90 00 [09:17:03]wFMCommunicate OK [09:17:03]SAM_PROTO_SignData done [09:17:03]FM_MakeSignedData done [09:17:03]CreateOFDProtocolMessage [09:17:03]wFMCommunicate request_size=4 [09:17:03]MH_SAM_APDU [09:17:03]CAPDU: 80 11 00 00 [09:17:03]Write to MH i2c: E2 08 00 BE 25 80 11 00 00 00 00 00 00 5D [09:17:03]Write i2c OK [09:17:03]MH_I2C_Read... [09:17:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:03]Read from MH i2c: E2 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 17 00 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 17 00 BE 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AC [09:17:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:17:03]wFMCommunicate OK [09:17:03]CreateOFDProtocolMessage done [09:17:03]OFDSenderStorePacket 28845 [09:17:03]StoreOFDPacket docnum=28845 [09:17:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9F E8 07 01 E0 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 68 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 3C 00 00 00 00 07 04 06 00 68 36 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 92 4D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AD 70 00 00 35 04 06 00 E6 27 14 9E 07 50 7F 56 1A 95 D6 F9 7E E0 [09:17:03]CheckFolder [09:17:03]dirname=/storage/ofd_packets [09:17:03]CheckFolder done [09:17:03]ProducePacketName [09:17:03]name=ofd_packets/00028845 [09:17:03]NVStorageSaveData ofd_packets/00028845 [09:17:03]File name is /storage/ofd_packets/00028845 [09:17:03]Write 301 bytes [09:17:03]NVStorageSaveData done [09:17:03]OFDSenderStorePacket done [09:17:03]KKMCreateOFDPacket done [09:17:03]NVStorageSaveData kkm_last_timestamp [09:17:03]File name is /storage/kkm_last_timestamp [09:17:03]Write 4 bytes [09:17:03]NVStorageSaveData done [09:17:03]ExternCall_PrintAddStr [09:17:03]wPrintStart [09:17:03]Write to MH i2c: 01 00 00 BF 25 E4 [09:17:03]Write i2c OK [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: 01 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: 01 07 00 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: 01 07 00 BF 25 00 00 00 00 00 FF 0F F9 [09:17:03]RasterBufferAndPrint [09:17:03]line Счет N : (1)347195 [09:17:03]line ИНН: 02508201610067 [09:17:03]line Контрольно-Кассовый Чек [09:17:03]line ПРОДАЖА [09:17:03]line ТРК (МРК, ГНК) : 33 [09:17:03]line Товар: 2710124500 [09:17:03]line Аи-95-К-5 [09:17:03]line 20.000 * 72.50 [09:17:03]line = 1450.00 [09:17:03]line НДС 12% НСП 1% [09:17:03]line > о реализуемом товаре [09:17:03]line ИТОГО: 1450.00 [09:17:03]line Внесено: 5000.00 [09:17:03]line СДАЧА: 3550.00 [09:17:03]line НСП 1% : 12.83 [09:17:03]line НДС 12% : 153.98 [09:17:03]line Наличными: 1450.00 [09:17:03]line Безнал.: 0.00 [09:17:03]line Место: АЗС № 108 "Партнер Нефть" [09:17:03]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:17:03]line СНО: Общий режим [09:17:03]line Чек 52 13.04.2024 09:17 [09:17:03]line Смена: 115 ФФД: 1.0 [09:17:03]line ЗНМ: 0300000027 [09:17:03]line РНМ: 0000138879044617 [09:17:03]line Версия ККМ: 001 [09:17:03]line ФМ: 0000000000963154 [09:17:03]line ФД: 28845 [09:17:03]line ФПД: 253055524013904 [09:17:04]line 1/tax-web-control/client/api/v1/ticket?date=20240413T091706&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28845&fm=253055524013904&tin=02508201610067®Number=0000138879044617&sum=145000 [09:17:04]OFD Sender: Processing packet 28845 [packets to send 8, broken 7] [09:17:04]ProducePacketName [09:17:04]name=ofd_packets/00028845 [09:17:04]OFD Sender: To server: pG, [09:17:04]CommunicateWithHost lk.salyk.kg:30040 [09:17:04]ConnectInit lk.salyk.kg [09:17:04]written 0, free lines is 4095 [09:17:04]Connected sock=10 [09: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 31 35 34 0F 01 00 00 9F E8 07 01 E0 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 68 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 3C 00 00 00 00 07 04 06 00 68 36 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 92 4D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AD 70 00 00 35 04 06 00 E6 27 14 9E 07 50 7F 56 1A 95 D6 F9 7E E0 [09: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 31 35 34 4F 00 00 00 38 4C 47 00 D7 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 31 35 34 10 04 04 00 AD 70 00 00 F4 03 04 00 39 F8 19 66 B6 04 01 00 00 68 DB 60 96 0D 2E 5D 22 [09:17:04]CommunicateWithHost err = 0 [09:17:04]CheckOFDResponse [09:17:04]1017 (14) - 77093643461234 [09:17:04]1041 (16) - 0000000000963154 [09:17:04]1040 (4) - 28845 [09:17:04]1012 (4) - 13.04.2024 03:12 [09:17:04]1206 (1) - 0 [09:17:04]OFD Sender: Remove packet 28845 [09:17:04]ProducePacketName [09:17:04]name=ofd_packets/00028845 [09:17:04]NVStorageDeleteData [09:17:04]Write to MH i2c: 01 00 00 E8 25 0D [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: 01 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: 01 07 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: 01 07 00 E8 25 00 00 00 00 00 D9 0C F9 [09:17:04]RasterBufferAndPrint [09:17:04]line [09:17:04]line [09:17:04]line [09:17:04]line [09:17:04]line [09:17:04]written 0, free lines is 3295 [09:17:04]MH_Cut [09:17:04]Write to MH i2c: D1 01 00 EF 25 01 E6 [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: D1 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: D1 01 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: D1 01 00 EF 25 00 E5 [09:17:04]Write to MH i2c: 01 00 00 F0 25 15 [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]OFD Sender: No OFD packet to send [09:17:05]*** Cut start [09:17:05]*** Partial cut [09:17:05]*** CUTSNS_PIN = 1 [09:17:05]*** CUTSNS_PIN = 0 [09:17:05]*** Brake cut motor [09:17:05]Read from MH i2c: 01 [09:17:05]MH_I2C_Read... [09:17:05]*** Stop cut motor [09:17:05]*** Cut end [09:17:05]Read from MH i2c: 01 07 00 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: 01 07 00 F0 25 00 00 00 00 00 FF 0F 2A [09:17:05]process_action close_receipt done [09:17:05]requested_data is exist [09:17:05]produce_requested_data [09:17:05]requested_item fm.sn is exist - process it [09:17:05]wFMCommunicate request_size=4 [09:17:05]MH_SAM_APDU [09:17:05]CAPDU: 80 11 00 00 [09:17:05]Write to MH i2c: E2 08 00 F1 25 80 11 00 00 00 00 00 00 90 [09:17:05]Write i2c OK [09:17:05]MH_I2C_Read... [09:17:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:06]Read from MH i2c: E2 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 17 00 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 17 00 F1 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DF [09:17:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:17:06]wFMCommunicate OK [09:17:06]requested_item fd.num is exist - process it [09:17:06]SAM_PROTO_GetFieldsCounters [09:17:06]wFMCommunicate request_size=4 [09:17:06]MH_SAM_APDU [09:17:06]CAPDU: 80 13 00 00 [09:17:06]Write to MH i2c: E2 08 00 F2 25 80 13 00 00 00 00 00 00 93 [09:17:06]Write i2c OK [09:17:06]MH_I2C_Read... [09:17:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:06]Read from MH i2c: E2 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 62 00 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 62 00 F2 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AD 70 00 00 0E 04 04 00 73 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 FD [09: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AD 70 00 00 0E 04 04 00 73 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:17:06]wFMCommunicate OK [09:17:06]SAM_PROTO_GetFieldsCounters done [09:17:06]requested_item shift.num is exist - process it [09:17:06]requested_item shift.opened is exist - process it [09:17:06]req_shift_opened [09:17:06]FM_GetShiftState [09:17:06]SAM_PROTO_GetShiftState [09:17:06]wFMCommunicate request_size=4 [09:17:06]MH_SAM_APDU [09:17:06]CAPDU: 80 13 01 00 [09:17:06]Write to MH i2c: E2 08 00 F3 25 80 13 01 00 00 00 00 00 95 [09:17:06]Write i2c OK [09:17:06]MH_I2C_Read... [09:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:06]Read from MH i2c: E2 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 0E 00 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 0E 00 F3 25 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 AE [09:17:06]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:17:06]wFMCommunicate OK [09:17:06]SAM_PROTO_GetShiftState done [09:17:06]FM_GetShiftState done [09:17:06]req_shift_opened done [09:17:06]requested_item shift.open_date is exist - process it [09:17:06]req_shift_open_date [09:17:06]req_shift_open_date done [09:17:06]produce_requested_data done [09:17:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28845,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [09:17:06]process_action_free close_receipt [09:17:06]json_value_free [09:17:06]json_value_free done [09:17:06]process_json_proto returns [09:17:06]Send response to host [09:17:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28845,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [09:17:06]free response buf [09:17:06]execute_script done [09:17:06]execute_script returns [09:17:06]free content buf [09:17:06]Sock 9.Close socket [09:17:06]Sock 9.Thread stoped [09:17:09]OFD Sender: No OFD packet to send [09:17:14]OFD Sender: No OFD packet to send [09:17:19]OFD Sender: No OFD packet to send [09:17:24]OFD Sender: No OFD packet to send [09:17:29]OFD Sender: No OFD packet to send [09:17:34]OFD Sender: No OFD packet to send [09:17:39]OFD Sender: No OFD packet to send [09:17:44]OFD Sender: No OFD packet to send [09:17:49]OFD Sender: No OFD packet to send [09:17:54]OFD Sender: No OFD packet to send [09:17:59]OFD Sender: No OFD packet to send [09:18:04]OFD Sender: No OFD packet to send [09:18:09]OFD Sender: No OFD packet to send [09:18:14]OFD Sender: No OFD packet to send [09:18:19]OFD Sender: No OFD packet to send [09:18:24]OFD Sender: No OFD packet to send [09:18:29]OFD Sender: No OFD packet to send [09:18:34]OFD Sender: No OFD packet to send [09:18:39]OFD Sender: No OFD packet to send [09:18:44]OFD Sender: No OFD packet to send [09:18:49]OFD Sender: No OFD packet to send [09:18:54]OFD Sender: No OFD packet to send [09:18:59]OFD Sender: No OFD packet to send [09:19:04]OFD Sender: No OFD packet to send [09:19:09]OFD Sender: No OFD packet to send [09:19:14]OFD Sender: No OFD packet to send [09:19:19]OFD Sender: No OFD packet to send [09:19:24]OFD Sender: No OFD packet to send [09:19:29]OFD Sender: No OFD packet to send [09:19:34]OFD Sender: No OFD packet to send [09:19:39]OFD Sender: No OFD packet to send [09:19:44]OFD Sender: No OFD packet to send [09:19:49]OFD Sender: No OFD packet to send [09:19:54]OFD Sender: No OFD packet to send [09:19:59]OFD Sender: No OFD packet to send [09:20:04]OFD Sender: No OFD packet to send [09:20:10]OFD Sender: No OFD packet to send [09:20:15]OFD Sender: No OFD packet to send [09:20:20]OFD Sender: No OFD packet to send [09:20:25]OFD Sender: No OFD packet to send [09:20:30]OFD Sender: No OFD packet to send [09:20:35]OFD Sender: No OFD packet to send [09:20:40]OFD Sender: No OFD packet to send [09:20:45]OFD Sender: No OFD packet to send [09:20:50]OFD Sender: No OFD packet to send [09:20:55]OFD Sender: No OFD packet to send [09:21:00]OFD Sender: No OFD packet to send [09:21:05]OFD Sender: No OFD packet to send [09:21:10]OFD Sender: No OFD packet to send [09:21:15]OFD Sender: No OFD packet to send [09:21:20]OFD Sender: No OFD packet to send [09:21:25]OFD Sender: No OFD packet to send [09:21:30]OFD Sender: No OFD packet to send [09:21:35]OFD Sender: No OFD packet to send [09:21:40]OFD Sender: No OFD packet to send [09:21:43]accept exits with 7 [09:21:43]New connection [09:21:43]New thread 3066928484 created [09:21:43]Thread 3066785124 joined [09:21:43]Waiting for new connection... [09:21:43] Sock 7.Parse request [09:21:43]Sock 7.Check first char [09:21:43]Sock 7.First char is OK [09:21:43]request: POST /json_proto HTTP/1.0 [09:21:43]Method: POST [09:21:43]URL: /json_proto [09:21:43]Method is POST - this is cgi request [09:21:43]url: /json_proto [09:21:43]query_string will be loaded in cgi processing [09:21:43]execute_cgi json_proto POST (null) [09:21:43]execute_cgi path=json_proto method=POST [09:21:43]POST find Content-Length [09:21:43]Host: 172.17.33.3:8080 [09:21:43]Content-Length: 819 [09:21:43]Content-Type: application/json [09:21:43] [09:21:43]POST finish read [09:21:43]Found Content-Length = 819 [09:21:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 35.000, "sum" : 2250.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2250.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:43]execute_script... [09:21: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)347196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 35.000, "sum" : 2250.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2250.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:43]POST & json_proto [09:21:43]process_json_proto [09:21:43]json parsed OK: [09:21:43]protocol is kg_v1.0 [09:21:43]action value=close_receipt [09:21:43]process_action close_receipt [09:21:43]cmd_close_receipt [09:21:43]MH_GetDate [09:21:43]Write to MH i2c: F0 00 00 F4 25 08 [09:21:43]Write i2c OK [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: F0 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: F0 09 00 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: F0 09 00 F4 25 00 AB 4E 1A 66 23 5B 8F 65 FC [09:21:43]GetLastDocTimeStamp 1712999826 [09:21:43]current date 1713000107 [09:21:43]FM_GetShiftState [09:21:43]SAM_PROTO_GetShiftState [09:21:43]wFMCommunicate request_size=4 [09:21:43]MH_SAM_APDU [09:21:43]CAPDU: 80 13 01 00 [09:21:43]Write to MH i2c: E2 08 00 F5 25 80 13 01 00 00 00 00 00 97 [09:21:43]Write i2c OK [09:21:43]MH_I2C_Read... [09:21:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:43]Read from MH i2c: E2 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 0E 00 [09:21:43]MH_I2C_Read... [09:21:43]Read from MH i2c: E2 0E 00 F5 25 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 B0 [09:21:43]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:21:43]wFMCommunicate OK [09:21:43]SAM_PROTO_GetShiftState done [09:21:43]FM_GetShiftState done [09:21:43]opened in 1712967615 [09:21:43]opened+sec_in_day 1713054015 [09:21:43]quantity*price = 225050 [09:21:43]sum+1 = 225051 [09:21:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2250.50 НСП 1% : 19.92 НДС 12% : 238.99 Наличными: 0.00 Безнал.: 2250.50 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 53 13.04.2024 09:21 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 28846 ФПД: 105558691309624 1/tax-web-control/client/api/v1/ticket?date=20240413T092147&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28846&fm=105558691309624&tin=02508201610067®Number=0000138879044617&sum=225050 [09:21:44]StoreToDocumentArchive [09:21:44]shift 115 fd 28846 [09:21:44]save to /storage/0115/doc_00028846 [09:21:44]save last doc name /storage/0115/doc_00028846 to /storage/kkm_last_doc_name [09:21:44]save OK [09:21:44]Clear old archive folders... [09:21:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:21:44]tlvbuf is 01224AE0 [09:21:44]SAM_PROTO_ClearQueue [09:21:44]wFMCommunicate request_size=4 [09:21:44]MH_SAM_APDU [09:21:44]CAPDU: 80 09 00 00 [09:21:44]Write to MH i2c: E2 08 00 02 26 80 09 00 00 00 00 00 00 9A [09:21:44]Write i2c OK [09:21:44]MH_I2C_Read... [09:21:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:44]Read from MH i2c: E2 [09:21:44]MH_I2C_Read... [09:21:44]Read from MH i2c: E2 03 00 [09:21:44]MH_I2C_Read... [09:21:44]Read from MH i2c: E2 03 00 02 26 00 90 00 9C [09:21:44]RAPDU: 90 00 [09:21:44]wFMCommunicate OK [09:21:44]SAM_PROTO_ClearQueue done [09:21:44]KKMCreateOFDPacket [09:21:44]OFDProtocolAddRootSTLVToBuf [09:21:44]FM_MakeSignedData [09:21:44]FM_MakeSignedData [09:21:44]SAM_PROTO_SignData [09:21:44]wFMCommunicate request_size=4 [09:21:44]MH_SAM_APDU [09:21:44]CAPDU: 80 0D 01 02 [09:21:44]Write to MH i2c: E2 08 00 03 26 80 0D 01 02 00 00 00 00 A2 [09:21:44]Write i2c OK [09:21:44]MH_I2C_Read... [09:21:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:44]Read from MH i2c: E2 [09:21:44]MH_I2C_Read... [09:21:44]Read from MH i2c: E2 03 00 [09:21:44]MH_I2C_Read... [09:21:44]Read from MH i2c: E2 03 00 03 26 00 90 00 9D [09:21:44]RAPDU: 90 00 [09:21:44]wFMCommunicate OK [09:21:44]wFMCommunicate request_size=255 [09:21:44]MH_SAM_APDU [09:21: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 B8 88 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 1A 6F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1A 6F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 5D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1A 6F 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 AB 4E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AE 70 00 00 35 04 06 00 60 [09:21:44]Write to MH i2c: E2 02 01 04 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 1A 6F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1A 6F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 5D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1A 6F 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 AB 4E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AE 70 00 00 35 04 06 00 60 00 00 0A [09:21:44]Write i2c OK [09:21:44]MH_I2C_Read... [09:21:45]OFD Sender: No OFD packet to send [09:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:45]Read from MH i2c: E2 [09:21:45]MH_I2C_Read... [09:21:45]Read from MH i2c: E2 03 00 [09:21:45]MH_I2C_Read... [09:21:45]Read from MH i2c: E2 03 00 04 26 00 90 00 9E [09:21:45]RAPDU: 90 00 [09:21:45]wFMCommunicate OK [09:21:45]wFMCommunicate request_size=10 [09:21:45]MH_SAM_APDU [09:21:45]CAPDU: 80 0D 02 02 05 01 4C 4C 68 38 [09:21:45]Write to MH i2c: E2 0D 00 05 26 80 0D 02 02 05 00 01 4C 4C 68 38 00 00 E8 [09:21:45]Write i2c OK [09:21:45]MH_I2C_Read... [09:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:45]Read from MH i2c: E2 [09:21:45]MH_I2C_Read... [09:21:45]Read from MH i2c: E2 03 00 [09:21:45]MH_I2C_Read... [09:21:45]Read from MH i2c: E2 03 00 05 26 00 90 00 9F [09:21:45]RAPDU: 90 00 [09:21:45]wFMCommunicate OK [09:21:45]wFMCommunicate request_size=4 [09:21:45]MH_SAM_APDU [09:21:45]CAPDU: 80 0D 03 02 [09:21:45]Write to MH i2c: E2 08 00 06 26 80 0D 03 02 00 00 00 00 A7 [09:21:45]Write i2c OK [09:21:45]MH_I2C_Read... [09:21:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:45]Read from MH i2c: E2 [09:21:45]MH_I2C_Read... [09:21:45]Read from MH i2c: E2 0B 00 [09:21:45]MH_I2C_Read... [09:21:45]Read from MH i2c: E2 0B 00 06 26 00 6C E2 D9 BE C0 58 F6 0E 90 00 A9 [09:21:45]RAPDU: 6C E2 D9 BE C0 58 F6 0E 90 00 [09:21:45]wFMCommunicate OK [09:21:45]SAM_PROTO_SignData done [09:21:45]FM_MakeSignedData done [09:21:45]CreateOFDProtocolMessage [09:21:45]wFMCommunicate request_size=4 [09:21:45]MH_SAM_APDU [09:21:45]CAPDU: 80 11 00 00 [09:21:45]Write to MH i2c: E2 08 00 07 26 80 11 00 00 00 00 00 00 A7 [09:21:45]Write i2c OK [09:21:45]MH_I2C_Read... [09:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:45]Read from MH i2c: E2 [09:21:45]MH_I2C_Read... [09:21:45]Read from MH i2c: E2 17 00 [09:21:45]MH_I2C_Read... [09:21:45]Read from MH i2c: E2 17 00 07 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F6 [09:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:21:45]wFMCommunicate OK [09:21:45]CreateOFDProtocolMessage done [09:21:45]OFDSenderStorePacket 28846 [09:21:45]StoreOFDPacket docnum=28846 [09:21:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 60 81 07 01 48 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 88 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 1A 6F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1A 6F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 5D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1A 6F 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 AB 4E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AE 70 00 00 35 04 06 00 60 01 4C 4C 68 38 6C E2 D9 BE C0 58 F6 0E [09:21:45]CheckFolder [09:21:45]dirname=/storage/ofd_packets [09:21:45]CheckFolder done [09:21:45]ProducePacketName [09:21:45]name=ofd_packets/00028846 [09:21:45]NVStorageSaveData ofd_packets/00028846 [09:21:45]File name is /storage/ofd_packets/00028846 [09:21:45]Write 301 bytes [09:21:45]NVStorageSaveData done [09:21:45]OFDSenderStorePacket done [09:21:45]KKMCreateOFDPacket done [09:21:45]NVStorageSaveData kkm_last_timestamp [09:21:45]File name is /storage/kkm_last_timestamp [09:21:45]Write 4 bytes [09:21:45]NVStorageSaveData done [09:21:45]ExternCall_PrintAddStr [09:21:45]wPrintStart [09:21:45]Write to MH i2c: 01 00 00 08 26 2E [09:21:45]Write i2c OK [09:21:45]MH_I2C_Read... [09:21:45]Read from MH i2c: 01 [09:21:45]MH_I2C_Read... [09:21:45]Read from MH i2c: 01 07 00 [09:21:45]MH_I2C_Read... [09:21:45]Read from MH i2c: 01 07 00 08 26 00 00 00 00 00 FF 0F 43 [09:21:45]RasterBufferAndPrint [09:21:45]line Счет N : (1)347196 [09:21:45]line ИНН: 02508201610067 [09:21:45]line Контрольно-Кассовый Чек [09:21:45]line ПРОДАЖА [09:21:45]line ТРК (МРК, ГНК) : 53 [09:21:45]line Товар: 2710124130 [09:21:45]line Аи-92-К-5 [09:21:45]line 35.000 * 64.30 [09:21:45]line = 2250.50 [09:21:45]line НДС 12% НСП 1% [09:21:45]line > о реализуемом товаре [09:21:45]line ИТОГО: 2250.50 [09:21:45]line НСП 1% : 19.92 [09:21:45]line НДС 12% : 238.99 [09:21:45]line Наличными: 0.00 [09:21:45]line Безнал.: 2250.50 [09:21:45]line Место: АЗС № 108 "Партнер Нефть" [09:21:45]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:21:45]line СНО: Общий режим [09:21:45]line Чек 53 13.04.2024 09:21 [09:21:45]line Смена: 115 ФФД: 1.0 [09:21:45]line ЗНМ: 0300000027 [09:21:45]line РНМ: 0000138879044617 [09:21:45]line Версия ККМ: 001 [09:21:45]line Платежная система: Бакай Банк [09:21:45]line ФМ: 0000000000963154 [09:21:45]line ФД: 28846 [09:21:45]line ФПД: 105558691309624 [09:21:45]line 1/tax-web-control/client/api/v1/ticket?date=20240413T092147&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28846&fm=105558691309624&tin=02508201610067®Number=0000138879044617&sum=225050 [09:21:45]OFD Sender: Processing packet 28846 [packets to send 8, broken 7] [09:21:45]ProducePacketName [09:21:45]name=ofd_packets/00028846 [09:21:45]OFD Sender: To server: pG, [09:21:45]CommunicateWithHost lk.salyk.kg:30040 [09:21:45]ConnectInit lk.salyk.kg [09:21:45]written 0, free lines is 4095 [09:21:45]Connected sock=10 [09:21: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 31 35 34 0F 01 00 00 60 81 07 01 48 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 88 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 1A 6F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1A 6F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C8 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 5D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1A 6F 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 AB 4E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AE 70 00 00 35 04 06 00 60 01 4C 4C 68 38 6C E2 D9 BE C0 58 F6 0E [09:21:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 12 63 47 00 65 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 31 35 34 10 04 04 00 AE 70 00 00 F4 03 04 00 53 F9 19 66 B6 04 01 00 00 39 40 63 1E 08 06 68 58 [09:21:45]CommunicateWithHost err = 0 [09:21:45]CheckOFDResponse [09:21:45]1017 (14) - 77093643461234 [09:21:45]1041 (16) - 0000000000963154 [09:21:45]1040 (4) - 28846 [09:21:45]1012 (4) - 13.04.2024 03:17 [09:21:45]1206 (1) - 0 [09:21:45]OFD Sender: Remove packet 28846 [09:21:45]ProducePacketName [09:21:45]name=ofd_packets/00028846 [09:21:45]NVStorageDeleteData [09:21:46]Write to MH i2c: 01 00 00 31 26 57 [09:21:46]Write i2c OK [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: 01 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: 01 07 00 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: 01 07 00 31 26 00 00 00 00 00 DF 0C 49 [09:21:46]RasterBufferAndPrint [09:21:46]line [09:21:46]line [09:21:46]line [09:21:46]line [09:21:46]line [09:21:46]written 0, free lines is 3298 [09:21:46]MH_Cut [09:21:46]Write to MH i2c: D1 01 00 38 26 01 30 [09:21:46]Write i2c OK [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: D1 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: D1 01 00 [09:21:46]MH_I2C_Read... [09:21:46]Read from MH i2c: D1 01 00 38 26 00 2F [09:21:46]Write to MH i2c: 01 00 00 39 26 5F [09:21:46]Write i2c OK [09:21:46]MH_I2C_Read... [09:21:46]OFD Sender: No OFD packet to send [09:21:46]*** Cut start [09:21:46]*** Partial cut [09:21:46]*** CUTSNS_PIN = 1 [09:21:46]*** CUTSNS_PIN = 0 [09:21:47]*** Brake cut motor [09:21:47]Read from MH i2c: 01 [09:21:47]MH_I2C_Read... [09:21:47]*** Stop cut motor [09:21:47]*** Cut end [09:21:47]Read from MH i2c: 01 07 00 [09:21:47]MH_I2C_Read... [09:21:47]Read from MH i2c: 01 07 00 39 26 00 00 00 00 00 FF 0F 74 [09:21:47]process_action close_receipt done [09:21:47]requested_data is exist [09:21:47]produce_requested_data [09:21:47]requested_item fm.sn is exist - process it [09:21:47]wFMCommunicate request_size=4 [09:21:47]MH_SAM_APDU [09:21:47]CAPDU: 80 11 00 00 [09:21:47]Write to MH i2c: E2 08 00 3A 26 80 11 00 00 00 00 00 00 DA [09:21:47]Write i2c OK [09:21:47]MH_I2C_Read... [09:21:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:47]Read from MH i2c: E2 [09:21:47]MH_I2C_Read... [09:21:47]Read from MH i2c: E2 17 00 [09:21:47]MH_I2C_Read... [09:21:47]Read from MH i2c: E2 17 00 3A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 29 [09:21:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:21:47]wFMCommunicate OK [09:21:47]requested_item fd.num is exist - process it [09:21:47]SAM_PROTO_GetFieldsCounters [09:21:47]wFMCommunicate request_size=4 [09:21:47]MH_SAM_APDU [09:21:47]CAPDU: 80 13 00 00 [09:21:47]Write to MH i2c: E2 08 00 3B 26 80 13 00 00 00 00 00 00 DD [09:21:47]Write i2c OK [09:21:47]MH_I2C_Read... [09:21:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:47]Read from MH i2c: E2 [09:21:47]MH_I2C_Read... [09:21:47]Read from MH i2c: E2 62 00 [09:21:47]MH_I2C_Read... [09:21:47]Read from MH i2c: E2 62 00 3B 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AE 70 00 00 0E 04 04 00 73 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 4B [09:21: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AE 70 00 00 0E 04 04 00 73 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:21:47]wFMCommunicate OK [09:21:47]SAM_PROTO_GetFieldsCounters done [09:21:47]requested_item shift.num is exist - process it [09:21:47]requested_item shift.opened is exist - process it [09:21:47]req_shift_opened [09:21:47]FM_GetShiftState [09:21:47]SAM_PROTO_GetShiftState [09:21:47]wFMCommunicate request_size=4 [09:21:47]MH_SAM_APDU [09:21:47]CAPDU: 80 13 01 00 [09:21:47]Write to MH i2c: E2 08 00 3C 26 80 13 01 00 00 00 00 00 DF [09:21:47]Write i2c OK [09:21:47]MH_I2C_Read... [09:21:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:47]Read from MH i2c: E2 [09:21:47]MH_I2C_Read... [09:21:47]Read from MH i2c: E2 0E 00 [09:21:47]MH_I2C_Read... [09:21:47]Read from MH i2c: E2 0E 00 3C 26 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F8 [09:21:47]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:21:47]wFMCommunicate OK [09:21:47]SAM_PROTO_GetShiftState done [09:21:47]FM_GetShiftState done [09:21:47]req_shift_opened done [09:21:47]requested_item shift.open_date is exist - process it [09:21:47]req_shift_open_date [09:21:47]req_shift_open_date done [09:21:47]produce_requested_data done [09:21:47]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28846,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [09:21:47]process_action_free close_receipt [09:21:47]json_value_free [09:21:47]json_value_free done [09:21:47]process_json_proto returns [09:21:47]Send response to host [09:21:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28846,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [09:21:47]free response buf [09:21:47]execute_script done [09:21:47]execute_script returns [09:21:47]free content buf [09:21:47]Sock 7.Close socket [09:21:47]Sock 7.Thread stoped [09:21:51]OFD Sender: No OFD packet to send [09:21:56]OFD Sender: No OFD packet to send [09:22:01]OFD Sender: No OFD packet to send [09:22:06]OFD Sender: No OFD packet to send [09:22:11]OFD Sender: No OFD packet to send [09:22:16]OFD Sender: No OFD packet to send [09:22:21]OFD Sender: No OFD packet to send [09:22:26]OFD Sender: No OFD packet to send [09:22:31]OFD Sender: No OFD packet to send [09:22:36]OFD Sender: No OFD packet to send [09:22:41]OFD Sender: No OFD packet to send [09:22:46]OFD Sender: No OFD packet to send [09:22:51]OFD Sender: No OFD packet to send [09:22:56]OFD Sender: No OFD packet to send [09:23:01]OFD Sender: No OFD packet to send [09:23:06]OFD Sender: No OFD packet to send [09:23:11]OFD Sender: No OFD packet to send [09:23:16]OFD Sender: No OFD packet to send [09:23:21]OFD Sender: No OFD packet to send [09:23:26]OFD Sender: No OFD packet to send [09:23:31]OFD Sender: No OFD packet to send [09:23:36]OFD Sender: No OFD packet to send [09:23:41]OFD Sender: No OFD packet to send [09:23:46]OFD Sender: No OFD packet to send [09:23:51]OFD Sender: No OFD packet to send [09:23:56]OFD Sender: No OFD packet to send [09:24:01]OFD Sender: No OFD packet to send [09:24:06]OFD Sender: No OFD packet to send [09:24:11]OFD Sender: No OFD packet to send [09:24:16]OFD Sender: No OFD packet to send [09:24:21]OFD Sender: No OFD packet to send [09:24:26]OFD Sender: No OFD packet to send [09:24:31]OFD Sender: No OFD packet to send [09:24:36]OFD Sender: No OFD packet to send [09:24:41]OFD Sender: No OFD packet to send [09:24:46]OFD Sender: No OFD packet to send [09:24:51]OFD Sender: No OFD packet to send [09:24:56]OFD Sender: No OFD packet to send [09:25:01]OFD Sender: No OFD packet to send [09:25:06]OFD Sender: No OFD packet to send [09:25:11]OFD Sender: No OFD packet to send [09:25:16]OFD Sender: No OFD packet to send [09:25:21]OFD Sender: No OFD packet to send [09:25:26]OFD Sender: No OFD packet to send [09:25:31]OFD Sender: No OFD packet to send [09:25:36]OFD Sender: No OFD packet to send [09:25:41]OFD Sender: No OFD packet to send [09:25:46]OFD Sender: No OFD packet to send [09:25:51]OFD Sender: No OFD packet to send [09:25:56]OFD Sender: No OFD packet to send [09:26:01]OFD Sender: No OFD packet to send [09:26:06]OFD Sender: No OFD packet to send [09:26:11]OFD Sender: No OFD packet to send [09:26:16]OFD Sender: No OFD packet to send [09:26:21]OFD Sender: No OFD packet to send [09:26:26]OFD Sender: No OFD packet to send [09:26:31]OFD Sender: No OFD packet to send [09:26:36]OFD Sender: No OFD packet to send [09:26:41]OFD Sender: No OFD packet to send [09:26:46]OFD Sender: No OFD packet to send [09:26:51]OFD Sender: No OFD packet to send [09:26:56]OFD Sender: No OFD packet to send [09:27:01]OFD Sender: No OFD packet to send [09:27:06]OFD Sender: No OFD packet to send [09:27:11]OFD Sender: No OFD packet to send [09:27:16]OFD Sender: No OFD packet to send [09:27:21]OFD Sender: No OFD packet to send [09:27:26]OFD Sender: No OFD packet to send [09:27:31]OFD Sender: No OFD packet to send [09:27:36]OFD Sender: No OFD packet to send [09:27:41]OFD Sender: No OFD packet to send [09:27:46]OFD Sender: No OFD packet to send [09:27:51]OFD Sender: No OFD packet to send [09:27:56]OFD Sender: No OFD packet to send [09:28:01]OFD Sender: No OFD packet to send [09:28:06]OFD Sender: No OFD packet to send [09:28:11]OFD Sender: No OFD packet to send [09:28:16]OFD Sender: No OFD packet to send [09:28:21]OFD Sender: No OFD packet to send [09:28:23]accept exits with 9 [09:28:23]New connection [09:28:23]New thread 3066785124 created [09:28:23]Thread 3066928484 joined [09:28:23]Waiting for new connection... [09:28:23] Sock 9.Parse request [09:28:23]Sock 9.Check first char [09:28:23]Sock 9.First char is OK [09:28:23]request: POST /json_proto HTTP/1.0 [09:28:23]Method: POST [09:28:23]URL: /json_proto [09:28:23]Method is POST - this is cgi request [09:28:23]url: /json_proto [09:28:23]query_string will be loaded in cgi processing [09:28:23]execute_cgi json_proto POST (null) [09:28:23]execute_cgi path=json_proto method=POST [09:28:23]POST find Content-Length [09:28:23]Host: 172.17.33.3:8080 [09:28:23]Content-Length: 811 [09:28:23]Content-Type: application/json [09:28:23] [09:28:23]POST finish read [09:28:23]Found Content-Length = 811 [09:28:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 60.800, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:23]execute_script... [09:28: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)347198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 60.800, "sum" : 2000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:23]POST & json_proto [09:28:23]process_json_proto [09:28:23]json parsed OK: [09:28:23]protocol is kg_v1.0 [09:28:23]action value=close_receipt [09:28:23]process_action close_receipt [09:28:23]cmd_close_receipt [09:28:23]MH_GetDate [09:28:23]Write to MH i2c: F0 00 00 3D 26 52 [09:28:23]Write i2c OK [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: F0 [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: F0 09 00 [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: F0 09 00 3D 26 00 3B 50 1A 66 23 5B 8F 65 D8 [09:28:23]GetLastDocTimeStamp 1713000107 [09:28:23]current date 1713000507 [09:28:23]FM_GetShiftState [09:28:23]SAM_PROTO_GetShiftState [09:28:23]wFMCommunicate request_size=4 [09:28:23]MH_SAM_APDU [09:28:23]CAPDU: 80 13 01 00 [09:28:23]Write to MH i2c: E2 08 00 3E 26 80 13 01 00 00 00 00 00 E1 [09:28:23]Write i2c OK [09:28:23]MH_I2C_Read... [09:28:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:23]Read from MH i2c: E2 [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: E2 0E 00 [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: E2 0E 00 3E 26 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 FA [09:28:23]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:28:23]wFMCommunicate OK [09:28:23]SAM_PROTO_GetShiftState done [09:28:23]FM_GetShiftState done [09:28:23]opened in 1712967615 [09:28:23]opened+sec_in_day 1713054015 [09:28:23]quantity*price = 200032 [09:28:23]sum+1 = 200033 [09:28:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.32 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.32 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 54 13.04.2024 09:28 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28847 ФПД: 259108769305614 1/tax-web-control/client/api/v1/ticket?date=20240413T092827&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28847&fm=259108769305614&tin=02508201610067®Number=0000138879044617&sum=200032 [09:28:24]StoreToDocumentArchive [09:28:24]shift 115 fd 28847 [09:28:24]save to /storage/0115/doc_00028847 [09:28:24]save last doc name /storage/0115/doc_00028847 to /storage/kkm_last_doc_name [09:28:24]save OK [09:28:24]Clear old archive folders... [09:28:24]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:28:24]tlvbuf is B6DA22D0 [09:28:24]SAM_PROTO_ClearQueue [09:28:24]wFMCommunicate request_size=4 [09:28:24]MH_SAM_APDU [09:28:24]CAPDU: 80 09 00 00 [09:28:24]Write to MH i2c: E2 08 00 4B 26 80 09 00 00 00 00 00 00 E3 [09:28:24]Write i2c OK [09:28:24]MH_I2C_Read... [09:28:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:24]Read from MH i2c: E2 [09:28:24]MH_I2C_Read... [09:28:24]Read from MH i2c: E2 03 00 [09:28:24]MH_I2C_Read... [09:28:24]Read from MH i2c: E2 03 00 4B 26 00 90 00 E5 [09:28:24]RAPDU: 90 00 [09:28:24]wFMCommunicate OK [09:28:24]SAM_PROTO_ClearQueue done [09:28:24]KKMCreateOFDPacket [09:28:24]OFDProtocolAddRootSTLVToBuf [09:28:24]FM_MakeSignedData [09:28:24]FM_MakeSignedData [09:28:24]SAM_PROTO_SignData [09:28:24]wFMCommunicate request_size=4 [09:28:24]MH_SAM_APDU [09:28:24]CAPDU: 80 0D 01 02 [09:28:24]Write to MH i2c: E2 08 00 4C 26 80 0D 01 02 00 00 00 00 EB [09:28:24]Write i2c OK [09:28:24]MH_I2C_Read... [09:28:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:24]Read from MH i2c: E2 [09:28:24]MH_I2C_Read... [09:28:24]Read from MH i2c: E2 03 00 [09:28:24]MH_I2C_Read... [09:28:24]Read from MH i2c: E2 03 00 4C 26 00 90 00 E6 [09:28:24]RAPDU: 90 00 [09:28:24]wFMCommunicate OK [09:28:24]wFMCommunicate request_size=255 [09:28:24]MH_SAM_APDU [09:28: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 35 FF 03 08 00 03 80 ED 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 3B 50 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AF 70 00 00 35 04 06 00 EB A8 [09:28:24]Write to MH i2c: E2 02 01 4D 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 35 FF 03 08 00 03 80 ED 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 3B 50 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AF 70 00 00 35 04 06 00 EB A8 00 00 07 [09:28:24]Write i2c OK [09:28:24]MH_I2C_Read... [09:28:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:25]Read from MH i2c: E2 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: E2 03 00 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: E2 03 00 4D 26 00 90 00 E7 [09:28:25]RAPDU: 90 00 [09:28:25]wFMCommunicate OK [09:28:25]wFMCommunicate request_size=9 [09:28:25]MH_SAM_APDU [09:28:25]CAPDU: 80 0D 02 02 04 76 27 14 0E [09:28:25]Write to MH i2c: E2 0C 00 4E 26 80 0D 02 02 04 00 76 27 14 0E 00 00 B5 [09:28:25]Write i2c OK [09:28:25]MH_I2C_Read... [09:28:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:25]Read from MH i2c: E2 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: E2 03 00 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: E2 03 00 4E 26 00 90 00 E8 [09:28:25]RAPDU: 90 00 [09:28:25]wFMCommunicate OK [09:28:25]wFMCommunicate request_size=4 [09:28:25]MH_SAM_APDU [09:28:25]CAPDU: 80 0D 03 02 [09:28:25]Write to MH i2c: E2 08 00 4F 26 80 0D 03 02 00 00 00 00 F0 [09:28:25]Write i2c OK [09:28:25]MH_I2C_Read... [09:28:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:25]Read from MH i2c: E2 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: E2 0B 00 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: E2 0B 00 4F 26 00 43 FD 3F 60 D4 55 7F A1 90 00 19 [09:28:25]RAPDU: 43 FD 3F 60 D4 55 7F A1 90 00 [09:28:25]wFMCommunicate OK [09:28:25]SAM_PROTO_SignData done [09:28:25]FM_MakeSignedData done [09:28:25]CreateOFDProtocolMessage [09:28:25]wFMCommunicate request_size=4 [09:28:25]MH_SAM_APDU [09:28:25]CAPDU: 80 11 00 00 [09:28:25]Write to MH i2c: E2 08 00 50 26 80 11 00 00 00 00 00 00 F0 [09:28:25]Write i2c OK [09:28:25]MH_I2C_Read... [09:28:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:25]Read from MH i2c: E2 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: E2 17 00 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: E2 17 00 50 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3F [09:28:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:28:25]wFMCommunicate OK [09:28:25]CreateOFDProtocolMessage done [09:28:25]OFDSenderStorePacket 28847 [09:28:25]StoreOFDPacket docnum=28847 [09:28:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 E2 C2 06 01 E2 40 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 ED 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 3B 50 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AF 70 00 00 35 04 06 00 EB A8 76 27 14 0E 43 FD 3F 60 D4 55 7F A1 [09:28:25]CheckFolder [09:28:25]dirname=/storage/ofd_packets [09:28:25]CheckFolder done [09:28:25]ProducePacketName [09:28:25]name=ofd_packets/00028847 [09:28:25]NVStorageSaveData ofd_packets/00028847 [09:28:25]File name is /storage/ofd_packets/00028847 [09:28:25]Write 300 bytes [09:28:25]NVStorageSaveData done [09:28:25]OFDSenderStorePacket done [09:28:25]KKMCreateOFDPacket done [09:28:25]NVStorageSaveData kkm_last_timestamp [09:28:25]File name is /storage/kkm_last_timestamp [09:28:25]Write 4 bytes [09:28:25]NVStorageSaveData done [09:28:25]ExternCall_PrintAddStr [09:28:25]wPrintStart [09:28:25]Write to MH i2c: 01 00 00 51 26 77 [09:28:25]Write i2c OK [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: 01 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: 01 07 00 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: 01 07 00 51 26 00 00 00 00 00 FF 0F 8C [09:28:25]RasterBufferAndPrint [09:28:25]line Счет N : (1)347198 [09:28:25]line ИНН: 02508201610067 [09:28:25]line Контрольно-Кассовый Чек [09:28:25]line ПРОДАЖА [09:28:25]line ТРК (МРК, ГНК) : 71 [09:28:25]line Товар: 2711129700 [09:28:25]line ГАЗ-К-5 [09:28:25]line 60.800 * 32.90 [09:28:25]line = 2000.32 [09:28:25]line НДС 12% НСП 1% [09:28:25]line > о реализуемом товаре [09:28:25]line ИТОГО: 2000.32 [09:28:25]line НСП 1% : 17.70 [09:28:25]line НДС 12% : 212.42 [09:28:25]line Наличными: 0.00 [09:28:25]line Безнал.: 2000.32 [09:28:25]line Место: АЗС № 108 "Партнер Нефть" [09:28:25]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:28:25]line СНО: Общий режим [09:28:25]line Чек 54 13.04.2024 09:28 [09:28:25]line Смена: 115 ФФД: 1.0 [09:28:25]line ЗНМ: 0300000027 [09:28:25]line РНМ: 0000138879044617 [09:28:25]line Версия ККМ: 001 [09:28:25]line Платежная система: О! деньги [09:28:25]line ФМ: 0000000000963154 [09:28:25]line ФД: 28847 [09:28:25]line ФПД: 259108769305614 [09:28:25]line 1/tax-web-control/client/api/v1/ticket?date=20240413T092827&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28847&fm=259108769305614&tin=02508201610067®Number=0000138879044617&sum=200032 [09:28:25]OFD Sender: Processing packet 28847 [packets to send 8, broken 7] [09:28:25]ProducePacketName [09:28:25]name=ofd_packets/00028847 [09:28:25]OFD Sender: To server: pG, [09:28:25]CommunicateWithHost lk.salyk.kg:30040 [09:28:25]ConnectInit lk.salyk.kg [09:28:25]written 0, free lines is 4095 [09:28:25]Connected sock=10 [09:28: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 31 35 34 0E 01 00 00 E2 C2 06 01 E2 40 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 80 ED 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 60 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 3B 50 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AF 70 00 00 35 04 06 00 EB A8 76 27 14 0E 43 FD 3F 60 D4 55 7F A1 [09:28:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F5 A5 47 00 C4 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AF 70 00 00 F4 03 04 00 E3 FA 19 66 B6 04 01 00 00 CB 45 18 DE 43 E0 5E 27 [09:28:25]CommunicateWithHost err = 0 [09:28:25]CheckOFDResponse [09:28:25]1017 (14) - 77093643461234 [09:28:25]1041 (16) - 0000000000963154 [09:28:25]1040 (4) - 28847 [09:28:25]1012 (4) - 13.04.2024 03:24 [09:28:25]1206 (1) - 0 [09:28:25]OFD Sender: Remove packet 28847 [09:28:25]ProducePacketName [09:28:25]name=ofd_packets/00028847 [09:28:25]NVStorageDeleteData [09:28:26]Write to MH i2c: 01 00 00 7A 26 A0 [09:28:26]Write i2c OK [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: 01 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: 01 07 00 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: 01 07 00 7A 26 00 00 00 00 00 CF 0C 82 [09:28:26]RasterBufferAndPrint [09:28:26]line [09:28:26]line [09:28:26]line [09:28:26]line [09:28:26]line [09:28:26]written 0, free lines is 3285 [09:28:26]MH_Cut [09:28:26]Write to MH i2c: D1 01 00 81 26 01 79 [09:28:26]Write i2c OK [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: D1 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: D1 01 00 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: D1 01 00 81 26 00 78 [09:28:26]Write to MH i2c: 01 00 00 82 26 A8 [09:28:26]Write i2c OK [09:28:26]MH_I2C_Read... [09:28:26]OFD Sender: No OFD packet to send [09:28:26]*** Cut start [09:28:26]*** Partial cut [09:28:26]*** CUTSNS_PIN = 1 [09:28:26]*** CUTSNS_PIN = 0 [09:28:27]*** Brake cut motor [09:28:27]Read from MH i2c: 01 [09:28:27]MH_I2C_Read... [09:28:27]*** Stop cut motor [09:28:27]Read from MH i2c: 01 07 00 [09:28:27]MH_I2C_Read... [09:28:27]*** Cut end [09:28:27]Read from MH i2c: 01 07 00 82 26 00 00 00 00 00 FF 0F BD [09:28:27]process_action close_receipt done [09:28:27]requested_data is exist [09:28:27]produce_requested_data [09:28:27]requested_item fm.sn is exist - process it [09:28:27]wFMCommunicate request_size=4 [09:28:27]MH_SAM_APDU [09:28:27]CAPDU: 80 11 00 00 [09:28:27]Write to MH i2c: E2 08 00 83 26 80 11 00 00 00 00 00 00 23 [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:27]Read from MH i2c: E2 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 17 00 [09:28:27]MH_I2C_Read... [09:28:27]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 31 35 34 90 00 72 [09:28:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:28:27]wFMCommunicate OK [09:28:27]requested_item fd.num is exist - process it [09:28:27]SAM_PROTO_GetFieldsCounters [09:28:27]wFMCommunicate request_size=4 [09:28:27]MH_SAM_APDU [09:28:27]CAPDU: 80 13 00 00 [09:28:27]Write to MH i2c: E2 08 00 84 26 80 13 00 00 00 00 00 00 26 [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:27]Read from MH i2c: E2 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 62 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 62 00 84 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AF 70 00 00 0E 04 04 00 73 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 98 [09:28: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AF 70 00 00 0E 04 04 00 73 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:28:27]wFMCommunicate OK [09:28:27]SAM_PROTO_GetFieldsCounters done [09:28:27]requested_item shift.num is exist - process it [09:28:27]requested_item shift.opened is exist - process it [09:28:27]req_shift_opened [09:28:27]FM_GetShiftState [09:28:27]SAM_PROTO_GetShiftState [09:28:27]wFMCommunicate request_size=4 [09:28:27]MH_SAM_APDU [09:28:27]CAPDU: 80 13 01 00 [09:28:27]Write to MH i2c: E2 08 00 85 26 80 13 01 00 00 00 00 00 28 [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:27]Read from MH i2c: E2 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 0E 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 0E 00 85 26 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 41 [09:28:27]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:28:27]wFMCommunicate OK [09:28:27]SAM_PROTO_GetShiftState done [09:28:27]FM_GetShiftState done [09:28:27]req_shift_opened done [09:28:27]requested_item shift.open_date is exist - process it [09:28:27]req_shift_open_date [09:28:27]req_shift_open_date done [09:28:27]produce_requested_data done [09:28:27]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28847,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [09:28:27]process_action_free close_receipt [09:28:27]json_value_free [09:28:27]json_value_free done [09:28:27]process_json_proto returns [09:28:27]Send response to host [09:28:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28847,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [09:28:27]free response buf [09:28:27]execute_script done [09:28:27]execute_script returns [09:28:27]free content buf [09:28:27]Sock 9.Close socket [09:28:27]Sock 9.Thread stoped [09:28:31]OFD Sender: No OFD packet to send [09:28:36]OFD Sender: No OFD packet to send [09:28:41]OFD Sender: No OFD packet to send [09:28:46]OFD Sender: No OFD packet to send [09:28:51]OFD Sender: No OFD packet to send [09:28:56]OFD Sender: No OFD packet to send [09:29:01]OFD Sender: No OFD packet to send [09:29:06]OFD Sender: No OFD packet to send [09:29:11]accept exits with 7 [09:29:11]New connection [09:29:11]New thread 3066928484 created [09:29:11]Thread 3066785124 joined [09:29:11]Waiting for new connection... [09:29:11] Sock 7.Parse request [09:29:11]Sock 7.Check first char [09:29:11]Sock 7.First char is OK [09:29:11]request: POST /json_proto HTTP/1.0 [09:29:11]Method: POST [09:29:11]URL: /json_proto [09:29:11]Method is POST - this is cgi request [09:29:11]url: /json_proto [09:29:11]query_string will be loaded in cgi processing [09:29:11]execute_cgi json_proto POST (null) [09:29:11]execute_cgi path=json_proto method=POST [09:29:11]POST find Content-Length [09:29:11]Host: 172.17.33.3:8080 [09:29:11]Content-Length: 1204 [09:29:11]Content-Type: application/json [09:29:11] [09:29:11]POST finish read [09:29:11]Found Content-Length = 1204 [09:29:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347197\u000A13.04.2024 09:10\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 150.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 10860.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3729676;3729690\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:11]execute_script... [09:29:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347197\u000A13.04.2024 09:10\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 150.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 10860.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3729676;3729690\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:11]POST & json_proto [09:29:11]process_json_proto [09:29:11]json parsed OK: [09:29:11]protocol is kg_v1.0 [09:29:11]action value=print_text [09:29:11]process_action print_text [09:29:11]cmd_print_text [09:29:11]ExternCall_PrintAddStr [09:29:11]wPrintStart [09:29:11]Write to MH i2c: 01 00 00 86 26 AC [09:29:11]Write i2c OK [09:29:11]MH_I2C_Read... [09:29:11]Read from MH i2c: 01 [09:29:11]MH_I2C_Read... [09:29:11]Read from MH i2c: 01 07 00 [09:29:11]MH_I2C_Read... [09:29:11]Read from MH i2c: 01 07 00 86 26 00 00 00 00 00 FF 0F C1 [09:29:11]RasterBufferAndPrint [09:29:11]line *****ТОВАРНЫЙ ЧЕК***** [09:29:11]line АЗС 108 [09:29:11]line Партнер нефть [09:29:11]line 02508201610067 [09:29:11]line Кассир : Шадыканова Ж. [09:29:11]line Счет N : (1)347197 [09:29:11]line 13.04.2024 09:10 [09:29:11]line ПРОДАЖА [09:29:11]line ТРК (МРК, ГНК): 51 [09:29:11]line Вид ГСМ : 2710194210 [09:29:11]line ДТ-К-5 [09:29:11]line 150.000 x 72.40 [09:29:11]line ИТОГ: 10860.00 [09:29:11]line Тип оплаты: Талоны: Партнер нефть [09:29:11]line 3729676;3729690 [09:29:11]line ______________________ [09:29:11]line (подпись) [09:29:11]written 0, free lines is 4095 [09:29:11]OFD Sender: No OFD packet to send [09:29:11]Write to MH i2c: 01 00 00 9B 26 C1 [09:29:11]Write i2c OK [09:29:11]MH_I2C_Read... [09:29:11]Read from MH i2c: 01 [09:29:11]MH_I2C_Read... [09:29:11]Read from MH i2c: 01 07 00 [09:29:11]MH_I2C_Read... [09:29:11]Read from MH i2c: 01 07 00 9B 26 00 00 00 00 00 F9 0D CE [09:29:11]RasterBufferAndPrint [09:29:11]line [09:29:11]line [09:29:11]line [09:29:11]line [09:29:11]line [09:29:11]written 0, free lines is 3579 [09:29:11]MH_Cut [09:29:11]Write to MH i2c: D1 01 00 A2 26 01 9A [09:29:11]Write i2c OK [09:29:11]MH_I2C_Read... [09:29:11]Read from MH i2c: D1 [09:29:11]MH_I2C_Read... [09:29:11]Read from MH i2c: D1 01 00 [09:29:11]MH_I2C_Read... [09:29:11]Read from MH i2c: D1 01 00 A2 26 00 99 [09:29:11]Write to MH i2c: 01 00 00 A3 26 C9 [09:29:11]Write i2c OK [09:29:11]MH_I2C_Read... [09:29:12]*** Cut start [09:29:12]*** Partial cut [09:29:12]*** CUTSNS_PIN = 1 [09:29:12]*** CUTSNS_PIN = 0 [09:29:12]*** Brake cut motor [09:29:12]Read from MH i2c: 01 [09:29:12]MH_I2C_Read... [09:29:12]Read from MH i2c: 01 07 00 [09:29:12]MH_I2C_Read... [09:29:12]*** Stop cut motor [09:29:12]*** Cut end [09:29:12]Read from MH i2c: 01 07 00 A3 26 00 00 00 00 00 FF 0F DE [09:29:12]process_action print_text done [09:29:12]requested_data is exist [09:29:12]produce_requested_data [09:29:12]requested_item fm.sn is exist - process it [09:29:12]wFMCommunicate request_size=4 [09:29:12]MH_SAM_APDU [09:29:12]CAPDU: 80 11 00 00 [09:29:12]Write to MH i2c: E2 08 00 A4 26 80 11 00 00 00 00 00 00 44 [09:29:12]Write i2c OK [09:29:12]MH_I2C_Read... [09:29:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:12]Read from MH i2c: E2 [09:29:12]MH_I2C_Read... [09:29:12]Read from MH i2c: E2 17 00 [09:29:12]MH_I2C_Read... [09:29:12]Read from MH i2c: E2 17 00 A4 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 93 [09:29:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:29:12]wFMCommunicate OK [09:29:12]requested_item fd.num is exist - process it [09:29:12]SAM_PROTO_GetFieldsCounters [09:29:12]wFMCommunicate request_size=4 [09:29:12]MH_SAM_APDU [09:29:12]CAPDU: 80 13 00 00 [09:29:12]Write to MH i2c: E2 08 00 A5 26 80 13 00 00 00 00 00 00 47 [09:29:12]Write i2c OK [09:29:12]MH_I2C_Read... [09:29:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:12]Read from MH i2c: E2 [09:29:12]MH_I2C_Read... [09:29:12]Read from MH i2c: E2 62 00 [09:29:12]MH_I2C_Read... [09:29:12]Read from MH i2c: E2 62 00 A5 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AF 70 00 00 0E 04 04 00 73 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 B9 [09: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AF 70 00 00 0E 04 04 00 73 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:29:12]wFMCommunicate OK [09:29:12]SAM_PROTO_GetFieldsCounters done [09:29:12]requested_item shift.num is exist - process it [09:29:12]requested_item shift.opened is exist - process it [09:29:12]req_shift_opened [09:29:12]FM_GetShiftState [09:29:12]SAM_PROTO_GetShiftState [09:29:12]wFMCommunicate request_size=4 [09:29:12]MH_SAM_APDU [09:29:12]CAPDU: 80 13 01 00 [09:29:12]Write to MH i2c: E2 08 00 A6 26 80 13 01 00 00 00 00 00 49 [09:29:12]Write i2c OK [09:29:12]MH_I2C_Read... [09:29:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:12]Read from MH i2c: E2 [09:29:12]MH_I2C_Read... [09:29:12]Read from MH i2c: E2 0E 00 [09:29:12]MH_I2C_Read... [09:29:12]Read from MH i2c: E2 0E 00 A6 26 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 62 [09:29:12]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:29:12]wFMCommunicate OK [09:29:12]SAM_PROTO_GetShiftState done [09:29:12]FM_GetShiftState done [09:29:12]req_shift_opened done [09:29:12]requested_item shift.open_date is exist - process it [09:29:12]req_shift_open_date [09:29:12]req_shift_open_date done [09:29:12]produce_requested_data done [09:29:12]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28847,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [09:29:12]process_action_free print_text [09:29:12]json_value_free [09:29:12]json_value_free done [09:29:12]process_json_proto returns [09:29:12]Send response to host [09:29:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28847,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [09:29:13]free response buf [09:29:13]execute_script done [09:29:13]execute_script returns [09:29:13]free content buf [09:29:13]Sock 7.Close socket [09:29:13]Sock 7.Thread stoped [09:29:14]accept exits with 9 [09:29:14]New connection [09:29:14]New thread 3066785124 created [09:29:14]Thread 3066928484 joined [09:29:14]Waiting for new connection... [09:29:14] Sock 9.Parse request [09:29:14]Sock 9.Check first char [09:29:14]Sock 9.First char is OK [09:29:14]request: POST /json_proto HTTP/1.0 [09:29:14]Method: POST [09:29:14]URL: /json_proto [09:29:14]Method is POST - this is cgi request [09:29:14]url: /json_proto [09:29:14]query_string will be loaded in cgi processing [09:29:14]execute_cgi json_proto POST (null) [09:29:14]execute_cgi path=json_proto method=POST [09:29:14]POST find Content-Length [09:29:14]Host: 172.17.33.3:8080 [09:29:14]Content-Length: 679 [09:29:14]Content-Type: application/json [09:29:14] [09:29:14]POST finish read [09:29:14]Found Content-Length = 679 [09:29:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:29:14]execute_script... [09:29: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)347199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:29:14]POST & json_proto [09:29:14]process_json_proto [09:29:14]json parsed OK: [09:29:14]protocol is kg_v1.0 [09:29:14]action value=close_receipt [09:29:14]process_action close_receipt [09:29:14]cmd_close_receipt [09:29:14]MH_GetDate [09:29:14]Write to MH i2c: F0 00 00 A7 26 BC [09:29:14]Write i2c OK [09:29:14]MH_I2C_Read... [09:29:14]Read from MH i2c: F0 [09:29:14]MH_I2C_Read... [09:29:14]Read from MH i2c: F0 09 00 [09:29:14]MH_I2C_Read... [09:29:14]Read from MH i2c: F0 09 00 A7 26 00 6E 50 1A 66 23 5B 8F 65 75 [09:29:14]GetLastDocTimeStamp 1713000507 [09:29:14]current date 1713000558 [09:29:14]FM_GetShiftState [09:29:14]SAM_PROTO_GetShiftState [09:29:14]wFMCommunicate request_size=4 [09:29:14]MH_SAM_APDU [09:29:14]CAPDU: 80 13 01 00 [09:29:14]Write to MH i2c: E2 08 00 A8 26 80 13 01 00 00 00 00 00 4B [09:29:14]Write i2c OK [09:29:14]MH_I2C_Read... [09:29:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:14]Read from MH i2c: E2 [09:29:14]MH_I2C_Read... [09:29:14]Read from MH i2c: E2 0E 00 [09:29:14]MH_I2C_Read... [09:29:14]Read from MH i2c: E2 0E 00 A8 26 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 64 [09:29:14]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:29:14]wFMCommunicate OK [09:29:14]SAM_PROTO_GetShiftState done [09:29:14]FM_GetShiftState done [09:29:14]opened in 1712967615 [09:29:14]opened+sec_in_day 1713054015 [09:29:14]quantity*price = 100056 [09:29:14]sum+1 = 100058 [09:29:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 55 13.04.2024 09:29 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28848 ФПД: 139187532563240 1/tax-web-control/client/api/v1/ticket?date=20240413T092918&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28848&fm=139187532563240&tin=02508201610067®Number=0000138879044617&sum=100000 [09:29:15]StoreToDocumentArchive [09:29:15]shift 115 fd 28848 [09:29:15]save to /storage/0115/doc_00028848 [09:29:15]save last doc name /storage/0115/doc_00028848 to /storage/kkm_last_doc_name [09:29:15]save OK [09:29:15]Clear old archive folders... [09:29:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:29:15]tlvbuf is 011EE7D0 [09:29:15]SAM_PROTO_ClearQueue [09:29:15]wFMCommunicate request_size=4 [09:29:15]MH_SAM_APDU [09:29:15]CAPDU: 80 09 00 00 [09:29:15]Write to MH i2c: E2 08 00 B5 26 80 09 00 00 00 00 00 00 4D [09:29:15]Write i2c OK [09:29:15]MH_I2C_Read... [09:29:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:15]Read from MH i2c: E2 [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: E2 03 00 [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: E2 03 00 B5 26 00 90 00 4F [09:29:15]RAPDU: 90 00 [09:29:15]wFMCommunicate OK [09:29:15]SAM_PROTO_ClearQueue done [09:29:15]KKMCreateOFDPacket [09:29:15]OFDProtocolAddRootSTLVToBuf [09:29:15]FM_MakeSignedData [09:29:15]FM_MakeSignedData [09:29:15]SAM_PROTO_SignData [09:29:15]wFMCommunicate request_size=4 [09:29:15]MH_SAM_APDU [09:29:15]CAPDU: 80 0D 01 02 [09:29:15]Write to MH i2c: E2 08 00 B6 26 80 0D 01 02 00 00 00 00 55 [09:29:15]Write i2c OK [09:29:15]MH_I2C_Read... [09:29:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:15]Read from MH i2c: E2 [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: E2 03 00 [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: E2 03 00 B6 26 00 90 00 50 [09:29:15]RAPDU: 90 00 [09:29:15]wFMCommunicate OK [09:29:15]wFMCommunicate request_size=255 [09:29:15]MH_SAM_APDU [09:29:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 6E 50 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B0 70 00 00 35 04 06 00 7E 97 1F 6F [09:29:15]Write to MH i2c: E2 02 01 B7 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 6E 50 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B0 70 00 00 35 04 06 00 7E 97 1F 6F 00 00 DF [09:29:15]Write i2c OK [09:29:15]MH_I2C_Read... [09:29:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:16]Read from MH i2c: E2 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: E2 03 00 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: E2 03 00 B7 26 00 90 00 51 [09:29:16]RAPDU: 90 00 [09:29:16]wFMCommunicate OK [09:29:16]wFMCommunicate request_size=7 [09:29:16]MH_SAM_APDU [09:29:16]CAPDU: 80 0D 02 02 02 83 28 [09:29:16]Write to MH i2c: E2 0A 00 B8 26 80 0D 02 02 02 00 83 28 00 00 07 [09:29:16]Write i2c OK [09:29:16]MH_I2C_Read... [09:29:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:16]Read from MH i2c: E2 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: E2 03 00 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: E2 03 00 B8 26 00 90 00 52 [09:29:16]RAPDU: 90 00 [09:29:16]wFMCommunicate OK [09:29:16]wFMCommunicate request_size=4 [09:29:16]MH_SAM_APDU [09:29:16]CAPDU: 80 0D 03 02 [09:29:16]Write to MH i2c: E2 08 00 B9 26 80 0D 03 02 00 00 00 00 5A [09:29:16]Write i2c OK [09:29:16]MH_I2C_Read... [09:29:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:16]Read from MH i2c: E2 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: E2 0B 00 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: E2 0B 00 B9 26 00 F2 A4 A7 AA 82 3F 03 16 90 00 1C [09:29:16]RAPDU: F2 A4 A7 AA 82 3F 03 16 90 00 [09:29:16]wFMCommunicate OK [09:29:16]SAM_PROTO_SignData done [09:29:16]FM_MakeSignedData done [09:29:16]CreateOFDProtocolMessage [09:29:16]wFMCommunicate request_size=4 [09:29:16]MH_SAM_APDU [09:29:16]CAPDU: 80 11 00 00 [09:29:16]Write to MH i2c: E2 08 00 BA 26 80 11 00 00 00 00 00 00 5A [09:29:16]Write i2c OK [09:29:16]MH_I2C_Read... [09:29:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:16]Read from MH i2c: E2 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: E2 17 00 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: E2 17 00 BA 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A9 [09:29:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:29:16]wFMCommunicate OK [09:29:16]CreateOFDProtocolMessage done [09:29:16]OFDSenderStorePacket 28848 [09:29:16]StoreOFDPacket docnum=28848 [09:29:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 E4 2E 04 01 72 FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 6E 50 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B0 70 00 00 35 04 06 00 7E 97 1F 6F 83 28 F2 A4 A7 AA 82 3F 03 16 [09:29:16]CheckFolder [09:29:16]dirname=/storage/ofd_packets [09:29:16]CheckFolder done [09:29:16]ProducePacketName [09:29:16]name=ofd_packets/00028848 [09:29:16]NVStorageSaveData ofd_packets/00028848 [09:29:16]File name is /storage/ofd_packets/00028848 [09:29:16]Write 298 bytes [09:29:16]NVStorageSaveData done [09:29:16]OFDSenderStorePacket done [09:29:16]KKMCreateOFDPacket done [09:29:16]NVStorageSaveData kkm_last_timestamp [09:29:16]File name is /storage/kkm_last_timestamp [09:29:16]Write 4 bytes [09:29:16]NVStorageSaveData done [09:29:16]ExternCall_PrintAddStr [09:29:16]wPrintStart [09:29:16]Write to MH i2c: 01 00 00 BB 26 E1 [09:29:16]Write i2c OK [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: 01 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: 01 07 00 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: 01 07 00 BB 26 00 00 00 00 00 FF 0F F6 [09:29:16]RasterBufferAndPrint [09:29:16]line Счет N : (1)347199 [09:29:16]line ИНН: 02508201610067 [09:29:16]line Контрольно-Кассовый Чек [09:29:16]line ПРОДАЖА [09:29:16]line ТРК (МРК, ГНК) : 21 [09:29:16]line Товар: 2710194210 [09:29:16]line ДТ-К-5 [09:29:16]line 13.820 * 72.40 [09:29:16]line = 1000.57 [09:29:16]line НДС 12% НСП 1% [09:29:16]line > о реализуемом товаре [09:29:16]line ОКРУГЛЕНИЕ: -0.57 [09:29:16]line ИТОГО: 1000.00 [09:29:16]line Внесено: 1000.00 [09:29:16]line СДАЧА: 0.00 [09:29:16]line НСП 1% : 8.85 [09:29:16]line НДС 12% : 106.25 [09:29:16]line Наличными: 1000.00 [09:29:16]line Безнал.: 0.00 [09:29:16]line Место: АЗС № 108 "Партнер Нефть" [09:29:16]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:29:16]line СНО: Общий режим [09:29:16]line Чек 55 13.04.2024 09:29 [09:29:16]line Смена: 115 ФФД: 1.0 [09:29:16]line ЗНМ: 0300000027 [09:29:16]line РНМ: 0000138879044617 [09:29:16]line Версия ККМ: 001 [09:29:16]line ФМ: 0000000000963154 [09:29:16]line ФД: 28848 [09:29:16]line ФПД: 139187532563240 [09:29:16]line 1/tax-web-control/client/api/v1/ticket?date=20240413T092918&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28848&fm=139187532563240&tin=02508201610067®Number=0000138879044617&sum=100000 [09:29:16]OFD Sender: Processing packet 28848 [packets to send 8, broken 7] [09:29:16]ProducePacketName [09:29:16]name=ofd_packets/00028848 [09:29:16]OFD Sender: To server: pG, [09:29:16]CommunicateWithHost lk.salyk.kg:30040 [09:29:16]ConnectInit lk.salyk.kg [09:29:16]written 0, free lines is 4095 [09:29:16]Connected sock=10 [09:29: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 31 35 34 0C 01 00 00 E4 2E 04 01 72 FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 6E 50 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B0 70 00 00 35 04 06 00 7E 97 1F 6F 83 28 F2 A4 A7 AA 82 3F 03 16 [09:29:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6B 1F 47 00 B5 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 31 35 34 10 04 04 00 B0 70 00 00 F4 03 04 00 16 FB 19 66 B6 04 01 00 00 9C 15 25 7E 19 91 78 DB [09:29:16]CommunicateWithHost err = 0 [09:29:16]CheckOFDResponse [09:29:16]1017 (14) - 77093643461234 [09:29:16]1041 (16) - 0000000000963154 [09:29:16]1040 (4) - 28848 [09:29:16]1012 (4) - 13.04.2024 03:25 [09:29:16]1206 (1) - 0 [09:29:16]OFD Sender: Remove packet 28848 [09:29:16]ProducePacketName [09:29:16]name=ofd_packets/00028848 [09:29:16]NVStorageDeleteData [09:29:17]Write to MH i2c: 01 00 00 E5 26 0B [09:29:17]Write i2c OK [09:29:17]MH_I2C_Read... [09:29:17]Read from MH i2c: 01 [09:29:17]MH_I2C_Read... [09:29:17]Read from MH i2c: 01 07 00 [09:29:17]MH_I2C_Read... [09:29:17]Read from MH i2c: 01 07 00 E5 26 00 00 00 00 00 C7 0C E5 [09:29:17]RasterBufferAndPrint [09:29:17]line [09:29:17]line [09:29:17]line [09:29:17]line [09:29:17]line [09:29:17]written 0, free lines is 3276 [09:29:17]MH_Cut [09:29:17]Write to MH i2c: D1 01 00 EC 26 01 E4 [09:29:17]Write i2c OK [09:29:17]MH_I2C_Read... [09:29:17]Read from MH i2c: D1 [09:29:17]MH_I2C_Read... [09:29:17]Read from MH i2c: D1 01 00 [09:29:17]MH_I2C_Read... [09:29:17]Read from MH i2c: D1 01 00 EC 26 00 E3 [09:29:17]Write to MH i2c: 01 00 00 ED 26 13 [09:29:17]Write i2c OK [09:29:17]MH_I2C_Read... [09:29:17]OFD Sender: No OFD packet to send [09:29:17]*** Cut start [09:29:17]*** Partial cut [09:29:17]*** CUTSNS_PIN = 1 [09:29:17]*** CUTSNS_PIN = 0 [09:29:18]*** Brake cut motor [09:29:18]Read from MH i2c: 01 [09:29:18]MH_I2C_Read... [09:29:18]*** Stop cut motor [09:29:18]*** Cut end [09:29:18]Read from MH i2c: 01 07 00 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: 01 07 00 ED 26 00 00 00 00 00 FF 0F 28 [09:29:18]process_action close_receipt done [09:29:18]requested_data is exist [09:29:18]produce_requested_data [09:29:18]requested_item fm.sn is exist - process it [09:29:18]wFMCommunicate request_size=4 [09:29:18]MH_SAM_APDU [09:29:18]CAPDU: 80 11 00 00 [09:29:18]Write to MH i2c: E2 08 00 EE 26 80 11 00 00 00 00 00 00 8E [09:29:18]Write i2c OK [09:29:18]MH_I2C_Read... [09:29:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:18]Read from MH i2c: E2 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: E2 17 00 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: E2 17 00 EE 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DD [09:29:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:29:18]wFMCommunicate OK [09:29:18]requested_item fd.num is exist - process it [09:29:18]SAM_PROTO_GetFieldsCounters [09:29:18]wFMCommunicate request_size=4 [09:29:18]MH_SAM_APDU [09:29:18]CAPDU: 80 13 00 00 [09:29:18]Write to MH i2c: E2 08 00 EF 26 80 13 00 00 00 00 00 00 91 [09:29:18]Write i2c OK [09:29:18]MH_I2C_Read... [09:29:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:18]Read from MH i2c: E2 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: E2 62 00 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: E2 62 00 EF 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B0 70 00 00 0E 04 04 00 73 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 07 [09:29: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B0 70 00 00 0E 04 04 00 73 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:29:18]wFMCommunicate OK [09:29:18]SAM_PROTO_GetFieldsCounters done [09:29:18]requested_item shift.num is exist - process it [09:29:18]requested_item shift.opened is exist - process it [09:29:18]req_shift_opened [09:29:18]FM_GetShiftState [09:29:18]SAM_PROTO_GetShiftState [09:29:18]wFMCommunicate request_size=4 [09:29:18]MH_SAM_APDU [09:29:18]CAPDU: 80 13 01 00 [09:29:18]Write to MH i2c: E2 08 00 F0 26 80 13 01 00 00 00 00 00 93 [09:29:18]Write i2c OK [09:29:18]MH_I2C_Read... [09:29:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:18]Read from MH i2c: E2 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: E2 0E 00 [09:29:18]MH_I2C_Read... [09:29:18]Read from MH i2c: E2 0E 00 F0 26 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 AC [09:29:18]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:29:18]wFMCommunicate OK [09:29:18]SAM_PROTO_GetShiftState done [09:29:18]FM_GetShiftState done [09:29:18]req_shift_opened done [09:29:18]requested_item shift.open_date is exist - process it [09:29:18]req_shift_open_date [09:29:18]req_shift_open_date done [09:29:18]produce_requested_data done [09:29:18]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28848,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [09:29:18]process_action_free close_receipt [09:29:18]json_value_free [09:29:18]json_value_free done [09:29:18]process_json_proto returns [09:29:18]Send response to host [09:29:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28848,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [09:29:18]free response buf [09:29:18]execute_script done [09:29:18]execute_script returns [09:29:18]free content buf [09:29:18]Sock 9.Close socket [09:29:18]Sock 9.Thread stoped [09:29:22]OFD Sender: No OFD packet to send [09:29:27]OFD Sender: No OFD packet to send [09:29:32]OFD Sender: No OFD packet to send [09:29:35]accept exits with 7 [09:29:35]New connection [09:29:35]New thread 3066928484 created [09:29:35]Thread 3066785124 joined [09:29:35]Waiting for new connection... [09:29:35] Sock 7.Parse request [09:29:35]Sock 7.Check first char [09:29:35]Sock 7.First char is OK [09:29:35]request: POST /json_proto HTTP/1.0 [09:29:35]Method: POST [09:29:35]URL: /json_proto [09:29:35]Method is POST - this is cgi request [09:29:35]url: /json_proto [09:29:35]query_string will be loaded in cgi processing [09:29:35]execute_cgi json_proto POST (null) [09:29:35]execute_cgi path=json_proto method=POST [09:29:35]POST find Content-Length [09:29:35]Host: 172.17.33.3:8080 [09:29:35]Content-Length: 677 [09:29:35]Content-Type: application/json [09:29:35] [09:29:35]POST finish read [09:29:35]Found Content-Length = 677 [09:29:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347201", "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" : 64.30, "quantity" : 7.000, "sum" : 450.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:35]execute_script... [09:29: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)347201", "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" : 64.30, "quantity" : 7.000, "sum" : 450.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:35]POST & json_proto [09:29:35]process_json_proto [09:29:35]json parsed OK: [09:29:35]protocol is kg_v1.0 [09:29:35]action value=close_receipt [09:29:35]process_action close_receipt [09:29:35]cmd_close_receipt [09:29:35]MH_GetDate [09:29:35]Write to MH i2c: F0 00 00 F1 26 06 [09:29:35]Write i2c OK [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: F0 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: F0 09 00 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: F0 09 00 F1 26 00 83 50 1A 66 23 5B 8F 65 D4 [09:29:35]GetLastDocTimeStamp 1713000558 [09:29:35]current date 1713000579 [09:29:35]FM_GetShiftState [09:29:35]SAM_PROTO_GetShiftState [09:29:35]wFMCommunicate request_size=4 [09:29:35]MH_SAM_APDU [09:29:35]CAPDU: 80 13 01 00 [09:29:35]Write to MH i2c: E2 08 00 F2 26 80 13 01 00 00 00 00 00 95 [09:29:35]Write i2c OK [09:29:35]MH_I2C_Read... [09:29:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:35]Read from MH i2c: E2 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: E2 0E 00 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: E2 0E 00 F2 26 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 AE [09:29:35]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:29:35]wFMCommunicate OK [09:29:35]SAM_PROTO_GetShiftState done [09:29:35]FM_GetShiftState done [09:29:35]opened in 1712967615 [09:29:35]opened+sec_in_day 1713054015 [09:29:35]quantity*price = 45010 [09:29:35]sum+1 = 45011 [09:29:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.80 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 56 13.04.2024 09:29 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28849 ФПД: 13761409058498 1/tax-web-control/client/api/v1/ticket?date=20240413T092939&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28849&fm=13761409058498&tin=02508201610067®Number=0000138879044617&sum=45000 [09:29:36]StoreToDocumentArchive [09:29:36]shift 115 fd 28849 [09:29:36]save to /storage/0115/doc_00028849 [09:29:36]save last doc name /storage/0115/doc_00028849 to /storage/kkm_last_doc_name [09:29:36]save OK [09:29:36]Clear old archive folders... [09:29:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:29:36]tlvbuf is 01265BD0 [09:29:36]SAM_PROTO_ClearQueue [09:29:36]wFMCommunicate request_size=4 [09:29:36]MH_SAM_APDU [09:29:36]CAPDU: 80 09 00 00 [09:29:36]Write to MH i2c: E2 08 00 FF 26 80 09 00 00 00 00 00 00 97 [09:29:36]Write i2c OK [09:29:36]MH_I2C_Read... [09:29:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:36]Read from MH i2c: E2 [09:29:36]MH_I2C_Read... [09:29:36]Read from MH i2c: E2 03 00 [09:29:36]MH_I2C_Read... [09:29:36]Read from MH i2c: E2 03 00 FF 26 00 90 00 99 [09:29:36]RAPDU: 90 00 [09:29:36]wFMCommunicate OK [09:29:36]SAM_PROTO_ClearQueue done [09:29:36]KKMCreateOFDPacket [09:29:36]OFDProtocolAddRootSTLVToBuf [09:29:36]FM_MakeSignedData [09:29:36]FM_MakeSignedData [09:29:36]SAM_PROTO_SignData [09:29:36]wFMCommunicate request_size=4 [09:29:36]MH_SAM_APDU [09:29:36]CAPDU: 80 0D 01 02 [09:29:36]Write to MH i2c: E2 08 00 00 27 80 0D 01 02 00 00 00 00 A0 [09:29:36]Write i2c OK [09:29:36]MH_I2C_Read... [09:29:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:36]Read from MH i2c: E2 [09:29:36]MH_I2C_Read... [09:29:36]Read from MH i2c: E2 03 00 [09:29:36]MH_I2C_Read... [09:29:36]Read from MH i2c: E2 03 00 00 27 00 90 00 9B [09:29:36]RAPDU: 90 00 [09:29:36]wFMCommunicate OK [09:29:36]wFMCommunicate request_size=255 [09:29:36]MH_SAM_APDU [09:29: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 58 1B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D2 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 83 50 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B1 70 00 00 35 04 06 00 0C [09:29:36]Write to MH i2c: E2 02 01 01 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 58 1B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D2 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 83 50 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B1 70 00 00 35 04 06 00 0C 00 00 58 [09:29:36]Write i2c OK [09:29:36]MH_I2C_Read... [09:29:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:36]Read from MH i2c: E2 [09:29:36]MH_I2C_Read... [09:29:36]Read from MH i2c: E2 03 00 [09:29:36]MH_I2C_Read... [09:29:36]Read from MH i2c: E2 03 00 01 27 00 90 00 9C [09:29:36]RAPDU: 90 00 [09:29:36]wFMCommunicate OK [09:29:36]wFMCommunicate request_size=10 [09:29:36]MH_SAM_APDU [09:29:36]CAPDU: 80 0D 02 02 05 84 13 E6 06 C2 [09:29:36]Write to MH i2c: E2 0D 00 02 27 80 0D 02 02 05 00 84 13 E6 06 C2 00 00 F2 [09:29:36]Write i2c OK [09:29:36]MH_I2C_Read... [09:29:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:36]Read from MH i2c: E2 [09:29:36]MH_I2C_Read... [09:29:36]Read from MH i2c: E2 03 00 [09:29:36]MH_I2C_Read... [09:29:36]Read from MH i2c: E2 03 00 02 27 00 90 00 9D [09:29:36]RAPDU: 90 00 [09:29:36]wFMCommunicate OK [09:29:36]wFMCommunicate request_size=4 [09:29:36]MH_SAM_APDU [09:29:36]CAPDU: 80 0D 03 02 [09:29:36]Write to MH i2c: E2 08 00 03 27 80 0D 03 02 00 00 00 00 A5 [09:29:36]Write i2c OK [09:29:36]MH_I2C_Read... [09:29:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:36]Read from MH i2c: E2 [09:29:36]MH_I2C_Read... [09:29:36]Read from MH i2c: E2 0B 00 [09:29:36]MH_I2C_Read... [09:29:36]Read from MH i2c: E2 0B 00 03 27 00 89 6F 7E 25 87 36 E3 0F 90 00 F0 [09:29:36]RAPDU: 89 6F 7E 25 87 36 E3 0F 90 00 [09:29:36]wFMCommunicate OK [09:29:36]SAM_PROTO_SignData done [09:29:36]FM_MakeSignedData done [09:29:36]CreateOFDProtocolMessage [09:29:36]wFMCommunicate request_size=4 [09:29:36]MH_SAM_APDU [09:29:36]CAPDU: 80 11 00 00 [09:29:36]Write to MH i2c: E2 08 00 04 27 80 11 00 00 00 00 00 00 A5 [09:29:36]Write i2c OK [09:29:36]MH_I2C_Read... [09:29:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:36]Read from MH i2c: E2 [09:29:36]MH_I2C_Read... [09:29:36]Read from MH i2c: E2 17 00 [09:29:36]MH_I2C_Read... [09:29:36]Read from MH i2c: E2 17 00 04 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F4 [09:29:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:29:36]wFMCommunicate OK [09:29:36]CreateOFDProtocolMessage done [09:29:36]OFDSenderStorePacket 28849 [09:29:36]StoreOFDPacket docnum=28849 [09:29:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 7A EC 07 01 60 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 58 1B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D2 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 83 50 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B1 70 00 00 35 04 06 00 0C 84 13 E6 06 C2 89 6F 7E 25 87 36 E3 0F [09:29:36]CheckFolder [09:29:36]dirname=/storage/ofd_packets [09:29:36]CheckFolder done [09:29:36]ProducePacketName [09:29:36]name=ofd_packets/00028849 [09:29:36]NVStorageSaveData ofd_packets/00028849 [09:29:36]File name is /storage/ofd_packets/00028849 [09:29:36]Write 301 bytes [09:29:36]NVStorageSaveData done [09:29:36]OFDSenderStorePacket done [09:29:36]KKMCreateOFDPacket done [09:29:36]NVStorageSaveData kkm_last_timestamp [09:29:36]File name is /storage/kkm_last_timestamp [09:29:36]Write 4 bytes [09:29:36]NVStorageSaveData done [09:29:36]ExternCall_PrintAddStr [09:29:36]wPrintStart [09:29:36]Write to MH i2c: 01 00 00 05 27 2C [09:29:36]Write i2c OK [09:29:36]MH_I2C_Read... [09:29:36]Read from MH i2c: 01 [09:29:36]MH_I2C_Read... [09:29:36]Read from MH i2c: 01 07 00 [09:29:36]MH_I2C_Read... [09:29:36]Read from MH i2c: 01 07 00 05 27 00 00 00 00 00 FF 0F 41 [09:29:36]RasterBufferAndPrint [09:29:36]line Счет N : (1)347201 [09:29:36]line ИНН: 02508201610067 [09:29:36]line Контрольно-Кассовый Чек [09:29:36]line ПРОДАЖА [09:29:36]line ТРК (МРК, ГНК) : 32 [09:29:36]line Товар: 2710124130 [09:29:36]line Аи-92-К-5 [09:29:36]line 7.000 * 64.30 [09:29:36]line = 450.10 [09:29:36]line НДС 12% НСП 1% [09:29:36]line > о реализуемом товаре [09:29:36]line ОКРУГЛЕНИЕ: -0.10 [09:29:36]line ИТОГО: 450.00 [09:29:36]line Внесено: 450.00 [09:29:36]line СДАЧА: 0.00 [09:29:36]line НСП 1% : 3.98 [09:29:36]line НДС 12% : 47.80 [09:29:36]line Наличными: 450.00 [09:29:36]line Безнал.: 0.00 [09:29:36]line Место: АЗС № 108 "Партнер Нефть" [09:29:36]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:29:36]line СНО: Общий режим [09:29:36]line Чек 56 13.04.2024 09:29 [09:29:36]line Смена: 115 ФФД: 1.0 [09:29:36]line ЗНМ: 0300000027 [09:29:36]line РНМ: 0000138879044617 [09:29:36]line Версия ККМ: 001 [09:29:36]line ФМ: 0000000000963154 [09:29:36]line ФД: 28849 [09:29:36]line ФПД: 13761409058498 [09:29:36]line 1/tax-web-control/client/api/v1/ticket?date=20240413T092939&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28849&fm=13761409058498&tin=02508201610067®Number=0000138879044617&sum=45000 [09:29:37]OFD Sender: Processing packet 28849 [packets to send 8, broken 7] [09:29:37]ProducePacketName [09:29:37]name=ofd_packets/00028849 [09:29:37]OFD Sender: To server: pG, [09:29:37]CommunicateWithHost lk.salyk.kg:30040 [09:29:37]ConnectInit lk.salyk.kg [09:29:37]written 0, free lines is 4095 [09:29:37]Connected sock=10 [09:29: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 31 35 34 0F 01 00 00 7A EC 07 01 60 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 58 1B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D2 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 83 50 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B1 70 00 00 35 04 06 00 0C 84 13 E6 06 C2 89 6F 7E 25 87 36 E3 0F [09:29:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 81 2B 47 00 DB 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B1 70 00 00 F4 03 04 00 2A FB 19 66 B6 04 01 00 00 AB AC 81 3F FC 77 28 5F [09:29:37]CommunicateWithHost err = 0 [09:29:37]CheckOFDResponse [09:29:37]1017 (14) - 77093643461234 [09:29:37]1041 (16) - 0000000000963154 [09:29:37]1040 (4) - 28849 [09:29:37]1012 (4) - 13.04.2024 03:25 [09:29:37]1206 (1) - 0 [09:29:37]OFD Sender: Remove packet 28849 [09:29:37]ProducePacketName [09:29:37]name=ofd_packets/00028849 [09:29:37]NVStorageDeleteData [09:29:37]Write to MH i2c: 01 00 00 2F 27 56 [09:29:37]Write i2c OK [09:29:37]MH_I2C_Read... [09:29:37]Read from MH i2c: 01 [09:29:37]MH_I2C_Read... [09:29:37]Read from MH i2c: 01 07 00 [09:29:37]MH_I2C_Read... [09:29:37]Read from MH i2c: 01 07 00 2F 27 00 00 00 00 00 CE 0C 37 [09:29:37]RasterBufferAndPrint [09:29:37]line [09:29:37]line [09:29:37]line [09:29:37]line [09:29:37]line [09:29:37]written 0, free lines is 3284 [09:29:37]MH_Cut [09:29:37]Write to MH i2c: D1 01 00 36 27 01 2F [09:29:37]Write i2c OK [09:29:37]MH_I2C_Read... [09:29:37]Read from MH i2c: D1 [09:29:37]MH_I2C_Read... [09:29:37]Read from MH i2c: D1 01 00 [09:29:37]MH_I2C_Read... [09:29:37]Read from MH i2c: D1 01 00 36 27 00 2E [09:29:37]Write to MH i2c: 01 00 00 37 27 5E [09:29:37]Write i2c OK [09:29:37]MH_I2C_Read... [09:29:37]OFD Sender: No OFD packet to send [09:29:38]*** Cut start [09:29:38]*** Partial cut [09:29:38]*** CUTSNS_PIN = 1 [09:29:38]*** CUTSNS_PIN = 0 [09:29:38]*** Brake cut motor [09:29:38]Read from MH i2c: 01 [09:29:38]MH_I2C_Read... [09:29:38]*** Stop cut motor [09:29:38]*** Cut end [09:29:38]Read from MH i2c: 01 07 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: 01 07 00 37 27 00 00 00 00 00 FF 0F 73 [09:29:38]process_action close_receipt done [09:29:38]requested_data is exist [09:29:38]produce_requested_data [09:29:38]requested_item fm.sn is exist - process it [09:29:38]wFMCommunicate request_size=4 [09:29:38]MH_SAM_APDU [09:29:38]CAPDU: 80 11 00 00 [09:29:38]Write to MH i2c: E2 08 00 38 27 80 11 00 00 00 00 00 00 D9 [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:39]Read from MH i2c: E2 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: E2 17 00 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: E2 17 00 38 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 28 [09:29:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:29:39]wFMCommunicate OK [09:29:39]requested_item fd.num is exist - process it [09:29:39]SAM_PROTO_GetFieldsCounters [09:29:39]wFMCommunicate request_size=4 [09:29:39]MH_SAM_APDU [09:29:39]CAPDU: 80 13 00 00 [09:29:39]Write to MH i2c: E2 08 00 39 27 80 13 00 00 00 00 00 00 DC [09:29:39]Write i2c OK [09:29:39]MH_I2C_Read... [09:29:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:39]Read from MH i2c: E2 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: E2 62 00 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: E2 62 00 39 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B1 70 00 00 0E 04 04 00 73 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 56 [09:29: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B1 70 00 00 0E 04 04 00 73 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:29:39]wFMCommunicate OK [09:29:39]SAM_PROTO_GetFieldsCounters done [09:29:39]requested_item shift.num is exist - process it [09:29:39]requested_item shift.opened is exist - process it [09:29:39]req_shift_opened [09:29:39]FM_GetShiftState [09:29:39]SAM_PROTO_GetShiftState [09:29:39]wFMCommunicate request_size=4 [09:29:39]MH_SAM_APDU [09:29:39]CAPDU: 80 13 01 00 [09:29:39]Write to MH i2c: E2 08 00 3A 27 80 13 01 00 00 00 00 00 DE [09:29:39]Write i2c OK [09:29:39]MH_I2C_Read... [09:29:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:39]Read from MH i2c: E2 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: E2 0E 00 [09:29:39]MH_I2C_Read... [09:29:39]Read from MH i2c: E2 0E 00 3A 27 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F7 [09:29:39]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:29:39]wFMCommunicate OK [09:29:39]SAM_PROTO_GetShiftState done [09:29:39]FM_GetShiftState done [09:29:39]req_shift_opened done [09:29:39]requested_item shift.open_date is exist - process it [09:29:39]req_shift_open_date [09:29:39]req_shift_open_date done [09:29:39]produce_requested_data done [09:29:39]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28849,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [09:29:39]process_action_free close_receipt [09:29:39]json_value_free [09:29:39]json_value_free done [09:29:39]process_json_proto returns [09:29:39]Send response to host [09:29:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28849,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [09:29:39]free response buf [09:29:39]execute_script done [09:29:39]execute_script returns [09:29:39]free content buf [09:29:39]Sock 7.Close socket [09:29:39]Sock 7.Thread stoped [09:29:42]OFD Sender: No OFD packet to send [09:29:47]OFD Sender: No OFD packet to send [09:29:52]OFD Sender: No OFD packet to send [09:29:57]OFD Sender: No OFD packet to send [09:30:02]OFD Sender: No OFD packet to send [09:30:07]OFD Sender: No OFD packet to send [09:30:12]OFD Sender: No OFD packet to send [09:30:17]OFD Sender: No OFD packet to send [09:30:22]OFD Sender: No OFD packet to send [09:30:27]OFD Sender: No OFD packet to send [09:30:32]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:42]OFD Sender: No OFD packet to send [09:30:47]OFD Sender: No OFD packet to send [09:30:52]OFD Sender: No OFD packet to send [09:30:53]accept exits with 9 [09:30:53]New connection [09:30:53]New thread 3066785124 created [09:30:53]Thread 3066928484 joined [09:30:53]Waiting for new connection... [09:30:53] Sock 9.Parse request [09:30:53]Sock 9.Check first char [09:30:53]Sock 9.First char is OK [09:30:53]request: POST /json_proto HTTP/1.0 [09:30:53]Method: POST [09:30:53]URL: /json_proto [09:30:53]Method is POST - this is cgi request [09:30:53]url: /json_proto [09:30:53]query_string will be loaded in cgi processing [09:30:53]execute_cgi json_proto POST (null) [09:30:53]execute_cgi path=json_proto method=POST [09:30:53]POST find Content-Length [09:30:53]Host: 172.17.33.3:8080 [09:30:53]Content-Length: 805 [09:30:53]Content-Type: application/json [09:30:53] [09:30:53]POST finish read [09:30:53]Found Content-Length = 805 [09:30:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 41.440, "sum" : 3000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:53]execute_script... [09:30: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)347200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 41.440, "sum" : 3000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:53]POST & json_proto [09:30:53]process_json_proto [09:30:53]json parsed OK: [09:30:53]protocol is kg_v1.0 [09:30:53]action value=close_receipt [09:30:53]process_action close_receipt [09:30:53]cmd_close_receipt [09:30:53]MH_GetDate [09:30:53]Write to MH i2c: F0 00 00 3B 27 51 [09:30:53]Write i2c OK [09:30:53]MH_I2C_Read... [09:30:53]Read from MH i2c: F0 [09:30:53]MH_I2C_Read... [09:30:53]Read from MH i2c: F0 09 00 [09:30:53]MH_I2C_Read... [09:30:53]Read from MH i2c: F0 09 00 3B 27 00 D1 50 1A 66 23 5B 8F 65 6D [09:30:53]GetLastDocTimeStamp 1713000579 [09:30:53]current date 1713000657 [09:30:53]FM_GetShiftState [09:30:53]SAM_PROTO_GetShiftState [09:30:53]wFMCommunicate request_size=4 [09:30:53]MH_SAM_APDU [09:30:53]CAPDU: 80 13 01 00 [09:30:53]Write to MH i2c: E2 08 00 3C 27 80 13 01 00 00 00 00 00 E0 [09:30:53]Write i2c OK [09:30:53]MH_I2C_Read... [09:30:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:53]Read from MH i2c: E2 [09:30:53]MH_I2C_Read... [09:30:53]Read from MH i2c: E2 0E 00 [09:30:53]MH_I2C_Read... [09:30:53]Read from MH i2c: E2 0E 00 3C 27 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F9 [09:30:53]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:30:53]wFMCommunicate OK [09:30:53]SAM_PROTO_GetShiftState done [09:30:53]FM_GetShiftState done [09:30:53]opened in 1712967615 [09:30:53]opened+sec_in_day 1713054015 [09:30:53]quantity*price = 300025 [09:30:53]sum+1 = 300027 [09:30:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.26 НСП 1% : 26.55 НДС 12% : 318.61 Наличными: 0.00 Безнал.: 3000.26 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 57 13.04.2024 09:30 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28850 ФПД: 120940248981055 1/tax-web-control/client/api/v1/ticket?date=20240413T093057&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28850&fm=120940248981055&tin=02508201610067®Number=0000138879044617&sum=300026 [09:30:54]StoreToDocumentArchive [09:30:54]shift 115 fd 28850 [09:30:54]save to /storage/0115/doc_00028850 [09:30:54]save last doc name /storage/0115/doc_00028850 to /storage/kkm_last_doc_name [09:30:54]save OK [09:30:54]Clear old archive folders... [09:30:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:30:54]tlvbuf is B6F52560 [09:30:54]SAM_PROTO_ClearQueue [09:30:54]wFMCommunicate request_size=4 [09:30:54]MH_SAM_APDU [09:30:54]CAPDU: 80 09 00 00 [09:30:54]Write to MH i2c: E2 08 00 49 27 80 09 00 00 00 00 00 00 E2 [09:30:54]Write i2c OK [09:30:54]MH_I2C_Read... [09:30:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:54]Read from MH i2c: E2 [09:30:54]MH_I2C_Read... [09:30:54]Read from MH i2c: E2 03 00 [09:30:54]MH_I2C_Read... [09:30:54]Read from MH i2c: E2 03 00 49 27 00 90 00 E4 [09:30:54]RAPDU: 90 00 [09:30:54]wFMCommunicate OK [09:30:54]SAM_PROTO_ClearQueue done [09:30:54]KKMCreateOFDPacket [09:30:54]OFDProtocolAddRootSTLVToBuf [09:30:54]FM_MakeSignedData [09:30:54]FM_MakeSignedData [09:30:54]SAM_PROTO_SignData [09:30:54]wFMCommunicate request_size=4 [09:30:54]MH_SAM_APDU [09:30:54]CAPDU: 80 0D 01 02 [09:30:54]Write to MH i2c: E2 08 00 4A 27 80 0D 01 02 00 00 00 00 EA [09:30:54]Write i2c OK [09:30:54]MH_I2C_Read... [09:30:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:54]Read from MH i2c: E2 [09:30:54]MH_I2C_Read... [09:30:54]Read from MH i2c: E2 03 00 [09:30:54]MH_I2C_Read... [09:30:54]Read from MH i2c: E2 03 00 4A 27 00 90 00 E5 [09:30:54]RAPDU: 90 00 [09:30:54]wFMCommunicate OK [09:30:54]wFMCommunicate request_size=255 [09:30:54]MH_SAM_APDU [09:30: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 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA 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 75 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 D1 50 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B2 70 00 00 35 04 06 00 6D FE 98 94 [09:30:54]Write to MH i2c: E2 02 01 4B 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 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA 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 75 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 D1 50 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B2 70 00 00 35 04 06 00 6D FE 98 94 00 00 5C [09:30:54]Write i2c OK [09:30:54]MH_I2C_Read... [09:30:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:55]Read from MH i2c: E2 [09:30:55]MH_I2C_Read... [09:30:55]Read from MH i2c: E2 03 00 [09:30:55]MH_I2C_Read... [09:30:55]Read from MH i2c: E2 03 00 4B 27 00 90 00 E6 [09:30:55]RAPDU: 90 00 [09:30:55]wFMCommunicate OK [09:30:55]wFMCommunicate request_size=7 [09:30:55]MH_SAM_APDU [09:30:55]CAPDU: 80 0D 02 02 02 5E 3F [09:30:55]Write to MH i2c: E2 0A 00 4C 27 80 0D 02 02 02 00 5E 3F 00 00 8E [09:30:55]Write i2c OK [09:30:55]MH_I2C_Read... [09:30:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:55]Read from MH i2c: E2 [09:30:55]MH_I2C_Read... [09:30:55]Read from MH i2c: E2 03 00 [09:30:55]MH_I2C_Read... [09:30:55]Read from MH i2c: E2 03 00 4C 27 00 90 00 E7 [09:30:55]RAPDU: 90 00 [09:30:55]wFMCommunicate OK [09:30:55]wFMCommunicate request_size=4 [09:30:55]MH_SAM_APDU [09:30:55]CAPDU: 80 0D 03 02 [09:30:55]Write to MH i2c: E2 08 00 4D 27 80 0D 03 02 00 00 00 00 EF [09:30:55]Write i2c OK [09:30:55]MH_I2C_Read... [09:30:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:55]Read from MH i2c: E2 [09:30:55]MH_I2C_Read... [09:30:55]Read from MH i2c: E2 0B 00 [09:30:55]MH_I2C_Read... [09:30:55]Read from MH i2c: E2 0B 00 4D 27 00 D6 58 4F CD 48 25 34 EA 90 00 C5 [09:30:55]RAPDU: D6 58 4F CD 48 25 34 EA 90 00 [09:30:55]wFMCommunicate OK [09:30:55]SAM_PROTO_SignData done [09:30:55]FM_MakeSignedData done [09:30:55]CreateOFDProtocolMessage [09:30:55]wFMCommunicate request_size=4 [09:30:55]MH_SAM_APDU [09:30:55]CAPDU: 80 11 00 00 [09:30:55]Write to MH i2c: E2 08 00 4E 27 80 11 00 00 00 00 00 00 EF [09:30:55]Write i2c OK [09:30:55]MH_I2C_Read... [09:30:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:55]Read from MH i2c: E2 [09:30:55]MH_I2C_Read... [09:30:55]Read from MH i2c: E2 17 00 [09:30:55]MH_I2C_Read... [09:30:55]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 31 35 34 90 00 3E [09:30:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:30:55]wFMCommunicate OK [09:30:55]CreateOFDProtocolMessage done [09:30:55]OFDSenderStorePacket 28850 [09:30:55]StoreOFDPacket docnum=28850 [09:30:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 75 40 04 01 82 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 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA 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 75 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 D1 50 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B2 70 00 00 35 04 06 00 6D FE 98 94 5E 3F D6 58 4F CD 48 25 34 EA [09:30:55]CheckFolder [09:30:55]dirname=/storage/ofd_packets [09:30:55]CheckFolder done [09:30:55]ProducePacketName [09:30:55]name=ofd_packets/00028850 [09:30:55]NVStorageSaveData ofd_packets/00028850 [09:30:55]File name is /storage/ofd_packets/00028850 [09:30:55]Write 298 bytes [09:30:55]NVStorageSaveData done [09:30:55]OFDSenderStorePacket done [09:30:55]KKMCreateOFDPacket done [09:30:55]NVStorageSaveData kkm_last_timestamp [09:30:55]File name is /storage/kkm_last_timestamp [09:30:55]Write 4 bytes [09:30:55]NVStorageSaveData done [09:30:55]ExternCall_PrintAddStr [09:30:55]wPrintStart [09:30:55]Write to MH i2c: 01 00 00 4F 27 76 [09:30:55]Write i2c OK [09:30:55]MH_I2C_Read... [09:30:55]Read from MH i2c: 01 [09:30:55]MH_I2C_Read... [09:30:55]Read from MH i2c: 01 07 00 [09:30:55]MH_I2C_Read... [09:30:55]Read from MH i2c: 01 07 00 4F 27 00 00 00 00 00 FF 0F 8B [09:30:55]RasterBufferAndPrint [09:30:55]line Счет N : (1)347200 [09:30:55]line ИНН: 02508201610067 [09:30:55]line Контрольно-Кассовый Чек [09:30:55]line ПРОДАЖА [09:30:55]line ТРК (МРК, ГНК) : 11 [09:30:55]line Товар: 2710194210 [09:30:55]line ДТ-К-5 [09:30:55]line 41.440 * 72.40 [09:30:55]line = 3000.26 [09:30:55]line НДС 12% НСП 1% [09:30:55]line > о реализуемом товаре [09:30:55]line ИТОГО: 3000.26 [09:30:55]line НСП 1% : 26.55 [09:30:55]line НДС 12% : 318.61 [09:30:55]line Наличными: 0.00 [09:30:55]line Безнал.: 3000.26 [09:30:55]line Место: АЗС № 108 "Партнер Нефть" [09:30:55]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:30:55]line СНО: Общий режим [09:30:55]line Чек 57 13.04.2024 09:30 [09:30:55]line Смена: 115 ФФД: 1.0 [09:30:55]line ЗНМ: 0300000027 [09:30:55]line РНМ: 0000138879044617 [09:30:55]line Версия ККМ: 001 [09:30:55]line Платежная система: О! деньги [09:30:55]line ФМ: 0000000000963154 [09:30:55]line ФД: 28850 [09:30:55]line ФПД: 120940248981055 [09:30:55]line 1/tax-web-control/client/api/v1/ticket?date=20240413T093057&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28850&fm=120940248981055&tin=02508201610067®Number=0000138879044617&sum=300026 [09:30:55]OFD Sender: Processing packet 28850 [packets to send 8, broken 7] [09:30:55]ProducePacketName [09:30:55]name=ofd_packets/00028850 [09:30:55]OFD Sender: To server: pG, [09:30:55]CommunicateWithHost lk.salyk.kg:30040 [09:30:55]ConnectInit lk.salyk.kg [09:30:55]written 0, free lines is 4095 [09:30:55]Connected sock=10 [09:30: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 31 35 34 0C 01 00 00 75 40 04 01 82 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 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA 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 75 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 D1 50 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B2 70 00 00 35 04 06 00 6D FE 98 94 5E 3F D6 58 4F CD 48 25 34 EA [09:30:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 72 7E 47 00 97 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B2 70 00 00 F4 03 04 00 79 FB 19 66 B6 04 01 00 00 B4 49 D0 45 91 DE EF B6 [09:30:55]CommunicateWithHost err = 0 [09:30:55]CheckOFDResponse [09:30:55]1017 (14) - 77093643461234 [09:30:55]1041 (16) - 0000000000963154 [09:30:55]1040 (4) - 28850 [09:30:55]1012 (4) - 13.04.2024 03:26 [09:30:55]1206 (1) - 0 [09:30:55]OFD Sender: Remove packet 28850 [09:30:55]ProducePacketName [09:30:55]name=ofd_packets/00028850 [09:30:55]NVStorageDeleteData [09:30:56]Write to MH i2c: 01 00 00 78 27 9F [09:30:56]Write i2c OK [09:30:56]MH_I2C_Read... [09:30:56]Read from MH i2c: 01 [09:30:56]MH_I2C_Read... [09:30:56]Read from MH i2c: 01 07 00 [09:30:56]MH_I2C_Read... [09:30:56]Read from MH i2c: 01 07 00 78 27 00 00 00 00 00 E3 0C 95 [09:30:56]RasterBufferAndPrint [09:30:56]line [09:30:56]line [09:30:56]line [09:30:56]line [09:30:56]line [09:30:56]written 0, free lines is 3305 [09:30:56]MH_Cut [09:30:56]Write to MH i2c: D1 01 00 7F 27 01 78 [09:30:56]Write i2c OK [09:30:56]MH_I2C_Read... [09:30:56]Read from MH i2c: D1 [09:30:56]MH_I2C_Read... [09:30:56]Read from MH i2c: D1 01 00 [09:30:56]MH_I2C_Read... [09:30:56]Read from MH i2c: D1 01 00 7F 27 00 77 [09:30:56]Write to MH i2c: 01 00 00 80 27 A7 [09:30:56]Write i2c OK [09:30:56]MH_I2C_Read... [09:30:56]OFD Sender: No OFD packet to send [09:30:56]*** Cut start [09:30:56]*** Partial cut [09:30:56]*** CUTSNS_PIN = 1 [09:30:56]*** CUTSNS_PIN = 0 [09:30:57]*** Brake cut motor [09:30:57]Read from MH i2c: 01 [09:30:57]MH_I2C_Read... [09:30:57]*** Stop cut motor [09:30:57]*** Cut end [09:30:57]Read from MH i2c: 01 07 00 [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: 01 07 00 80 27 00 00 00 00 00 FF 0F BC [09:30:57]process_action close_receipt done [09:30:57]requested_data is exist [09:30:57]produce_requested_data [09:30:57]requested_item fm.sn is exist - process it [09:30:57]wFMCommunicate request_size=4 [09:30:57]MH_SAM_APDU [09:30:57]CAPDU: 80 11 00 00 [09:30:57]Write to MH i2c: E2 08 00 81 27 80 11 00 00 00 00 00 00 22 [09:30:57]Write i2c OK [09:30:57]MH_I2C_Read... [09:30:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:57]Read from MH i2c: E2 [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: E2 17 00 [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: E2 17 00 81 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 71 [09:30:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:30:57]wFMCommunicate OK [09:30:57]requested_item fd.num is exist - process it [09:30:57]SAM_PROTO_GetFieldsCounters [09:30:57]wFMCommunicate request_size=4 [09:30:57]MH_SAM_APDU [09:30:57]CAPDU: 80 13 00 00 [09:30:57]Write to MH i2c: E2 08 00 82 27 80 13 00 00 00 00 00 00 25 [09:30:57]Write i2c OK [09:30:57]MH_I2C_Read... [09:30:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:57]Read from MH i2c: E2 [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: E2 62 00 [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: E2 62 00 82 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B2 70 00 00 0E 04 04 00 73 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 A3 [09:30: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B2 70 00 00 0E 04 04 00 73 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:30:57]wFMCommunicate OK [09:30:57]SAM_PROTO_GetFieldsCounters done [09:30:57]requested_item shift.num is exist - process it [09:30:57]requested_item shift.opened is exist - process it [09:30:57]req_shift_opened [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 83 27 80 13 01 00 00 00 00 00 27 [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 83 27 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 40 [09:30:57]RAPDU: 09 00 01 BF CF 19 66 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]req_shift_opened done [09:30:57]requested_item shift.open_date is exist - process it [09:30:57]req_shift_open_date [09:30:57]req_shift_open_date done [09:30:57]produce_requested_data done [09:30:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28850,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [09:30:57]process_action_free close_receipt [09:30:57]json_value_free [09:30:57]json_value_free done [09:30:57]process_json_proto returns [09:30:57]Send response to host [09:30:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28850,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [09:30:57]free response buf [09:30:57]execute_script done [09:30:57]execute_script returns [09:30:57]free content buf [09:30:57]Sock 9.Close socket [09:30:57]Sock 9.Thread stoped [09:31:01]OFD Sender: No OFD packet to send [09:31:06]OFD Sender: No OFD packet to send [09:31:11]OFD Sender: No OFD packet to send [09:31:16]OFD Sender: No OFD packet to send [09:31:21]OFD Sender: No OFD packet to send [09:31:26]OFD Sender: No OFD packet to send [09:31:31]OFD Sender: No OFD packet to send [09:31:33]accept exits with 7 [09:31:33]New connection [09:31:33]New thread 3066928484 created [09:31:33]Thread 3066785124 joined [09:31:33]Waiting for new connection... [09:31:33] Sock 7.Parse request [09:31:33]Sock 7.Check first char [09:31:33]Sock 7.First char is OK [09:31:33]request: POST /json_proto HTTP/1.0 [09:31:33]Method: POST [09:31:33]URL: /json_proto [09:31:33]Method is POST - this is cgi request [09:31:33]url: /json_proto [09:31:33]query_string will be loaded in cgi processing [09:31:33]execute_cgi json_proto POST (null) [09:31:33]execute_cgi path=json_proto method=POST [09:31:33]POST find Content-Length [09:31:33]Host: 172.17.33.3:8080 [09:31:33]Content-Length: 808 [09:31:33]Content-Type: application/json [09:31:33] [09:31:33]POST finish read [09:31:33]Found Content-Length = 808 [09:31:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347202", "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" : 64.30, "quantity" : 15.560, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:33]execute_script... [09:31: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)347202", "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" : 64.30, "quantity" : 15.560, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:33]POST & json_proto [09:31:33]process_json_proto [09:31:33]json parsed OK: [09:31:33]protocol is kg_v1.0 [09:31:33]action value=close_receipt [09:31:33]process_action close_receipt [09:31:33]cmd_close_receipt [09:31:33]MH_GetDate [09:31:33]Write to MH i2c: F0 00 00 84 27 9A [09:31:33]Write i2c OK [09:31:33]MH_I2C_Read... [09:31:33]Read from MH i2c: F0 [09:31:33]MH_I2C_Read... [09:31:33]Read from MH i2c: F0 09 00 [09:31:33]MH_I2C_Read... [09:31:33]Read from MH i2c: F0 09 00 84 27 00 F9 50 1A 66 23 5B 8F 65 DE [09:31:33]GetLastDocTimeStamp 1713000657 [09:31:33]current date 1713000697 [09:31:33]FM_GetShiftState [09:31:33]SAM_PROTO_GetShiftState [09:31:33]wFMCommunicate request_size=4 [09:31:33]MH_SAM_APDU [09:31:33]CAPDU: 80 13 01 00 [09:31:33]Write to MH i2c: E2 08 00 85 27 80 13 01 00 00 00 00 00 29 [09:31:33]Write i2c OK [09:31:33]MH_I2C_Read... [09:31:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:33]Read from MH i2c: E2 [09:31:33]MH_I2C_Read... [09:31:33]Read from MH i2c: E2 0E 00 [09:31:33]MH_I2C_Read... [09:31:33]Read from MH i2c: E2 0E 00 85 27 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 42 [09:31:33]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:31:33]wFMCommunicate OK [09:31:33]SAM_PROTO_GetShiftState done [09:31:33]FM_GetShiftState done [09:31:33]opened in 1712967615 [09:31:33]opened+sec_in_day 1713054015 [09:31:33]quantity*price = 100050 [09:31:33]sum+1 = 100052 [09:31:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 58 13.04.2024 09:31 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28851 ФПД: 253162875649180 1/tax-web-control/client/api/v1/ticket?date=20240413T093137&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28851&fm=253162875649180&tin=02508201610067®Number=0000138879044617&sum=100051 [09:31:34]StoreToDocumentArchive [09:31:34]shift 115 fd 28851 [09:31:34]save to /storage/0115/doc_00028851 [09:31:34]save last doc name /storage/0115/doc_00028851 to /storage/kkm_last_doc_name [09:31:34]save OK [09:31:34]Clear old archive folders... [09:31:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:34]tlvbuf is B6F4F010 [09:31:34]SAM_PROTO_ClearQueue [09:31:34]wFMCommunicate request_size=4 [09:31:34]MH_SAM_APDU [09:31:34]CAPDU: 80 09 00 00 [09:31:34]Write to MH i2c: E2 08 00 92 27 80 09 00 00 00 00 00 00 2B [09:31:34]Write i2c OK [09:31:34]MH_I2C_Read... [09:31:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:34]Read from MH i2c: E2 [09:31:34]MH_I2C_Read... [09:31:34]Read from MH i2c: E2 03 00 [09:31:34]MH_I2C_Read... [09:31:34]Read from MH i2c: E2 03 00 92 27 00 90 00 2D [09:31:34]RAPDU: 90 00 [09:31:34]wFMCommunicate OK [09:31:34]SAM_PROTO_ClearQueue done [09:31:34]KKMCreateOFDPacket [09:31:34]OFDProtocolAddRootSTLVToBuf [09:31:34]FM_MakeSignedData [09:31:34]FM_MakeSignedData [09:31:34]SAM_PROTO_SignData [09:31:34]wFMCommunicate request_size=4 [09:31:34]MH_SAM_APDU [09:31:34]CAPDU: 80 0D 01 02 [09:31:34]Write to MH i2c: E2 08 00 93 27 80 0D 01 02 00 00 00 00 33 [09:31:34]Write i2c OK [09:31:34]MH_I2C_Read... [09:31:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:34]Read from MH i2c: E2 [09:31:34]MH_I2C_Read... [09:31:34]Read from MH i2c: E2 03 00 [09:31:34]MH_I2C_Read... [09:31:34]Read from MH i2c: E2 03 00 93 27 00 90 00 2E [09:31:34]RAPDU: 90 00 [09:31:34]wFMCommunicate OK [09:31:34]wFMCommunicate request_size=255 [09:31:34]MH_SAM_APDU [09:31: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 3A 00 00 00 F4 03 04 00 F9 50 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B3 70 00 00 35 04 06 00 E6 [09:31:34]Write to MH i2c: E2 02 01 94 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 3A 00 00 00 F4 03 04 00 F9 50 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B3 70 00 00 35 04 06 00 E6 00 00 44 [09:31:34]Write i2c OK [09:31:34]MH_I2C_Read... [09:31:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:34]Read from MH i2c: E2 [09:31:34]MH_I2C_Read... [09:31:34]Read from MH i2c: E2 03 00 [09:31:34]MH_I2C_Read... [09:31:34]Read from MH i2c: E2 03 00 94 27 00 90 00 2F [09:31:34]RAPDU: 90 00 [09:31:34]wFMCommunicate OK [09:31:34]wFMCommunicate request_size=10 [09:31:34]MH_SAM_APDU [09:31:34]CAPDU: 80 0D 02 02 05 40 13 45 FC 9C [09:31:34]Write to MH i2c: E2 0D 00 95 27 80 0D 02 02 05 00 40 13 45 FC 9C 00 00 70 [09:31:34]Write i2c OK [09:31:34]MH_I2C_Read... [09:31:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:34]Read from MH i2c: E2 [09:31:34]MH_I2C_Read... [09:31:34]Read from MH i2c: E2 03 00 [09:31:34]MH_I2C_Read... [09:31:34]Read from MH i2c: E2 03 00 95 27 00 90 00 30 [09:31:34]RAPDU: 90 00 [09:31:34]wFMCommunicate OK [09:31:34]wFMCommunicate request_size=4 [09:31:34]MH_SAM_APDU [09:31:34]CAPDU: 80 0D 03 02 [09:31:34]Write to MH i2c: E2 08 00 96 27 80 0D 03 02 00 00 00 00 38 [09:31:34]Write i2c OK [09:31:34]MH_I2C_Read... [09:31:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:34]Read from MH i2c: E2 [09:31:34]MH_I2C_Read... [09:31:34]Read from MH i2c: E2 0B 00 [09:31:34]MH_I2C_Read... [09:31:34]Read from MH i2c: E2 0B 00 96 27 00 99 9D 10 D6 E1 C6 6C 46 90 00 AE [09:31:34]RAPDU: 99 9D 10 D6 E1 C6 6C 46 90 00 [09:31:34]wFMCommunicate OK [09:31:34]SAM_PROTO_SignData done [09:31:34]FM_MakeSignedData done [09:31:34]CreateOFDProtocolMessage [09:31:34]wFMCommunicate request_size=4 [09:31:34]MH_SAM_APDU [09:31:34]CAPDU: 80 11 00 00 [09:31:34]Write to MH i2c: E2 08 00 97 27 80 11 00 00 00 00 00 00 38 [09:31:34]Write i2c OK [09:31:34]MH_I2C_Read... [09:31:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:34]Read from MH i2c: E2 [09:31:34]MH_I2C_Read... [09:31:34]Read from MH i2c: E2 17 00 [09:31:34]MH_I2C_Read... [09:31:34]Read from MH i2c: E2 17 00 97 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 87 [09:31:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:31:34]wFMCommunicate OK [09:31:34]CreateOFDProtocolMessage done [09:31:34]OFDSenderStorePacket 28851 [09:31:34]StoreOFDPacket docnum=28851 [09:31:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 08 68 07 01 49 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 3A 00 00 00 F4 03 04 00 F9 50 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B3 70 00 00 35 04 06 00 E6 40 13 45 FC 9C 99 9D 10 D6 E1 C6 6C 46 [09:31:34]CheckFolder [09:31:34]dirname=/storage/ofd_packets [09:31:34]CheckFolder done [09:31:34]ProducePacketName [09:31:34]name=ofd_packets/00028851 [09:31:34]NVStorageSaveData ofd_packets/00028851 [09:31:34]File name is /storage/ofd_packets/00028851 [09:31:34]Write 301 bytes [09:31:34]NVStorageSaveData done [09:31:34]OFDSenderStorePacket done [09:31:34]KKMCreateOFDPacket done [09:31:34]NVStorageSaveData kkm_last_timestamp [09:31:34]File name is /storage/kkm_last_timestamp [09:31:34]Write 4 bytes [09:31:34]NVStorageSaveData done [09:31:34]ExternCall_PrintAddStr [09:31:34]wPrintStart [09:31:34]Write to MH i2c: 01 00 00 98 27 BF [09:31:34]Write i2c OK [09:31:34]MH_I2C_Read... [09:31:34]Read from MH i2c: 01 [09:31:34]MH_I2C_Read... [09:31:34]Read from MH i2c: 01 07 00 [09:31:34]MH_I2C_Read... [09:31:34]Read from MH i2c: 01 07 00 98 27 00 00 00 00 00 FF 0F D4 [09:31:34]RasterBufferAndPrint [09:31:34]line Счет N : (1)347202 [09:31:34]line ИНН: 02508201610067 [09:31:34]line Контрольно-Кассовый Чек [09:31:34]line ПРОДАЖА [09:31:34]line ТРК (МРК, ГНК) : 32 [09:31:34]line Товар: 2710124130 [09:31:34]line Аи-92-К-5 [09:31:34]line 15.560 * 64.30 [09:31:34]line = 1000.51 [09:31:34]line НДС 12% НСП 1% [09:31:34]line > о реализуемом товаре [09:31:34]line ИТОГО: 1000.51 [09:31:34]line НСП 1% : 8.85 [09:31:34]line НДС 12% : 106.25 [09:31:34]line Наличными: 0.00 [09:31:34]line Безнал.: 1000.51 [09:31:34]line Место: АЗС № 108 "Партнер Нефть" [09:31:34]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:31:34]line СНО: Общий режим [09:31:34]line Чек 58 13.04.2024 09:31 [09:31:34]line Смена: 115 ФФД: 1.0 [09:31:34]line ЗНМ: 0300000027 [09:31:34]line РНМ: 0000138879044617 [09:31:34]line Версия ККМ: 001 [09:31:34]line Платежная система: О! деньги [09:31:34]line ФМ: 0000000000963154 [09:31:34]line ФД: 28851 [09:31:34]line ФПД: 253162875649180 [09:31:34]line 1/tax-web-control/client/api/v1/ticket?date=20240413T093137&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28851&fm=253162875649180&tin=02508201610067®Number=0000138879044617&sum=100051 [09:31:34]written 0, free lines is 4095 [09:31:34]OFD Sender: Processing packet 28851 [packets to send 8, broken 7] [09:31:34]ProducePacketName [09:31:34]name=ofd_packets/00028851 [09:31:34]OFD Sender: To server: pG, [09:31:34]CommunicateWithHost lk.salyk.kg:30040 [09:31:34]ConnectInit lk.salyk.kg [09:31:34]Connected sock=11 [09:31: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 31 35 34 0F 01 00 00 08 68 07 01 49 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 3A 00 00 00 F4 03 04 00 F9 50 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B3 70 00 00 35 04 06 00 E6 40 13 45 FC 9C 99 9D 10 D6 E1 C6 6C 46 [09:31:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0B 7A 47 00 EF 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 31 35 34 10 04 04 00 B3 70 00 00 F4 03 04 00 A0 FB 19 66 B6 04 01 00 00 6B 1F 1A DF 9F A4 25 89 [09:31:35]CommunicateWithHost err = 0 [09:31:35]CheckOFDResponse [09:31:35]1017 (14) - 77093643461234 [09:31:35]1041 (16) - 0000000000963154 [09:31:35]1040 (4) - 28851 [09:31:35]1012 (4) - 13.04.2024 03:27 [09:31:35]1206 (1) - 0 [09:31:35]OFD Sender: Remove packet 28851 [09:31:35]ProducePacketName [09:31:35]name=ofd_packets/00028851 [09:31:35]NVStorageDeleteData [09:31:35]Write to MH i2c: 01 00 00 C1 27 E8 [09:31:35]Write i2c OK [09:31:35]MH_I2C_Read... [09:31:35]Read from MH i2c: 01 [09:31:35]MH_I2C_Read... [09:31:35]Read from MH i2c: 01 07 00 [09:31:35]MH_I2C_Read... [09:31:35]Read from MH i2c: 01 07 00 C1 27 00 00 00 00 00 DC 0C D7 [09:31:35]RasterBufferAndPrint [09:31:35]line [09:31:35]line [09:31:35]line [09:31:35]line [09:31:35]line [09:31:35]written 0, free lines is 3297 [09:31:35]MH_Cut [09:31:35]Write to MH i2c: D1 01 00 C8 27 01 C1 [09:31:35]Write i2c OK [09:31:35]MH_I2C_Read... [09:31:35]Read from MH i2c: D1 [09:31:35]MH_I2C_Read... [09:31:35]Read from MH i2c: D1 01 00 [09:31:35]MH_I2C_Read... [09:31:35]Read from MH i2c: D1 01 00 C8 27 00 C0 [09:31:35]Write to MH i2c: 01 00 00 C9 27 F0 [09:31:35]Write i2c OK [09:31:35]MH_I2C_Read... [09:31:35]OFD Sender: No OFD packet to send [09:31:35]*** Cut start [09:31:35]*** Partial cut [09:31:35]*** CUTSNS_PIN = 1 [09:31:36]*** CUTSNS_PIN = 0 [09:31:36]*** Brake cut motor [09:31:36]Read from MH i2c: 01 [09:31:36]MH_I2C_Read... [09:31:36]*** Stop cut motor [09:31:36]*** Cut end [09:31:36]Read from MH i2c: 01 07 00 [09:31:36]MH_I2C_Read... [09:31:36]Read from MH i2c: 01 07 00 C9 27 00 00 00 00 00 FF 0F 05 [09:31:36]process_action close_receipt done [09:31:36]requested_data is exist [09:31:36]produce_requested_data [09:31:36]requested_item fm.sn is exist - process it [09:31:36]wFMCommunicate request_size=4 [09:31:36]MH_SAM_APDU [09:31:36]CAPDU: 80 11 00 00 [09:31:36]Write to MH i2c: E2 08 00 CA 27 80 11 00 00 00 00 00 00 6B [09:31:36]Write i2c OK [09:31:36]MH_I2C_Read... [09:31:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:36]Read from MH i2c: E2 [09:31:36]MH_I2C_Read... [09:31:36]Read from MH i2c: E2 17 00 [09:31:36]MH_I2C_Read... [09:31:36]Read from MH i2c: E2 17 00 CA 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BA [09:31:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:31:36]wFMCommunicate OK [09:31:36]requested_item fd.num is exist - process it [09:31:36]SAM_PROTO_GetFieldsCounters [09:31:36]wFMCommunicate request_size=4 [09:31:36]MH_SAM_APDU [09:31:36]CAPDU: 80 13 00 00 [09:31:36]Write to MH i2c: E2 08 00 CB 27 80 13 00 00 00 00 00 00 6E [09:31:36]Write i2c OK [09:31:36]MH_I2C_Read... [09:31:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:36]Read from MH i2c: E2 [09:31:36]MH_I2C_Read... [09:31:36]Read from MH i2c: E2 62 00 [09:31:36]MH_I2C_Read... [09:31:36]Read from MH i2c: E2 62 00 CB 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B3 70 00 00 0E 04 04 00 73 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 F0 [09:31: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B3 70 00 00 0E 04 04 00 73 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:31:36]wFMCommunicate OK [09:31:36]SAM_PROTO_GetFieldsCounters done [09:31:36]requested_item shift.num is exist - process it [09:31:36]requested_item shift.opened is exist - process it [09:31:36]req_shift_opened [09:31:36]FM_GetShiftState [09:31:36]SAM_PROTO_GetShiftState [09:31:36]wFMCommunicate request_size=4 [09:31:36]MH_SAM_APDU [09:31:36]CAPDU: 80 13 01 00 [09:31:36]Write to MH i2c: E2 08 00 CC 27 80 13 01 00 00 00 00 00 70 [09:31:36]Write i2c OK [09:31:36]MH_I2C_Read... [09:31:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:36]Read from MH i2c: E2 [09:31:36]MH_I2C_Read... [09:31:36]Read from MH i2c: E2 0E 00 [09:31:36]MH_I2C_Read... [09:31:36]Read from MH i2c: E2 0E 00 CC 27 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 89 [09:31:36]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:31:36]wFMCommunicate OK [09:31:36]SAM_PROTO_GetShiftState done [09:31:36]FM_GetShiftState done [09:31:36]req_shift_opened done [09:31:36]requested_item shift.open_date is exist - process it [09:31:36]req_shift_open_date [09:31:36]req_shift_open_date done [09:31:36]produce_requested_data done [09:31:36]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28851,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [09:31:36]process_action_free close_receipt [09:31:36]json_value_free [09:31:36]json_value_free done [09:31:36]process_json_proto returns [09:31:36]Send response to host [09:31:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28851,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [09:31:36]free response buf [09:31:36]execute_script done [09:31:36]execute_script returns [09:31:36]free content buf [09:31:36]Sock 7.Close socket [09:31:36]Sock 7.Thread stoped [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:52]accept exits with 9 [09:33:52]New connection [09:33:52]New thread 3066785124 created [09:33:52]Thread 3066928484 joined [09:33:52]Waiting for new connection... [09:33:52] Sock 9.Parse request [09:33:52]Sock 9.Check first char [09:33:52]Sock 9.First char is OK [09:33:52]request: POST /json_proto HTTP/1.0 [09:33:52]Method: POST [09:33:52]URL: /json_proto [09:33:52]Method is POST - this is cgi request [09:33:52]url: /json_proto [09:33:52]query_string will be loaded in cgi processing [09:33:52]execute_cgi json_proto POST (null) [09:33:52]execute_cgi path=json_proto method=POST [09:33:52]POST find Content-Length [09:33:52]Host: 172.17.33.3:8080 [09:33:52]Content-Length: 670 [09:33:52]Content-Type: application/json [09:33:52] [09:33:52]POST finish read [09:33:52]Found Content-Length = 670 [09:33:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "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:33:52]execute_script... [09:33: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)347203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "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:33:52]POST & json_proto [09:33:52]process_json_proto [09:33:52]json parsed OK: [09:33:52]protocol is kg_v1.0 [09:33:52]action value=close_receipt [09:33:52]process_action close_receipt [09:33:52]cmd_close_receipt [09:33:52]MH_GetDate [09:33:52]Write to MH i2c: F0 00 00 CD 27 E3 [09:33:52]Write i2c OK [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: F0 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: F0 09 00 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: F0 09 00 CD 27 00 84 51 1A 66 23 5B 8F 65 B3 [09:33:52]GetLastDocTimeStamp 1713000697 [09:33:52]current date 1713000836 [09:33:52]FM_GetShiftState [09:33:52]SAM_PROTO_GetShiftState [09:33:52]wFMCommunicate request_size=4 [09:33:52]MH_SAM_APDU [09:33:52]CAPDU: 80 13 01 00 [09:33:52]Write to MH i2c: E2 08 00 CE 27 80 13 01 00 00 00 00 00 72 [09:33:52]Write i2c OK [09:33:52]MH_I2C_Read... [09:33:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:52]Read from MH i2c: E2 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: E2 0E 00 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: E2 0E 00 CE 27 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 8B [09:33:52]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:33:52]wFMCommunicate OK [09:33:52]SAM_PROTO_GetShiftState done [09:33:52]FM_GetShiftState done [09:33:52]opened in 1712967615 [09:33:52]opened+sec_in_day 1713054015 [09:33:52]quantity*price = 50019 [09:33:52]sum+1 = 50021 [09:33:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 59 13.04.2024 09:33 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28852 ФПД: 89351612567603 1/tax-web-control/client/api/v1/ticket?date=20240413T093356&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28852&fm=89351612567603&tin=02508201610067®Number=0000138879044617&sum=50000 [09:33:53]StoreToDocumentArchive [09:33:53]shift 115 fd 28852 [09:33:53]save to /storage/0115/doc_00028852 [09:33:53]save last doc name /storage/0115/doc_00028852 to /storage/kkm_last_doc_name [09:33:53]save OK [09:33:53]Clear old archive folders... [09:33:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:33:53]tlvbuf is B6DA2010 [09:33:53]SAM_PROTO_ClearQueue [09:33:53]wFMCommunicate request_size=4 [09:33:53]MH_SAM_APDU [09:33:53]CAPDU: 80 09 00 00 [09:33:53]Write to MH i2c: E2 08 00 DB 27 80 09 00 00 00 00 00 00 74 [09:33:53]Write i2c OK [09:33:53]MH_I2C_Read... [09:33:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:53]Read from MH i2c: E2 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 03 00 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 03 00 DB 27 00 90 00 76 [09:33:53]RAPDU: 90 00 [09:33:53]wFMCommunicate OK [09:33:53]SAM_PROTO_ClearQueue done [09:33:53]KKMCreateOFDPacket [09:33:53]OFDProtocolAddRootSTLVToBuf [09:33:53]FM_MakeSignedData [09:33:53]FM_MakeSignedData [09:33:53]SAM_PROTO_SignData [09:33:53]wFMCommunicate request_size=4 [09:33:53]MH_SAM_APDU [09:33:53]CAPDU: 80 0D 01 02 [09:33:53]Write to MH i2c: E2 08 00 DC 27 80 0D 01 02 00 00 00 00 7C [09:33:53]Write i2c OK [09:33:53]MH_I2C_Read... [09:33:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:53]Read from MH i2c: E2 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 03 00 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 03 00 DC 27 00 90 00 77 [09:33:53]RAPDU: 90 00 [09:33:53]wFMCommunicate OK [09:33:53]wFMCommunicate request_size=255 [09:33:53]MH_SAM_APDU [09:33:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3B 00 00 00 F4 03 04 00 84 51 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B4 70 00 00 35 04 06 00 [09:33:53]Write to MH i2c: E2 02 01 DD 27 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3B 00 00 00 F4 03 04 00 84 51 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B4 70 00 00 35 04 06 00 00 00 F5 [09:33:53]Write i2c OK [09:33:53]MH_I2C_Read... [09:33:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:53]Read from MH i2c: E2 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 03 00 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 03 00 DD 27 00 90 00 78 [09:33:53]RAPDU: 90 00 [09:33:53]wFMCommunicate OK [09:33:53]wFMCommunicate request_size=11 [09:33:53]MH_SAM_APDU [09:33:53]CAPDU: 80 0D 02 02 06 51 43 CB 20 90 33 [09:33:53]Write to MH i2c: E2 0E 00 DE 27 80 0D 02 02 06 00 51 43 CB 20 90 33 00 00 CD [09:33:53]Write i2c OK [09:33:53]MH_I2C_Read... [09:33:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:53]Read from MH i2c: E2 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 03 00 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 03 00 DE 27 00 90 00 79 [09:33:53]RAPDU: 90 00 [09:33:53]wFMCommunicate OK [09:33:53]wFMCommunicate request_size=4 [09:33:53]MH_SAM_APDU [09:33:53]CAPDU: 80 0D 03 02 [09:33:53]Write to MH i2c: E2 08 00 DF 27 80 0D 03 02 00 00 00 00 81 [09:33:53]Write i2c OK [09:33:53]MH_I2C_Read... [09:33:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:53]Read from MH i2c: E2 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 0B 00 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 0B 00 DF 27 00 78 62 B0 CD C1 5B 95 90 90 00 1A [09:33:53]RAPDU: 78 62 B0 CD C1 5B 95 90 90 00 [09:33:53]wFMCommunicate OK [09:33:53]SAM_PROTO_SignData done [09:33:53]FM_MakeSignedData done [09:33:53]CreateOFDProtocolMessage [09:33:53]wFMCommunicate request_size=4 [09:33:53]MH_SAM_APDU [09:33:53]CAPDU: 80 11 00 00 [09:33:53]Write to MH i2c: E2 08 00 E0 27 80 11 00 00 00 00 00 00 81 [09:33:53]Write i2c OK [09:33:53]MH_I2C_Read... [09:33:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:53]Read from MH i2c: E2 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 17 00 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: E2 17 00 E0 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D0 [09:33:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:33:53]wFMCommunicate OK [09:33:53]CreateOFDProtocolMessage done [09:33:53]OFDSenderStorePacket 28852 [09:33:53]StoreOFDPacket docnum=28852 [09:33:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 C9 54 08 01 AB 57 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3B 00 00 00 F4 03 04 00 84 51 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B4 70 00 00 35 04 06 00 51 43 CB 20 90 33 78 62 B0 CD C1 5B 95 90 [09:33:53]CheckFolder [09:33:53]dirname=/storage/ofd_packets [09:33:53]CheckFolder done [09:33:53]ProducePacketName [09:33:53]name=ofd_packets/00028852 [09:33:53]NVStorageSaveData ofd_packets/00028852 [09:33:53]File name is /storage/ofd_packets/00028852 [09:33:53]Write 302 bytes [09:33:53]NVStorageSaveData done [09:33:53]OFDSenderStorePacket done [09:33:53]KKMCreateOFDPacket done [09:33:53]NVStorageSaveData kkm_last_timestamp [09:33:53]File name is /storage/kkm_last_timestamp [09:33:53]Write 4 bytes [09:33:53]NVStorageSaveData done [09:33:53]ExternCall_PrintAddStr [09:33:53]wPrintStart [09:33:53]Write to MH i2c: 01 00 00 E1 27 08 [09:33:53]Write i2c OK [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: 01 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: 01 07 00 [09:33:53]MH_I2C_Read... [09:33:53]Read from MH i2c: 01 07 00 E1 27 00 00 00 00 00 FF 0F 1D [09:33:53]RasterBufferAndPrint [09:33:53]line Счет N : (1)347203 [09:33:53]line ИНН: 02508201610067 [09:33:53]line Контрольно-Кассовый Чек [09:33:53]line ПРОДАЖА [09:33:53]line ТРК (МРК, ГНК) : 31 [09:33:53]line Товар: 2710124130 [09:33:53]line SUPER-92-К-5 [09:33:53]line 7.660 * 65.30 [09:33:53]line = 500.20 [09:33:53]line НДС 12% НСП 1% [09:33:53]line > о реализуемом товаре [09:33:53]line ОКРУГЛЕНИЕ: -0.20 [09:33:53]line ИТОГО: 500.00 [09:33:53]line Внесено: 500.00 [09:33:53]line СДАЧА: 0.00 [09:33:53]line НСП 1% : 4.43 [09:33:53]line НДС 12% : 53.12 [09:33:53]line Наличными: 500.00 [09:33:53]line Безнал.: 0.00 [09:33:53]line Место: АЗС № 108 "Партнер Нефть" [09:33:53]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:33:53]line СНО: Общий режим [09:33:53]line Чек 59 13.04.2024 09:33 [09:33:53]line Смена: 115 ФФД: 1.0 [09:33:53]line ЗНМ: 0300000027 [09:33:53]line РНМ: 0000138879044617 [09:33:53]line Версия ККМ: 001 [09:33:53]line ФМ: 0000000000963154 [09:33:53]line ФД: 28852 [09:33:53]line ФПД: 89351612567603 [09:33:53]line 1/tax-web-control/client/api/v1/ticket?date=20240413T093356&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28852&fm=89351612567603&tin=02508201610067®Number=0000138879044617&sum=50000 [09:33:54]OFD Sender: Processing packet 28852 [packets to send 8, broken 7] [09:33:54]ProducePacketName [09:33:54]name=ofd_packets/00028852 [09:33:54]OFD Sender: To server: pG, [09:33:54]CommunicateWithHost lk.salyk.kg:30040 [09:33:54]ConnectInit lk.salyk.kg [09:33:54]written 0, free lines is 4095 [09:33:54]Connected sock=10 [09:33: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 31 35 34 10 01 00 00 C9 54 08 01 AB 57 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3B 00 00 00 F4 03 04 00 84 51 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B4 70 00 00 35 04 06 00 51 43 CB 20 90 33 78 62 B0 CD C1 5B 95 90 [09:33:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 55 21 47 00 2B 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 31 35 34 10 04 04 00 B4 70 00 00 F4 03 04 00 2B FC 19 66 B6 04 01 00 00 86 8F E5 0E 8D BC 6F 33 [09:33:54]CommunicateWithHost err = 0 [09:33:54]CheckOFDResponse [09:33:54]1017 (14) - 77093643461234 [09:33:54]1041 (16) - 0000000000963154 [09:33:54]1040 (4) - 28852 [09:33:54]1012 (4) - 13.04.2024 03:29 [09:33:54]1206 (1) - 0 [09:33:54]OFD Sender: Remove packet 28852 [09:33:54]ProducePacketName [09:33:54]name=ofd_packets/00028852 [09:33:54]NVStorageDeleteData [09:33:54]Write to MH i2c: 01 00 00 0B 28 33 [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: 01 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: 01 07 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: 01 07 00 0B 28 00 00 00 00 00 D2 0C 18 [09:33:54]RasterBufferAndPrint [09:33:54]line [09:33:54]line [09:33:54]line [09:33:54]line [09:33:54]line [09:33:54]written 0, free lines is 3288 [09:33:54]MH_Cut [09:33:54]Write to MH i2c: D1 01 00 12 28 01 0C [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: D1 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: D1 01 00 [09:33:54]MH_I2C_Read... [09:33:54]Read from MH i2c: D1 01 00 12 28 00 0B [09:33:54]Write to MH i2c: 01 00 00 13 28 3B [09:33:54]Write i2c OK [09:33:54]MH_I2C_Read... [09:33:55]OFD Sender: No OFD packet to send [09:33:55]*** Cut start [09:33:55]*** Partial cut [09:33:55]*** CUTSNS_PIN = 1 [09:33:55]*** CUTSNS_PIN = 0 [09:33:55]*** Brake cut motor [09:33:56]Read from MH i2c: 01 [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: 01 07 00 [09:33:56]MH_I2C_Read... [09:33:56]*** Stop cut motor [09:33:56]*** Cut end [09:33:56]Read from MH i2c: 01 07 00 13 28 00 00 00 00 00 FF 0F 50 [09:33:56]process_action close_receipt done [09:33:56]requested_data is exist [09:33:56]produce_requested_data [09:33:56]requested_item fm.sn is exist - process it [09:33:56]wFMCommunicate request_size=4 [09:33:56]MH_SAM_APDU [09:33:56]CAPDU: 80 11 00 00 [09:33:56]Write to MH i2c: E2 08 00 14 28 80 11 00 00 00 00 00 00 B6 [09:33:56]Write i2c OK [09:33:56]MH_I2C_Read... [09:33:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:56]Read from MH i2c: E2 [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: E2 17 00 [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: E2 17 00 14 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 05 [09:33:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:33:56]wFMCommunicate OK [09:33:56]requested_item fd.num is exist - process it [09:33:56]SAM_PROTO_GetFieldsCounters [09:33:56]wFMCommunicate request_size=4 [09:33:56]MH_SAM_APDU [09:33:56]CAPDU: 80 13 00 00 [09:33:56]Write to MH i2c: E2 08 00 15 28 80 13 00 00 00 00 00 00 B9 [09:33:56]Write i2c OK [09:33:56]MH_I2C_Read... [09:33:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:56]Read from MH i2c: E2 [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: E2 62 00 [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: E2 62 00 15 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B4 70 00 00 0E 04 04 00 73 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 3F [09:33: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B4 70 00 00 0E 04 04 00 73 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:33:56]wFMCommunicate OK [09:33:56]SAM_PROTO_GetFieldsCounters done [09:33:56]requested_item shift.num is exist - process it [09:33:56]requested_item shift.opened is exist - process it [09:33:56]req_shift_opened [09:33:56]FM_GetShiftState [09:33:56]SAM_PROTO_GetShiftState [09:33:56]wFMCommunicate request_size=4 [09:33:56]MH_SAM_APDU [09:33:56]CAPDU: 80 13 01 00 [09:33:56]Write to MH i2c: E2 08 00 16 28 80 13 01 00 00 00 00 00 BB [09:33:56]Write i2c OK [09:33:56]MH_I2C_Read... [09:33:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:56]Read from MH i2c: E2 [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: E2 0E 00 [09:33:56]MH_I2C_Read... [09:33:56]Read from MH i2c: E2 0E 00 16 28 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D4 [09:33:56]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:33:56]wFMCommunicate OK [09:33:56]SAM_PROTO_GetShiftState done [09:33:56]FM_GetShiftState done [09:33:56]req_shift_opened done [09:33:56]requested_item shift.open_date is exist - process it [09:33:56]req_shift_open_date [09:33:56]req_shift_open_date done [09:33:56]produce_requested_data done [09:33:56]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28852,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [09:33:56]process_action_free close_receipt [09:33:56]json_value_free [09:33:56]json_value_free done [09:33:56]process_json_proto returns [09:33:56]Send response to host [09:33:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28852,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [09:33:56]free response buf [09:33:56]execute_script done [09:33:56]execute_script returns [09:33:56]free content buf [09:33:56]Sock 9.Close socket [09:33:56]Sock 9.Thread stoped [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:20]accept exits with 7 [09:35:20]New connection [09:35:20]New thread 3066928484 created [09:35:20]Thread 3066785124 joined [09:35:20]Waiting for new connection... [09:35:20] Sock 7.Parse request [09:35:20]Sock 7.Check first char [09:35:20]Sock 7.First char is OK [09:35:20]request: POST /json_proto HTTP/1.0 [09:35:20]Method: POST [09:35:20]URL: /json_proto [09:35:20]Method is POST - this is cgi request [09:35:20]url: /json_proto [09:35:20]query_string will be loaded in cgi processing [09:35:20]execute_cgi json_proto POST (null) [09:35:20]execute_cgi path=json_proto method=POST [09:35:20]POST find Content-Length [09:35:20]Host: 172.17.33.3:8080 [09:35:20]Content-Length: 805 [09:35:20]Content-Type: application/json [09:35:20] [09:35:20]POST finish read [09:35:20]Found Content-Length = 805 [09:35:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347204", "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" : 64.30, "quantity" : 7.780, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:20]execute_script... [09:35:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347204", "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" : 64.30, "quantity" : 7.780, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:20]POST & json_proto [09:35:20]process_json_proto [09:35:20]json parsed OK: [09:35:20]protocol is kg_v1.0 [09:35:20]action value=close_receipt [09:35:20]process_action close_receipt [09:35:20]cmd_close_receipt [09:35:20]MH_GetDate [09:35:20]Write to MH i2c: F0 00 00 17 28 2E [09:35:20]Write i2c OK [09:35:20]MH_I2C_Read... [09:35:20]Read from MH i2c: F0 [09:35:20]MH_I2C_Read... [09:35:20]Read from MH i2c: F0 09 00 [09:35:20]MH_I2C_Read... [09:35:20]Read from MH i2c: F0 09 00 17 28 00 DC 51 1A 66 23 5B 8F 65 56 [09:35:20]GetLastDocTimeStamp 1713000836 [09:35:20]current date 1713000924 [09:35:20]FM_GetShiftState [09:35:20]SAM_PROTO_GetShiftState [09:35:20]wFMCommunicate request_size=4 [09:35:20]MH_SAM_APDU [09:35:20]CAPDU: 80 13 01 00 [09:35:20]Write to MH i2c: E2 08 00 18 28 80 13 01 00 00 00 00 00 BD [09:35:20]Write i2c OK [09:35:20]MH_I2C_Read... [09:35:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:20]Read from MH i2c: E2 [09:35:20]MH_I2C_Read... [09:35:20]Read from MH i2c: E2 0E 00 [09:35:20]MH_I2C_Read... [09:35:20]Read from MH i2c: E2 0E 00 18 28 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D6 [09:35:20]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:35:20]wFMCommunicate OK [09:35:20]SAM_PROTO_GetShiftState done [09:35:20]FM_GetShiftState done [09:35:20]opened in 1712967615 [09:35:20]opened+sec_in_day 1713054015 [09:35:20]quantity*price = 50025 [09:35:20]sum+1 = 50026 [09:35:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 60 13.04.2024 09:35 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28853 ФПД: 136290586538932 1/tax-web-control/client/api/v1/ticket?date=20240413T093524&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28853&fm=136290586538932&tin=02508201610067®Number=0000138879044617&sum=50025 [09:35:22]StoreToDocumentArchive [09:35:22]shift 115 fd 28853 [09:35:22]save to /storage/0115/doc_00028853 [09:35:22]save last doc name /storage/0115/doc_00028853 to /storage/kkm_last_doc_name [09:35:22]save OK [09:35:22]Clear old archive folders... [09:35:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:35:22]tlvbuf is B6F4F040 [09:35:22]SAM_PROTO_ClearQueue [09:35:22]wFMCommunicate request_size=4 [09:35:22]MH_SAM_APDU [09:35:22]CAPDU: 80 09 00 00 [09:35:22]Write to MH i2c: E2 08 00 25 28 80 09 00 00 00 00 00 00 BF [09:35:22]Write i2c OK [09:35:22]MH_I2C_Read... [09:35:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:22]Read from MH i2c: E2 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 03 00 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 03 00 25 28 00 90 00 C1 [09:35:22]RAPDU: 90 00 [09:35:22]wFMCommunicate OK [09:35:22]SAM_PROTO_ClearQueue done [09:35:22]KKMCreateOFDPacket [09:35:22]OFDProtocolAddRootSTLVToBuf [09:35:22]FM_MakeSignedData [09:35:22]FM_MakeSignedData [09:35:22]SAM_PROTO_SignData [09:35:22]wFMCommunicate request_size=4 [09:35:22]MH_SAM_APDU [09:35:22]CAPDU: 80 0D 01 02 [09:35:22]Write to MH i2c: E2 08 00 26 28 80 0D 01 02 00 00 00 00 C7 [09:35:22]Write i2c OK [09:35:22]MH_I2C_Read... [09:35:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:22]Read from MH i2c: E2 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 03 00 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 03 00 26 28 00 90 00 C2 [09:35:22]RAPDU: 90 00 [09:35:22]wFMCommunicate OK [09:35:22]wFMCommunicate request_size=255 [09:35:22]MH_SAM_APDU [09:35: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 3C 00 00 00 F4 03 04 00 DC 51 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B5 70 00 00 35 04 06 00 7B [09:35:22]Write to MH i2c: E2 02 01 27 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 3C 00 00 00 F4 03 04 00 DC 51 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B5 70 00 00 35 04 06 00 7B 00 00 B7 [09:35:22]Write i2c OK [09:35:22]MH_I2C_Read... [09:35:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:22]Read from MH i2c: E2 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 03 00 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 03 00 27 28 00 90 00 C3 [09:35:22]RAPDU: 90 00 [09:35:22]wFMCommunicate OK [09:35:22]wFMCommunicate request_size=10 [09:35:22]MH_SAM_APDU [09:35:22]CAPDU: 80 0D 02 02 05 F4 9F FF 33 B4 [09:35:22]Write to MH i2c: E2 0D 00 28 28 80 0D 02 02 05 00 F4 9F FF 33 B4 00 00 4D [09:35:22]Write i2c OK [09:35:22]MH_I2C_Read... [09:35:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:22]Read from MH i2c: E2 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 03 00 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 03 00 28 28 00 90 00 C4 [09:35:22]RAPDU: 90 00 [09:35:22]wFMCommunicate OK [09:35:22]wFMCommunicate request_size=4 [09:35:22]MH_SAM_APDU [09:35:22]CAPDU: 80 0D 03 02 [09:35:22]Write to MH i2c: E2 08 00 29 28 80 0D 03 02 00 00 00 00 CC [09:35:22]Write i2c OK [09:35:22]MH_I2C_Read... [09:35:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:22]Read from MH i2c: E2 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 0B 00 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 0B 00 29 28 00 3B FD 1E 21 58 E1 9C D6 90 00 EF [09:35:22]RAPDU: 3B FD 1E 21 58 E1 9C D6 90 00 [09:35:22]wFMCommunicate OK [09:35:22]SAM_PROTO_SignData done [09:35:22]FM_MakeSignedData done [09:35:22]CreateOFDProtocolMessage [09:35:22]wFMCommunicate request_size=4 [09:35:22]MH_SAM_APDU [09:35:22]CAPDU: 80 11 00 00 [09:35:22]Write to MH i2c: E2 08 00 2A 28 80 11 00 00 00 00 00 00 CC [09:35:22]Write i2c OK [09:35:22]MH_I2C_Read... [09:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:22]Read from MH i2c: E2 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 17 00 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 17 00 2A 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1B [09:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:35:22]wFMCommunicate OK [09:35:22]CreateOFDProtocolMessage done [09:35:22]OFDSenderStorePacket 28853 [09:35:22]StoreOFDPacket docnum=28853 [09:35:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 BA 85 07 01 0B 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 3C 00 00 00 F4 03 04 00 DC 51 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B5 70 00 00 35 04 06 00 7B F4 9F FF 33 B4 3B FD 1E 21 58 E1 9C D6 [09:35:22]CheckFolder [09:35:22]dirname=/storage/ofd_packets [09:35:22]CheckFolder done [09:35:22]ProducePacketName [09:35:22]name=ofd_packets/00028853 [09:35:22]NVStorageSaveData ofd_packets/00028853 [09:35:22]File name is /storage/ofd_packets/00028853 [09:35:22]Write 301 bytes [09:35:22]NVStorageSaveData done [09:35:22]OFDSenderStorePacket done [09:35:22]KKMCreateOFDPacket done [09:35:22]NVStorageSaveData kkm_last_timestamp [09:35:22]File name is /storage/kkm_last_timestamp [09:35:22]Write 4 bytes [09:35:22]NVStorageSaveData done [09:35:22]ExternCall_PrintAddStr [09:35:22]wPrintStart [09:35:22]Write to MH i2c: 01 00 00 2B 28 53 [09:35:22]Write i2c OK [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: 01 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: 01 07 00 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: 01 07 00 2B 28 00 00 00 00 00 FF 0F 68 [09:35:22]RasterBufferAndPrint [09:35:22]line Счет N : (1)347204 [09:35:22]line ИНН: 02508201610067 [09:35:22]line Контрольно-Кассовый Чек [09:35:22]line ПРОДАЖА [09:35:22]line ТРК (МРК, ГНК) : 42 [09:35:22]line Товар: 2710124130 [09:35:22]line Аи-92-К-5 [09:35:22]line 7.780 * 64.30 [09:35:22]line = 500.25 [09:35:22]line НДС 12% НСП 1% [09:35:22]line > о реализуемом товаре [09:35:22]line ИТОГО: 500.25 [09:35:22]line НСП 1% : 4.43 [09:35:22]line НДС 12% : 53.12 [09:35:22]line Наличными: 0.00 [09:35:22]line Безнал.: 500.25 [09:35:22]line Место: АЗС № 108 "Партнер Нефть" [09:35:22]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:35:22]line СНО: Общий режим [09:35:22]line Чек 60 13.04.2024 09:35 [09:35:22]line Смена: 115 ФФД: 1.0 [09:35:22]line ЗНМ: 0300000027 [09:35:22]line РНМ: 0000138879044617 [09:35:22]line Версия ККМ: 001 [09:35:22]line Платежная система: О! деньги [09:35:22]line ФМ: 0000000000963154 [09:35:22]line ФД: 28853 [09:35:22]line ФПД: 136290586538932 [09:35:22]line 1/tax-web-control/client/api/v1/ticket?date=20240413T093524&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28853&fm=136290586538932&tin=02508201610067®Number=0000138879044617&sum=50025 [09:35:22]OFD Sender: Processing packet 28853 [packets to send 8, broken 7] [09:35:22]ProducePacketName [09:35:22]name=ofd_packets/00028853 [09:35:22]OFD Sender: To server: pG, [09:35:22]CommunicateWithHost lk.salyk.kg:30040 [09:35:22]ConnectInit lk.salyk.kg [09:35:22]written 0, free lines is 4095 [09:35:22]Connected sock=10 [09:35: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 31 35 34 0F 01 00 00 BA 85 07 01 0B 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 3C 00 00 00 F4 03 04 00 DC 51 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B5 70 00 00 35 04 06 00 7B F4 9F FF 33 B4 3B FD 1E 21 58 E1 9C D6 [09:35:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 95 E4 47 00 FC 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 31 35 34 10 04 04 00 B5 70 00 00 F4 03 04 00 84 FC 19 66 B6 04 01 00 00 04 38 A1 4C 13 29 7D 52 [09:35:23]CommunicateWithHost err = 0 [09:35:23]CheckOFDResponse [09:35:23]1017 (14) - 77093643461234 [09:35:23]1041 (16) - 0000000000963154 [09:35:23]1040 (4) - 28853 [09:35:23]1012 (4) - 13.04.2024 03:31 [09:35:23]1206 (1) - 0 [09:35:23]OFD Sender: Remove packet 28853 [09:35:23]ProducePacketName [09:35:23]name=ofd_packets/00028853 [09:35:23]NVStorageDeleteData [09:35:23]Write to MH i2c: 01 00 00 54 28 7C [09:35:23]Write i2c OK [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: 01 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: 01 07 00 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: 01 07 00 54 28 00 00 00 00 00 E9 0C 78 [09:35:23]RasterBufferAndPrint [09:35:23]line [09:35:23]line [09:35:23]line [09:35:23]line [09:35:23]line [09:35:23]written 0, free lines is 3312 [09:35:23]MH_Cut [09:35:23]Write to MH i2c: D1 01 00 5B 28 01 55 [09:35:23]Write i2c OK [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: D1 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: D1 01 00 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: D1 01 00 5B 28 00 54 [09:35:23]Write to MH i2c: 01 00 00 5C 28 84 [09:35:23]Write i2c OK [09:35:23]MH_I2C_Read... [09:35:23]OFD Sender: No OFD packet to send [09:35:24]*** Cut start [09:35:24]*** Partial cut [09:35:24]*** CUTSNS_PIN = 1 [09:35:24]*** CUTSNS_PIN = 0 [09:35:24]*** Brake cut motor [09:35:24]Read from MH i2c: 01 [09:35:24]MH_I2C_Read... [09:35:24]*** Stop cut motor [09:35:24]*** Cut end [09:35:24]Read from MH i2c: 01 07 00 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: 01 07 00 5C 28 00 00 00 00 00 FF 0F 99 [09:35:24]process_action close_receipt done [09:35:24]requested_data is exist [09:35:24]produce_requested_data [09:35:24]requested_item fm.sn is exist - process it [09:35:24]wFMCommunicate request_size=4 [09:35:24]MH_SAM_APDU [09:35:24]CAPDU: 80 11 00 00 [09:35:24]Write to MH i2c: E2 08 00 5D 28 80 11 00 00 00 00 00 00 FF [09:35:24]Write i2c OK [09:35:24]MH_I2C_Read... [09:35:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:24]Read from MH i2c: E2 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: E2 17 00 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: E2 17 00 5D 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4E [09:35:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:35:24]wFMCommunicate OK [09:35:24]requested_item fd.num is exist - process it [09:35:24]SAM_PROTO_GetFieldsCounters [09:35:24]wFMCommunicate request_size=4 [09:35:24]MH_SAM_APDU [09:35:24]CAPDU: 80 13 00 00 [09:35:24]Write to MH i2c: E2 08 00 5E 28 80 13 00 00 00 00 00 00 02 [09:35:24]Write i2c OK [09:35:24]MH_I2C_Read... [09:35:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:24]Read from MH i2c: E2 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: E2 62 00 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: E2 62 00 5E 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B5 70 00 00 0E 04 04 00 73 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 8C [09:35: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B5 70 00 00 0E 04 04 00 73 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:35:25]wFMCommunicate OK [09:35:25]SAM_PROTO_GetFieldsCounters done [09:35:25]requested_item shift.num is exist - process it [09:35:25]requested_item shift.opened is exist - process it [09:35:25]req_shift_opened [09:35:25]FM_GetShiftState [09:35:25]SAM_PROTO_GetShiftState [09:35:25]wFMCommunicate request_size=4 [09:35:25]MH_SAM_APDU [09:35:25]CAPDU: 80 13 01 00 [09:35:25]Write to MH i2c: E2 08 00 5F 28 80 13 01 00 00 00 00 00 04 [09:35:25]Write i2c OK [09:35:25]MH_I2C_Read... [09:35:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:25]Read from MH i2c: E2 [09:35:25]MH_I2C_Read... [09:35:25]Read from MH i2c: E2 0E 00 [09:35:25]MH_I2C_Read... [09:35:25]Read from MH i2c: E2 0E 00 5F 28 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 1D [09:35:25]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:35:25]wFMCommunicate OK [09:35:25]SAM_PROTO_GetShiftState done [09:35:25]FM_GetShiftState done [09:35:25]req_shift_opened done [09:35:25]requested_item shift.open_date is exist - process it [09:35:25]req_shift_open_date [09:35:25]req_shift_open_date done [09:35:25]produce_requested_data done [09:35:25]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28853,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [09:35:25]process_action_free close_receipt [09:35:25]json_value_free [09:35:25]json_value_free done [09:35:25]process_json_proto returns [09:35:25]Send response to host [09:35:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28853,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [09:35:25]free response buf [09:35:25]execute_script done [09:35:25]execute_script returns [09:35:25]free content buf [09:35:25]Sock 7.Close socket [09:35:25]Sock 7.Thread stoped [09:35:28]OFD Sender: No OFD packet to send [09:35:33]OFD Sender: No OFD packet to send [09:35:38]OFD Sender: No OFD packet to send [09:35:43]OFD Sender: No OFD packet to send [09:35:48]OFD Sender: No OFD packet to send [09:35:53]OFD Sender: No OFD packet to send [09:35:58]OFD Sender: No OFD packet to send [09:36:03]OFD Sender: No OFD packet to send [09:36:08]OFD Sender: No OFD packet to send [09:36:13]OFD Sender: No OFD packet to send [09:36:18]OFD Sender: No OFD packet to send [09:36:23]OFD Sender: No OFD packet to send [09:36:28]OFD Sender: No OFD packet to send [09:36:33]OFD Sender: No OFD packet to send [09:36:38]OFD Sender: No OFD packet to send [09:36:43]OFD Sender: No OFD packet to send [09:36:48]OFD Sender: No OFD packet to send [09:36:53]OFD Sender: No OFD packet to send [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:03]OFD Sender: No OFD packet to send [09:39:08]OFD Sender: No OFD packet to send [09:39:13]OFD Sender: No OFD packet to send [09:39:18]OFD Sender: No OFD packet to send [09:39:23]OFD Sender: No OFD packet to send [09:39:26]accept exits with 9 [09:39:26]New connection [09:39:26]New thread 3066785124 created [09:39:26]Thread 3066928484 joined [09:39:26]Waiting for new connection... [09:39:26] Sock 9.Parse request [09:39:26]Sock 9.Check first char [09:39:26]Sock 9.First char is OK [09:39:26]request: POST /json_proto HTTP/1.0 [09:39:26]Method: POST [09:39:26]URL: /json_proto [09:39:26]Method is POST - this is cgi request [09:39:26]url: /json_proto [09:39:26]query_string will be loaded in cgi processing [09:39:26]execute_cgi json_proto POST (null) [09:39:26]execute_cgi path=json_proto method=POST [09:39:26]POST find Content-Length [09:39:26]Host: 172.17.33.3:8080 [09:39:26]Content-Length: 679 [09:39:26]Content-Type: application/json [09:39:26] [09:39:26]POST finish read [09:39:26]Found Content-Length = 679 [09:39:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:26]execute_script... [09:39: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)347206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:26]POST & json_proto [09:39:26]process_json_proto [09:39:26]json parsed OK: [09:39:26]protocol is kg_v1.0 [09:39:26]action value=close_receipt [09:39:26]process_action close_receipt [09:39:26]cmd_close_receipt [09:39:26]MH_GetDate [09:39:26]Write to MH i2c: F0 00 00 60 28 77 [09:39:26]Write i2c OK [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: F0 [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: F0 09 00 [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: F0 09 00 60 28 00 D2 52 1A 66 23 5B 8F 65 96 [09:39:26]GetLastDocTimeStamp 1713000924 [09:39:26]current date 1713001170 [09:39:26]FM_GetShiftState [09:39:26]SAM_PROTO_GetShiftState [09:39:26]wFMCommunicate request_size=4 [09:39:26]MH_SAM_APDU [09:39:26]CAPDU: 80 13 01 00 [09:39:26]Write to MH i2c: E2 08 00 61 28 80 13 01 00 00 00 00 00 06 [09:39:26]Write i2c OK [09:39:26]MH_I2C_Read... [09:39:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:26]Read from MH i2c: E2 [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: E2 0E 00 [09:39:26]MH_I2C_Read... [09:39:26]Read from MH i2c: E2 0E 00 61 28 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 1F [09:39:26]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:39:26]wFMCommunicate OK [09:39:26]SAM_PROTO_GetShiftState done [09:39:26]FM_GetShiftState done [09:39:26]opened in 1712967615 [09:39:26]opened+sec_in_day 1713054015 [09:39:26]quantity*price = 100056 [09:39:26]sum+1 = 100058 [09:39:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 61 13.04.2024 09:39 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28854 ФПД: 222448967245745 1/tax-web-control/client/api/v1/ticket?date=20240413T093930&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28854&fm=222448967245745&tin=02508201610067®Number=0000138879044617&sum=100000 [09:39:27]StoreToDocumentArchive [09:39:27]shift 115 fd 28854 [09:39:27]save to /storage/0115/doc_00028854 [09:39:27]save last doc name /storage/0115/doc_00028854 to /storage/kkm_last_doc_name [09:39:27]save OK [09:39:27]Clear old archive folders... [09:39:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:39:27]tlvbuf is 01250FE0 [09:39:27]SAM_PROTO_ClearQueue [09:39:27]wFMCommunicate request_size=4 [09:39:27]MH_SAM_APDU [09:39:27]CAPDU: 80 09 00 00 [09:39:27]Write to MH i2c: E2 08 00 6E 28 80 09 00 00 00 00 00 00 08 [09:39:27]Write i2c OK [09:39:27]MH_I2C_Read... [09:39:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:27]Read from MH i2c: E2 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: E2 03 00 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: E2 03 00 6E 28 00 90 00 0A [09:39:27]RAPDU: 90 00 [09:39:27]wFMCommunicate OK [09:39:27]SAM_PROTO_ClearQueue done [09:39:27]KKMCreateOFDPacket [09:39:27]OFDProtocolAddRootSTLVToBuf [09:39:27]FM_MakeSignedData [09:39:27]FM_MakeSignedData [09:39:27]SAM_PROTO_SignData [09:39:27]wFMCommunicate request_size=4 [09:39:27]MH_SAM_APDU [09:39:27]CAPDU: 80 0D 01 02 [09:39:27]Write to MH i2c: E2 08 00 6F 28 80 0D 01 02 00 00 00 00 10 [09:39:27]Write i2c OK [09:39:27]MH_I2C_Read... [09:39:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:27]Read from MH i2c: E2 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: E2 03 00 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: E2 03 00 6F 28 00 90 00 0B [09:39:27]RAPDU: 90 00 [09:39:27]wFMCommunicate OK [09:39:27]wFMCommunicate request_size=255 [09:39:27]MH_SAM_APDU [09:39:27]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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3D 00 00 00 F4 03 04 00 D2 52 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B6 70 00 00 35 04 06 00 CA 50 EF AC [09:39:27]Write to MH i2c: E2 02 01 70 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3D 00 00 00 F4 03 04 00 D2 52 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B6 70 00 00 35 04 06 00 CA 50 EF AC 00 00 1E [09:39:27]Write i2c OK [09:39:27]MH_I2C_Read... [09:39:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:28]Read from MH i2c: E2 [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: E2 03 00 [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: E2 03 00 70 28 00 90 00 0C [09:39:28]RAPDU: 90 00 [09:39:28]wFMCommunicate OK [09:39:28]wFMCommunicate request_size=7 [09:39:28]MH_SAM_APDU [09:39:28]CAPDU: 80 0D 02 02 02 5F B1 [09:39:28]Write to MH i2c: E2 0A 00 71 28 80 0D 02 02 02 00 5F B1 00 00 27 [09:39:28]Write i2c OK [09:39:28]MH_I2C_Read... [09:39:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:28]Read from MH i2c: E2 [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: E2 03 00 [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: E2 03 00 71 28 00 90 00 0D [09:39:28]RAPDU: 90 00 [09:39:28]wFMCommunicate OK [09:39:28]wFMCommunicate request_size=4 [09:39:28]MH_SAM_APDU [09:39:28]CAPDU: 80 0D 03 02 [09:39:28]Write to MH i2c: E2 08 00 72 28 80 0D 03 02 00 00 00 00 15 [09:39:28]Write i2c OK [09:39:28]MH_I2C_Read... [09:39:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:28]Read from MH i2c: E2 [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: E2 0B 00 [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: E2 0B 00 72 28 00 B4 65 D4 D1 0D 79 B8 DB 90 00 ED [09:39:28]RAPDU: B4 65 D4 D1 0D 79 B8 DB 90 00 [09:39:28]wFMCommunicate OK [09:39:28]SAM_PROTO_SignData done [09:39:28]FM_MakeSignedData done [09:39:28]CreateOFDProtocolMessage [09:39:28]wFMCommunicate request_size=4 [09:39:28]MH_SAM_APDU [09:39:28]CAPDU: 80 11 00 00 [09:39:28]Write to MH i2c: E2 08 00 73 28 80 11 00 00 00 00 00 00 15 [09:39:28]Write i2c OK [09:39:28]MH_I2C_Read... [09:39:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:28]Read from MH i2c: E2 [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: E2 17 00 [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: E2 17 00 73 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 64 [09:39:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:39:28]wFMCommunicate OK [09:39:28]CreateOFDProtocolMessage done [09:39:28]OFDSenderStorePacket 28854 [09:39:28]StoreOFDPacket docnum=28854 [09:39:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 EE 6F 04 01 D8 EC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3D 00 00 00 F4 03 04 00 D2 52 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B6 70 00 00 35 04 06 00 CA 50 EF AC 5F B1 B4 65 D4 D1 0D 79 B8 DB [09:39:28]CheckFolder [09:39:28]dirname=/storage/ofd_packets [09:39:28]CheckFolder done [09:39:28]ProducePacketName [09:39:28]name=ofd_packets/00028854 [09:39:28]NVStorageSaveData ofd_packets/00028854 [09:39:28]File name is /storage/ofd_packets/00028854 [09:39:28]Write 298 bytes [09:39:28]NVStorageSaveData done [09:39:28]OFDSenderStorePacket done [09:39:28]KKMCreateOFDPacket done [09:39:28]NVStorageSaveData kkm_last_timestamp [09:39:28]File name is /storage/kkm_last_timestamp [09:39:28]Write 4 bytes [09:39:28]NVStorageSaveData done [09:39:28]ExternCall_PrintAddStr [09:39:28]wPrintStart [09:39:28]Write to MH i2c: 01 00 00 74 28 9C [09:39:28]Write i2c OK [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: 01 [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: 01 07 00 [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: 01 07 00 74 28 00 00 00 00 00 FF 0F B1 [09:39:28]RasterBufferAndPrint [09:39:28]line Счет N : (1)347206 [09:39:28]line ИНН: 02508201610067 [09:39:28]line Контрольно-Кассовый Чек [09:39:28]line ПРОДАЖА [09:39:28]line ТРК (МРК, ГНК) : 11 [09:39:28]line Товар: 2710194210 [09:39:28]line ДТ-К-5 [09:39:28]line 13.820 * 72.40 [09:39:28]line = 1000.57 [09:39:28]line НДС 12% НСП 1% [09:39:28]line > о реализуемом товаре [09:39:28]line ОКРУГЛЕНИЕ: -0.57 [09:39:28]line ИТОГО: 1000.00 [09:39:28]line Внесено: 1000.00 [09:39:28]line СДАЧА: 0.00 [09:39:28]line НСП 1% : 8.85 [09:39:28]line НДС 12% : 106.25 [09:39:28]line Наличными: 1000.00 [09:39:28]line Безнал.: 0.00 [09:39:28]line Место: АЗС № 108 "Партнер Нефть" [09:39:28]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:39:28]line СНО: Общий режим [09:39:28]line Чек 61 13.04.2024 09:39 [09:39:28]line Смена: 115 ФФД: 1.0 [09:39:28]line ЗНМ: 0300000027 [09:39:28]line РНМ: 0000138879044617 [09:39:28]line Версия ККМ: 001 [09:39:28]line ФМ: 0000000000963154 [09:39:28]line ФД: 28854 [09:39:28]line ФПД: 222448967245745 [09:39:28]line 1/tax-web-control/client/api/v1/ticket?date=20240413T093930&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28854&fm=222448967245745&tin=02508201610067®Number=0000138879044617&sum=100000 [09:39:28]OFD Sender: Processing packet 28854 [packets to send 8, broken 7] [09:39:28]ProducePacketName [09:39:28]name=ofd_packets/00028854 [09:39:28]OFD Sender: To server: pG, [09:39:28]CommunicateWithHost lk.salyk.kg:30040 [09:39:28]ConnectInit lk.salyk.kg [09:39:28]written 0, free lines is 4095 [09:39:28]Connected sock=7 [09:39: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 31 35 34 0C 01 00 00 EE 6F 04 01 D8 EC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3D 00 00 00 F4 03 04 00 D2 52 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B6 70 00 00 35 04 06 00 CA 50 EF AC 5F B1 B4 65 D4 D1 0D 79 B8 DB [09:39:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0C A3 47 00 74 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B6 70 00 00 F4 03 04 00 7A FD 19 66 B6 04 01 00 00 17 72 D6 DB E7 4A C0 EC [09:39:28]CommunicateWithHost err = 0 [09:39:28]CheckOFDResponse [09:39:28]1017 (14) - 77093643461234 [09:39:28]1041 (16) - 0000000000963154 [09:39:28]1040 (4) - 28854 [09:39:28]1012 (4) - 13.04.2024 03:35 [09:39:28]1206 (1) - 0 [09:39:28]OFD Sender: Remove packet 28854 [09:39:28]ProducePacketName [09:39:28]name=ofd_packets/00028854 [09:39:28]NVStorageDeleteData [09:39:29]Write to MH i2c: 01 00 00 9E 28 C6 [09:39:29]Write i2c OK [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: 01 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: 01 07 00 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: 01 07 00 9E 28 00 00 00 00 00 C9 0C A2 [09:39:29]RasterBufferAndPrint [09:39:29]line [09:39:29]line [09:39:29]line [09:39:29]line [09:39:29]line [09:39:29]written 0, free lines is 3278 [09:39:29]MH_Cut [09:39:29]Write to MH i2c: D1 01 00 A5 28 01 9F [09:39:29]Write i2c OK [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: D1 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: D1 01 00 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: D1 01 00 A5 28 00 9E [09:39:29]Write to MH i2c: 01 00 00 A6 28 CE [09:39:29]Write i2c OK [09:39:29]MH_I2C_Read... [09:39:29]OFD Sender: No OFD packet to send [09:39:29]*** Cut start [09:39:29]*** Partial cut [09:39:29]*** CUTSNS_PIN = 1 [09:39:29]*** CUTSNS_PIN = 0 [09:39:30]*** Brake cut motor [09:39:30]Read from MH i2c: 01 [09:39:30]MH_I2C_Read... [09:39:30]*** Stop cut motor [09:39:30]*** Cut end [09:39:30]Read from MH i2c: 01 07 00 [09:39:30]MH_I2C_Read... [09:39:30]Read from MH i2c: 01 07 00 A6 28 00 00 00 00 00 FF 0F E3 [09:39:30]process_action close_receipt done [09:39:30]requested_data is exist [09:39:30]produce_requested_data [09:39:30]requested_item fm.sn is exist - process it [09:39:30]wFMCommunicate request_size=4 [09:39:30]MH_SAM_APDU [09:39:30]CAPDU: 80 11 00 00 [09:39:30]Write to MH i2c: E2 08 00 A7 28 80 11 00 00 00 00 00 00 49 [09:39:30]Write i2c OK [09:39:30]MH_I2C_Read... [09:39:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:30]Read from MH i2c: E2 [09:39:30]MH_I2C_Read... [09:39:30]Read from MH i2c: E2 17 00 [09:39:30]MH_I2C_Read... [09:39:30]Read from MH i2c: E2 17 00 A7 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 98 [09:39:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:39:30]wFMCommunicate OK [09:39:30]requested_item fd.num is exist - process it [09:39:30]SAM_PROTO_GetFieldsCounters [09:39:30]wFMCommunicate request_size=4 [09:39:30]MH_SAM_APDU [09:39:30]CAPDU: 80 13 00 00 [09:39:30]Write to MH i2c: E2 08 00 A8 28 80 13 00 00 00 00 00 00 4C [09:39:30]Write i2c OK [09:39:30]MH_I2C_Read... [09:39:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:30]Read from MH i2c: E2 [09:39:30]MH_I2C_Read... [09:39:30]Read from MH i2c: E2 62 00 [09:39:30]MH_I2C_Read... [09:39:30]Read from MH i2c: E2 62 00 A8 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B6 70 00 00 0E 04 04 00 73 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 DA [09:39: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B6 70 00 00 0E 04 04 00 73 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:30]wFMCommunicate OK [09:39:30]SAM_PROTO_GetFieldsCounters done [09:39:30]requested_item shift.num is exist - process it [09:39:30]requested_item shift.opened is exist - process it [09:39:30]req_shift_opened [09:39:30]FM_GetShiftState [09:39:30]SAM_PROTO_GetShiftState [09:39:30]wFMCommunicate request_size=4 [09:39:30]MH_SAM_APDU [09:39:30]CAPDU: 80 13 01 00 [09:39:30]Write to MH i2c: E2 08 00 A9 28 80 13 01 00 00 00 00 00 4E [09:39:30]Write i2c OK [09:39:30]MH_I2C_Read... [09:39:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:30]Read from MH i2c: E2 [09:39:30]MH_I2C_Read... [09:39:30]Read from MH i2c: E2 0E 00 [09:39:30]MH_I2C_Read... [09:39:30]Read from MH i2c: E2 0E 00 A9 28 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 67 [09:39:30]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:39:30]wFMCommunicate OK [09:39:30]SAM_PROTO_GetShiftState done [09:39:30]FM_GetShiftState done [09:39:30]req_shift_opened done [09:39:30]requested_item shift.open_date is exist - process it [09:39:30]req_shift_open_date [09:39:30]req_shift_open_date done [09:39:30]produce_requested_data done [09:39:30]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28854,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [09:39:30]process_action_free close_receipt [09:39:30]json_value_free [09:39:30]json_value_free done [09:39:30]process_json_proto returns [09:39:30]Send response to host [09:39:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28854,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [09:39:30]free response buf [09:39:30]execute_script done [09:39:30]execute_script returns [09:39:30]free content buf [09:39:30]Sock 9.Close socket [09:39:30]Sock 9.Thread stoped [09:39:34]OFD Sender: No OFD packet to send [09:39:39]OFD Sender: No OFD packet to send [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:59]OFD Sender: No OFD packet to send [09:40:04]OFD Sender: No OFD packet to send [09:40:09]OFD Sender: No OFD packet to send [09:40:14]OFD Sender: No OFD packet to send [09:40:19]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:31]accept exits with 10 [09:40:31]New connection [09:40:31]New thread 3066928484 created [09:40:31]Thread 3066785124 joined [09:40:31]Waiting for new connection... [09:40:31] Sock 10.Parse request [09:40:31]Sock 10.Check first char [09:40:31]Sock 10.First char is OK [09:40:31]request: POST /json_proto HTTP/1.0 [09:40:31]Method: POST [09:40:31]URL: /json_proto [09:40:31]Method is POST - this is cgi request [09:40:31]url: /json_proto [09:40:31]query_string will be loaded in cgi processing [09:40:31]execute_cgi json_proto POST (null) [09:40:31]execute_cgi path=json_proto method=POST [09:40:31]POST find Content-Length [09:40:31]Host: 172.17.33.3:8080 [09:40:31]Content-Length: 1204 [09:40:31]Content-Type: application/json [09:40:31] [09:40:31]POST finish read [09:40:31]Found Content-Length = 1204 [09:40:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347205\u000A13.04.2024 09:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 1086.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65563\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:31]execute_script... [09:40:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347205\u000A13.04.2024 09:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 1086.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65563\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:31]POST & json_proto [09:40:31]process_json_proto [09:40:31]json parsed OK: [09:40:31]protocol is kg_v1.0 [09:40:31]action value=print_text [09:40:31]process_action print_text [09:40:31]cmd_print_text [09:40:31]ExternCall_PrintAddStr [09:40:31]wPrintStart [09:40:31]Write to MH i2c: 01 00 00 AA 28 D2 [09:40:31]Write i2c OK [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: 01 [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: 01 07 00 [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: 01 07 00 AA 28 00 00 00 00 00 FF 0F E7 [09:40:31]RasterBufferAndPrint [09:40:31]line *****ТОВАРНЫЙ ЧЕК***** [09:40:31]line АЗС 108 [09:40:31]line Партнер нефть [09:40:31]line 02508201610067 [09:40:31]line Кассир : Шадыканова Ж. [09:40:31]line Счет N : (1)347205 [09:40:31]line 13.04.2024 09:22 [09:40:31]line ПРОДАЖА [09:40:31]line ТРК (МРК, ГНК): 51 [09:40:31]line Вид ГСМ : 2710194210 [09:40:31]line ДТ-К-5 [09:40:31]line 15.000 x 72.40 [09:40:31]line ИТОГ: 1086.00 [09:40:31]line Тип оплаты: Талоны: Топливная Карта [09:40:31]line 65563 [09:40:31]line ______________________ [09:40:31]line (подпись) [09:40:31]written 0, free lines is 4095 [09:40:31]Write to MH i2c: 01 00 00 BF 28 E7 [09:40:31]Write i2c OK [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: 01 [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: 01 07 00 [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: 01 07 00 BF 28 00 00 00 00 00 F5 0D F0 [09:40:31]RasterBufferAndPrint [09:40:31]line [09:40:31]line [09:40:31]line [09:40:31]line [09:40:31]line [09:40:31]written 0, free lines is 3574 [09:40:31]MH_Cut [09:40:31]Write to MH i2c: D1 01 00 C6 28 01 C0 [09:40:31]Write i2c OK [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: D1 [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: D1 01 00 [09:40:31]MH_I2C_Read... [09:40:31]Read from MH i2c: D1 01 00 C6 28 00 BF [09:40:31]Write to MH i2c: 01 00 00 C7 28 EF [09:40:31]Write i2c OK [09:40:31]MH_I2C_Read... [09:40:31]*** Cut start [09:40:31]*** Partial cut [09:40:31]*** CUTSNS_PIN = 1 [09:40:31]*** CUTSNS_PIN = 0 [09:40:32]*** Brake cut motor [09:40:32]Read from MH i2c: 01 [09:40:32]MH_I2C_Read... [09:40:32]*** Stop cut motor [09:40:32]*** Cut end [09:40:32]Read from MH i2c: 01 07 00 [09:40:32]MH_I2C_Read... [09:40:32]Read from MH i2c: 01 07 00 C7 28 00 00 00 00 00 FF 0F 04 [09:40:32]process_action print_text done [09:40:32]requested_data is exist [09:40:32]produce_requested_data [09:40:32]requested_item fm.sn is exist - process it [09:40:32]wFMCommunicate request_size=4 [09:40:32]MH_SAM_APDU [09:40:32]CAPDU: 80 11 00 00 [09:40:32]Write to MH i2c: E2 08 00 C8 28 80 11 00 00 00 00 00 00 6A [09:40:32]Write i2c OK [09:40:32]MH_I2C_Read... [09:40:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:32]Read from MH i2c: E2 [09:40:32]MH_I2C_Read... [09:40:32]Read from MH i2c: E2 17 00 [09:40:32]MH_I2C_Read... [09:40:32]Read from MH i2c: E2 17 00 C8 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B9 [09:40:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:40:32]wFMCommunicate OK [09:40:32]requested_item fd.num is exist - process it [09:40:32]SAM_PROTO_GetFieldsCounters [09:40:32]wFMCommunicate request_size=4 [09:40:32]MH_SAM_APDU [09:40:32]CAPDU: 80 13 00 00 [09:40:32]Write to MH i2c: E2 08 00 C9 28 80 13 00 00 00 00 00 00 6D [09:40:32]Write i2c OK [09:40:32]MH_I2C_Read... [09:40:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:32]Read from MH i2c: E2 [09:40:32]MH_I2C_Read... [09:40:32]Read from MH i2c: E2 62 00 [09:40:32]MH_I2C_Read... [09:40:32]Read from MH i2c: E2 62 00 C9 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B6 70 00 00 0E 04 04 00 73 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 FB [09: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B6 70 00 00 0E 04 04 00 73 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:40:32]wFMCommunicate OK [09:40:32]SAM_PROTO_GetFieldsCounters done [09:40:32]requested_item shift.num is exist - process it [09:40:32]requested_item shift.opened is exist - process it [09:40:32]req_shift_opened [09:40:32]FM_GetShiftState [09:40:32]SAM_PROTO_GetShiftState [09:40:32]wFMCommunicate request_size=4 [09:40:32]MH_SAM_APDU [09:40:32]CAPDU: 80 13 01 00 [09:40:32]Write to MH i2c: E2 08 00 CA 28 80 13 01 00 00 00 00 00 6F [09:40:32]Write i2c OK [09:40:32]MH_I2C_Read... [09:40:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:32]Read from MH i2c: E2 [09:40:32]MH_I2C_Read... [09:40:32]Read from MH i2c: E2 0E 00 [09:40:32]MH_I2C_Read... [09:40:32]Read from MH i2c: E2 0E 00 CA 28 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 88 [09:40:32]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:40:32]wFMCommunicate OK [09:40:32]SAM_PROTO_GetShiftState done [09:40:32]FM_GetShiftState done [09:40:32]req_shift_opened done [09:40:32]requested_item shift.open_date is exist - process it [09:40:32]req_shift_open_date [09:40:32]req_shift_open_date done [09:40:32]produce_requested_data done [09:40:32]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28854,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [09:40:32]process_action_free print_text [09:40:32]json_value_free [09:40:32]json_value_free done [09:40:32]process_json_proto returns [09:40:32]Send response to host [09:40:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28854,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [09:40:32]free response buf [09:40:32]execute_script done [09:40:32]execute_script returns [09:40:32]free content buf [09:40:32]Sock 10.Close socket [09:40:32]Sock 10.Thread stoped [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:46]accept exits with 7 [09:40:46]New connection [09:40:46]New thread 3066785124 created [09:40:46]Thread 3066928484 joined [09:40:46]Waiting for new connection... [09:40:46] Sock 7.Parse request [09:40:46]Sock 7.Check first char [09:40:46]Sock 7.First char is OK [09:40:46]request: POST /json_proto HTTP/1.0 [09:40:46]Method: POST [09:40:46]URL: /json_proto [09:40:46]Method is POST - this is cgi request [09:40:46]url: /json_proto [09:40:46]query_string will be loaded in cgi processing [09:40:46]execute_cgi json_proto POST (null) [09:40:46]execute_cgi path=json_proto method=POST [09:40:46]POST find Content-Length [09:40:46]Host: 172.17.33.3:8080 [09:40:46]Content-Length: 677 [09:40:46]Content-Type: application/json [09:40:46] [09:40:46]POST finish read [09:40:46]Found Content-Length = 677 [09:40:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347207", "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" : 64.30, "quantity" : 6.850, "sum" : 440.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:46]execute_script... [09:40: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)347207", "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" : 64.30, "quantity" : 6.850, "sum" : 440.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:46]POST & json_proto [09:40:46]process_json_proto [09:40:46]json parsed OK: [09:40:46]protocol is kg_v1.0 [09:40:46]action value=close_receipt [09:40:46]process_action close_receipt [09:40:46]cmd_close_receipt [09:40:46]MH_GetDate [09:40:46]Write to MH i2c: F0 00 00 CB 28 E2 [09:40:46]Write i2c OK [09:40:46]MH_I2C_Read... [09:40:46]Read from MH i2c: F0 [09:40:46]MH_I2C_Read... [09:40:46]Read from MH i2c: F0 09 00 [09:40:46]MH_I2C_Read... [09:40:46]Read from MH i2c: F0 09 00 CB 28 00 22 53 1A 66 23 5B 8F 65 52 [09:40:46]GetLastDocTimeStamp 1713001170 [09:40:46]current date 1713001250 [09:40:46]FM_GetShiftState [09:40:46]SAM_PROTO_GetShiftState [09:40:46]wFMCommunicate request_size=4 [09:40:46]MH_SAM_APDU [09:40:46]CAPDU: 80 13 01 00 [09:40:46]Write to MH i2c: E2 08 00 CC 28 80 13 01 00 00 00 00 00 71 [09:40:46]Write i2c OK [09:40:46]MH_I2C_Read... [09:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:46]Read from MH i2c: E2 [09:40:46]MH_I2C_Read... [09:40:46]Read from MH i2c: E2 0E 00 [09:40:46]MH_I2C_Read... [09:40:46]Read from MH i2c: E2 0E 00 CC 28 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 8A [09:40:46]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:40:46]wFMCommunicate OK [09:40:46]SAM_PROTO_GetShiftState done [09:40:46]FM_GetShiftState done [09:40:46]opened in 1712967615 [09:40:46]opened+sec_in_day 1713054015 [09:40:46]quantity*price = 44045 [09:40:46]sum+1 = 44047 [09:40:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 440.00 Внесено: 440.00 СДАЧА: 0.00 НСП 1% : 3.90 НДС 12% : 46.77 Наличными: 440.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 62 13.04.2024 09:40 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28855 ФПД: 210043108651106 1/tax-web-control/client/api/v1/ticket?date=20240413T094050&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28855&fm=210043108651106&tin=02508201610067®Number=0000138879044617&sum=44000 [09:40:47]StoreToDocumentArchive [09:40:47]shift 115 fd 28855 [09:40:47]save to /storage/0115/doc_00028855 [09:40:47]save last doc name /storage/0115/doc_00028855 to /storage/kkm_last_doc_name [09:40:47]save OK [09:40:47]Clear old archive folders... [09:40:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:40:47]tlvbuf is 01251A20 [09:40:47]SAM_PROTO_ClearQueue [09:40:47]wFMCommunicate request_size=4 [09:40:47]MH_SAM_APDU [09:40:47]CAPDU: 80 09 00 00 [09:40:47]Write to MH i2c: E2 08 00 D9 28 80 09 00 00 00 00 00 00 73 [09:40:47]Write i2c OK [09:40:47]MH_I2C_Read... [09:40:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:47]Read from MH i2c: E2 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: E2 03 00 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: E2 03 00 D9 28 00 90 00 75 [09:40:47]RAPDU: 90 00 [09:40:47]wFMCommunicate OK [09:40:47]SAM_PROTO_ClearQueue done [09:40:47]KKMCreateOFDPacket [09:40:47]OFDProtocolAddRootSTLVToBuf [09:40:47]FM_MakeSignedData [09:40:47]FM_MakeSignedData [09:40:47]SAM_PROTO_SignData [09:40:47]wFMCommunicate request_size=4 [09:40:47]MH_SAM_APDU [09:40:47]CAPDU: 80 0D 01 02 [09:40:47]Write to MH i2c: E2 08 00 DA 28 80 0D 01 02 00 00 00 00 7B [09:40:47]Write i2c OK [09:40:47]MH_I2C_Read... [09:40:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:47]Read from MH i2c: E2 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: E2 03 00 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: E2 03 00 DA 28 00 90 00 76 [09:40:47]RAPDU: 90 00 [09:40:47]wFMCommunicate OK [09:40:47]wFMCommunicate request_size=255 [09:40:47]MH_SAM_APDU [09:40: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 C2 1A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 0E AC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 12 00 00 00 00 07 04 06 00 E0 AB 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 22 53 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B7 70 00 00 35 04 06 00 BF [09:40:47]Write to MH i2c: E2 02 01 DB 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 1A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 0E AC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 12 00 00 00 00 07 04 06 00 E0 AB 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 22 53 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B7 70 00 00 35 04 06 00 BF 00 00 EF [09:40:47]Write i2c OK [09:40:47]MH_I2C_Read... [09:40:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:47]Read from MH i2c: E2 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: E2 03 00 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: E2 03 00 DB 28 00 90 00 77 [09:40:47]RAPDU: 90 00 [09:40:47]wFMCommunicate OK [09:40:47]wFMCommunicate request_size=10 [09:40:47]MH_SAM_APDU [09:40:47]CAPDU: 80 0D 02 02 05 08 78 E0 F0 62 [09:40:47]Write to MH i2c: E2 0D 00 DC 28 80 0D 02 02 05 00 08 78 E0 F0 62 00 00 3A [09:40:47]Write i2c OK [09:40:47]MH_I2C_Read... [09:40:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:47]Read from MH i2c: E2 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: E2 03 00 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: E2 03 00 DC 28 00 90 00 78 [09:40:47]RAPDU: 90 00 [09:40:47]wFMCommunicate OK [09:40:47]wFMCommunicate request_size=4 [09:40:47]MH_SAM_APDU [09:40:47]CAPDU: 80 0D 03 02 [09:40:47]Write to MH i2c: E2 08 00 DD 28 80 0D 03 02 00 00 00 00 80 [09:40:47]Write i2c OK [09:40:47]MH_I2C_Read... [09:40:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:48]Read from MH i2c: E2 [09:40:48]MH_I2C_Read... [09:40:48]Read from MH i2c: E2 0B 00 [09:40:48]MH_I2C_Read... [09:40:48]Read from MH i2c: E2 0B 00 DD 28 00 E0 0C 10 EA 98 CC C4 D8 90 00 67 [09:40:48]RAPDU: E0 0C 10 EA 98 CC C4 D8 90 00 [09:40:48]wFMCommunicate OK [09:40:48]SAM_PROTO_SignData done [09:40:48]FM_MakeSignedData done [09:40:48]CreateOFDProtocolMessage [09:40:48]wFMCommunicate request_size=4 [09:40:48]MH_SAM_APDU [09:40:48]CAPDU: 80 11 00 00 [09:40:48]Write to MH i2c: E2 08 00 DE 28 80 11 00 00 00 00 00 00 80 [09:40:48]Write i2c OK [09:40:48]MH_I2C_Read... [09:40:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:48]Read from MH i2c: E2 [09:40:48]MH_I2C_Read... [09:40:48]Read from MH i2c: E2 17 00 [09:40:48]MH_I2C_Read... [09:40:48]Read from MH i2c: E2 17 00 DE 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CF [09:40:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:40:48]wFMCommunicate OK [09:40:48]CreateOFDProtocolMessage done [09:40:48]OFDSenderStorePacket 28855 [09:40:48]StoreOFDPacket docnum=28855 [09:40:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 5E CD 07 01 81 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 1A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 0E AC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 12 00 00 00 00 07 04 06 00 E0 AB 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 22 53 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B7 70 00 00 35 04 06 00 BF 08 78 E0 F0 62 E0 0C 10 EA 98 CC C4 D8 [09:40:48]CheckFolder [09:40:48]dirname=/storage/ofd_packets [09:40:48]CheckFolder done [09:40:48]ProducePacketName [09:40:48]name=ofd_packets/00028855 [09:40:48]NVStorageSaveData ofd_packets/00028855 [09:40:48]File name is /storage/ofd_packets/00028855 [09:40:48]Write 301 bytes [09:40:48]NVStorageSaveData done [09:40:48]OFDSenderStorePacket done [09:40:48]KKMCreateOFDPacket done [09:40:48]NVStorageSaveData kkm_last_timestamp [09:40:48]File name is /storage/kkm_last_timestamp [09:40:48]Write 4 bytes [09:40:48]NVStorageSaveData done [09:40:48]ExternCall_PrintAddStr [09:40:48]wPrintStart [09:40:48]Write to MH i2c: 01 00 00 DF 28 07 [09:40:48]Write i2c OK [09:40:48]MH_I2C_Read... [09:40:48]Read from MH i2c: 01 [09:40:48]MH_I2C_Read... [09:40:48]Read from MH i2c: 01 07 00 [09:40:48]MH_I2C_Read... [09:40:48]Read from MH i2c: 01 07 00 DF 28 00 00 00 00 00 FF 0F 1C [09:40:48]RasterBufferAndPrint [09:40:48]line Счет N : (1)347207 [09:40:48]line ИНН: 02508201610067 [09:40:48]line Контрольно-Кассовый Чек [09:40:48]line ПРОДАЖА [09:40:48]line ТРК (МРК, ГНК) : 32 [09:40:48]line Товар: 2710124130 [09:40:48]line Аи-92-К-5 [09:40:48]line 6.850 * 64.30 [09:40:48]line = 440.46 [09:40:48]line НДС 12% НСП 1% [09:40:48]line > о реализуемом товаре [09:40:48]line ОКРУГЛЕНИЕ: -0.46 [09:40:48]line ИТОГО: 440.00 [09:40:48]line Внесено: 440.00 [09:40:48]line СДАЧА: 0.00 [09:40:48]line НСП 1% : 3.90 [09:40:48]line НДС 12% : 46.77 [09:40:48]line Наличными: 440.00 [09:40:48]line Безнал.: 0.00 [09:40:48]line Место: АЗС № 108 "Партнер Нефть" [09:40:48]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:40:48]line СНО: Общий режим [09:40:48]line Чек 62 13.04.2024 09:40 [09:40:48]line Смена: 115 ФФД: 1.0 [09:40:48]line ЗНМ: 0300000027 [09:40:48]line РНМ: 0000138879044617 [09:40:48]line Версия ККМ: 001 [09:40:48]line ФМ: 0000000000963154 [09:40:48]line ФД: 28855 [09:40:48]line ФПД: 210043108651106 [09:40:48]line 1/tax-web-control/client/api/v1/ticket?date=20240413T094050&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28855&fm=210043108651106&tin=02508201610067®Number=0000138879044617&sum=44000 [09:40:48]OFD Sender: Processing packet 28855 [packets to send 8, broken 7] [09:40:48]ProducePacketName [09:40:48]name=ofd_packets/00028855 [09:40:48]OFD Sender: To server: pG, [09:40:48]CommunicateWithHost lk.salyk.kg:30040 [09:40:48]ConnectInit lk.salyk.kg [09:40:48]written 0, free lines is 4095 [09:40:48]Connected sock=10 [09:40: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 31 35 34 0F 01 00 00 5E CD 07 01 81 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 1A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 0E AC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 12 00 00 00 00 07 04 06 00 E0 AB 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 22 53 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B7 70 00 00 35 04 06 00 BF 08 78 E0 F0 62 E0 0C 10 EA 98 CC C4 D8 [09:40:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2E 27 47 00 56 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 31 35 34 10 04 04 00 B7 70 00 00 F4 03 04 00 C9 FD 19 66 B6 04 01 00 00 7F 82 93 B7 19 B9 A5 2D [09:40:48]CommunicateWithHost err = 0 [09:40:48]CheckOFDResponse [09:40:48]1017 (14) - 77093643461234 [09:40:48]1041 (16) - 0000000000963154 [09:40:48]1040 (4) - 28855 [09:40:48]1012 (4) - 13.04.2024 03:36 [09:40:48]1206 (1) - 0 [09:40:48]OFD Sender: Remove packet 28855 [09:40:48]ProducePacketName [09:40:48]name=ofd_packets/00028855 [09:40:48]NVStorageDeleteData [09:40:48]Write to MH i2c: 01 00 00 09 29 32 [09:40:48]Write i2c OK [09:40:48]MH_I2C_Read... [09:40:48]Read from MH i2c: 01 [09:40:48]MH_I2C_Read... [09:40:48]Read from MH i2c: 01 07 00 [09:40:48]MH_I2C_Read... [09:40:48]Read from MH i2c: 01 07 00 09 29 00 00 00 00 00 CE 0C 13 [09:40:48]RasterBufferAndPrint [09:40:48]line [09:40:48]line [09:40:48]line [09:40:48]line [09:40:48]line [09:40:48]written 0, free lines is 3285 [09:40:48]MH_Cut [09:40:48]Write to MH i2c: D1 01 00 10 29 01 0B [09:40:48]Write i2c OK [09:40:48]MH_I2C_Read... [09:40:48]Read from MH i2c: D1 [09:40:48]MH_I2C_Read... [09:40:48]Read from MH i2c: D1 01 00 [09:40:48]MH_I2C_Read... [09:40:48]Read from MH i2c: D1 01 00 10 29 00 0A [09:40:48]Write to MH i2c: 01 00 00 11 29 3A [09:40:48]Write i2c OK [09:40:48]MH_I2C_Read... [09:40:49]OFD Sender: No OFD packet to send [09:40:49]*** Cut start [09:40:49]*** Partial cut [09:40:49]*** CUTSNS_PIN = 1 [09:40:49]*** CUTSNS_PIN = 0 [09:40:49]*** Brake cut motor [09:40:50]Read from MH i2c: 01 [09:40:50]MH_I2C_Read... [09:40:50]*** Stop cut motor [09:40:50]*** Cut end [09:40:50]Read from MH i2c: 01 07 00 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: 01 07 00 11 29 00 00 00 00 00 FF 0F 4F [09:40:50]process_action close_receipt done [09:40:50]requested_data is exist [09:40:50]produce_requested_data [09:40:50]requested_item fm.sn is exist - process it [09:40:50]wFMCommunicate request_size=4 [09:40:50]MH_SAM_APDU [09:40:50]CAPDU: 80 11 00 00 [09:40:50]Write to MH i2c: E2 08 00 12 29 80 11 00 00 00 00 00 00 B5 [09:40:50]Write i2c OK [09:40:50]MH_I2C_Read... [09:40:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:50]Read from MH i2c: E2 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 17 00 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 17 00 12 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 04 [09:40:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:40:50]wFMCommunicate OK [09:40:50]requested_item fd.num is exist - process it [09:40:50]SAM_PROTO_GetFieldsCounters [09:40:50]wFMCommunicate request_size=4 [09:40:50]MH_SAM_APDU [09:40:50]CAPDU: 80 13 00 00 [09:40:50]Write to MH i2c: E2 08 00 13 29 80 13 00 00 00 00 00 00 B8 [09:40:50]Write i2c OK [09:40:50]MH_I2C_Read... [09:40:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:50]Read from MH i2c: E2 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 62 00 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 62 00 13 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B7 70 00 00 0E 04 04 00 73 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 4A [09:40: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B7 70 00 00 0E 04 04 00 73 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:40:50]wFMCommunicate OK [09:40:50]SAM_PROTO_GetFieldsCounters done [09:40:50]requested_item shift.num is exist - process it [09:40:50]requested_item shift.opened is exist - process it [09:40:50]req_shift_opened [09:40:50]FM_GetShiftState [09:40:50]SAM_PROTO_GetShiftState [09:40:50]wFMCommunicate request_size=4 [09:40:50]MH_SAM_APDU [09:40:50]CAPDU: 80 13 01 00 [09:40:50]Write to MH i2c: E2 08 00 14 29 80 13 01 00 00 00 00 00 BA [09:40:50]Write i2c OK [09:40:50]MH_I2C_Read... [09:40:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:50]Read from MH i2c: E2 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 0E 00 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 0E 00 14 29 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D3 [09:40:50]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:40:50]wFMCommunicate OK [09:40:50]SAM_PROTO_GetShiftState done [09:40:50]FM_GetShiftState done [09:40:50]req_shift_opened done [09:40:50]requested_item shift.open_date is exist - process it [09:40:50]req_shift_open_date [09:40:50]req_shift_open_date done [09:40:50]produce_requested_data done [09:40:50]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28855,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [09:40:50]process_action_free close_receipt [09:40:50]json_value_free [09:40:50]json_value_free done [09:40:50]process_json_proto returns [09:40:50]Send response to host [09:40:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28855,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [09:40:50]free response buf [09:40:50]execute_script done [09:40:50]execute_script returns [09:40:50]free content buf [09:40:50]Sock 7.Close socket [09:40:50]Sock 7.Thread stoped [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:34]accept exits with 9 [09:41:34]New connection [09:41:34]New thread 3066928484 created [09:41:34]Thread 3066785124 joined [09:41:34]Waiting for new connection... [09:41:34] Sock 9.Parse request [09:41:34]Sock 9.Check first char [09:41:34]Sock 9.First char is OK [09:41:34]request: POST /json_proto HTTP/1.0 [09:41:34]Method: POST [09:41:34]URL: /json_proto [09:41:34]Method is POST - this is cgi request [09:41:34]url: /json_proto [09:41:34]query_string will be loaded in cgi processing [09:41:34]execute_cgi json_proto POST (null) [09:41:34]execute_cgi path=json_proto method=POST [09:41:34]POST find Content-Length [09:41:34]Host: 172.17.33.3:8080 [09:41:34]Content-Length: 808 [09:41:34]Content-Type: application/json [09:41:34] [09:41:34]POST finish read [09:41:34]Found Content-Length = 808 [09:41:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347208", "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" : 64.30, "quantity" : 15.560, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:34]execute_script... [09:41: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)347208", "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" : 64.30, "quantity" : 15.560, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:34]POST & json_proto [09:41:34]process_json_proto [09:41:34]json parsed OK: [09:41:34]protocol is kg_v1.0 [09:41:34]action value=close_receipt [09:41:34]process_action close_receipt [09:41:34]cmd_close_receipt [09:41:34]MH_GetDate [09:41:34]Write to MH i2c: F0 00 00 15 29 2D [09:41:34]Write i2c OK [09:41:34]MH_I2C_Read... [09:41:34]Read from MH i2c: F0 [09:41:34]MH_I2C_Read... [09:41:34]Read from MH i2c: F0 09 00 [09:41:34]MH_I2C_Read... [09:41:34]Read from MH i2c: F0 09 00 15 29 00 52 53 1A 66 23 5B 8F 65 CD [09:41:34]GetLastDocTimeStamp 1713001250 [09:41:34]current date 1713001298 [09:41:34]FM_GetShiftState [09:41:34]SAM_PROTO_GetShiftState [09:41:34]wFMCommunicate request_size=4 [09:41:34]MH_SAM_APDU [09:41:34]CAPDU: 80 13 01 00 [09:41:34]Write to MH i2c: E2 08 00 16 29 80 13 01 00 00 00 00 00 BC [09:41:34]Write i2c OK [09:41:34]MH_I2C_Read... [09:41:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:34]Read from MH i2c: E2 [09:41:34]MH_I2C_Read... [09:41:34]Read from MH i2c: E2 0E 00 [09:41:34]MH_I2C_Read... [09:41:34]Read from MH i2c: E2 0E 00 16 29 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D5 [09:41:34]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:41:34]wFMCommunicate OK [09:41:34]SAM_PROTO_GetShiftState done [09:41:34]FM_GetShiftState done [09:41:34]opened in 1712967615 [09:41:34]opened+sec_in_day 1713054015 [09:41:34]quantity*price = 100050 [09:41:34]sum+1 = 100052 [09:41:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 63 13.04.2024 09:41 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28856 ФПД: 258145699236585 1/tax-web-control/client/api/v1/ticket?date=20240413T094138&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28856&fm=258145699236585&tin=02508201610067®Number=0000138879044617&sum=100051 [09:41:35]StoreToDocumentArchive [09:41:35]shift 115 fd 28856 [09:41:35]save to /storage/0115/doc_00028856 [09:41:35]save last doc name /storage/0115/doc_00028856 to /storage/kkm_last_doc_name [09:41:35]save OK [09:41:35]Clear old archive folders... [09:41:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:41:35]tlvbuf is 01220130 [09:41:35]SAM_PROTO_ClearQueue [09:41:35]wFMCommunicate request_size=4 [09:41:35]MH_SAM_APDU [09:41:35]CAPDU: 80 09 00 00 [09:41:35]Write to MH i2c: E2 08 00 23 29 80 09 00 00 00 00 00 00 BE [09:41:35]Write i2c OK [09:41:35]MH_I2C_Read... [09:41:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:35]Read from MH i2c: E2 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: E2 03 00 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: E2 03 00 23 29 00 90 00 C0 [09:41:35]RAPDU: 90 00 [09:41:35]wFMCommunicate OK [09:41:35]SAM_PROTO_ClearQueue done [09:41:35]KKMCreateOFDPacket [09:41:35]OFDProtocolAddRootSTLVToBuf [09:41:35]FM_MakeSignedData [09:41:35]FM_MakeSignedData [09:41:35]SAM_PROTO_SignData [09:41:35]wFMCommunicate request_size=4 [09:41:35]MH_SAM_APDU [09:41:35]CAPDU: 80 0D 01 02 [09:41:35]Write to MH i2c: E2 08 00 24 29 80 0D 01 02 00 00 00 00 C6 [09:41:35]Write i2c OK [09:41:35]MH_I2C_Read... [09:41:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:35]Read from MH i2c: E2 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: E2 03 00 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: E2 03 00 24 29 00 90 00 C1 [09:41:35]RAPDU: 90 00 [09:41:35]wFMCommunicate OK [09:41:35]wFMCommunicate request_size=255 [09:41:35]MH_SAM_APDU [09:41:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 3F 00 00 00 F4 03 04 00 52 53 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B8 70 00 00 35 04 06 00 EA [09:41:35]Write to MH i2c: E2 02 01 25 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 3F 00 00 00 F4 03 04 00 52 53 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B8 70 00 00 35 04 06 00 EA 00 00 41 [09:41:35]Write i2c OK [09:41:35]MH_I2C_Read... [09:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:35]Read from MH i2c: E2 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: E2 03 00 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: E2 03 00 25 29 00 90 00 C2 [09:41:35]RAPDU: 90 00 [09:41:35]wFMCommunicate OK [09:41:35]wFMCommunicate request_size=10 [09:41:35]MH_SAM_APDU [09:41:35]CAPDU: 80 0D 02 02 05 C8 3A B4 0A E9 [09:41:35]Write to MH i2c: E2 0D 00 26 29 80 0D 02 02 05 00 C8 3A B4 0A E9 00 00 7C [09:41:35]Write i2c OK [09:41:35]MH_I2C_Read... [09:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:35]Read from MH i2c: E2 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: E2 03 00 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: E2 03 00 26 29 00 90 00 C3 [09:41:35]RAPDU: 90 00 [09:41:35]wFMCommunicate OK [09:41:35]wFMCommunicate request_size=4 [09:41:35]MH_SAM_APDU [09:41:35]CAPDU: 80 0D 03 02 [09:41:35]Write to MH i2c: E2 08 00 27 29 80 0D 03 02 00 00 00 00 CB [09:41:35]Write i2c OK [09:41:35]MH_I2C_Read... [09:41:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:35]Read from MH i2c: E2 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: E2 0B 00 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: E2 0B 00 27 29 00 2E 7E C8 90 C8 A4 1D 17 90 00 70 [09:41:35]RAPDU: 2E 7E C8 90 C8 A4 1D 17 90 00 [09:41:35]wFMCommunicate OK [09:41:35]SAM_PROTO_SignData done [09:41:35]FM_MakeSignedData done [09:41:35]CreateOFDProtocolMessage [09:41:35]wFMCommunicate request_size=4 [09:41:35]MH_SAM_APDU [09:41:35]CAPDU: 80 11 00 00 [09:41:35]Write to MH i2c: E2 08 00 28 29 80 11 00 00 00 00 00 00 CB [09:41:35]Write i2c OK [09:41:35]MH_I2C_Read... [09:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:35]Read from MH i2c: E2 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: E2 17 00 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: E2 17 00 28 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1A [09:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:41:35]wFMCommunicate OK [09:41:35]CreateOFDProtocolMessage done [09:41:35]OFDSenderStorePacket 28856 [09:41:35]StoreOFDPacket docnum=28856 [09:41:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E8 18 07 01 FE 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 3F 00 00 00 F4 03 04 00 52 53 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B8 70 00 00 35 04 06 00 EA C8 3A B4 0A E9 2E 7E C8 90 C8 A4 1D 17 [09:41:35]CheckFolder [09:41:35]dirname=/storage/ofd_packets [09:41:35]CheckFolder done [09:41:35]ProducePacketName [09:41:35]name=ofd_packets/00028856 [09:41:35]NVStorageSaveData ofd_packets/00028856 [09:41:35]File name is /storage/ofd_packets/00028856 [09:41:35]Write 301 bytes [09:41:35]NVStorageSaveData done [09:41:35]OFDSenderStorePacket done [09:41:35]KKMCreateOFDPacket done [09:41:35]NVStorageSaveData kkm_last_timestamp [09:41:35]File name is /storage/kkm_last_timestamp [09:41:35]Write 4 bytes [09:41:35]NVStorageSaveData done [09:41:35]ExternCall_PrintAddStr [09:41:35]wPrintStart [09:41:35]Write to MH i2c: 01 00 00 29 29 52 [09:41:35]OFD Sender: Processing packet 28856 [packets to send 8, broken 7] [09:41:35]ProducePacketName [09:41:35]name=ofd_packets/00028856 [09:41:35]OFD Sender: To server: pG, [09:41:35]CommunicateWithHost lk.salyk.kg:30040 [09:41:35]ConnectInit lk.salyk.kg [09:41:35]Write i2c OK [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: 01 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: 01 07 00 [09:41:35]MH_I2C_Read... [09:41:35]Read from MH i2c: 01 07 00 29 29 00 00 00 00 00 FF 0F 67 [09:41:35]RasterBufferAndPrint [09:41:35]line Счет N : (1)347208 [09:41:35]line ИНН: 02508201610067 [09:41:35]line Контрольно-Кассовый Чек [09:41:35]line ПРОДАЖА [09:41:35]line ТРК (МРК, ГНК) : 42 [09:41:35]line Товар: 2710124130 [09:41:35]line Аи-92-К-5 [09:41:35]line 15.560 * 64.30 [09:41:35]line = 1000.51 [09:41:35]line НДС 12% НСП 1% [09:41:35]line > о реализуемом товаре [09:41:35]line ИТОГО: 1000.51 [09:41:35]line НСП 1% : 8.85 [09:41:35]line НДС 12% : 106.25 [09:41:35]line Наличными: 0.00 [09:41:35]line Безнал.: 1000.51 [09:41:35]line Место: АЗС № 108 "Партнер Нефть" [09:41:35]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:41:35]line СНО: Общий режим [09:41:35]line Чек 63 13.04.2024 09:41 [09:41:35]line Смена: 115 ФФД: 1.0 [09:41:35]line ЗНМ: 0300000027 [09:41:35]line РНМ: 0000138879044617 [09:41:35]line Версия ККМ: 001 [09:41:35]line Платежная система: О! деньги [09:41:35]line ФМ: 0000000000963154 [09:41:35]line ФД: 28856 [09:41:35]line ФПД: 258145699236585 [09:41:35]line 1/tax-web-control/client/api/v1/ticket?date=20240413T094138&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28856&fm=258145699236585&tin=02508201610067®Number=0000138879044617&sum=100051 [09:41:36]written 0, free lines is 4095 [09:41:36]Connected sock=10 [09:41: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 31 35 34 0F 01 00 00 E8 18 07 01 FE 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 3F 00 00 00 F4 03 04 00 52 53 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B8 70 00 00 35 04 06 00 EA C8 3A B4 0A E9 2E 7E C8 90 C8 A4 1D 17 [09:41:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 BA 13 47 00 07 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 31 35 34 10 04 04 00 B8 70 00 00 F4 03 04 00 F9 FD 19 66 B6 04 01 00 00 FB DB EE 01 B0 08 3B C7 [09:41:36]CommunicateWithHost err = 0 [09:41:36]CheckOFDResponse [09:41:36]1017 (14) - 77093643461234 [09:41:36]1041 (16) - 0000000000963154 [09:41:36]1040 (4) - 28856 [09:41:36]1012 (4) - 13.04.2024 03:37 [09:41:36]1206 (1) - 0 [09:41:36]OFD Sender: Remove packet 28856 [09:41:36]ProducePacketName [09:41:36]name=ofd_packets/00028856 [09:41:36]NVStorageDeleteData [09:41:36]Write to MH i2c: 01 00 00 52 29 7B [09:41:36]Write i2c OK [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: 01 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: 01 07 00 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: 01 07 00 52 29 00 00 00 00 00 E4 0C 72 [09:41:36]RasterBufferAndPrint [09:41:36]line [09:41:36]line [09:41:36]line [09:41:36]line [09:41:36]line [09:41:36]written 0, free lines is 3305 [09:41:36]MH_Cut [09:41:36]Write to MH i2c: D1 01 00 59 29 01 54 [09:41:36]Write i2c OK [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: D1 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: D1 01 00 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: D1 01 00 59 29 00 53 [09:41:36]Write to MH i2c: 01 00 00 5A 29 83 [09:41:36]Write i2c OK [09:41:36]MH_I2C_Read... [09:41:36]OFD Sender: No OFD packet to send [09:41:37]*** Cut start [09:41:37]*** Partial cut [09:41:37]*** CUTSNS_PIN = 1 [09:41:37]*** CUTSNS_PIN = 0 [09:41:37]*** Brake cut motor [09:41:38]Read from MH i2c: 01 [09:41:38]MH_I2C_Read... [09:41:38]*** Stop cut motor [09:41:38]*** Cut end [09:41:38]Read from MH i2c: 01 07 00 [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: 01 07 00 5A 29 00 00 00 00 00 FF 0F 98 [09:41:38]process_action close_receipt done [09:41:38]requested_data is exist [09:41:38]produce_requested_data [09:41:38]requested_item fm.sn is exist - process it [09:41:38]wFMCommunicate request_size=4 [09:41:38]MH_SAM_APDU [09:41:38]CAPDU: 80 11 00 00 [09:41:38]Write to MH i2c: E2 08 00 5B 29 80 11 00 00 00 00 00 00 FE [09:41:38]Write i2c OK [09:41:38]MH_I2C_Read... [09:41:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:38]Read from MH i2c: E2 [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: E2 17 00 [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: E2 17 00 5B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4D [09:41:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:41:38]wFMCommunicate OK [09:41:38]requested_item fd.num is exist - process it [09:41:38]SAM_PROTO_GetFieldsCounters [09:41:38]wFMCommunicate request_size=4 [09:41:38]MH_SAM_APDU [09:41:38]CAPDU: 80 13 00 00 [09:41:38]Write to MH i2c: E2 08 00 5C 29 80 13 00 00 00 00 00 00 01 [09:41:38]Write i2c OK [09:41:38]MH_I2C_Read... [09:41:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:38]Read from MH i2c: E2 [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: E2 62 00 [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: E2 62 00 5C 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B8 70 00 00 0E 04 04 00 73 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 97 [09:41: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B8 70 00 00 0E 04 04 00 73 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:41:38]wFMCommunicate OK [09:41:38]SAM_PROTO_GetFieldsCounters done [09:41:38]requested_item shift.num is exist - process it [09:41:38]requested_item shift.opened is exist - process it [09:41:38]req_shift_opened [09:41:38]FM_GetShiftState [09:41:38]SAM_PROTO_GetShiftState [09:41:38]wFMCommunicate request_size=4 [09:41:38]MH_SAM_APDU [09:41:38]CAPDU: 80 13 01 00 [09:41:38]Write to MH i2c: E2 08 00 5D 29 80 13 01 00 00 00 00 00 03 [09:41:38]Write i2c OK [09:41:38]MH_I2C_Read... [09:41:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:38]Read from MH i2c: E2 [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: E2 0E 00 [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: E2 0E 00 5D 29 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 1C [09:41:38]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:41:38]wFMCommunicate OK [09:41:38]SAM_PROTO_GetShiftState done [09:41:38]FM_GetShiftState done [09:41:38]req_shift_opened done [09:41:38]requested_item shift.open_date is exist - process it [09:41:38]req_shift_open_date [09:41:38]req_shift_open_date done [09:41:38]produce_requested_data done [09:41:38]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28856,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [09:41:38]process_action_free close_receipt [09:41:38]json_value_free [09:41:38]json_value_free done [09:41:38]process_json_proto returns [09:41:38]Send response to host [09:41:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28856,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [09:41:38]free response buf [09:41:38]execute_script done [09:41:38]execute_script returns [09:41:38]free content buf [09:41:38]Sock 9.Close socket [09:41:38]Sock 9.Thread stoped [09:41:41]OFD Sender: No OFD packet to send [09:41:46]OFD Sender: No OFD packet to send [09:41:51]OFD Sender: No OFD packet to send [09:41:56]OFD Sender: No OFD packet to send [09:42:01]OFD Sender: No OFD packet to send [09:42:06]OFD Sender: No OFD packet to send [09:42:11]OFD Sender: No OFD packet to send [09:42:16]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:57]OFD Sender: No OFD packet to send [09:43:02]OFD Sender: No OFD packet to send [09:43:07]OFD Sender: No OFD packet to send [09:43:12]OFD Sender: No OFD packet to send [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:48]accept exits with 7 [09:43:48]New connection [09:43:48]New thread 3066785124 created [09:43:48]Thread 3066928484 joined [09:43:48]Waiting for new connection... [09:43:48] Sock 7.Parse request [09:43:48]Sock 7.Check first char [09:43:48]Sock 7.First char is OK [09:43:48]request: POST /json_proto HTTP/1.0 [09:43:48]Method: POST [09:43:48]URL: /json_proto [09:43:48]Method is POST - this is cgi request [09:43:48]url: /json_proto [09:43:48]query_string will be loaded in cgi processing [09:43:48]execute_cgi json_proto POST (null) [09:43:48]execute_cgi path=json_proto method=POST [09:43:48]POST find Content-Length [09:43:48]Host: 172.17.33.3:8080 [09:43:48]Content-Length: 816 [09:43:48]Content-Type: application/json [09:43:48] [09:43:48]POST finish read [09:43:48]Found Content-Length = 816 [09:43:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:48]execute_script... [09:43: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)347209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:48]POST & json_proto [09:43:48]process_json_proto [09:43:48]json parsed OK: [09:43:48]protocol is kg_v1.0 [09:43:48]action value=close_receipt [09:43:48]process_action close_receipt [09:43:48]cmd_close_receipt [09:43:48]MH_GetDate [09:43:48]Write to MH i2c: F0 00 00 5E 29 76 [09:43:48]Write i2c OK [09:43:48]MH_I2C_Read... [09:43:48]Read from MH i2c: F0 [09:43:48]MH_I2C_Read... [09:43:48]Read from MH i2c: F0 09 00 [09:43:48]MH_I2C_Read... [09:43:48]Read from MH i2c: F0 09 00 5E 29 00 D8 53 1A 66 23 5B 8F 65 9C [09:43:48]GetLastDocTimeStamp 1713001298 [09:43:48]current date 1713001432 [09:43:48]FM_GetShiftState [09:43:48]SAM_PROTO_GetShiftState [09:43:48]wFMCommunicate request_size=4 [09:43:48]MH_SAM_APDU [09:43:48]CAPDU: 80 13 01 00 [09:43:48]Write to MH i2c: E2 08 00 5F 29 80 13 01 00 00 00 00 00 05 [09:43:48]Write i2c OK [09:43:48]MH_I2C_Read... [09:43:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:48]Read from MH i2c: E2 [09:43:48]MH_I2C_Read... [09:43:48]Read from MH i2c: E2 0E 00 [09:43:48]MH_I2C_Read... [09:43:48]Read from MH i2c: E2 0E 00 5F 29 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 1E [09:43:48]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:43:48]wFMCommunicate OK [09:43:48]SAM_PROTO_GetShiftState done [09:43:48]FM_GetShiftState done [09:43:48]opened in 1712967615 [09:43:48]opened+sec_in_day 1713054015 [09:43:48]quantity*price = 100056 [09:43:48]sum+1 = 100058 [09:43:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.57 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.57 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 64 13.04.2024 09:43 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 28857 ФПД: 25986757171547 1/tax-web-control/client/api/v1/ticket?date=20240413T094352&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28857&fm=25986757171547&tin=02508201610067®Number=0000138879044617&sum=100057 [09:43:49]StoreToDocumentArchive [09:43:49]shift 115 fd 28857 [09:43:49]save to /storage/0115/doc_00028857 [09:43:49]save last doc name /storage/0115/doc_00028857 to /storage/kkm_last_doc_name [09:43:49]save OK [09:43:49]Clear old archive folders... [09:43:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:43:49]tlvbuf is B6DA2580 [09:43:49]SAM_PROTO_ClearQueue [09:43:49]wFMCommunicate request_size=4 [09:43:49]MH_SAM_APDU [09:43:49]CAPDU: 80 09 00 00 [09:43:49]Write to MH i2c: E2 08 00 6C 29 80 09 00 00 00 00 00 00 07 [09:43:49]Write i2c OK [09:43:49]MH_I2C_Read... [09:43:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:50]Read from MH i2c: E2 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 6C 29 00 90 00 09 [09:43:50]RAPDU: 90 00 [09:43:50]wFMCommunicate OK [09:43:50]SAM_PROTO_ClearQueue done [09:43:50]KKMCreateOFDPacket [09:43:50]OFDProtocolAddRootSTLVToBuf [09:43:50]FM_MakeSignedData [09:43:50]FM_MakeSignedData [09:43:50]SAM_PROTO_SignData [09:43:50]wFMCommunicate request_size=4 [09:43:50]MH_SAM_APDU [09:43:50]CAPDU: 80 0D 01 02 [09:43:50]Write to MH i2c: E2 08 00 6D 29 80 0D 01 02 00 00 00 00 0F [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:50]Read from MH i2c: E2 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 6D 29 00 90 00 0A [09:43:50]RAPDU: 90 00 [09:43:50]wFMCommunicate OK [09:43:50]wFMCommunicate request_size=255 [09:43:50]MH_SAM_APDU [09:43: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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 D8 53 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B9 70 00 00 35 04 06 00 17 A2 83 6E [09:43:50]Write to MH i2c: E2 02 01 6E 29 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 D8 53 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B9 70 00 00 35 04 06 00 17 A2 83 6E 00 00 91 [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:50]Read from MH i2c: E2 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 6E 29 00 90 00 0B [09:43:50]RAPDU: 90 00 [09:43:50]wFMCommunicate OK [09:43:50]wFMCommunicate request_size=7 [09:43:50]MH_SAM_APDU [09:43:50]CAPDU: 80 0D 02 02 02 19 5B [09:43:50]Write to MH i2c: E2 0A 00 6F 29 80 0D 02 02 02 00 19 5B 00 00 8A [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:50]Read from MH i2c: E2 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 6F 29 00 90 00 0C [09:43:50]RAPDU: 90 00 [09:43:50]wFMCommunicate OK [09:43:50]wFMCommunicate request_size=4 [09:43:50]MH_SAM_APDU [09:43:50]CAPDU: 80 0D 03 02 [09:43:50]Write to MH i2c: E2 08 00 70 29 80 0D 03 02 00 00 00 00 14 [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:50]Read from MH i2c: E2 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 0B 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 0B 00 70 29 00 72 5E 03 9F 6F 76 C7 3D 90 00 70 [09:43:50]RAPDU: 72 5E 03 9F 6F 76 C7 3D 90 00 [09:43:50]wFMCommunicate OK [09:43:50]SAM_PROTO_SignData done [09:43:50]FM_MakeSignedData done [09:43:50]CreateOFDProtocolMessage [09:43:50]wFMCommunicate request_size=4 [09:43:50]MH_SAM_APDU [09:43:50]CAPDU: 80 11 00 00 [09:43:50]Write to MH i2c: E2 08 00 71 29 80 11 00 00 00 00 00 00 14 [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:50]Read from MH i2c: E2 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 17 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 17 00 71 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 63 [09:43:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:43:50]wFMCommunicate OK [09:43:50]CreateOFDProtocolMessage done [09:43:50]OFDSenderStorePacket 28857 [09:43:50]StoreOFDPacket docnum=28857 [09:43:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 AE FE 04 01 DA E0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 D8 53 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B9 70 00 00 35 04 06 00 17 A2 83 6E 19 5B 72 5E 03 9F 6F 76 C7 3D [09:43:50]CheckFolder [09:43:50]dirname=/storage/ofd_packets [09:43:50]CheckFolder done [09:43:50]ProducePacketName [09:43:50]name=ofd_packets/00028857 [09:43:50]NVStorageSaveData ofd_packets/00028857 [09:43:50]File name is /storage/ofd_packets/00028857 [09:43:50]Write 298 bytes [09:43:50]NVStorageSaveData done [09:43:50]OFDSenderStorePacket done [09:43:50]KKMCreateOFDPacket done [09:43:50]NVStorageSaveData kkm_last_timestamp [09:43:50]File name is /storage/kkm_last_timestamp [09:43:50]Write 4 bytes [09:43:50]NVStorageSaveData done [09:43:50]ExternCall_PrintAddStr [09:43:50]wPrintStart [09:43:50]Write to MH i2c: 01 00 00 72 29 9B [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: 01 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: 01 07 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: 01 07 00 72 29 00 00 00 00 00 FF 0F B0 [09:43:50]RasterBufferAndPrint [09:43:50]line Счет N : (1)347209 [09:43:50]line ИНН: 02508201610067 [09:43:50]line Контрольно-Кассовый Чек [09:43:50]line ПРОДАЖА [09:43:50]line ТРК (МРК, ГНК) : 21 [09:43:50]line Товар: 2710194210 [09:43:50]line ДТ-К-5 [09:43:50]line 13.820 * 72.40 [09:43:50]line = 1000.57 [09:43:50]line НДС 12% НСП 1% [09:43:50]line > о реализуемом товаре [09:43:50]line ИТОГО: 1000.57 [09:43:50]line НСП 1% : 8.85 [09:43:50]line НДС 12% : 106.25 [09:43:50]line Наличными: 0.00 [09:43:50]line Безнал.: 1000.57 [09:43:50]line Место: АЗС № 108 "Партнер Нефть" [09:43:50]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:43:50]line СНО: Общий режим [09:43:50]line Чек 64 13.04.2024 09:43 [09:43:50]line Смена: 115 ФФД: 1.0 [09:43:50]line ЗНМ: 0300000027 [09:43:50]line РНМ: 0000138879044617 [09:43:50]line Версия ККМ: 001 [09:43:50]line Платежная система: Бакай Банк [09:43:50]line ФМ: 0000000000963154 [09:43:50]line ФД: 28857 [09:43:50]line ФПД: 25986757171547 [09:43:50]line 1/tax-web-control/client/api/v1/ticket?date=20240413T094352&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28857&fm=25986757171547&tin=02508201610067®Number=0000138879044617&sum=100057 [09:43:50]OFD Sender: Processing packet 28857 [packets to send 8, broken 7] [09:43:50]ProducePacketName [09:43:50]name=ofd_packets/00028857 [09:43:50]OFD Sender: To server: pG, [09:43:50]CommunicateWithHost lk.salyk.kg:30040 [09:43:50]ConnectInit lk.salyk.kg [09:43:50]written 0, free lines is 4095 [09:43:50]Connected sock=10 [09:43: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 31 35 34 0C 01 00 00 AE FE 04 01 DA E0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 D8 53 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 B9 70 00 00 35 04 06 00 17 A2 83 6E 19 5B 72 5E 03 9F 6F 76 C7 3D [09:43:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 82 27 47 00 64 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 31 35 34 10 04 04 00 B9 70 00 00 F4 03 04 00 80 FE 19 66 B6 04 01 00 00 B7 BC 3E 48 78 8A C4 1E [09:43:51]CommunicateWithHost err = 0 [09:43:51]CheckOFDResponse [09:43:51]1017 (14) - 77093643461234 [09:43:51]1041 (16) - 0000000000963154 [09:43:51]1040 (4) - 28857 [09:43:51]1012 (4) - 13.04.2024 03:39 [09:43:51]1206 (1) - 0 [09:43:51]OFD Sender: Remove packet 28857 [09:43:51]ProducePacketName [09:43:51]name=ofd_packets/00028857 [09:43:51]NVStorageDeleteData [09:43:51]Write to MH i2c: 01 00 00 9B 29 C4 [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: 01 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: 01 07 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: 01 07 00 9B 29 00 00 00 00 00 E9 0C C0 [09:43:51]RasterBufferAndPrint [09:43:51]line [09:43:51]line [09:43:51]line [09:43:51]line [09:43:51]line [09:43:51]written 0, free lines is 3312 [09:43:51]MH_Cut [09:43:51]Write to MH i2c: D1 01 00 A2 29 01 9D [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: D1 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: D1 01 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: D1 01 00 A2 29 00 9C [09:43:51]Write to MH i2c: 01 00 00 A3 29 CC [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]OFD Sender: No OFD packet to send [09:43:52]*** Cut start [09:43:52]*** Partial cut [09:43:52]*** CUTSNS_PIN = 1 [09:43:52]*** CUTSNS_PIN = 0 [09:43:52]*** Brake cut motor [09:43:52]Read from MH i2c: 01 [09:43:52]MH_I2C_Read... [09:43:52]*** Stop cut motor [09:43:52]*** Cut end [09:43:52]Read from MH i2c: 01 07 00 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: 01 07 00 A3 29 00 00 00 00 00 FF 0F E1 [09:43:52]process_action close_receipt done [09:43:52]requested_data is exist [09:43:52]produce_requested_data [09:43:52]requested_item fm.sn is exist - process it [09:43:52]wFMCommunicate request_size=4 [09:43:52]MH_SAM_APDU [09:43:52]CAPDU: 80 11 00 00 [09:43:52]Write to MH i2c: E2 08 00 A4 29 80 11 00 00 00 00 00 00 47 [09:43:52]Write i2c OK [09:43:52]MH_I2C_Read... [09:43:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:52]Read from MH i2c: E2 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: E2 17 00 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: E2 17 00 A4 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 96 [09:43:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:43:52]wFMCommunicate OK [09:43:52]requested_item fd.num is exist - process it [09:43:52]SAM_PROTO_GetFieldsCounters [09:43:52]wFMCommunicate request_size=4 [09:43:52]MH_SAM_APDU [09:43:52]CAPDU: 80 13 00 00 [09:43:52]Write to MH i2c: E2 08 00 A5 29 80 13 00 00 00 00 00 00 4A [09:43:52]Write i2c OK [09:43:52]MH_I2C_Read... [09:43:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:52]Read from MH i2c: E2 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: E2 62 00 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: E2 62 00 A5 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B9 70 00 00 0E 04 04 00 73 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 E4 [09:43: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 B9 70 00 00 0E 04 04 00 73 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:43:52]wFMCommunicate OK [09:43:52]SAM_PROTO_GetFieldsCounters done [09:43:52]requested_item shift.num is exist - process it [09:43:52]requested_item shift.opened is exist - process it [09:43:52]req_shift_opened [09:43:52]FM_GetShiftState [09:43:52]SAM_PROTO_GetShiftState [09:43:52]wFMCommunicate request_size=4 [09:43:52]MH_SAM_APDU [09:43:52]CAPDU: 80 13 01 00 [09:43:52]Write to MH i2c: E2 08 00 A6 29 80 13 01 00 00 00 00 00 4C [09:43:52]Write i2c OK [09:43:52]MH_I2C_Read... [09:43:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:53]Read from MH i2c: E2 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 0E 00 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 0E 00 A6 29 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 65 [09:43:53]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:43:53]wFMCommunicate OK [09:43:53]SAM_PROTO_GetShiftState done [09:43:53]FM_GetShiftState done [09:43:53]req_shift_opened done [09:43:53]requested_item shift.open_date is exist - process it [09:43:53]req_shift_open_date [09:43:53]req_shift_open_date done [09:43:53]produce_requested_data done [09:43:53]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28857,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [09:43:53]process_action_free close_receipt [09:43:53]json_value_free [09:43:53]json_value_free done [09:43:53]process_json_proto returns [09:43:53]Send response to host [09:43:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28857,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [09:43:53]free response buf [09:43:53]execute_script done [09:43:53]execute_script returns [09:43:53]free content buf [09:43:53]Sock 7.Close socket [09:43:53]Sock 7.Thread stoped [09:43:56]OFD Sender: No OFD packet to send [09:44:01]OFD Sender: No OFD packet to send [09:44:06]OFD Sender: No OFD packet to send [09:44:11]OFD Sender: No OFD packet to send [09:44:16]OFD Sender: No OFD packet to send [09:44:21]OFD Sender: No OFD packet to send [09:44:26]OFD Sender: No OFD packet to send [09:44:31]OFD Sender: No OFD packet to send [09:44:36]OFD Sender: No OFD packet to send [09:44:41]OFD Sender: No OFD packet to send [09:44:46]OFD Sender: No OFD packet to send [09:44:51]OFD Sender: No OFD packet to send [09:44:56]OFD Sender: No OFD packet to send [09:45:01]OFD Sender: No OFD packet to send [09:45:06]OFD Sender: No OFD packet to send [09:45:11]OFD Sender: No OFD packet to send [09:45:16]OFD Sender: No OFD packet to send [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:46:59]accept exits with 9 [09:46:59]New connection [09:46:59]New thread 3066928484 created [09:46:59]Thread 3066785124 joined [09:46:59]Waiting for new connection... [09:46:59] Sock 9.Parse request [09:46:59]Sock 9.Check first char [09:46:59]Sock 9.First char is OK [09:46:59]request: POST /json_proto HTTP/1.0 [09:46:59]Method: POST [09:46:59]URL: /json_proto [09:46:59]Method is POST - this is cgi request [09:46:59]url: /json_proto [09:46:59]query_string will be loaded in cgi processing [09:46:59]execute_cgi json_proto POST (null) [09:46:59]execute_cgi path=json_proto method=POST [09:46:59]POST find Content-Length [09:46:59]Host: 172.17.33.3:8080 [09:46:59]Content-Length: 677 [09:46:59]Content-Type: application/json [09:46:59] [09:46:59]POST finish read [09:46:59]Found Content-Length = 677 [09:46:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347210", "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" : 64.30, "quantity" : 7.780, "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:46:59]execute_script... [09:46: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)347210", "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" : 64.30, "quantity" : 7.780, "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:46:59]POST & json_proto [09:46:59]process_json_proto [09:46:59]json parsed OK: [09:46:59]protocol is kg_v1.0 [09:46:59]action value=close_receipt [09:46:59]process_action close_receipt [09:46:59]cmd_close_receipt [09:46:59]MH_GetDate [09:46:59]Write to MH i2c: F0 00 00 A7 29 BF [09:46:59]Write i2c OK [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: F0 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: F0 09 00 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: F0 09 00 A7 29 00 97 54 1A 66 23 5B 8F 65 A5 [09:46:59]GetLastDocTimeStamp 1713001432 [09:46:59]current date 1713001623 [09:46:59]FM_GetShiftState [09:46:59]SAM_PROTO_GetShiftState [09:46:59]wFMCommunicate request_size=4 [09:46:59]MH_SAM_APDU [09:46:59]CAPDU: 80 13 01 00 [09:46:59]Write to MH i2c: E2 08 00 A8 29 80 13 01 00 00 00 00 00 4E [09:46:59]Write i2c OK [09:46:59]MH_I2C_Read... [09:46:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:59]Read from MH i2c: E2 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 0E 00 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 0E 00 A8 29 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 67 [09:46:59]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:46:59]wFMCommunicate OK [09:46:59]SAM_PROTO_GetShiftState done [09:46:59]FM_GetShiftState done [09:46:59]opened in 1712967615 [09:46:59]opened+sec_in_day 1713054015 [09:46:59]quantity*price = 50025 [09:46:59]sum+1 = 50026 [09:46:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 65 13.04.2024 09:47 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28858 ФПД: 133416194137493 1/tax-web-control/client/api/v1/ticket?date=20240413T094703&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28858&fm=133416194137493&tin=02508201610067®Number=0000138879044617&sum=50000 [09:47:01]StoreToDocumentArchive [09:47:01]shift 115 fd 28858 [09:47:01]save to /storage/0115/doc_00028858 [09:47:01]save last doc name /storage/0115/doc_00028858 to /storage/kkm_last_doc_name [09:47:01]save OK [09:47:01]Clear old archive folders... [09:47:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:01]tlvbuf is B6ED4B10 [09:47:01]SAM_PROTO_ClearQueue [09:47:01]wFMCommunicate request_size=4 [09:47:01]MH_SAM_APDU [09:47:01]CAPDU: 80 09 00 00 [09:47:01]Write to MH i2c: E2 08 00 B5 29 80 09 00 00 00 00 00 00 50 [09:47:01]Write i2c OK [09:47:01]MH_I2C_Read... [09:47:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:01]Read from MH i2c: E2 [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: E2 03 00 [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: E2 03 00 B5 29 00 90 00 52 [09:47:01]RAPDU: 90 00 [09:47:01]wFMCommunicate OK [09:47:01]SAM_PROTO_ClearQueue done [09:47:01]KKMCreateOFDPacket [09:47:01]OFDProtocolAddRootSTLVToBuf [09:47:01]FM_MakeSignedData [09:47:01]FM_MakeSignedData [09:47:01]SAM_PROTO_SignData [09:47:01]wFMCommunicate request_size=4 [09:47:01]MH_SAM_APDU [09:47:01]CAPDU: 80 0D 01 02 [09:47:01]Write to MH i2c: E2 08 00 B6 29 80 0D 01 02 00 00 00 00 58 [09:47:01]Write i2c OK [09:47:01]MH_I2C_Read... [09:47:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:01]Read from MH i2c: E2 [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: E2 03 00 [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: E2 03 00 B6 29 00 90 00 53 [09:47:01]RAPDU: 90 00 [09:47:01]wFMCommunicate OK [09:47:01]wFMCommunicate request_size=255 [09:47:01]MH_SAM_APDU [09:47:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 41 00 00 00 F4 03 04 00 97 54 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BA 70 00 00 35 04 06 00 79 [09:47:01]Write to MH i2c: E2 02 01 B7 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 41 00 00 00 F4 03 04 00 97 54 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BA 70 00 00 35 04 06 00 79 00 00 DC [09:47:01]Write i2c OK [09:47:01]MH_I2C_Read... [09:47:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:01]Read from MH i2c: E2 [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: E2 03 00 [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: E2 03 00 B7 29 00 90 00 54 [09:47:01]RAPDU: 90 00 [09:47:01]wFMCommunicate OK [09:47:01]wFMCommunicate request_size=10 [09:47:01]MH_SAM_APDU [09:47:01]CAPDU: 80 0D 02 02 05 57 60 DB DD 95 [09:47:01]Write to MH i2c: E2 0D 00 B8 29 80 0D 02 02 05 00 57 60 DB DD 95 00 00 69 [09:47:01]Write i2c OK [09:47:01]MH_I2C_Read... [09:47:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:01]Read from MH i2c: E2 [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: E2 03 00 [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: E2 03 00 B8 29 00 90 00 55 [09:47:01]RAPDU: 90 00 [09:47:01]wFMCommunicate OK [09:47:01]wFMCommunicate request_size=4 [09:47:01]MH_SAM_APDU [09:47:01]CAPDU: 80 0D 03 02 [09:47:01]Write to MH i2c: E2 08 00 B9 29 80 0D 03 02 00 00 00 00 5D [09:47:01]Write i2c OK [09:47:01]MH_I2C_Read... [09:47:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:01]Read from MH i2c: E2 [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: E2 0B 00 [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: E2 0B 00 B9 29 00 E7 23 26 12 C3 47 E7 15 90 00 A6 [09:47:01]RAPDU: E7 23 26 12 C3 47 E7 15 90 00 [09:47:01]wFMCommunicate OK [09:47:01]SAM_PROTO_SignData done [09:47:01]FM_MakeSignedData done [09:47:01]CreateOFDProtocolMessage [09:47:01]wFMCommunicate request_size=4 [09:47:01]MH_SAM_APDU [09:47:01]CAPDU: 80 11 00 00 [09:47:01]Write to MH i2c: E2 08 00 BA 29 80 11 00 00 00 00 00 00 5D [09:47:01]Write i2c OK [09:47:01]MH_I2C_Read... [09:47:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:01]Read from MH i2c: E2 [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: E2 17 00 [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: E2 17 00 BA 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AC [09:47:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:47:01]wFMCommunicate OK [09:47:01]CreateOFDProtocolMessage done [09:47:01]OFDSenderStorePacket 28858 [09:47:01]StoreOFDPacket docnum=28858 [09:47:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 AB C4 07 01 60 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 41 00 00 00 F4 03 04 00 97 54 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BA 70 00 00 35 04 06 00 79 57 60 DB DD 95 E7 23 26 12 C3 47 E7 15 [09:47:01]CheckFolder [09:47:01]dirname=/storage/ofd_packets [09:47:01]CheckFolder done [09:47:01]ProducePacketName [09:47:01]name=ofd_packets/00028858 [09:47:01]NVStorageSaveData ofd_packets/00028858 [09:47:01]File name is /storage/ofd_packets/00028858 [09:47:01]Write 301 bytes [09:47:01]NVStorageSaveData done [09:47:01]OFDSenderStorePacket done [09:47:01]KKMCreateOFDPacket done [09:47:01]NVStorageSaveData kkm_last_timestamp [09:47:01]File name is /storage/kkm_last_timestamp [09:47:01]Write 4 bytes [09:47:01]NVStorageSaveData done [09:47:01]ExternCall_PrintAddStr [09:47:01]wPrintStart [09:47:01]Write to MH i2c: 01 00 00 BB 29 E4 [09:47:01]Write i2c OK [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: 01 [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: 01 07 00 [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: 01 07 00 BB 29 00 00 00 00 00 FF 0F F9 [09:47:01]RasterBufferAndPrint [09:47:01]line Счет N : (1)347210 [09:47:01]line ИНН: 02508201610067 [09:47:01]line Контрольно-Кассовый Чек [09:47:01]line ПРОДАЖА [09:47:01]line ТРК (МРК, ГНК) : 42 [09:47:01]line Товар: 2710124130 [09:47:01]line Аи-92-К-5 [09:47:01]line 7.780 * 64.30 [09:47:01]line = 500.25 [09:47:01]line НДС 12% НСП 1% [09:47:01]line > о реализуемом товаре [09:47:01]line ОКРУГЛЕНИЕ: -0.25 [09:47:01]line ИТОГО: 500.00 [09:47:01]line Внесено: 500.00 [09:47:01]line СДАЧА: 0.00 [09:47:01]line НСП 1% : 4.43 [09:47:01]line НДС 12% : 53.12 [09:47:01]line Наличными: 500.00 [09:47:01]line Безнал.: 0.00 [09:47:01]line Место: АЗС № 108 "Партнер Нефть" [09:47:01]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:47:01]line СНО: Общий режим [09:47:01]line Чек 65 13.04.2024 09:47 [09:47:01]line Смена: 115 ФФД: 1.0 [09:47:01]line ЗНМ: 0300000027 [09:47:01]line РНМ: 0000138879044617 [09:47:01]line Версия ККМ: 001 [09:47:01]line ФМ: 0000000000963154 [09:47:01]line ФД: 28858 [09:47:01]line ФПД: 133416194137493 [09:47:01]line 1/tax-web-control/client/api/v1/ticket?date=20240413T094703&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28858&fm=133416194137493&tin=02508201610067®Number=0000138879044617&sum=50000 [09:47:01]OFD Sender: Processing packet 28858 [packets to send 8, broken 7] [09:47:01]ProducePacketName [09:47:01]name=ofd_packets/00028858 [09:47:01]OFD Sender: To server: pG, [09:47:01]CommunicateWithHost lk.salyk.kg:30040 [09:47:01]ConnectInit lk.salyk.kg [09:47:01]written 0, free lines is 4095 [09:47:02]Connected sock=10 [09:47: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 31 35 34 0F 01 00 00 AB C4 07 01 60 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 41 00 00 00 F4 03 04 00 97 54 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BA 70 00 00 35 04 06 00 79 57 60 DB DD 95 E7 23 26 12 C3 47 E7 15 [09:47:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DF 1F 47 00 4D C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BA 70 00 00 F4 03 04 00 3F FF 19 66 B6 04 01 00 00 1A 02 89 10 58 73 47 97 [09:47:02]CommunicateWithHost err = 0 [09:47:02]CheckOFDResponse [09:47:02]1017 (14) - 77093643461234 [09:47:02]1041 (16) - 0000000000963154 [09:47:02]1040 (4) - 28858 [09:47:02]1012 (4) - 13.04.2024 03:42 [09:47:02]1206 (1) - 0 [09:47:02]OFD Sender: Remove packet 28858 [09:47:02]ProducePacketName [09:47:02]name=ofd_packets/00028858 [09:47:02]NVStorageDeleteData [09:47:02]Write to MH i2c: 01 00 00 E5 29 0E [09:47:02]Write i2c OK [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: 01 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: 01 07 00 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: 01 07 00 E5 29 00 00 00 00 00 D7 0C F8 [09:47:02]RasterBufferAndPrint [09:47:02]line [09:47:02]line [09:47:02]line [09:47:02]line [09:47:02]line [09:47:02]written 0, free lines is 3294 [09:47:02]MH_Cut [09:47:02]Write to MH i2c: D1 01 00 EC 29 01 E7 [09:47:02]Write i2c OK [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: D1 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: D1 01 00 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: D1 01 00 EC 29 00 E6 [09:47:02]Write to MH i2c: 01 00 00 ED 29 16 [09:47:02]Write i2c OK [09:47:02]MH_I2C_Read... [09:47:02]OFD Sender: No OFD packet to send [09:47:03]*** Cut start [09:47:03]*** Partial cut [09:47:03]*** CUTSNS_PIN = 1 [09:47:03]*** CUTSNS_PIN = 0 [09:47:03]*** Brake cut motor [09:47:03]Read from MH i2c: 01 [09:47:03]MH_I2C_Read... [09:47:03]*** Stop cut motor [09:47:03]*** Cut end [09:47:03]Read from MH i2c: 01 07 00 [09:47:03]MH_I2C_Read... [09:47:03]Read from MH i2c: 01 07 00 ED 29 00 00 00 00 00 FF 0F 2B [09:47:03]process_action close_receipt done [09:47:03]requested_data is exist [09:47:03]produce_requested_data [09:47:03]requested_item fm.sn is exist - process it [09:47:03]wFMCommunicate request_size=4 [09:47:03]MH_SAM_APDU [09:47:03]CAPDU: 80 11 00 00 [09:47:03]Write to MH i2c: E2 08 00 EE 29 80 11 00 00 00 00 00 00 91 [09:47:03]Write i2c OK [09:47:03]MH_I2C_Read... [09:47:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:03]Read from MH i2c: E2 [09:47:03]MH_I2C_Read... [09:47:03]Read from MH i2c: E2 17 00 [09:47:03]MH_I2C_Read... [09:47:03]Read from MH i2c: E2 17 00 EE 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E0 [09:47:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:47:03]wFMCommunicate OK [09:47:03]requested_item fd.num is exist - process it [09:47:03]SAM_PROTO_GetFieldsCounters [09:47:03]wFMCommunicate request_size=4 [09:47:03]MH_SAM_APDU [09:47:03]CAPDU: 80 13 00 00 [09:47:03]Write to MH i2c: E2 08 00 EF 29 80 13 00 00 00 00 00 00 94 [09:47:03]Write i2c OK [09:47:03]MH_I2C_Read... [09:47:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:04]Read from MH i2c: E2 [09:47:04]MH_I2C_Read... [09:47:04]Read from MH i2c: E2 62 00 [09:47:04]MH_I2C_Read... [09:47:04]Read from MH i2c: E2 62 00 EF 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BA 70 00 00 0E 04 04 00 73 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 32 [09:47: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BA 70 00 00 0E 04 04 00 73 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:47:04]wFMCommunicate OK [09:47:04]SAM_PROTO_GetFieldsCounters done [09:47:04]requested_item shift.num is exist - process it [09:47:04]requested_item shift.opened is exist - process it [09:47:04]req_shift_opened [09:47:04]FM_GetShiftState [09:47:04]SAM_PROTO_GetShiftState [09:47:04]wFMCommunicate request_size=4 [09:47:04]MH_SAM_APDU [09:47:04]CAPDU: 80 13 01 00 [09:47:04]Write to MH i2c: E2 08 00 F0 29 80 13 01 00 00 00 00 00 96 [09:47:04]Write i2c OK [09:47:04]MH_I2C_Read... [09:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:04]Read from MH i2c: E2 [09:47:04]MH_I2C_Read... [09:47:04]Read from MH i2c: E2 0E 00 [09:47:04]MH_I2C_Read... [09:47:04]Read from MH i2c: E2 0E 00 F0 29 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 AF [09:47:04]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:47:04]wFMCommunicate OK [09:47:04]SAM_PROTO_GetShiftState done [09:47:04]FM_GetShiftState done [09:47:04]req_shift_opened done [09:47:04]requested_item shift.open_date is exist - process it [09:47:04]req_shift_open_date [09:47:04]req_shift_open_date done [09:47:04]produce_requested_data done [09:47:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28858,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [09:47:04]process_action_free close_receipt [09:47:04]json_value_free [09:47:04]json_value_free done [09:47:04]process_json_proto returns [09:47:04]Send response to host [09:47:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28858,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [09:47:04]free response buf [09:47:04]execute_script done [09:47:04]execute_script returns [09:47:04]free content buf [09:47:04]Sock 9.Close socket [09:47:04]Sock 9.Thread stoped [09:47:07]OFD Sender: No OFD packet to send [09:47:12]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:42]OFD Sender: No OFD packet to send [09:47:47]OFD Sender: No OFD packet to send [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:12]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51: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]accept exits with 7 [09:51:47]New connection [09:51:47]New thread 3066785124 created [09:51:47]Thread 3066928484 joined [09:51:47]Waiting for new connection... [09:51:47] Sock 7.Parse request [09:51:47]Sock 7.Check first char [09:51:47]Sock 7.First char is OK [09:51:47]request: POST /json_proto HTTP/1.0 [09:51:47]Method: POST [09:51:47]URL: /json_proto [09:51:47]Method is POST - this is cgi request [09:51:47]url: /json_proto [09:51:47]query_string will be loaded in cgi processing [09:51:47]execute_cgi json_proto POST (null) [09:51:47]execute_cgi path=json_proto method=POST [09:51:47]POST find Content-Length [09:51:47]Host: 172.17.33.3:8080 [09:51:47]Content-Length: 840 [09:51:47]Content-Type: application/json [09:51:47] [09:51:47]POST finish read [09:51:47]Found Content-Length = 840 [09:51:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347211", "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" : 64.30, "quantity" : 3.890, "sum" : 250.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 250.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:47]execute_script... [09:51: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)347211", "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" : 64.30, "quantity" : 3.890, "sum" : 250.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 250.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:47]POST & json_proto [09:51:47]process_json_proto [09:51:47]json parsed OK: [09:51:47]protocol is kg_v1.0 [09:51:47]action value=close_receipt [09:51:47]process_action close_receipt [09:51:47]cmd_close_receipt [09:51:47]MH_GetDate [09:51:47]Write to MH i2c: F0 00 00 F1 29 09 [09:51:47]Write i2c OK [09:51:47]MH_I2C_Read... [09:51:47]Read from MH i2c: F0 [09:51:47]MH_I2C_Read... [09:51:47]Read from MH i2c: F0 09 00 [09:51:47]MH_I2C_Read... [09:51:47]Read from MH i2c: F0 09 00 F1 29 00 B7 55 1A 66 23 5B 8F 65 10 [09:51:47]GetLastDocTimeStamp 1713001623 [09:51:47]current date 1713001911 [09:51:47]FM_GetShiftState [09:51:47]SAM_PROTO_GetShiftState [09:51:47]wFMCommunicate request_size=4 [09:51:47]MH_SAM_APDU [09:51:47]CAPDU: 80 13 01 00 [09:51:47]Write to MH i2c: E2 08 00 F2 29 80 13 01 00 00 00 00 00 98 [09:51:47]Write i2c OK [09:51:47]MH_I2C_Read... [09:51:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:47]Read from MH i2c: E2 [09:51:47]MH_I2C_Read... [09:51:47]Read from MH i2c: E2 0E 00 [09:51:47]MH_I2C_Read... [09:51:47]Read from MH i2c: E2 0E 00 F2 29 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 B1 [09:51:47]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:51:47]wFMCommunicate OK [09:51:47]SAM_PROTO_GetShiftState done [09:51:47]FM_GetShiftState done [09:51:47]opened in 1712967615 [09:51:47]opened+sec_in_day 1713054015 [09:51:47]quantity*price = 25012 [09:51:47]sum+1 = 25014 [09:51:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.13 НСП 1% : 2.21 НДС 12% : 26.56 Наличными: 0.00 Безнал.: 250.13 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 66 13.04.2024 09:51 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28859 ФПД: 26926318047012 1/tax-web-control/client/api/v1/ticket?date=20240413T095151&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28859&fm=26926318047012&tin=02508201610067®Number=0000138879044617&sum=25013 [09:51:48]StoreToDocumentArchive [09:51:48]shift 115 fd 28859 [09:51:48]save to /storage/0115/doc_00028859 [09:51:48]save last doc name /storage/0115/doc_00028859 to /storage/kkm_last_doc_name [09:51:48]save OK [09:51:48]Clear old archive folders... [09:51:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:48]tlvbuf is B6ED4A00 [09:51:48]SAM_PROTO_ClearQueue [09:51:48]wFMCommunicate request_size=4 [09:51:48]MH_SAM_APDU [09:51:48]CAPDU: 80 09 00 00 [09:51:48]Write to MH i2c: E2 08 00 FF 29 80 09 00 00 00 00 00 00 9A [09:51:48]Write i2c OK [09:51:48]MH_I2C_Read... [09:51:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:48]Read from MH i2c: E2 [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: E2 03 00 [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: E2 03 00 FF 29 00 90 00 9C [09:51:48]RAPDU: 90 00 [09:51:48]wFMCommunicate OK [09:51:48]SAM_PROTO_ClearQueue done [09:51:48]KKMCreateOFDPacket [09:51:48]OFDProtocolAddRootSTLVToBuf [09:51:48]FM_MakeSignedData [09:51:48]FM_MakeSignedData [09:51:48]SAM_PROTO_SignData [09:51:48]wFMCommunicate request_size=4 [09:51:48]MH_SAM_APDU [09:51:48]CAPDU: 80 0D 01 02 [09:51:48]Write to MH i2c: E2 08 00 00 2A 80 0D 01 02 00 00 00 00 A3 [09:51:48]Write i2c OK [09:51:48]MH_I2C_Read... [09:51:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:48]Read from MH i2c: E2 [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: E2 03 00 [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: E2 03 00 00 2A 00 90 00 9E [09:51:48]RAPDU: 90 00 [09:51:48]wFMCommunicate OK [09:51:48]wFMCommunicate request_size=255 [09:51:48]MH_SAM_APDU [09:51: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 32 0F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 B7 55 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BB 70 00 00 35 04 06 00 18 [09:51:48]Write to MH i2c: E2 02 01 01 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 32 0F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 B7 55 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BB 70 00 00 35 04 06 00 18 00 00 4F [09:51:48]Write i2c OK [09:51:48]MH_I2C_Read... [09:51:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:48]Read from MH i2c: E2 [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: E2 03 00 [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: E2 03 00 01 2A 00 90 00 9F [09:51:48]RAPDU: 90 00 [09:51:48]wFMCommunicate OK [09:51:48]wFMCommunicate request_size=10 [09:51:48]MH_SAM_APDU [09:51:48]CAPDU: 80 0D 02 02 05 7D 45 9F 4F 24 [09:51:48]Write to MH i2c: E2 0D 00 02 2A 80 0D 02 02 05 00 7D 45 9F 4F 24 00 00 84 [09:51:48]Write i2c OK [09:51:48]MH_I2C_Read... [09:51:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:48]Read from MH i2c: E2 [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: E2 03 00 [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: E2 03 00 02 2A 00 90 00 A0 [09:51:48]RAPDU: 90 00 [09:51:48]wFMCommunicate OK [09:51:48]wFMCommunicate request_size=4 [09:51:48]MH_SAM_APDU [09:51:48]CAPDU: 80 0D 03 02 [09:51:48]Write to MH i2c: E2 08 00 03 2A 80 0D 03 02 00 00 00 00 A8 [09:51:48]Write i2c OK [09:51:48]MH_I2C_Read... [09:51:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:48]Read from MH i2c: E2 [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: E2 0B 00 [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: E2 0B 00 03 2A 00 17 9B F6 AC 69 C9 B0 80 90 00 5F [09:51:48]RAPDU: 17 9B F6 AC 69 C9 B0 80 90 00 [09:51:48]wFMCommunicate OK [09:51:48]SAM_PROTO_SignData done [09:51:48]FM_MakeSignedData done [09:51:48]CreateOFDProtocolMessage [09:51:48]wFMCommunicate request_size=4 [09:51:48]MH_SAM_APDU [09:51:48]CAPDU: 80 11 00 00 [09:51:48]Write to MH i2c: E2 08 00 04 2A 80 11 00 00 00 00 00 00 A8 [09:51:48]Write i2c OK [09:51:48]MH_I2C_Read... [09:51:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:48]Read from MH i2c: E2 [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: E2 17 00 [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: E2 17 00 04 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F7 [09:51:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:51:48]wFMCommunicate OK [09:51:48]CreateOFDProtocolMessage done [09:51:48]OFDSenderStorePacket 28859 [09:51:48]StoreOFDPacket docnum=28859 [09:51:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 48 21 07 01 81 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 32 0F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 B7 55 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BB 70 00 00 35 04 06 00 18 7D 45 9F 4F 24 17 9B F6 AC 69 C9 B0 80 [09:51:48]CheckFolder [09:51:48]dirname=/storage/ofd_packets [09:51:48]CheckFolder done [09:51:48]ProducePacketName [09:51:48]name=ofd_packets/00028859 [09:51:48]NVStorageSaveData ofd_packets/00028859 [09:51:48]File name is /storage/ofd_packets/00028859 [09:51:48]Write 301 bytes [09:51:48]NVStorageSaveData done [09:51:48]OFDSenderStorePacket done [09:51:48]KKMCreateOFDPacket done [09:51:48]NVStorageSaveData kkm_last_timestamp [09:51:48]File name is /storage/kkm_last_timestamp [09:51:48]Write 4 bytes [09:51:48]NVStorageSaveData done [09:51:48]ExternCall_PrintAddStr [09:51:48]wPrintStart [09:51:48]Write to MH i2c: 01 00 00 05 2A 2F [09:51:48]Write i2c OK [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: 01 [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: 01 07 00 [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: 01 07 00 05 2A 00 00 00 00 00 FF 0F 44 [09:51:48]RasterBufferAndPrint [09:51:48]line Счет N : (1)347211 [09:51:48]line ИНН: 02508201610067 [09:51:48]line Контрольно-Кассовый Чек [09:51:48]line ПРОДАЖА [09:51:48]line ТРК (МРК, ГНК) : 42 [09:51:48]line Товар: 2710124130 [09:51:48]line Аи-92-К-5 [09:51:48]line 3.890 * 64.30 [09:51:48]line = 250.13 [09:51:48]line НДС 12% НСП 1% [09:51:48]line > о реализуемом товаре [09:51:48]line ИТОГО: 250.13 [09:51:48]line НСП 1% : 2.21 [09:51:48]line НДС 12% : 26.56 [09:51:48]line Наличными: 0.00 [09:51:48]line Безнал.: 250.13 [09:51:48]line Место: АЗС № 108 "Партнер Нефть" [09:51:48]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:51:48]line СНО: Общий режим [09:51:48]line Чек 66 13.04.2024 09:51 [09:51:48]line Смена: 115 ФФД: 1.0 [09:51:48]line ЗНМ: 0300000027 [09:51:48]line РНМ: 0000138879044617 [09:51:48]line Версия ККМ: 001 [09:51:48]line Платежная система: АКБ Кыргызстан [09:51:48]line ФМ: 0000000000963154 [09:51:48]line ФД: 28859 [09:51:48]line ФПД: 26926318047012 [09:51:48]line 1/tax-web-control/client/api/v1/ticket?date=20240413T095151&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28859&fm=26926318047012&tin=02508201610067®Number=0000138879044617&sum=25013 [09:51:49]OFD Sender: Processing packet 28859 [packets to send 8, broken 7] [09:51:49]ProducePacketName [09:51:49]name=ofd_packets/00028859 [09:51:49]OFD Sender: To server: pG, [09:51:49]CommunicateWithHost lk.salyk.kg:30040 [09:51:49]ConnectInit lk.salyk.kg [09:51:49]written 0, free lines is 4095 [09:51:49]Connected sock=10 [09:51: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 31 35 34 0F 01 00 00 48 21 07 01 81 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 32 0F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 B7 55 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BB 70 00 00 35 04 06 00 18 7D 45 9F 4F 24 17 9B F6 AC 69 C9 B0 80 [09:51:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B8 11 47 00 02 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 31 35 34 10 04 04 00 BB 70 00 00 F4 03 04 00 5E 00 1A 66 B6 04 01 00 00 6A F7 0C 5F 09 5E E4 69 [09:51:49]CommunicateWithHost err = 0 [09:51:49]CheckOFDResponse [09:51:49]1017 (14) - 77093643461234 [09:51:49]1041 (16) - 0000000000963154 [09:51:49]1040 (4) - 28859 [09:51:49]1012 (4) - 13.04.2024 03:47 [09:51:49]1206 (1) - 0 [09:51:49]OFD Sender: Remove packet 28859 [09:51:49]ProducePacketName [09:51:49]name=ofd_packets/00028859 [09:51:49]NVStorageDeleteData [09:51:49]Write to MH i2c: 01 00 00 2E 2A 58 [09:51:49]Write i2c OK [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: 01 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: 01 07 00 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: 01 07 00 2E 2A 00 00 00 00 00 F5 0C 60 [09:51:49]RasterBufferAndPrint [09:51:49]line [09:51:49]line [09:51:49]line [09:51:49]line [09:51:49]line [09:51:49]written 0, free lines is 3325 [09:51:49]MH_Cut [09:51:49]Write to MH i2c: D1 01 00 35 2A 01 31 [09:51:49]Write i2c OK [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: D1 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: D1 01 00 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: D1 01 00 35 2A 00 30 [09:51:49]Write to MH i2c: 01 00 00 36 2A 60 [09:51:49]Write i2c OK [09:51:49]MH_I2C_Read... [09:51:49]OFD Sender: No OFD packet to send [09:51:50]*** Cut start [09:51:50]*** Partial cut [09:51:50]*** CUTSNS_PIN = 1 [09:51:50]*** CUTSNS_PIN = 0 [09:51:50]*** Brake cut motor [09:51:51]Read from MH i2c: 01 [09:51:51]MH_I2C_Read... [09:51:51]*** Stop cut motor [09:51:51]*** Cut end [09:51:51]Read from MH i2c: 01 07 00 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: 01 07 00 36 2A 00 00 00 00 00 FF 0F 75 [09:51:51]process_action close_receipt done [09:51:51]requested_data is exist [09:51:51]produce_requested_data [09:51:51]requested_item fm.sn is exist - process it [09:51:51]wFMCommunicate request_size=4 [09:51:51]MH_SAM_APDU [09:51:51]CAPDU: 80 11 00 00 [09:51:51]Write to MH i2c: E2 08 00 37 2A 80 11 00 00 00 00 00 00 DB [09:51:51]Write i2c OK [09:51:51]MH_I2C_Read... [09:51:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:51]Read from MH i2c: E2 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: E2 17 00 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: E2 17 00 37 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2A [09:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:51:51]wFMCommunicate OK [09:51:51]requested_item fd.num is exist - process it [09:51:51]SAM_PROTO_GetFieldsCounters [09:51:51]wFMCommunicate request_size=4 [09:51:51]MH_SAM_APDU [09:51:51]CAPDU: 80 13 00 00 [09:51:51]Write to MH i2c: E2 08 00 38 2A 80 13 00 00 00 00 00 00 DE [09:51:51]Write i2c OK [09:51:51]MH_I2C_Read... [09:51:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:51]Read from MH i2c: E2 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: E2 62 00 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: E2 62 00 38 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BB 70 00 00 0E 04 04 00 73 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 80 [09:51: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BB 70 00 00 0E 04 04 00 73 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:51:51]wFMCommunicate OK [09:51:51]SAM_PROTO_GetFieldsCounters done [09:51:51]requested_item shift.num is exist - process it [09:51:51]requested_item shift.opened is exist - process it [09:51:51]req_shift_opened [09:51:51]FM_GetShiftState [09:51:51]SAM_PROTO_GetShiftState [09:51:51]wFMCommunicate request_size=4 [09:51:51]MH_SAM_APDU [09:51:51]CAPDU: 80 13 01 00 [09:51:51]Write to MH i2c: E2 08 00 39 2A 80 13 01 00 00 00 00 00 E0 [09:51:51]Write i2c OK [09:51:51]MH_I2C_Read... [09:51:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:51]Read from MH i2c: E2 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: E2 0E 00 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: E2 0E 00 39 2A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F9 [09:51:51]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:51:51]wFMCommunicate OK [09:51:51]SAM_PROTO_GetShiftState done [09:51:51]FM_GetShiftState done [09:51:51]req_shift_opened done [09:51:51]requested_item shift.open_date is exist - process it [09:51:51]req_shift_open_date [09:51:51]req_shift_open_date done [09:51:51]produce_requested_data done [09:51:51]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28859,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [09:51:51]process_action_free close_receipt [09:51:51]json_value_free [09:51:51]json_value_free done [09:51:51]process_json_proto returns [09:51:51]Send response to host [09:51:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28859,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [09:51:51]free response buf [09:51:51]execute_script done [09:51:51]execute_script returns [09:51:51]free content buf [09:51:51]Sock 7.Close socket [09:51:51]Sock 7.Thread stoped [09:51:54]OFD Sender: No OFD packet to send [09:51:57]accept exits with 9 [09:51:57]New connection [09:51:57]New thread 3066928484 created [09:51:57]Thread 3066785124 joined [09:51:57]Waiting for new connection... [09:51:57] Sock 9.Parse request [09:51:57]Sock 9.Check first char [09:51:57]Sock 9.First char is OK [09:51:57]request: POST /json_proto HTTP/1.0 [09:51:57]Method: POST [09:51:57]URL: /json_proto [09:51:57]Method is POST - this is cgi request [09:51:57]url: /json_proto [09:51:57]query_string will be loaded in cgi processing [09:51:57]execute_cgi json_proto POST (null) [09:51:57]execute_cgi path=json_proto method=POST [09:51:57]POST find Content-Length [09:51:57]Host: 172.17.33.3:8080 [09:51:57]Content-Length: 682 [09:51:57]Content-Type: application/json [09:51:57] [09:51:57]POST finish read [09:51:57]Found Content-Length = 682 [09:51:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:57]execute_script... [09: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)347212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:57]POST & json_proto [09:51:57]process_json_proto [09:51:57]json parsed OK: [09:51:57]protocol is kg_v1.0 [09:51:57]action value=close_receipt [09:51:57]process_action close_receipt [09:51:57]cmd_close_receipt [09:51:57]MH_GetDate [09:51:57]Write to MH i2c: F0 00 00 3A 2A 53 [09:51:57]Write i2c OK [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: F0 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: F0 09 00 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: F0 09 00 3A 2A 00 C1 55 1A 66 23 5B 8F 65 64 [09:51:57]GetLastDocTimeStamp 1713001911 [09:51:57]current date 1713001921 [09:51:57]FM_GetShiftState [09:51:57]SAM_PROTO_GetShiftState [09:51:57]wFMCommunicate request_size=4 [09:51:57]MH_SAM_APDU [09:51:57]CAPDU: 80 13 01 00 [09:51:57]Write to MH i2c: E2 08 00 3B 2A 80 13 01 00 00 00 00 00 E2 [09:51:57]Write i2c OK [09:51:57]MH_I2C_Read... [09:51:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:57]Read from MH i2c: E2 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: E2 0E 00 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: E2 0E 00 3B 2A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 FB [09:51:57]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:51:57]wFMCommunicate OK [09:51:57]SAM_PROTO_GetShiftState done [09:51:57]FM_GetShiftState done [09:51:57]opened in 1712967615 [09:51:57]opened+sec_in_day 1713054015 [09:51:57]quantity*price = 100050 [09:51:57]sum+1 = 100052 [09: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 67 13.04.2024 09:52 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28860 ФПД: 217211246320333 1/tax-web-control/client/api/v1/ticket?date=20240413T095201&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28860&fm=217211246320333&tin=02508201610067®Number=0000138879044617&sum=100000 [09:51:58]StoreToDocumentArchive [09:51:58]shift 115 fd 28860 [09:51:58]save to /storage/0115/doc_00028860 [09:51:58]save last doc name /storage/0115/doc_00028860 to /storage/kkm_last_doc_name [09:51:58]save OK [09:51:58]Clear old archive folders... [09:51:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:58]tlvbuf is 011DCE90 [09:51:58]SAM_PROTO_ClearQueue [09:51:58]wFMCommunicate request_size=4 [09:51:58]MH_SAM_APDU [09:51:58]CAPDU: 80 09 00 00 [09:51:58]Write to MH i2c: E2 08 00 48 2A 80 09 00 00 00 00 00 00 E4 [09:51:58]Write i2c OK [09:51:58]MH_I2C_Read... [09:51:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:58]Read from MH i2c: E2 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 03 00 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 03 00 48 2A 00 90 00 E6 [09:51:58]RAPDU: 90 00 [09:51:58]wFMCommunicate OK [09:51:58]SAM_PROTO_ClearQueue done [09:51:58]KKMCreateOFDPacket [09:51:58]OFDProtocolAddRootSTLVToBuf [09:51:58]FM_MakeSignedData [09:51:58]FM_MakeSignedData [09:51:58]SAM_PROTO_SignData [09:51:58]wFMCommunicate request_size=4 [09:51:58]MH_SAM_APDU [09:51:58]CAPDU: 80 0D 01 02 [09:51:58]Write to MH i2c: E2 08 00 49 2A 80 0D 01 02 00 00 00 00 EC [09:51:58]Write i2c OK [09:51:58]MH_I2C_Read... [09:51:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:58]Read from MH i2c: E2 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 03 00 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 03 00 49 2A 00 90 00 E7 [09:51:58]RAPDU: 90 00 [09:51:58]wFMCommunicate OK [09:51:58]wFMCommunicate request_size=255 [09:51:58]MH_SAM_APDU [09:51: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 C1 55 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BC 70 00 00 35 04 06 00 C5 [09:51:58]Write to MH i2c: E2 02 01 4A 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 C1 55 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BC 70 00 00 35 04 06 00 C5 00 00 55 [09:51:58]Write i2c OK [09:51:58]MH_I2C_Read... [09:51:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:59]Read from MH i2c: E2 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 03 00 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 03 00 4A 2A 00 90 00 E8 [09:51:59]RAPDU: 90 00 [09:51:59]wFMCommunicate OK [09:51:59]wFMCommunicate request_size=10 [09:51:59]MH_SAM_APDU [09:51:59]CAPDU: 80 0D 02 02 05 8D 6F 2D 9A CD [09:51:59]Write to MH i2c: E2 0D 00 4B 2A 80 0D 02 02 05 00 8D 6F 2D 9A CD 00 00 89 [09:51:59]Write i2c OK [09:51:59]MH_I2C_Read... [09:51:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:59]Read from MH i2c: E2 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 03 00 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 03 00 4B 2A 00 90 00 E9 [09:51:59]RAPDU: 90 00 [09:51:59]wFMCommunicate OK [09:51:59]wFMCommunicate request_size=4 [09:51:59]MH_SAM_APDU [09:51:59]CAPDU: 80 0D 03 02 [09:51:59]Write to MH i2c: E2 08 00 4C 2A 80 0D 03 02 00 00 00 00 F1 [09:51:59]Write i2c OK [09:51:59]MH_I2C_Read... [09:51:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:59]Read from MH i2c: E2 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 0B 00 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 0B 00 4C 2A 00 E6 42 14 87 40 84 33 DE 90 00 8A [09:51:59]RAPDU: E6 42 14 87 40 84 33 DE 90 00 [09:51:59]wFMCommunicate OK [09:51:59]SAM_PROTO_SignData done [09:51:59]FM_MakeSignedData done [09:51:59]CreateOFDProtocolMessage [09:51:59]wFMCommunicate request_size=4 [09:51:59]MH_SAM_APDU [09:51:59]CAPDU: 80 11 00 00 [09:51:59]Write to MH i2c: E2 08 00 4D 2A 80 11 00 00 00 00 00 00 F1 [09:51:59]Write i2c OK [09:51:59]MH_I2C_Read... [09:51:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:59]Read from MH i2c: E2 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 17 00 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 17 00 4D 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 40 [09:51:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:51:59]wFMCommunicate OK [09:51:59]CreateOFDProtocolMessage done [09:51:59]OFDSenderStorePacket 28860 [09:51:59]StoreOFDPacket docnum=28860 [09:51:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3E 9B 07 01 A9 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 C1 55 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BC 70 00 00 35 04 06 00 C5 8D 6F 2D 9A CD E6 42 14 87 40 84 33 DE [09:51:59]CheckFolder [09:51:59]dirname=/storage/ofd_packets [09:51:59]CheckFolder done [09:51:59]ProducePacketName [09:51:59]name=ofd_packets/00028860 [09:51:59]NVStorageSaveData ofd_packets/00028860 [09:51:59]File name is /storage/ofd_packets/00028860 [09:51:59]Write 301 bytes [09:51:59]NVStorageSaveData done [09:51:59]OFDSenderStorePacket done [09:51:59]KKMCreateOFDPacket done [09:51:59]NVStorageSaveData kkm_last_timestamp [09:51:59]File name is /storage/kkm_last_timestamp [09:51:59]Write 4 bytes [09:51:59]NVStorageSaveData done [09:51:59]ExternCall_PrintAddStr [09:51:59]wPrintStart [09:51:59]Write to MH i2c: 01 00 00 4E 2A 78 [09:51:59]Write i2c OK [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: 01 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: 01 07 00 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: 01 07 00 4E 2A 00 00 00 00 00 FF 0F 8D [09:51:59]RasterBufferAndPrint [09:51:59]line Счет N : (1)347212 [09:51:59]line ИНН: 02508201610067 [09:51:59]line Контрольно-Кассовый Чек [09:51:59]line ПРОДАЖА [09:51:59]line ТРК (МРК, ГНК) : 13 [09:51:59]line Товар: 2710124130 [09:51:59]line Аи-92-К-5 [09:51:59]line 15.560 * 64.30 [09:51:59]line = 1000.51 [09:51:59]line НДС 12% НСП 1% [09:51:59]line > о реализуемом товаре [09:51:59]line ОКРУГЛЕНИЕ: -0.51 [09:51:59]line ИТОГО: 1000.00 [09:51:59]line Внесено: 1000.00 [09:51:59]line СДАЧА: 0.00 [09:51:59]line НСП 1% : 8.85 [09:51:59]line НДС 12% : 106.25 [09:51:59]line Наличными: 1000.00 [09:51:59]line Безнал.: 0.00 [09:51:59]line Место: АЗС № 108 "Партнер Нефть" [09:51:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:51:59]line СНО: Общий режим [09:51:59]line Чек 67 13.04.2024 09:52 [09:51:59]line Смена: 115 ФФД: 1.0 [09:51:59]line ЗНМ: 0300000027 [09:51:59]line РНМ: 0000138879044617 [09:51:59]line Версия ККМ: 001 [09:51:59]line ФМ: 0000000000963154 [09:51:59]line ФД: 28860 [09:51:59]line ФПД: 217211246320333 [09:51:59]line 1/tax-web-control/client/api/v1/ticket?date=20240413T095201&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28860&fm=217211246320333&tin=02508201610067®Number=0000138879044617&sum=100000 [09:51:59]written 0, free lines is 4095 [09:51:59]OFD Sender: Processing packet 28860 [packets to send 8, broken 7] [09:51:59]ProducePacketName [09:51:59]name=ofd_packets/00028860 [09:51:59]OFD Sender: To server: pG, [09:51:59]CommunicateWithHost lk.salyk.kg:30040 [09:51:59]ConnectInit lk.salyk.kg [09:51:59]Connected sock=10 [09: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 31 35 34 0F 01 00 00 3E 9B 07 01 A9 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 C1 55 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BC 70 00 00 35 04 06 00 C5 8D 6F 2D 9A CD E6 42 14 87 40 84 33 DE [09: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 31 35 34 4F 00 00 00 A6 28 47 00 EB 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 31 35 34 10 04 04 00 BC 70 00 00 F4 03 04 00 68 00 1A 66 B6 04 01 00 00 B5 DE 37 D4 E5 6F 0F B6 [09:51:59]CommunicateWithHost err = 0 [09:51:59]CheckOFDResponse [09:51:59]1017 (14) - 77093643461234 [09:51:59]1041 (16) - 0000000000963154 [09:51:59]1040 (4) - 28860 [09:51:59]1012 (4) - 13.04.2024 03:47 [09:51:59]1206 (1) - 0 [09:51:59]OFD Sender: Remove packet 28860 [09:51:59]ProducePacketName [09:51:59]name=ofd_packets/00028860 [09:51:59]NVStorageDeleteData [09:51:59]Write to MH i2c: 01 00 00 78 2A A2 [09:51:59]Write i2c OK [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: 01 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: 01 07 00 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: 01 07 00 78 2A 00 00 00 00 00 DA 0C 8F [09:51:59]RasterBufferAndPrint [09:51:59]line [09:51:59]line [09:51:59]line [09:51:59]line [09:51:59]line [09:51:59]written 0, free lines is 3300 [09:51:59]MH_Cut [09:51:59]Write to MH i2c: D1 01 00 7F 2A 01 7B [09:51:59]Write i2c OK [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: D1 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: D1 01 00 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: D1 01 00 7F 2A 00 7A [09:51:59]Write to MH i2c: 01 00 00 80 2A AA [09:51:59]Write i2c OK [09:51:59]MH_I2C_Read... [09:51:59]OFD Sender: No OFD packet to send [09:52:00]*** Cut start [09:52:00]*** Partial cut [09:52:00]*** CUTSNS_PIN = 1 [09:52:00]*** CUTSNS_PIN = 0 [09:52:00]*** Brake cut motor [09:52:01]Read from MH i2c: 01 [09:52:01]MH_I2C_Read... [09:52:01]*** Stop cut motor [09:52:01]*** Cut end [09:52:01]Read from MH i2c: 01 07 00 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: 01 07 00 80 2A 00 00 00 00 00 FF 0F BF [09:52:01]process_action close_receipt done [09:52:01]requested_data is exist [09:52:01]produce_requested_data [09:52:01]requested_item fm.sn is exist - process it [09:52:01]wFMCommunicate request_size=4 [09:52:01]MH_SAM_APDU [09:52:01]CAPDU: 80 11 00 00 [09:52:01]Write to MH i2c: E2 08 00 81 2A 80 11 00 00 00 00 00 00 25 [09:52:01]Write i2c OK [09:52:01]MH_I2C_Read... [09:52:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:01]Read from MH i2c: E2 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 17 00 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 17 00 81 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 74 [09:52:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:52:01]wFMCommunicate OK [09:52:01]requested_item fd.num is exist - process it [09:52:01]SAM_PROTO_GetFieldsCounters [09:52:01]wFMCommunicate request_size=4 [09:52:01]MH_SAM_APDU [09:52:01]CAPDU: 80 13 00 00 [09:52:01]Write to MH i2c: E2 08 00 82 2A 80 13 00 00 00 00 00 00 28 [09:52:01]Write i2c OK [09:52:01]MH_I2C_Read... [09:52:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:01]Read from MH i2c: E2 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 62 00 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 62 00 82 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BC 70 00 00 0E 04 04 00 73 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 CE [09: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BC 70 00 00 0E 04 04 00 73 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:52:01]wFMCommunicate OK [09:52:01]SAM_PROTO_GetFieldsCounters done [09:52:01]requested_item shift.num is exist - process it [09:52:01]requested_item shift.opened is exist - process it [09:52:01]req_shift_opened [09:52:01]FM_GetShiftState [09:52:01]SAM_PROTO_GetShiftState [09:52:01]wFMCommunicate request_size=4 [09:52:01]MH_SAM_APDU [09:52:01]CAPDU: 80 13 01 00 [09:52:01]Write to MH i2c: E2 08 00 83 2A 80 13 01 00 00 00 00 00 2A [09:52:01]Write i2c OK [09:52:01]MH_I2C_Read... [09:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:01]Read from MH i2c: E2 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 0E 00 [09:52:01]MH_I2C_Read... [09:52:01]Read from MH i2c: E2 0E 00 83 2A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 43 [09:52:01]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:52:01]wFMCommunicate OK [09:52:01]SAM_PROTO_GetShiftState done [09:52:01]FM_GetShiftState done [09:52:01]req_shift_opened done [09:52:01]requested_item shift.open_date is exist - process it [09:52:01]req_shift_open_date [09:52:01]req_shift_open_date done [09:52:01]produce_requested_data done [09:52:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28860,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [09:52:01]process_action_free close_receipt [09:52:01]json_value_free [09:52:01]json_value_free done [09:52:01]process_json_proto returns [09:52:01]Send response to host [09:52:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28860,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [09:52:01]free response buf [09:52:01]execute_script done [09:52:01]execute_script returns [09:52:01]free content buf [09:52:01]Sock 9.Close socket [09:52:01]Sock 9.Thread stoped [09:52:04]OFD Sender: No OFD packet to send [09:52:09]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:23]accept exits with 7 [09:52:23]New connection [09:52:23]New thread 3066785124 created [09:52:23]Thread 3066928484 joined [09:52:23]Waiting for new connection... [09:52:23] Sock 7.Parse request [09:52:23]Sock 7.Check first char [09:52:23]Sock 7.First char is OK [09:52:23]request: POST /json_proto HTTP/1.0 [09:52:23]Method: POST [09:52:23]URL: /json_proto [09:52:23]Method is POST - this is cgi request [09:52:23]url: /json_proto [09:52:23]query_string will be loaded in cgi processing [09:52:23]execute_cgi json_proto POST (null) [09:52:23]execute_cgi path=json_proto method=POST [09:52:23]POST find Content-Length [09:52:23]Host: 172.17.33.3:8080 [09:52:23]Content-Length: 738 [09:52:23]Content-Type: application/json [09:52:23] [09:52:23]POST finish read [09:52:23]Found Content-Length = 738 [09:52:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 28860, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:23]execute_script... [09:52:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 28860, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:23]POST & json_proto [09:52:23]process_json_proto [09:52:23]json parsed OK: [09:52:23]protocol is kg_v1.0 [09:52:23]action value=close_receipt [09:52:23]process_action close_receipt [09:52:23]cmd_close_receipt [09:52:23]MH_GetDate [09:52:23]Write to MH i2c: F0 00 00 84 2A 9D [09:52:23]Write i2c OK [09:52:23]MH_I2C_Read... [09:52:23]Read from MH i2c: F0 [09:52:23]MH_I2C_Read... [09:52:23]Read from MH i2c: F0 09 00 [09:52:23]MH_I2C_Read... [09:52:23]Read from MH i2c: F0 09 00 84 2A 00 DB 55 1A 66 23 5B 8F 65 C8 [09:52:23]GetLastDocTimeStamp 1713001921 [09:52:23]current date 1713001947 [09:52:23]FM_GetShiftState [09:52:23]SAM_PROTO_GetShiftState [09:52:23]wFMCommunicate request_size=4 [09:52:23]MH_SAM_APDU [09:52:23]CAPDU: 80 13 01 00 [09:52:23]Write to MH i2c: E2 08 00 85 2A 80 13 01 00 00 00 00 00 2C [09:52:23]Write i2c OK [09:52:23]MH_I2C_Read... [09:52:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:23]Read from MH i2c: E2 [09:52:23]MH_I2C_Read... [09:52:23]Read from MH i2c: E2 0E 00 [09:52:23]MH_I2C_Read... [09:52:23]Read from MH i2c: E2 0E 00 85 2A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 45 [09:52:23]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:52:23]wFMCommunicate OK [09:52:23]SAM_PROTO_GetShiftState done [09:52:23]FM_GetShiftState done [09:52:23]opened in 1712967615 [09:52:23]opened+sec_in_day 1713054015 [09:52:23]quantity*price = 100050 [09:52:23]sum+1 = 100052 [09:52:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 68 13.04.2024 09:52 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФД осн.: 28860 ФМ осн.: 0000000000963154 ФМ: 0000000000963154 ФД: 28861 ФПД: 128641987262052 1/tax-web-control/client/api/v1/ticket?date=20240413T095227&type=2&operation_type=1&fn_number=0000000000963154&fd_number=28861&fm=128641987262052&tin=02508201610067®Number=0000138879044617&sum=100000 [09:52:24]StoreToDocumentArchive [09:52:24]shift 115 fd 28861 [09:52:24]save to /storage/0115/doc_00028861 [09:52:24]save last doc name /storage/0115/doc_00028861 to /storage/kkm_last_doc_name [09:52:24]save OK [09:52:24]Clear old archive folders... [09:52:24]ProcessDocumentItem done err = 0, tmpTLVsize=279 [09:52:24]tlvbuf is 01251AF0 [09:52:24]SAM_PROTO_ClearQueue [09:52:24]wFMCommunicate request_size=4 [09:52:24]MH_SAM_APDU [09:52:24]CAPDU: 80 09 00 00 [09:52:24]Write to MH i2c: E2 08 00 94 2A 80 09 00 00 00 00 00 00 30 [09:52:24]Write i2c OK [09:52:24]MH_I2C_Read... [09:52:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:24]Read from MH i2c: E2 [09:52:24]MH_I2C_Read... [09:52:24]Read from MH i2c: E2 03 00 [09:52:24]MH_I2C_Read... [09:52:24]Read from MH i2c: E2 03 00 94 2A 00 90 00 32 [09:52:24]RAPDU: 90 00 [09:52:24]wFMCommunicate OK [09:52:24]SAM_PROTO_ClearQueue done [09:52:24]KKMCreateOFDPacket [09:52:24]OFDProtocolAddRootSTLVToBuf [09:52:24]FM_MakeSignedData [09:52:24]FM_MakeSignedData [09:52:24]SAM_PROTO_SignData [09:52:24]wFMCommunicate request_size=4 [09:52:24]MH_SAM_APDU [09:52:24]CAPDU: 80 0D 01 02 [09:52:24]Write to MH i2c: E2 08 00 95 2A 80 0D 01 02 00 00 00 00 38 [09:52:24]Write i2c OK [09:52:24]MH_I2C_Read... [09:52:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:24]Read from MH i2c: E2 [09:52:24]MH_I2C_Read... [09:52:24]Read from MH i2c: E2 03 00 [09:52:24]MH_I2C_Read... [09:52:24]Read from MH i2c: E2 03 00 95 2A 00 90 00 33 [09:52:24]RAPDU: 90 00 [09:52:24]wFMCommunicate OK [09:52:24]wFMCommunicate request_size=255 [09:52:24]MH_SAM_APDU [09:52:24]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 DB 55 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 BC 70 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 [09:52:24]Write to MH i2c: E2 02 01 96 2A 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 DB 55 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 BC 70 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 00 00 59 [09:52:24]Write i2c OK [09:52:24]MH_I2C_Read... [09:52:25]OFD Sender: No OFD packet to send [09:52:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:25]Read from MH i2c: E2 [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: E2 03 00 [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: E2 03 00 96 2A 00 90 00 34 [09:52:25]RAPDU: 90 00 [09:52:25]wFMCommunicate OK [09:52:25]wFMCommunicate request_size=38 [09:52:25]MH_SAM_APDU [09:52:25]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BD 70 00 00 35 04 06 00 74 FF CB F4 36 64 [09:52:25]Write to MH i2c: E2 29 00 97 2A 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BD 70 00 00 35 04 06 00 74 FF CB F4 36 64 00 00 B9 [09:52:25]Write i2c OK [09:52:25]MH_I2C_Read... [09:52:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:25]Read from MH i2c: E2 [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: E2 03 00 [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: E2 03 00 97 2A 00 90 00 35 [09:52:25]RAPDU: 90 00 [09:52:25]wFMCommunicate OK [09:52:25]wFMCommunicate request_size=4 [09:52:25]MH_SAM_APDU [09:52:25]CAPDU: 80 0D 03 02 [09:52:25]Write to MH i2c: E2 08 00 98 2A 80 0D 03 02 00 00 00 00 3D [09:52:25]Write i2c OK [09:52:25]MH_I2C_Read... [09:52:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:25]Read from MH i2c: E2 [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: E2 0B 00 [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: E2 0B 00 98 2A 00 E0 CC 27 92 F7 27 F3 CA 90 00 7E [09:52:25]RAPDU: E0 CC 27 92 F7 27 F3 CA 90 00 [09:52:25]wFMCommunicate OK [09:52:25]SAM_PROTO_SignData done [09:52:25]FM_MakeSignedData done [09:52:25]CreateOFDProtocolMessage [09:52:25]wFMCommunicate request_size=4 [09:52:25]MH_SAM_APDU [09:52:25]CAPDU: 80 11 00 00 [09:52:25]Write to MH i2c: E2 08 00 99 2A 80 11 00 00 00 00 00 00 3D [09:52:25]Write i2c OK [09:52:25]MH_I2C_Read... [09:52:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:25]Read from MH i2c: E2 [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: E2 17 00 [09:52:25]MH_I2C_Read... [09:52:25]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 31 35 34 90 00 8C [09:52:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:52:25]wFMCommunicate OK [09:52:25]CreateOFDProtocolMessage done [09:52:25]OFDSenderStorePacket 28861 [09:52:25]StoreOFDPacket docnum=28861 [09:52:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 2B 01 00 00 F7 7C 23 01 08 AE 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 DB 55 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 BC 70 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BD 70 00 00 35 04 06 00 74 FF CB F4 36 64 E0 CC 27 92 F7 27 F3 CA [09:52:25]CheckFolder [09:52:25]dirname=/storage/ofd_packets [09:52:25]CheckFolder done [09:52:25]ProducePacketName [09:52:25]name=ofd_packets/00028861 [09:52:25]NVStorageSaveData ofd_packets/00028861 [09:52:25]File name is /storage/ofd_packets/00028861 [09:52:25]Write 329 bytes [09:52:25]NVStorageSaveData done [09:52:25]OFDSenderStorePacket done [09:52:25]KKMCreateOFDPacket done [09:52:25]NVStorageSaveData kkm_last_timestamp [09:52:25]File name is /storage/kkm_last_timestamp [09:52:25]Write 4 bytes [09:52:25]NVStorageSaveData done [09:52:25]ExternCall_PrintAddStr [09:52:25]wPrintStart [09:52:25]Write to MH i2c: 01 00 00 9A 2A C4 [09:52:25]Write i2c OK [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: 01 [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: 01 07 00 [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: 01 07 00 9A 2A 00 00 00 00 00 FF 0F D9 [09:52:25]RasterBufferAndPrint [09:52:25]line Счет N : (1)347212 [09:52:25]line ИНН: 02508201610067 [09:52:25]line Контрольно-Кассовый Чек [09:52:25]line ВОЗВРАТ ПРОДАЖИ [09:52:25]line ТРК (МРК, ГНК) : 13 [09:52:25]line Товар: 2710124130 [09:52:25]line Аи-92-К-5 [09:52:25]line 15.560 * 64.30 [09:52:25]line = 1000.51 [09:52:25]line НДС 12% НСП 1% [09:52:25]line > о реализуемом товаре [09:52:25]line ОКРУГЛЕНИЕ: -0.51 [09:52:25]line ИТОГО: 1000.00 [09:52:25]line НСП 1% : 8.85 [09:52:25]line НДС 12% : 106.25 [09:52:25]line Наличными: 1000.00 [09:52:25]line Безнал.: 0.00 [09:52:25]line Место: АЗС № 108 "Партнер Нефть" [09:52:25]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:52:25]line СНО: Общий режим [09:52:25]line Чек 68 13.04.2024 09:52 [09:52:25]line Смена: 115 ФФД: 1.0 [09:52:25]line ЗНМ: 0300000027 [09:52:25]line РНМ: 0000138879044617 [09:52:25]line Версия ККМ: 001 [09:52:25]line ФД осн.: 28860 [09:52:25]line ФМ осн.: 0000000000963154 [09:52:25]line ФМ: 0000000000963154 [09:52:25]line ФД: 28861 [09:52:25]line ФПД: 128641987262052 [09:52:25]line 1/tax-web-control/client/api/v1/ticket?date=20240413T095227&type=2&operation_type=1&fn_number=0000000000963154&fd_number=28861&fm=128641987262052&tin=02508201610067®Number=0000138879044617&sum=100000 [09:52:25]OFD Sender: Processing packet 28861 [packets to send 8, broken 7] [09:52:25]ProducePacketName [09:52:25]name=ofd_packets/00028861 [09:52:25]OFD Sender: To server: pG, [09:52:25]CommunicateWithHost lk.salyk.kg:30040 [09:52:25]ConnectInit lk.salyk.kg [09:52:25]written 0, free lines is 4095 [09:52:25]Connected sock=10 [09:52: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 31 35 34 2B 01 00 00 F7 7C 23 01 08 AE 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 DB 55 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 BC 70 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BD 70 00 00 35 04 06 00 74 FF CB F4 36 64 E0 CC 27 92 F7 27 F3 CA [09:52:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 70 2F 47 00 B7 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 31 35 34 10 04 04 00 BD 70 00 00 F4 03 04 00 83 00 1A 66 B6 04 01 00 00 F6 C9 98 A0 D2 C9 71 13 [09:52:25]CommunicateWithHost err = 0 [09:52:25]CheckOFDResponse [09:52:25]1017 (14) - 77093643461234 [09:52:25]1041 (16) - 0000000000963154 [09:52:25]1040 (4) - 28861 [09:52:25]1012 (4) - 13.04.2024 03:48 [09:52:25]1206 (1) - 0 [09:52:25]OFD Sender: Remove packet 28861 [09:52:25]ProducePacketName [09:52:25]name=ofd_packets/00028861 [09:52:25]NVStorageDeleteData [09:52:26]Write to MH i2c: 01 00 00 C4 2A EE [09:52:26]Write i2c OK [09:52:26]MH_I2C_Read... [09:52:26]Read from MH i2c: 01 [09:52:26]MH_I2C_Read... [09:52:26]Read from MH i2c: 01 07 00 [09:52:26]MH_I2C_Read... [09:52:26]Read from MH i2c: 01 07 00 C4 2A 00 00 00 00 00 EB 0C EC [09:52:26]RasterBufferAndPrint [09:52:26]line [09:52:26]line [09:52:26]line [09:52:26]line [09:52:26]line [09:52:26]written 0, free lines is 3315 [09:52:26]MH_Cut [09:52:26]Write to MH i2c: D1 01 00 CB 2A 01 C7 [09:52:26]Write i2c OK [09:52:26]MH_I2C_Read... [09:52:26]Read from MH i2c: D1 [09:52:26]MH_I2C_Read... [09:52:26]Read from MH i2c: D1 01 00 [09:52:26]MH_I2C_Read... [09:52:26]Read from MH i2c: D1 01 00 CB 2A 00 C6 [09:52:26]Write to MH i2c: 01 00 00 CC 2A F6 [09:52:26]Write i2c OK [09:52:26]MH_I2C_Read... [09:52:26]OFD Sender: No OFD packet to send [09:52:26]*** Cut start [09:52:26]*** Partial cut [09:52:26]*** CUTSNS_PIN = 1 [09:52:26]*** CUTSNS_PIN = 0 [09:52:27]*** Brake cut motor [09:52:27]Read from MH i2c: 01 [09:52:27]MH_I2C_Read... [09:52:27]*** Stop cut motor [09:52:27]*** Cut end [09:52:27]Read from MH i2c: 01 07 00 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: 01 07 00 CC 2A 00 00 00 00 00 FF 0F 0B [09:52:27]process_action close_receipt done [09:52:27]requested_data is exist [09:52:27]produce_requested_data [09:52:27]requested_item fm.sn is exist - process it [09:52:27]wFMCommunicate request_size=4 [09:52:27]MH_SAM_APDU [09:52:27]CAPDU: 80 11 00 00 [09:52:27]Write to MH i2c: E2 08 00 CD 2A 80 11 00 00 00 00 00 00 71 [09:52:27]Write i2c OK [09:52:27]MH_I2C_Read... [09:52:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:27]Read from MH i2c: E2 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 17 00 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 17 00 CD 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C0 [09:52:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:52:27]wFMCommunicate OK [09:52:27]requested_item fd.num is exist - process it [09:52:27]SAM_PROTO_GetFieldsCounters [09:52:27]wFMCommunicate request_size=4 [09:52:27]MH_SAM_APDU [09:52:27]CAPDU: 80 13 00 00 [09:52:27]Write to MH i2c: E2 08 00 CE 2A 80 13 00 00 00 00 00 00 74 [09:52:27]Write i2c OK [09:52:27]MH_I2C_Read... [09:52:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:27]Read from MH i2c: E2 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 62 00 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 62 00 CE 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BD 70 00 00 0E 04 04 00 73 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 1E [09:52: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BD 70 00 00 0E 04 04 00 73 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:52:27]wFMCommunicate OK [09:52:27]SAM_PROTO_GetFieldsCounters done [09:52:27]requested_item shift.num is exist - process it [09:52:27]requested_item shift.opened is exist - process it [09:52:27]req_shift_opened [09:52:27]FM_GetShiftState [09:52:27]SAM_PROTO_GetShiftState [09:52:27]wFMCommunicate request_size=4 [09:52:27]MH_SAM_APDU [09:52:27]CAPDU: 80 13 01 00 [09:52:27]Write to MH i2c: E2 08 00 CF 2A 80 13 01 00 00 00 00 00 76 [09:52:27]Write i2c OK [09:52:27]MH_I2C_Read... [09:52:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:27]Read from MH i2c: E2 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 0E 00 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 0E 00 CF 2A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 8F [09:52:27]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:52:27]wFMCommunicate OK [09:52:27]SAM_PROTO_GetShiftState done [09:52:27]FM_GetShiftState done [09:52:27]req_shift_opened done [09:52:27]requested_item shift.open_date is exist - process it [09:52:27]req_shift_open_date [09:52:27]req_shift_open_date done [09:52:27]produce_requested_data done [09:52:27]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28861,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [09:52:27]process_action_free close_receipt [09:52:27]json_value_free [09:52:27]json_value_free done [09:52:27]process_json_proto returns [09:52:27]Send response to host [09:52:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28861,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [09:52:27]free response buf [09:52:27]execute_script done [09:52:27]execute_script returns [09:52:27]free content buf [09:52:27]Sock 7.Close socket [09:52:27]Sock 7.Thread stoped [09:52:31]OFD Sender: No OFD packet to send [09:52:36]OFD Sender: No OFD packet to send [09:52:41]OFD Sender: No OFD packet to send [09:52:46]OFD Sender: No OFD packet to send [09:52:51]OFD Sender: No OFD packet to send [09:52:56]OFD Sender: No OFD packet to send [09:53:01]OFD Sender: No OFD packet to send [09:53:03]accept exits with 9 [09:53:03]New connection [09:53:03]New thread 3066928484 created [09:53:03]Thread 3066785124 joined [09:53:03]Waiting for new connection... [09:53:03] Sock 9.Parse request [09:53:03]Sock 9.Check first char [09:53:03]Sock 9.First char is OK [09:53:03]request: POST /json_proto HTTP/1.0 [09:53:03]Method: POST [09:53:03]URL: /json_proto [09:53:03]Method is POST - this is cgi request [09:53:03]url: /json_proto [09:53:03]query_string will be loaded in cgi processing [09:53:03]execute_cgi json_proto POST (null) [09:53:03]execute_cgi path=json_proto method=POST [09:53:03]POST find Content-Length [09:53:03]Host: 172.17.33.3:8080 [09:53:03]Content-Length: 682 [09:53:03]Content-Type: application/json [09:53:03] [09:53:03]POST finish read [09:53:03]Found Content-Length = 682 [09:53:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:03]execute_script... [09:53: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)347214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:03]POST & json_proto [09:53:03]process_json_proto [09:53:03]json parsed OK: [09:53:03]protocol is kg_v1.0 [09:53:03]action value=close_receipt [09:53:03]process_action close_receipt [09:53:03]cmd_close_receipt [09:53:03]MH_GetDate [09:53:03]Write to MH i2c: F0 00 00 D0 2A E9 [09:53:03]Write i2c OK [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: F0 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: F0 09 00 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: F0 09 00 D0 2A 00 03 56 1A 66 23 5B 8F 65 3D [09:53:03]GetLastDocTimeStamp 1713001947 [09:53:03]current date 1713001987 [09:53:03]FM_GetShiftState [09:53:03]SAM_PROTO_GetShiftState [09:53:03]wFMCommunicate request_size=4 [09:53:03]MH_SAM_APDU [09:53:03]CAPDU: 80 13 01 00 [09:53:03]Write to MH i2c: E2 08 00 D1 2A 80 13 01 00 00 00 00 00 78 [09:53:03]Write i2c OK [09:53:03]MH_I2C_Read... [09:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:03]Read from MH i2c: E2 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: E2 0E 00 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: E2 0E 00 D1 2A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 91 [09:53:03]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:53:03]wFMCommunicate OK [09:53:03]SAM_PROTO_GetShiftState done [09:53:03]FM_GetShiftState done [09:53:03]opened in 1712967615 [09:53:03]opened+sec_in_day 1713054015 [09:53:03]quantity*price = 100050 [09:53:03]sum+1 = 100052 [09:53: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 69 13.04.2024 09:53 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28862 ФПД: 172384901317888 1/tax-web-control/client/api/v1/ticket?date=20240413T095307&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28862&fm=172384901317888&tin=02508201610067®Number=0000138879044617&sum=100000 [09:53:04]StoreToDocumentArchive [09:53:04]shift 115 fd 28862 [09:53:04]save to /storage/0115/doc_00028862 [09:53:04]save last doc name /storage/0115/doc_00028862 to /storage/kkm_last_doc_name [09:53:04]save OK [09:53:04]Clear old archive folders... [09:53:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:04]tlvbuf is 01230650 [09:53:04]SAM_PROTO_ClearQueue [09:53:04]wFMCommunicate request_size=4 [09:53:04]MH_SAM_APDU [09:53:04]CAPDU: 80 09 00 00 [09:53:04]Write to MH i2c: E2 08 00 DE 2A 80 09 00 00 00 00 00 00 7A [09:53:04]Write i2c OK [09:53:04]MH_I2C_Read... [09:53:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:04]Read from MH i2c: E2 [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: E2 03 00 [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: E2 03 00 DE 2A 00 90 00 7C [09:53:04]RAPDU: 90 00 [09:53:04]wFMCommunicate OK [09:53:04]SAM_PROTO_ClearQueue done [09:53:04]KKMCreateOFDPacket [09:53:04]OFDProtocolAddRootSTLVToBuf [09:53:04]FM_MakeSignedData [09:53:04]FM_MakeSignedData [09:53:04]SAM_PROTO_SignData [09:53:04]wFMCommunicate request_size=4 [09:53:04]MH_SAM_APDU [09:53:04]CAPDU: 80 0D 01 02 [09:53:04]Write to MH i2c: E2 08 00 DF 2A 80 0D 01 02 00 00 00 00 82 [09:53:04]Write i2c OK [09:53:04]MH_I2C_Read... [09:53:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:04]Read from MH i2c: E2 [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: E2 03 00 [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: E2 03 00 DF 2A 00 90 00 7D [09:53:04]RAPDU: 90 00 [09:53:04]wFMCommunicate OK [09:53:04]wFMCommunicate request_size=255 [09:53:04]MH_SAM_APDU [09:53: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 45 00 00 00 F4 03 04 00 03 56 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BE 70 00 00 35 04 06 00 9C [09:53:04]Write to MH i2c: E2 02 01 E0 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 45 00 00 00 F4 03 04 00 03 56 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BE 70 00 00 35 04 06 00 9C 00 00 09 [09:53:04]Write i2c OK [09:53:04]MH_I2C_Read... [09:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:04]Read from MH i2c: E2 [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: E2 03 00 [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: E2 03 00 E0 2A 00 90 00 7E [09:53:04]RAPDU: 90 00 [09:53:04]wFMCommunicate OK [09:53:04]wFMCommunicate request_size=10 [09:53:04]MH_SAM_APDU [09:53:04]CAPDU: 80 0D 02 02 05 C8 7C CE C5 00 [09:53:04]Write to MH i2c: E2 0D 00 E1 2A 80 0D 02 02 05 00 C8 7C CE C5 00 00 00 66 [09:53:04]Write i2c OK [09:53:04]MH_I2C_Read... [09:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:04]Read from MH i2c: E2 [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: E2 03 00 [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: E2 03 00 E1 2A 00 90 00 7F [09:53:04]RAPDU: 90 00 [09:53:04]wFMCommunicate OK [09:53:04]wFMCommunicate request_size=4 [09:53:04]MH_SAM_APDU [09:53:04]CAPDU: 80 0D 03 02 [09:53:04]Write to MH i2c: E2 08 00 E2 2A 80 0D 03 02 00 00 00 00 87 [09:53:04]Write i2c OK [09:53:04]MH_I2C_Read... [09:53:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:04]Read from MH i2c: E2 [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: E2 0B 00 [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: E2 0B 00 E2 2A 00 82 C9 EE 3C ED A9 17 95 90 00 3F [09:53:04]RAPDU: 82 C9 EE 3C ED A9 17 95 90 00 [09:53:04]wFMCommunicate OK [09:53:04]SAM_PROTO_SignData done [09:53:04]FM_MakeSignedData done [09:53:04]CreateOFDProtocolMessage [09:53:04]wFMCommunicate request_size=4 [09:53:04]MH_SAM_APDU [09:53:04]CAPDU: 80 11 00 00 [09:53:04]Write to MH i2c: E2 08 00 E3 2A 80 11 00 00 00 00 00 00 87 [09:53:04]Write i2c OK [09:53:04]MH_I2C_Read... [09:53:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:04]Read from MH i2c: E2 [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: E2 17 00 [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: E2 17 00 E3 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D6 [09:53:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:53:04]wFMCommunicate OK [09:53:04]CreateOFDProtocolMessage done [09:53:04]OFDSenderStorePacket 28862 [09:53:04]StoreOFDPacket docnum=28862 [09:53:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D1 14 07 01 16 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 45 00 00 00 F4 03 04 00 03 56 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BE 70 00 00 35 04 06 00 9C C8 7C CE C5 00 82 C9 EE 3C ED A9 17 95 [09:53:04]CheckFolder [09:53:04]dirname=/storage/ofd_packets [09:53:04]CheckFolder done [09:53:04]ProducePacketName [09:53:04]name=ofd_packets/00028862 [09:53:04]NVStorageSaveData ofd_packets/00028862 [09:53:04]File name is /storage/ofd_packets/00028862 [09:53:04]Write 301 bytes [09:53:04]NVStorageSaveData done [09:53:04]OFDSenderStorePacket done [09:53:04]KKMCreateOFDPacket done [09:53:04]NVStorageSaveData kkm_last_timestamp [09:53:04]File name is /storage/kkm_last_timestamp [09:53:04]Write 4 bytes [09:53:04]NVStorageSaveData done [09:53:04]ExternCall_PrintAddStr [09:53:04]wPrintStart [09:53:04]Write to MH i2c: 01 00 00 E4 2A 0E [09:53:04]Write i2c OK [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: 01 [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: 01 07 00 [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: 01 07 00 E4 2A 00 00 00 00 00 FF 0F 23 [09:53:04]RasterBufferAndPrint [09:53:04]line Счет N : (1)347214 [09:53:04]line ИНН: 02508201610067 [09:53:04]line Контрольно-Кассовый Чек [09:53:04]line ПРОДАЖА [09:53:04]line ТРК (МРК, ГНК) : 23 [09:53:04]line Товар: 2710124130 [09:53:04]line Аи-92-К-5 [09:53:04]line 15.560 * 64.30 [09:53:04]line = 1000.51 [09:53:04]line НДС 12% НСП 1% [09:53:04]line > о реализуемом товаре [09:53:04]line ОКРУГЛЕНИЕ: -0.51 [09:53:04]line ИТОГО: 1000.00 [09:53:04]line Внесено: 1000.00 [09:53:04]line СДАЧА: 0.00 [09:53:04]line НСП 1% : 8.85 [09:53:04]line НДС 12% : 106.25 [09:53:04]line Наличными: 1000.00 [09:53:04]line Безнал.: 0.00 [09:53:04]line Место: АЗС № 108 "Партнер Нефть" [09:53:04]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:53:04]line СНО: Общий режим [09:53:04]line Чек 69 13.04.2024 09:53 [09:53:04]line Смена: 115 ФФД: 1.0 [09:53:04]line ЗНМ: 0300000027 [09:53:04]line РНМ: 0000138879044617 [09:53:04]line Версия ККМ: 001 [09:53:04]line ФМ: 0000000000963154 [09:53:04]line ФД: 28862 [09:53:04]line ФПД: 172384901317888 [09:53:04]line 1/tax-web-control/client/api/v1/ticket?date=20240413T095307&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28862&fm=172384901317888&tin=02508201610067®Number=0000138879044617&sum=100000 [09:53:05]OFD Sender: Processing packet 28862 [packets to send 8, broken 7] [09:53:05]ProducePacketName [09:53:05]name=ofd_packets/00028862 [09:53:05]OFD Sender: To server: pG, [09:53:05]CommunicateWithHost lk.salyk.kg:30040 [09:53:05]ConnectInit lk.salyk.kg [09:53:05]written 0, free lines is 4095 [09:53:05]Connected sock=10 [09:53: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 31 35 34 0F 01 00 00 D1 14 07 01 16 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 45 00 00 00 F4 03 04 00 03 56 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BE 70 00 00 35 04 06 00 9C C8 7C CE C5 00 82 C9 EE 3C ED A9 17 95 [09:53:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D0 A7 47 00 05 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 31 35 34 10 04 04 00 BE 70 00 00 F4 03 04 00 AA 00 1A 66 B6 04 01 00 00 40 40 E4 94 D3 7F 83 BB [09:53:05]CommunicateWithHost err = 0 [09:53:05]CheckOFDResponse [09:53:05]1017 (14) - 77093643461234 [09:53:05]1041 (16) - 0000000000963154 [09:53:05]1040 (4) - 28862 [09:53:05]1012 (4) - 13.04.2024 03:48 [09:53:05]1206 (1) - 0 [09:53:05]OFD Sender: Remove packet 28862 [09:53:05]ProducePacketName [09:53:05]name=ofd_packets/00028862 [09:53:05]NVStorageDeleteData [09:53:05]Write to MH i2c: 01 00 00 0E 2B 39 [09:53:05]Write i2c OK [09:53:05]MH_I2C_Read... [09:53:05]Read from MH i2c: 01 [09:53:05]MH_I2C_Read... [09:53:05]Read from MH i2c: 01 07 00 [09:53:05]MH_I2C_Read... [09:53:05]Read from MH i2c: 01 07 00 0E 2B 00 00 00 00 00 D0 0C 1C [09:53:05]RasterBufferAndPrint [09:53:05]line [09:53:05]line [09:53:05]line [09:53:05]line [09:53:05]line [09:53:05]written 0, free lines is 3286 [09:53:05]MH_Cut [09:53:05]Write to MH i2c: D1 01 00 15 2B 01 12 [09:53:05]Write i2c OK [09:53:05]MH_I2C_Read... [09:53:05]Read from MH i2c: D1 [09:53:05]MH_I2C_Read... [09:53:05]Read from MH i2c: D1 01 00 [09:53:05]MH_I2C_Read... [09:53:05]Read from MH i2c: D1 01 00 15 2B 00 11 [09:53:05]Write to MH i2c: 01 00 00 16 2B 41 [09:53:05]Write i2c OK [09:53:05]MH_I2C_Read... [09:53:05]OFD Sender: No OFD packet to send [09:53:06]*** Cut start [09:53:06]*** Partial cut [09:53:06]*** CUTSNS_PIN = 1 [09:53:06]*** CUTSNS_PIN = 0 [09:53:06]*** Brake cut motor [09:53:07]Read from MH i2c: 01 [09:53:07]MH_I2C_Read... [09:53:07]*** Stop cut motor [09:53:07]*** Cut end [09:53:07]Read from MH i2c: 01 07 00 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: 01 07 00 16 2B 00 00 00 00 00 FF 0F 56 [09:53:07]process_action close_receipt done [09:53:07]requested_data is exist [09:53:07]produce_requested_data [09:53:07]requested_item fm.sn is exist - process it [09:53:07]wFMCommunicate request_size=4 [09:53:07]MH_SAM_APDU [09:53:07]CAPDU: 80 11 00 00 [09:53:07]Write to MH i2c: E2 08 00 17 2B 80 11 00 00 00 00 00 00 BC [09:53:07]Write i2c OK [09:53:07]MH_I2C_Read... [09:53:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:07]Read from MH i2c: E2 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: E2 17 00 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: E2 17 00 17 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0B [09:53:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:53:07]wFMCommunicate OK [09:53:07]requested_item fd.num is exist - process it [09:53:07]SAM_PROTO_GetFieldsCounters [09:53:07]wFMCommunicate request_size=4 [09:53:07]MH_SAM_APDU [09:53:07]CAPDU: 80 13 00 00 [09:53:07]Write to MH i2c: E2 08 00 18 2B 80 13 00 00 00 00 00 00 BF [09:53:07]Write i2c OK [09:53:07]MH_I2C_Read... [09:53:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:07]Read from MH i2c: E2 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: E2 62 00 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: E2 62 00 18 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BE 70 00 00 0E 04 04 00 73 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 6D [09:53: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BE 70 00 00 0E 04 04 00 73 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 [09:53:07]wFMCommunicate OK [09:53:07]SAM_PROTO_GetFieldsCounters done [09:53:07]requested_item shift.num is exist - process it [09:53:07]requested_item shift.opened is exist - process it [09:53:07]req_shift_opened [09:53:07]FM_GetShiftState [09:53:07]SAM_PROTO_GetShiftState [09:53:07]wFMCommunicate request_size=4 [09:53:07]MH_SAM_APDU [09:53:07]CAPDU: 80 13 01 00 [09:53:07]Write to MH i2c: E2 08 00 19 2B 80 13 01 00 00 00 00 00 C1 [09:53:07]Write i2c OK [09:53:07]MH_I2C_Read... [09:53:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:07]Read from MH i2c: E2 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: E2 0E 00 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: E2 0E 00 19 2B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 DA [09:53:07]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:53:07]wFMCommunicate OK [09:53:07]SAM_PROTO_GetShiftState done [09:53:07]FM_GetShiftState done [09:53:07]req_shift_opened done [09:53:07]requested_item shift.open_date is exist - process it [09:53:07]req_shift_open_date [09:53:07]req_shift_open_date done [09:53:07]produce_requested_data done [09:53:07]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28862,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [09:53:07]process_action_free close_receipt [09:53:07]json_value_free [09:53:07]json_value_free done [09:53:07]process_json_proto returns [09:53:07]Send response to host [09:53:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28862,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [09:53:07]free response buf [09:53:07]execute_script done [09:53:07]execute_script returns [09:53:07]free content buf [09:53:07]Sock 9.Close socket [09:53:07]Sock 9.Thread stoped [09:53:07]accept exits with 7 [09:53:07]New connection [09:53:07]New thread 3066785124 created [09:53:07]Thread 3066928484 joined [09:53:07]Waiting for new connection... [09:53:07] Sock 7.Parse request [09:53:07]Sock 7.Check first char [09:53:07]Sock 7.First char is OK [09:53:07]request: POST /json_proto HTTP/1.0 [09:53:07]Method: POST [09:53:07]URL: /json_proto [09:53:07]Method is POST - this is cgi request [09:53:07]url: /json_proto [09:53:07]query_string will be loaded in cgi processing [09:53:07]execute_cgi json_proto POST (null) [09:53:07]execute_cgi path=json_proto method=POST [09:53:07]POST find Content-Length [09:53:07]Host: 172.17.33.3:8080 [09:53:07]Content-Length: 808 [09:53:07]Content-Type: application/json [09:53:07] [09:53:07]POST finish read [09:53:07]Found Content-Length = 808 [09:53:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347213", "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" : 64.30, "quantity" : 15.560, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:07]execute_script... [09:53: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)347213", "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" : 64.30, "quantity" : 15.560, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:07]POST & json_proto [09:53:07]process_json_proto [09:53:07]json parsed OK: [09:53:07]protocol is kg_v1.0 [09:53:07]action value=close_receipt [09:53:07]process_action close_receipt [09:53:07]cmd_close_receipt [09:53:07]MH_GetDate [09:53:07]Write to MH i2c: F0 00 00 1A 2B 34 [09:53:07]Write i2c OK [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: F0 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: F0 09 00 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: F0 09 00 1A 2B 00 07 56 1A 66 23 5B 8F 65 8C [09:53:07]GetLastDocTimeStamp 1713001987 [09:53:07]current date 1713001991 [09:53:07]FM_GetShiftState [09:53:07]SAM_PROTO_GetShiftState [09:53:07]wFMCommunicate request_size=4 [09:53:07]MH_SAM_APDU [09:53:07]CAPDU: 80 13 01 00 [09:53:07]Write to MH i2c: E2 08 00 1B 2B 80 13 01 00 00 00 00 00 C3 [09:53:07]Write i2c OK [09:53:07]MH_I2C_Read... [09:53:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:07]Read from MH i2c: E2 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: E2 0E 00 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: E2 0E 00 1B 2B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 DC [09:53:07]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:53:07]wFMCommunicate OK [09:53:07]SAM_PROTO_GetShiftState done [09:53:07]FM_GetShiftState done [09:53:07]opened in 1712967615 [09:53:07]opened+sec_in_day 1713054015 [09:53:07]quantity*price = 100050 [09:53:07]sum+1 = 100052 [09:53:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 70 13.04.2024 09:53 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28863 ФПД: 235850680972530 1/tax-web-control/client/api/v1/ticket?date=20240413T095311&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28863&fm=235850680972530&tin=02508201610067®Number=0000138879044617&sum=100051 [09:53:09]StoreToDocumentArchive [09:53:09]shift 115 fd 28863 [09:53:09]save to /storage/0115/doc_00028863 [09:53:09]save last doc name /storage/0115/doc_00028863 to /storage/kkm_last_doc_name [09:53:09]save OK [09:53:09]Clear old archive folders... [09:53:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:09]tlvbuf is 0126B7D0 [09:53:09]SAM_PROTO_ClearQueue [09:53:09]wFMCommunicate request_size=4 [09:53:09]MH_SAM_APDU [09:53:09]CAPDU: 80 09 00 00 [09:53:09]Write to MH i2c: E2 08 00 28 2B 80 09 00 00 00 00 00 00 C5 [09:53:09]Write i2c OK [09:53:09]MH_I2C_Read... [09:53:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:09]Read from MH i2c: E2 [09:53:09]MH_I2C_Read... [09:53:09]Read from MH i2c: E2 03 00 [09:53:09]MH_I2C_Read... [09:53:09]Read from MH i2c: E2 03 00 28 2B 00 90 00 C7 [09:53:09]RAPDU: 90 00 [09:53:09]wFMCommunicate OK [09:53:09]SAM_PROTO_ClearQueue done [09:53:09]KKMCreateOFDPacket [09:53:09]OFDProtocolAddRootSTLVToBuf [09:53:09]FM_MakeSignedData [09:53:09]FM_MakeSignedData [09:53:09]SAM_PROTO_SignData [09:53:09]wFMCommunicate request_size=4 [09:53:09]MH_SAM_APDU [09:53:09]CAPDU: 80 0D 01 02 [09:53:09]Write to MH i2c: E2 08 00 29 2B 80 0D 01 02 00 00 00 00 CD [09:53:09]Write i2c OK [09:53:09]MH_I2C_Read... [09:53:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:09]Read from MH i2c: E2 [09:53:09]MH_I2C_Read... [09:53:09]Read from MH i2c: E2 03 00 [09:53:09]MH_I2C_Read... [09:53:09]Read from MH i2c: E2 03 00 29 2B 00 90 00 C8 [09:53:09]RAPDU: 90 00 [09:53:09]wFMCommunicate OK [09:53:09]wFMCommunicate request_size=255 [09:53:09]MH_SAM_APDU [09:53: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 46 00 00 00 F4 03 04 00 07 56 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BF 70 00 00 35 04 06 00 D6 [09:53:09]Write to MH i2c: E2 02 01 2A 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 46 00 00 00 F4 03 04 00 07 56 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BF 70 00 00 35 04 06 00 D6 00 00 FA [09:53:09]Write i2c OK [09:53:09]MH_I2C_Read... [09:53:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:09]Read from MH i2c: E2 [09:53:09]MH_I2C_Read... [09:53:09]Read from MH i2c: E2 03 00 [09:53:09]MH_I2C_Read... [09:53:09]Read from MH i2c: E2 03 00 2A 2B 00 90 00 C9 [09:53:09]RAPDU: 90 00 [09:53:09]wFMCommunicate OK [09:53:09]wFMCommunicate request_size=10 [09:53:09]MH_SAM_APDU [09:53:09]CAPDU: 80 0D 02 02 05 81 44 0F 34 F2 [09:53:09]Write to MH i2c: E2 0D 00 2B 2B 80 0D 02 02 05 00 81 44 0F 34 F2 00 00 D4 [09:53:09]Write i2c OK [09:53:09]MH_I2C_Read... [09:53:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:09]Read from MH i2c: E2 [09:53:09]MH_I2C_Read... [09:53:09]Read from MH i2c: E2 03 00 [09:53:09]MH_I2C_Read... [09:53:09]Read from MH i2c: E2 03 00 2B 2B 00 90 00 CA [09:53:09]RAPDU: 90 00 [09:53:09]wFMCommunicate OK [09:53:09]wFMCommunicate request_size=4 [09:53:09]MH_SAM_APDU [09:53:09]CAPDU: 80 0D 03 02 [09:53:09]Write to MH i2c: E2 08 00 2C 2B 80 0D 03 02 00 00 00 00 D2 [09:53:09]Write i2c OK [09:53:09]MH_I2C_Read... [09:53:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:09]Read from MH i2c: E2 [09:53:09]MH_I2C_Read... [09:53:09]Read from MH i2c: E2 0B 00 [09:53:09]MH_I2C_Read... [09:53:09]Read from MH i2c: E2 0B 00 2C 2B 00 B2 4D D4 01 EE DA 17 06 90 00 8C [09:53:09]RAPDU: B2 4D D4 01 EE DA 17 06 90 00 [09:53:09]wFMCommunicate OK [09:53:09]SAM_PROTO_SignData done [09:53:09]FM_MakeSignedData done [09:53:09]CreateOFDProtocolMessage [09:53:09]wFMCommunicate request_size=4 [09:53:09]MH_SAM_APDU [09:53:09]CAPDU: 80 11 00 00 [09:53:09]Write to MH i2c: E2 08 00 2D 2B 80 11 00 00 00 00 00 00 D2 [09:53:09]Write i2c OK [09:53:09]MH_I2C_Read... [09:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:09]Read from MH i2c: E2 [09:53:09]MH_I2C_Read... [09:53:09]Read from MH i2c: E2 17 00 [09:53:09]MH_I2C_Read... [09:53:09]Read from MH i2c: E2 17 00 2D 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 21 [09:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:53:09]wFMCommunicate OK [09:53:09]CreateOFDProtocolMessage done [09:53:09]OFDSenderStorePacket 28863 [09:53:09]StoreOFDPacket docnum=28863 [09:53:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 98 BF 07 01 23 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 46 00 00 00 F4 03 04 00 07 56 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BF 70 00 00 35 04 06 00 D6 81 44 0F 34 F2 B2 4D D4 01 EE DA 17 06 [09:53:09]CheckFolder [09:53:09]dirname=/storage/ofd_packets [09:53:09]CheckFolder done [09:53:09]ProducePacketName [09:53:09]name=ofd_packets/00028863 [09:53:09]NVStorageSaveData ofd_packets/00028863 [09:53:09]File name is /storage/ofd_packets/00028863 [09:53:09]Write 301 bytes [09:53:09]NVStorageSaveData done [09:53:09]OFDSenderStorePacket done [09:53:09]KKMCreateOFDPacket done [09:53:09]NVStorageSaveData kkm_last_timestamp [09:53:09]File name is /storage/kkm_last_timestamp [09:53:09]Write 4 bytes [09:53:09]NVStorageSaveData done [09:53:09]ExternCall_PrintAddStr [09:53:09]wPrintStart [09:53:09]Write to MH i2c: 01 00 00 2E 2B 59 [09:53:09]Write i2c OK [09:53:09]MH_I2C_Read... [09:53:09]Read from MH i2c: 01 [09:53:09]MH_I2C_Read... [09:53:09]Read from MH i2c: 01 07 00 [09:53:09]MH_I2C_Read... [09:53:09]Read from MH i2c: 01 07 00 2E 2B 00 00 00 00 00 FF 0F 6E [09:53:09]RasterBufferAndPrint [09:53:09]line Счет N : (1)347213 [09:53:09]line ИНН: 02508201610067 [09:53:09]line Контрольно-Кассовый Чек [09:53:09]line ПРОДАЖА [09:53:09]line ТРК (МРК, ГНК) : 32 [09:53:09]line Товар: 2710124130 [09:53:09]line Аи-92-К-5 [09:53:09]line 15.560 * 64.30 [09:53:09]line = 1000.51 [09:53:09]line НДС 12% НСП 1% [09:53:09]line > о реализуемом товаре [09:53:09]line ИТОГО: 1000.51 [09:53:09]line НСП 1% : 8.85 [09:53:09]line НДС 12% : 106.25 [09:53:09]line Наличными: 0.00 [09:53:09]line Безнал.: 1000.51 [09:53:09]line Место: АЗС № 108 "Партнер Нефть" [09:53:09]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:53:09]line СНО: Общий режим [09:53:09]line Чек 70 13.04.2024 09:53 [09:53:09]line Смена: 115 ФФД: 1.0 [09:53:09]line ЗНМ: 0300000027 [09:53:09]line РНМ: 0000138879044617 [09:53:09]line Версия ККМ: 001 [09:53:09]line Платежная система: О! деньги [09:53:09]line ФМ: 0000000000963154 [09:53:09]line ФД: 28863 [09:53:09]line ФПД: 235850680972530 [09:53:09]line 1/tax-web-control/client/api/v1/ticket?date=20240413T095311&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28863&fm=235850680972530&tin=02508201610067®Number=0000138879044617&sum=100051 [09:53:09]OFD Sender: Processing packet 28863 [packets to send 8, broken 7] [09:53:09]ProducePacketName [09:53:09]name=ofd_packets/00028863 [09:53:09]OFD Sender: To server: pG, [09:53:09]CommunicateWithHost lk.salyk.kg:30040 [09:53:09]ConnectInit lk.salyk.kg [09:53:09]written 0, free lines is 4095 [09:53:09]Connected sock=11 [09:53: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 31 35 34 0F 01 00 00 98 BF 07 01 23 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 46 00 00 00 F4 03 04 00 07 56 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 BF 70 00 00 35 04 06 00 D6 81 44 0F 34 F2 B2 4D D4 01 EE DA 17 06 [09:53:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7B 90 47 00 8D 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 31 35 34 10 04 04 00 BF 70 00 00 F4 03 04 00 AF 00 1A 66 B6 04 01 00 00 4C B1 7C A2 6B 4D CE 20 [09:53:09]CommunicateWithHost err = 0 [09:53:09]CheckOFDResponse [09:53:09]1017 (14) - 77093643461234 [09:53:09]1041 (16) - 0000000000963154 [09:53:09]1040 (4) - 28863 [09:53:09]1012 (4) - 13.04.2024 03:49 [09:53:09]1206 (1) - 0 [09:53:09]OFD Sender: Remove packet 28863 [09:53:09]ProducePacketName [09:53:09]name=ofd_packets/00028863 [09:53:09]NVStorageDeleteData [09:53:10]Write to MH i2c: 01 00 00 57 2B 82 [09:53:10]Write i2c OK [09:53:10]MH_I2C_Read... [09:53:10]Read from MH i2c: 01 [09:53:10]MH_I2C_Read... [09:53:10]Read from MH i2c: 01 07 00 [09:53:10]MH_I2C_Read... [09:53:10]Read from MH i2c: 01 07 00 57 2B 00 00 00 00 00 F9 0C 8E [09:53:10]RasterBufferAndPrint [09:53:10]line [09:53:10]line [09:53:10]line [09:53:10]line [09:53:10]line [09:53:10]written 0, free lines is 3331 [09:53:10]MH_Cut [09:53:10]Write to MH i2c: D1 01 00 5E 2B 01 5B [09:53:10]Write i2c OK [09:53:10]MH_I2C_Read... [09:53:10]Read from MH i2c: D1 [09:53:10]MH_I2C_Read... [09:53:10]Read from MH i2c: D1 01 00 [09:53:10]MH_I2C_Read... [09:53:10]Read from MH i2c: D1 01 00 5E 2B 00 5A [09:53:10]Write to MH i2c: 01 00 00 5F 2B 8A [09:53:10]Write i2c OK [09:53:10]MH_I2C_Read... [09:53:10]OFD Sender: No OFD packet to send [09:53:10]*** Cut start [09:53:10]*** Partial cut [09:53:10]*** CUTSNS_PIN = 1 [09:53:10]*** CUTSNS_PIN = 0 [09:53:11]*** Brake cut motor [09:53:11]Read from MH i2c: 01 [09:53:11]MH_I2C_Read... [09:53:11]*** Stop cut motor [09:53:11]*** Cut end [09:53:11]Read from MH i2c: 01 07 00 [09:53:11]MH_I2C_Read... [09:53:11]Read from MH i2c: 01 07 00 5F 2B 00 00 00 00 00 FF 0F 9F [09:53:11]process_action close_receipt done [09:53:11]requested_data is exist [09:53:11]produce_requested_data [09:53:11]requested_item fm.sn is exist - process it [09:53:11]wFMCommunicate request_size=4 [09:53:11]MH_SAM_APDU [09:53:11]CAPDU: 80 11 00 00 [09:53:11]Write to MH i2c: E2 08 00 60 2B 80 11 00 00 00 00 00 00 05 [09:53:11]Write i2c OK [09:53:11]MH_I2C_Read... [09:53:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:11]Read from MH i2c: E2 [09:53:11]MH_I2C_Read... [09:53:11]Read from MH i2c: E2 17 00 [09:53:11]MH_I2C_Read... [09:53:11]Read from MH i2c: E2 17 00 60 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 54 [09:53:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:53:11]wFMCommunicate OK [09:53:11]requested_item fd.num is exist - process it [09:53:11]SAM_PROTO_GetFieldsCounters [09:53:11]wFMCommunicate request_size=4 [09:53:11]MH_SAM_APDU [09:53:11]CAPDU: 80 13 00 00 [09:53:11]Write to MH i2c: E2 08 00 61 2B 80 13 00 00 00 00 00 00 08 [09:53:11]Write i2c OK [09:53:11]MH_I2C_Read... [09:53:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:11]Read from MH i2c: E2 [09:53:11]MH_I2C_Read... [09:53:11]Read from MH i2c: E2 62 00 [09:53:11]MH_I2C_Read... [09:53:11]Read from MH i2c: E2 62 00 61 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BF 70 00 00 0E 04 04 00 73 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 BA [09:53: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 BF 70 00 00 0E 04 04 00 73 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 [09:53:11]wFMCommunicate OK [09:53:11]SAM_PROTO_GetFieldsCounters done [09:53:11]requested_item shift.num is exist - process it [09:53:11]requested_item shift.opened is exist - process it [09:53:11]req_shift_opened [09:53:11]FM_GetShiftState [09:53:11]SAM_PROTO_GetShiftState [09:53:11]wFMCommunicate request_size=4 [09:53:11]MH_SAM_APDU [09:53:11]CAPDU: 80 13 01 00 [09:53:11]Write to MH i2c: E2 08 00 62 2B 80 13 01 00 00 00 00 00 0A [09:53:11]Write i2c OK [09:53:11]MH_I2C_Read... [09:53:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:11]Read from MH i2c: E2 [09:53:11]MH_I2C_Read... [09:53:11]Read from MH i2c: E2 0E 00 [09:53:11]MH_I2C_Read... [09:53:11]Read from MH i2c: E2 0E 00 62 2B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 23 [09:53:11]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:53:11]wFMCommunicate OK [09:53:11]SAM_PROTO_GetShiftState done [09:53:11]FM_GetShiftState done [09:53:11]req_shift_opened done [09:53:11]requested_item shift.open_date is exist - process it [09:53:11]req_shift_open_date [09:53:11]req_shift_open_date done [09:53:11]produce_requested_data done [09:53:11]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28863,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [09:53:11]process_action_free close_receipt [09:53:11]json_value_free [09:53:11]json_value_free done [09:53:11]process_json_proto returns [09:53:11]Send response to host [09:53:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28863,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [09:53:11]free response buf [09:53:11]execute_script done [09:53:11]execute_script returns [09:53:11]free content buf [09:53:11]Sock 7.Close socket [09:53:11]Sock 7.Thread stoped [09:53:15]OFD Sender: No OFD packet to send [09:53:20]OFD Sender: No OFD packet to send [09:53:25]OFD Sender: No OFD packet to send [09:53:30]OFD Sender: No OFD packet to send [09:53:35]OFD Sender: No OFD packet to send [09:53:40]OFD Sender: No OFD packet to send [09:53:45]OFD Sender: No OFD packet to send [09:53:50]OFD Sender: No OFD packet to send [09:53:55]OFD Sender: No OFD packet to send [09:54:00]OFD Sender: No OFD packet to send [09:54:05]OFD Sender: No OFD packet to send [09:54:10]OFD Sender: No OFD packet to send [09:54:15]OFD Sender: No OFD packet to send [09:54:20]OFD Sender: No OFD packet to send [09:54:25]OFD Sender: No OFD packet to send [09:54:30]OFD Sender: No OFD packet to send [09:54:35]OFD Sender: No OFD packet to send [09:54:40]OFD Sender: No OFD packet to send [09:54:45]OFD Sender: No OFD packet to send [09:54:50]OFD Sender: No OFD packet to send [09:54:55]OFD Sender: No OFD packet to send [09:55:00]OFD Sender: No OFD packet to send [09:55:05]OFD Sender: No OFD packet to send [09:55:10]OFD Sender: No OFD packet to send [09:55:15]OFD Sender: No OFD packet to send [09:55:20]OFD Sender: No OFD packet to send [09:55:25]OFD Sender: No OFD packet to send [09:55:30]OFD Sender: No OFD packet to send [09:55:35]OFD Sender: No OFD packet to send [09:55:40]OFD Sender: No OFD packet to send [09:55:45]OFD Sender: No OFD packet to send [09:55:50]OFD Sender: No OFD packet to send [09:55:53]accept exits with 9 [09:55:53]New connection [09:55:53]New thread 3066928484 created [09:55:53]Thread 3066785124 joined [09:55:53]Waiting for new connection... [09:55:53] Sock 9.Parse request [09:55:53]Sock 9.Check first char [09:55:53]Sock 9.First char is OK [09:55:53]request: POST /json_proto HTTP/1.0 [09:55:53]Method: POST [09:55:53]URL: /json_proto [09:55:53]Method is POST - this is cgi request [09:55:53]url: /json_proto [09:55:53]query_string will be loaded in cgi processing [09:55:53]execute_cgi json_proto POST (null) [09:55:53]execute_cgi path=json_proto method=POST [09:55:53]POST find Content-Length [09:55:53]Host: 172.17.33.3:8080 [09:55:53]Content-Length: 677 [09:55:53]Content-Type: application/json [09:55:53] [09:55:53]POST finish read [09:55:53]Found Content-Length = 677 [09:55:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347216", "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" : 64.30, "quantity" : 2.340, "sum" : 150.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:53]execute_script... [09:55: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)347216", "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" : 64.30, "quantity" : 2.340, "sum" : 150.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:53]POST & json_proto [09:55:53]process_json_proto [09:55:53]json parsed OK: [09:55:53]protocol is kg_v1.0 [09:55:53]action value=close_receipt [09:55:53]process_action close_receipt [09:55:53]cmd_close_receipt [09:55:53]MH_GetDate [09:55:53]Write to MH i2c: F0 00 00 63 2B 7D [09:55:53]Write i2c OK [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: F0 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: F0 09 00 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: F0 09 00 63 2B 00 AD 56 1A 66 23 5B 8F 65 7B [09:55:53]GetLastDocTimeStamp 1713001991 [09:55:53]current date 1713002157 [09:55:53]FM_GetShiftState [09:55:53]SAM_PROTO_GetShiftState [09:55:53]wFMCommunicate request_size=4 [09:55:53]MH_SAM_APDU [09:55:53]CAPDU: 80 13 01 00 [09:55:53]Write to MH i2c: E2 08 00 64 2B 80 13 01 00 00 00 00 00 0C [09:55:53]Write i2c OK [09:55:53]MH_I2C_Read... [09:55:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:53]Read from MH i2c: E2 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 0E 00 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 0E 00 64 2B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 25 [09:55:53]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:55:53]wFMCommunicate OK [09:55:53]SAM_PROTO_GetShiftState done [09:55:53]FM_GetShiftState done [09:55:53]opened in 1712967615 [09:55:53]opened+sec_in_day 1713054015 [09:55:53]quantity*price = 15046 [09:55:53]sum+1 = 15047 [09:55:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 71 13.04.2024 09:55 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28864 ФПД: 62744878414803 1/tax-web-control/client/api/v1/ticket?date=20240413T095558&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28864&fm=62744878414803&tin=02508201610067®Number=0000138879044617&sum=15000 [09:55:55]StoreToDocumentArchive [09:55:55]shift 115 fd 28864 [09:55:55]save to /storage/0115/doc_00028864 [09:55:55]save last doc name /storage/0115/doc_00028864 to /storage/kkm_last_doc_name [09:55:55]save OK [09:55:55]Clear old archive folders... [09:55:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:55]tlvbuf is B6F4F640 [09:55:55]SAM_PROTO_ClearQueue [09:55:55]wFMCommunicate request_size=4 [09:55:55]MH_SAM_APDU [09:55:55]CAPDU: 80 09 00 00 [09:55:55]Write to MH i2c: E2 08 00 71 2B 80 09 00 00 00 00 00 00 0E [09:55:55]Write i2c OK [09:55:55]MH_I2C_Read... [09:55:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:55]Read from MH i2c: E2 [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: E2 03 00 [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: E2 03 00 71 2B 00 90 00 10 [09:55:55]RAPDU: 90 00 [09:55:55]wFMCommunicate OK [09:55:55]SAM_PROTO_ClearQueue done [09:55:55]KKMCreateOFDPacket [09:55:55]OFDProtocolAddRootSTLVToBuf [09:55:55]FM_MakeSignedData [09:55:55]FM_MakeSignedData [09:55:55]SAM_PROTO_SignData [09:55:55]wFMCommunicate request_size=4 [09:55:55]MH_SAM_APDU [09:55:55]CAPDU: 80 0D 01 02 [09:55:55]Write to MH i2c: E2 08 00 72 2B 80 0D 01 02 00 00 00 00 16 [09:55:55]Write i2c OK [09:55:55]MH_I2C_Read... [09:55:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:55]Read from MH i2c: E2 [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: E2 03 00 [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: E2 03 00 72 2B 00 90 00 11 [09:55:55]RAPDU: 90 00 [09:55:55]wFMCommunicate OK [09:55:55]wFMCommunicate request_size=255 [09:55:55]MH_SAM_APDU [09:55: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 24 09 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 C6 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AE 56 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C0 70 00 00 35 04 06 00 39 [09:55:55]Write to MH i2c: E2 02 01 73 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 09 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 C6 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AE 56 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C0 70 00 00 35 04 06 00 39 00 00 B5 [09:55:55]Write i2c OK [09:55:55]MH_I2C_Read... [09:55:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:55]Read from MH i2c: E2 [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: E2 03 00 [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: E2 03 00 73 2B 00 90 00 12 [09:55:55]RAPDU: 90 00 [09:55:55]wFMCommunicate OK [09:55:55]wFMCommunicate request_size=10 [09:55:55]MH_SAM_APDU [09:55:55]CAPDU: 80 0D 02 02 05 10 EE 30 7B D3 [09:55:55]Write to MH i2c: E2 0D 00 74 2B 80 0D 02 02 05 00 10 EE 30 7B D3 00 00 9F [09:55:55]Write i2c OK [09:55:55]MH_I2C_Read... [09:55:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:55]Read from MH i2c: E2 [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: E2 03 00 [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: E2 03 00 74 2B 00 90 00 13 [09:55:55]RAPDU: 90 00 [09:55:55]wFMCommunicate OK [09:55:55]wFMCommunicate request_size=4 [09:55:55]MH_SAM_APDU [09:55:55]CAPDU: 80 0D 03 02 [09:55:55]Write to MH i2c: E2 08 00 75 2B 80 0D 03 02 00 00 00 00 1B [09:55:55]Write i2c OK [09:55:55]MH_I2C_Read... [09:55:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:55]Read from MH i2c: E2 [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: E2 0B 00 [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: E2 0B 00 75 2B 00 7D 36 0F 7E C1 29 AF C0 90 00 B5 [09:55:55]RAPDU: 7D 36 0F 7E C1 29 AF C0 90 00 [09:55:55]wFMCommunicate OK [09:55:55]SAM_PROTO_SignData done [09:55:55]FM_MakeSignedData done [09:55:55]CreateOFDProtocolMessage [09:55:55]wFMCommunicate request_size=4 [09:55:55]MH_SAM_APDU [09:55:55]CAPDU: 80 11 00 00 [09:55:55]Write to MH i2c: E2 08 00 76 2B 80 11 00 00 00 00 00 00 1B [09:55:55]Write i2c OK [09:55:55]MH_I2C_Read... [09:55:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:55]Read from MH i2c: E2 [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: E2 17 00 [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: E2 17 00 76 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6A [09:55:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:55:55]wFMCommunicate OK [09:55:55]CreateOFDProtocolMessage done [09:55:55]OFDSenderStorePacket 28864 [09:55:55]StoreOFDPacket docnum=28864 [09:55:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 CB 45 07 01 9F 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 09 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 C6 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AE 56 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C0 70 00 00 35 04 06 00 39 10 EE 30 7B D3 7D 36 0F 7E C1 29 AF C0 [09:55:55]CheckFolder [09:55:55]dirname=/storage/ofd_packets [09:55:55]CheckFolder done [09:55:55]ProducePacketName [09:55:55]name=ofd_packets/00028864 [09:55:55]NVStorageSaveData ofd_packets/00028864 [09:55:55]File name is /storage/ofd_packets/00028864 [09:55:55]Write 301 bytes [09:55:55]NVStorageSaveData done [09:55:55]OFDSenderStorePacket done [09:55:55]KKMCreateOFDPacket done [09:55:55]NVStorageSaveData kkm_last_timestamp [09:55:55]File name is /storage/kkm_last_timestamp [09:55:55]Write 4 bytes [09:55:55]NVStorageSaveData done [09:55:55]ExternCall_PrintAddStr [09:55:55]wPrintStart [09:55:55]Write to MH i2c: 01 00 00 77 2B A2 [09:55:55]Write i2c OK [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: 01 [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: 01 07 00 [09:55:55]MH_I2C_Read... [09:55:55]Read from MH i2c: 01 07 00 77 2B 00 00 00 00 00 FF 0F B7 [09:55:55]RasterBufferAndPrint [09:55:55]line Счет N : (1)347216 [09:55:55]line ИНН: 02508201610067 [09:55:55]line Контрольно-Кассовый Чек [09:55:55]line ПРОДАЖА [09:55:55]line ТРК (МРК, ГНК) : 42 [09:55:55]line Товар: 2710124130 [09:55:55]line Аи-92-К-5 [09:55:55]line 2.340 * 64.30 [09:55:55]line = 150.46 [09:55:55]line НДС 12% НСП 1% [09:55:55]line > о реализуемом товаре [09:55:55]line ОКРУГЛЕНИЕ: -0.46 [09:55:55]line ИТОГО: 150.00 [09:55:55]line Внесено: 150.00 [09:55:55]line СДАЧА: 0.00 [09:55:55]line НСП 1% : 1.33 [09:55:55]line НДС 12% : 15.98 [09:55:55]line Наличными: 150.00 [09:55:55]line Безнал.: 0.00 [09:55:55]line Место: АЗС № 108 "Партнер Нефть" [09:55:55]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:55:55]line СНО: Общий режим [09:55:55]line Чек 71 13.04.2024 09:55 [09:55:55]line Смена: 115 ФФД: 1.0 [09:55:55]line ЗНМ: 0300000027 [09:55:55]line РНМ: 0000138879044617 [09:55:55]line Версия ККМ: 001 [09:55:55]line ФМ: 0000000000963154 [09:55:55]line ФД: 28864 [09:55:55]line ФПД: 62744878414803 [09:55:55]line 1/tax-web-control/client/api/v1/ticket?date=20240413T095558&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28864&fm=62744878414803&tin=02508201610067®Number=0000138879044617&sum=15000 [09:55:55]OFD Sender: Processing packet 28864 [packets to send 8, broken 7] [09:55:55]ProducePacketName [09:55:55]name=ofd_packets/00028864 [09:55:55]OFD Sender: To server: pG, [09:55:55]CommunicateWithHost lk.salyk.kg:30040 [09:55:55]ConnectInit lk.salyk.kg [09:55:55]written 0, free lines is 4095 [09:55:56]Connected sock=10 [09:55: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 31 35 34 0F 01 00 00 CB 45 07 01 9F 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 09 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 C6 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AE 56 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C0 70 00 00 35 04 06 00 39 10 EE 30 7B D3 7D 36 0F 7E C1 29 AF C0 [09:55:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 72 6A 47 00 BA 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 31 35 34 10 04 04 00 C0 70 00 00 F4 03 04 00 55 01 1A 66 B6 04 01 00 00 5C 94 81 C7 B2 06 63 EC [09:55:56]CommunicateWithHost err = 0 [09:55:56]CheckOFDResponse [09:55:56]1017 (14) - 77093643461234 [09:55:56]1041 (16) - 0000000000963154 [09:55:56]1040 (4) - 28864 [09:55:56]1012 (4) - 13.04.2024 03:51 [09:55:56]1206 (1) - 0 [09:55:56]OFD Sender: Remove packet 28864 [09:55:56]ProducePacketName [09:55:56]name=ofd_packets/00028864 [09:55:56]NVStorageDeleteData [09:55:56]Write to MH i2c: 01 00 00 A1 2B CC [09:55:56]Write i2c OK [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: 01 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: 01 07 00 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: 01 07 00 A1 2B 00 00 00 00 00 C8 0C A7 [09:55:56]RasterBufferAndPrint [09:55:56]line [09:55:56]line [09:55:56]line [09:55:56]line [09:55:56]line [09:55:56]written 0, free lines is 3279 [09:55:56]MH_Cut [09:55:56]Write to MH i2c: D1 01 00 A8 2B 01 A5 [09:55:56]Write i2c OK [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: D1 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: D1 01 00 [09:55:56]MH_I2C_Read... [09:55:56]Read from MH i2c: D1 01 00 A8 2B 00 A4 [09:55:56]Write to MH i2c: 01 00 00 A9 2B D4 [09:55:56]Write i2c OK [09:55:56]MH_I2C_Read... [09:55:56]OFD Sender: No OFD packet to send [09:55:57]*** Cut start [09:55:57]*** Partial cut [09:55:57]*** CUTSNS_PIN = 1 [09:55:57]*** CUTSNS_PIN = 0 [09:55:57]*** Brake cut motor [09:55:57]Read from MH i2c: 01 [09:55:57]MH_I2C_Read... [09:55:57]*** Stop cut motor [09:55:57]*** Cut end [09:55:57]Read from MH i2c: 01 07 00 [09:55:57]MH_I2C_Read... [09:55:57]Read from MH i2c: 01 07 00 A9 2B 00 00 00 00 00 FF 0F E9 [09:55:57]process_action close_receipt done [09:55:57]requested_data is exist [09:55:57]produce_requested_data [09:55:57]requested_item fm.sn is exist - process it [09:55:57]wFMCommunicate request_size=4 [09:55:57]MH_SAM_APDU [09:55:57]CAPDU: 80 11 00 00 [09:55:57]Write to MH i2c: E2 08 00 AA 2B 80 11 00 00 00 00 00 00 4F [09:55:57]Write i2c OK [09:55:57]MH_I2C_Read... [09:55:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:57]Read from MH i2c: E2 [09:55:57]MH_I2C_Read... [09:55:57]Read from MH i2c: E2 17 00 [09:55:57]MH_I2C_Read... [09:55:57]Read from MH i2c: E2 17 00 AA 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9E [09:55:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:55:57]wFMCommunicate OK [09:55:57]requested_item fd.num is exist - process it [09:55:57]SAM_PROTO_GetFieldsCounters [09:55:57]wFMCommunicate request_size=4 [09:55:57]MH_SAM_APDU [09:55:57]CAPDU: 80 13 00 00 [09:55:57]Write to MH i2c: E2 08 00 AB 2B 80 13 00 00 00 00 00 00 52 [09:55:57]Write i2c OK [09:55:57]MH_I2C_Read... [09:55:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:57]Read from MH i2c: E2 [09:55:57]MH_I2C_Read... [09:55:57]Read from MH i2c: E2 62 00 [09:55:57]MH_I2C_Read... [09:55:57]Read from MH i2c: E2 62 00 AB 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C0 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [09:55: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C0 70 00 00 0E 04 04 00 73 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 [09:55:57]wFMCommunicate OK [09:55:57]SAM_PROTO_GetFieldsCounters done [09:55:57]requested_item shift.num is exist - process it [09:55:57]requested_item shift.opened is exist - process it [09:55:57]req_shift_opened [09:55:57]FM_GetShiftState [09:55:57]SAM_PROTO_GetShiftState [09:55:57]wFMCommunicate request_size=4 [09:55:57]MH_SAM_APDU [09:55:57]CAPDU: 80 13 01 00 [09:55:57]Write to MH i2c: E2 08 00 AC 2B 80 13 01 00 00 00 00 00 54 [09:55:58]Write i2c OK [09:55:58]MH_I2C_Read... [09:55:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:58]Read from MH i2c: E2 [09:55:58]MH_I2C_Read... [09:55:58]Read from MH i2c: E2 0E 00 [09:55:58]MH_I2C_Read... [09:55:58]Read from MH i2c: E2 0E 00 AC 2B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 6D [09:55:58]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:55:58]wFMCommunicate OK [09:55:58]SAM_PROTO_GetShiftState done [09:55:58]FM_GetShiftState done [09:55:58]req_shift_opened done [09:55:58]requested_item shift.open_date is exist - process it [09:55:58]req_shift_open_date [09:55:58]req_shift_open_date done [09:55:58]produce_requested_data done [09:55:58]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28864,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [09:55:58]process_action_free close_receipt [09:55:58]json_value_free [09:55:58]json_value_free done [09:55:58]process_json_proto returns [09:55:58]Send response to host [09:55:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28864,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [09:55:58]free response buf [09:55:58]execute_script done [09:55:58]execute_script returns [09:55:58]free content buf [09:55:58]Sock 9.Close socket [09:55:58]Sock 9.Thread stoped [09:56:01]OFD Sender: No OFD packet to send [09:56:06]OFD Sender: No OFD packet to send [09:56:11]OFD Sender: No OFD packet to send [09:56:12]accept exits with 7 [09:56:12]New connection [09:56:12]New thread 3066785124 created [09:56:12]Thread 3066928484 joined [09:56:12]Waiting for new connection... [09:56:12] Sock 7.Parse request [09:56:12]Sock 7.Check first char [09:56:12]Sock 7.First char is OK [09:56:12]request: POST /json_proto HTTP/1.0 [09:56:12]Method: POST [09:56:12]URL: /json_proto [09:56:12]Method is POST - this is cgi request [09:56:12]url: /json_proto [09:56:12]query_string will be loaded in cgi processing [09:56:12]execute_cgi json_proto POST (null) [09:56:12]execute_cgi path=json_proto method=POST [09:56:12]POST find Content-Length [09:56:12]Host: 172.17.33.3:8080 [09:56:12]Content-Length: 682 [09:56:12]Content-Type: application/json [09:56:12] [09:56:12]POST finish read [09:56:12]Found Content-Length = 682 [09:56:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347215", "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" : 72.50, "quantity" : 13.800, "sum" : 1000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:56:12]execute_script... [09:56: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)347215", "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" : 72.50, "quantity" : 13.800, "sum" : 1000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:56:12]POST & json_proto [09:56:12]process_json_proto [09:56:12]json parsed OK: [09:56:12]protocol is kg_v1.0 [09:56:12]action value=close_receipt [09:56:12]process_action close_receipt [09:56:12]cmd_close_receipt [09:56:12]MH_GetDate [09:56:12]Write to MH i2c: F0 00 00 AD 2B C7 [09:56:12]Write i2c OK [09:56:12]MH_I2C_Read... [09:56:12]Read from MH i2c: F0 [09:56:12]MH_I2C_Read... [09:56:12]Read from MH i2c: F0 09 00 [09:56:12]MH_I2C_Read... [09:56:12]Read from MH i2c: F0 09 00 AD 2B 00 C0 56 1A 66 23 5B 8F 65 D8 [09:56:12]GetLastDocTimeStamp 1713002158 [09:56:12]current date 1713002176 [09:56:12]FM_GetShiftState [09:56:12]SAM_PROTO_GetShiftState [09:56:12]wFMCommunicate request_size=4 [09:56:12]MH_SAM_APDU [09:56:12]CAPDU: 80 13 01 00 [09:56:12]Write to MH i2c: E2 08 00 AE 2B 80 13 01 00 00 00 00 00 56 [09:56:12]Write i2c OK [09:56:12]MH_I2C_Read... [09:56:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:12]Read from MH i2c: E2 [09:56:12]MH_I2C_Read... [09:56:12]Read from MH i2c: E2 0E 00 [09:56:12]MH_I2C_Read... [09:56:12]Read from MH i2c: E2 0E 00 AE 2B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 6F [09:56:12]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:56:12]wFMCommunicate OK [09:56:12]SAM_PROTO_GetShiftState done [09:56:12]FM_GetShiftState done [09:56:12]opened in 1712967615 [09:56:12]opened+sec_in_day 1713054015 [09:56:12]quantity*price = 100050 [09:56:12]sum+1 = 100051 [09:56:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 72 13.04.2024 09:56 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28865 ФПД: 234176575662707 1/tax-web-control/client/api/v1/ticket?date=20240413T095616&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28865&fm=234176575662707&tin=02508201610067®Number=0000138879044617&sum=100000 [09:56:13]StoreToDocumentArchive [09:56:13]shift 115 fd 28865 [09:56:13]save to /storage/0115/doc_00028865 [09:56:13]save last doc name /storage/0115/doc_00028865 to /storage/kkm_last_doc_name [09:56:13]save OK [09:56:13]Clear old archive folders... [09:56:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:56:13]tlvbuf is 011F69B0 [09:56:13]SAM_PROTO_ClearQueue [09:56:13]wFMCommunicate request_size=4 [09:56:13]MH_SAM_APDU [09:56:13]CAPDU: 80 09 00 00 [09:56:13]Write to MH i2c: E2 08 00 BB 2B 80 09 00 00 00 00 00 00 58 [09:56:13]Write i2c OK [09:56:13]MH_I2C_Read... [09:56:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:13]Read from MH i2c: E2 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: E2 03 00 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: E2 03 00 BB 2B 00 90 00 5A [09:56:13]RAPDU: 90 00 [09:56:13]wFMCommunicate OK [09:56:13]SAM_PROTO_ClearQueue done [09:56:13]KKMCreateOFDPacket [09:56:13]OFDProtocolAddRootSTLVToBuf [09:56:13]FM_MakeSignedData [09:56:13]FM_MakeSignedData [09:56:13]SAM_PROTO_SignData [09:56:13]wFMCommunicate request_size=4 [09:56:13]MH_SAM_APDU [09:56:13]CAPDU: 80 0D 01 02 [09:56:13]Write to MH i2c: E2 08 00 BC 2B 80 0D 01 02 00 00 00 00 60 [09:56:13]Write i2c OK [09:56:13]MH_I2C_Read... [09:56:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:13]Read from MH i2c: E2 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: E2 03 00 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: E2 03 00 BC 2B 00 90 00 5B [09:56:13]RAPDU: 90 00 [09:56:13]wFMCommunicate OK [09:56:13]wFMCommunicate request_size=255 [09:56:13]MH_SAM_APDU [09:56: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 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 C0 56 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C1 70 00 00 35 04 06 00 D4 [09:56:13]Write to MH i2c: E2 02 01 BD 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 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 C0 56 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C1 70 00 00 35 04 06 00 D4 00 00 35 [09:56:13]Write i2c OK [09:56:13]MH_I2C_Read... [09:56:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:13]Read from MH i2c: E2 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: E2 03 00 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: E2 03 00 BD 2B 00 90 00 5C [09:56:13]RAPDU: 90 00 [09:56:13]wFMCommunicate OK [09:56:13]wFMCommunicate request_size=10 [09:56:13]MH_SAM_APDU [09:56:13]CAPDU: 80 0D 02 02 05 FB 7B 9B 6A 73 [09:56:13]Write to MH i2c: E2 0D 00 BE 2B 80 0D 02 02 05 00 FB 7B 9B 6A 73 00 00 5B [09:56:13]Write i2c OK [09:56:13]MH_I2C_Read... [09:56:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:13]Read from MH i2c: E2 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: E2 03 00 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: E2 03 00 BE 2B 00 90 00 5D [09:56:13]RAPDU: 90 00 [09:56:13]wFMCommunicate OK [09:56:13]wFMCommunicate request_size=4 [09:56:13]MH_SAM_APDU [09:56:13]CAPDU: 80 0D 03 02 [09:56:13]Write to MH i2c: E2 08 00 BF 2B 80 0D 03 02 00 00 00 00 65 [09:56:13]Write i2c OK [09:56:13]MH_I2C_Read... [09:56:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:13]Read from MH i2c: E2 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: E2 0B 00 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: E2 0B 00 BF 2B 00 6E 61 CB 9D 50 F4 07 F3 90 00 DB [09:56:13]RAPDU: 6E 61 CB 9D 50 F4 07 F3 90 00 [09:56:13]wFMCommunicate OK [09:56:13]SAM_PROTO_SignData done [09:56:13]FM_MakeSignedData done [09:56:13]CreateOFDProtocolMessage [09:56:13]wFMCommunicate request_size=4 [09:56:13]MH_SAM_APDU [09:56:13]CAPDU: 80 11 00 00 [09:56:13]Write to MH i2c: E2 08 00 C0 2B 80 11 00 00 00 00 00 00 65 [09:56:13]Write i2c OK [09:56:13]MH_I2C_Read... [09:56:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:13]Read from MH i2c: E2 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: E2 17 00 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: E2 17 00 C0 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B4 [09:56:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:56:13]wFMCommunicate OK [09:56:13]CreateOFDProtocolMessage done [09:56:13]OFDSenderStorePacket 28865 [09:56:13]StoreOFDPacket docnum=28865 [09:56:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 30 33 07 01 1D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 C0 56 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C1 70 00 00 35 04 06 00 D4 FB 7B 9B 6A 73 6E 61 CB 9D 50 F4 07 F3 [09:56:13]CheckFolder [09:56:13]dirname=/storage/ofd_packets [09:56:13]CheckFolder done [09:56:13]ProducePacketName [09:56:13]name=ofd_packets/00028865 [09:56:13]NVStorageSaveData ofd_packets/00028865 [09:56:13]File name is /storage/ofd_packets/00028865 [09:56:13]Write 301 bytes [09:56:13]NVStorageSaveData done [09:56:13]OFDSenderStorePacket done [09:56:13]KKMCreateOFDPacket done [09:56:13]NVStorageSaveData kkm_last_timestamp [09:56:13]File name is /storage/kkm_last_timestamp [09:56:13]Write 4 bytes [09:56:13]NVStorageSaveData done [09:56:13]ExternCall_PrintAddStr [09:56:13]wPrintStart [09:56:13]Write to MH i2c: 01 00 00 C1 2B EC [09:56:13]Write i2c OK [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: 01 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: 01 07 00 [09:56:13]MH_I2C_Read... [09:56:13]Read from MH i2c: 01 07 00 C1 2B 00 00 00 00 00 FF 0F 01 [09:56:13]RasterBufferAndPrint [09:56:13]line Счет N : (1)347215 [09:56:13]line ИНН: 02508201610067 [09:56:13]line Контрольно-Кассовый Чек [09:56:13]line ПРОДАЖА [09:56:13]line ТРК (МРК, ГНК) : 33 [09:56:13]line Товар: 2710124500 [09:56:13]line Аи-95-К-5 [09:56:13]line 13.800 * 72.50 [09:56:13]line = 1000.50 [09:56:13]line НДС 12% НСП 1% [09:56:13]line > о реализуемом товаре [09:56:13]line ОКРУГЛЕНИЕ: -0.50 [09:56:13]line ИТОГО: 1000.00 [09:56:13]line Внесено: 1000.00 [09:56:13]line СДАЧА: 0.00 [09:56:13]line НСП 1% : 8.85 [09:56:13]line НДС 12% : 106.25 [09:56:13]line Наличными: 1000.00 [09:56:13]line Безнал.: 0.00 [09:56:13]line Место: АЗС № 108 "Партнер Нефть" [09:56:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:56:13]line СНО: Общий режим [09:56:13]line Чек 72 13.04.2024 09:56 [09:56:13]line Смена: 115 ФФД: 1.0 [09:56:13]line ЗНМ: 0300000027 [09:56:13]line РНМ: 0000138879044617 [09:56:13]line Версия ККМ: 001 [09:56:13]line ФМ: 0000000000963154 [09:56:13]line ФД: 28865 [09:56:14]line ФПД: 234176575662707 [09:56:14]line 1/tax-web-control/client/api/v1/ticket?date=20240413T095616&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28865&fm=234176575662707&tin=02508201610067®Number=0000138879044617&sum=100000 [09:56:14]OFD Sender: Processing packet 28865 [packets to send 8, broken 7] [09:56:14]ProducePacketName [09:56:14]name=ofd_packets/00028865 [09:56:14]OFD Sender: To server: pG, [09:56:14]CommunicateWithHost lk.salyk.kg:30040 [09:56:14]ConnectInit lk.salyk.kg [09:56:14]written 0, free lines is 4095 [09:56:14]Connected sock=10 [09:56: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 31 35 34 0F 01 00 00 30 33 07 01 1D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 C0 56 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C1 70 00 00 35 04 06 00 D4 FB 7B 9B 6A 73 6E 61 CB 9D 50 F4 07 F3 [09:56:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 99 28 47 00 E5 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 31 35 34 10 04 04 00 C1 70 00 00 F4 03 04 00 67 01 1A 66 B6 04 01 00 00 41 CA B4 D2 6C 6E DB 35 [09:56:14]CommunicateWithHost err = 0 [09:56:14]CheckOFDResponse [09:56:14]1017 (14) - 77093643461234 [09:56:14]1041 (16) - 0000000000963154 [09:56:14]1040 (4) - 28865 [09:56:14]1012 (4) - 13.04.2024 03:52 [09:56:14]1206 (1) - 0 [09:56:14]OFD Sender: Remove packet 28865 [09:56:14]ProducePacketName [09:56:14]name=ofd_packets/00028865 [09:56:14]NVStorageDeleteData [09:56:14]Write to MH i2c: 01 00 00 EB 2B 16 [09:56:14]Write i2c OK [09:56:14]MH_I2C_Read... [09:56:14]Read from MH i2c: 01 [09:56:14]MH_I2C_Read... [09:56:14]Read from MH i2c: 01 07 00 [09:56:14]MH_I2C_Read... [09:56:14]Read from MH i2c: 01 07 00 EB 2B 00 00 00 00 00 D4 0C FD [09:56:14]RasterBufferAndPrint [09:56:14]line [09:56:14]line [09:56:14]line [09:56:14]line [09:56:14]line [09:56:14]written 0, free lines is 3291 [09:56:14]MH_Cut [09:56:14]Write to MH i2c: D1 01 00 F2 2B 01 EF [09:56:14]Write i2c OK [09:56:14]MH_I2C_Read... [09:56:14]Read from MH i2c: D1 [09:56:14]MH_I2C_Read... [09:56:14]Read from MH i2c: D1 01 00 [09:56:14]MH_I2C_Read... [09:56:14]Read from MH i2c: D1 01 00 F2 2B 00 EE [09:56:14]Write to MH i2c: 01 00 00 F3 2B 1E [09:56:14]Write i2c OK [09:56:14]MH_I2C_Read... [09:56:14]OFD Sender: No OFD packet to send [09:56:15]*** Cut start [09:56:15]*** Partial cut [09:56:15]*** CUTSNS_PIN = 1 [09:56:15]*** CUTSNS_PIN = 0 [09:56:15]*** Brake cut motor [09:56:16]Read from MH i2c: 01 [09:56:16]MH_I2C_Read... [09:56:16]*** Stop cut motor [09:56:16]*** Cut end [09:56:16]Read from MH i2c: 01 07 00 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: 01 07 00 F3 2B 00 00 00 00 00 FF 0F 33 [09:56:16]process_action close_receipt done [09:56:16]requested_data is exist [09:56:16]produce_requested_data [09:56:16]requested_item fm.sn is exist - process it [09:56:16]wFMCommunicate request_size=4 [09:56:16]MH_SAM_APDU [09:56:16]CAPDU: 80 11 00 00 [09:56:16]Write to MH i2c: E2 08 00 F4 2B 80 11 00 00 00 00 00 00 99 [09:56:16]Write i2c OK [09:56:16]MH_I2C_Read... [09:56:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:16]Read from MH i2c: E2 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: E2 17 00 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: E2 17 00 F4 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E8 [09:56:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:56:16]wFMCommunicate OK [09:56:16]requested_item fd.num is exist - process it [09:56:16]SAM_PROTO_GetFieldsCounters [09:56:16]wFMCommunicate request_size=4 [09:56:16]MH_SAM_APDU [09:56:16]CAPDU: 80 13 00 00 [09:56:16]Write to MH i2c: E2 08 00 F5 2B 80 13 00 00 00 00 00 00 9C [09:56:16]Write i2c OK [09:56:16]MH_I2C_Read... [09:56:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:16]Read from MH i2c: E2 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: E2 62 00 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: E2 62 00 F5 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C1 70 00 00 0E 04 04 00 73 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 56 [09:56: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C1 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:56:16]wFMCommunicate OK [09:56:16]SAM_PROTO_GetFieldsCounters done [09:56:16]requested_item shift.num is exist - process it [09:56:16]requested_item shift.opened is exist - process it [09:56:16]req_shift_opened [09:56:16]FM_GetShiftState [09:56:16]SAM_PROTO_GetShiftState [09:56:16]wFMCommunicate request_size=4 [09:56:16]MH_SAM_APDU [09:56:16]CAPDU: 80 13 01 00 [09:56:16]Write to MH i2c: E2 08 00 F6 2B 80 13 01 00 00 00 00 00 9E [09:56:16]Write i2c OK [09:56:16]MH_I2C_Read... [09:56:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:16]Read from MH i2c: E2 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: E2 0E 00 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: E2 0E 00 F6 2B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 B7 [09:56:16]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:56:16]wFMCommunicate OK [09:56:16]SAM_PROTO_GetShiftState done [09:56:16]FM_GetShiftState done [09:56:16]req_shift_opened done [09:56:16]requested_item shift.open_date is exist - process it [09:56:16]req_shift_open_date [09:56:16]req_shift_open_date done [09:56:16]produce_requested_data done [09:56:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28865,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [09:56:16]process_action_free close_receipt [09:56:16]json_value_free [09:56:16]json_value_free done [09:56:16]process_json_proto returns [09:56:16]Send response to host [09:56:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28865,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [09:56:16]free response buf [09:56:16]execute_script done [09:56:16]execute_script returns [09:56:16]free content buf [09:56:16]Sock 7.Close socket [09:56:16]Sock 7.Thread stoped [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]accept exits with 9 [09:56:44]New connection [09:56:44]New thread 3066928484 created [09:56:44]Thread 3066785124 joined [09:56:44]Waiting for new connection... [09:56:44] Sock 9.Parse request [09:56:44]Sock 9.Check first char [09:56:44]Sock 9.First char is OK [09:56:44]request: POST /json_proto HTTP/1.0 [09:56:44]Method: POST [09:56:44]URL: /json_proto [09:56:44]Method is POST - this is cgi request [09:56:44]url: /json_proto [09:56:44]query_string will be loaded in cgi processing [09:56:44]execute_cgi json_proto POST (null) [09:56:44]execute_cgi path=json_proto method=POST [09:56:44]POST find Content-Length [09:56:44]Host: 172.17.33.3:8080 [09:56:44]Content-Length: 674 [09:56:44]Content-Type: application/json [09:56:44] [09:56:44]POST finish read [09:56:44]Found Content-Length = 674 [09:56:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347217", "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" : 72.40, "quantity" : 9.670, "sum" : 700.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:44]execute_script... [09:56: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)347217", "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" : 72.40, "quantity" : 9.670, "sum" : 700.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:44]POST & json_proto [09:56:44]process_json_proto [09:56:44]json parsed OK: [09:56:44]protocol is kg_v1.0 [09:56:44]action value=close_receipt [09:56:44]process_action close_receipt [09:56:44]cmd_close_receipt [09:56:44]MH_GetDate [09:56:44]Write to MH i2c: F0 00 00 F7 2B 11 [09:56:44]Write i2c OK [09:56:44]MH_I2C_Read... [09:56:44]Read from MH i2c: F0 [09:56:44]MH_I2C_Read... [09:56:44]Read from MH i2c: F0 09 00 [09:56:44]MH_I2C_Read... [09:56:44]Read from MH i2c: F0 09 00 F7 2B 00 E0 56 1A 66 23 5B 8F 65 42 [09:56:44]GetLastDocTimeStamp 1713002176 [09:56:44]current date 1713002208 [09:56:44]FM_GetShiftState [09:56:44]SAM_PROTO_GetShiftState [09:56:44]wFMCommunicate request_size=4 [09:56:44]MH_SAM_APDU [09:56:44]CAPDU: 80 13 01 00 [09:56:44]Write to MH i2c: E2 08 00 F8 2B 80 13 01 00 00 00 00 00 A0 [09:56:44]Write i2c OK [09:56:44]MH_I2C_Read... [09:56:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:44]Read from MH i2c: E2 [09:56:44]MH_I2C_Read... [09:56:44]Read from MH i2c: E2 0E 00 [09:56:44]MH_I2C_Read... [09:56:44]Read from MH i2c: E2 0E 00 F8 2B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 B9 [09:56:44]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:56:44]wFMCommunicate OK [09:56:44]SAM_PROTO_GetShiftState done [09:56:44]FM_GetShiftState done [09:56:44]opened in 1712967615 [09:56:44]opened+sec_in_day 1713054015 [09:56:44]quantity*price = 70010 [09:56:44]sum+1 = 70012 [09:56:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 73 13.04.2024 09:56 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28866 ФПД: 232544126263190 1/tax-web-control/client/api/v1/ticket?date=20240413T095648&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28866&fm=232544126263190&tin=02508201610067®Number=0000138879044617&sum=70000 [09:56:45]StoreToDocumentArchive [09:56:45]shift 115 fd 28866 [09:56:45]save to /storage/0115/doc_00028866 [09:56:45]save last doc name /storage/0115/doc_00028866 to /storage/kkm_last_doc_name [09:56:45]save OK [09:56:45]Clear old archive folders... [09:56:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:56:45]tlvbuf is 011EED20 [09:56:45]SAM_PROTO_ClearQueue [09:56:45]wFMCommunicate request_size=4 [09:56:45]MH_SAM_APDU [09:56:45]CAPDU: 80 09 00 00 [09:56:45]Write to MH i2c: E2 08 00 05 2C 80 09 00 00 00 00 00 00 A3 [09:56:45]Write i2c OK [09:56:45]MH_I2C_Read... [09:56:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:45]Read from MH i2c: E2 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 03 00 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 03 00 05 2C 00 90 00 A5 [09:56:45]RAPDU: 90 00 [09:56:45]wFMCommunicate OK [09:56:45]SAM_PROTO_ClearQueue done [09:56:45]KKMCreateOFDPacket [09:56:45]OFDProtocolAddRootSTLVToBuf [09:56:45]FM_MakeSignedData [09:56:45]FM_MakeSignedData [09:56:45]SAM_PROTO_SignData [09:56:45]wFMCommunicate request_size=4 [09:56:45]MH_SAM_APDU [09:56:45]CAPDU: 80 0D 01 02 [09:56:45]Write to MH i2c: E2 08 00 06 2C 80 0D 01 02 00 00 00 00 AB [09:56:45]Write i2c OK [09:56:45]MH_I2C_Read... [09:56:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:45]Read from MH i2c: E2 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 03 00 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 03 00 06 2C 00 90 00 A6 [09:56:45]RAPDU: 90 00 [09:56:45]wFMCommunicate OK [09:56:45]wFMCommunicate request_size=255 [09:56:45]MH_SAM_APDU [09:56:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C6 25 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 7B 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 0B 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 49 00 00 00 F4 03 04 00 E0 56 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C2 70 00 00 35 04 06 00 D3 7F 66 0A [09:56:45]Write to MH i2c: E2 02 01 07 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 C6 25 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 7B 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 0B 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 49 00 00 00 F4 03 04 00 E0 56 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C2 70 00 00 35 04 06 00 D3 7F 66 0A 00 00 01 [09:56:45]Write i2c OK [09:56:45]MH_I2C_Read... [09:56:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:45]Read from MH i2c: E2 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 03 00 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 03 00 07 2C 00 90 00 A7 [09:56:45]RAPDU: 90 00 [09:56:45]wFMCommunicate OK [09:56:45]wFMCommunicate request_size=7 [09:56:45]MH_SAM_APDU [09:56:45]CAPDU: 80 0D 02 02 02 5F 96 [09:56:45]Write to MH i2c: E2 0A 00 08 2C 80 0D 02 02 02 00 5F 96 00 00 A7 [09:56:45]Write i2c OK [09:56:45]MH_I2C_Read... [09:56:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:45]Read from MH i2c: E2 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 03 00 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 03 00 08 2C 00 90 00 A8 [09:56:45]RAPDU: 90 00 [09:56:45]wFMCommunicate OK [09:56:45]wFMCommunicate request_size=4 [09:56:45]MH_SAM_APDU [09:56:45]CAPDU: 80 0D 03 02 [09:56:45]Write to MH i2c: E2 08 00 09 2C 80 0D 03 02 00 00 00 00 B0 [09:56:45]Write i2c OK [09:56:45]MH_I2C_Read... [09:56:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:45]Read from MH i2c: E2 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 0B 00 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 0B 00 09 2C 00 50 C5 EC AB 47 73 A6 0F 90 00 CC [09:56:45]RAPDU: 50 C5 EC AB 47 73 A6 0F 90 00 [09:56:45]wFMCommunicate OK [09:56:45]SAM_PROTO_SignData done [09:56:45]FM_MakeSignedData done [09:56:45]CreateOFDProtocolMessage [09:56:45]wFMCommunicate request_size=4 [09:56:45]MH_SAM_APDU [09:56:45]CAPDU: 80 11 00 00 [09:56:45]Write to MH i2c: E2 08 00 0A 2C 80 11 00 00 00 00 00 00 B0 [09:56:45]Write i2c OK [09:56:45]MH_I2C_Read... [09:56:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:45]Read from MH i2c: E2 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 17 00 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: E2 17 00 0A 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FF [09:56:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:56:45]wFMCommunicate OK [09:56:45]CreateOFDProtocolMessage done [09:56:45]OFDSenderStorePacket 28866 [09:56:45]StoreOFDPacket docnum=28866 [09:56:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 88 74 04 01 68 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 C6 25 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 7B 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 0B 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 49 00 00 00 F4 03 04 00 E0 56 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C2 70 00 00 35 04 06 00 D3 7F 66 0A 5F 96 50 C5 EC AB 47 73 A6 0F [09:56:45]CheckFolder [09:56:45]dirname=/storage/ofd_packets [09:56:45]CheckFolder done [09:56:45]ProducePacketName [09:56:45]name=ofd_packets/00028866 [09:56:45]NVStorageSaveData ofd_packets/00028866 [09:56:45]File name is /storage/ofd_packets/00028866 [09:56:45]Write 298 bytes [09:56:45]NVStorageSaveData done [09:56:45]OFDSenderStorePacket done [09:56:45]KKMCreateOFDPacket done [09:56:45]NVStorageSaveData kkm_last_timestamp [09:56:45]File name is /storage/kkm_last_timestamp [09:56:45]Write 4 bytes [09:56:45]NVStorageSaveData done [09:56:45]ExternCall_PrintAddStr [09:56:45]wPrintStart [09:56:45]Write to MH i2c: 01 00 00 0B 2C 37 [09:56:45]Write i2c OK [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: 01 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: 01 07 00 [09:56:45]MH_I2C_Read... [09:56:45]Read from MH i2c: 01 07 00 0B 2C 00 00 00 00 00 FF 0F 4C [09:56:45]RasterBufferAndPrint [09:56:45]line Счет N : (1)347217 [09:56:45]line ИНН: 02508201610067 [09:56:45]line Контрольно-Кассовый Чек [09:56:45]line ПРОДАЖА [09:56:45]line ТРК (МРК, ГНК) : 51 [09:56:45]line Товар: 2710194210 [09:56:45]line ДТ-К-5 [09:56:45]line 9.670 * 72.40 [09:56:45]line = 700.11 [09:56:45]line НДС 12% НСП 1% [09:56:45]line > о реализуемом товаре [09:56:45]line ОКРУГЛЕНИЕ: -0.11 [09:56:45]line ИТОГО: 700.00 [09:56:45]line Внесено: 700.00 [09:56:45]line СДАЧА: 0.00 [09:56:45]line НСП 1% : 6.20 [09:56:45]line НДС 12% : 74.35 [09:56:45]line Наличными: 700.00 [09:56:45]line Безнал.: 0.00 [09:56:45]line Место: АЗС № 108 "Партнер Нефть" [09:56:45]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [09:56:45]line СНО: Общий режим [09:56:45]line Чек 73 13.04.2024 09:56 [09:56:45]line Смена: 115 ФФД: 1.0 [09:56:45]line ЗНМ: 0300000027 [09:56:45]line РНМ: 0000138879044617 [09:56:45]line Версия ККМ: 001 [09:56:45]line ФМ: 0000000000963154 [09:56:45]line ФД: 28866 [09:56:45]line ФПД: 232544126263190 [09:56:46]line 1/tax-web-control/client/api/v1/ticket?date=20240413T095648&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28866&fm=232544126263190&tin=02508201610067®Number=0000138879044617&sum=70000 [09:56:46]OFD Sender: Processing packet 28866 [packets to send 8, broken 7] [09:56:46]ProducePacketName [09:56:46]name=ofd_packets/00028866 [09:56:46]OFD Sender: To server: pG, [09:56:46]CommunicateWithHost lk.salyk.kg:30040 [09:56:46]ConnectInit lk.salyk.kg [09:56:46]written 0, free lines is 4095 [09:56:46]Connected sock=10 [09:56: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 31 35 34 0C 01 00 00 88 74 04 01 68 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 C6 25 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 7B 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 0B 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 49 00 00 00 F4 03 04 00 E0 56 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C2 70 00 00 35 04 06 00 D3 7F 66 0A 5F 96 50 C5 EC AB 47 73 A6 0F [09:56:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B1 41 47 00 8D AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C2 70 00 00 F4 03 04 00 87 01 1A 66 B6 04 01 00 00 82 98 B2 6B 56 B8 86 6C [09:56:46]CommunicateWithHost err = 0 [09:56:46]CheckOFDResponse [09:56:46]1017 (14) - 77093643461234 [09:56:46]1041 (16) - 0000000000963154 [09:56:46]1040 (4) - 28866 [09:56:46]1012 (4) - 13.04.2024 03:52 [09:56:46]1206 (1) - 0 [09:56:46]OFD Sender: Remove packet 28866 [09:56:46]ProducePacketName [09:56:46]name=ofd_packets/00028866 [09:56:46]NVStorageDeleteData [09:56:46]Write to MH i2c: 01 00 00 35 2C 61 [09:56:46]Write i2c OK [09:56:46]MH_I2C_Read... [09:56:46]Read from MH i2c: 01 [09:56:46]MH_I2C_Read... [09:56:46]Read from MH i2c: 01 07 00 [09:56:46]MH_I2C_Read... [09:56:46]Read from MH i2c: 01 07 00 35 2C 00 00 00 00 00 C4 0C 38 [09:56:46]RasterBufferAndPrint [09:56:46]line [09:56:46]line [09:56:46]line [09:56:46]line [09:56:46]line [09:56:46]written 0, free lines is 3274 [09:56:46]MH_Cut [09:56:46]Write to MH i2c: D1 01 00 3C 2C 01 3A [09:56:46]Write i2c OK [09:56:46]MH_I2C_Read... [09:56:46]Read from MH i2c: D1 [09:56:46]MH_I2C_Read... [09:56:46]Read from MH i2c: D1 01 00 [09:56:46]MH_I2C_Read... [09:56:46]Read from MH i2c: D1 01 00 3C 2C 00 39 [09:56:46]Write to MH i2c: 01 00 00 3D 2C 69 [09:56:46]Write i2c OK [09:56:46]MH_I2C_Read... [09:56:46]OFD Sender: No OFD packet to send [09:56:47]*** Cut start [09:56:47]*** Partial cut [09:56:47]*** CUTSNS_PIN = 1 [09:56:47]*** CUTSNS_PIN = 0 [09:56:47]*** Brake cut motor [09:56:47]Read from MH i2c: 01 [09:56:47]MH_I2C_Read... [09:56:47]*** Stop cut motor [09:56:47]*** Cut end [09:56:47]Read from MH i2c: 01 07 00 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: 01 07 00 3D 2C 00 00 00 00 00 FF 0F 7E [09:56:47]process_action close_receipt done [09:56:47]requested_data is exist [09:56:47]produce_requested_data [09:56:47]requested_item fm.sn is exist - process it [09:56:47]wFMCommunicate request_size=4 [09:56:47]MH_SAM_APDU [09:56:47]CAPDU: 80 11 00 00 [09:56:47]Write to MH i2c: E2 08 00 3E 2C 80 11 00 00 00 00 00 00 E4 [09:56:47]Write i2c OK [09:56:47]MH_I2C_Read... [09:56:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:48]Read from MH i2c: E2 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: E2 17 00 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: E2 17 00 3E 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 33 [09:56:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [09:56:48]wFMCommunicate OK [09:56:48]requested_item fd.num is exist - process it [09:56:48]SAM_PROTO_GetFieldsCounters [09:56:48]wFMCommunicate request_size=4 [09:56:48]MH_SAM_APDU [09:56:48]CAPDU: 80 13 00 00 [09:56:48]Write to MH i2c: E2 08 00 3F 2C 80 13 00 00 00 00 00 00 E7 [09:56:48]Write i2c OK [09:56:48]MH_I2C_Read... [09:56:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:48]Read from MH i2c: E2 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: E2 62 00 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: E2 62 00 3F 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C2 70 00 00 0E 04 04 00 73 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 A5 [09:56: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C2 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:56:48]wFMCommunicate OK [09:56:48]SAM_PROTO_GetFieldsCounters done [09:56:48]requested_item shift.num is exist - process it [09:56:48]requested_item shift.opened is exist - process it [09:56:48]req_shift_opened [09:56:48]FM_GetShiftState [09:56:48]SAM_PROTO_GetShiftState [09:56:48]wFMCommunicate request_size=4 [09:56:48]MH_SAM_APDU [09:56:48]CAPDU: 80 13 01 00 [09:56:48]Write to MH i2c: E2 08 00 40 2C 80 13 01 00 00 00 00 00 E9 [09:56:48]Write i2c OK [09:56:48]MH_I2C_Read... [09:56:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:48]Read from MH i2c: E2 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: E2 0E 00 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: E2 0E 00 40 2C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 02 [09:56:48]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [09:56:48]wFMCommunicate OK [09:56:48]SAM_PROTO_GetShiftState done [09:56:48]FM_GetShiftState done [09:56:48]req_shift_opened done [09:56:48]requested_item shift.open_date is exist - process it [09:56:48]req_shift_open_date [09:56:48]req_shift_open_date done [09:56:48]produce_requested_data done [09:56:48]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28866,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [09:56:48]process_action_free close_receipt [09:56:48]json_value_free [09:56:48]json_value_free done [09:56:48]process_json_proto returns [09:56:48]Send response to host [09:56:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28866,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [09:56:48]free response buf [09:56:48]execute_script done [09:56:48]execute_script returns [09:56:48]free content buf [09:56:48]Sock 9.Close socket [09:56:48]Sock 9.Thread stoped [09:56:51]OFD Sender: No OFD packet to send [09:56:56]OFD Sender: No OFD packet to send [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [09:57:16]OFD Sender: No OFD packet to send [09:57:21]OFD Sender: No OFD packet to send [09:57:26]OFD Sender: No OFD packet to send [09:57:31]OFD Sender: No OFD packet to send [09:57:36]OFD Sender: No OFD packet to send [09:57:41]OFD Sender: No OFD packet to send [09:57:46]OFD Sender: No OFD packet to send [09:57:51]OFD Sender: No OFD packet to send [09:57:56]OFD Sender: No OFD packet to send [09:58:01]OFD Sender: No OFD packet to send [09:58:06]OFD Sender: No OFD packet to send [09:58:11]OFD Sender: No OFD packet to send [09:58:16]OFD Sender: No OFD packet to send [09:58:21]OFD Sender: No OFD packet to send [09:58:26]OFD Sender: No OFD packet to send [09:58:31]OFD Sender: No OFD packet to send [09:58:36]OFD Sender: No OFD packet to send [09:58:41]OFD Sender: No OFD packet to send [09:58:46]OFD Sender: No OFD packet to send [09:58:51]OFD Sender: No OFD packet to send [09:58:56]OFD Sender: No OFD packet to send [09:59:01]OFD Sender: No OFD packet to send [09:59:06]OFD Sender: No OFD packet to send [09:59:11]OFD Sender: No OFD packet to send [09:59:17]OFD Sender: No OFD packet to send [09:59:22]OFD Sender: No OFD packet to send [09:59:27]OFD Sender: No OFD packet to send [09:59:32]OFD Sender: No OFD packet to send [09:59:37]OFD Sender: No OFD packet to send [09:59:42]OFD Sender: No OFD packet to send [09:59:47]OFD Sender: No OFD packet to send [09:59:52]OFD Sender: No OFD packet to send [09:59:57]OFD Sender: No OFD packet to send [10:00:02]OFD Sender: No OFD packet to send [10:00:07]OFD Sender: No OFD packet to send [10:00:12]OFD Sender: No OFD packet to send [10:00:17]OFD Sender: No OFD packet to send [10:00:22]OFD Sender: No OFD packet to send [10:00:27]OFD Sender: No OFD packet to send [10:00:32]OFD Sender: No OFD packet to send [10:00:37]OFD Sender: No OFD packet to send [10:00:42]OFD Sender: No OFD packet to send [10:00:47]OFD Sender: No OFD packet to send [10:00:52]OFD Sender: No OFD packet to send [10:00:57]OFD Sender: No OFD packet to send [10:01:02]OFD Sender: No OFD packet to send [10:01:07]OFD Sender: No OFD packet to send [10:01:12]OFD Sender: No OFD packet to send [10:01:17]OFD Sender: No OFD packet to send [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:24]accept exits with 7 [10:02:24]New connection [10:02:24]New thread 3066785124 created [10:02:24]Thread 3066928484 joined [10:02:24]Waiting for new connection... [10:02:24] Sock 7.Parse request [10:02:24]Sock 7.Check first char [10:02:24]Sock 7.First char is OK [10:02:24]request: POST /json_proto HTTP/1.0 [10:02:24]Method: POST [10:02:24]URL: /json_proto [10:02:24]Method is POST - this is cgi request [10:02:24]url: /json_proto [10:02:24]query_string will be loaded in cgi processing [10:02:24]execute_cgi json_proto POST (null) [10:02:24]execute_cgi path=json_proto method=POST [10:02:24]POST find Content-Length [10:02:24]Host: 172.17.33.3:8080 [10:02:24]Content-Length: 682 [10:02:24]Content-Type: application/json [10:02:24] [10:02:24]POST finish read [10:02:24]Found Content-Length = 682 [10:02:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347219", "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" : 64.30, "quantity" : 23.330, "sum" : 1500.12, "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:02:24]execute_script... [10:02: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)347219", "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" : 64.30, "quantity" : 23.330, "sum" : 1500.12, "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:02:24]POST & json_proto [10:02:24]process_json_proto [10:02:24]json parsed OK: [10:02:24]protocol is kg_v1.0 [10:02:24]action value=close_receipt [10:02:24]process_action close_receipt [10:02:24]cmd_close_receipt [10:02:24]MH_GetDate [10:02:24]Write to MH i2c: F0 00 00 41 2C 5C [10:02:24]Write i2c OK [10:02:24]MH_I2C_Read... [10:02:24]Read from MH i2c: F0 [10:02:24]MH_I2C_Read... [10:02:24]Read from MH i2c: F0 09 00 [10:02:24]MH_I2C_Read... [10:02:24]Read from MH i2c: F0 09 00 41 2C 00 34 58 1A 66 23 5B 8F 65 E3 [10:02:24]GetLastDocTimeStamp 1713002208 [10:02:24]current date 1713002548 [10:02:24]FM_GetShiftState [10:02:24]SAM_PROTO_GetShiftState [10:02:24]wFMCommunicate request_size=4 [10:02:24]MH_SAM_APDU [10:02:24]CAPDU: 80 13 01 00 [10:02:24]Write to MH i2c: E2 08 00 42 2C 80 13 01 00 00 00 00 00 EB [10:02:24]Write i2c OK [10:02:24]MH_I2C_Read... [10:02:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:24]Read from MH i2c: E2 [10:02:24]MH_I2C_Read... [10:02:24]Read from MH i2c: E2 0E 00 [10:02:24]MH_I2C_Read... [10:02:24]Read from MH i2c: E2 0E 00 42 2C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 04 [10:02:24]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:02:24]wFMCommunicate OK [10:02:24]SAM_PROTO_GetShiftState done [10:02:24]FM_GetShiftState done [10:02:24]opened in 1712967615 [10:02:24]opened+sec_in_day 1713054015 [10:02:24]quantity*price = 150011 [10:02:24]sum+1 = 150013 [10:02:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 74 13.04.2024 10:02 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28867 ФПД: 162640730729460 1/tax-web-control/client/api/v1/ticket?date=20240413T100229&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28867&fm=162640730729460&tin=02508201610067®Number=0000138879044617&sum=150000 [10:02:26]StoreToDocumentArchive [10:02:26]shift 115 fd 28867 [10:02:26]save to /storage/0115/doc_00028867 [10:02:26]save last doc name /storage/0115/doc_00028867 to /storage/kkm_last_doc_name [10:02:26]save OK [10:02:26]Clear old archive folders... [10:02:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:26]tlvbuf is 012245B0 [10:02:26]SAM_PROTO_ClearQueue [10:02:26]wFMCommunicate request_size=4 [10:02:26]MH_SAM_APDU [10:02:26]CAPDU: 80 09 00 00 [10:02:26]Write to MH i2c: E2 08 00 4F 2C 80 09 00 00 00 00 00 00 ED [10:02:26]Write i2c OK [10:02:26]MH_I2C_Read... [10:02:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:26]Read from MH i2c: E2 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: E2 03 00 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: E2 03 00 4F 2C 00 90 00 EF [10:02:26]RAPDU: 90 00 [10:02:26]wFMCommunicate OK [10:02:26]SAM_PROTO_ClearQueue done [10:02:26]KKMCreateOFDPacket [10:02:26]OFDProtocolAddRootSTLVToBuf [10:02:26]FM_MakeSignedData [10:02:26]FM_MakeSignedData [10:02:26]SAM_PROTO_SignData [10:02:26]wFMCommunicate request_size=4 [10:02:26]MH_SAM_APDU [10:02:26]CAPDU: 80 0D 01 02 [10:02:26]Write to MH i2c: E2 08 00 50 2C 80 0D 01 02 00 00 00 00 F5 [10:02:26]Write i2c OK [10:02:26]MH_I2C_Read... [10:02:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:26]Read from MH i2c: E2 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: E2 03 00 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: E2 03 00 50 2C 00 90 00 F0 [10:02:26]RAPDU: 90 00 [10:02:26]wFMCommunicate OK [10:02:26]wFMCommunicate request_size=255 [10:02:26]MH_SAM_APDU [10:02: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 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 4A 00 00 00 F4 03 04 00 35 58 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C3 70 00 00 35 04 06 00 93 [10:02:26]Write to MH i2c: E2 02 01 51 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 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 4A 00 00 00 F4 03 04 00 35 58 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C3 70 00 00 35 04 06 00 93 00 00 C9 [10:02:26]Write i2c OK [10:02:26]MH_I2C_Read... [10:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:26]Read from MH i2c: E2 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: E2 03 00 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: E2 03 00 51 2C 00 90 00 F1 [10:02:26]RAPDU: 90 00 [10:02:26]wFMCommunicate OK [10:02:26]wFMCommunicate request_size=10 [10:02:26]MH_SAM_APDU [10:02:26]CAPDU: 80 0D 02 02 05 EB BE FB 2B F4 [10:02:26]Write to MH i2c: E2 0D 00 52 2C 80 0D 02 02 05 00 EB BE FB 2B F4 00 00 C5 [10:02:26]Write i2c OK [10:02:26]MH_I2C_Read... [10:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:26]Read from MH i2c: E2 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: E2 03 00 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: E2 03 00 52 2C 00 90 00 F2 [10:02:26]RAPDU: 90 00 [10:02:26]wFMCommunicate OK [10:02:26]wFMCommunicate request_size=4 [10:02:26]MH_SAM_APDU [10:02:26]CAPDU: 80 0D 03 02 [10:02:26]Write to MH i2c: E2 08 00 53 2C 80 0D 03 02 00 00 00 00 FA [10:02:26]Write i2c OK [10:02:26]MH_I2C_Read... [10:02:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:26]Read from MH i2c: E2 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: E2 0B 00 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: E2 0B 00 53 2C 00 81 ED 65 D4 B5 E8 65 F6 90 00 9A [10:02:26]RAPDU: 81 ED 65 D4 B5 E8 65 F6 90 00 [10:02:26]wFMCommunicate OK [10:02:26]SAM_PROTO_SignData done [10:02:26]FM_MakeSignedData done [10:02:26]CreateOFDProtocolMessage [10:02:26]wFMCommunicate request_size=4 [10:02:26]MH_SAM_APDU [10:02:26]CAPDU: 80 11 00 00 [10:02:26]Write to MH i2c: E2 08 00 54 2C 80 11 00 00 00 00 00 00 FA [10:02:26]Write i2c OK [10:02:26]MH_I2C_Read... [10:02:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:26]Read from MH i2c: E2 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: E2 17 00 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: E2 17 00 54 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 49 [10:02:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:02:26]wFMCommunicate OK [10:02:26]CreateOFDProtocolMessage done [10:02:26]OFDSenderStorePacket 28867 [10:02:26]StoreOFDPacket docnum=28867 [10:02:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 09 6F 07 01 4F 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 4A 00 00 00 F4 03 04 00 35 58 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C3 70 00 00 35 04 06 00 93 EB BE FB 2B F4 81 ED 65 D4 B5 E8 65 F6 [10:02:26]CheckFolder [10:02:26]dirname=/storage/ofd_packets [10:02:26]CheckFolder done [10:02:26]ProducePacketName [10:02:26]name=ofd_packets/00028867 [10:02:26]NVStorageSaveData ofd_packets/00028867 [10:02:26]File name is /storage/ofd_packets/00028867 [10:02:26]Write 301 bytes [10:02:26]NVStorageSaveData done [10:02:26]OFDSenderStorePacket done [10:02:26]KKMCreateOFDPacket done [10:02:26]NVStorageSaveData kkm_last_timestamp [10:02:26]File name is /storage/kkm_last_timestamp [10:02:26]Write 4 bytes [10:02:26]NVStorageSaveData done [10:02:26]ExternCall_PrintAddStr [10:02:26]wPrintStart [10:02:26]Write to MH i2c: 01 00 00 55 2C 81 [10:02:26]Write i2c OK [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: 01 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: 01 07 00 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: 01 07 00 55 2C 00 00 00 00 00 FF 0F 96 [10:02:26]RasterBufferAndPrint [10:02:26]line Счет N : (1)347219 [10:02:26]line ИНН: 02508201610067 [10:02:26]line Контрольно-Кассовый Чек [10:02:26]line ПРОДАЖА [10:02:26]line ТРК (МРК, ГНК) : 42 [10:02:26]line Товар: 2710124130 [10:02:26]line Аи-92-К-5 [10:02:26]line 23.330 * 64.30 [10:02:26]line = 1500.12 [10:02:26]line НДС 12% НСП 1% [10:02:26]line > о реализуемом товаре [10:02:26]line ОКРУГЛЕНИЕ: -0.12 [10:02:26]line ИТОГО: 1500.00 [10:02:26]line Внесено: 1500.00 [10:02:26]line СДАЧА: 0.00 [10:02:26]line НСП 1% : 13.27 [10:02:26]line НДС 12% : 159.30 [10:02:26]line Наличными: 1500.00 [10:02:26]line Безнал.: 0.00 [10:02:26]line Место: АЗС № 108 "Партнер Нефть" [10:02:26]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:02:26]line СНО: Общий режим [10:02:26]line Чек 74 13.04.2024 10:02 [10:02:26]line Смена: 115 ФФД: 1.0 [10:02:26]line ЗНМ: 0300000027 [10:02:26]line РНМ: 0000138879044617 [10:02:26]line Версия ККМ: 001 [10:02:26]line ФМ: 0000000000963154 [10:02:26]line ФД: 28867 [10:02:26]line ФПД: 162640730729460 [10:02:26]line 1/tax-web-control/client/api/v1/ticket?date=20240413T100229&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28867&fm=162640730729460&tin=02508201610067®Number=0000138879044617&sum=150000 [10:02:26]OFD Sender: Processing packet 28867 [packets to send 8, broken 7] [10:02:26]ProducePacketName [10:02:26]name=ofd_packets/00028867 [10:02:26]OFD Sender: To server: pG, [10:02:26]CommunicateWithHost lk.salyk.kg:30040 [10:02:26]ConnectInit lk.salyk.kg [10:02:26]written 0, free lines is 4095 [10:02:27]Connected sock=10 [10:02: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 31 35 34 0F 01 00 00 09 6F 07 01 4F 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 4A 00 00 00 F4 03 04 00 35 58 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C3 70 00 00 35 04 06 00 93 EB BE FB 2B F4 81 ED 65 D4 B5 E8 65 F6 [10:02:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B9 F2 47 00 08 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 31 35 34 10 04 04 00 C3 70 00 00 F4 03 04 00 DC 02 1A 66 B6 04 01 00 00 75 13 87 32 C2 CD C5 6A [10:02:27]CommunicateWithHost err = 0 [10:02:27]CheckOFDResponse [10:02:27]1017 (14) - 77093643461234 [10:02:27]1041 (16) - 0000000000963154 [10:02:27]1040 (4) - 28867 [10:02:27]1012 (4) - 13.04.2024 03:58 [10:02:27]1206 (1) - 0 [10:02:27]OFD Sender: Remove packet 28867 [10:02:27]ProducePacketName [10:02:27]name=ofd_packets/00028867 [10:02:27]NVStorageDeleteData [10:02:27]Write to MH i2c: 01 00 00 7F 2C AB [10:02:27]Write i2c OK [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: 01 [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: 01 07 00 [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: 01 07 00 7F 2C 00 00 00 00 00 CA 0C 88 [10:02:27]RasterBufferAndPrint [10:02:27]line [10:02:27]line [10:02:27]line [10:02:27]line [10:02:27]line [10:02:27]written 0, free lines is 3279 [10:02:27]MH_Cut [10:02:27]Write to MH i2c: D1 01 00 86 2C 01 84 [10:02:27]Write i2c OK [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: D1 [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: D1 01 00 [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: D1 01 00 86 2C 00 83 [10:02:27]Write to MH i2c: 01 00 00 87 2C B3 [10:02:27]Write i2c OK [10:02:27]MH_I2C_Read... [10:02:27]OFD Sender: No OFD packet to send [10:02:28]*** Cut start [10:02:28]*** Partial cut [10:02:28]*** CUTSNS_PIN = 1 [10:02:28]*** CUTSNS_PIN = 0 [10:02:28]*** Brake cut motor [10:02:28]Read from MH i2c: 01 [10:02:28]MH_I2C_Read... [10:02:28]*** Stop cut motor [10:02:28]*** Cut end [10:02:28]Read from MH i2c: 01 07 00 [10:02:28]MH_I2C_Read... [10:02:28]Read from MH i2c: 01 07 00 87 2C 00 00 00 00 00 FF 0F C8 [10:02:28]process_action close_receipt done [10:02:28]requested_data is exist [10:02:28]produce_requested_data [10:02:28]requested_item fm.sn is exist - process it [10:02:28]wFMCommunicate request_size=4 [10:02:28]MH_SAM_APDU [10:02:28]CAPDU: 80 11 00 00 [10:02:28]Write to MH i2c: E2 08 00 88 2C 80 11 00 00 00 00 00 00 2E [10:02:28]Write i2c OK [10:02:28]MH_I2C_Read... [10:02:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:28]Read from MH i2c: E2 [10:02:28]MH_I2C_Read... [10:02:28]Read from MH i2c: E2 17 00 [10:02:28]MH_I2C_Read... [10:02:28]Read from MH i2c: E2 17 00 88 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7D [10:02:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:02:28]wFMCommunicate OK [10:02:28]requested_item fd.num is exist - process it [10:02:28]SAM_PROTO_GetFieldsCounters [10:02:28]wFMCommunicate request_size=4 [10:02:28]MH_SAM_APDU [10:02:28]CAPDU: 80 13 00 00 [10:02:28]Write to MH i2c: E2 08 00 89 2C 80 13 00 00 00 00 00 00 31 [10:02:28]Write i2c OK [10:02:28]MH_I2C_Read... [10:02:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:28]Read from MH i2c: E2 [10:02:28]MH_I2C_Read... [10:02:28]Read from MH i2c: E2 62 00 [10:02:28]MH_I2C_Read... [10:02:29]Read from MH i2c: E2 62 00 89 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C3 70 00 00 0E 04 04 00 73 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 F3 [10:02: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C3 70 00 00 0E 04 04 00 73 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:02:29]wFMCommunicate OK [10:02:29]SAM_PROTO_GetFieldsCounters done [10:02:29]requested_item shift.num is exist - process it [10:02:29]requested_item shift.opened is exist - process it [10:02:29]req_shift_opened [10:02:29]FM_GetShiftState [10:02:29]SAM_PROTO_GetShiftState [10:02:29]wFMCommunicate request_size=4 [10:02:29]MH_SAM_APDU [10:02:29]CAPDU: 80 13 01 00 [10:02:29]Write to MH i2c: E2 08 00 8A 2C 80 13 01 00 00 00 00 00 33 [10:02:29]Write i2c OK [10:02:29]MH_I2C_Read... [10:02:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:29]Read from MH i2c: E2 [10:02:29]MH_I2C_Read... [10:02:29]Read from MH i2c: E2 0E 00 [10:02:29]MH_I2C_Read... [10:02:29]Read from MH i2c: E2 0E 00 8A 2C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 4C [10:02:29]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:02:29]wFMCommunicate OK [10:02:29]SAM_PROTO_GetShiftState done [10:02:29]FM_GetShiftState done [10:02:29]req_shift_opened done [10:02:29]requested_item shift.open_date is exist - process it [10:02:29]req_shift_open_date [10:02:29]req_shift_open_date done [10:02:29]produce_requested_data done [10:02:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28867,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [10:02:29]process_action_free close_receipt [10:02:29]json_value_free [10:02:29]json_value_free done [10:02:29]process_json_proto returns [10:02:29]Send response to host [10:02:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28867,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [10:02:29]free response buf [10:02:29]execute_script done [10:02:29]execute_script returns [10:02:29]free content buf [10:02:29]Sock 7.Close socket [10:02:29]Sock 7.Thread stoped [10:02:29]accept exits with 9 [10:02:29]New connection [10:02:29]New thread 3066928484 created [10:02:29]Thread 3066785124 joined [10:02:29]Waiting for new connection... [10:02:29] Sock 9.Parse request [10:02:29]Sock 9.Check first char [10:02:29]Sock 9.First char is OK [10:02:29]request: POST /json_proto HTTP/1.0 [10:02:29]Method: POST [10:02:29]URL: /json_proto [10:02:29]Method is POST - this is cgi request [10:02:29]url: /json_proto [10:02:29]query_string will be loaded in cgi processing [10:02:29]execute_cgi json_proto POST (null) [10:02:29]execute_cgi path=json_proto method=POST [10:02:29]POST find Content-Length [10:02:29]Host: 172.17.33.3:8080 [10:02:29]Content-Length: 682 [10:02:29]Content-Type: application/json [10:02:29] [10:02:29]POST finish read [10:02:29]Found Content-Length = 682 [10:02:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347218", "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" : 64.30, "quantity" : 15.560, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:29]execute_script... [10:02: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)347218", "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" : 64.30, "quantity" : 15.560, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:29]POST & json_proto [10:02:29]process_json_proto [10:02:29]json parsed OK: [10:02:29]protocol is kg_v1.0 [10:02:29]action value=close_receipt [10:02:29]process_action close_receipt [10:02:29]cmd_close_receipt [10:02:29]MH_GetDate [10:02:29]Write to MH i2c: F0 00 00 8B 2C A6 [10:02:29]Write i2c OK [10:02:29]MH_I2C_Read... [10:02:29]Read from MH i2c: F0 [10:02:29]MH_I2C_Read... [10:02:29]Read from MH i2c: F0 09 00 [10:02:29]MH_I2C_Read... [10:02:29]Read from MH i2c: F0 09 00 8B 2C 00 39 58 1A 66 23 5B 8F 65 32 [10:02:29]GetLastDocTimeStamp 1713002549 [10:02:29]current date 1713002553 [10:02:29]FM_GetShiftState [10:02:29]SAM_PROTO_GetShiftState [10:02:29]wFMCommunicate request_size=4 [10:02:29]MH_SAM_APDU [10:02:29]CAPDU: 80 13 01 00 [10:02:29]Write to MH i2c: E2 08 00 8C 2C 80 13 01 00 00 00 00 00 35 [10:02:29]Write i2c OK [10:02:29]MH_I2C_Read... [10:02:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:29]Read from MH i2c: E2 [10:02:29]MH_I2C_Read... [10:02:29]Read from MH i2c: E2 0E 00 [10:02:29]MH_I2C_Read... [10:02:29]Read from MH i2c: E2 0E 00 8C 2C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 4E [10:02:29]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:02:29]wFMCommunicate OK [10:02:29]SAM_PROTO_GetShiftState done [10:02:29]FM_GetShiftState done [10:02:29]opened in 1712967615 [10:02:29]opened+sec_in_day 1713054015 [10:02:29]quantity*price = 100050 [10:02:29]sum+1 = 100052 [10:02:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 75 13.04.2024 10:02 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28868 ФПД: 64260412126380 1/tax-web-control/client/api/v1/ticket?date=20240413T100233&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28868&fm=64260412126380&tin=02508201610067®Number=0000138879044617&sum=100000 [10:02:30]StoreToDocumentArchive [10:02:30]shift 115 fd 28868 [10:02:30]save to /storage/0115/doc_00028868 [10:02:30]save last doc name /storage/0115/doc_00028868 to /storage/kkm_last_doc_name [10:02:30]save OK [10:02:30]Clear old archive folders... [10:02:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:30]tlvbuf is 011A2130 [10:02:30]SAM_PROTO_ClearQueue [10:02:30]wFMCommunicate request_size=4 [10:02:30]MH_SAM_APDU [10:02:30]CAPDU: 80 09 00 00 [10:02:30]Write to MH i2c: E2 08 00 99 2C 80 09 00 00 00 00 00 00 37 [10:02:30]Write i2c OK [10:02:30]MH_I2C_Read... [10:02:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:30]Read from MH i2c: E2 [10:02:30]MH_I2C_Read... [10:02:30]Read from MH i2c: E2 03 00 [10:02:30]MH_I2C_Read... [10:02:30]Read from MH i2c: E2 03 00 99 2C 00 90 00 39 [10:02:30]RAPDU: 90 00 [10:02:30]wFMCommunicate OK [10:02:30]SAM_PROTO_ClearQueue done [10:02:30]KKMCreateOFDPacket [10:02:30]OFDProtocolAddRootSTLVToBuf [10:02:30]FM_MakeSignedData [10:02:30]FM_MakeSignedData [10:02:30]SAM_PROTO_SignData [10:02:30]wFMCommunicate request_size=4 [10:02:30]MH_SAM_APDU [10:02:30]CAPDU: 80 0D 01 02 [10:02:30]Write to MH i2c: E2 08 00 9A 2C 80 0D 01 02 00 00 00 00 3F [10:02:30]Write i2c OK [10:02:30]MH_I2C_Read... [10:02:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:31]Read from MH i2c: E2 [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: E2 03 00 [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: E2 03 00 9A 2C 00 90 00 3A [10:02:31]RAPDU: 90 00 [10:02:31]wFMCommunicate OK [10:02:31]wFMCommunicate request_size=255 [10:02:31]MH_SAM_APDU [10:02: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 4B 00 00 00 F4 03 04 00 39 58 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C4 70 00 00 35 04 06 00 3A [10:02:31]Write to MH i2c: E2 02 01 9B 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 4B 00 00 00 F4 03 04 00 39 58 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C4 70 00 00 35 04 06 00 3A 00 00 A8 [10:02:31]Write i2c OK [10:02:31]MH_I2C_Read... [10:02:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:31]Read from MH i2c: E2 [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: E2 03 00 [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: E2 03 00 9B 2C 00 90 00 3B [10:02:31]RAPDU: 90 00 [10:02:31]wFMCommunicate OK [10:02:31]wFMCommunicate request_size=10 [10:02:31]MH_SAM_APDU [10:02:31]CAPDU: 80 0D 02 02 05 71 CB 09 B4 AC [10:02:31]Write to MH i2c: E2 0D 00 9C 2C 80 0D 02 02 05 00 71 CB 09 B4 AC 00 00 F1 [10:02:31]Write i2c OK [10:02:31]MH_I2C_Read... [10:02:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:31]Read from MH i2c: E2 [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: E2 03 00 [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: E2 03 00 9C 2C 00 90 00 3C [10:02:31]RAPDU: 90 00 [10:02:31]wFMCommunicate OK [10:02:31]wFMCommunicate request_size=4 [10:02:31]MH_SAM_APDU [10:02:31]CAPDU: 80 0D 03 02 [10:02:31]Write to MH i2c: E2 08 00 9D 2C 80 0D 03 02 00 00 00 00 44 [10:02:31]Write i2c OK [10:02:31]MH_I2C_Read... [10:02:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:31]Read from MH i2c: E2 [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: E2 0B 00 [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: E2 0B 00 9D 2C 00 54 60 51 E3 25 0E 0B 13 90 00 7E [10:02:31]RAPDU: 54 60 51 E3 25 0E 0B 13 90 00 [10:02:31]wFMCommunicate OK [10:02:31]SAM_PROTO_SignData done [10:02:31]FM_MakeSignedData done [10:02:31]CreateOFDProtocolMessage [10:02:31]wFMCommunicate request_size=4 [10:02:31]MH_SAM_APDU [10:02:31]CAPDU: 80 11 00 00 [10:02:31]Write to MH i2c: E2 08 00 9E 2C 80 11 00 00 00 00 00 00 44 [10:02:31]Write i2c OK [10:02:31]MH_I2C_Read... [10:02:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:31]Read from MH i2c: E2 [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: E2 17 00 [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: E2 17 00 9E 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 93 [10:02:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:02:31]wFMCommunicate OK [10:02:31]CreateOFDProtocolMessage done [10:02:31]OFDSenderStorePacket 28868 [10:02:31]StoreOFDPacket docnum=28868 [10:02:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9F 2E 07 01 E9 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 4B 00 00 00 F4 03 04 00 39 58 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C4 70 00 00 35 04 06 00 3A 71 CB 09 B4 AC 54 60 51 E3 25 0E 0B 13 [10:02:31]CheckFolder [10:02:31]dirname=/storage/ofd_packets [10:02:31]CheckFolder done [10:02:31]ProducePacketName [10:02:31]name=ofd_packets/00028868 [10:02:31]NVStorageSaveData ofd_packets/00028868 [10:02:31]File name is /storage/ofd_packets/00028868 [10:02:31]Write 301 bytes [10:02:31]NVStorageSaveData done [10:02:31]OFDSenderStorePacket done [10:02:31]KKMCreateOFDPacket done [10:02:31]NVStorageSaveData kkm_last_timestamp [10:02:31]File name is /storage/kkm_last_timestamp [10:02:31]Write 4 bytes [10:02:31]NVStorageSaveData done [10:02:31]ExternCall_PrintAddStr [10:02:31]wPrintStart [10:02:31]Write to MH i2c: 01 00 00 9F 2C CB [10:02:31]Write i2c OK [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: 01 [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: 01 07 00 [10:02:31]MH_I2C_Read... [10:02:31]Read from MH i2c: 01 07 00 9F 2C 00 00 00 00 00 FF 0F E0 [10:02:31]RasterBufferAndPrint [10:02:31]line Счет N : (1)347218 [10:02:31]line ИНН: 02508201610067 [10:02:31]line Контрольно-Кассовый Чек [10:02:31]line ПРОДАЖА [10:02:31]line ТРК (МРК, ГНК) : 32 [10:02:31]line Товар: 2710124130 [10:02:31]line Аи-92-К-5 [10:02:31]line 15.560 * 64.30 [10:02:31]line = 1000.51 [10:02:31]line НДС 12% НСП 1% [10:02:31]line > о реализуемом товаре [10:02:31]line ОКРУГЛЕНИЕ: -0.51 [10:02:31]line ИТОГО: 1000.00 [10:02:31]line Внесено: 1000.00 [10:02:31]line СДАЧА: 0.00 [10:02:31]line НСП 1% : 8.85 [10:02:31]line НДС 12% : 106.25 [10:02:31]line Наличными: 1000.00 [10:02:31]line Безнал.: 0.00 [10:02:31]line Место: АЗС № 108 "Партнер Нефть" [10:02:31]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:02:31]line СНО: Общий режим [10:02:31]line Чек 75 13.04.2024 10:02 [10:02:31]line Смена: 115 ФФД: 1.0 [10:02:31]line ЗНМ: 0300000027 [10:02:31]line РНМ: 0000138879044617 [10:02:31]line Версия ККМ: 001 [10:02:31]line ФМ: 0000000000963154 [10:02:31]line ФД: 28868 [10:02:31]line ФПД: 64260412126380 [10:02:31]line 1/tax-web-control/client/api/v1/ticket?date=20240413T100233&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28868&fm=64260412126380&tin=02508201610067®Number=0000138879044617&sum=100000 [10:02:31]written 0, free lines is 4095 [10:02:31]OFD Sender: Processing packet 28868 [packets to send 8, broken 7] [10:02:31]ProducePacketName [10:02:31]name=ofd_packets/00028868 [10:02:31]OFD Sender: To server: pG, [10:02:31]CommunicateWithHost lk.salyk.kg:30040 [10:02:31]ConnectInit lk.salyk.kg [10:02:32]Connected sock=10 [10:02: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 31 35 34 0F 01 00 00 9F 2E 07 01 E9 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 4B 00 00 00 F4 03 04 00 39 58 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C4 70 00 00 35 04 06 00 3A 71 CB 09 B4 AC 54 60 51 E3 25 0E 0B 13 [10:02:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 56 AF 47 00 30 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 31 35 34 10 04 04 00 C4 70 00 00 F4 03 04 00 E1 02 1A 66 B6 04 01 00 00 49 6F 45 70 98 93 E5 A9 [10:02:32]CommunicateWithHost err = 0 [10:02:32]CheckOFDResponse [10:02:32]1017 (14) - 77093643461234 [10:02:32]1041 (16) - 0000000000963154 [10:02:32]1040 (4) - 28868 [10:02:32]1012 (4) - 13.04.2024 03:58 [10:02:32]1206 (1) - 0 [10:02:32]OFD Sender: Remove packet 28868 [10:02:32]ProducePacketName [10:02:32]name=ofd_packets/00028868 [10:02:32]NVStorageDeleteData [10:02:32]Write to MH i2c: 01 00 00 C9 2C F5 [10:02:32]Write i2c OK [10:02:32]MH_I2C_Read... [10:02:32]Read from MH i2c: 01 [10:02:32]MH_I2C_Read... [10:02:32]Read from MH i2c: 01 07 00 [10:02:32]MH_I2C_Read... [10:02:32]Read from MH i2c: 01 07 00 C9 2C 00 00 00 00 00 DD 0C E5 [10:02:32]RasterBufferAndPrint [10:02:32]line [10:02:32]line [10:02:32]line [10:02:32]line [10:02:32]line [10:02:32]written 0, free lines is 3305 [10:02:32]MH_Cut [10:02:32]Write to MH i2c: D1 01 00 D0 2C 01 CE [10:02:32]Write i2c OK [10:02:32]MH_I2C_Read... [10:02:32]Read from MH i2c: D1 [10:02:32]MH_I2C_Read... [10:02:32]Read from MH i2c: D1 01 00 [10:02:32]MH_I2C_Read... [10:02:32]Read from MH i2c: D1 01 00 D0 2C 00 CD [10:02:32]Write to MH i2c: 01 00 00 D1 2C FD [10:02:32]Write i2c OK [10:02:32]MH_I2C_Read... [10:02:32]OFD Sender: No OFD packet to send [10:02:33]*** Cut start [10:02:33]*** Partial cut [10:02:33]*** CUTSNS_PIN = 1 [10:02:33]*** CUTSNS_PIN = 0 [10:02:33]*** Brake cut motor [10:02:33]Read from MH i2c: 01 [10:02:33]MH_I2C_Read... [10:02:33]*** Stop cut motor [10:02:33]*** Cut end [10:02:33]Read from MH i2c: 01 07 00 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: 01 07 00 D1 2C 00 00 00 00 00 FF 0F 12 [10:02:33]process_action close_receipt done [10:02:33]requested_data is exist [10:02:33]produce_requested_data [10:02:33]requested_item fm.sn is exist - process it [10:02:33]wFMCommunicate request_size=4 [10:02:33]MH_SAM_APDU [10:02:33]CAPDU: 80 11 00 00 [10:02:33]Write to MH i2c: E2 08 00 D2 2C 80 11 00 00 00 00 00 00 78 [10:02:33]Write i2c OK [10:02:33]MH_I2C_Read... [10:02:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:33]Read from MH i2c: E2 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: E2 17 00 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: E2 17 00 D2 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C7 [10:02:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:02:33]wFMCommunicate OK [10:02:33]requested_item fd.num is exist - process it [10:02:33]SAM_PROTO_GetFieldsCounters [10:02:33]wFMCommunicate request_size=4 [10:02:33]MH_SAM_APDU [10:02:33]CAPDU: 80 13 00 00 [10:02:33]Write to MH i2c: E2 08 00 D3 2C 80 13 00 00 00 00 00 00 7B [10:02:33]Write i2c OK [10:02:33]MH_I2C_Read... [10:02:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:33]Read from MH i2c: E2 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: E2 62 00 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: E2 62 00 D3 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C4 70 00 00 0E 04 04 00 73 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 41 [10:02: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C4 70 00 00 0E 04 04 00 73 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:02:33]wFMCommunicate OK [10:02:33]SAM_PROTO_GetFieldsCounters done [10:02:33]requested_item shift.num is exist - process it [10:02:33]requested_item shift.opened is exist - process it [10:02:33]req_shift_opened [10:02:33]FM_GetShiftState [10:02:33]SAM_PROTO_GetShiftState [10:02:33]wFMCommunicate request_size=4 [10:02:33]MH_SAM_APDU [10:02:33]CAPDU: 80 13 01 00 [10:02:33]Write to MH i2c: E2 08 00 D4 2C 80 13 01 00 00 00 00 00 7D [10:02:33]Write i2c OK [10:02:33]MH_I2C_Read... [10:02:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:34]Read from MH i2c: E2 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: E2 0E 00 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: E2 0E 00 D4 2C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 96 [10:02:34]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:02:34]wFMCommunicate OK [10:02:34]SAM_PROTO_GetShiftState done [10:02:34]FM_GetShiftState done [10:02:34]req_shift_opened done [10:02:34]requested_item shift.open_date is exist - process it [10:02:34]req_shift_open_date [10:02:34]req_shift_open_date done [10:02:34]produce_requested_data done [10:02:34]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28868,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [10:02:34]process_action_free close_receipt [10:02:34]json_value_free [10:02:34]json_value_free done [10:02:34]process_json_proto returns [10:02:34]Send response to host [10:02:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28868,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [10:02:34]free response buf [10:02:34]execute_script done [10:02:34]execute_script returns [10:02:34]free content buf [10:02:34]Sock 9.Close socket [10:02:34]Sock 9.Thread stoped [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]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:09]accept exits with 7 [10:04:09]New connection [10:04:09]New thread 3066785124 created [10:04:09]Thread 3066928484 joined [10:04:09]Waiting for new connection... [10:04:09] Sock 7.Parse request [10:04:09]Sock 7.Check first char [10:04:09]Sock 7.First char is OK [10:04:09]request: POST /json_proto HTTP/1.0 [10:04:09]Method: POST [10:04:09]URL: /json_proto [10:04:09]Method is POST - this is cgi request [10:04:09]url: /json_proto [10:04:09]query_string will be loaded in cgi processing [10:04:09]execute_cgi json_proto POST (null) [10:04:09]execute_cgi path=json_proto method=POST [10:04:09]POST find Content-Length [10:04:09]Host: 172.17.33.3:8080 [10:04:09]Content-Length: 679 [10:04:09]Content-Type: application/json [10:04:09] [10:04:09]POST finish read [10:04:09]Found Content-Length = 679 [10:04:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 20.720, "sum" : 1500.13, "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:04:09]execute_script... [10:04:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 20.720, "sum" : 1500.13, "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:04:09]POST & json_proto [10:04:09]process_json_proto [10:04:09]json parsed OK: [10:04:09]protocol is kg_v1.0 [10:04:09]action value=close_receipt [10:04:09]process_action close_receipt [10:04:09]cmd_close_receipt [10:04:09]MH_GetDate [10:04:09]Write to MH i2c: F0 00 00 D5 2C F0 [10:04:09]Write i2c OK [10:04:09]MH_I2C_Read... [10:04:09]Read from MH i2c: F0 [10:04:09]MH_I2C_Read... [10:04:09]Read from MH i2c: F0 09 00 [10:04:09]MH_I2C_Read... [10:04:09]Read from MH i2c: F0 09 00 D5 2C 00 9D 58 1A 66 23 5B 8F 65 E0 [10:04:09]GetLastDocTimeStamp 1713002553 [10:04:09]current date 1713002653 [10:04:09]FM_GetShiftState [10:04:09]SAM_PROTO_GetShiftState [10:04:09]wFMCommunicate request_size=4 [10:04:09]MH_SAM_APDU [10:04:09]CAPDU: 80 13 01 00 [10:04:09]Write to MH i2c: E2 08 00 D6 2C 80 13 01 00 00 00 00 00 7F [10:04:09]Write i2c OK [10:04:09]MH_I2C_Read... [10:04:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:09]Read from MH i2c: E2 [10:04:09]MH_I2C_Read... [10:04:09]Read from MH i2c: E2 0E 00 [10:04:09]MH_I2C_Read... [10:04:09]Read from MH i2c: E2 0E 00 D6 2C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 98 [10:04:09]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:04:09]wFMCommunicate OK [10:04:09]SAM_PROTO_GetShiftState done [10:04:09]FM_GetShiftState done [10:04:09]opened in 1712967615 [10:04:09]opened+sec_in_day 1713054015 [10:04:09]quantity*price = 150012 [10:04:09]sum+1 = 150014 [10:04:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.31 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 76 13.04.2024 10:04 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28869 ФПД: 165060494127577 1/tax-web-control/client/api/v1/ticket?date=20240413T100413&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28869&fm=165060494127577&tin=02508201610067®Number=0000138879044617&sum=150000 [10:04:10]StoreToDocumentArchive [10:04:10]shift 115 fd 28869 [10:04:10]save to /storage/0115/doc_00028869 [10:04:10]save last doc name /storage/0115/doc_00028869 to /storage/kkm_last_doc_name [10:04:10]save OK [10:04:10]Clear old archive folders... [10:04:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:04:10]tlvbuf is 01220080 [10:04:10]SAM_PROTO_ClearQueue [10:04:10]wFMCommunicate request_size=4 [10:04:10]MH_SAM_APDU [10:04:10]CAPDU: 80 09 00 00 [10:04:10]Write to MH i2c: E2 08 00 E3 2C 80 09 00 00 00 00 00 00 81 [10:04:10]Write i2c OK [10:04:10]MH_I2C_Read... [10:04:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:10]Read from MH i2c: E2 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 03 00 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 03 00 E3 2C 00 90 00 83 [10:04:10]RAPDU: 90 00 [10:04:10]wFMCommunicate OK [10:04:10]SAM_PROTO_ClearQueue done [10:04:10]KKMCreateOFDPacket [10:04:10]OFDProtocolAddRootSTLVToBuf [10:04:10]FM_MakeSignedData [10:04:10]FM_MakeSignedData [10:04:10]SAM_PROTO_SignData [10:04:10]wFMCommunicate request_size=4 [10:04:10]MH_SAM_APDU [10:04:10]CAPDU: 80 0D 01 02 [10:04:10]Write to MH i2c: E2 08 00 E4 2C 80 0D 01 02 00 00 00 00 89 [10:04:10]Write i2c OK [10:04:10]MH_I2C_Read... [10:04:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:10]Read from MH i2c: E2 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 03 00 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 03 00 E4 2C 00 90 00 84 [10:04:10]RAPDU: 90 00 [10:04:10]wFMCommunicate OK [10:04:10]wFMCommunicate request_size=255 [10:04:10]MH_SAM_APDU [10:04: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 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 9D 58 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C5 70 00 00 35 04 06 00 96 1F 24 1E [10:04:10]Write to MH i2c: E2 02 01 E5 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 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 9D 58 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C5 70 00 00 35 04 06 00 96 1F 24 1E 00 00 72 [10:04:10]Write i2c OK [10:04:10]MH_I2C_Read... [10:04:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:10]Read from MH i2c: E2 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 03 00 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 03 00 E5 2C 00 90 00 85 [10:04:10]RAPDU: 90 00 [10:04:10]wFMCommunicate OK [10:04:10]wFMCommunicate request_size=7 [10:04:10]MH_SAM_APDU [10:04:10]CAPDU: 80 0D 02 02 02 71 D9 [10:04:10]Write to MH i2c: E2 0A 00 E6 2C 80 0D 02 02 02 00 71 D9 00 00 DA [10:04:10]Write i2c OK [10:04:10]MH_I2C_Read... [10:04:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:10]Read from MH i2c: E2 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 03 00 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 03 00 E6 2C 00 90 00 86 [10:04:10]RAPDU: 90 00 [10:04:10]wFMCommunicate OK [10:04:10]wFMCommunicate request_size=4 [10:04:10]MH_SAM_APDU [10:04:10]CAPDU: 80 0D 03 02 [10:04:10]Write to MH i2c: E2 08 00 E7 2C 80 0D 03 02 00 00 00 00 8E [10:04:10]Write i2c OK [10:04:10]MH_I2C_Read... [10:04:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:10]Read from MH i2c: E2 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 0B 00 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 0B 00 E7 2C 00 DC 21 0A CD BA 8D 84 FB 90 00 29 [10:04:10]RAPDU: DC 21 0A CD BA 8D 84 FB 90 00 [10:04:10]wFMCommunicate OK [10:04:10]SAM_PROTO_SignData done [10:04:10]FM_MakeSignedData done [10:04:10]CreateOFDProtocolMessage [10:04:10]wFMCommunicate request_size=4 [10:04:10]MH_SAM_APDU [10:04:10]CAPDU: 80 11 00 00 [10:04:10]Write to MH i2c: E2 08 00 E8 2C 80 11 00 00 00 00 00 00 8E [10:04:10]Write i2c OK [10:04:10]MH_I2C_Read... [10:04:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:10]Read from MH i2c: E2 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 17 00 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: E2 17 00 E8 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DD [10:04:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:04:10]wFMCommunicate OK [10:04:10]CreateOFDProtocolMessage done [10:04:10]OFDSenderStorePacket 28869 [10:04:10]StoreOFDPacket docnum=28869 [10:04:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 2E D7 04 01 A3 F7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 9D 58 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C5 70 00 00 35 04 06 00 96 1F 24 1E 71 D9 DC 21 0A CD BA 8D 84 FB [10:04:10]CheckFolder [10:04:10]dirname=/storage/ofd_packets [10:04:10]CheckFolder done [10:04:10]ProducePacketName [10:04:10]name=ofd_packets/00028869 [10:04:10]NVStorageSaveData ofd_packets/00028869 [10:04:10]File name is /storage/ofd_packets/00028869 [10:04:10]Write 298 bytes [10:04:10]NVStorageSaveData done [10:04:10]OFDSenderStorePacket done [10:04:10]KKMCreateOFDPacket done [10:04:10]NVStorageSaveData kkm_last_timestamp [10:04:10]File name is /storage/kkm_last_timestamp [10:04:10]Write 4 bytes [10:04:10]NVStorageSaveData done [10:04:10]ExternCall_PrintAddStr [10:04:10]wPrintStart [10:04:10]Write to MH i2c: 01 00 00 E9 2C 15 [10:04:10]Write i2c OK [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: 01 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: 01 07 00 [10:04:10]MH_I2C_Read... [10:04:10]Read from MH i2c: 01 07 00 E9 2C 00 00 00 00 00 FF 0F 2A [10:04:10]RasterBufferAndPrint [10:04:10]line Счет N : (1)347221 [10:04:10]line ИНН: 02508201610067 [10:04:10]line Контрольно-Кассовый Чек [10:04:10]line ПРОДАЖА [10:04:10]line ТРК (МРК, ГНК) : 21 [10:04:10]line Товар: 2710194210 [10:04:10]line ДТ-К-5 [10:04:10]line 20.720 * 72.40 [10:04:10]line = 1500.13 [10:04:10]line НДС 12% НСП 1% [10:04:10]line > о реализуемом товаре [10:04:10]line ОКРУГЛЕНИЕ: -0.13 [10:04:10]line ИТОГО: 1500.00 [10:04:10]line Внесено: 1500.00 [10:04:10]line СДАЧА: 0.00 [10:04:10]line НСП 1% : 13.27 [10:04:10]line НДС 12% : 159.31 [10:04:10]line Наличными: 1500.00 [10:04:10]line Безнал.: 0.00 [10:04:10]line Место: АЗС № 108 "Партнер Нефть" [10:04:10]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:04:10]line СНО: Общий режим [10:04:10]line Чек 76 13.04.2024 10:04 [10:04:10]line Смена: 115 ФФД: 1.0 [10:04:10]line ЗНМ: 0300000027 [10:04:10]line РНМ: 0000138879044617 [10:04:10]line Версия ККМ: 001 [10:04:10]line ФМ: 0000000000963154 [10:04:10]line ФД: 28869 [10:04:10]line ФПД: 165060494127577 [10:04:11]line 1/tax-web-control/client/api/v1/ticket?date=20240413T100413&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28869&fm=165060494127577&tin=02508201610067®Number=0000138879044617&sum=150000 [10:04:11]OFD Sender: Processing packet 28869 [packets to send 8, broken 7] [10:04:11]ProducePacketName [10:04:11]name=ofd_packets/00028869 [10:04:11]OFD Sender: To server: pG, [10:04:11]CommunicateWithHost lk.salyk.kg:30040 [10:04:11]ConnectInit lk.salyk.kg [10:04:11]written 0, free lines is 4095 [10:04:11]Connected sock=10 [10:04:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 2E D7 04 01 A3 F7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 9D 58 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C5 70 00 00 35 04 06 00 96 1F 24 1E 71 D9 DC 21 0A CD BA 8D 84 FB [10:04:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 BE 50 47 00 AA C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C5 70 00 00 F4 03 04 00 44 03 1A 66 B6 04 01 00 00 3C 8F 12 B7 19 62 D7 5D [10:04:11]CommunicateWithHost err = 0 [10:04:11]CheckOFDResponse [10:04:11]1017 (14) - 77093643461234 [10:04:11]1041 (16) - 0000000000963154 [10:04:11]1040 (4) - 28869 [10:04:11]1012 (4) - 13.04.2024 04:00 [10:04:11]1206 (1) - 0 [10:04:11]OFD Sender: Remove packet 28869 [10:04:11]ProducePacketName [10:04:11]name=ofd_packets/00028869 [10:04:11]NVStorageDeleteData [10:04:11]Write to MH i2c: 01 00 00 13 2D 40 [10:04:11]Write i2c OK [10:04:11]MH_I2C_Read... [10:04:11]Read from MH i2c: 01 [10:04:11]MH_I2C_Read... [10:04:11]Read from MH i2c: 01 07 00 [10:04:11]MH_I2C_Read... [10:04:11]Read from MH i2c: 01 07 00 13 2D 00 00 00 00 00 C9 0C 1C [10:04:11]RasterBufferAndPrint [10:04:11]line [10:04:11]line [10:04:11]line [10:04:11]line [10:04:11]line [10:04:11]written 0, free lines is 3277 [10:04:11]MH_Cut [10:04:11]Write to MH i2c: D1 01 00 1A 2D 01 19 [10:04:11]Write i2c OK [10:04:11]MH_I2C_Read... [10:04:11]Read from MH i2c: D1 [10:04:11]MH_I2C_Read... [10:04:11]Read from MH i2c: D1 01 00 [10:04:11]MH_I2C_Read... [10:04:11]Read from MH i2c: D1 01 00 1A 2D 00 18 [10:04:11]Write to MH i2c: 01 00 00 1B 2D 48 [10:04:11]Write i2c OK [10:04:11]MH_I2C_Read... [10:04:12]OFD Sender: No OFD packet to send [10:04:12]*** Cut start [10:04:12]*** Partial cut [10:04:12]*** CUTSNS_PIN = 1 [10:04:12]*** CUTSNS_PIN = 0 [10:04:12]*** Brake cut motor [10:04:13]Read from MH i2c: 01 [10:04:13]MH_I2C_Read... [10:04:13]*** Stop cut motor [10:04:13]*** Cut end [10:04:13]Read from MH i2c: 01 07 00 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: 01 07 00 1B 2D 00 00 00 00 00 FF 0F 5D [10:04:13]process_action close_receipt done [10:04:13]requested_data is exist [10:04:13]produce_requested_data [10:04:13]requested_item fm.sn is exist - process it [10:04:13]wFMCommunicate request_size=4 [10:04:13]MH_SAM_APDU [10:04:13]CAPDU: 80 11 00 00 [10:04:13]Write to MH i2c: E2 08 00 1C 2D 80 11 00 00 00 00 00 00 C3 [10:04:13]Write i2c OK [10:04:13]MH_I2C_Read... [10:04:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:13]Read from MH i2c: E2 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: E2 17 00 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: E2 17 00 1C 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 12 [10:04:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:04:13]wFMCommunicate OK [10:04:13]requested_item fd.num is exist - process it [10:04:13]SAM_PROTO_GetFieldsCounters [10:04:13]wFMCommunicate request_size=4 [10:04:13]MH_SAM_APDU [10:04:13]CAPDU: 80 13 00 00 [10:04:13]Write to MH i2c: E2 08 00 1D 2D 80 13 00 00 00 00 00 00 C6 [10:04:13]Write i2c OK [10:04:13]MH_I2C_Read... [10:04:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:13]Read from MH i2c: E2 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: E2 62 00 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: E2 62 00 1D 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C5 70 00 00 0E 04 04 00 73 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 90 [10:04:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C5 70 00 00 0E 04 04 00 73 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:04:13]wFMCommunicate OK [10:04:13]SAM_PROTO_GetFieldsCounters done [10:04:13]requested_item shift.num is exist - process it [10:04:13]requested_item shift.opened is exist - process it [10:04:13]req_shift_opened [10:04:13]FM_GetShiftState [10:04:13]SAM_PROTO_GetShiftState [10:04:13]wFMCommunicate request_size=4 [10:04:13]MH_SAM_APDU [10:04:13]CAPDU: 80 13 01 00 [10:04:13]Write to MH i2c: E2 08 00 1E 2D 80 13 01 00 00 00 00 00 C8 [10:04:13]Write i2c OK [10:04:13]MH_I2C_Read... [10:04:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:13]Read from MH i2c: E2 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: E2 0E 00 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: E2 0E 00 1E 2D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 E1 [10:04:13]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:04:13]wFMCommunicate OK [10:04:13]SAM_PROTO_GetShiftState done [10:04:13]FM_GetShiftState done [10:04:13]req_shift_opened done [10:04:13]requested_item shift.open_date is exist - process it [10:04:13]req_shift_open_date [10:04:13]req_shift_open_date done [10:04:13]produce_requested_data done [10:04:13]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28869,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [10:04:13]process_action_free close_receipt [10:04:13]json_value_free [10:04:13]json_value_free done [10:04:13]process_json_proto returns [10:04:13]Send response to host [10:04:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28869,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [10:04:13]free response buf [10:04:13]execute_script done [10:04:13]execute_script returns [10:04:13]free content buf [10:04:13]Sock 7.Close socket [10:04:13]Sock 7.Thread stoped [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:22]accept exits with 9 [10:04:22]New connection [10:04:22]New thread 3066928484 created [10:04:22]Thread 3066785124 joined [10:04:22]Waiting for new connection... [10:04:22] Sock 9.Parse request [10:04:22]Sock 9.Check first char [10:04:22]Sock 9.First char is OK [10:04:22]request: POST /json_proto HTTP/1.0 [10:04:22]Method: POST [10:04:22]URL: /json_proto [10:04:22]Method is POST - this is cgi request [10:04:22]url: /json_proto [10:04:22]query_string will be loaded in cgi processing [10:04:22]execute_cgi json_proto POST (null) [10:04:22]execute_cgi path=json_proto method=POST [10:04:22]POST find Content-Length [10:04:22]Host: 172.17.33.3:8080 [10:04:22]Content-Length: 1205 [10:04:22]Content-Type: application/json [10:04:22] [10:04:22]POST finish read [10:04:22]Found Content-Length = 1205 [10:04:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347220\u000A13.04.2024 09:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1286.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3876892;3876893\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:22]execute_script... [10:04:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347220\u000A13.04.2024 09:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1286.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3876892;3876893\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:22]POST & json_proto [10:04:22]process_json_proto [10:04:22]json parsed OK: [10:04:22]protocol is kg_v1.0 [10:04:22]action value=print_text [10:04:22]process_action print_text [10:04:22]cmd_print_text [10:04:22]ExternCall_PrintAddStr [10:04:22]wPrintStart [10:04:22]Write to MH i2c: 01 00 00 1F 2D 4C [10:04:22]Write i2c OK [10:04:22]MH_I2C_Read... [10:04:22]Read from MH i2c: 01 [10:04:22]MH_I2C_Read... [10:04:22]Read from MH i2c: 01 07 00 [10:04:22]MH_I2C_Read... [10:04:22]Read from MH i2c: 01 07 00 1F 2D 00 00 00 00 00 FF 0F 61 [10:04:22]RasterBufferAndPrint [10:04:22]line *****ТОВАРНЫЙ ЧЕК***** [10:04:22]line АЗС 108 [10:04:22]line Партнер нефть [10:04:22]line 02508201610067 [10:04:22]line Кассир : Шадыканова Ж. [10:04:22]line Счет N : (1)347220 [10:04:22]line 13.04.2024 09:46 [10:04:22]line ПРОДАЖА [10:04:22]line ТРК (МРК, ГНК): 13 [10:04:22]line Вид ГСМ : 2710124130 [10:04:22]line Аи-92-К-5 [10:04:22]line 20.000 x 64.30 [10:04:22]line ИТОГ: 1286.00 [10:04:22]line Тип оплаты: Талоны: Партнер нефть [10:04:22]line 3876892;3876893 [10:04:22]line ______________________ [10:04:22]line (подпись) [10:04:22]written 0, free lines is 4095 [10:04:23]Write to MH i2c: 01 00 00 34 2D 61 [10:04:23]Write i2c OK [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: 01 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: 01 07 00 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: 01 07 00 34 2D 00 00 00 00 00 FF 0D 74 [10:04:23]RasterBufferAndPrint [10:04:23]line [10:04:23]line [10:04:23]line [10:04:23]line [10:04:23]line [10:04:23]written 0, free lines is 3585 [10:04:23]MH_Cut [10:04:23]Write to MH i2c: D1 01 00 3B 2D 01 3A [10:04:23]Write i2c OK [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: D1 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: D1 01 00 [10:04:23]MH_I2C_Read... [10:04:23]Read from MH i2c: D1 01 00 3B 2D 00 39 [10:04:23]Write to MH i2c: 01 00 00 3C 2D 69 [10:04:23]Write i2c OK [10:04:23]MH_I2C_Read... [10:04:23]*** Cut start [10:04:23]*** Partial cut [10:04:23]*** CUTSNS_PIN = 1 [10:04:23]*** CUTSNS_PIN = 0 [10:04:23]*** Brake cut motor [10:04:24]Read from MH i2c: 01 [10:04:24]MH_I2C_Read... [10:04:24]*** Stop cut motor [10:04:24]*** Cut end [10:04:24]Read from MH i2c: 01 07 00 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: 01 07 00 3C 2D 00 00 00 00 00 FF 0F 7E [10:04:24]process_action print_text done [10:04:24]requested_data is exist [10:04:24]produce_requested_data [10:04:24]requested_item fm.sn is exist - process it [10:04:24]wFMCommunicate request_size=4 [10:04:24]MH_SAM_APDU [10:04:24]CAPDU: 80 11 00 00 [10:04:24]Write to MH i2c: E2 08 00 3D 2D 80 11 00 00 00 00 00 00 E4 [10:04:24]Write i2c OK [10:04:24]MH_I2C_Read... [10:04:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:24]Read from MH i2c: E2 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: E2 17 00 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: E2 17 00 3D 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 33 [10:04:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:04:24]wFMCommunicate OK [10:04:24]requested_item fd.num is exist - process it [10:04:24]SAM_PROTO_GetFieldsCounters [10:04:24]wFMCommunicate request_size=4 [10:04:24]MH_SAM_APDU [10:04:24]CAPDU: 80 13 00 00 [10:04:24]Write to MH i2c: E2 08 00 3E 2D 80 13 00 00 00 00 00 00 E7 [10:04:24]Write i2c OK [10:04:24]MH_I2C_Read... [10:04:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:24]Read from MH i2c: E2 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: E2 62 00 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: E2 62 00 3E 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C5 70 00 00 0E 04 04 00 73 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 B1 [10:04: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C5 70 00 00 0E 04 04 00 73 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:04:24]wFMCommunicate OK [10:04:24]SAM_PROTO_GetFieldsCounters done [10:04:24]requested_item shift.num is exist - process it [10:04:24]requested_item shift.opened is exist - process it [10:04:24]req_shift_opened [10:04:24]FM_GetShiftState [10:04:24]SAM_PROTO_GetShiftState [10:04:24]wFMCommunicate request_size=4 [10:04:24]MH_SAM_APDU [10:04:24]CAPDU: 80 13 01 00 [10:04:24]Write to MH i2c: E2 08 00 3F 2D 80 13 01 00 00 00 00 00 E9 [10:04:24]Write i2c OK [10:04:24]MH_I2C_Read... [10:04:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:24]Read from MH i2c: E2 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: E2 0E 00 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: E2 0E 00 3F 2D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 02 [10:04:24]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:04:24]wFMCommunicate OK [10:04:24]SAM_PROTO_GetShiftState done [10:04:24]FM_GetShiftState done [10:04:24]req_shift_opened done [10:04:24]requested_item shift.open_date is exist - process it [10:04:24]req_shift_open_date [10:04:24]req_shift_open_date done [10:04:24]produce_requested_data done [10:04:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28869,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [10:04:24]process_action_free print_text [10:04:24]json_value_free [10:04:24]json_value_free done [10:04:24]process_json_proto returns [10:04:24]Send response to host [10:04:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28869,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [10:04:24]free response buf [10:04:24]execute_script done [10:04:24]execute_script returns [10:04:24]free content buf [10:04:24]Sock 9.Close socket [10:04:24]Sock 9.Thread stoped [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:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:42]OFD Sender: No OFD packet to send [10:05:47]OFD Sender: No OFD packet to send [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:06:02]OFD Sender: No OFD packet to send [10:06:07]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:17]OFD Sender: No OFD packet to send [10:06:22]OFD Sender: No OFD packet to send [10:06:27]OFD Sender: No OFD packet to send [10:06:32]OFD Sender: No OFD packet to send [10:06:37]OFD Sender: No OFD packet to send [10:06:42]OFD Sender: No OFD packet to send [10:06:47]OFD Sender: No OFD packet to send [10:06:52]OFD Sender: No OFD packet to send [10:06:57]OFD Sender: No OFD packet to send [10:07:02]OFD Sender: No OFD packet to send [10:07:07]OFD Sender: No OFD packet to send [10:07:12]OFD Sender: No OFD packet to send [10:07:17]OFD Sender: No OFD packet to send [10:07:22]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:42]OFD Sender: No OFD packet to send [10:07:47]OFD Sender: No OFD packet to send [10:07:52]OFD Sender: No OFD packet to send [10:07:57]OFD Sender: No OFD packet to send [10:08:02]OFD Sender: No OFD packet to send [10:08:07]OFD Sender: No OFD packet to send [10:08:12]OFD Sender: No OFD packet to send [10:08:17]OFD Sender: No OFD packet to send [10:08:22]OFD Sender: No OFD packet to send [10:08:27]OFD Sender: No OFD packet to send [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [10:08:42]OFD Sender: No OFD packet to send [10:08:47]OFD Sender: No OFD packet to send [10:08:52]OFD Sender: No OFD packet to send [10:08:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:12]OFD Sender: No OFD packet to send [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:42]OFD Sender: No OFD packet to send [10:09:47]OFD Sender: No OFD packet to send [10:09:52]OFD Sender: No OFD packet to send [10:09:57]OFD Sender: No OFD packet to send [10:10:02]OFD Sender: No OFD packet to send [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:22]OFD Sender: No OFD packet to send [10:10:27]OFD Sender: No OFD packet to send [10:10:32]OFD Sender: No OFD packet to send [10:10:37]OFD Sender: No OFD packet to send [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:12]OFD Sender: No OFD packet to send [10:13:17]OFD Sender: No OFD packet to send [10:13:21]accept exits with 7 [10:13:21]New connection [10:13:21]New thread 3066785124 created [10:13:21]Thread 3066928484 joined [10:13:21]Waiting for new connection... [10:13:21] Sock 7.Parse request [10:13:21]Sock 7.Check first char [10:13:21]Sock 7.First char is OK [10:13:21]request: POST /json_proto HTTP/1.0 [10:13:21]Method: POST [10:13:21]URL: /json_proto [10:13:21]Method is POST - this is cgi request [10:13:21]url: /json_proto [10:13:21]query_string will be loaded in cgi processing [10:13:21]execute_cgi json_proto POST (null) [10:13:21]execute_cgi path=json_proto method=POST [10:13:21]POST find Content-Length [10:13:21]Host: 172.17.33.3:8080 [10:13:21]Content-Length: 670 [10:13:21]Content-Type: application/json [10:13:21] [10:13:21]POST finish read [10:13:21]Found Content-Length = 670 [10:13:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:21]execute_script... [10:13: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)347223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:21]POST & json_proto [10:13:21]process_json_proto [10:13:21]json parsed OK: [10:13:21]protocol is kg_v1.0 [10:13:21]action value=close_receipt [10:13:21]process_action close_receipt [10:13:21]cmd_close_receipt [10:13:21]MH_GetDate [10:13:21]Write to MH i2c: F0 00 00 40 2D 5C [10:13:21]Write i2c OK [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: F0 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: F0 09 00 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: F0 09 00 40 2D 00 C5 5A 1A 66 23 5B 8F 65 76 [10:13:21]GetLastDocTimeStamp 1713002653 [10:13:21]current date 1713003205 [10:13:21]FM_GetShiftState [10:13:21]SAM_PROTO_GetShiftState [10:13:21]wFMCommunicate request_size=4 [10:13:21]MH_SAM_APDU [10:13:21]CAPDU: 80 13 01 00 [10:13:21]Write to MH i2c: E2 08 00 41 2D 80 13 01 00 00 00 00 00 EB [10:13:21]Write i2c OK [10:13:21]MH_I2C_Read... [10:13:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:21]Read from MH i2c: E2 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: E2 0E 00 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: E2 0E 00 41 2D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 04 [10:13:21]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:13:21]wFMCommunicate OK [10:13:21]SAM_PROTO_GetShiftState done [10:13:21]FM_GetShiftState done [10:13:21]opened in 1712967615 [10:13:21]opened+sec_in_day 1713054015 [10:13:21]quantity*price = 50019 [10:13:21]sum+1 = 50021 [10:13:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 77 13.04.2024 10:13 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28870 ФПД: 222482520612154 1/tax-web-control/client/api/v1/ticket?date=20240413T101325&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28870&fm=222482520612154&tin=02508201610067®Number=0000138879044617&sum=50000 [10:13:22]StoreToDocumentArchive [10:13:22]shift 115 fd 28870 [10:13:22]save to /storage/0115/doc_00028870 [10:13:22]save last doc name /storage/0115/doc_00028870 to /storage/kkm_last_doc_name [10:13:22]save OK [10:13:22]Clear old archive folders... [10:13:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:13:22]tlvbuf is 0124A9B0 [10:13:22]SAM_PROTO_ClearQueue [10:13:22]wFMCommunicate request_size=4 [10:13:22]MH_SAM_APDU [10:13:22]CAPDU: 80 09 00 00 [10:13:22]Write to MH i2c: E2 08 00 4E 2D 80 09 00 00 00 00 00 00 ED [10:13:22]Write i2c OK [10:13:22]MH_I2C_Read... [10:13:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:22]Read from MH i2c: E2 [10:13:22]MH_I2C_Read... [10:13:22]Read from MH i2c: E2 03 00 [10:13:22]MH_I2C_Read... [10:13:22]Read from MH i2c: E2 03 00 4E 2D 00 90 00 EF [10:13:22]RAPDU: 90 00 [10:13:22]wFMCommunicate OK [10:13:22]SAM_PROTO_ClearQueue done [10:13:22]KKMCreateOFDPacket [10:13:22]OFDProtocolAddRootSTLVToBuf [10:13:22]FM_MakeSignedData [10:13:22]FM_MakeSignedData [10:13:22]SAM_PROTO_SignData [10:13:22]wFMCommunicate request_size=4 [10:13:22]MH_SAM_APDU [10:13:22]CAPDU: 80 0D 01 02 [10:13:22]Write to MH i2c: E2 08 00 4F 2D 80 0D 01 02 00 00 00 00 F5 [10:13:22]Write i2c OK [10:13:22]MH_I2C_Read... [10:13:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:22]Read from MH i2c: E2 [10:13:22]MH_I2C_Read... [10:13:22]Read from MH i2c: E2 03 00 [10:13:22]MH_I2C_Read... [10:13:22]Read from MH i2c: E2 03 00 4F 2D 00 90 00 F0 [10:13:22]RAPDU: 90 00 [10:13:22]wFMCommunicate OK [10:13:22]wFMCommunicate request_size=255 [10:13:22]MH_SAM_APDU [10:13:22]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 C5 5A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C6 70 00 00 35 04 06 00 [10:13:22]Write to MH i2c: E2 02 01 50 2D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 C5 5A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C6 70 00 00 35 04 06 00 00 00 DC [10:13:22]Write i2c OK [10:13:22]MH_I2C_Read... [10:13:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:23]Read from MH i2c: E2 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: E2 03 00 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: E2 03 00 50 2D 00 90 00 F1 [10:13:23]RAPDU: 90 00 [10:13:23]wFMCommunicate OK [10:13:23]wFMCommunicate request_size=11 [10:13:23]MH_SAM_APDU [10:13:23]CAPDU: 80 0D 02 02 06 CA 58 BF 9C 1D 3A [10:13:23]Write to MH i2c: E2 0E 00 51 2D 80 0D 02 02 06 00 CA 58 BF 9C 1D 3A 00 00 D8 [10:13:23]Write i2c OK [10:13:23]MH_I2C_Read... [10:13:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:23]Read from MH i2c: E2 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: E2 03 00 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: E2 03 00 51 2D 00 90 00 F2 [10:13:23]RAPDU: 90 00 [10:13:23]wFMCommunicate OK [10:13:23]wFMCommunicate request_size=4 [10:13:23]MH_SAM_APDU [10:13:23]CAPDU: 80 0D 03 02 [10:13:23]Write to MH i2c: E2 08 00 52 2D 80 0D 03 02 00 00 00 00 FA [10:13:23]Write i2c OK [10:13:23]MH_I2C_Read... [10:13:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:23]Read from MH i2c: E2 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: E2 0B 00 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: E2 0B 00 52 2D 00 F9 F5 CB E4 E8 C2 08 3F 90 00 89 [10:13:23]RAPDU: F9 F5 CB E4 E8 C2 08 3F 90 00 [10:13:23]wFMCommunicate OK [10:13:23]SAM_PROTO_SignData done [10:13:23]FM_MakeSignedData done [10:13:23]CreateOFDProtocolMessage [10:13:23]wFMCommunicate request_size=4 [10:13:23]MH_SAM_APDU [10:13:23]CAPDU: 80 11 00 00 [10:13:23]Write to MH i2c: E2 08 00 53 2D 80 11 00 00 00 00 00 00 FA [10:13:23]Write i2c OK [10:13:23]MH_I2C_Read... [10:13:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:23]Read from MH i2c: E2 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: E2 17 00 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: E2 17 00 53 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 49 [10:13:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:13:23]wFMCommunicate OK [10:13:23]CreateOFDProtocolMessage done [10:13:23]OFDSenderStorePacket 28870 [10:13:23]StoreOFDPacket docnum=28870 [10:13:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 B0 5C 08 01 13 CD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 C5 5A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C6 70 00 00 35 04 06 00 CA 58 BF 9C 1D 3A F9 F5 CB E4 E8 C2 08 3F [10:13:23]CheckFolder [10:13:23]dirname=/storage/ofd_packets [10:13:23]CheckFolder done [10:13:23]ProducePacketName [10:13:23]name=ofd_packets/00028870 [10:13:23]NVStorageSaveData ofd_packets/00028870 [10:13:23]File name is /storage/ofd_packets/00028870 [10:13:23]Write 302 bytes [10:13:23]NVStorageSaveData done [10:13:23]OFDSenderStorePacket done [10:13:23]KKMCreateOFDPacket done [10:13:23]NVStorageSaveData kkm_last_timestamp [10:13:23]File name is /storage/kkm_last_timestamp [10:13:23]Write 4 bytes [10:13:23]NVStorageSaveData done [10:13:23]ExternCall_PrintAddStr [10:13:23]wPrintStart [10:13:23]Write to MH i2c: 01 00 00 54 2D 81 [10:13:23]Write i2c OK [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: 01 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: 01 07 00 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: 01 07 00 54 2D 00 00 00 00 00 FF 0F 96 [10:13:23]RasterBufferAndPrint [10:13:23]line Счет N : (1)347223 [10:13:23]line ИНН: 02508201610067 [10:13:23]line Контрольно-Кассовый Чек [10:13:23]line ПРОДАЖА [10:13:23]line ТРК (МРК, ГНК) : 31 [10:13:23]line Товар: 2710124130 [10:13:23]line SUPER-92-К-5 [10:13:23]line 7.660 * 65.30 [10:13:23]line = 500.20 [10:13:23]line НДС 12% НСП 1% [10:13:23]line > о реализуемом товаре [10:13:23]line ОКРУГЛЕНИЕ: -0.20 [10:13:23]line ИТОГО: 500.00 [10:13:23]line Внесено: 500.00 [10:13:23]line СДАЧА: 0.00 [10:13:23]line НСП 1% : 4.43 [10:13:23]line НДС 12% : 53.12 [10:13:23]line Наличными: 500.00 [10:13:23]line Безнал.: 0.00 [10:13:23]line Место: АЗС № 108 "Партнер Нефть" [10:13:23]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:13:23]line СНО: Общий режим [10:13:23]line Чек 77 13.04.2024 10:13 [10:13:23]line Смена: 115 ФФД: 1.0 [10:13:23]line ЗНМ: 0300000027 [10:13:23]line РНМ: 0000138879044617 [10:13:23]line Версия ККМ: 001 [10:13:23]line ФМ: 0000000000963154 [10:13:23]line ФД: 28870 [10:13:23]line ФПД: 222482520612154 [10:13:23]line 1/tax-web-control/client/api/v1/ticket?date=20240413T101325&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28870&fm=222482520612154&tin=02508201610067®Number=0000138879044617&sum=50000 [10:13:23]OFD Sender: Processing packet 28870 [packets to send 8, broken 7] [10:13:23]ProducePacketName [10:13:23]name=ofd_packets/00028870 [10:13:23]OFD Sender: To server: pG, [10:13:23]CommunicateWithHost lk.salyk.kg:30040 [10:13:23]ConnectInit lk.salyk.kg [10:13:23]written 0, free lines is 4095 [10:13:23]Connected sock=10 [10:13: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 31 35 34 10 01 00 00 B0 5C 08 01 13 CD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 C5 5A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C6 70 00 00 35 04 06 00 CA 58 BF 9C 1D 3A F9 F5 CB E4 E8 C2 08 3F [10:13:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 50 50 47 00 4B 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 31 35 34 10 04 04 00 C6 70 00 00 F4 03 04 00 6D 05 1A 66 B6 04 01 00 00 2F 1D A8 E4 87 E3 D4 B7 [10:13:23]CommunicateWithHost err = 0 [10:13:23]CheckOFDResponse [10:13:23]1017 (14) - 77093643461234 [10:13:23]1041 (16) - 0000000000963154 [10:13:23]1040 (4) - 28870 [10:13:23]1012 (4) - 13.04.2024 04:09 [10:13:23]1206 (1) - 0 [10:13:23]OFD Sender: Remove packet 28870 [10:13:23]ProducePacketName [10:13:23]name=ofd_packets/00028870 [10:13:23]NVStorageDeleteData [10:13:24]Write to MH i2c: 01 00 00 7E 2D AB [10:13:24]Write i2c OK [10:13:24]MH_I2C_Read... [10:13:24]Read from MH i2c: 01 [10:13:24]MH_I2C_Read... [10:13:24]Read from MH i2c: 01 07 00 [10:13:24]MH_I2C_Read... [10:13:24]Read from MH i2c: 01 07 00 7E 2D 00 00 00 00 00 CC 0C 8A [10:13:24]RasterBufferAndPrint [10:13:24]line [10:13:24]line [10:13:24]line [10:13:24]line [10:13:24]line [10:13:24]written 0, free lines is 3282 [10:13:24]MH_Cut [10:13:24]Write to MH i2c: D1 01 00 85 2D 01 84 [10:13:24]Write i2c OK [10:13:24]MH_I2C_Read... [10:13:24]Read from MH i2c: D1 [10:13:24]MH_I2C_Read... [10:13:24]Read from MH i2c: D1 01 00 [10:13:24]MH_I2C_Read... [10:13:24]Read from MH i2c: D1 01 00 85 2D 00 83 [10:13:24]Write to MH i2c: 01 00 00 86 2D B3 [10:13:24]Write i2c OK [10:13:24]MH_I2C_Read... [10:13:24]OFD Sender: No OFD packet to send [10:13:24]*** Cut start [10:13:24]*** Partial cut [10:13:24]*** CUTSNS_PIN = 1 [10:13:25]*** CUTSNS_PIN = 0 [10:13:25]*** Brake cut motor [10:13:25]Read from MH i2c: 01 [10:13:25]MH_I2C_Read... [10:13:25]*** Stop cut motor [10:13:25]*** Cut end [10:13:25]Read from MH i2c: 01 07 00 [10:13:25]MH_I2C_Read... [10:13:25]Read from MH i2c: 01 07 00 86 2D 00 00 00 00 00 FF 0F C8 [10:13:25]process_action close_receipt done [10:13:25]requested_data is exist [10:13:25]produce_requested_data [10:13:25]requested_item fm.sn is exist - process it [10:13:25]wFMCommunicate request_size=4 [10:13:25]MH_SAM_APDU [10:13:25]CAPDU: 80 11 00 00 [10:13:25]Write to MH i2c: E2 08 00 87 2D 80 11 00 00 00 00 00 00 2E [10:13:25]Write i2c OK [10:13:25]MH_I2C_Read... [10:13:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:25]Read from MH i2c: E2 [10:13:25]MH_I2C_Read... [10:13:25]Read from MH i2c: E2 17 00 [10:13:25]MH_I2C_Read... [10:13:25]Read from MH i2c: E2 17 00 87 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7D [10:13:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:13:25]wFMCommunicate OK [10:13:25]requested_item fd.num is exist - process it [10:13:25]SAM_PROTO_GetFieldsCounters [10:13:25]wFMCommunicate request_size=4 [10:13:25]MH_SAM_APDU [10:13:25]CAPDU: 80 13 00 00 [10:13:25]Write to MH i2c: E2 08 00 88 2D 80 13 00 00 00 00 00 00 31 [10:13:25]Write i2c OK [10:13:25]MH_I2C_Read... [10:13:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:25]Read from MH i2c: E2 [10:13:25]MH_I2C_Read... [10:13:25]Read from MH i2c: E2 62 00 [10:13:25]MH_I2C_Read... [10:13:25]Read from MH i2c: E2 62 00 88 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C6 70 00 00 0E 04 04 00 73 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 FF [10:13: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C6 70 00 00 0E 04 04 00 73 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:13:25]wFMCommunicate OK [10:13:25]SAM_PROTO_GetFieldsCounters done [10:13:25]requested_item shift.num is exist - process it [10:13:25]requested_item shift.opened is exist - process it [10:13:25]req_shift_opened [10:13:25]FM_GetShiftState [10:13:25]SAM_PROTO_GetShiftState [10:13:25]wFMCommunicate request_size=4 [10:13:25]MH_SAM_APDU [10:13:25]CAPDU: 80 13 01 00 [10:13:25]Write to MH i2c: E2 08 00 89 2D 80 13 01 00 00 00 00 00 33 [10:13:25]Write i2c OK [10:13:25]MH_I2C_Read... [10:13:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:25]Read from MH i2c: E2 [10:13:25]MH_I2C_Read... [10:13:25]Read from MH i2c: E2 0E 00 [10:13:25]MH_I2C_Read... [10:13:25]Read from MH i2c: E2 0E 00 89 2D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 4C [10:13:25]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:13:25]wFMCommunicate OK [10:13:25]SAM_PROTO_GetShiftState done [10:13:25]FM_GetShiftState done [10:13:25]req_shift_opened done [10:13:25]requested_item shift.open_date is exist - process it [10:13:25]req_shift_open_date [10:13:25]req_shift_open_date done [10:13:25]produce_requested_data done [10:13:25]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28870,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [10:13:25]process_action_free close_receipt [10:13:25]json_value_free [10:13:25]json_value_free done [10:13:25]process_json_proto returns [10:13:25]Send response to host [10:13:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28870,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [10:13:25]free response buf [10:13:25]execute_script done [10:13:25]execute_script returns [10:13:25]free content buf [10:13:25]Sock 7.Close socket [10:13:25]Sock 7.Thread stoped [10:13:29]OFD Sender: No OFD packet to send [10:13:34]OFD Sender: No OFD packet to send [10:13:39]OFD Sender: No OFD packet to send [10:13:44]OFD Sender: No OFD packet to send [10:13:49]OFD Sender: No OFD packet to send [10:13:54]OFD Sender: No OFD packet to send [10:13:59]OFD Sender: No OFD packet to send [10:14:01]accept exits with 9 [10:14:01]New connection [10:14:01]New thread 3066928484 created [10:14:01]Thread 3066785124 joined [10:14:01]Waiting for new connection... [10:14:01] Sock 9.Parse request [10:14:01]Sock 9.Check first char [10:14:01]Sock 9.First char is OK [10:14:01]request: POST /json_proto HTTP/1.0 [10:14:01]Method: POST [10:14:01]URL: /json_proto [10:14:01]Method is POST - this is cgi request [10:14:01]url: /json_proto [10:14:01]query_string will be loaded in cgi processing [10:14:01]execute_cgi json_proto POST (null) [10:14:01]execute_cgi path=json_proto method=POST [10:14:01]POST find Content-Length [10:14:01]Host: 172.17.33.3:8080 [10:14:01]Content-Length: 790 [10:14:01]Content-Type: application/json [10:14:01] [10:14:01]POST finish read [10:14:01]Found Content-Length = 790 [10:14:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 8.560, "sum" : 550.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 550.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:01]execute_script... [10:14: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)347222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 8.560, "sum" : 550.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 550.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:01]POST & json_proto [10:14:01]process_json_proto [10:14:01]json parsed OK: [10:14:01]protocol is kg_v1.0 [10:14:01]action value=close_receipt [10:14:01]process_action close_receipt [10:14:01]cmd_close_receipt [10:14:01]MH_GetDate [10:14:01]Write to MH i2c: F0 00 00 8A 2D A6 [10:14:01]Write i2c OK [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: F0 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: F0 09 00 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: F0 09 00 8A 2D 00 ED 5A 1A 66 23 5B 8F 65 E8 [10:14:01]GetLastDocTimeStamp 1713003205 [10:14:01]current date 1713003245 [10:14:01]FM_GetShiftState [10:14:01]SAM_PROTO_GetShiftState [10:14:01]wFMCommunicate request_size=4 [10:14:01]MH_SAM_APDU [10:14:01]CAPDU: 80 13 01 00 [10:14:01]Write to MH i2c: E2 08 00 8B 2D 80 13 01 00 00 00 00 00 35 [10:14:01]Write i2c OK [10:14:01]MH_I2C_Read... [10:14:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:01]Read from MH i2c: E2 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 0E 00 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 0E 00 8B 2D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 4E [10:14:01]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:14:01]wFMCommunicate OK [10:14:01]SAM_PROTO_GetShiftState done [10:14:01]FM_GetShiftState done [10:14:01]opened in 1712967615 [10:14:01]opened+sec_in_day 1713054015 [10:14:01]quantity*price = 55040 [10:14:01]sum+1 = 55042 [10:14:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 550.41 НСП 1% : 4.87 НДС 12% : 58.45 Наличными: 0.00 Безнал.: 550.41 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 78 13.04.2024 10:14 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000963154 ФД: 28871 ФПД: 218112656942752 1/tax-web-control/client/api/v1/ticket?date=20240413T101405&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28871&fm=218112656942752&tin=02508201610067®Number=0000138879044617&sum=55041 [10:14:02]StoreToDocumentArchive [10:14:02]shift 115 fd 28871 [10:14:02]save to /storage/0115/doc_00028871 [10:14:02]save last doc name /storage/0115/doc_00028871 to /storage/kkm_last_doc_name [10:14:02]save OK [10:14:02]Clear old archive folders... [10:14:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:02]tlvbuf is 0121FA80 [10:14:02]SAM_PROTO_ClearQueue [10:14:02]wFMCommunicate request_size=4 [10:14:02]MH_SAM_APDU [10:14:02]CAPDU: 80 09 00 00 [10:14:02]Write to MH i2c: E2 08 00 98 2D 80 09 00 00 00 00 00 00 37 [10:14:02]Write i2c OK [10:14:02]MH_I2C_Read... [10:14:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:02]Read from MH i2c: E2 [10:14:02]MH_I2C_Read... [10:14:02]Read from MH i2c: E2 03 00 [10:14:02]MH_I2C_Read... [10:14:02]Read from MH i2c: E2 03 00 98 2D 00 90 00 39 [10:14:02]RAPDU: 90 00 [10:14:02]wFMCommunicate OK [10:14:02]SAM_PROTO_ClearQueue done [10:14:02]KKMCreateOFDPacket [10:14:02]OFDProtocolAddRootSTLVToBuf [10:14:02]FM_MakeSignedData [10:14:02]FM_MakeSignedData [10:14:02]SAM_PROTO_SignData [10:14:02]wFMCommunicate request_size=4 [10:14:02]MH_SAM_APDU [10:14:02]CAPDU: 80 0D 01 02 [10:14:02]Write to MH i2c: E2 08 00 99 2D 80 0D 01 02 00 00 00 00 3F [10:14:02]Write i2c OK [10:14:02]MH_I2C_Read... [10:14:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:02]Read from MH i2c: E2 [10:14:02]MH_I2C_Read... [10:14:02]Read from MH i2c: E2 03 00 [10:14:02]MH_I2C_Read... [10:14:02]Read from MH i2c: E2 03 00 99 2D 00 90 00 3A [10:14:02]RAPDU: 90 00 [10:14:02]wFMCommunicate OK [10:14:02]wFMCommunicate request_size=255 [10:14:02]MH_SAM_APDU [10:14: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 70 21 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 01 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 D7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 D7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 ED 5A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C7 70 00 00 35 04 06 00 C6 [10:14:02]Write to MH i2c: E2 02 01 9A 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 21 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 01 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 D7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 D7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 ED 5A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C7 70 00 00 35 04 06 00 C6 00 00 0E [10:14:02]Write i2c OK [10:14:02]MH_I2C_Read... [10:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:02]Read from MH i2c: E2 [10:14:02]MH_I2C_Read... [10:14:02]Read from MH i2c: E2 03 00 [10:14:02]MH_I2C_Read... [10:14:02]Read from MH i2c: E2 03 00 9A 2D 00 90 00 3B [10:14:02]RAPDU: 90 00 [10:14:02]wFMCommunicate OK [10:14:02]wFMCommunicate request_size=10 [10:14:02]MH_SAM_APDU [10:14:02]CAPDU: 80 0D 02 02 05 5F 4F 70 26 A0 [10:14:02]Write to MH i2c: E2 0D 00 9B 2D 80 0D 02 02 05 00 5F 4F 70 26 A0 00 00 30 [10:14:02]Write i2c OK [10:14:02]MH_I2C_Read... [10:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:03]Read from MH i2c: E2 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: E2 03 00 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: E2 03 00 9B 2D 00 90 00 3C [10:14:03]RAPDU: 90 00 [10:14:03]wFMCommunicate OK [10:14:03]wFMCommunicate request_size=4 [10:14:03]MH_SAM_APDU [10:14:03]CAPDU: 80 0D 03 02 [10:14:03]Write to MH i2c: E2 08 00 9C 2D 80 0D 03 02 00 00 00 00 44 [10:14:03]Write i2c OK [10:14:03]MH_I2C_Read... [10:14:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:03]Read from MH i2c: E2 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: E2 0B 00 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: E2 0B 00 9C 2D 00 4A 68 5B FB A7 5E D5 4E 90 00 75 [10:14:03]RAPDU: 4A 68 5B FB A7 5E D5 4E 90 00 [10:14:03]wFMCommunicate OK [10:14:03]SAM_PROTO_SignData done [10:14:03]FM_MakeSignedData done [10:14:03]CreateOFDProtocolMessage [10:14:03]wFMCommunicate request_size=4 [10:14:03]MH_SAM_APDU [10:14:03]CAPDU: 80 11 00 00 [10:14:03]Write to MH i2c: E2 08 00 9D 2D 80 11 00 00 00 00 00 00 44 [10:14:03]Write i2c OK [10:14:03]MH_I2C_Read... [10:14:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:03]Read from MH i2c: E2 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: E2 17 00 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: E2 17 00 9D 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 93 [10:14:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:14:03]wFMCommunicate OK [10:14:03]CreateOFDProtocolMessage done [10:14:03]OFDSenderStorePacket 28871 [10:14:03]StoreOFDPacket docnum=28871 [10:14:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 0F 5F 07 01 42 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 70 21 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 01 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 D7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 D7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 ED 5A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C7 70 00 00 35 04 06 00 C6 5F 4F 70 26 A0 4A 68 5B FB A7 5E D5 4E [10:14:03]CheckFolder [10:14:03]dirname=/storage/ofd_packets [10:14:03]CheckFolder done [10:14:03]ProducePacketName [10:14:03]name=ofd_packets/00028871 [10:14:03]NVStorageSaveData ofd_packets/00028871 [10:14:03]File name is /storage/ofd_packets/00028871 [10:14:03]Write 301 bytes [10:14:03]NVStorageSaveData done [10:14:03]OFDSenderStorePacket done [10:14:03]KKMCreateOFDPacket done [10:14:03]NVStorageSaveData kkm_last_timestamp [10:14:03]File name is /storage/kkm_last_timestamp [10:14:03]Write 4 bytes [10:14:03]NVStorageSaveData done [10:14:03]ExternCall_PrintAddStr [10:14:03]wPrintStart [10:14:03]Write to MH i2c: 01 00 00 9E 2D CB [10:14:03]Write i2c OK [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: 01 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: 01 07 00 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: 01 07 00 9E 2D 00 00 00 00 00 FF 0F E0 [10:14:03]RasterBufferAndPrint [10:14:03]line Счет N : (1)347222 [10:14:03]line ИНН: 02508201610067 [10:14:03]line Контрольно-Кассовый Чек [10:14:03]line ПРОДАЖА [10:14:03]line ТРК (МРК, ГНК) : 13 [10:14:03]line Товар: 2710124130 [10:14:03]line Аи-92-К-5 [10:14:03]line 8.560 * 64.30 [10:14:03]line = 550.41 [10:14:03]line НДС 12% НСП 1% [10:14:03]line > о реализуемом товаре [10:14:03]line ИТОГО: 550.41 [10:14:03]line НСП 1% : 4.87 [10:14:03]line НДС 12% : 58.45 [10:14:03]line Наличными: 0.00 [10:14:03]line Безнал.: 550.41 [10:14:03]line Место: АЗС № 108 "Партнер Нефть" [10:14:03]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:14:03]line СНО: Общий режим [10:14:03]line Чек 78 13.04.2024 10:14 [10:14:03]line Смена: 115 ФФД: 1.0 [10:14:03]line ЗНМ: 0300000027 [10:14:03]line РНМ: 0000138879044617 [10:14:03]line Версия ККМ: 001 [10:14:03]line Платежная система: KICB Банк [10:14:03]line ФМ: 0000000000963154 [10:14:03]line ФД: 28871 [10:14:03]line ФПД: 218112656942752 [10:14:03]line 1/tax-web-control/client/api/v1/ticket?date=20240413T101405&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28871&fm=218112656942752&tin=02508201610067®Number=0000138879044617&sum=55041 [10:14:03]OFD Sender: Processing packet 28871 [packets to send 8, broken 7] [10:14:03]ProducePacketName [10:14:03]name=ofd_packets/00028871 [10:14:03]OFD Sender: To server: pG, [10:14:03]CommunicateWithHost lk.salyk.kg:30040 [10:14:03]ConnectInit lk.salyk.kg [10:14:03]written 0, free lines is 4095 [10:14:03]Connected sock=10 [10:14: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 31 35 34 0F 01 00 00 0F 5F 07 01 42 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 70 21 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 01 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 D7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 D7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 ED 5A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C7 70 00 00 35 04 06 00 C6 5F 4F 70 26 A0 4A 68 5B FB A7 5E D5 4E [10:14:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 44 B7 47 00 53 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 31 35 34 10 04 04 00 C7 70 00 00 F4 03 04 00 94 05 1A 66 B6 04 01 00 00 66 93 44 00 44 56 C2 71 [10:14:03]CommunicateWithHost err = 0 [10:14:03]CheckOFDResponse [10:14:03]1017 (14) - 77093643461234 [10:14:03]1041 (16) - 0000000000963154 [10:14:03]1040 (4) - 28871 [10:14:03]1012 (4) - 13.04.2024 04:09 [10:14:03]1206 (1) - 0 [10:14:03]OFD Sender: Remove packet 28871 [10:14:03]ProducePacketName [10:14:03]name=ofd_packets/00028871 [10:14:03]NVStorageDeleteData [10:14:03]Write to MH i2c: 01 00 00 C7 2D F4 [10:14:03]Write i2c OK [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: 01 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: 01 07 00 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: 01 07 00 C7 2D 00 00 00 00 00 DF 0C E6 [10:14:03]RasterBufferAndPrint [10:14:03]line [10:14:03]line [10:14:03]line [10:14:03]line [10:14:03]line [10:14:03]written 0, free lines is 3302 [10:14:03]MH_Cut [10:14:03]Write to MH i2c: D1 01 00 CE 2D 01 CD [10:14:03]Write i2c OK [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: D1 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: D1 01 00 [10:14:03]MH_I2C_Read... [10:14:03]Read from MH i2c: D1 01 00 CE 2D 00 CC [10:14:03]Write to MH i2c: 01 00 00 CF 2D FC [10:14:03]Write i2c OK [10:14:03]MH_I2C_Read... [10:14:04]OFD Sender: No OFD packet to send [10:14:04]*** Cut start [10:14:04]*** Partial cut [10:14:04]*** CUTSNS_PIN = 1 [10:14:04]*** CUTSNS_PIN = 0 [10:14:04]*** Brake cut motor [10:14:05]Read from MH i2c: 01 [10:14:05]MH_I2C_Read... [10:14:05]*** Stop cut motor [10:14:05]*** Cut end [10:14:05]Read from MH i2c: 01 07 00 [10:14:05]MH_I2C_Read... [10:14:05]Read from MH i2c: 01 07 00 CF 2D 00 00 00 00 00 FF 0F 11 [10:14:05]process_action close_receipt done [10:14:05]requested_data is exist [10:14:05]produce_requested_data [10:14:05]requested_item fm.sn is exist - process it [10:14:05]wFMCommunicate request_size=4 [10:14:05]MH_SAM_APDU [10:14:05]CAPDU: 80 11 00 00 [10:14:05]Write to MH i2c: E2 08 00 D0 2D 80 11 00 00 00 00 00 00 77 [10:14:05]Write i2c OK [10:14:05]MH_I2C_Read... [10:14:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:05]Read from MH i2c: E2 [10:14:05]MH_I2C_Read... [10:14:05]Read from MH i2c: E2 17 00 [10:14:05]MH_I2C_Read... [10:14:05]Read from MH i2c: E2 17 00 D0 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C6 [10:14:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:14:05]wFMCommunicate OK [10:14:05]requested_item fd.num is exist - process it [10:14:05]SAM_PROTO_GetFieldsCounters [10:14:05]wFMCommunicate request_size=4 [10:14:05]MH_SAM_APDU [10:14:05]CAPDU: 80 13 00 00 [10:14:05]Write to MH i2c: E2 08 00 D1 2D 80 13 00 00 00 00 00 00 7A [10:14:05]Write i2c OK [10:14:05]MH_I2C_Read... [10:14:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:05]Read from MH i2c: E2 [10:14:05]MH_I2C_Read... [10:14:05]Read from MH i2c: E2 62 00 [10:14:05]MH_I2C_Read... [10:14:05]Read from MH i2c: E2 62 00 D1 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C7 70 00 00 0E 04 04 00 73 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 4C [10:14: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C7 70 00 00 0E 04 04 00 73 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:14:05]wFMCommunicate OK [10:14:05]SAM_PROTO_GetFieldsCounters done [10:14:05]requested_item shift.num is exist - process it [10:14:05]requested_item shift.opened is exist - process it [10:14:05]req_shift_opened [10:14:05]FM_GetShiftState [10:14:05]SAM_PROTO_GetShiftState [10:14:05]wFMCommunicate request_size=4 [10:14:05]MH_SAM_APDU [10:14:05]CAPDU: 80 13 01 00 [10:14:05]Write to MH i2c: E2 08 00 D2 2D 80 13 01 00 00 00 00 00 7C [10:14:05]Write i2c OK [10:14:05]MH_I2C_Read... [10:14:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:05]Read from MH i2c: E2 [10:14:05]MH_I2C_Read... [10:14:05]Read from MH i2c: E2 0E 00 [10:14:05]MH_I2C_Read... [10:14:05]Read from MH i2c: E2 0E 00 D2 2D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 95 [10:14:05]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:14:05]wFMCommunicate OK [10:14:05]SAM_PROTO_GetShiftState done [10:14:05]FM_GetShiftState done [10:14:05]req_shift_opened done [10:14:05]requested_item shift.open_date is exist - process it [10:14:05]req_shift_open_date [10:14:05]req_shift_open_date done [10:14:05]produce_requested_data done [10:14:05]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28871,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [10:14:05]process_action_free close_receipt [10:14:05]json_value_free [10:14:05]json_value_free done [10:14:05]process_json_proto returns [10:14:05]Send response to host [10:14:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28871,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [10:14:05]free response buf [10:14:05]execute_script done [10:14:05]execute_script returns [10:14:05]free content buf [10:14:05]Sock 9.Close socket [10:14:05]Sock 9.Thread stoped [10:14:09]OFD Sender: No OFD packet to send [10:14:14]OFD Sender: No OFD packet to send [10:14:19]OFD Sender: No OFD packet to send [10:14:24]OFD Sender: No OFD packet to send [10:14:29]OFD Sender: No OFD packet to send [10:14:34]OFD Sender: No OFD packet to send [10:14:39]OFD Sender: No OFD packet to send [10:14:44]OFD Sender: No OFD packet to send [10:14:49]OFD Sender: No OFD packet to send [10:14:54]OFD Sender: No OFD packet to send [10:14:59]OFD Sender: No OFD packet to send [10:15:04]OFD Sender: No OFD packet to send [10:15:09]OFD Sender: No OFD packet to send [10:15:14]OFD Sender: No OFD packet to send [10:15:19]OFD Sender: No OFD packet to send [10:15:24]OFD Sender: No OFD packet to send [10:15:29]OFD Sender: No OFD packet to send [10:15:34]OFD Sender: No OFD packet to send [10:15:39]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:24]OFD Sender: No OFD packet to send [10:16:29]OFD Sender: No OFD packet to send [10:16:34]OFD Sender: No OFD packet to send [10:16:39]OFD Sender: No OFD packet to send [10:16:44]OFD Sender: No OFD packet to send [10:16:49]OFD Sender: No OFD packet to send [10:16:54]OFD Sender: No OFD packet to send [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:09]OFD Sender: No OFD packet to send [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:37]accept exits with 7 [10:17:37]New connection [10:17:37]New thread 3066785124 created [10:17:37]Thread 3066928484 joined [10:17:37]Waiting for new connection... [10:17:37] Sock 7.Parse request [10:17:37]Sock 7.Check first char [10:17:37]Sock 7.First char is OK [10:17:37]request: POST /json_proto HTTP/1.0 [10:17:37]Method: POST [10:17:37]URL: /json_proto [10:17:37]Method is POST - this is cgi request [10:17:37]url: /json_proto [10:17:37]query_string will be loaded in cgi processing [10:17:37]execute_cgi json_proto POST (null) [10:17:37]execute_cgi path=json_proto method=POST [10:17:37]POST find Content-Length [10:17:37]Host: 172.17.33.3:8080 [10:17:37]Content-Length: 808 [10:17:37]Content-Type: application/json [10:17:37] [10:17:37]POST finish read [10:17:37]Found Content-Length = 808 [10:17:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347224", "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" : 72.50, "quantity" : 27.590, "sum" : 2000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:37]execute_script... [10:17:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347224", "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" : 72.50, "quantity" : 27.590, "sum" : 2000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:37]POST & json_proto [10:17:37]process_json_proto [10:17:37]json parsed OK: [10:17:37]protocol is kg_v1.0 [10:17:37]action value=close_receipt [10:17:37]process_action close_receipt [10:17:37]cmd_close_receipt [10:17:37]MH_GetDate [10:17:37]Write to MH i2c: F0 00 00 D3 2D EF [10:17:37]Write i2c OK [10:17:37]MH_I2C_Read... [10:17:37]Read from MH i2c: F0 [10:17:37]MH_I2C_Read... [10:17:37]Read from MH i2c: F0 09 00 [10:17:37]MH_I2C_Read... [10:17:37]Read from MH i2c: F0 09 00 D3 2D 00 C5 5B 1A 66 23 5B 8F 65 0A [10:17:37]GetLastDocTimeStamp 1713003245 [10:17:37]current date 1713003461 [10:17:37]FM_GetShiftState [10:17:37]SAM_PROTO_GetShiftState [10:17:37]wFMCommunicate request_size=4 [10:17:37]MH_SAM_APDU [10:17:37]CAPDU: 80 13 01 00 [10:17:37]Write to MH i2c: E2 08 00 D4 2D 80 13 01 00 00 00 00 00 7E [10:17:37]Write i2c OK [10:17:37]MH_I2C_Read... [10:17:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:37]Read from MH i2c: E2 [10:17:37]MH_I2C_Read... [10:17:37]Read from MH i2c: E2 0E 00 [10:17:37]MH_I2C_Read... [10:17:37]Read from MH i2c: E2 0E 00 D4 2D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 97 [10:17:37]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:17:37]wFMCommunicate OK [10:17:37]SAM_PROTO_GetShiftState done [10:17:37]FM_GetShiftState done [10:17:37]opened in 1712967615 [10:17:37]opened+sec_in_day 1713054015 [10:17:37]quantity*price = 200027 [10:17:37]sum+1 = 200029 [10:17:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.28 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.28 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 79 13.04.2024 10:17 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28872 ФПД: 107736574623405 1/tax-web-control/client/api/v1/ticket?date=20240413T101741&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28872&fm=107736574623405&tin=02508201610067®Number=0000138879044617&sum=200028 [10:17:38]StoreToDocumentArchive [10:17:38]shift 115 fd 28872 [10:17:38]save to /storage/0115/doc_00028872 [10:17:38]save last doc name /storage/0115/doc_00028872 to /storage/kkm_last_doc_name [10:17:38]save OK [10:17:38]Clear old archive folders... [10:17:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:17:38]tlvbuf is B6F52E10 [10:17:38]SAM_PROTO_ClearQueue [10:17:38]wFMCommunicate request_size=4 [10:17:38]MH_SAM_APDU [10:17:38]CAPDU: 80 09 00 00 [10:17:38]Write to MH i2c: E2 08 00 E1 2D 80 09 00 00 00 00 00 00 80 [10:17:38]Write i2c OK [10:17:38]MH_I2C_Read... [10:17:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:38]Read from MH i2c: E2 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 03 00 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 03 00 E1 2D 00 90 00 82 [10:17:38]RAPDU: 90 00 [10:17:38]wFMCommunicate OK [10:17:38]SAM_PROTO_ClearQueue done [10:17:38]KKMCreateOFDPacket [10:17:38]OFDProtocolAddRootSTLVToBuf [10:17:38]FM_MakeSignedData [10:17:38]FM_MakeSignedData [10:17:38]SAM_PROTO_SignData [10:17:38]wFMCommunicate request_size=4 [10:17:38]MH_SAM_APDU [10:17:38]CAPDU: 80 0D 01 02 [10:17:38]Write to MH i2c: E2 08 00 E2 2D 80 0D 01 02 00 00 00 00 88 [10:17:38]Write i2c OK [10:17:38]MH_I2C_Read... [10:17:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:38]Read from MH i2c: E2 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 03 00 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 03 00 E2 2D 00 90 00 83 [10:17:38]RAPDU: 90 00 [10:17:38]wFMCommunicate OK [10:17:38]wFMCommunicate request_size=255 [10:17:38]MH_SAM_APDU [10:17: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 C6 6B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 5C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 C5 5B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C8 70 00 00 35 04 06 00 61 [10:17:38]Write to MH i2c: E2 02 01 E3 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C6 6B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 5C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 C5 5B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C8 70 00 00 35 04 06 00 61 00 00 CD [10:17:38]Write i2c OK [10:17:38]MH_I2C_Read... [10:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:38]Read from MH i2c: E2 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 03 00 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 03 00 E3 2D 00 90 00 84 [10:17:38]RAPDU: 90 00 [10:17:38]wFMCommunicate OK [10:17:38]wFMCommunicate request_size=10 [10:17:38]MH_SAM_APDU [10:17:38]CAPDU: 80 0D 02 02 05 FC 60 42 7E AD [10:17:38]Write to MH i2c: E2 0D 00 E4 2D 80 0D 02 02 05 00 FC 60 42 7E AD 00 00 5E [10:17:38]Write i2c OK [10:17:38]MH_I2C_Read... [10:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:38]Read from MH i2c: E2 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 03 00 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 03 00 E4 2D 00 90 00 85 [10:17:38]RAPDU: 90 00 [10:17:38]wFMCommunicate OK [10:17:38]wFMCommunicate request_size=4 [10:17:38]MH_SAM_APDU [10:17:38]CAPDU: 80 0D 03 02 [10:17:38]Write to MH i2c: E2 08 00 E5 2D 80 0D 03 02 00 00 00 00 8D [10:17:38]Write i2c OK [10:17:38]MH_I2C_Read... [10:17:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:38]Read from MH i2c: E2 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 0B 00 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 0B 00 E5 2D 00 03 6E 79 62 71 0F 46 B0 90 00 50 [10:17:38]RAPDU: 03 6E 79 62 71 0F 46 B0 90 00 [10:17:38]wFMCommunicate OK [10:17:38]SAM_PROTO_SignData done [10:17:38]FM_MakeSignedData done [10:17:38]CreateOFDProtocolMessage [10:17:38]wFMCommunicate request_size=4 [10:17:38]MH_SAM_APDU [10:17:38]CAPDU: 80 11 00 00 [10:17:38]Write to MH i2c: E2 08 00 E6 2D 80 11 00 00 00 00 00 00 8D [10:17:38]Write i2c OK [10:17:38]MH_I2C_Read... [10:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:38]Read from MH i2c: E2 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 17 00 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 17 00 E6 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DC [10:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:17:38]wFMCommunicate OK [10:17:38]CreateOFDProtocolMessage done [10:17:38]OFDSenderStorePacket 28872 [10:17:38]StoreOFDPacket docnum=28872 [10:17:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E6 9E 07 01 2B 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 C6 6B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 5C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 C5 5B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C8 70 00 00 35 04 06 00 61 FC 60 42 7E AD 03 6E 79 62 71 0F 46 B0 [10:17:38]CheckFolder [10:17:38]dirname=/storage/ofd_packets [10:17:38]CheckFolder done [10:17:38]ProducePacketName [10:17:38]name=ofd_packets/00028872 [10:17:38]NVStorageSaveData ofd_packets/00028872 [10:17:38]File name is /storage/ofd_packets/00028872 [10:17:38]Write 301 bytes [10:17:38]NVStorageSaveData done [10:17:38]OFDSenderStorePacket done [10:17:38]KKMCreateOFDPacket done [10:17:38]NVStorageSaveData kkm_last_timestamp [10:17:38]File name is /storage/kkm_last_timestamp [10:17:38]Write 4 bytes [10:17:38]NVStorageSaveData done [10:17:38]OFD Sender: Processing packet 28872 [packets to send 8, broken 7] [10:17:38]ProducePacketName [10:17:38]name=ofd_packets/00028872 [10:17:38]OFD Sender: To server: pG, [10:17:38]CommunicateWithHost lk.salyk.kg:30040 [10:17:38]ConnectInit lk.salyk.kg [10:17:38]ExternCall_PrintAddStr [10:17:38]wPrintStart [10:17:38]Write to MH i2c: 01 00 00 E7 2D 14 [10:17:38]Write i2c OK [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: 01 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: 01 07 00 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: 01 07 00 E7 2D 00 00 00 00 00 FF 0F 29 [10:17:38]RasterBufferAndPrint [10:17:38]line Счет N : (1)347224 [10:17:38]line ИНН: 02508201610067 [10:17:38]line Контрольно-Кассовый Чек [10:17:38]line ПРОДАЖА [10:17:38]line ТРК (МРК, ГНК) : 33 [10:17:38]line Товар: 2710124500 [10:17:38]line Аи-95-К-5 [10:17:38]line 27.590 * 72.50 [10:17:38]line = 2000.28 [10:17:38]line НДС 12% НСП 1% [10:17:38]line > о реализуемом товаре [10:17:38]line ИТОГО: 2000.28 [10:17:38]line НСП 1% : 17.70 [10:17:38]line НДС 12% : 212.42 [10:17:38]line Наличными: 0.00 [10:17:38]line Безнал.: 2000.28 [10:17:38]line Место: АЗС № 108 "Партнер Нефть" [10:17:38]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:17:38]line СНО: Общий режим [10:17:38]line Чек 79 13.04.2024 10:17 [10:17:38]line Смена: 115 ФФД: 1.0 [10:17:38]line ЗНМ: 0300000027 [10:17:38]line РНМ: 0000138879044617 [10:17:38]line Версия ККМ: 001 [10:17:38]line Платежная система: О! деньги [10:17:38]line ФМ: 0000000000963154 [10:17:38]line ФД: 28872 [10:17:38]line ФПД: 107736574623405 [10:17:39]line 1/tax-web-control/client/api/v1/ticket?date=20240413T101741&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28872&fm=107736574623405&tin=02508201610067®Number=0000138879044617&sum=200028 [10:17:39]Connected sock=11 [10:17: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 31 35 34 0F 01 00 00 E6 9E 07 01 2B 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 C6 6B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 5C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 C5 5B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C8 70 00 00 35 04 06 00 61 FC 60 42 7E AD 03 6E 79 62 71 0F 46 B0 [10:17:39]written 0, free lines is 4095 [10:17:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AE 46 47 00 D7 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 31 35 34 10 04 04 00 C8 70 00 00 F4 03 04 00 6C 06 1A 66 B6 04 01 00 00 CC 17 9A 7F A2 E5 E1 8C [10:17:39]CommunicateWithHost err = 0 [10:17:39]CheckOFDResponse [10:17:39]1017 (14) - 77093643461234 [10:17:39]1041 (16) - 0000000000963154 [10:17:39]1040 (4) - 28872 [10:17:39]1012 (4) - 13.04.2024 04:13 [10:17:39]1206 (1) - 0 [10:17:39]OFD Sender: Remove packet 28872 [10:17:39]ProducePacketName [10:17:39]name=ofd_packets/00028872 [10:17:39]NVStorageDeleteData [10:17:39]Write to MH i2c: 01 00 00 10 2E 3E [10:17:39]Write i2c OK [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: 01 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: 01 07 00 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: 01 07 00 10 2E 00 00 00 00 00 E4 0C 35 [10:17:39]RasterBufferAndPrint [10:17:39]line [10:17:39]line [10:17:39]line [10:17:39]line [10:17:39]line [10:17:39]written 0, free lines is 3306 [10:17:39]MH_Cut [10:17:39]Write to MH i2c: D1 01 00 17 2E 01 17 [10:17:39]Write i2c OK [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: D1 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: D1 01 00 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: D1 01 00 17 2E 00 16 [10:17:39]Write to MH i2c: 01 00 00 18 2E 46 [10:17:39]Write i2c OK [10:17:39]MH_I2C_Read... [10:17:39]OFD Sender: No OFD packet to send [10:17:40]*** Cut start [10:17:40]*** Partial cut [10:17:40]*** CUTSNS_PIN = 1 [10:17:40]*** CUTSNS_PIN = 0 [10:17:40]*** Brake cut motor [10:17:41]Read from MH i2c: 01 [10:17:41]MH_I2C_Read... [10:17:41]*** Stop cut motor [10:17:41]*** Cut end [10:17:41]Read from MH i2c: 01 07 00 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: 01 07 00 18 2E 00 00 00 00 00 FF 0F 5B [10:17:41]process_action close_receipt done [10:17:41]requested_data is exist [10:17:41]produce_requested_data [10:17:41]requested_item fm.sn is exist - process it [10:17:41]wFMCommunicate request_size=4 [10:17:41]MH_SAM_APDU [10:17:41]CAPDU: 80 11 00 00 [10:17:41]Write to MH i2c: E2 08 00 19 2E 80 11 00 00 00 00 00 00 C1 [10:17:41]Write i2c OK [10:17:41]MH_I2C_Read... [10:17:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:41]Read from MH i2c: E2 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 17 00 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 17 00 19 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 10 [10:17:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:17:41]wFMCommunicate OK [10:17:41]requested_item fd.num is exist - process it [10:17:41]SAM_PROTO_GetFieldsCounters [10:17:41]wFMCommunicate request_size=4 [10:17:41]MH_SAM_APDU [10:17:41]CAPDU: 80 13 00 00 [10:17:41]Write to MH i2c: E2 08 00 1A 2E 80 13 00 00 00 00 00 00 C4 [10:17:41]Write i2c OK [10:17:41]MH_I2C_Read... [10:17:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:41]Read from MH i2c: E2 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 62 00 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 62 00 1A 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C8 70 00 00 0E 04 04 00 73 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 9A [10:17:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C8 70 00 00 0E 04 04 00 73 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:17:41]wFMCommunicate OK [10:17:41]SAM_PROTO_GetFieldsCounters done [10:17:41]requested_item shift.num is exist - process it [10:17:41]requested_item shift.opened is exist - process it [10:17:41]req_shift_opened [10:17:41]FM_GetShiftState [10:17:41]SAM_PROTO_GetShiftState [10:17:41]wFMCommunicate request_size=4 [10:17:41]MH_SAM_APDU [10:17:41]CAPDU: 80 13 01 00 [10:17:41]Write to MH i2c: E2 08 00 1B 2E 80 13 01 00 00 00 00 00 C6 [10:17:41]Write i2c OK [10:17:41]MH_I2C_Read... [10:17:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:41]Read from MH i2c: E2 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 0E 00 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 0E 00 1B 2E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 DF [10:17:41]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:17:41]wFMCommunicate OK [10:17:41]SAM_PROTO_GetShiftState done [10:17:41]FM_GetShiftState done [10:17:41]req_shift_opened done [10:17:41]requested_item shift.open_date is exist - process it [10:17:41]req_shift_open_date [10:17:41]req_shift_open_date done [10:17:41]produce_requested_data done [10:17:41]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28872,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [10:17:41]process_action_free close_receipt [10:17:41]json_value_free [10:17:41]json_value_free done [10:17:41]process_json_proto returns [10:17:41]Send response to host [10:17:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28872,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [10:17:41]free response buf [10:17:41]execute_script done [10:17:41]execute_script returns [10:17:41]free content buf [10:17:41]Sock 7.Close socket [10:17:41]Sock 7.Thread stoped [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:25]OFD Sender: No OFD packet to send [10:18:30]OFD Sender: No OFD packet to send [10:18:35]OFD Sender: No OFD packet to send [10:18:40]OFD Sender: No OFD packet to send [10:18:45]OFD Sender: No OFD packet to send [10:18:50]OFD Sender: No OFD packet to send [10:18:55]OFD Sender: No OFD packet to send [10:19:00]OFD Sender: No OFD packet to send [10:19:05]OFD Sender: No OFD packet to send [10:19:10]OFD Sender: No OFD packet to send [10:19:15]OFD Sender: No OFD packet to send [10:19:20]OFD Sender: No OFD packet to send [10:19:25]OFD Sender: No OFD packet to send [10:19:30]OFD Sender: No OFD packet to send [10:19:35]OFD Sender: No OFD packet to send [10:19:40]OFD Sender: No OFD packet to send [10:19:45]OFD Sender: No OFD packet to send [10:19:50]OFD Sender: No OFD packet to send [10:19:55]OFD Sender: No OFD packet to send [10:20:00]OFD Sender: No OFD packet to send [10:20:01]accept exits with 9 [10:20:01]New connection [10:20:01]New thread 3066928484 created [10:20:01]Thread 3066785124 joined [10:20:01]Waiting for new connection... [10:20:01] Sock 9.Parse request [10:20:01]Sock 9.Check first char [10:20:01]Sock 9.First char is OK [10:20:01]request: POST /json_proto HTTP/1.0 [10:20:01]Method: POST [10:20:01]URL: /json_proto [10:20:01]Method is POST - this is cgi request [10:20:01]url: /json_proto [10:20:01]query_string will be loaded in cgi processing [10:20:01]execute_cgi json_proto POST (null) [10:20:01]execute_cgi path=json_proto method=POST [10:20:01]POST find Content-Length [10:20:01]Host: 172.17.33.3:8080 [10:20:01]Content-Length: 808 [10:20:01]Content-Type: application/json [10:20:01] [10:20:01]POST finish read [10:20:01]Found Content-Length = 808 [10:20:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347225", "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" : 64.30, "quantity" : 18.670, "sum" : 1200.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:01]execute_script... [10:20:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347225", "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" : 64.30, "quantity" : 18.670, "sum" : 1200.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:01]POST & json_proto [10:20:01]process_json_proto [10:20:01]json parsed OK: [10:20:01]protocol is kg_v1.0 [10:20:01]action value=close_receipt [10:20:01]process_action close_receipt [10:20:01]cmd_close_receipt [10:20:01]MH_GetDate [10:20:01]Write to MH i2c: F0 00 00 1C 2E 39 [10:20:01]Write i2c OK [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: F0 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: F0 09 00 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: F0 09 00 1C 2E 00 55 5C 1A 66 23 5B 8F 65 E5 [10:20:01]GetLastDocTimeStamp 1713003461 [10:20:01]current date 1713003605 [10:20:01]FM_GetShiftState [10:20:01]SAM_PROTO_GetShiftState [10:20:01]wFMCommunicate request_size=4 [10:20:01]MH_SAM_APDU [10:20:01]CAPDU: 80 13 01 00 [10:20:01]Write to MH i2c: E2 08 00 1D 2E 80 13 01 00 00 00 00 00 C8 [10:20:01]Write i2c OK [10:20:01]MH_I2C_Read... [10:20:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:01]Read from MH i2c: E2 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: E2 0E 00 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: E2 0E 00 1D 2E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 E1 [10:20:01]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:20:01]wFMCommunicate OK [10:20:01]SAM_PROTO_GetShiftState done [10:20:01]FM_GetShiftState done [10:20:01]opened in 1712967615 [10:20:01]opened+sec_in_day 1713054015 [10:20:01]quantity*price = 120048 [10:20:01]sum+1 = 120049 [10:20:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.48 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 0.00 Безнал.: 1200.48 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 80 13.04.2024 10:20 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28873 ФПД: 41798649628200 1/tax-web-control/client/api/v1/ticket?date=20240413T102005&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28873&fm=41798649628200&tin=02508201610067®Number=0000138879044617&sum=120048 [10:20:02]StoreToDocumentArchive [10:20:02]shift 115 fd 28873 [10:20:02]save to /storage/0115/doc_00028873 [10:20:02]save last doc name /storage/0115/doc_00028873 to /storage/kkm_last_doc_name [10:20:02]save OK [10:20:02]Clear old archive folders... [10:20:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:20:02]tlvbuf is 012334A0 [10:20:02]SAM_PROTO_ClearQueue [10:20:02]wFMCommunicate request_size=4 [10:20:02]MH_SAM_APDU [10:20:02]CAPDU: 80 09 00 00 [10:20:02]Write to MH i2c: E2 08 00 2A 2E 80 09 00 00 00 00 00 00 CA [10:20:02]Write i2c OK [10:20:02]MH_I2C_Read... [10:20:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:02]Read from MH i2c: E2 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 03 00 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 03 00 2A 2E 00 90 00 CC [10:20:02]RAPDU: 90 00 [10:20:02]wFMCommunicate OK [10:20:02]SAM_PROTO_ClearQueue done [10:20:02]KKMCreateOFDPacket [10:20:02]OFDProtocolAddRootSTLVToBuf [10:20:02]FM_MakeSignedData [10:20:02]FM_MakeSignedData [10:20:02]SAM_PROTO_SignData [10:20:02]wFMCommunicate request_size=4 [10:20:02]MH_SAM_APDU [10:20:02]CAPDU: 80 0D 01 02 [10:20:02]Write to MH i2c: E2 08 00 2B 2E 80 0D 01 02 00 00 00 00 D2 [10:20:02]Write i2c OK [10:20:02]MH_I2C_Read... [10:20:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:02]Read from MH i2c: E2 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 03 00 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 03 00 2B 2E 00 90 00 CD [10:20:02]RAPDU: 90 00 [10:20:02]wFMCommunicate OK [10:20:02]wFMCommunicate request_size=255 [10:20:02]MH_SAM_APDU [10:20:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 55 5C 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C9 70 00 00 35 04 06 00 26 [10:20:02]Write to MH i2c: E2 02 01 2C 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 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 55 5C 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C9 70 00 00 35 04 06 00 26 00 00 2F [10:20:02]Write i2c OK [10:20:02]MH_I2C_Read... [10:20:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:03]Read from MH i2c: E2 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: E2 03 00 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: E2 03 00 2C 2E 00 90 00 CE [10:20:03]RAPDU: 90 00 [10:20:03]wFMCommunicate OK [10:20:03]wFMCommunicate request_size=10 [10:20:03]MH_SAM_APDU [10:20:03]CAPDU: 80 0D 02 02 05 04 01 A9 C6 28 [10:20:03]Write to MH i2c: E2 0D 00 2D 2E 80 0D 02 02 05 00 04 01 A9 C6 28 00 00 7B [10:20:03]Write i2c OK [10:20:03]MH_I2C_Read... [10:20:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:03]Read from MH i2c: E2 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: E2 03 00 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: E2 03 00 2D 2E 00 90 00 CF [10:20:03]RAPDU: 90 00 [10:20:03]wFMCommunicate OK [10:20:03]wFMCommunicate request_size=4 [10:20:03]MH_SAM_APDU [10:20:03]CAPDU: 80 0D 03 02 [10:20:03]Write to MH i2c: E2 08 00 2E 2E 80 0D 03 02 00 00 00 00 D7 [10:20:03]Write i2c OK [10:20:03]MH_I2C_Read... [10:20:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:03]Read from MH i2c: E2 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: E2 0B 00 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: E2 0B 00 2E 2E 00 EE 04 A2 EC 95 E4 4C 7B 90 00 98 [10:20:03]RAPDU: EE 04 A2 EC 95 E4 4C 7B 90 00 [10:20:03]wFMCommunicate OK [10:20:03]SAM_PROTO_SignData done [10:20:03]FM_MakeSignedData done [10:20:03]CreateOFDProtocolMessage [10:20:03]wFMCommunicate request_size=4 [10:20:03]MH_SAM_APDU [10:20:03]CAPDU: 80 11 00 00 [10:20:03]Write to MH i2c: E2 08 00 2F 2E 80 11 00 00 00 00 00 00 D7 [10:20:03]Write i2c OK [10:20:03]MH_I2C_Read... [10:20:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:03]Read from MH i2c: E2 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: E2 17 00 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: E2 17 00 2F 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 26 [10:20:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:20:03]wFMCommunicate OK [10:20:03]CreateOFDProtocolMessage done [10:20:03]OFDSenderStorePacket 28873 [10:20:03]StoreOFDPacket docnum=28873 [10:20:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B1 99 07 01 3A FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 55 5C 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C9 70 00 00 35 04 06 00 26 04 01 A9 C6 28 EE 04 A2 EC 95 E4 4C 7B [10:20:03]CheckFolder [10:20:03]dirname=/storage/ofd_packets [10:20:03]CheckFolder done [10:20:03]ProducePacketName [10:20:03]name=ofd_packets/00028873 [10:20:03]NVStorageSaveData ofd_packets/00028873 [10:20:03]File name is /storage/ofd_packets/00028873 [10:20:03]Write 301 bytes [10:20:03]NVStorageSaveData done [10:20:03]OFDSenderStorePacket done [10:20:03]KKMCreateOFDPacket done [10:20:03]NVStorageSaveData kkm_last_timestamp [10:20:03]File name is /storage/kkm_last_timestamp [10:20:03]Write 4 bytes [10:20:03]OFD Sender: Processing packet 28873 [packets to send 8, broken 7] [10:20:03]ProducePacketName [10:20:03]name=ofd_packets/00028873 [10:20:03]OFD Sender: To server: pG, [10:20:03]CommunicateWithHost lk.salyk.kg:30040 [10:20:03]ConnectInit lk.salyk.kg [10:20:03]NVStorageSaveData done [10:20:03]ExternCall_PrintAddStr [10:20:03]wPrintStart [10:20:03]Write to MH i2c: 01 00 00 30 2E 5E [10:20:03]Write i2c OK [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: 01 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: 01 07 00 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: 01 07 00 30 2E 00 00 00 00 00 FF 0F 73 [10:20:03]RasterBufferAndPrint [10:20:03]line Счет N : (1)347225 [10:20:03]line ИНН: 02508201610067 [10:20:03]line Контрольно-Кассовый Чек [10:20:03]line ПРОДАЖА [10:20:03]line ТРК (МРК, ГНК) : 42 [10:20:03]line Товар: 2710124130 [10:20:03]line Аи-92-К-5 [10:20:03]line 18.670 * 64.30 [10:20:03]line = 1200.48 [10:20:03]line НДС 12% НСП 1% [10:20:03]line > о реализуемом товаре [10:20:03]line ИТОГО: 1200.48 [10:20:03]line НСП 1% : 10.62 [10:20:03]line НДС 12% : 127.48 [10:20:03]line Наличными: 0.00 [10:20:03]line Безнал.: 1200.48 [10:20:03]line Место: АЗС № 108 "Партнер Нефть" [10:20:03]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:20:03]line СНО: Общий режим [10:20:03]line Чек 80 13.04.2024 10:20 [10:20:03]line Смена: 115 ФФД: 1.0 [10:20:03]line ЗНМ: 0300000027 [10:20:03]line РНМ: 0000138879044617 [10:20:03]line Версия ККМ: 001 [10:20:03]line Платежная система: О! деньги [10:20:03]line ФМ: 0000000000963154 [10:20:03]line ФД: 28873 [10:20:03]line ФПД: 41798649628200 [10:20:03]line 1/tax-web-control/client/api/v1/ticket?date=20240413T102005&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28873&fm=41798649628200&tin=02508201610067®Number=0000138879044617&sum=120048 [10:20:03]Connected sock=11 [10:20: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 31 35 34 0F 01 00 00 B1 99 07 01 3A FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 55 5C 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 C9 70 00 00 35 04 06 00 26 04 01 A9 C6 28 EE 04 A2 EC 95 E4 4C 7B [10:20:03]written 0, free lines is 4095 [10:20:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1F 38 47 00 C5 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 31 35 34 10 04 04 00 C9 70 00 00 F4 03 04 00 FD 06 1A 66 B6 04 01 00 00 0E 5D D6 CB 8B 1C FA 26 [10:20:03]CommunicateWithHost err = 0 [10:20:03]CheckOFDResponse [10:20:03]1017 (14) - 77093643461234 [10:20:03]1041 (16) - 0000000000963154 [10:20:03]1040 (4) - 28873 [10:20:03]1012 (4) - 13.04.2024 04:15 [10:20:03]1206 (1) - 0 [10:20:03]OFD Sender: Remove packet 28873 [10:20:03]ProducePacketName [10:20:03]name=ofd_packets/00028873 [10:20:03]NVStorageDeleteData [10:20:04]Write to MH i2c: 01 00 00 59 2E 87 [10:20:04]Write i2c OK [10:20:04]MH_I2C_Read... [10:20:04]Read from MH i2c: 01 [10:20:04]MH_I2C_Read... [10:20:04]Read from MH i2c: 01 07 00 [10:20:04]MH_I2C_Read... [10:20:04]Read from MH i2c: 01 07 00 59 2E 00 00 00 00 00 E9 0C 83 [10:20:04]RasterBufferAndPrint [10:20:04]line [10:20:04]line [10:20:04]line [10:20:04]line [10:20:04]line [10:20:04]written 0, free lines is 3312 [10:20:04]MH_Cut [10:20:04]Write to MH i2c: D1 01 00 60 2E 01 60 [10:20:04]Write i2c OK [10:20:04]MH_I2C_Read... [10:20:04]Read from MH i2c: D1 [10:20:04]MH_I2C_Read... [10:20:04]Read from MH i2c: D1 01 00 [10:20:04]MH_I2C_Read... [10:20:04]Read from MH i2c: D1 01 00 60 2E 00 5F [10:20:04]Write to MH i2c: 01 00 00 61 2E 8F [10:20:04]Write i2c OK [10:20:04]MH_I2C_Read... [10:20:04]OFD Sender: No OFD packet to send [10:20:05]*** Cut start [10:20:05]*** Partial cut [10:20:05]*** CUTSNS_PIN = 1 [10:20:05]*** CUTSNS_PIN = 0 [10:20:05]*** Brake cut motor [10:20:05]Read from MH i2c: 01 [10:20:05]MH_I2C_Read... [10:20:05]*** Stop cut motor [10:20:05]*** Cut end [10:20:05]Read from MH i2c: 01 07 00 [10:20:05]MH_I2C_Read... [10:20:05]Read from MH i2c: 01 07 00 61 2E 00 00 00 00 00 FF 0F A4 [10:20:05]process_action close_receipt done [10:20:05]requested_data is exist [10:20:05]produce_requested_data [10:20:05]requested_item fm.sn is exist - process it [10:20:05]wFMCommunicate request_size=4 [10:20:05]MH_SAM_APDU [10:20:05]CAPDU: 80 11 00 00 [10:20:05]Write to MH i2c: E2 08 00 62 2E 80 11 00 00 00 00 00 00 0A [10:20:05]Write i2c OK [10:20:05]MH_I2C_Read... [10:20:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:05]Read from MH i2c: E2 [10:20:05]MH_I2C_Read... [10:20:05]Read from MH i2c: E2 17 00 [10:20:05]MH_I2C_Read... [10:20:05]Read from MH i2c: E2 17 00 62 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 59 [10:20:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:20:05]wFMCommunicate OK [10:20:05]requested_item fd.num is exist - process it [10:20:05]SAM_PROTO_GetFieldsCounters [10:20:05]wFMCommunicate request_size=4 [10:20:05]MH_SAM_APDU [10:20:05]CAPDU: 80 13 00 00 [10:20:05]Write to MH i2c: E2 08 00 63 2E 80 13 00 00 00 00 00 00 0D [10:20:05]Write i2c OK [10:20:05]MH_I2C_Read... [10:20:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:05]Read from MH i2c: E2 [10:20:05]MH_I2C_Read... [10:20:05]Read from MH i2c: E2 62 00 [10:20:05]MH_I2C_Read... [10:20:05]Read from MH i2c: E2 62 00 63 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C9 70 00 00 0E 04 04 00 73 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 E7 [10:20:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 C9 70 00 00 0E 04 04 00 73 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:20:05]wFMCommunicate OK [10:20:05]SAM_PROTO_GetFieldsCounters done [10:20:05]requested_item shift.num is exist - process it [10:20:05]requested_item shift.opened is exist - process it [10:20:05]req_shift_opened [10:20:05]FM_GetShiftState [10:20:05]SAM_PROTO_GetShiftState [10:20:05]wFMCommunicate request_size=4 [10:20:05]MH_SAM_APDU [10:20:05]CAPDU: 80 13 01 00 [10:20:05]Write to MH i2c: E2 08 00 64 2E 80 13 01 00 00 00 00 00 0F [10:20:05]Write i2c OK [10:20:05]MH_I2C_Read... [10:20:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:05]Read from MH i2c: E2 [10:20:05]MH_I2C_Read... [10:20:05]Read from MH i2c: E2 0E 00 [10:20:05]MH_I2C_Read... [10:20:05]Read from MH i2c: E2 0E 00 64 2E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 28 [10:20:05]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:20:05]wFMCommunicate OK [10:20:05]SAM_PROTO_GetShiftState done [10:20:05]FM_GetShiftState done [10:20:05]req_shift_opened done [10:20:05]requested_item shift.open_date is exist - process it [10:20:05]req_shift_open_date [10:20:05]req_shift_open_date done [10:20:05]produce_requested_data done [10:20:05]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28873,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [10:20:05]process_action_free close_receipt [10:20:05]json_value_free [10:20:05]json_value_free done [10:20:05]process_json_proto returns [10:20:05]Send response to host [10:20:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28873,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [10:20:05]free response buf [10:20:05]execute_script done [10:20:05]execute_script returns [10:20:05]free content buf [10:20:05]Sock 9.Close socket [10:20:05]Sock 9.Thread stoped [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:14]OFD Sender: No OFD packet to send [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:34]OFD Sender: No OFD packet to send [10:23:39]OFD Sender: No OFD packet to send [10:23:44]OFD Sender: No OFD packet to send [10:23:49]OFD Sender: No OFD packet to send [10:23:54]OFD Sender: No OFD packet to send [10:23:59]OFD Sender: No OFD packet to send [10:24:04]OFD Sender: No OFD packet to send [10:24:09]OFD Sender: No OFD packet to send [10:24:14]OFD Sender: No OFD packet to send [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:24]OFD Sender: No OFD packet to send [10:27:29]OFD Sender: No OFD packet to send [10:27:34]OFD Sender: No OFD packet to send [10:27:39]OFD Sender: No OFD packet to send [10:27:44]OFD Sender: No OFD packet to send [10:27:49]OFD Sender: No OFD packet to send [10:27:54]OFD Sender: No OFD packet to send [10:27:59]OFD Sender: No OFD packet to send [10:28:04]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28:24]OFD Sender: No OFD packet to send [10:28:28]accept exits with 7 [10:28:28]New connection [10:28:28]New thread 3066785124 created [10:28:28]Thread 3066928484 joined [10:28:28]Waiting for new connection... [10:28:28] Sock 7.Parse request [10:28:28]Sock 7.Check first char [10:28:28]Sock 7.First char is OK [10:28:28]request: POST /json_proto HTTP/1.0 [10:28:28]Method: POST [10:28:28]URL: /json_proto [10:28:28]Method is POST - this is cgi request [10:28:28]url: /json_proto [10:28:28]query_string will be loaded in cgi processing [10:28:28]execute_cgi json_proto POST (null) [10:28:28]execute_cgi path=json_proto method=POST [10:28:28]POST find Content-Length [10:28:28]Host: 172.17.33.3:8080 [10:28:28]Content-Length: 681 [10:28:28]Content-Type: application/json [10:28:28] [10:28:28]POST finish read [10:28:28]Found Content-Length = 681 [10:28:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 15.200, "sum" : 500.08, "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:28:28]execute_script... [10:28: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)347226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 15.200, "sum" : 500.08, "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:28:28]POST & json_proto [10:28:28]process_json_proto [10:28:28]json parsed OK: [10:28:28]protocol is kg_v1.0 [10:28:28]action value=close_receipt [10:28:28]process_action close_receipt [10:28:28]cmd_close_receipt [10:28:28]MH_GetDate [10:28:28]Write to MH i2c: F0 00 00 65 2E 82 [10:28:28]Write i2c OK [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: F0 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: F0 09 00 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: F0 09 00 65 2E 00 50 5E 1A 66 23 5B 8F 65 2B [10:28:28]GetLastDocTimeStamp 1713003605 [10:28:28]current date 1713004112 [10:28:28]FM_GetShiftState [10:28:28]SAM_PROTO_GetShiftState [10:28:28]wFMCommunicate request_size=4 [10:28:28]MH_SAM_APDU [10:28:28]CAPDU: 80 13 01 00 [10:28:28]Write to MH i2c: E2 08 00 66 2E 80 13 01 00 00 00 00 00 11 [10:28:28]Write i2c OK [10:28:28]MH_I2C_Read... [10:28:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:28]Read from MH i2c: E2 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: E2 0E 00 [10:28:28]MH_I2C_Read... [10:28:28]Read from MH i2c: E2 0E 00 66 2E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 2A [10:28:28]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:28:28]wFMCommunicate OK [10:28:28]SAM_PROTO_GetShiftState done [10:28:28]FM_GetShiftState done [10:28:28]opened in 1712967615 [10:28:28]opened+sec_in_day 1713054015 [10:28:28]quantity*price = 50008 [10:28:28]sum+1 = 50009 [10:28:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 81 13.04.2024 10:28 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28874 ФПД: 156016209008827 1/tax-web-control/client/api/v1/ticket?date=20240413T102832&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28874&fm=156016209008827&tin=02508201610067®Number=0000138879044617&sum=50000 [10:28:29]StoreToDocumentArchive [10:28:29]shift 115 fd 28874 [10:28:29]save to /storage/0115/doc_00028874 [10:28:29]save last doc name /storage/0115/doc_00028874 to /storage/kkm_last_doc_name [10:28:29]save OK [10:28:29]Clear old archive folders... [10:28:29]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:28:29]tlvbuf is 012860F0 [10:28:29]SAM_PROTO_ClearQueue [10:28:29]wFMCommunicate request_size=4 [10:28:29]MH_SAM_APDU [10:28:29]CAPDU: 80 09 00 00 [10:28:29]Write to MH i2c: E2 08 00 73 2E 80 09 00 00 00 00 00 00 13 [10:28:29]Write i2c OK [10:28:29]MH_I2C_Read... [10:28:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:29]Read from MH i2c: E2 [10:28:29]MH_I2C_Read... [10:28:29]Read from MH i2c: E2 03 00 [10:28:29]MH_I2C_Read... [10:28:29]Read from MH i2c: E2 03 00 73 2E 00 90 00 15 [10:28:29]RAPDU: 90 00 [10:28:29]wFMCommunicate OK [10:28:29]SAM_PROTO_ClearQueue done [10:28:29]KKMCreateOFDPacket [10:28:29]OFDProtocolAddRootSTLVToBuf [10:28:29]FM_MakeSignedData [10:28:29]FM_MakeSignedData [10:28:29]SAM_PROTO_SignData [10:28:29]wFMCommunicate request_size=4 [10:28:29]MH_SAM_APDU [10:28:29]CAPDU: 80 0D 01 02 [10:28:29]Write to MH i2c: E2 08 00 74 2E 80 0D 01 02 00 00 00 00 1B [10:28:29]Write i2c OK [10:28:29]MH_I2C_Read... [10:28:29]OFD Sender: No OFD packet to send [10:28:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:29]Read from MH i2c: E2 [10:28:29]MH_I2C_Read... [10:28:29]Read from MH i2c: E2 03 00 [10:28:29]MH_I2C_Read... [10:28:29]Read from MH i2c: E2 03 00 74 2E 00 90 00 16 [10:28:29]RAPDU: 90 00 [10:28:29]wFMCommunicate OK [10:28:29]wFMCommunicate request_size=255 [10:28:29]MH_SAM_APDU [10:28:29]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 51 00 00 00 F4 03 04 00 50 5E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CA 70 00 00 35 04 06 00 8D E5 [10:28:29]Write to MH i2c: E2 02 01 75 2E 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 51 00 00 00 F4 03 04 00 50 5E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CA 70 00 00 35 04 06 00 8D E5 00 00 E0 [10:28:29]Write i2c OK [10:28:29]MH_I2C_Read... [10:28:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:30]Read from MH i2c: E2 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 03 00 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 03 00 75 2E 00 90 00 17 [10:28:30]RAPDU: 90 00 [10:28:30]wFMCommunicate OK [10:28:30]wFMCommunicate request_size=9 [10:28:30]MH_SAM_APDU [10:28:30]CAPDU: 80 0D 02 02 04 5A B7 98 BB [10:28:30]Write to MH i2c: E2 0C 00 76 2E 80 0D 02 02 04 00 5A B7 98 BB 00 00 8A [10:28:30]Write i2c OK [10:28:30]MH_I2C_Read... [10:28:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:30]Read from MH i2c: E2 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 03 00 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 03 00 76 2E 00 90 00 18 [10:28:30]RAPDU: 90 00 [10:28:30]wFMCommunicate OK [10:28:30]wFMCommunicate request_size=4 [10:28:30]MH_SAM_APDU [10:28:30]CAPDU: 80 0D 03 02 [10:28:30]Write to MH i2c: E2 08 00 77 2E 80 0D 03 02 00 00 00 00 20 [10:28:30]Write i2c OK [10:28:30]MH_I2C_Read... [10:28:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:30]Read from MH i2c: E2 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 0B 00 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 0B 00 77 2E 00 FC 15 19 E5 F4 F4 CC D0 90 00 B4 [10:28:30]RAPDU: FC 15 19 E5 F4 F4 CC D0 90 00 [10:28:30]wFMCommunicate OK [10:28:30]SAM_PROTO_SignData done [10:28:30]FM_MakeSignedData done [10:28:30]CreateOFDProtocolMessage [10:28:30]wFMCommunicate request_size=4 [10:28:30]MH_SAM_APDU [10:28:30]CAPDU: 80 11 00 00 [10:28:30]Write to MH i2c: E2 08 00 78 2E 80 11 00 00 00 00 00 00 20 [10:28:30]Write i2c OK [10:28:30]MH_I2C_Read... [10:28:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:30]Read from MH i2c: E2 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 17 00 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 17 00 78 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6F [10:28:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:28:30]wFMCommunicate OK [10:28:30]CreateOFDProtocolMessage done [10:28:30]OFDSenderStorePacket 28874 [10:28:30]StoreOFDPacket docnum=28874 [10:28:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 5B E2 06 01 17 B1 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 51 00 00 00 F4 03 04 00 50 5E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CA 70 00 00 35 04 06 00 8D E5 5A B7 98 BB FC 15 19 E5 F4 F4 CC D0 [10:28:30]CheckFolder [10:28:30]dirname=/storage/ofd_packets [10:28:30]CheckFolder done [10:28:30]ProducePacketName [10:28:30]name=ofd_packets/00028874 [10:28:30]NVStorageSaveData ofd_packets/00028874 [10:28:30]File name is /storage/ofd_packets/00028874 [10:28:30]Write 300 bytes [10:28:30]NVStorageSaveData done [10:28:30]OFDSenderStorePacket done [10:28:30]KKMCreateOFDPacket done [10:28:30]NVStorageSaveData kkm_last_timestamp [10:28:30]File name is /storage/kkm_last_timestamp [10:28:30]Write 4 bytes [10:28:30]NVStorageSaveData done [10:28:30]ExternCall_PrintAddStr [10:28:30]wPrintStart [10:28:30]Write to MH i2c: 01 00 00 79 2E A7 [10:28:30]Write i2c OK [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: 01 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: 01 07 00 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: 01 07 00 79 2E 00 00 00 00 00 FF 0F BC [10:28:30]RasterBufferAndPrint [10:28:30]line Счет N : (1)347226 [10:28:30]line ИНН: 02508201610067 [10:28:30]line Контрольно-Кассовый Чек [10:28:30]line ПРОДАЖА [10:28:30]line ТРК (МРК, ГНК) : 71 [10:28:30]line Товар: 2711129700 [10:28:30]line ГАЗ-К-5 [10:28:30]line 15.200 * 32.90 [10:28:30]line = 500.08 [10:28:30]line НДС 12% НСП 1% [10:28:30]line > о реализуемом товаре [10:28:30]line ОКРУГЛЕНИЕ: -0.08 [10:28:30]line ИТОГО: 500.00 [10:28:30]line Внесено: 500.00 [10:28:30]line СДАЧА: 0.00 [10:28:30]line НСП 1% : 4.42 [10:28:30]line НДС 12% : 53.11 [10:28:30]line Наличными: 500.00 [10:28:30]line Безнал.: 0.00 [10:28:30]line Место: АЗС № 108 "Партнер Нефть" [10:28:30]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:28:30]line СНО: Общий режим [10:28:30]line Чек 81 13.04.2024 10:28 [10:28:30]line Смена: 115 ФФД: 1.0 [10:28:30]line ЗНМ: 0300000027 [10:28:30]line РНМ: 0000138879044617 [10:28:30]line Версия ККМ: 001 [10:28:30]line ФМ: 0000000000963154 [10:28:30]line ФД: 28874 [10:28:30]line ФПД: 156016209008827 [10:28:30]line 1/tax-web-control/client/api/v1/ticket?date=20240413T102832&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28874&fm=156016209008827&tin=02508201610067®Number=0000138879044617&sum=50000 [10:28:30]OFD Sender: Processing packet 28874 [packets to send 8, broken 7] [10:28:30]ProducePacketName [10:28:30]name=ofd_packets/00028874 [10:28:30]OFD Sender: To server: pG, [10:28:30]CommunicateWithHost lk.salyk.kg:30040 [10:28:30]ConnectInit lk.salyk.kg [10:28:30]written 0, free lines is 4095 [10:28:30]Connected sock=10 [10:28: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 31 35 34 0E 01 00 00 5B E2 06 01 17 B1 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 51 00 00 00 F4 03 04 00 50 5E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CA 70 00 00 35 04 06 00 8D E5 5A B7 98 BB FC 15 19 E5 F4 F4 CC D0 [10:28:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 17 1E 47 00 58 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 31 35 34 10 04 04 00 CA 70 00 00 F4 03 04 00 F8 08 1A 66 B6 04 01 00 00 D4 49 1F 0D C6 31 8C 08 [10:28:30]CommunicateWithHost err = 0 [10:28:30]CheckOFDResponse [10:28:30]1017 (14) - 77093643461234 [10:28:30]1041 (16) - 0000000000963154 [10:28:30]1040 (4) - 28874 [10:28:30]1012 (4) - 13.04.2024 04:24 [10:28:30]1206 (1) - 0 [10:28:30]OFD Sender: Remove packet 28874 [10:28:30]ProducePacketName [10:28:30]name=ofd_packets/00028874 [10:28:30]NVStorageDeleteData [10:28:31]Write to MH i2c: 01 00 00 A3 2E D1 [10:28:31]Write i2c OK [10:28:31]MH_I2C_Read... [10:28:31]Read from MH i2c: 01 [10:28:31]MH_I2C_Read... [10:28:31]Read from MH i2c: 01 07 00 [10:28:31]MH_I2C_Read... [10:28:31]Read from MH i2c: 01 07 00 A3 2E 00 00 00 00 00 B9 0C 9D [10:28:31]RasterBufferAndPrint [10:28:31]line [10:28:31]line [10:28:31]line [10:28:31]line [10:28:31]line [10:28:31]written 0, free lines is 3260 [10:28:31]MH_Cut [10:28:31]Write to MH i2c: D1 01 00 AA 2E 01 AA [10:28:31]Write i2c OK [10:28:31]MH_I2C_Read... [10:28:31]Read from MH i2c: D1 [10:28:31]MH_I2C_Read... [10:28:31]Read from MH i2c: D1 01 00 [10:28:31]MH_I2C_Read... [10:28:31]Read from MH i2c: D1 01 00 AA 2E 00 A9 [10:28:31]Write to MH i2c: 01 00 00 AB 2E D9 [10:28:31]Write i2c OK [10:28:31]MH_I2C_Read... [10:28:31]OFD Sender: No OFD packet to send [10:28:31]*** Cut start [10:28:31]*** Partial cut [10:28:31]*** CUTSNS_PIN = 1 [10:28:31]*** CUTSNS_PIN = 0 [10:28:32]*** Brake cut motor [10:28:32]Read from MH i2c: 01 [10:28:32]MH_I2C_Read... [10:28:32]*** Stop cut motor [10:28:32]*** Cut end [10:28:32]Read from MH i2c: 01 07 00 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: 01 07 00 AB 2E 00 00 00 00 00 FF 0F EE [10:28:32]process_action close_receipt done [10:28:32]requested_data is exist [10:28:32]produce_requested_data [10:28:32]requested_item fm.sn is exist - process it [10:28:32]wFMCommunicate request_size=4 [10:28:32]MH_SAM_APDU [10:28:32]CAPDU: 80 11 00 00 [10:28:32]Write to MH i2c: E2 08 00 AC 2E 80 11 00 00 00 00 00 00 54 [10:28:32]Write i2c OK [10:28:32]MH_I2C_Read... [10:28:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:32]Read from MH i2c: E2 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: E2 17 00 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: E2 17 00 AC 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A3 [10:28:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:28:32]wFMCommunicate OK [10:28:32]requested_item fd.num is exist - process it [10:28:32]SAM_PROTO_GetFieldsCounters [10:28:32]wFMCommunicate request_size=4 [10:28:32]MH_SAM_APDU [10:28:32]CAPDU: 80 13 00 00 [10:28:32]Write to MH i2c: E2 08 00 AD 2E 80 13 00 00 00 00 00 00 57 [10:28:32]Write i2c OK [10:28:32]MH_I2C_Read... [10:28:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:32]Read from MH i2c: E2 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: E2 62 00 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: E2 62 00 AD 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CA 70 00 00 0E 04 04 00 73 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 35 [10:28: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CA 70 00 00 0E 04 04 00 73 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:28:32]wFMCommunicate OK [10:28:32]SAM_PROTO_GetFieldsCounters done [10:28:32]requested_item shift.num is exist - process it [10:28:32]requested_item shift.opened is exist - process it [10:28:32]req_shift_opened [10:28:32]FM_GetShiftState [10:28:32]SAM_PROTO_GetShiftState [10:28:32]wFMCommunicate request_size=4 [10:28:32]MH_SAM_APDU [10:28:32]CAPDU: 80 13 01 00 [10:28:32]Write to MH i2c: E2 08 00 AE 2E 80 13 01 00 00 00 00 00 59 [10:28:32]Write i2c OK [10:28:32]MH_I2C_Read... [10:28:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:32]Read from MH i2c: E2 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: E2 0E 00 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: E2 0E 00 AE 2E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 72 [10:28:32]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:28:32]wFMCommunicate OK [10:28:32]SAM_PROTO_GetShiftState done [10:28:32]FM_GetShiftState done [10:28:32]req_shift_opened done [10:28:32]requested_item shift.open_date is exist - process it [10:28:32]req_shift_open_date [10:28:32]req_shift_open_date done [10:28:32]produce_requested_data done [10:28:32]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28874,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [10:28:32]process_action_free close_receipt [10:28:32]json_value_free [10:28:32]json_value_free done [10:28:32]process_json_proto returns [10:28:32]Send response to host [10:28:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28874,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [10:28:32]free response buf [10:28:32]execute_script done [10:28:32]execute_script returns [10:28:32]free content buf [10:28:32]Sock 7.Close socket [10:28:32]Sock 7.Thread stoped [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:11]OFD Sender: No OFD packet to send [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:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:13]accept exits with 9 [10:32:13]New connection [10:32:13]New thread 3066928484 created [10:32:13]Thread 3066785124 joined [10:32:13]Waiting for new connection... [10:32:13] Sock 9.Parse request [10:32:13]Sock 9.Check first char [10:32:13]Sock 9.First char is OK [10:32:13]request: POST /json_proto HTTP/1.0 [10:32:13]Method: POST [10:32:13]URL: /json_proto [10:32:13]Method is POST - this is cgi request [10:32:13]url: /json_proto [10:32:13]query_string will be loaded in cgi processing [10:32:13]execute_cgi json_proto POST (null) [10:32:13]execute_cgi path=json_proto method=POST [10:32:13]POST find Content-Length [10:32:13]Host: 172.17.33.3:8080 [10:32:13]Content-Length: 843 [10:32:13]Content-Type: application/json [10:32:13] [10:32:13]POST finish read [10:32:13]Found Content-Length = 843 [10:32:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347227", "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" : 64.30, "quantity" : 23.330, "sum" : 1500.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:13]execute_script... [10: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)347227", "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" : 64.30, "quantity" : 23.330, "sum" : 1500.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:13]POST & json_proto [10:32:13]process_json_proto [10:32:13]json parsed OK: [10:32:13]protocol is kg_v1.0 [10:32:13]action value=close_receipt [10:32:13]process_action close_receipt [10:32:13]cmd_close_receipt [10:32:13]MH_GetDate [10:32:13]Write to MH i2c: F0 00 00 AF 2E CC [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: F0 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: F0 09 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: F0 09 00 AF 2E 00 31 5F 1A 66 23 5B 8F 65 57 [10:32:13]GetLastDocTimeStamp 1713004112 [10:32:13]current date 1713004337 [10:32:13]FM_GetShiftState [10:32:13]SAM_PROTO_GetShiftState [10:32:13]wFMCommunicate request_size=4 [10:32:13]MH_SAM_APDU [10:32:13]CAPDU: 80 13 01 00 [10:32:13]Write to MH i2c: E2 08 00 B0 2E 80 13 01 00 00 00 00 00 5B [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:13]Read from MH i2c: E2 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 0E 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 0E 00 B0 2E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 74 [10:32:13]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:32:13]wFMCommunicate OK [10:32:13]SAM_PROTO_GetShiftState done [10:32:13]FM_GetShiftState done [10:32:13]opened in 1712967615 [10:32:13]opened+sec_in_day 1713054015 [10:32:13]quantity*price = 150011 [10:32:13]sum+1 = 150013 [10:32:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.12 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 0.00 Безнал.: 1500.12 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 82 13.04.2024 10:32 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28875 ФПД: 206012608065844 1/tax-web-control/client/api/v1/ticket?date=20240413T103217&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28875&fm=206012608065844&tin=02508201610067®Number=0000138879044617&sum=150012 [10:32:14]StoreToDocumentArchive [10:32:14]shift 115 fd 28875 [10:32:14]save to /storage/0115/doc_00028875 [10:32:14]save last doc name /storage/0115/doc_00028875 to /storage/kkm_last_doc_name [10:32:14]save OK [10:32:14]Clear old archive folders... [10:32:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:14]tlvbuf is B6F4F060 [10:32:14]SAM_PROTO_ClearQueue [10:32:14]wFMCommunicate request_size=4 [10:32:14]MH_SAM_APDU [10:32:14]CAPDU: 80 09 00 00 [10:32:14]Write to MH i2c: E2 08 00 BD 2E 80 09 00 00 00 00 00 00 5D [10:32:14]Write i2c OK [10:32:14]MH_I2C_Read... [10:32:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:14]Read from MH i2c: E2 [10:32:14]MH_I2C_Read... [10:32:14]Read from MH i2c: E2 03 00 [10:32:14]MH_I2C_Read... [10:32:14]Read from MH i2c: E2 03 00 BD 2E 00 90 00 5F [10:32:14]RAPDU: 90 00 [10:32:14]wFMCommunicate OK [10:32:14]SAM_PROTO_ClearQueue done [10:32:14]KKMCreateOFDPacket [10:32:14]OFDProtocolAddRootSTLVToBuf [10:32:14]FM_MakeSignedData [10:32:14]FM_MakeSignedData [10:32:14]SAM_PROTO_SignData [10:32:14]wFMCommunicate request_size=4 [10:32:14]MH_SAM_APDU [10:32:14]CAPDU: 80 0D 01 02 [10:32:14]Write to MH i2c: E2 08 00 BE 2E 80 0D 01 02 00 00 00 00 65 [10:32:14]Write i2c OK [10:32:14]MH_I2C_Read... [10:32:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:14]Read from MH i2c: E2 [10:32:14]MH_I2C_Read... [10:32:14]Read from MH i2c: E2 03 00 [10:32:14]MH_I2C_Read... [10:32:14]Read from MH i2c: E2 03 00 BE 2E 00 90 00 60 [10:32:14]RAPDU: 90 00 [10:32:14]wFMCommunicate OK [10:32:14]wFMCommunicate request_size=255 [10:32:14]MH_SAM_APDU [10:32: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 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 31 5F 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CB 70 00 00 35 04 06 00 BB [10:32:14]Write to MH i2c: E2 02 01 BF 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 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 31 5F 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CB 70 00 00 35 04 06 00 BB 00 00 8C [10:32:14]Write i2c OK [10:32:14]MH_I2C_Read... [10:32:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:15]Read from MH i2c: E2 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 03 00 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 03 00 BF 2E 00 90 00 61 [10:32:15]RAPDU: 90 00 [10:32:15]wFMCommunicate OK [10:32:15]wFMCommunicate request_size=10 [10:32:15]MH_SAM_APDU [10:32:15]CAPDU: 80 0D 02 02 05 5E 0C 52 B1 34 [10:32:15]Write to MH i2c: E2 0D 00 C0 2E 80 0D 02 02 05 00 5E 0C 52 B1 34 00 00 13 [10:32:15]Write i2c OK [10:32:15]MH_I2C_Read... [10:32:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:15]Read from MH i2c: E2 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 03 00 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 03 00 C0 2E 00 90 00 62 [10:32:15]RAPDU: 90 00 [10:32:15]wFMCommunicate OK [10:32:15]wFMCommunicate request_size=4 [10:32:15]MH_SAM_APDU [10:32:15]CAPDU: 80 0D 03 02 [10:32:15]Write to MH i2c: E2 08 00 C1 2E 80 0D 03 02 00 00 00 00 6A [10:32:15]Write i2c OK [10:32:15]MH_I2C_Read... [10:32:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:15]Read from MH i2c: E2 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 0B 00 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 0B 00 C1 2E 00 A4 37 3C 0E BE 32 E2 06 90 00 68 [10:32:15]RAPDU: A4 37 3C 0E BE 32 E2 06 90 00 [10:32:15]wFMCommunicate OK [10:32:15]SAM_PROTO_SignData done [10:32:15]FM_MakeSignedData done [10:32:15]CreateOFDProtocolMessage [10:32:15]wFMCommunicate request_size=4 [10:32:15]MH_SAM_APDU [10:32:15]CAPDU: 80 11 00 00 [10:32:15]Write to MH i2c: E2 08 00 C2 2E 80 11 00 00 00 00 00 00 6A [10:32:15]Write i2c OK [10:32:15]MH_I2C_Read... [10:32:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:15]Read from MH i2c: E2 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 17 00 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 17 00 C2 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B9 [10:32:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:32:15]wFMCommunicate OK [10:32:15]CreateOFDProtocolMessage done [10:32:15]OFDSenderStorePacket 28875 [10:32:15]StoreOFDPacket docnum=28875 [10:32:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 BF AE 07 01 CC 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 31 5F 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CB 70 00 00 35 04 06 00 BB 5E 0C 52 B1 34 A4 37 3C 0E BE 32 E2 06 [10:32:15]CheckFolder [10:32:15]dirname=/storage/ofd_packets [10:32:15]CheckFolder done [10:32:15]ProducePacketName [10:32:15]name=ofd_packets/00028875 [10:32:15]NVStorageSaveData ofd_packets/00028875 [10:32:15]File name is /storage/ofd_packets/00028875 [10:32:15]Write 301 bytes [10:32:15]NVStorageSaveData done [10:32:15]OFDSenderStorePacket done [10:32:15]KKMCreateOFDPacket done [10:32:15]NVStorageSaveData kkm_last_timestamp [10:32:15]File name is /storage/kkm_last_timestamp [10:32:15]Write 4 bytes [10:32:15]NVStorageSaveData done [10:32:15]ExternCall_PrintAddStr [10:32:15]wPrintStart [10:32:15]Write to MH i2c: 01 00 00 C3 2E F1 [10:32:15]Write i2c OK [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: 01 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: 01 07 00 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: 01 07 00 C3 2E 00 00 00 00 00 FF 0F 06 [10:32:15]RasterBufferAndPrint [10:32:15]line Счет N : (1)347227 [10:32:15]line ИНН: 02508201610067 [10:32:15]line Контрольно-Кассовый Чек [10:32:15]line ПРОДАЖА [10:32:15]line ТРК (МРК, ГНК) : 32 [10:32:15]line Товар: 2710124130 [10:32:15]line Аи-92-К-5 [10:32:15]line 23.330 * 64.30 [10:32:15]line = 1500.12 [10:32:15]line НДС 12% НСП 1% [10:32:15]line > о реализуемом товаре [10:32:15]line ИТОГО: 1500.12 [10:32:15]line НСП 1% : 13.27 [10:32:15]line НДС 12% : 159.30 [10:32:15]line Наличными: 0.00 [10:32:15]line Безнал.: 1500.12 [10:32:15]line Место: АЗС № 108 "Партнер Нефть" [10:32:15]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:32:15]line СНО: Общий режим [10:32:15]line Чек 82 13.04.2024 10:32 [10:32:15]line Смена: 115 ФФД: 1.0 [10:32:15]line ЗНМ: 0300000027 [10:32:15]line РНМ: 0000138879044617 [10:32:15]line Версия ККМ: 001 [10:32:15]line Платежная система: АКБ Кыргызстан [10:32:15]line ФМ: 0000000000963154 [10:32:15]line ФД: 28875 [10:32:15]line ФПД: 206012608065844 [10:32:15]line 1/tax-web-control/client/api/v1/ticket?date=20240413T103217&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28875&fm=206012608065844&tin=02508201610067®Number=0000138879044617&sum=150012 [10:32:15]OFD Sender: Processing packet 28875 [packets to send 8, broken 7] [10:32:15]ProducePacketName [10:32:15]name=ofd_packets/00028875 [10:32:15]OFD Sender: To server: pG, [10:32:15]CommunicateWithHost lk.salyk.kg:30040 [10:32:15]ConnectInit lk.salyk.kg [10:32:15]written 0, free lines is 4095 [10:32:15]Connected sock=10 [10: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 31 35 34 0F 01 00 00 BF AE 07 01 CC 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 31 5F 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CB 70 00 00 35 04 06 00 BB 5E 0C 52 B1 34 A4 37 3C 0E BE 32 E2 06 [10:32:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C3 96 47 00 0C 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 31 35 34 10 04 04 00 CB 70 00 00 F4 03 04 00 D9 09 1A 66 B6 04 01 00 00 83 FD 28 7E 5E D3 CB 85 [10:32:15]CommunicateWithHost err = 0 [10:32:15]CheckOFDResponse [10:32:15]1017 (14) - 77093643461234 [10:32:15]1041 (16) - 0000000000963154 [10:32:15]1040 (4) - 28875 [10:32:15]1012 (4) - 13.04.2024 04:28 [10:32:15]1206 (1) - 0 [10:32:15]OFD Sender: Remove packet 28875 [10:32:15]ProducePacketName [10:32:15]name=ofd_packets/00028875 [10:32:15]NVStorageDeleteData [10:32:15]Write to MH i2c: 01 00 00 EC 2E 1A [10:32:15]Write i2c OK [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: 01 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: 01 07 00 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: 01 07 00 EC 2E 00 00 00 00 00 DB 0C 08 [10:32:15]RasterBufferAndPrint [10:32:15]line [10:32:15]line [10:32:15]line [10:32:15]line [10:32:15]line [10:32:15]written 0, free lines is 3298 [10:32:15]MH_Cut [10:32:15]Write to MH i2c: D1 01 00 F3 2E 01 F3 [10:32:15]Write i2c OK [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: D1 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: D1 01 00 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: D1 01 00 F3 2E 00 F2 [10:32:15]Write to MH i2c: 01 00 00 F4 2E 22 [10:32:15]Write i2c OK [10:32:15]MH_I2C_Read... [10:32:16]OFD Sender: No OFD packet to send [10:32:16]*** Cut start [10:32:16]*** Partial cut [10:32:16]*** CUTSNS_PIN = 1 [10:32:16]*** CUTSNS_PIN = 0 [10:32:17]*** Brake cut motor [10:32:17]Read from MH i2c: 01 [10:32:17]MH_I2C_Read... [10:32:17]*** Stop cut motor [10:32:17]*** Cut end [10:32:17]Read from MH i2c: 01 07 00 [10:32:17]MH_I2C_Read... [10:32:17]Read from MH i2c: 01 07 00 F4 2E 00 00 00 00 00 FF 0F 37 [10:32:17]process_action close_receipt done [10:32:17]requested_data is exist [10:32:17]produce_requested_data [10:32:17]requested_item fm.sn is exist - process it [10:32:17]wFMCommunicate request_size=4 [10:32:17]MH_SAM_APDU [10:32:17]CAPDU: 80 11 00 00 [10:32:17]Write to MH i2c: E2 08 00 F5 2E 80 11 00 00 00 00 00 00 9D [10:32:17]Write i2c OK [10:32:17]MH_I2C_Read... [10:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:17]Read from MH i2c: E2 [10:32:17]MH_I2C_Read... [10:32:17]Read from MH i2c: E2 17 00 [10:32:17]MH_I2C_Read... [10:32:17]Read from MH i2c: E2 17 00 F5 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EC [10:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:32:17]wFMCommunicate OK [10:32:17]requested_item fd.num is exist - process it [10:32:17]SAM_PROTO_GetFieldsCounters [10:32:17]wFMCommunicate request_size=4 [10:32:17]MH_SAM_APDU [10:32:17]CAPDU: 80 13 00 00 [10:32:17]Write to MH i2c: E2 08 00 F6 2E 80 13 00 00 00 00 00 00 A0 [10:32:17]Write i2c OK [10:32:17]MH_I2C_Read... [10:32:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:17]Read from MH i2c: E2 [10:32:17]MH_I2C_Read... [10:32:17]Read from MH i2c: E2 62 00 [10:32:17]MH_I2C_Read... [10:32:17]Read from MH i2c: E2 62 00 F6 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CB 70 00 00 0E 04 04 00 73 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 82 [10: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CB 70 00 00 0E 04 04 00 73 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:32:17]wFMCommunicate OK [10:32:17]SAM_PROTO_GetFieldsCounters done [10:32:17]requested_item shift.num is exist - process it [10:32:17]requested_item shift.opened is exist - process it [10:32:17]req_shift_opened [10:32:17]FM_GetShiftState [10:32:17]SAM_PROTO_GetShiftState [10:32:17]wFMCommunicate request_size=4 [10:32:17]MH_SAM_APDU [10:32:17]CAPDU: 80 13 01 00 [10:32:17]Write to MH i2c: E2 08 00 F7 2E 80 13 01 00 00 00 00 00 A2 [10:32:17]Write i2c OK [10:32:17]MH_I2C_Read... [10:32:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:17]Read from MH i2c: E2 [10:32:17]MH_I2C_Read... [10:32:17]Read from MH i2c: E2 0E 00 [10:32:17]MH_I2C_Read... [10:32:17]Read from MH i2c: E2 0E 00 F7 2E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 BB [10:32:17]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:32:17]wFMCommunicate OK [10:32:17]SAM_PROTO_GetShiftState done [10:32:17]FM_GetShiftState done [10:32:17]req_shift_opened done [10:32:17]requested_item shift.open_date is exist - process it [10:32:17]req_shift_open_date [10:32:17]req_shift_open_date done [10:32:17]produce_requested_data done [10:32:17]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28875,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [10:32:17]process_action_free close_receipt [10:32:17]json_value_free [10:32:17]json_value_free done [10:32:17]process_json_proto returns [10:32:17]Send response to host [10:32:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28875,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [10:32:17]free response buf [10:32:17]execute_script done [10:32:17]execute_script returns [10:32:17]free content buf [10:32:17]Sock 9.Close socket [10:32:17]Sock 9.Thread stoped [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:30]accept exits with 7 [10:32:30]New connection [10:32:30]New thread 3066785124 created [10:32:30]Thread 3066928484 joined [10:32:30]Waiting for new connection... [10:32:30] Sock 7.Parse request [10:32:30]Sock 7.Check first char [10:32:30]Sock 7.First char is OK [10:32:30]request: POST /json_proto HTTP/1.0 [10:32:30]Method: POST [10:32:30]URL: /json_proto [10:32:30]Method is POST - this is cgi request [10:32:30]url: /json_proto [10:32:30]query_string will be loaded in cgi processing [10:32:30]execute_cgi json_proto POST (null) [10:32:30]execute_cgi path=json_proto method=POST [10:32:30]POST find Content-Length [10:32:30]Host: 172.17.33.3:8080 [10:32:30]Content-Length: 1205 [10:32:30]Content-Type: application/json [10:32:30] [10:32:30]POST finish read [10:32:30]Found Content-Length = 1205 [10:32:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347228\u000A13.04.2024 10:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1286.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3859228;3859229\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:30]execute_script... [10:32:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347228\u000A13.04.2024 10:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1286.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3859228;3859229\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:30]POST & json_proto [10:32:30]process_json_proto [10:32:30]json parsed OK: [10:32:30]protocol is kg_v1.0 [10:32:30]action value=print_text [10:32:30]process_action print_text [10:32:30]cmd_print_text [10:32:30]ExternCall_PrintAddStr [10:32:30]wPrintStart [10:32:30]Write to MH i2c: 01 00 00 F8 2E 26 [10:32:30]Write i2c OK [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: 01 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: 01 07 00 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: 01 07 00 F8 2E 00 00 00 00 00 FF 0F 3B [10:32:30]RasterBufferAndPrint [10:32:30]line *****ТОВАРНЫЙ ЧЕК***** [10:32:30]line АЗС 108 [10:32:30]line Партнер нефть [10:32:30]line 02508201610067 [10:32:30]line Кассир : Шадыканова Ж. [10:32:30]line Счет N : (1)347228 [10:32:30]line 13.04.2024 10:14 [10:32:30]line ПРОДАЖА [10:32:30]line ТРК (МРК, ГНК): 13 [10:32:30]line Вид ГСМ : 2710124130 [10:32:30]line Аи-92-К-5 [10:32:30]line 20.000 x 64.30 [10:32:30]line ИТОГ: 1286.00 [10:32:30]line Тип оплаты: Талоны: Партнер нефть [10:32:30]line 3859228;3859229 [10:32:30]line ______________________ [10:32:30]line (подпись) [10:32:30]written 0, free lines is 4095 [10:32:30]Write to MH i2c: 01 00 00 0D 2F 3C [10:32:30]Write i2c OK [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: 01 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: 01 07 00 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: 01 07 00 0D 2F 00 00 00 00 00 FD 0D 4D [10:32:30]RasterBufferAndPrint [10:32:30]line [10:32:30]line [10:32:30]line [10:32:30]line [10:32:30]line [10:32:30]written 0, free lines is 3582 [10:32:30]MH_Cut [10:32:30]Write to MH i2c: D1 01 00 14 2F 01 15 [10:32:30]Write i2c OK [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: D1 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: D1 01 00 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: D1 01 00 14 2F 00 14 [10:32:30]Write to MH i2c: 01 00 00 15 2F 44 [10:32:30]Write i2c OK [10:32:30]MH_I2C_Read... [10:32:31]OFD Sender: No OFD packet to send [10:32:31]*** Cut start [10:32:31]*** Partial cut [10:32:31]*** CUTSNS_PIN = 1 [10:32:31]*** CUTSNS_PIN = 0 [10:32:31]*** Brake cut motor [10:32:32]Read from MH i2c: 01 [10:32:32]MH_I2C_Read... [10:32:32]*** Stop cut motor [10:32:32]*** Cut end [10:32:32]Read from MH i2c: 01 07 00 [10:32:32]MH_I2C_Read... [10:32:32]Read from MH i2c: 01 07 00 15 2F 00 00 00 00 00 FF 0F 59 [10:32:32]process_action print_text done [10:32:32]requested_data is exist [10:32:32]produce_requested_data [10:32:32]requested_item fm.sn is exist - process it [10:32:32]wFMCommunicate request_size=4 [10:32:32]MH_SAM_APDU [10:32:32]CAPDU: 80 11 00 00 [10:32:32]Write to MH i2c: E2 08 00 16 2F 80 11 00 00 00 00 00 00 BF [10:32:32]Write i2c OK [10:32:32]MH_I2C_Read... [10:32:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:32]Read from MH i2c: E2 [10:32:32]MH_I2C_Read... [10:32:32]Read from MH i2c: E2 17 00 [10:32:32]MH_I2C_Read... [10:32:32]Read from MH i2c: E2 17 00 16 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0E [10:32:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:32:32]wFMCommunicate OK [10:32:32]requested_item fd.num is exist - process it [10:32:32]SAM_PROTO_GetFieldsCounters [10:32:32]wFMCommunicate request_size=4 [10:32:32]MH_SAM_APDU [10:32:32]CAPDU: 80 13 00 00 [10:32:32]Write to MH i2c: E2 08 00 17 2F 80 13 00 00 00 00 00 00 C2 [10:32:32]Write i2c OK [10:32:32]MH_I2C_Read... [10:32:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:32]Read from MH i2c: E2 [10:32:32]MH_I2C_Read... [10:32:32]Read from MH i2c: E2 62 00 [10:32:32]MH_I2C_Read... [10:32:32]Read from MH i2c: E2 62 00 17 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CB 70 00 00 0E 04 04 00 73 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 A4 [10:32: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CB 70 00 00 0E 04 04 00 73 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:32:32]wFMCommunicate OK [10:32:32]SAM_PROTO_GetFieldsCounters done [10:32:32]requested_item shift.num is exist - process it [10:32:32]requested_item shift.opened is exist - process it [10:32:32]req_shift_opened [10:32:32]FM_GetShiftState [10:32:32]SAM_PROTO_GetShiftState [10:32:32]wFMCommunicate request_size=4 [10:32:32]MH_SAM_APDU [10:32:32]CAPDU: 80 13 01 00 [10:32:32]Write to MH i2c: E2 08 00 18 2F 80 13 01 00 00 00 00 00 C4 [10:32:32]Write i2c OK [10:32:32]MH_I2C_Read... [10:32:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:32]Read from MH i2c: E2 [10:32:32]MH_I2C_Read... [10:32:32]Read from MH i2c: E2 0E 00 [10:32:32]MH_I2C_Read... [10:32:32]Read from MH i2c: E2 0E 00 18 2F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 DD [10:32:32]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:32:32]wFMCommunicate OK [10:32:32]SAM_PROTO_GetShiftState done [10:32:32]FM_GetShiftState done [10:32:32]req_shift_opened done [10:32:32]requested_item shift.open_date is exist - process it [10:32:32]req_shift_open_date [10:32:32]req_shift_open_date done [10:32:32]produce_requested_data done [10:32:32]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28875,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [10:32:32]process_action_free print_text [10:32:32]json_value_free [10:32:32]json_value_free done [10:32:32]process_json_proto returns [10:32:32]Send response to host [10:32:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28875,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [10:32:32]free response buf [10:32:32]execute_script done [10:32:32]execute_script returns [10:32:32]free content buf [10:32:32]Sock 7.Close socket [10:32:32]Sock 7.Thread stoped [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:23]accept exits with 10 [10:36:23]New connection [10:36:23]New thread 3066928484 created [10:36:23]Thread 3066785124 joined [10:36:23]Waiting for new connection... [10:36:23] Sock 10.Parse request [10:36:23]Sock 10.Check first char [10:36:23]Sock 10.First char is OK [10:36:23]request: POST /json_proto HTTP/1.0 [10:36:23]Method: POST [10:36:23]URL: /json_proto [10:36:23]Method is POST - this is cgi request [10:36:23]url: /json_proto [10:36:23]query_string will be loaded in cgi processing [10:36:23]execute_cgi json_proto POST (null) [10:36:23]execute_cgi path=json_proto method=POST [10:36:23]POST find Content-Length [10:36:23]Host: 172.17.33.3:8080 [10:36:23]Content-Length: 678 [10:36:23]Content-Type: application/json [10:36:23] [10:36:23]POST finish read [10:36:23]Found Content-Length = 678 [10:36:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 14.200, "sum" : 913.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 913.00, "total" : 913.00, "payments": [ { "type": 0, "sum" : 913.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:23]execute_script... [10:36: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)347229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 14.200, "sum" : 913.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 913.00, "total" : 913.00, "payments": [ { "type": 0, "sum" : 913.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:23]POST & json_proto [10:36:23]process_json_proto [10:36:23]json parsed OK: [10:36:23]protocol is kg_v1.0 [10:36:23]action value=close_receipt [10:36:23]process_action close_receipt [10:36:23]cmd_close_receipt [10:36:23]MH_GetDate [10:36:23]Write to MH i2c: F0 00 00 19 2F 37 [10:36:23]Write i2c OK [10:36:23]MH_I2C_Read... [10:36:23]Read from MH i2c: F0 [10:36:23]MH_I2C_Read... [10:36:23]Read from MH i2c: F0 09 00 [10:36:23]MH_I2C_Read... [10:36:23]Read from MH i2c: F0 09 00 19 2F 00 2B 60 1A 66 23 5B 8F 65 BD [10:36:23]GetLastDocTimeStamp 1713004337 [10:36:23]current date 1713004587 [10:36:23]FM_GetShiftState [10:36:23]SAM_PROTO_GetShiftState [10:36:23]wFMCommunicate request_size=4 [10:36:23]MH_SAM_APDU [10:36:23]CAPDU: 80 13 01 00 [10:36:23]Write to MH i2c: E2 08 00 1A 2F 80 13 01 00 00 00 00 00 C6 [10:36:23]Write i2c OK [10:36:23]MH_I2C_Read... [10:36:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:23]Read from MH i2c: E2 [10:36:23]MH_I2C_Read... [10:36:23]Read from MH i2c: E2 0E 00 [10:36:23]MH_I2C_Read... [10:36:23]Read from MH i2c: E2 0E 00 1A 2F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 DF [10:36:23]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:36:23]wFMCommunicate OK [10:36:23]SAM_PROTO_GetShiftState done [10:36:23]FM_GetShiftState done [10:36:23]opened in 1712967615 [10:36:23]opened+sec_in_day 1713054015 [10:36:23]quantity*price = 91306 [10:36:23]sum+1 = 91307 [10:36:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 913.00 Внесено: 913.00 СДАЧА: 0.00 НСП 1% : 8.08 НДС 12% : 96.96 Наличными: 913.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 83 13.04.2024 10:36 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28876 ФПД: 115615404583326 1/tax-web-control/client/api/v1/ticket?date=20240413T103627&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28876&fm=115615404583326&tin=02508201610067®Number=0000138879044617&sum=91300 [10:36:24]StoreToDocumentArchive [10:36:24]shift 115 fd 28876 [10:36:24]save to /storage/0115/doc_00028876 [10:36:24]save last doc name /storage/0115/doc_00028876 to /storage/kkm_last_doc_name [10:36:24]save OK [10:36:24]Clear old archive folders... [10:36:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:24]tlvbuf is 01250E60 [10:36:24]SAM_PROTO_ClearQueue [10:36:24]wFMCommunicate request_size=4 [10:36:24]MH_SAM_APDU [10:36:24]CAPDU: 80 09 00 00 [10:36:24]Write to MH i2c: E2 08 00 27 2F 80 09 00 00 00 00 00 00 C8 [10:36:24]Write i2c OK [10:36:24]MH_I2C_Read... [10:36:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:24]Read from MH i2c: E2 [10:36:24]MH_I2C_Read... [10:36:24]Read from MH i2c: E2 03 00 [10:36:24]MH_I2C_Read... [10:36:24]Read from MH i2c: E2 03 00 27 2F 00 90 00 CA [10:36:24]RAPDU: 90 00 [10:36:24]wFMCommunicate OK [10:36:24]SAM_PROTO_ClearQueue done [10:36:24]KKMCreateOFDPacket [10:36:24]OFDProtocolAddRootSTLVToBuf [10:36:24]FM_MakeSignedData [10:36:24]FM_MakeSignedData [10:36:24]SAM_PROTO_SignData [10:36:24]wFMCommunicate request_size=4 [10:36:24]MH_SAM_APDU [10:36:24]CAPDU: 80 0D 01 02 [10:36:24]Write to MH i2c: E2 08 00 28 2F 80 0D 01 02 00 00 00 00 D0 [10:36:24]Write i2c OK [10:36:24]MH_I2C_Read... [10:36:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:24]Read from MH i2c: E2 [10:36:24]MH_I2C_Read... [10:36:24]Read from MH i2c: E2 03 00 [10:36:24]MH_I2C_Read... [10:36:24]Read from MH i2c: E2 03 00 28 2F 00 90 00 CB [10:36:24]RAPDU: 90 00 [10:36:24]wFMCommunicate OK [10:36:24]wFMCommunicate request_size=255 [10:36:24]MH_SAM_APDU [10:36: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 78 37 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 AA 64 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 64 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 25 00 00 00 00 07 04 06 00 A4 64 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 2B 60 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CC 70 00 00 35 04 06 00 69 [10:36:24]Write to MH i2c: E2 02 01 29 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 78 37 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 AA 64 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 64 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 25 00 00 00 00 07 04 06 00 A4 64 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 2B 60 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CC 70 00 00 35 04 06 00 69 00 00 A4 [10:36:24]Write i2c OK [10:36:24]MH_I2C_Read... [10:36:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:25]Read from MH i2c: E2 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 03 00 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 03 00 29 2F 00 90 00 CC [10:36:25]RAPDU: 90 00 [10:36:25]wFMCommunicate OK [10:36:25]wFMCommunicate request_size=10 [10:36:25]MH_SAM_APDU [10:36:25]CAPDU: 80 0D 02 02 05 26 CF 1E E9 9E [10:36:25]Write to MH i2c: E2 0D 00 2A 2F 80 0D 02 02 05 00 26 CF 1E E9 9E 00 00 77 [10:36:25]Write i2c OK [10:36:25]MH_I2C_Read... [10:36:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:25]Read from MH i2c: E2 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 03 00 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 03 00 2A 2F 00 90 00 CD [10:36:25]RAPDU: 90 00 [10:36:25]wFMCommunicate OK [10:36:25]wFMCommunicate request_size=4 [10:36:25]MH_SAM_APDU [10:36:25]CAPDU: 80 0D 03 02 [10:36:25]Write to MH i2c: E2 08 00 2B 2F 80 0D 03 02 00 00 00 00 D5 [10:36:25]Write i2c OK [10:36:25]MH_I2C_Read... [10:36:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:25]Read from MH i2c: E2 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 0B 00 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 0B 00 2B 2F 00 48 EE 6D 1D 6C FB 77 23 90 00 97 [10:36:25]RAPDU: 48 EE 6D 1D 6C FB 77 23 90 00 [10:36:25]wFMCommunicate OK [10:36:25]SAM_PROTO_SignData done [10:36:25]FM_MakeSignedData done [10:36:25]CreateOFDProtocolMessage [10:36:25]wFMCommunicate request_size=4 [10:36:25]MH_SAM_APDU [10:36:25]CAPDU: 80 11 00 00 [10:36:25]Write to MH i2c: E2 08 00 2C 2F 80 11 00 00 00 00 00 00 D5 [10:36:25]Write i2c OK [10:36:25]MH_I2C_Read... [10:36:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:25]Read from MH i2c: E2 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 17 00 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: E2 17 00 2C 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 24 [10:36:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:36:25]wFMCommunicate OK [10:36:25]CreateOFDProtocolMessage done [10:36:25]OFDSenderStorePacket 28876 [10:36:25]StoreOFDPacket docnum=28876 [10:36:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 99 74 07 01 C3 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 37 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 AA 64 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 64 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 25 00 00 00 00 07 04 06 00 A4 64 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 2B 60 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CC 70 00 00 35 04 06 00 69 26 CF 1E E9 9E 48 EE 6D 1D 6C FB 77 23 [10:36:25]CheckFolder [10:36:25]dirname=/storage/ofd_packets [10:36:25]CheckFolder done [10:36:25]ProducePacketName [10:36:25]name=ofd_packets/00028876 [10:36:25]NVStorageSaveData ofd_packets/00028876 [10:36:25]File name is /storage/ofd_packets/00028876 [10:36:25]Write 301 bytes [10:36:25]NVStorageSaveData done [10:36:25]OFDSenderStorePacket done [10:36:25]KKMCreateOFDPacket done [10:36:25]NVStorageSaveData kkm_last_timestamp [10:36:25]File name is /storage/kkm_last_timestamp [10:36:25]Write 4 bytes [10:36:25]NVStorageSaveData done [10:36:25]ExternCall_PrintAddStr [10:36:25]wPrintStart [10:36:25]Write to MH i2c: 01 00 00 2D 2F 5C [10:36:25]Write i2c OK [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: 01 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: 01 07 00 [10:36:25]MH_I2C_Read... [10:36:25]Read from MH i2c: 01 07 00 2D 2F 00 00 00 00 00 FF 0F 71 [10:36:25]RasterBufferAndPrint [10:36:25]line Счет N : (1)347229 [10:36:25]line ИНН: 02508201610067 [10:36:25]line Контрольно-Кассовый Чек [10:36:25]line ПРОДАЖА [10:36:25]line ТРК (МРК, ГНК) : 23 [10:36:25]line Товар: 2710124130 [10:36:25]line Аи-92-К-5 [10:36:25]line 14.200 * 64.30 [10:36:25]line = 913.06 [10:36:25]line НДС 12% НСП 1% [10:36:25]line > о реализуемом товаре [10:36:25]line ОКРУГЛЕНИЕ: -0.06 [10:36:25]line ИТОГО: 913.00 [10:36:25]line Внесено: 913.00 [10:36:25]line СДАЧА: 0.00 [10:36:25]line НСП 1% : 8.08 [10:36:25]line НДС 12% : 96.96 [10:36:25]line Наличными: 913.00 [10:36:25]line Безнал.: 0.00 [10:36:25]line Место: АЗС № 108 "Партнер Нефть" [10:36:25]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:36:25]line СНО: Общий режим [10:36:25]line Чек 83 13.04.2024 10:36 [10:36:25]line Смена: 115 ФФД: 1.0 [10:36:25]line ЗНМ: 0300000027 [10:36:25]line РНМ: 0000138879044617 [10:36:25]line Версия ККМ: 001 [10:36:25]line ФМ: 0000000000963154 [10:36:25]line ФД: 28876 [10:36:25]line ФПД: 115615404583326 [10:36:25]line 1/tax-web-control/client/api/v1/ticket?date=20240413T103627&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28876&fm=115615404583326&tin=02508201610067®Number=0000138879044617&sum=91300 [10:36:25]OFD Sender: Processing packet 28876 [packets to send 8, broken 7] [10:36:25]ProducePacketName [10:36:25]name=ofd_packets/00028876 [10:36:25]OFD Sender: To server: pG, [10:36:25]CommunicateWithHost lk.salyk.kg:30040 [10:36:25]ConnectInit lk.salyk.kg [10:36:25]written 0, free lines is 4095 [10:36:25]Connected sock=9 [10:36: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 31 35 34 0F 01 00 00 99 74 07 01 C3 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 37 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 AA 64 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 64 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 25 00 00 00 00 07 04 06 00 A4 64 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 2B 60 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CC 70 00 00 35 04 06 00 69 26 CF 1E E9 9E 48 EE 6D 1D 6C FB 77 23 [10:36:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D6 92 47 00 1E 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 31 35 34 10 04 04 00 CC 70 00 00 F4 03 04 00 D3 0A 1A 66 B6 04 01 00 00 66 13 3D 4A AF 1B 2F B8 [10:36:25]CommunicateWithHost err = 0 [10:36:25]CheckOFDResponse [10:36:25]1017 (14) - 77093643461234 [10:36:25]1041 (16) - 0000000000963154 [10:36:25]1040 (4) - 28876 [10:36:25]1012 (4) - 13.04.2024 04:32 [10:36:25]1206 (1) - 0 [10:36:25]OFD Sender: Remove packet 28876 [10:36:25]ProducePacketName [10:36:25]name=ofd_packets/00028876 [10:36:25]NVStorageDeleteData [10:36:26]Write to MH i2c: 01 00 00 57 2F 86 [10:36:26]Write i2c OK [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: 01 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: 01 07 00 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: 01 07 00 57 2F 00 00 00 00 00 C5 0C 5E [10:36:26]RasterBufferAndPrint [10:36:26]line [10:36:26]line [10:36:26]line [10:36:26]line [10:36:26]line [10:36:26]written 0, free lines is 3274 [10:36:26]MH_Cut [10:36:26]Write to MH i2c: D1 01 00 5E 2F 01 5F [10:36:26]Write i2c OK [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: D1 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: D1 01 00 [10:36:26]MH_I2C_Read... [10:36:26]Read from MH i2c: D1 01 00 5E 2F 00 5E [10:36:26]Write to MH i2c: 01 00 00 5F 2F 8E [10:36:26]Write i2c OK [10:36:26]MH_I2C_Read... [10:36:26]OFD Sender: No OFD packet to send [10:36:26]*** Cut start [10:36:26]*** Partial cut [10:36:26]*** CUTSNS_PIN = 1 [10:36:26]*** CUTSNS_PIN = 0 [10:36:27]*** Brake cut motor [10:36:27]Read from MH i2c: 01 [10:36:27]MH_I2C_Read... [10:36:27]*** Stop cut motor [10:36:27]*** Cut end [10:36:27]Read from MH i2c: 01 07 00 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: 01 07 00 5F 2F 00 00 00 00 00 FF 0F A3 [10:36:27]process_action close_receipt done [10:36:27]requested_data is exist [10:36:27]produce_requested_data [10:36:27]requested_item fm.sn is exist - process it [10:36:27]wFMCommunicate request_size=4 [10:36:27]MH_SAM_APDU [10:36:27]CAPDU: 80 11 00 00 [10:36:27]Write to MH i2c: E2 08 00 60 2F 80 11 00 00 00 00 00 00 09 [10:36:27]Write i2c OK [10:36:27]MH_I2C_Read... [10:36:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:27]Read from MH i2c: E2 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: E2 17 00 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: E2 17 00 60 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 58 [10:36:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:36:27]wFMCommunicate OK [10:36:27]requested_item fd.num is exist - process it [10:36:27]SAM_PROTO_GetFieldsCounters [10:36:27]wFMCommunicate request_size=4 [10:36:27]MH_SAM_APDU [10:36:27]CAPDU: 80 13 00 00 [10:36:27]Write to MH i2c: E2 08 00 61 2F 80 13 00 00 00 00 00 00 0C [10:36:27]Write i2c OK [10:36:27]MH_I2C_Read... [10:36:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:27]Read from MH i2c: E2 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: E2 62 00 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: E2 62 00 61 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CC 70 00 00 0E 04 04 00 73 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 F2 [10:36: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CC 70 00 00 0E 04 04 00 73 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:36:27]wFMCommunicate OK [10:36:27]SAM_PROTO_GetFieldsCounters done [10:36:27]requested_item shift.num is exist - process it [10:36:27]requested_item shift.opened is exist - process it [10:36:27]req_shift_opened [10:36:27]FM_GetShiftState [10:36:27]SAM_PROTO_GetShiftState [10:36:27]wFMCommunicate request_size=4 [10:36:27]MH_SAM_APDU [10:36:27]CAPDU: 80 13 01 00 [10:36:27]Write to MH i2c: E2 08 00 62 2F 80 13 01 00 00 00 00 00 0E [10:36:27]Write i2c OK [10:36:27]MH_I2C_Read... [10:36:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:27]Read from MH i2c: E2 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: E2 0E 00 [10:36:27]MH_I2C_Read... [10:36:27]Read from MH i2c: E2 0E 00 62 2F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 27 [10:36:27]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:36:27]wFMCommunicate OK [10:36:27]SAM_PROTO_GetShiftState done [10:36:27]FM_GetShiftState done [10:36:27]req_shift_opened done [10:36:27]requested_item shift.open_date is exist - process it [10:36:27]req_shift_open_date [10:36:27]req_shift_open_date done [10:36:27]produce_requested_data done [10:36:27]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28876,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [10:36:27]process_action_free close_receipt [10:36:27]json_value_free [10:36:27]json_value_free done [10:36:27]process_json_proto returns [10:36:27]Send response to host [10:36:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28876,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [10:36:27]free response buf [10:36:27]execute_script done [10:36:27]execute_script returns [10:36:27]free content buf [10:36:27]Sock 10.Close socket [10:36:27]Sock 10.Thread stoped [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:22]accept exits with 7 [10:37:22]New connection [10:37:22]New thread 3066785124 created [10:37:22]Thread 3066928484 joined [10:37:22]Waiting for new connection... [10:37:22] Sock 7.Parse request [10:37:22]Sock 7.Check first char [10:37:22]Sock 7.First char is OK [10:37:22]request: POST /json_proto HTTP/1.0 [10:37:22]Method: POST [10:37:22]URL: /json_proto [10:37:22]Method is POST - this is cgi request [10:37:22]url: /json_proto [10:37:22]query_string will be loaded in cgi processing [10:37:22]execute_cgi json_proto POST (null) [10:37:22]execute_cgi path=json_proto method=POST [10:37:22]POST find Content-Length [10:37:22]Host: 172.17.33.3:8080 [10:37:22]Content-Length: 678 [10:37:22]Content-Type: application/json [10:37:22] [10:37:22]POST finish read [10:37:22]Found Content-Length = 678 [10:37:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347230", "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" : 64.30, "quantity" : 14.310, "sum" : 920.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 920.00, "total" : 920.00, "payments": [ { "type": 0, "sum" : 920.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:22]execute_script... [10: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)347230", "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" : 64.30, "quantity" : 14.310, "sum" : 920.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 920.00, "total" : 920.00, "payments": [ { "type": 0, "sum" : 920.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:22]POST & json_proto [10:37:22]process_json_proto [10:37:22]json parsed OK: [10:37:22]protocol is kg_v1.0 [10:37:22]action value=close_receipt [10:37:22]process_action close_receipt [10:37:22]cmd_close_receipt [10:37:22]MH_GetDate [10:37:22]Write to MH i2c: F0 00 00 63 2F 81 [10:37:22]Write i2c OK [10:37:22]MH_I2C_Read... [10:37:22]Read from MH i2c: F0 [10:37:22]MH_I2C_Read... [10:37:22]Read from MH i2c: F0 09 00 [10:37:22]MH_I2C_Read... [10:37:22]Read from MH i2c: F0 09 00 63 2F 00 66 60 1A 66 23 5B 8F 65 42 [10:37:22]GetLastDocTimeStamp 1713004587 [10:37:22]current date 1713004646 [10:37:22]FM_GetShiftState [10:37:22]SAM_PROTO_GetShiftState [10:37:22]wFMCommunicate request_size=4 [10:37:22]MH_SAM_APDU [10:37:22]CAPDU: 80 13 01 00 [10:37:22]Write to MH i2c: E2 08 00 64 2F 80 13 01 00 00 00 00 00 10 [10:37:22]Write i2c OK [10:37:22]MH_I2C_Read... [10:37:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:22]Read from MH i2c: E2 [10:37:22]MH_I2C_Read... [10:37:22]Read from MH i2c: E2 0E 00 [10:37:22]MH_I2C_Read... [10:37:22]Read from MH i2c: E2 0E 00 64 2F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 29 [10:37:22]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:37:22]wFMCommunicate OK [10:37:22]SAM_PROTO_GetShiftState done [10:37:22]FM_GetShiftState done [10:37:22]opened in 1712967615 [10:37:22]opened+sec_in_day 1713054015 [10:37:22]quantity*price = 92013 [10:37:22]sum+1 = 92014 [10:37:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 920.00 Внесено: 920.00 СДАЧА: 0.00 НСП 1% : 8.14 НДС 12% : 97.71 Наличными: 920.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 84 13.04.2024 10:37 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28877 ФПД: 269723029384074 1/tax-web-control/client/api/v1/ticket?date=20240413T103727&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28877&fm=269723029384074&tin=02508201610067®Number=0000138879044617&sum=92000 [10:37:23]StoreToDocumentArchive [10:37:23]shift 115 fd 28877 [10:37:23]save to /storage/0115/doc_00028877 [10:37:23]save last doc name /storage/0115/doc_00028877 to /storage/kkm_last_doc_name [10:37:23]save OK [10:37:23]Clear old archive folders... [10:37:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:37:23]tlvbuf is B6F52230 [10:37:23]SAM_PROTO_ClearQueue [10:37:23]wFMCommunicate request_size=4 [10:37:23]MH_SAM_APDU [10:37:23]CAPDU: 80 09 00 00 [10:37:23]Write to MH i2c: E2 08 00 71 2F 80 09 00 00 00 00 00 00 12 [10:37:23]Write i2c OK [10:37:23]MH_I2C_Read... [10:37:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:23]Read from MH i2c: E2 [10:37:23]MH_I2C_Read... [10:37:23]Read from MH i2c: E2 03 00 [10:37:23]MH_I2C_Read... [10:37:23]Read from MH i2c: E2 03 00 71 2F 00 90 00 14 [10:37:23]RAPDU: 90 00 [10:37:23]wFMCommunicate OK [10:37:23]SAM_PROTO_ClearQueue done [10:37:23]KKMCreateOFDPacket [10:37:23]OFDProtocolAddRootSTLVToBuf [10:37:23]FM_MakeSignedData [10:37:23]FM_MakeSignedData [10:37:23]SAM_PROTO_SignData [10:37:23]wFMCommunicate request_size=4 [10:37:23]MH_SAM_APDU [10:37:23]CAPDU: 80 0D 01 02 [10:37:23]Write to MH i2c: E2 08 00 72 2F 80 0D 01 02 00 00 00 00 1A [10:37:23]Write i2c OK [10:37:23]MH_I2C_Read... [10:37:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:24]Read from MH i2c: E2 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: E2 03 00 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: E2 03 00 72 2F 00 90 00 15 [10:37:24]RAPDU: 90 00 [10:37:24]wFMCommunicate OK [10:37:24]wFMCommunicate request_size=255 [10:37:24]MH_SAM_APDU [10:37: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 E6 37 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 6D 67 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 67 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 26 00 00 00 00 07 04 06 00 60 67 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 67 60 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CD 70 00 00 35 04 06 00 F5 [10:37:24]Write to MH i2c: E2 02 01 73 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 E6 37 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 6D 67 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 67 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 26 00 00 00 00 07 04 06 00 60 67 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 67 60 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CD 70 00 00 35 04 06 00 F5 00 00 BC [10:37:24]Write i2c OK [10:37:24]MH_I2C_Read... [10:37:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:24]Read from MH i2c: E2 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: E2 03 00 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: E2 03 00 73 2F 00 90 00 16 [10:37:24]RAPDU: 90 00 [10:37:24]wFMCommunicate OK [10:37:24]wFMCommunicate request_size=10 [10:37:24]MH_SAM_APDU [10:37:24]CAPDU: 80 0D 02 02 05 4F C9 5A AB 8A [10:37:24]Write to MH i2c: E2 0D 00 74 2F 80 0D 02 02 05 00 4F C9 5A AB 8A 00 00 CE [10:37:24]Write i2c OK [10:37:24]MH_I2C_Read... [10:37:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:24]Read from MH i2c: E2 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: E2 03 00 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: E2 03 00 74 2F 00 90 00 17 [10:37:24]RAPDU: 90 00 [10:37:24]wFMCommunicate OK [10:37:24]wFMCommunicate request_size=4 [10:37:24]MH_SAM_APDU [10:37:24]CAPDU: 80 0D 03 02 [10:37:24]Write to MH i2c: E2 08 00 75 2F 80 0D 03 02 00 00 00 00 1F [10:37:24]Write i2c OK [10:37:24]MH_I2C_Read... [10:37:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:24]Read from MH i2c: E2 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: E2 0B 00 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: E2 0B 00 75 2F 00 C4 AA 69 DC AF 18 88 5E 90 00 80 [10:37:24]RAPDU: C4 AA 69 DC AF 18 88 5E 90 00 [10:37:24]wFMCommunicate OK [10:37:24]SAM_PROTO_SignData done [10:37:24]FM_MakeSignedData done [10:37:24]CreateOFDProtocolMessage [10:37:24]wFMCommunicate request_size=4 [10:37:24]MH_SAM_APDU [10:37:24]CAPDU: 80 11 00 00 [10:37:24]Write to MH i2c: E2 08 00 76 2F 80 11 00 00 00 00 00 00 1F [10:37:24]Write i2c OK [10:37:24]MH_I2C_Read... [10:37:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:24]Read from MH i2c: E2 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: E2 17 00 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: E2 17 00 76 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6E [10:37:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:37:24]wFMCommunicate OK [10:37:24]CreateOFDProtocolMessage done [10:37:24]OFDSenderStorePacket 28877 [10:37:24]StoreOFDPacket docnum=28877 [10:37:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 87 74 07 01 C9 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 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 37 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 6D 67 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 67 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 26 00 00 00 00 07 04 06 00 60 67 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 67 60 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CD 70 00 00 35 04 06 00 F5 4F C9 5A AB 8A C4 AA 69 DC AF 18 88 5E [10:37:24]CheckFolder [10:37:24]dirname=/storage/ofd_packets [10:37:24]CheckFolder done [10:37:24]ProducePacketName [10:37:24]name=ofd_packets/00028877 [10:37:24]NVStorageSaveData ofd_packets/00028877 [10:37:24]File name is /storage/ofd_packets/00028877 [10:37:24]Write 301 bytes [10:37:24]NVStorageSaveData done [10:37:24]OFDSenderStorePacket done [10:37:24]KKMCreateOFDPacket done [10:37:24]NVStorageSaveData kkm_last_timestamp [10:37:24]File name is /storage/kkm_last_timestamp [10:37:24]Write 4 bytes [10:37:24]NVStorageSaveData done [10:37:24]ExternCall_PrintAddStr [10:37:24]wPrintStart [10:37:24]Write to MH i2c: 01 00 00 77 2F A6 [10:37:24]Write i2c OK [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: 01 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: 01 07 00 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: 01 07 00 77 2F 00 00 00 00 00 FF 0F BB [10:37:24]RasterBufferAndPrint [10:37:24]line Счет N : (1)347230 [10:37:24]line ИНН: 02508201610067 [10:37:24]line Контрольно-Кассовый Чек [10:37:24]line ПРОДАЖА [10:37:24]line ТРК (МРК, ГНК) : 32 [10:37:24]line Товар: 2710124130 [10:37:24]line Аи-92-К-5 [10:37:24]line 14.310 * 64.30 [10:37:24]line = 920.13 [10:37:24]line НДС 12% НСП 1% [10:37:24]line > о реализуемом товаре [10:37:24]line ОКРУГЛЕНИЕ: -0.13 [10:37:24]line ИТОГО: 920.00 [10:37:24]line Внесено: 920.00 [10:37:24]line СДАЧА: 0.00 [10:37:24]line НСП 1% : 8.14 [10:37:24]line НДС 12% : 97.71 [10:37:24]line Наличными: 920.00 [10:37:24]line Безнал.: 0.00 [10:37:24]line Место: АЗС № 108 "Партнер Нефть" [10:37:24]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:37:24]line СНО: Общий режим [10:37:24]line Чек 84 13.04.2024 10:37 [10:37:24]line Смена: 115 ФФД: 1.0 [10:37:24]line ЗНМ: 0300000027 [10:37:24]line РНМ: 0000138879044617 [10:37:24]line Версия ККМ: 001 [10:37:24]line ФМ: 0000000000963154 [10:37:24]line ФД: 28877 [10:37:24]line ФПД: 269723029384074 [10:37:24]line 1/tax-web-control/client/api/v1/ticket?date=20240413T103727&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28877&fm=269723029384074&tin=02508201610067®Number=0000138879044617&sum=92000 [10:37:24]written 0, free lines is 4095 [10:37:24]OFD Sender: Processing packet 28877 [packets to send 8, broken 7] [10:37:24]ProducePacketName [10:37:24]name=ofd_packets/00028877 [10:37:24]OFD Sender: To server: pG, [10:37:24]CommunicateWithHost lk.salyk.kg:30040 [10:37:24]ConnectInit lk.salyk.kg [10:37:24]Connected sock=10 [10: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 31 35 34 0F 01 00 00 87 74 07 01 C9 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 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 37 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 6D 67 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 67 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 26 00 00 00 00 07 04 06 00 60 67 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 67 60 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CD 70 00 00 35 04 06 00 F5 4F C9 5A AB 8A C4 AA 69 DC AF 18 88 5E [10:37:24]Write to MH i2c: 01 00 00 A1 2F D0 [10:37:24]Write i2c OK [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: 01 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: 01 07 00 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: 01 07 00 A1 2F 00 00 00 00 00 C5 0C A8 [10:37:24]RasterBufferAndPrint [10:37:24]line [10:37:24]line [10:37:24]line [10:37:24]line [10:37:24]line [10:37:24]written 0, free lines is 3274 [10:37:24]MH_Cut [10:37:24]Write to MH i2c: D1 01 00 A8 2F 01 A9 [10:37:24]Write i2c OK [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: D1 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: D1 01 00 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: D1 01 00 A8 2F 00 A8 [10:37:24]Write to MH i2c: 01 00 00 A9 2F D8 [10:37:24]Write i2c OK [10:37:24]MH_I2C_Read... [10: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 31 35 34 4F 00 00 00 13 D3 47 00 4A 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 31 35 34 10 04 04 00 CD 70 00 00 F4 03 04 00 0E 0B 1A 66 B6 04 01 00 00 56 50 94 8C 5D EF DF 30 [10:37:25]CommunicateWithHost err = 0 [10:37:25]CheckOFDResponse [10:37:25]1017 (14) - 77093643461234 [10:37:25]1041 (16) - 0000000000963154 [10:37:25]1040 (4) - 28877 [10:37:25]1012 (4) - 13.04.2024 04:33 [10:37:25]1206 (1) - 0 [10:37:25]OFD Sender: Remove packet 28877 [10:37:25]ProducePacketName [10:37:25]name=ofd_packets/00028877 [10:37:25]NVStorageDeleteData [10:37:25]OFD Sender: No OFD packet to send [10:37:25]*** Cut start [10:37:25]*** Partial cut [10:37:25]*** CUTSNS_PIN = 1 [10:37:25]*** CUTSNS_PIN = 0 [10:37:26]*** Brake cut motor [10:37:26]Read from MH i2c: 01 [10:37:26]MH_I2C_Read... [10:37:26]*** Stop cut motor [10:37:26]*** Cut end [10:37:26]Read from MH i2c: 01 07 00 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: 01 07 00 A9 2F 00 00 00 00 00 FF 0F ED [10:37:26]process_action close_receipt done [10:37:26]requested_data is exist [10:37:26]produce_requested_data [10:37:26]requested_item fm.sn is exist - process it [10:37:26]wFMCommunicate request_size=4 [10:37:26]MH_SAM_APDU [10:37:26]CAPDU: 80 11 00 00 [10:37:26]Write to MH i2c: E2 08 00 AA 2F 80 11 00 00 00 00 00 00 53 [10:37:26]Write i2c OK [10:37:26]MH_I2C_Read... [10:37:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:26]Read from MH i2c: E2 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: E2 17 00 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: E2 17 00 AA 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A2 [10:37:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:37:26]wFMCommunicate OK [10:37:26]requested_item fd.num is exist - process it [10:37:26]SAM_PROTO_GetFieldsCounters [10:37:26]wFMCommunicate request_size=4 [10:37:26]MH_SAM_APDU [10:37:26]CAPDU: 80 13 00 00 [10:37:26]Write to MH i2c: E2 08 00 AB 2F 80 13 00 00 00 00 00 00 56 [10:37:26]Write i2c OK [10:37:26]MH_I2C_Read... [10:37:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:26]Read from MH i2c: E2 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: E2 62 00 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: E2 62 00 AB 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CD 70 00 00 0E 04 04 00 73 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 40 [10: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CD 70 00 00 0E 04 04 00 73 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:37:26]wFMCommunicate OK [10:37:26]SAM_PROTO_GetFieldsCounters done [10:37:26]requested_item shift.num is exist - process it [10:37:26]requested_item shift.opened is exist - process it [10:37:26]req_shift_opened [10:37:26]FM_GetShiftState [10:37:26]SAM_PROTO_GetShiftState [10:37:26]wFMCommunicate request_size=4 [10:37:26]MH_SAM_APDU [10:37:26]CAPDU: 80 13 01 00 [10:37:26]Write to MH i2c: E2 08 00 AC 2F 80 13 01 00 00 00 00 00 58 [10:37:26]Write i2c OK [10:37:26]MH_I2C_Read... [10:37:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:26]Read from MH i2c: E2 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: E2 0E 00 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: E2 0E 00 AC 2F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 71 [10:37:26]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:37:26]wFMCommunicate OK [10:37:26]SAM_PROTO_GetShiftState done [10:37:26]FM_GetShiftState done [10:37:26]req_shift_opened done [10:37:26]requested_item shift.open_date is exist - process it [10:37:26]req_shift_open_date [10:37:26]req_shift_open_date done [10:37:26]produce_requested_data done [10:37:26]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28877,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [10:37:26]process_action_free close_receipt [10:37:26]json_value_free [10:37:26]json_value_free done [10:37:26]process_json_proto returns [10:37:26]Send response to host [10:37:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28877,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [10:37:26]free response buf [10:37:26]execute_script done [10:37:26]execute_script returns [10:37:26]free content buf [10:37:26]Sock 7.Close socket [10:37:26]Sock 7.Thread stoped [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:11]accept exits with 9 [10:39:11]New connection [10:39:11]New thread 3066928484 created [10:39:11]Thread 3066785124 joined [10:39:11]Waiting for new connection... [10:39:11] Sock 9.Parse request [10:39:11]Sock 9.Check first char [10:39:11]Sock 9.First char is OK [10:39:11]request: POST /json_proto HTTP/1.0 [10:39:11]Method: POST [10:39:11]URL: /json_proto [10:39:11]Method is POST - this is cgi request [10:39:11]url: /json_proto [10:39:11]query_string will be loaded in cgi processing [10:39:11]execute_cgi json_proto POST (null) [10:39:11]execute_cgi path=json_proto method=POST [10:39:11]POST find Content-Length [10:39:11]Host: 172.17.33.3:8080 [10:39:11]Content-Length: 805 [10:39:11]Content-Type: application/json [10:39:11] [10:39:11]POST finish read [10:39:11]Found Content-Length = 805 [10:39:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 34.540, "sum" : 2500.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:11]execute_script... [10:39: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)347231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 34.540, "sum" : 2500.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:11]POST & json_proto [10:39:11]process_json_proto [10:39:11]json parsed OK: [10:39:11]protocol is kg_v1.0 [10:39:11]action value=close_receipt [10:39:11]process_action close_receipt [10:39:11]cmd_close_receipt [10:39:11]MH_GetDate [10:39:11]Write to MH i2c: F0 00 00 AD 2F CB [10:39:11]Write i2c OK [10:39:11]MH_I2C_Read... [10:39:11]Read from MH i2c: F0 [10:39:11]MH_I2C_Read... [10:39:11]Read from MH i2c: F0 09 00 [10:39:11]MH_I2C_Read... [10:39:11]Read from MH i2c: F0 09 00 AD 2F 00 D4 60 1A 66 23 5B 8F 65 FA [10:39:11]GetLastDocTimeStamp 1713004647 [10:39:11]current date 1713004756 [10:39:11]FM_GetShiftState [10:39:11]SAM_PROTO_GetShiftState [10:39:11]wFMCommunicate request_size=4 [10:39:11]MH_SAM_APDU [10:39:11]CAPDU: 80 13 01 00 [10:39:11]Write to MH i2c: E2 08 00 AE 2F 80 13 01 00 00 00 00 00 5A [10:39:11]Write i2c OK [10:39:11]MH_I2C_Read... [10:39:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:12]Read from MH i2c: E2 [10:39:12]MH_I2C_Read... [10:39:12]Read from MH i2c: E2 0E 00 [10:39:12]MH_I2C_Read... [10:39:12]Read from MH i2c: E2 0E 00 AE 2F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 73 [10:39:12]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:39:12]wFMCommunicate OK [10:39:12]SAM_PROTO_GetShiftState done [10:39:12]FM_GetShiftState done [10:39:12]opened in 1712967615 [10:39:12]opened+sec_in_day 1713054015 [10:39:12]quantity*price = 250069 [10:39:12]sum+1 = 250071 [10:39:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.70 НСП 1% : 22.13 НДС 12% : 265.56 Наличными: 0.00 Безнал.: 2500.70 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 85 13.04.2024 10:39 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28878 ФПД: 66953852208762 1/tax-web-control/client/api/v1/ticket?date=20240413T103916&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28878&fm=66953852208762&tin=02508201610067®Number=0000138879044617&sum=250070 [10:39:13]StoreToDocumentArchive [10:39:13]shift 115 fd 28878 [10:39:13]save to /storage/0115/doc_00028878 [10:39:13]save last doc name /storage/0115/doc_00028878 to /storage/kkm_last_doc_name [10:39:13]save OK [10:39:13]Clear old archive folders... [10:39:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:39:13]tlvbuf is B6ED43A0 [10:39:13]SAM_PROTO_ClearQueue [10:39:13]wFMCommunicate request_size=4 [10:39:13]MH_SAM_APDU [10:39:13]CAPDU: 80 09 00 00 [10:39:13]Write to MH i2c: E2 08 00 BB 2F 80 09 00 00 00 00 00 00 5C [10:39:13]Write i2c OK [10:39:13]MH_I2C_Read... [10:39:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:13]Read from MH i2c: E2 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: E2 03 00 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: E2 03 00 BB 2F 00 90 00 5E [10:39:13]RAPDU: 90 00 [10:39:13]wFMCommunicate OK [10:39:13]SAM_PROTO_ClearQueue done [10:39:13]KKMCreateOFDPacket [10:39:13]OFDProtocolAddRootSTLVToBuf [10:39:13]FM_MakeSignedData [10:39:13]FM_MakeSignedData [10:39:13]SAM_PROTO_SignData [10:39:13]wFMCommunicate request_size=4 [10:39:13]MH_SAM_APDU [10:39:13]CAPDU: 80 0D 01 02 [10:39:13]Write to MH i2c: E2 08 00 BC 2F 80 0D 01 02 00 00 00 00 64 [10:39:13]Write i2c OK [10:39:13]MH_I2C_Read... [10:39:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:13]Read from MH i2c: E2 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: E2 03 00 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: E2 03 00 BC 2F 00 90 00 5F [10:39:13]RAPDU: 90 00 [10:39:13]wFMCommunicate OK [10:39:13]wFMCommunicate request_size=255 [10:39:13]MH_SAM_APDU [10:39: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 EC 86 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D6 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 D4 60 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CE 70 00 00 35 04 06 00 3C E4 E8 93 [10:39:13]Write to MH i2c: E2 02 01 BD 2F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EC 86 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D6 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 D4 60 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CE 70 00 00 35 04 06 00 3C E4 E8 93 00 00 D4 [10:39:13]Write i2c OK [10:39:13]MH_I2C_Read... [10:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:13]Read from MH i2c: E2 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: E2 03 00 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: E2 03 00 BD 2F 00 90 00 60 [10:39:13]RAPDU: 90 00 [10:39:13]wFMCommunicate OK [10:39:13]wFMCommunicate request_size=7 [10:39:13]MH_SAM_APDU [10:39:13]CAPDU: 80 0D 02 02 02 C6 7A [10:39:13]Write to MH i2c: E2 0A 00 BE 2F 80 0D 02 02 02 00 C6 7A 00 00 AB [10:39:13]Write i2c OK [10:39:13]MH_I2C_Read... [10:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:13]Read from MH i2c: E2 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: E2 03 00 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: E2 03 00 BE 2F 00 90 00 61 [10:39:13]RAPDU: 90 00 [10:39:13]wFMCommunicate OK [10:39:13]wFMCommunicate request_size=4 [10:39:13]MH_SAM_APDU [10:39:13]CAPDU: 80 0D 03 02 [10:39:13]Write to MH i2c: E2 08 00 BF 2F 80 0D 03 02 00 00 00 00 69 [10:39:13]Write i2c OK [10:39:13]MH_I2C_Read... [10:39:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:13]Read from MH i2c: E2 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: E2 0B 00 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: E2 0B 00 BF 2F 00 D5 73 8A E2 B2 87 3B A0 90 00 32 [10:39:13]RAPDU: D5 73 8A E2 B2 87 3B A0 90 00 [10:39:13]wFMCommunicate OK [10:39:13]SAM_PROTO_SignData done [10:39:13]FM_MakeSignedData done [10:39:13]CreateOFDProtocolMessage [10:39:13]wFMCommunicate request_size=4 [10:39:13]MH_SAM_APDU [10:39:13]CAPDU: 80 11 00 00 [10:39:13]Write to MH i2c: E2 08 00 C0 2F 80 11 00 00 00 00 00 00 69 [10:39:13]Write i2c OK [10:39:13]MH_I2C_Read... [10:39:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:13]Read from MH i2c: E2 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: E2 17 00 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: E2 17 00 C0 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B8 [10:39:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:39:13]wFMCommunicate OK [10:39:13]CreateOFDProtocolMessage done [10:39:13]OFDSenderStorePacket 28878 [10:39:13]StoreOFDPacket docnum=28878 [10:39:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 6B 4C 04 01 36 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EC 86 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D6 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 D4 60 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CE 70 00 00 35 04 06 00 3C E4 E8 93 C6 7A D5 73 8A E2 B2 87 3B A0 [10:39:13]CheckFolder [10:39:13]dirname=/storage/ofd_packets [10:39:13]CheckFolder done [10:39:13]ProducePacketName [10:39:13]name=ofd_packets/00028878 [10:39:13]NVStorageSaveData ofd_packets/00028878 [10:39:13]File name is /storage/ofd_packets/00028878 [10:39:13]Write 298 bytes [10:39:13]NVStorageSaveData done [10:39:13]OFDSenderStorePacket done [10:39:13]KKMCreateOFDPacket done [10:39:13]NVStorageSaveData kkm_last_timestamp [10:39:13]File name is /storage/kkm_last_timestamp [10:39:13]Write 4 bytes [10:39:13]NVStorageSaveData done [10:39:13]ExternCall_PrintAddStr [10:39:13]wPrintStart [10:39:13]Write to MH i2c: 01 00 00 C1 2F F0 [10:39:13]OFD Sender: Processing packet 28878 [packets to send 8, broken 7] [10:39:13]ProducePacketName [10:39:13]name=ofd_packets/00028878 [10:39:13]OFD Sender: To server: pG, [10:39:13]CommunicateWithHost lk.salyk.kg:30040 [10:39:13]ConnectInit lk.salyk.kg [10:39:13]Write i2c OK [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: 01 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: 01 07 00 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: 01 07 00 C1 2F 00 00 00 00 00 FF 0F 05 [10:39:13]RasterBufferAndPrint [10:39:13]line Счет N : (1)347231 [10:39:13]line ИНН: 02508201610067 [10:39:13]line Контрольно-Кассовый Чек [10:39:13]line ПРОДАЖА [10:39:13]line ТРК (МРК, ГНК) : 11 [10:39:13]line Товар: 2710194210 [10:39:13]line ДТ-К-5 [10:39:13]line 34.540 * 72.40 [10:39:13]line = 2500.70 [10:39:13]line НДС 12% НСП 1% [10:39:13]line > о реализуемом товаре [10:39:13]line ИТОГО: 2500.70 [10:39:13]line НСП 1% : 22.13 [10:39:13]line НДС 12% : 265.56 [10:39:13]line Наличными: 0.00 [10:39:13]line Безнал.: 2500.70 [10:39:13]line Место: АЗС № 108 "Партнер Нефть" [10:39:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:39:13]line СНО: Общий режим [10:39:13]line Чек 85 13.04.2024 10:39 [10:39:13]line Смена: 115 ФФД: 1.0 [10:39:13]line ЗНМ: 0300000027 [10:39:13]line РНМ: 0000138879044617 [10:39:13]line Версия ККМ: 001 [10:39:13]line Платежная система: О! деньги [10:39:13]line ФМ: 0000000000963154 [10:39:13]line ФД: 28878 [10:39:13]line ФПД: 66953852208762 [10:39:14]line 1/tax-web-control/client/api/v1/ticket?date=20240413T103916&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28878&fm=66953852208762&tin=02508201610067®Number=0000138879044617&sum=250070 [10:39:14]Connected sock=10 [10:39: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 31 35 34 0C 01 00 00 6B 4C 04 01 36 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EC 86 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D6 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 D4 60 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CE 70 00 00 35 04 06 00 3C E4 E8 93 C6 7A D5 73 8A E2 B2 87 3B A0 [10:39:14]written 0, free lines is 4095 [10:39:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D7 11 47 00 EF 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 31 35 34 10 04 04 00 CE 70 00 00 F4 03 04 00 7B 0B 1A 66 B6 04 01 00 00 E9 9A BD 26 F2 D3 26 60 [10:39:14]CommunicateWithHost err = 0 [10:39:14]CheckOFDResponse [10:39:14]1017 (14) - 77093643461234 [10:39:14]1041 (16) - 0000000000963154 [10:39:14]1040 (4) - 28878 [10:39:14]1012 (4) - 13.04.2024 04:35 [10:39:14]1206 (1) - 0 [10:39:14]OFD Sender: Remove packet 28878 [10:39:14]ProducePacketName [10:39:14]name=ofd_packets/00028878 [10:39:14]NVStorageDeleteData [10:39:14]Write to MH i2c: 01 00 00 EA 2F 19 [10:39:14]Write i2c OK [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: 01 [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: 01 07 00 [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: 01 07 00 EA 2F 00 00 00 00 00 CF 0C FB [10:39:14]RasterBufferAndPrint [10:39:14]line [10:39:14]line [10:39:14]line [10:39:14]line [10:39:14]line [10:39:14]written 0, free lines is 3283 [10:39:14]MH_Cut [10:39:14]Write to MH i2c: D1 01 00 F1 2F 01 F2 [10:39:14]Write i2c OK [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: D1 [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: D1 01 00 [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: D1 01 00 F1 2F 00 F1 [10:39:14]Write to MH i2c: 01 00 00 F2 2F 21 [10:39:14]Write i2c OK [10:39:14]MH_I2C_Read... [10:39:14]OFD Sender: No OFD packet to send [10:39:15]*** Cut start [10:39:15]*** Partial cut [10:39:15]*** CUTSNS_PIN = 1 [10:39:15]*** CUTSNS_PIN = 0 [10:39:15]*** Brake cut motor [10:39:15]Read from MH i2c: 01 [10:39:15]MH_I2C_Read... [10:39:15]*** Stop cut motor [10:39:15]*** Cut end [10:39:15]Read from MH i2c: 01 07 00 [10:39:15]MH_I2C_Read... [10:39:15]Read from MH i2c: 01 07 00 F2 2F 00 00 00 00 00 FF 0F 36 [10:39:15]process_action close_receipt done [10:39:15]requested_data is exist [10:39:15]produce_requested_data [10:39:15]requested_item fm.sn is exist - process it [10:39:15]wFMCommunicate request_size=4 [10:39:15]MH_SAM_APDU [10:39:15]CAPDU: 80 11 00 00 [10:39:15]Write to MH i2c: E2 08 00 F3 2F 80 11 00 00 00 00 00 00 9C [10:39:15]Write i2c OK [10:39:15]MH_I2C_Read... [10:39:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:16]Read from MH i2c: E2 [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: E2 17 00 [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: E2 17 00 F3 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EB [10:39:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:39:16]wFMCommunicate OK [10:39:16]requested_item fd.num is exist - process it [10:39:16]SAM_PROTO_GetFieldsCounters [10:39:16]wFMCommunicate request_size=4 [10:39:16]MH_SAM_APDU [10:39:16]CAPDU: 80 13 00 00 [10:39:16]Write to MH i2c: E2 08 00 F4 2F 80 13 00 00 00 00 00 00 9F [10:39:16]Write i2c OK [10:39:16]MH_I2C_Read... [10:39:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:16]Read from MH i2c: E2 [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: E2 62 00 [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: E2 62 00 F4 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CE 70 00 00 0E 04 04 00 73 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 8D [10:39: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CE 70 00 00 0E 04 04 00 73 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:39:16]wFMCommunicate OK [10:39:16]SAM_PROTO_GetFieldsCounters done [10:39:16]requested_item shift.num is exist - process it [10:39:16]requested_item shift.opened is exist - process it [10:39:16]req_shift_opened [10:39:16]FM_GetShiftState [10:39:16]SAM_PROTO_GetShiftState [10:39:16]wFMCommunicate request_size=4 [10:39:16]MH_SAM_APDU [10:39:16]CAPDU: 80 13 01 00 [10:39:16]Write to MH i2c: E2 08 00 F5 2F 80 13 01 00 00 00 00 00 A1 [10:39:16]Write i2c OK [10:39:16]MH_I2C_Read... [10:39:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:16]Read from MH i2c: E2 [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: E2 0E 00 [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: E2 0E 00 F5 2F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 BA [10:39:16]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:39:16]wFMCommunicate OK [10:39:16]SAM_PROTO_GetShiftState done [10:39:16]FM_GetShiftState done [10:39:16]req_shift_opened done [10:39:16]requested_item shift.open_date is exist - process it [10:39:16]req_shift_open_date [10:39:16]req_shift_open_date done [10:39:16]produce_requested_data done [10:39:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28878,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [10:39:16]process_action_free close_receipt [10:39:16]json_value_free [10:39:16]json_value_free done [10:39:16]process_json_proto returns [10:39:16]Send response to host [10:39:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28878,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [10:39:16]free response buf [10:39:16]execute_script done [10:39:16]execute_script returns [10:39:16]free content buf [10:39:16]Sock 9.Close socket [10:39:16]Sock 9.Thread stoped [10:39:19]OFD Sender: No OFD packet to send [10:39:24]OFD Sender: No OFD packet to send [10:39:29]OFD Sender: No OFD packet to send [10:39:34]OFD Sender: No OFD packet to send [10:39:39]OFD Sender: No OFD packet to send [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:24]OFD Sender: No OFD packet to send [10:40:29]OFD Sender: No OFD packet to send [10:40:34]OFD Sender: No OFD packet to send [10:40:39]OFD Sender: No OFD packet to send [10:40:44]OFD Sender: No OFD packet to send [10:40:49]OFD Sender: No OFD packet to send [10:40:54]OFD Sender: No OFD packet to send [10:40:59]OFD Sender: No OFD packet to send [10:41:04]OFD Sender: No OFD packet to send [10:41:09]OFD Sender: No OFD packet to send [10:41:14]accept exits with 7 [10:41:14]New connection [10:41:14]New thread 3066785124 created [10:41:14]Thread 3066928484 joined [10:41:14]Waiting for new connection... [10:41:14] Sock 7.Parse request [10:41:14]Sock 7.Check first char [10:41:14]Sock 7.First char is OK [10:41:14]request: POST /json_proto HTTP/1.0 [10:41:14]Method: POST [10:41:14]URL: /json_proto [10:41:14]Method is POST - this is cgi request [10:41:14]url: /json_proto [10:41:14]query_string will be loaded in cgi processing [10:41:14]execute_cgi json_proto POST (null) [10:41:14]execute_cgi path=json_proto method=POST [10:41:14]POST find Content-Length [10:41:14]Host: 172.17.33.3:8080 [10:41:14]Content-Length: 843 [10:41:14]Content-Type: application/json [10:41:14] [10:41:14]POST finish read [10:41:14]Found Content-Length = 843 [10:41:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 31.110, "sum" : 2000.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:14]execute_script... [10:41:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 31.110, "sum" : 2000.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:14]POST & json_proto [10:41:14]process_json_proto [10:41:14]json parsed OK: [10:41:14]protocol is kg_v1.0 [10:41:14]action value=close_receipt [10:41:14]process_action close_receipt [10:41:14]cmd_close_receipt [10:41:14]MH_GetDate [10:41:14]Write to MH i2c: F0 00 00 F6 2F 14 [10:41:14]Write i2c OK [10:41:14]MH_I2C_Read... [10:41:14]Read from MH i2c: F0 [10:41:14]MH_I2C_Read... [10:41:14]Read from MH i2c: F0 09 00 [10:41:14]MH_I2C_Read... [10:41:14]Read from MH i2c: F0 09 00 F6 2F 00 4E 61 1A 66 23 5B 8F 65 BE [10:41:14]GetLastDocTimeStamp 1713004756 [10:41:14]current date 1713004878 [10:41:14]FM_GetShiftState [10:41:14]SAM_PROTO_GetShiftState [10:41:14]wFMCommunicate request_size=4 [10:41:14]MH_SAM_APDU [10:41:14]CAPDU: 80 13 01 00 [10:41:14]Write to MH i2c: E2 08 00 F7 2F 80 13 01 00 00 00 00 00 A3 [10:41:14]Write i2c OK [10:41:14]MH_I2C_Read... [10:41:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:14]Read from MH i2c: E2 [10:41:14]MH_I2C_Read... [10:41:14]Read from MH i2c: E2 0E 00 [10:41:14]MH_I2C_Read... [10:41:14]Read from MH i2c: E2 0E 00 F7 2F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 BC [10:41:14]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:41:14]wFMCommunicate OK [10:41:14]SAM_PROTO_GetShiftState done [10:41:14]FM_GetShiftState done [10:41:14]opened in 1712967615 [10:41:14]opened+sec_in_day 1713054015 [10:41:14]quantity*price = 200037 [10:41:14]sum+1 = 200038 [10:41:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.37 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.37 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 86 13.04.2024 10:41 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28879 ФПД: 73867758355648 1/tax-web-control/client/api/v1/ticket?date=20240413T104118&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28879&fm=73867758355648&tin=02508201610067®Number=0000138879044617&sum=200037 [10:41:15]StoreToDocumentArchive [10:41:15]shift 115 fd 28879 [10:41:15]save to /storage/0115/doc_00028879 [10:41:15]save last doc name /storage/0115/doc_00028879 to /storage/kkm_last_doc_name [10:41:15]save OK [10:41:15]Clear old archive folders... [10:41:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:41:15]tlvbuf is 011E33C0 [10:41:15]SAM_PROTO_ClearQueue [10:41:15]wFMCommunicate request_size=4 [10:41:15]MH_SAM_APDU [10:41:15]CAPDU: 80 09 00 00 [10:41:15]Write to MH i2c: E2 08 00 04 30 80 09 00 00 00 00 00 00 A6 [10:41:15]Write i2c OK [10:41:15]MH_I2C_Read... [10:41:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:15]Read from MH i2c: E2 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 03 00 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 03 00 04 30 00 90 00 A8 [10:41:15]RAPDU: 90 00 [10:41:15]wFMCommunicate OK [10:41:15]SAM_PROTO_ClearQueue done [10:41:15]KKMCreateOFDPacket [10:41:15]OFDProtocolAddRootSTLVToBuf [10:41:15]FM_MakeSignedData [10:41:15]FM_MakeSignedData [10:41:15]SAM_PROTO_SignData [10:41:15]wFMCommunicate request_size=4 [10:41:15]MH_SAM_APDU [10:41:15]CAPDU: 80 0D 01 02 [10:41:15]Write to MH i2c: E2 08 00 05 30 80 0D 01 02 00 00 00 00 AE [10:41:15]Write i2c OK [10:41:15]MH_I2C_Read... [10:41:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:15]Read from MH i2c: E2 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 03 00 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 03 00 05 30 00 90 00 A9 [10:41:15]RAPDU: 90 00 [10:41:15]wFMCommunicate OK [10:41:15]wFMCommunicate request_size=255 [10:41:15]MH_SAM_APDU [10:41: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 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 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 65 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 4E 61 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CF 70 00 00 35 04 06 00 43 [10:41:15]Write to MH i2c: E2 02 01 06 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 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 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 65 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 4E 61 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CF 70 00 00 35 04 06 00 43 00 00 21 [10:41:15]Write i2c OK [10:41:15]MH_I2C_Read... [10:41:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:16]Read from MH i2c: E2 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: E2 03 00 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: E2 03 00 06 30 00 90 00 AA [10:41:16]RAPDU: 90 00 [10:41:16]wFMCommunicate OK [10:41:16]wFMCommunicate request_size=10 [10:41:16]MH_SAM_APDU [10:41:16]CAPDU: 80 0D 02 02 05 2E AD 7F 44 C0 [10:41:16]Write to MH i2c: E2 0D 00 07 30 80 0D 02 02 05 00 2E AD 7F 44 C0 00 00 19 [10:41:16]Write i2c OK [10:41:16]MH_I2C_Read... [10:41:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:16]Read from MH i2c: E2 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: E2 03 00 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: E2 03 00 07 30 00 90 00 AB [10:41:16]RAPDU: 90 00 [10:41:16]wFMCommunicate OK [10:41:16]wFMCommunicate request_size=4 [10:41:16]MH_SAM_APDU [10:41:16]CAPDU: 80 0D 03 02 [10:41:16]Write to MH i2c: E2 08 00 08 30 80 0D 03 02 00 00 00 00 B3 [10:41:16]Write i2c OK [10:41:16]MH_I2C_Read... [10:41:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:16]Read from MH i2c: E2 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: E2 0B 00 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: E2 0B 00 08 30 00 4F DE B9 76 BD CB 06 4C 90 00 EA [10:41:16]RAPDU: 4F DE B9 76 BD CB 06 4C 90 00 [10:41:16]wFMCommunicate OK [10:41:16]SAM_PROTO_SignData done [10:41:16]FM_MakeSignedData done [10:41:16]CreateOFDProtocolMessage [10:41:16]wFMCommunicate request_size=4 [10:41:16]MH_SAM_APDU [10:41:16]CAPDU: 80 11 00 00 [10:41:16]Write to MH i2c: E2 08 00 09 30 80 11 00 00 00 00 00 00 B3 [10:41:16]Write i2c OK [10:41:16]MH_I2C_Read... [10:41:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:16]Read from MH i2c: E2 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: E2 17 00 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: E2 17 00 09 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 02 [10:41:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:41:16]wFMCommunicate OK [10:41:16]CreateOFDProtocolMessage done [10:41:16]OFDSenderStorePacket 28879 [10:41:16]StoreOFDPacket docnum=28879 [10:41:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 21 28 07 01 A4 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 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 65 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 4E 61 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CF 70 00 00 35 04 06 00 43 2E AD 7F 44 C0 4F DE B9 76 BD CB 06 4C [10:41:16]CheckFolder [10:41:16]dirname=/storage/ofd_packets [10:41:16]CheckFolder done [10:41:16]ProducePacketName [10:41:16]name=ofd_packets/00028879 [10:41:16]NVStorageSaveData ofd_packets/00028879 [10:41:16]File name is /storage/ofd_packets/00028879 [10:41:16]Write 301 bytes [10:41:16]NVStorageSaveData done [10:41:16]OFDSenderStorePacket done [10:41:16]KKMCreateOFDPacket done [10:41:16]NVStorageSaveData kkm_last_timestamp [10:41:16]File name is /storage/kkm_last_timestamp [10:41:16]Write 4 bytes [10:41:16]NVStorageSaveData done [10:41:16]ExternCall_PrintAddStr [10:41:16]wPrintStart [10:41:16]Write to MH i2c: 01 00 00 0A 30 3A [10:41:16]Write i2c OK [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: 01 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: 01 07 00 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: 01 07 00 0A 30 00 00 00 00 00 FF 0F 4F [10:41:16]RasterBufferAndPrint [10:41:16]line Счет N : (1)347232 [10:41:16]line ИНН: 02508201610067 [10:41:16]line Контрольно-Кассовый Чек [10:41:16]line ПРОДАЖА [10:41:16]line ТРК (МРК, ГНК) : 13 [10:41:16]line Товар: 2710124130 [10:41:16]line Аи-92-К-5 [10:41:16]line 31.110 * 64.30 [10:41:16]line = 2000.37 [10:41:16]line НДС 12% НСП 1% [10:41:16]line > о реализуемом товаре [10:41:16]line ИТОГО: 2000.37 [10:41:16]line НСП 1% : 17.70 [10:41:16]line НДС 12% : 212.43 [10:41:16]line Наличными: 0.00 [10:41:16]line Безнал.: 2000.37 [10:41:16]line Место: АЗС № 108 "Партнер Нефть" [10:41:16]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:41:16]line СНО: Общий режим [10:41:16]line Чек 86 13.04.2024 10:41 [10:41:16]line Смена: 115 ФФД: 1.0 [10:41:16]line ЗНМ: 0300000027 [10:41:16]line РНМ: 0000138879044617 [10:41:16]line Версия ККМ: 001 [10:41:16]line Платежная система: АКБ Кыргызстан [10:41:16]line ФМ: 0000000000963154 [10:41:16]line ФД: 28879 [10:41:16]line ФПД: 73867758355648 [10:41:16]line 1/tax-web-control/client/api/v1/ticket?date=20240413T104118&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28879&fm=73867758355648&tin=02508201610067®Number=0000138879044617&sum=200037 [10:41:16]OFD Sender: Processing packet 28879 [packets to send 8, broken 7] [10:41:16]ProducePacketName [10:41:16]name=ofd_packets/00028879 [10:41:16]OFD Sender: To server: pG, [10:41:16]CommunicateWithHost lk.salyk.kg:30040 [10:41:16]ConnectInit lk.salyk.kg [10:41:16]written 0, free lines is 4095 [10:41:16]Connected sock=10 [10:41: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 31 35 34 0F 01 00 00 21 28 07 01 A4 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 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 65 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 4E 61 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CF 70 00 00 35 04 06 00 43 2E AD 7F 44 C0 4F DE B9 76 BD CB 06 4C [10:41:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 50 74 47 00 4C 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 CF 70 00 00 F4 03 04 00 F6 0B 1A 66 B6 04 01 00 00 B8 36 78 CA B6 06 FF BB [10:41:16]CommunicateWithHost err = 0 [10:41:16]CheckOFDResponse [10:41:16]1017 (14) - 77093643461234 [10:41:16]1041 (16) - 0000000000963154 [10:41:16]1040 (4) - 28879 [10:41:16]1012 (4) - 13.04.2024 04:37 [10:41:16]1206 (1) - 0 [10:41:16]OFD Sender: Remove packet 28879 [10:41:16]ProducePacketName [10:41:16]name=ofd_packets/00028879 [10:41:16]NVStorageDeleteData [10:41:17]Write to MH i2c: 01 00 00 33 30 63 [10:41:17]Write i2c OK [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: 01 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: 01 07 00 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: 01 07 00 33 30 00 00 00 00 00 D9 0C 4F [10:41:17]RasterBufferAndPrint [10:41:17]line [10:41:17]line [10:41:17]line [10:41:17]line [10:41:17]line [10:41:17]written 0, free lines is 3296 [10:41:17]MH_Cut [10:41:17]Write to MH i2c: D1 01 00 3A 30 01 3C [10:41:17]Write i2c OK [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: D1 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: D1 01 00 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: D1 01 00 3A 30 00 3B [10:41:17]Write to MH i2c: 01 00 00 3B 30 6B [10:41:17]Write i2c OK [10:41:17]MH_I2C_Read... [10:41:17]OFD Sender: No OFD packet to send [10:41:17]*** Cut start [10:41:17]*** Partial cut [10:41:17]*** CUTSNS_PIN = 1 [10:41:17]*** CUTSNS_PIN = 0 [10:41:18]*** Brake cut motor [10:41:18]Read from MH i2c: 01 [10:41:18]MH_I2C_Read... [10:41:18]*** Stop cut motor [10:41:18]*** Cut end [10:41:18]Read from MH i2c: 01 07 00 [10:41:18]MH_I2C_Read... [10:41:18]Read from MH i2c: 01 07 00 3B 30 00 00 00 00 00 FF 0F 80 [10:41:18]process_action close_receipt done [10:41:18]requested_data is exist [10:41:18]produce_requested_data [10:41:18]requested_item fm.sn is exist - process it [10:41:18]wFMCommunicate request_size=4 [10:41:18]MH_SAM_APDU [10:41:18]CAPDU: 80 11 00 00 [10:41:18]Write to MH i2c: E2 08 00 3C 30 80 11 00 00 00 00 00 00 E6 [10:41:18]Write i2c OK [10:41:18]MH_I2C_Read... [10:41:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:18]Read from MH i2c: E2 [10:41:18]MH_I2C_Read... [10:41:18]Read from MH i2c: E2 17 00 [10:41:18]MH_I2C_Read... [10:41:18]Read from MH i2c: E2 17 00 3C 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 35 [10:41:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:41:18]wFMCommunicate OK [10:41:18]requested_item fd.num is exist - process it [10:41:18]SAM_PROTO_GetFieldsCounters [10:41:18]wFMCommunicate request_size=4 [10:41:18]MH_SAM_APDU [10:41:18]CAPDU: 80 13 00 00 [10:41:18]Write to MH i2c: E2 08 00 3D 30 80 13 00 00 00 00 00 00 E9 [10:41:18]Write i2c OK [10:41:18]MH_I2C_Read... [10:41:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:18]Read from MH i2c: E2 [10:41:18]MH_I2C_Read... [10:41:18]Read from MH i2c: E2 62 00 [10:41:18]MH_I2C_Read... [10:41:18]Read from MH i2c: E2 62 00 3D 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CF 70 00 00 0E 04 04 00 73 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 DB [10:41: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 CF 70 00 00 0E 04 04 00 73 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:41:18]wFMCommunicate OK [10:41:18]SAM_PROTO_GetFieldsCounters done [10:41:18]requested_item shift.num is exist - process it [10:41:18]requested_item shift.opened is exist - process it [10:41:18]req_shift_opened [10:41:18]FM_GetShiftState [10:41:18]SAM_PROTO_GetShiftState [10:41:18]wFMCommunicate request_size=4 [10:41:18]MH_SAM_APDU [10:41:18]CAPDU: 80 13 01 00 [10:41:18]Write to MH i2c: E2 08 00 3E 30 80 13 01 00 00 00 00 00 EB [10:41:18]Write i2c OK [10:41:18]MH_I2C_Read... [10:41:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:18]Read from MH i2c: E2 [10:41:18]MH_I2C_Read... [10:41:18]Read from MH i2c: E2 0E 00 [10:41:18]MH_I2C_Read... [10:41:18]Read from MH i2c: E2 0E 00 3E 30 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 04 [10:41:18]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:41:18]wFMCommunicate OK [10:41:18]SAM_PROTO_GetShiftState done [10:41:18]FM_GetShiftState done [10:41:18]req_shift_opened done [10:41:18]requested_item shift.open_date is exist - process it [10:41:18]req_shift_open_date [10:41:18]req_shift_open_date done [10:41:18]produce_requested_data done [10:41:18]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28879,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [10:41:18]process_action_free close_receipt [10:41:18]json_value_free [10:41:18]json_value_free done [10:41:18]process_json_proto returns [10:41:18]Send response to host [10:41:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28879,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [10:41:18]free response buf [10:41:18]execute_script done [10:41:18]execute_script returns [10:41:18]free content buf [10:41:18]Sock 7.Close socket [10:41:18]Sock 7.Thread stoped [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:40]accept exits with 9 [10:43:40]New connection [10:43:40]New thread 3066928484 created [10:43:40]Thread 3066785124 joined [10:43:40]Waiting for new connection... [10:43:40] Sock 9.Parse request [10:43:40]Sock 9.Check first char [10:43:40]Sock 9.First char is OK [10:43:40]request: POST /json_proto HTTP/1.0 [10:43:40]Method: POST [10:43:40]URL: /json_proto [10:43:40]Method is POST - this is cgi request [10:43:40]url: /json_proto [10:43:40]query_string will be loaded in cgi processing [10:43:40]execute_cgi json_proto POST (null) [10:43:40]execute_cgi path=json_proto method=POST [10:43:40]POST find Content-Length [10:43:40]Host: 172.17.33.3:8080 [10:43:40]Content-Length: 843 [10:43:40]Content-Type: application/json [10:43:40] [10:43:40]POST finish read [10:43:40]Found Content-Length = 843 [10:43:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347233", "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" : 64.30, "quantity" : 15.560, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:40]execute_script... [10:43: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)347233", "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" : 64.30, "quantity" : 15.560, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:40]POST & json_proto [10:43:40]process_json_proto [10:43:40]json parsed OK: [10:43:40]protocol is kg_v1.0 [10:43:40]action value=close_receipt [10:43:40]process_action close_receipt [10:43:40]cmd_close_receipt [10:43:40]MH_GetDate [10:43:40]Write to MH i2c: F0 00 00 3F 30 5E [10:43:40]Write i2c OK [10:43:40]MH_I2C_Read... [10:43:40]Read from MH i2c: F0 [10:43:40]MH_I2C_Read... [10:43:40]Read from MH i2c: F0 09 00 [10:43:40]MH_I2C_Read... [10:43:40]Read from MH i2c: F0 09 00 3F 30 00 E0 61 1A 66 23 5B 8F 65 9A [10:43:40]GetLastDocTimeStamp 1713004878 [10:43:40]current date 1713005024 [10:43:40]FM_GetShiftState [10:43:40]SAM_PROTO_GetShiftState [10:43:40]wFMCommunicate request_size=4 [10:43:40]MH_SAM_APDU [10:43:40]CAPDU: 80 13 01 00 [10:43:40]Write to MH i2c: E2 08 00 40 30 80 13 01 00 00 00 00 00 ED [10:43:40]Write i2c OK [10:43:40]MH_I2C_Read... [10:43:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:40]Read from MH i2c: E2 [10:43:40]MH_I2C_Read... [10:43:40]Read from MH i2c: E2 0E 00 [10:43:40]MH_I2C_Read... [10:43:40]Read from MH i2c: E2 0E 00 40 30 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 06 [10:43:40]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:43:40]wFMCommunicate OK [10:43:40]SAM_PROTO_GetShiftState done [10:43:40]FM_GetShiftState done [10:43:40]opened in 1712967615 [10:43:40]opened+sec_in_day 1713054015 [10:43:40]quantity*price = 100050 [10:43:40]sum+1 = 100052 [10:43:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 87 13.04.2024 10:43 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28880 ФПД: 233652580404586 1/tax-web-control/client/api/v1/ticket?date=20240413T104344&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28880&fm=233652580404586&tin=02508201610067®Number=0000138879044617&sum=100051 [10:43:41]StoreToDocumentArchive [10:43:41]shift 115 fd 28880 [10:43:41]save to /storage/0115/doc_00028880 [10:43:41]save last doc name /storage/0115/doc_00028880 to /storage/kkm_last_doc_name [10:43:41]save OK [10:43:41]Clear old archive folders... [10:43:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:43:41]tlvbuf is 012842B0 [10:43:41]SAM_PROTO_ClearQueue [10:43:41]wFMCommunicate request_size=4 [10:43:41]MH_SAM_APDU [10:43:41]CAPDU: 80 09 00 00 [10:43:41]Write to MH i2c: E2 08 00 4D 30 80 09 00 00 00 00 00 00 EF [10:43:41]Write i2c OK [10:43:41]MH_I2C_Read... [10:43:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:41]Read from MH i2c: E2 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: E2 03 00 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: E2 03 00 4D 30 00 90 00 F1 [10:43:41]RAPDU: 90 00 [10:43:41]wFMCommunicate OK [10:43:41]SAM_PROTO_ClearQueue done [10:43:41]KKMCreateOFDPacket [10:43:41]OFDProtocolAddRootSTLVToBuf [10:43:41]FM_MakeSignedData [10:43:41]FM_MakeSignedData [10:43:41]SAM_PROTO_SignData [10:43:41]wFMCommunicate request_size=4 [10:43:41]MH_SAM_APDU [10:43:41]CAPDU: 80 0D 01 02 [10:43:41]Write to MH i2c: E2 08 00 4E 30 80 0D 01 02 00 00 00 00 F7 [10:43:41]Write i2c OK [10:43:41]MH_I2C_Read... [10:43:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:41]Read from MH i2c: E2 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: E2 03 00 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: E2 03 00 4E 30 00 90 00 F2 [10:43:41]RAPDU: 90 00 [10:43:41]wFMCommunicate OK [10:43:41]wFMCommunicate request_size=255 [10:43:41]MH_SAM_APDU [10:43: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 57 00 00 00 F4 03 04 00 E0 61 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D0 70 00 00 35 04 06 00 D4 [10:43:41]Write to MH i2c: E2 02 01 4F 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 57 00 00 00 F4 03 04 00 E0 61 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D0 70 00 00 35 04 06 00 D4 00 00 28 [10:43:41]Write i2c OK [10:43:41]MH_I2C_Read... [10:43:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:41]Read from MH i2c: E2 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: E2 03 00 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: E2 03 00 4F 30 00 90 00 F3 [10:43:41]RAPDU: 90 00 [10:43:41]wFMCommunicate OK [10:43:41]wFMCommunicate request_size=10 [10:43:41]MH_SAM_APDU [10:43:41]CAPDU: 80 0D 02 02 05 81 7B 0E 4D 6A [10:43:41]Write to MH i2c: E2 0D 00 50 30 80 0D 02 02 05 00 81 7B 0E 4D 6A 00 00 C5 [10:43:41]Write i2c OK [10:43:41]MH_I2C_Read... [10:43:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:41]Read from MH i2c: E2 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: E2 03 00 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: E2 03 00 50 30 00 90 00 F4 [10:43:41]RAPDU: 90 00 [10:43:41]wFMCommunicate OK [10:43:41]wFMCommunicate request_size=4 [10:43:41]MH_SAM_APDU [10:43:41]CAPDU: 80 0D 03 02 [10:43:41]Write to MH i2c: E2 08 00 51 30 80 0D 03 02 00 00 00 00 FC [10:43:41]Write i2c OK [10:43:41]MH_I2C_Read... [10:43:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:41]Read from MH i2c: E2 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: E2 0B 00 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: E2 0B 00 51 30 00 97 C2 0F 9B 57 CF 59 21 90 00 A0 [10:43:41]RAPDU: 97 C2 0F 9B 57 CF 59 21 90 00 [10:43:41]wFMCommunicate OK [10:43:41]SAM_PROTO_SignData done [10:43:41]FM_MakeSignedData done [10:43:41]CreateOFDProtocolMessage [10:43:41]wFMCommunicate request_size=4 [10:43:41]MH_SAM_APDU [10:43:41]CAPDU: 80 11 00 00 [10:43:41]Write to MH i2c: E2 08 00 52 30 80 11 00 00 00 00 00 00 FC [10:43:41]Write i2c OK [10:43:41]MH_I2C_Read... [10:43:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:41]Read from MH i2c: E2 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: E2 17 00 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: E2 17 00 52 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4B [10:43:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:43:41]wFMCommunicate OK [10:43:41]CreateOFDProtocolMessage done [10:43:41]OFDSenderStorePacket 28880 [10:43:41]StoreOFDPacket docnum=28880 [10:43:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C2 26 07 01 B4 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 57 00 00 00 F4 03 04 00 E0 61 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D0 70 00 00 35 04 06 00 D4 81 7B 0E 4D 6A 97 C2 0F 9B 57 CF 59 21 [10:43:41]CheckFolder [10:43:41]dirname=/storage/ofd_packets [10:43:41]CheckFolder done [10:43:41]ProducePacketName [10:43:41]name=ofd_packets/00028880 [10:43:41]NVStorageSaveData ofd_packets/00028880 [10:43:41]File name is /storage/ofd_packets/00028880 [10:43:41]Write 301 bytes [10:43:41]NVStorageSaveData done [10:43:41]OFDSenderStorePacket done [10:43:41]KKMCreateOFDPacket done [10:43:41]NVStorageSaveData kkm_last_timestamp [10:43:41]File name is /storage/kkm_last_timestamp [10:43:41]Write 4 bytes [10:43:41]NVStorageSaveData done [10:43:41]ExternCall_PrintAddStr [10:43:41]wPrintStart [10:43:41]Write to MH i2c: 01 00 00 53 30 83 [10:43:41]Write i2c OK [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: 01 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: 01 07 00 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: 01 07 00 53 30 00 00 00 00 00 FF 0F 98 [10:43:41]RasterBufferAndPrint [10:43:41]line Счет N : (1)347233 [10:43:41]line ИНН: 02508201610067 [10:43:41]line Контрольно-Кассовый Чек [10:43:41]line ПРОДАЖА [10:43:41]line ТРК (МРК, ГНК) : 32 [10:43:41]line Товар: 2710124130 [10:43:41]line Аи-92-К-5 [10:43:41]line 15.560 * 64.30 [10:43:41]line = 1000.51 [10:43:41]line НДС 12% НСП 1% [10:43:41]line > о реализуемом товаре [10:43:41]line ИТОГО: 1000.51 [10:43:41]line НСП 1% : 8.85 [10:43:41]line НДС 12% : 106.25 [10:43:41]line Наличными: 0.00 [10:43:41]line Безнал.: 1000.51 [10:43:41]line Место: АЗС № 108 "Партнер Нефть" [10:43:41]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:43:41]line СНО: Общий режим [10:43:41]line Чек 87 13.04.2024 10:43 [10:43:41]line Смена: 115 ФФД: 1.0 [10:43:41]line ЗНМ: 0300000027 [10:43:41]line РНМ: 0000138879044617 [10:43:41]line Версия ККМ: 001 [10:43:41]line Платежная система: АКБ Кыргызстан [10:43:41]line ФМ: 0000000000963154 [10:43:41]line ФД: 28880 [10:43:41]line ФПД: 233652580404586 [10:43:41]line 1/tax-web-control/client/api/v1/ticket?date=20240413T104344&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28880&fm=233652580404586&tin=02508201610067®Number=0000138879044617&sum=100051 [10:43:42]OFD Sender: Processing packet 28880 [packets to send 8, broken 7] [10:43:42]ProducePacketName [10:43:42]name=ofd_packets/00028880 [10:43:42]OFD Sender: To server: pG, [10:43:42]CommunicateWithHost lk.salyk.kg:30040 [10:43:42]ConnectInit lk.salyk.kg [10:43:42]written 0, free lines is 4095 [10:43:42]Connected sock=11 [10:43: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 31 35 34 0F 01 00 00 C2 26 07 01 B4 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 57 00 00 00 F4 03 04 00 E0 61 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D0 70 00 00 35 04 06 00 D4 81 7B 0E 4D 6A 97 C2 0F 9B 57 CF 59 21 [10:43:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6C 82 47 00 D2 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 31 35 34 10 04 04 00 D0 70 00 00 F4 03 04 00 87 0C 1A 66 B6 04 01 00 00 8E 20 EA 00 4A 02 2A A3 [10:43:42]CommunicateWithHost err = 0 [10:43:42]CheckOFDResponse [10:43:42]1017 (14) - 77093643461234 [10:43:42]1041 (16) - 0000000000963154 [10:43:42]1040 (4) - 28880 [10:43:42]1012 (4) - 13.04.2024 04:39 [10:43:42]1206 (1) - 0 [10:43:42]OFD Sender: Remove packet 28880 [10:43:42]ProducePacketName [10:43:42]name=ofd_packets/00028880 [10:43:42]NVStorageDeleteData [10:43:42]Write to MH i2c: 01 00 00 7C 30 AC [10:43:42]Write i2c OK [10:43:42]MH_I2C_Read... [10:43:42]Read from MH i2c: 01 [10:43:42]MH_I2C_Read... [10:43:42]Read from MH i2c: 01 07 00 [10:43:42]MH_I2C_Read... [10:43:42]Read from MH i2c: 01 07 00 7C 30 00 00 00 00 00 D9 0C 98 [10:43:42]RasterBufferAndPrint [10:43:42]line [10:43:42]line [10:43:42]line [10:43:42]line [10:43:42]line [10:43:42]written 0, free lines is 3296 [10:43:42]MH_Cut [10:43:42]Write to MH i2c: D1 01 00 83 30 01 85 [10:43:42]Write i2c OK [10:43:42]MH_I2C_Read... [10:43:42]Read from MH i2c: D1 [10:43:42]MH_I2C_Read... [10:43:42]Read from MH i2c: D1 01 00 [10:43:42]MH_I2C_Read... [10:43:42]Read from MH i2c: D1 01 00 83 30 00 84 [10:43:42]Write to MH i2c: 01 00 00 84 30 B4 [10:43:42]Write i2c OK [10:43:42]MH_I2C_Read... [10:43:42]OFD Sender: No OFD packet to send [10:43:43]*** Cut start [10:43:43]*** Partial cut [10:43:43]*** CUTSNS_PIN = 1 [10:43:43]*** CUTSNS_PIN = 0 [10:43:43]*** Brake cut motor [10:43:44]Read from MH i2c: 01 [10:43:44]MH_I2C_Read... [10:43:44]*** Stop cut motor [10:43:44]*** Cut end [10:43:44]Read from MH i2c: 01 07 00 [10:43:44]MH_I2C_Read... [10:43:44]Read from MH i2c: 01 07 00 84 30 00 00 00 00 00 FF 0F C9 [10:43:44]process_action close_receipt done [10:43:44]requested_data is exist [10:43:44]produce_requested_data [10:43:44]requested_item fm.sn is exist - process it [10:43:44]wFMCommunicate request_size=4 [10:43:44]MH_SAM_APDU [10:43:44]CAPDU: 80 11 00 00 [10:43:44]Write to MH i2c: E2 08 00 85 30 80 11 00 00 00 00 00 00 2F [10:43:44]Write i2c OK [10:43:44]MH_I2C_Read... [10:43:44]Read from MH i2c: E2 [10:43:44]MH_I2C_Read... [10:43:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:44]Read from MH i2c: E2 17 00 [10:43:44]MH_I2C_Read... [10:43:44]Read from MH i2c: E2 17 00 85 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7E [10:43:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:43:44]wFMCommunicate OK [10:43:44]requested_item fd.num is exist - process it [10:43:44]SAM_PROTO_GetFieldsCounters [10:43:44]wFMCommunicate request_size=4 [10:43:44]MH_SAM_APDU [10:43:44]CAPDU: 80 13 00 00 [10:43:44]Write to MH i2c: E2 08 00 86 30 80 13 00 00 00 00 00 00 32 [10:43:44]Write i2c OK [10:43:44]MH_I2C_Read... [10:43:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:44]Read from MH i2c: E2 [10:43:44]MH_I2C_Read... [10:43:44]Read from MH i2c: E2 62 00 [10:43:44]MH_I2C_Read... [10:43:44]Read from MH i2c: E2 62 00 86 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D0 70 00 00 0E 04 04 00 73 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 28 [10:43: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D0 70 00 00 0E 04 04 00 73 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:43:44]wFMCommunicate OK [10:43:44]SAM_PROTO_GetFieldsCounters done [10:43:44]requested_item shift.num is exist - process it [10:43:44]requested_item shift.opened is exist - process it [10:43:44]req_shift_opened [10:43:44]FM_GetShiftState [10:43:44]SAM_PROTO_GetShiftState [10:43:44]wFMCommunicate request_size=4 [10:43:44]MH_SAM_APDU [10:43:44]CAPDU: 80 13 01 00 [10:43:44]Write to MH i2c: E2 08 00 87 30 80 13 01 00 00 00 00 00 34 [10:43:44]Write i2c OK [10:43:44]MH_I2C_Read... [10:43:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:44]Read from MH i2c: E2 [10:43:44]MH_I2C_Read... [10:43:44]Read from MH i2c: E2 0E 00 [10:43:44]MH_I2C_Read... [10:43:44]Read from MH i2c: E2 0E 00 87 30 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 4D [10:43:44]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:43:44]wFMCommunicate OK [10:43:44]SAM_PROTO_GetShiftState done [10:43:44]FM_GetShiftState done [10:43:44]req_shift_opened done [10:43:44]requested_item shift.open_date is exist - process it [10:43:44]req_shift_open_date [10:43:44]req_shift_open_date done [10:43:44]produce_requested_data done [10:43:44]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28880,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [10:43:44]process_action_free close_receipt [10:43:44]json_value_free [10:43:44]json_value_free done [10:43:44]process_json_proto returns [10:43:44]Send response to host [10:43:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28880,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [10:43:44]free response buf [10:43:44]execute_script done [10:43:44]execute_script returns [10:43:44]free content buf [10:43:44]Sock 9.Close socket [10:43:44]Sock 9.Thread stoped [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:23]OFD Sender: No OFD packet to send [10:45:28]OFD Sender: No OFD packet to send [10:45:33]OFD Sender: No OFD packet to send [10:45:38]OFD Sender: No OFD packet to send [10:45:43]OFD Sender: No OFD packet to send [10:45:43]accept exits with 7 [10:45:43]New connection [10:45:43]New thread 3066785124 created [10:45:43]Thread 3066928484 joined [10:45:43]Waiting for new connection... [10:45:43] Sock 7.Parse request [10:45:43]Sock 7.Check first char [10:45:43]Sock 7.First char is OK [10:45:43]request: POST /json_proto HTTP/1.0 [10:45:43]Method: POST [10:45:43]URL: /json_proto [10:45:43]Method is POST - this is cgi request [10:45:43]url: /json_proto [10:45:43]query_string will be loaded in cgi processing [10:45:43]execute_cgi json_proto POST (null) [10:45:43]execute_cgi path=json_proto method=POST [10:45:43]POST find Content-Length [10:45:43]Host: 172.17.33.3:8080 [10:45:43]Content-Length: 678 [10:45:43]Content-Type: application/json [10:45:43] [10:45:43]POST finish read [10:45:43]Found Content-Length = 678 [10:45:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347234", "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" : 64.30, "quantity" : 12.450, "sum" : 800.54, "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:45:43]execute_script... [10:45:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347234", "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" : 64.30, "quantity" : 12.450, "sum" : 800.54, "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:45:43]POST & json_proto [10:45:43]process_json_proto [10:45:43]json parsed OK: [10:45:43]protocol is kg_v1.0 [10:45:43]action value=close_receipt [10:45:43]process_action close_receipt [10:45:43]cmd_close_receipt [10:45:43]MH_GetDate [10:45:43]Write to MH i2c: F0 00 00 88 30 A7 [10:45:43]Write i2c OK [10:45:43]MH_I2C_Read... [10:45:43]Read from MH i2c: F0 [10:45:43]MH_I2C_Read... [10:45:43]Read from MH i2c: F0 09 00 [10:45:43]MH_I2C_Read... [10:45:43]Read from MH i2c: F0 09 00 88 30 00 5B 62 1A 66 23 5B 8F 65 5F [10:45:43]GetLastDocTimeStamp 1713005024 [10:45:43]current date 1713005147 [10:45:43]FM_GetShiftState [10:45:43]SAM_PROTO_GetShiftState [10:45:43]wFMCommunicate request_size=4 [10:45:43]MH_SAM_APDU [10:45:43]CAPDU: 80 13 01 00 [10:45:43]Write to MH i2c: E2 08 00 89 30 80 13 01 00 00 00 00 00 36 [10:45:43]Write i2c OK [10:45:43]MH_I2C_Read... [10:45:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:43]Read from MH i2c: E2 [10:45:43]MH_I2C_Read... [10:45:43]Read from MH i2c: E2 0E 00 [10:45:43]MH_I2C_Read... [10:45:43]Read from MH i2c: E2 0E 00 89 30 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 4F [10:45:43]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:45:43]wFMCommunicate OK [10:45:43]SAM_PROTO_GetShiftState done [10:45:43]FM_GetShiftState done [10:45:43]opened in 1712967615 [10:45:43]opened+sec_in_day 1713054015 [10:45:43]quantity*price = 80053 [10:45:43]sum+1 = 80055 [10:45:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 88 13.04.2024 10:45 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28881 ФПД: 123737517436073 1/tax-web-control/client/api/v1/ticket?date=20240413T104547&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28881&fm=123737517436073&tin=02508201610067®Number=0000138879044617&sum=80000 [10:45:44]StoreToDocumentArchive [10:45:44]shift 115 fd 28881 [10:45:44]save to /storage/0115/doc_00028881 [10:45:44]save last doc name /storage/0115/doc_00028881 to /storage/kkm_last_doc_name [10:45:44]save OK [10:45:44]Clear old archive folders... [10:45:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:44]tlvbuf is 01233480 [10:45:44]SAM_PROTO_ClearQueue [10:45:44]wFMCommunicate request_size=4 [10:45:44]MH_SAM_APDU [10:45:44]CAPDU: 80 09 00 00 [10:45:44]Write to MH i2c: E2 08 00 96 30 80 09 00 00 00 00 00 00 38 [10:45:44]Write i2c OK [10:45:44]MH_I2C_Read... [10:45:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:44]Read from MH i2c: E2 [10:45:44]MH_I2C_Read... [10:45:44]Read from MH i2c: E2 03 00 [10:45:44]MH_I2C_Read... [10:45:44]Read from MH i2c: E2 03 00 96 30 00 90 00 3A [10:45:44]RAPDU: 90 00 [10:45:44]wFMCommunicate OK [10:45:44]SAM_PROTO_ClearQueue done [10:45:44]KKMCreateOFDPacket [10:45:44]OFDProtocolAddRootSTLVToBuf [10:45:44]FM_MakeSignedData [10:45:44]FM_MakeSignedData [10:45:44]SAM_PROTO_SignData [10:45:44]wFMCommunicate request_size=4 [10:45:44]MH_SAM_APDU [10:45:44]CAPDU: 80 0D 01 02 [10:45:44]Write to MH i2c: E2 08 00 97 30 80 0D 01 02 00 00 00 00 40 [10:45:44]Write i2c OK [10:45:44]MH_I2C_Read... [10:45:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:44]Read from MH i2c: E2 [10:45:44]MH_I2C_Read... [10:45:44]Read from MH i2c: E2 03 00 [10:45:44]MH_I2C_Read... [10:45:44]Read from MH i2c: E2 03 00 97 30 00 90 00 3B [10:45:44]RAPDU: 90 00 [10:45:44]wFMCommunicate OK [10:45:44]wFMCommunicate request_size=255 [10:45:44]MH_SAM_APDU [10:45: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 A2 30 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B6 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 5B 62 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D1 70 00 00 35 04 06 00 70 [10:45:44]Write to MH i2c: E2 02 01 98 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 A2 30 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B6 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 5B 62 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D1 70 00 00 35 04 06 00 70 00 00 A6 [10:45:44]Write i2c OK [10:45:44]MH_I2C_Read... [10:45:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:44]Read from MH i2c: E2 [10:45:44]MH_I2C_Read... [10:45:44]Read from MH i2c: E2 03 00 [10:45:44]MH_I2C_Read... [10:45:44]Read from MH i2c: E2 03 00 98 30 00 90 00 3C [10:45:44]RAPDU: 90 00 [10:45:44]wFMCommunicate OK [10:45:44]wFMCommunicate request_size=10 [10:45:44]MH_SAM_APDU [10:45:44]CAPDU: 80 0D 02 02 05 89 E2 C5 AC A9 [10:45:44]Write to MH i2c: E2 0D 00 99 30 80 0D 02 02 05 00 89 E2 C5 AC A9 00 00 D2 [10:45:44]Write i2c OK [10:45:44]MH_I2C_Read... [10:45:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:44]Read from MH i2c: E2 [10:45:44]MH_I2C_Read... [10:45:44]Read from MH i2c: E2 03 00 [10:45:44]MH_I2C_Read... [10:45:44]Read from MH i2c: E2 03 00 99 30 00 90 00 3D [10:45:44]RAPDU: 90 00 [10:45:44]wFMCommunicate OK [10:45:44]wFMCommunicate request_size=4 [10:45:44]MH_SAM_APDU [10:45:44]CAPDU: 80 0D 03 02 [10:45:44]Write to MH i2c: E2 08 00 9A 30 80 0D 03 02 00 00 00 00 45 [10:45:44]Write i2c OK [10:45:44]MH_I2C_Read... [10:45:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:44]Read from MH i2c: E2 [10:45:44]MH_I2C_Read... [10:45:44]Read from MH i2c: E2 0B 00 [10:45:44]MH_I2C_Read... [10:45:44]Read from MH i2c: E2 0B 00 9A 30 00 5A 15 D5 1A BB EE 20 AC 90 00 19 [10:45:44]RAPDU: 5A 15 D5 1A BB EE 20 AC 90 00 [10:45:44]wFMCommunicate OK [10:45:44]SAM_PROTO_SignData done [10:45:44]FM_MakeSignedData done [10:45:44]CreateOFDProtocolMessage [10:45:44]wFMCommunicate request_size=4 [10:45:44]MH_SAM_APDU [10:45:44]CAPDU: 80 11 00 00 [10:45:44]Write to MH i2c: E2 08 00 9B 30 80 11 00 00 00 00 00 00 45 [10:45:44]Write i2c OK [10:45:44]MH_I2C_Read... [10:45:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:44]Read from MH i2c: E2 [10:45:44]MH_I2C_Read... [10:45:44]Read from MH i2c: E2 17 00 [10:45:44]MH_I2C_Read... [10:45:44]Read from MH i2c: E2 17 00 9B 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 94 [10:45:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:45:44]wFMCommunicate OK [10:45:44]CreateOFDProtocolMessage done [10:45:44]OFDSenderStorePacket 28881 [10:45:44]StoreOFDPacket docnum=28881 [10:45:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E5 3B 07 01 0F 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 A2 30 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B6 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 5B 62 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D1 70 00 00 35 04 06 00 70 89 E2 C5 AC A9 5A 15 D5 1A BB EE 20 AC [10:45:44]CheckFolder [10:45:44]dirname=/storage/ofd_packets [10:45:44]CheckFolder done [10:45:44]ProducePacketName [10:45:44]name=ofd_packets/00028881 [10:45:44]NVStorageSaveData ofd_packets/00028881 [10:45:44]File name is /storage/ofd_packets/00028881 [10:45:44]Write 301 bytes [10:45:44]NVStorageSaveData done [10:45:44]OFDSenderStorePacket done [10:45:44]KKMCreateOFDPacket done [10:45:44]NVStorageSaveData kkm_last_timestamp [10:45:44]File name is /storage/kkm_last_timestamp [10:45:44]Write 4 bytes [10:45:44]NVStorageSaveData done [10:45:44]ExternCall_PrintAddStr [10:45:44]wPrintStart [10:45:44]Write to MH i2c: 01 00 00 9C 30 CC [10:45:44]Write i2c OK [10:45:44]MH_I2C_Read... [10:45:44]Read from MH i2c: 01 [10:45:44]MH_I2C_Read... [10:45:44]Read from MH i2c: 01 07 00 [10:45:44]MH_I2C_Read... [10:45:44]Read from MH i2c: 01 07 00 9C 30 00 00 00 00 00 FF 0F E1 [10:45:44]RasterBufferAndPrint [10:45:44]line Счет N : (1)347234 [10:45:44]line ИНН: 02508201610067 [10:45:44]line Контрольно-Кассовый Чек [10:45:44]line ПРОДАЖА [10:45:44]line ТРК (МРК, ГНК) : 42 [10:45:44]line Товар: 2710124130 [10:45:44]line Аи-92-К-5 [10:45:44]line 12.450 * 64.30 [10:45:44]line = 800.54 [10:45:44]line НДС 12% НСП 1% [10:45:44]line > о реализуемом товаре [10:45:44]line ОКРУГЛЕНИЕ: -0.54 [10:45:44]line ИТОГО: 800.00 [10:45:44]line Внесено: 800.00 [10:45:44]line СДАЧА: 0.00 [10:45:44]line НСП 1% : 7.08 [10:45:44]line НДС 12% : 85.01 [10:45:44]line Наличными: 800.00 [10:45:44]line Безнал.: 0.00 [10:45:44]line Место: АЗС № 108 "Партнер Нефть" [10:45:44]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:45:44]line СНО: Общий режим [10:45:44]line Чек 88 13.04.2024 10:45 [10:45:44]line Смена: 115 ФФД: 1.0 [10:45:44]line ЗНМ: 0300000027 [10:45:44]line РНМ: 0000138879044617 [10:45:44]line Версия ККМ: 001 [10:45:44]line ФМ: 0000000000963154 [10:45:44]line ФД: 28881 [10:45:44]line ФПД: 123737517436073 [10:45:45]line 1/tax-web-control/client/api/v1/ticket?date=20240413T104547&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28881&fm=123737517436073&tin=02508201610067®Number=0000138879044617&sum=80000 [10:45:45]OFD Sender: Processing packet 28881 [packets to send 8, broken 7] [10:45:45]ProducePacketName [10:45:45]name=ofd_packets/00028881 [10:45:45]OFD Sender: To server: pG, [10:45:45]CommunicateWithHost lk.salyk.kg:30040 [10:45:45]ConnectInit lk.salyk.kg [10:45:45]written 0, free lines is 4095 [10:45:45]Connected sock=10 [10:45: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 31 35 34 0F 01 00 00 E5 3B 07 01 0F 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 A2 30 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B6 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 5B 62 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D1 70 00 00 35 04 06 00 70 89 E2 C5 AC A9 5A 15 D5 1A BB EE 20 AC [10:45:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B8 5A 47 00 57 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 31 35 34 10 04 04 00 D1 70 00 00 F4 03 04 00 02 0D 1A 66 B6 04 01 00 00 D2 08 A7 1A 21 02 8A 20 [10:45:45]CommunicateWithHost err = 0 [10:45:45]CheckOFDResponse [10:45:45]1017 (14) - 77093643461234 [10:45:45]1041 (16) - 0000000000963154 [10:45:45]1040 (4) - 28881 [10:45:45]1012 (4) - 13.04.2024 04:41 [10:45:45]1206 (1) - 0 [10:45:45]OFD Sender: Remove packet 28881 [10:45:45]ProducePacketName [10:45:45]name=ofd_packets/00028881 [10:45:45]NVStorageDeleteData [10:45:45]Write to MH i2c: 01 00 00 C6 30 F6 [10:45:45]Write i2c OK [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: 01 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: 01 07 00 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: 01 07 00 C6 30 00 00 00 00 00 C2 0C CB [10:45:45]RasterBufferAndPrint [10:45:45]line [10:45:45]line [10:45:45]line [10:45:45]line [10:45:45]line [10:45:45]written 0, free lines is 3272 [10:45:45]MH_Cut [10:45:45]Write to MH i2c: D1 01 00 CD 30 01 CF [10:45:45]Write i2c OK [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: D1 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: D1 01 00 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: D1 01 00 CD 30 00 CE [10:45:45]Write to MH i2c: 01 00 00 CE 30 FE [10:45:45]Write i2c OK [10:45:45]MH_I2C_Read... [10:45:45]OFD Sender: No OFD packet to send [10:45:46]*** Cut start [10:45:46]*** Partial cut [10:45:46]*** CUTSNS_PIN = 1 [10:45:46]*** CUTSNS_PIN = 0 [10:45:46]*** Brake cut motor [10:45:47]Read from MH i2c: 01 [10:45:47]MH_I2C_Read... [10:45:47]*** Stop cut motor [10:45:47]*** Cut end [10:45:47]Read from MH i2c: 01 07 00 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: 01 07 00 CE 30 00 00 00 00 00 FF 0F 13 [10:45:47]process_action close_receipt done [10:45:47]requested_data is exist [10:45:47]produce_requested_data [10:45:47]requested_item fm.sn is exist - process it [10:45:47]wFMCommunicate request_size=4 [10:45:47]MH_SAM_APDU [10:45:47]CAPDU: 80 11 00 00 [10:45:47]Write to MH i2c: E2 08 00 CF 30 80 11 00 00 00 00 00 00 79 [10:45:47]Write i2c OK [10:45:47]MH_I2C_Read... [10:45:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:47]Read from MH i2c: E2 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: E2 17 00 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: E2 17 00 CF 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C8 [10:45:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:45:47]wFMCommunicate OK [10:45:47]requested_item fd.num is exist - process it [10:45:47]SAM_PROTO_GetFieldsCounters [10:45:47]wFMCommunicate request_size=4 [10:45:47]MH_SAM_APDU [10:45:47]CAPDU: 80 13 00 00 [10:45:47]Write to MH i2c: E2 08 00 D0 30 80 13 00 00 00 00 00 00 7C [10:45:47]Write i2c OK [10:45:47]MH_I2C_Read... [10:45:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:47]Read from MH i2c: E2 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: E2 62 00 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: E2 62 00 D0 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D1 70 00 00 0E 04 04 00 73 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 76 [10:45: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D1 70 00 00 0E 04 04 00 73 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:45:47]wFMCommunicate OK [10:45:47]SAM_PROTO_GetFieldsCounters done [10:45:47]requested_item shift.num is exist - process it [10:45:47]requested_item shift.opened is exist - process it [10:45:47]req_shift_opened [10:45:47]FM_GetShiftState [10:45:47]SAM_PROTO_GetShiftState [10:45:47]wFMCommunicate request_size=4 [10:45:47]MH_SAM_APDU [10:45:47]CAPDU: 80 13 01 00 [10:45:47]Write to MH i2c: E2 08 00 D1 30 80 13 01 00 00 00 00 00 7E [10:45:47]Write i2c OK [10:45:47]MH_I2C_Read... [10:45:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:47]Read from MH i2c: E2 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: E2 0E 00 [10:45:47]MH_I2C_Read... [10:45:47]Read from MH i2c: E2 0E 00 D1 30 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 97 [10:45:47]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:45:47]wFMCommunicate OK [10:45:47]SAM_PROTO_GetShiftState done [10:45:47]FM_GetShiftState done [10:45:47]req_shift_opened done [10:45:47]requested_item shift.open_date is exist - process it [10:45:47]req_shift_open_date [10:45:47]req_shift_open_date done [10:45:47]produce_requested_data done [10:45:47]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28881,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [10:45:47]process_action_free close_receipt [10:45:47]json_value_free [10:45:47]json_value_free done [10:45:47]process_json_proto returns [10:45:47]Send response to host [10:45:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28881,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [10:45:47]free response buf [10:45:47]execute_script done [10:45:47]execute_script returns [10:45:47]free content buf [10:45:47]Sock 7.Close socket [10:45:47]Sock 7.Thread stoped [10:45:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46:05]OFD Sender: No OFD packet to send [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:36]accept exits with 9 [10:47:36]New connection [10:47:36]New thread 3066928484 created [10:47:36]Thread 3066785124 joined [10:47:36]Waiting for new connection... [10:47:36] Sock 9.Parse request [10:47:36]Sock 9.Check first char [10:47:36]Sock 9.First char is OK [10:47:36]request: POST /json_proto HTTP/1.0 [10:47:36]Method: POST [10:47:36]URL: /json_proto [10:47:36]Method is POST - this is cgi request [10:47:36]url: /json_proto [10:47:36]query_string will be loaded in cgi processing [10:47:36]execute_cgi json_proto POST (null) [10:47:36]execute_cgi path=json_proto method=POST [10:47:36]POST find Content-Length [10:47:36]Host: 172.17.33.3:8080 [10:47:36]Content-Length: 679 [10:47:36]Content-Type: application/json [10:47:36] [10:47:36]POST finish read [10:47:36]Found Content-Length = 679 [10:47:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:47:36]execute_script... [10:47: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)347235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:47:36]POST & json_proto [10:47:36]process_json_proto [10:47:36]json parsed OK: [10:47:36]protocol is kg_v1.0 [10:47:36]action value=close_receipt [10:47:36]process_action close_receipt [10:47:36]cmd_close_receipt [10:47:36]MH_GetDate [10:47:36]Write to MH i2c: F0 00 00 D2 30 F1 [10:47:36]Write i2c OK [10:47:36]MH_I2C_Read... [10:47:36]Read from MH i2c: F0 [10:47:36]MH_I2C_Read... [10:47:36]Read from MH i2c: F0 09 00 [10:47:36]MH_I2C_Read... [10:47:36]Read from MH i2c: F0 09 00 D2 30 00 CC 62 1A 66 23 5B 8F 65 1A [10:47:36]GetLastDocTimeStamp 1713005147 [10:47:36]current date 1713005260 [10:47:36]FM_GetShiftState [10:47:36]SAM_PROTO_GetShiftState [10:47:36]wFMCommunicate request_size=4 [10:47:36]MH_SAM_APDU [10:47:36]CAPDU: 80 13 01 00 [10:47:36]Write to MH i2c: E2 08 00 D3 30 80 13 01 00 00 00 00 00 80 [10:47:36]Write i2c OK [10:47:36]MH_I2C_Read... [10:47:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:36]Read from MH i2c: E2 [10:47:36]MH_I2C_Read... [10:47:36]Read from MH i2c: E2 0E 00 [10:47:36]MH_I2C_Read... [10:47:36]Read from MH i2c: E2 0E 00 D3 30 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 99 [10:47:36]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:47:36]wFMCommunicate OK [10:47:36]SAM_PROTO_GetShiftState done [10:47:36]FM_GetShiftState done [10:47:36]opened in 1712967615 [10:47:36]opened+sec_in_day 1713054015 [10:47:36]quantity*price = 100056 [10:47:36]sum+1 = 100058 [10:47:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 89 13.04.2024 10:47 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28882 ФПД: 190626985503231 1/tax-web-control/client/api/v1/ticket?date=20240413T104740&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28882&fm=190626985503231&tin=02508201610067®Number=0000138879044617&sum=100000 [10:47:37]StoreToDocumentArchive [10:47:37]shift 115 fd 28882 [10:47:37]save to /storage/0115/doc_00028882 [10:47:37]save last doc name /storage/0115/doc_00028882 to /storage/kkm_last_doc_name [10:47:37]save OK [10:47:37]Clear old archive folders... [10:47:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:47:37]tlvbuf is 0121C2E0 [10:47:37]SAM_PROTO_ClearQueue [10:47:37]wFMCommunicate request_size=4 [10:47:37]MH_SAM_APDU [10:47:37]CAPDU: 80 09 00 00 [10:47:37]Write to MH i2c: E2 08 00 E0 30 80 09 00 00 00 00 00 00 82 [10:47:37]Write i2c OK [10:47:37]MH_I2C_Read... [10:47:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:37]Read from MH i2c: E2 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 E0 30 00 90 00 84 [10:47:37]RAPDU: 90 00 [10:47:37]wFMCommunicate OK [10:47:37]SAM_PROTO_ClearQueue done [10:47:37]KKMCreateOFDPacket [10:47:37]OFDProtocolAddRootSTLVToBuf [10:47:37]FM_MakeSignedData [10:47:37]FM_MakeSignedData [10:47:37]SAM_PROTO_SignData [10:47:37]wFMCommunicate request_size=4 [10:47:37]MH_SAM_APDU [10:47:37]CAPDU: 80 0D 01 02 [10:47:37]Write to MH i2c: E2 08 00 E1 30 80 0D 01 02 00 00 00 00 8A [10:47:37]Write i2c OK [10:47:37]MH_I2C_Read... [10:47:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:37]Read from MH i2c: E2 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 E1 30 00 90 00 85 [10:47:37]RAPDU: 90 00 [10:47:37]wFMCommunicate OK [10:47:37]wFMCommunicate request_size=255 [10:47:37]MH_SAM_APDU [10:47:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 59 00 00 00 F4 03 04 00 CC 62 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D2 70 00 00 35 04 06 00 AD 5F CD C1 [10:47:37]Write to MH i2c: E2 02 01 E2 30 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 59 00 00 00 F4 03 04 00 CC 62 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D2 70 00 00 35 04 06 00 AD 5F CD C1 00 00 BF [10:47:37]Write i2c OK [10:47:37]MH_I2C_Read... [10:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:37]Read from MH i2c: E2 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 E2 30 00 90 00 86 [10:47:37]RAPDU: 90 00 [10:47:37]wFMCommunicate OK [10:47:37]wFMCommunicate request_size=7 [10:47:37]MH_SAM_APDU [10:47:37]CAPDU: 80 0D 02 02 02 69 FF [10:47:37]Write to MH i2c: E2 0A 00 E3 30 80 0D 02 02 02 00 69 FF 00 00 F9 [10:47:37]Write i2c OK [10:47:37]MH_I2C_Read... [10:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:37]Read from MH i2c: E2 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 03 00 E3 30 00 90 00 87 [10:47:37]RAPDU: 90 00 [10:47:37]wFMCommunicate OK [10:47:37]wFMCommunicate request_size=4 [10:47:37]MH_SAM_APDU [10:47:37]CAPDU: 80 0D 03 02 [10:47:37]Write to MH i2c: E2 08 00 E4 30 80 0D 03 02 00 00 00 00 8F [10:47:37]Write i2c OK [10:47:37]MH_I2C_Read... [10:47:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:37]Read from MH i2c: E2 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 0B 00 [10:47:37]MH_I2C_Read... [10:47:37]Read from MH i2c: E2 0B 00 E4 30 00 DA 0A 24 C8 7E 61 6C 0A 90 00 B5 [10:47:37]RAPDU: DA 0A 24 C8 7E 61 6C 0A 90 00 [10:47:37]wFMCommunicate OK [10:47:37]SAM_PROTO_SignData done [10:47:37]FM_MakeSignedData done [10:47:37]CreateOFDProtocolMessage [10:47:37]wFMCommunicate request_size=4 [10:47:37]MH_SAM_APDU [10:47:37]CAPDU: 80 11 00 00 [10:47:37]Write to MH i2c: E2 08 00 E5 30 80 11 00 00 00 00 00 00 8F [10:47:37]Write i2c OK [10:47:37]MH_I2C_Read... [10:47:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:38]Read from MH i2c: E2 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: E2 17 00 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: E2 17 00 E5 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DE [10:47:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:47:38]wFMCommunicate OK [10:47:38]CreateOFDProtocolMessage done [10:47:38]OFDSenderStorePacket 28882 [10:47:38]StoreOFDPacket docnum=28882 [10:47:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 8A 43 04 01 15 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 59 00 00 00 F4 03 04 00 CC 62 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D2 70 00 00 35 04 06 00 AD 5F CD C1 69 FF DA 0A 24 C8 7E 61 6C 0A [10:47:38]CheckFolder [10:47:38]dirname=/storage/ofd_packets [10:47:38]CheckFolder done [10:47:38]ProducePacketName [10:47:38]name=ofd_packets/00028882 [10:47:38]NVStorageSaveData ofd_packets/00028882 [10:47:38]File name is /storage/ofd_packets/00028882 [10:47:38]Write 298 bytes [10:47:38]NVStorageSaveData done [10:47:38]OFDSenderStorePacket done [10:47:38]KKMCreateOFDPacket done [10:47:38]NVStorageSaveData kkm_last_timestamp [10:47:38]File name is /storage/kkm_last_timestamp [10:47:38]Write 4 bytes [10:47:38]NVStorageSaveData done [10:47:38]ExternCall_PrintAddStr [10:47:38]wPrintStart [10:47:38]Write to MH i2c: 01 00 00 E6 30 16 [10:47:38]Write i2c OK [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: 01 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: 01 07 00 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: 01 07 00 E6 30 00 00 00 00 00 FF 0F 2B [10:47:38]RasterBufferAndPrint [10:47:38]line Счет N : (1)347235 [10:47:38]line ИНН: 02508201610067 [10:47:38]line Контрольно-Кассовый Чек [10:47:38]line ПРОДАЖА [10:47:38]line ТРК (МРК, ГНК) : 11 [10:47:38]line Товар: 2710194210 [10:47:38]line ДТ-К-5 [10:47:38]line 13.820 * 72.40 [10:47:38]line = 1000.57 [10:47:38]line НДС 12% НСП 1% [10:47:38]line > о реализуемом товаре [10:47:38]line ОКРУГЛЕНИЕ: -0.57 [10:47:38]line ИТОГО: 1000.00 [10:47:38]line Внесено: 1000.00 [10:47:38]line СДАЧА: 0.00 [10:47:38]line НСП 1% : 8.85 [10:47:38]line НДС 12% : 106.25 [10:47:38]line Наличными: 1000.00 [10:47:38]line Безнал.: 0.00 [10:47:38]line Место: АЗС № 108 "Партнер Нефть" [10:47:38]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:47:38]line СНО: Общий режим [10:47:38]line Чек 89 13.04.2024 10:47 [10:47:38]line Смена: 115 ФФД: 1.0 [10:47:38]line ЗНМ: 0300000027 [10:47:38]line РНМ: 0000138879044617 [10:47:38]line Версия ККМ: 001 [10:47:38]line ФМ: 0000000000963154 [10:47:38]line ФД: 28882 [10:47:38]line ФПД: 190626985503231 [10:47:38]line 1/tax-web-control/client/api/v1/ticket?date=20240413T104740&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28882&fm=190626985503231&tin=02508201610067®Number=0000138879044617&sum=100000 [10:47:38]OFD Sender: Processing packet 28882 [packets to send 8, broken 7] [10:47:38]ProducePacketName [10:47:38]name=ofd_packets/00028882 [10:47:38]OFD Sender: To server: pG, [10:47:38]CommunicateWithHost lk.salyk.kg:30040 [10:47:38]ConnectInit lk.salyk.kg [10:47:38]written 0, free lines is 4095 [10:47:38]Connected sock=11 [10:47: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 31 35 34 0C 01 00 00 8A 43 04 01 15 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 59 00 00 00 F4 03 04 00 CC 62 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D2 70 00 00 35 04 06 00 AD 5F CD C1 69 FF DA 0A 24 C8 7E 61 6C 0A [10:47:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E5 83 47 00 B0 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 31 35 34 10 04 04 00 D2 70 00 00 F4 03 04 00 73 0D 1A 66 B6 04 01 00 00 9A 90 D6 ED 00 B9 2A 0D [10:47:38]CommunicateWithHost err = 0 [10:47:38]CheckOFDResponse [10:47:38]1017 (14) - 77093643461234 [10:47:38]1041 (16) - 0000000000963154 [10:47:38]1040 (4) - 28882 [10:47:38]1012 (4) - 13.04.2024 04:43 [10:47:38]1206 (1) - 0 [10:47:38]OFD Sender: Remove packet 28882 [10:47:38]ProducePacketName [10:47:38]name=ofd_packets/00028882 [10:47:38]NVStorageDeleteData [10:47:38]Write to MH i2c: 01 00 00 10 31 41 [10:47:38]Write i2c OK [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: 01 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: 01 07 00 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: 01 07 00 10 31 00 00 00 00 00 BE 0C 12 [10:47:38]RasterBufferAndPrint [10:47:38]line [10:47:38]line [10:47:38]line [10:47:38]line [10:47:38]line [10:47:38]written 0, free lines is 3268 [10:47:38]MH_Cut [10:47:38]Write to MH i2c: D1 01 00 17 31 01 1A [10:47:38]Write i2c OK [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: D1 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: D1 01 00 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: D1 01 00 17 31 00 19 [10:47:38]Write to MH i2c: 01 00 00 18 31 49 [10:47:38]Write i2c OK [10:47:38]MH_I2C_Read... [10:47:39]OFD Sender: No OFD packet to send [10:47:39]*** Cut start [10:47:39]*** Partial cut [10:47:39]*** CUTSNS_PIN = 1 [10:47:39]*** CUTSNS_PIN = 0 [10:47:39]*** Brake cut motor [10:47:40]Read from MH i2c: 01 [10:47:40]MH_I2C_Read... [10:47:40]*** Stop cut motor [10:47:40]*** Cut end [10:47:40]Read from MH i2c: 01 07 00 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: 01 07 00 18 31 00 00 00 00 00 FF 0F 5E [10:47:40]process_action close_receipt done [10:47:40]requested_data is exist [10:47:40]produce_requested_data [10:47:40]requested_item fm.sn is exist - process it [10:47:40]wFMCommunicate request_size=4 [10:47:40]MH_SAM_APDU [10:47:40]CAPDU: 80 11 00 00 [10:47:40]Write to MH i2c: E2 08 00 19 31 80 11 00 00 00 00 00 00 C4 [10:47:40]Write i2c OK [10:47:40]MH_I2C_Read... [10:47:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:40]Read from MH i2c: E2 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 17 00 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 17 00 19 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 13 [10:47:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:47:40]wFMCommunicate OK [10:47:40]requested_item fd.num is exist - process it [10:47:40]SAM_PROTO_GetFieldsCounters [10:47:40]wFMCommunicate request_size=4 [10:47:40]MH_SAM_APDU [10:47:40]CAPDU: 80 13 00 00 [10:47:40]Write to MH i2c: E2 08 00 1A 31 80 13 00 00 00 00 00 00 C7 [10:47:40]Write i2c OK [10:47:40]MH_I2C_Read... [10:47:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:40]Read from MH i2c: E2 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 62 00 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 62 00 1A 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D2 70 00 00 0E 04 04 00 73 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 C5 [10:47: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D2 70 00 00 0E 04 04 00 73 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:47:40]wFMCommunicate OK [10:47:40]SAM_PROTO_GetFieldsCounters done [10:47:40]requested_item shift.num is exist - process it [10:47:40]requested_item shift.opened is exist - process it [10:47:40]req_shift_opened [10:47:40]FM_GetShiftState [10:47:40]SAM_PROTO_GetShiftState [10:47:40]wFMCommunicate request_size=4 [10:47:40]MH_SAM_APDU [10:47:40]CAPDU: 80 13 01 00 [10:47:40]Write to MH i2c: E2 08 00 1B 31 80 13 01 00 00 00 00 00 C9 [10:47:40]Write i2c OK [10:47:40]MH_I2C_Read... [10:47:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:40]Read from MH i2c: E2 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 0E 00 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 0E 00 1B 31 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 E2 [10:47:40]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:47:40]wFMCommunicate OK [10:47:40]SAM_PROTO_GetShiftState done [10:47:40]FM_GetShiftState done [10:47:40]req_shift_opened done [10:47:40]requested_item shift.open_date is exist - process it [10:47:40]req_shift_open_date [10:47:40]req_shift_open_date done [10:47:40]produce_requested_data done [10:47:40]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28882,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [10:47:40]process_action_free close_receipt [10:47:40]json_value_free [10:47:40]json_value_free done [10:47:40]process_json_proto returns [10:47:40]Send response to host [10:47:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28882,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [10:47:40]free response buf [10:47:40]execute_script done [10:47:40]execute_script returns [10:47:40]free content buf [10:47:40]Sock 9.Close socket [10:47:40]Sock 9.Thread stoped [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:04]OFD Sender: No OFD packet to send [10:49:09]OFD Sender: No OFD packet to send [10:49:14]OFD Sender: No OFD packet to send [10:49:19]OFD Sender: No OFD packet to send [10:49:24]OFD Sender: No OFD packet to send [10:49:29]OFD Sender: No OFD packet to send [10:49:34]OFD Sender: No OFD packet to send [10:49:39]OFD Sender: No OFD packet to send [10:49:44]OFD Sender: No OFD packet to send [10:49:49]OFD Sender: No OFD packet to send [10:49:54]OFD Sender: No OFD packet to send [10:49:59]OFD Sender: No OFD packet to send [10:50:04]OFD Sender: No OFD packet to send [10:50:09]OFD Sender: No OFD packet to send [10:50:14]OFD Sender: No OFD packet to send [10:50:19]OFD Sender: No OFD packet to send [10:50:24]OFD Sender: No OFD packet to send [10:50:29]OFD Sender: No OFD packet to send [10:50:34]OFD Sender: No OFD packet to send [10:50:39]OFD Sender: No OFD packet to send [10:50:44]accept exits with 7 [10:50:44]New connection [10:50:44]New thread 3066785124 created [10:50:44]Thread 3066928484 joined [10:50:44]Waiting for new connection... [10:50:44] Sock 7.Parse request [10:50:44]Sock 7.Check first char [10:50:44]Sock 7.First char is OK [10:50:44]request: POST /json_proto HTTP/1.0 [10:50:44]Method: POST [10:50:44]URL: /json_proto [10:50:44]Method is POST - this is cgi request [10:50:44]url: /json_proto [10:50:44]query_string will be loaded in cgi processing [10:50:44]execute_cgi json_proto POST (null) [10:50:44]execute_cgi path=json_proto method=POST [10:50:44]POST find Content-Length [10:50:44]Host: 172.17.33.3:8080 [10:50:44]Content-Length: 674 [10:50:44]Content-Type: application/json [10:50:44] [10:50:44]POST finish read [10:50:44]Found Content-Length = 674 [10:50:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347236", "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" : 72.40, "quantity" : 6.910, "sum" : 500.28, "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:50:44]execute_script... [10:50: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)347236", "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" : 72.40, "quantity" : 6.910, "sum" : 500.28, "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:50:44]POST & json_proto [10:50:44]process_json_proto [10:50:44]json parsed OK: [10:50:44]protocol is kg_v1.0 [10:50:44]action value=close_receipt [10:50:44]process_action close_receipt [10:50:44]cmd_close_receipt [10:50:44]MH_GetDate [10:50:44]Write to MH i2c: F0 00 00 1C 31 3C [10:50:44]Write i2c OK [10:50:44]MH_I2C_Read... [10:50:44]Read from MH i2c: F0 [10:50:44]MH_I2C_Read... [10:50:44]Read from MH i2c: F0 09 00 [10:50:44]MH_I2C_Read... [10:50:44]Read from MH i2c: F0 09 00 1C 31 00 88 63 1A 66 23 5B 8F 65 22 [10:50:44]GetLastDocTimeStamp 1713005260 [10:50:44]current date 1713005448 [10:50:44]FM_GetShiftState [10:50:44]SAM_PROTO_GetShiftState [10:50:44]wFMCommunicate request_size=4 [10:50:44]MH_SAM_APDU [10:50:44]CAPDU: 80 13 01 00 [10:50:44]Write to MH i2c: E2 08 00 1D 31 80 13 01 00 00 00 00 00 CB [10:50:44]Write i2c OK [10:50:44]MH_I2C_Read... [10:50:44]OFD Sender: No OFD packet to send [10:50:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:44]Read from MH i2c: E2 [10:50:44]MH_I2C_Read... [10:50:44]Read from MH i2c: E2 0E 00 [10:50:44]MH_I2C_Read... [10:50:44]Read from MH i2c: E2 0E 00 1D 31 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 E4 [10:50:44]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:50:44]wFMCommunicate OK [10:50:44]SAM_PROTO_GetShiftState done [10:50:44]FM_GetShiftState done [10:50:44]opened in 1712967615 [10:50:44]opened+sec_in_day 1713054015 [10:50:44]quantity*price = 50028 [10:50:44]sum+1 = 50029 [10:50:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 90 13.04.2024 10:50 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28883 ФПД: 65053161541332 1/tax-web-control/client/api/v1/ticket?date=20240413T105048&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28883&fm=65053161541332&tin=02508201610067®Number=0000138879044617&sum=50000 [10:50:45]StoreToDocumentArchive [10:50:45]shift 115 fd 28883 [10:50:45]save to /storage/0115/doc_00028883 [10:50:45]save last doc name /storage/0115/doc_00028883 to /storage/kkm_last_doc_name [10:50:45]save OK [10:50:45]Clear old archive folders... [10:50:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:50:45]tlvbuf is 01284590 [10:50:45]SAM_PROTO_ClearQueue [10:50:45]wFMCommunicate request_size=4 [10:50:45]MH_SAM_APDU [10:50:45]CAPDU: 80 09 00 00 [10:50:45]Write to MH i2c: E2 08 00 2A 31 80 09 00 00 00 00 00 00 CD [10:50:45]Write i2c OK [10:50:45]MH_I2C_Read... [10:50:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:45]Read from MH i2c: E2 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 03 00 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 03 00 2A 31 00 90 00 CF [10:50:45]RAPDU: 90 00 [10:50:45]wFMCommunicate OK [10:50:45]SAM_PROTO_ClearQueue done [10:50:45]KKMCreateOFDPacket [10:50:45]OFDProtocolAddRootSTLVToBuf [10:50:45]FM_MakeSignedData [10:50:45]FM_MakeSignedData [10:50:45]SAM_PROTO_SignData [10:50:45]wFMCommunicate request_size=4 [10:50:45]MH_SAM_APDU [10:50:45]CAPDU: 80 0D 01 02 [10:50:45]Write to MH i2c: E2 08 00 2B 31 80 0D 01 02 00 00 00 00 D5 [10:50:45]Write i2c OK [10:50:45]MH_I2C_Read... [10:50:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:45]Read from MH i2c: E2 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 03 00 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 03 00 2B 31 00 90 00 D0 [10:50:45]RAPDU: 90 00 [10:50:45]wFMCommunicate OK [10:50:45]wFMCommunicate request_size=255 [10:50:45]MH_SAM_APDU [10:50:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 88 63 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D3 70 00 00 35 04 06 00 3B 2A 5E 95 [10:50:45]Write to MH i2c: E2 02 01 2C 31 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 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 88 63 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D3 70 00 00 35 04 06 00 3B 2A 5E 95 00 00 84 [10:50:45]Write i2c OK [10:50:45]MH_I2C_Read... [10:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:45]Read from MH i2c: E2 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 03 00 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 03 00 2C 31 00 90 00 D1 [10:50:45]RAPDU: 90 00 [10:50:45]wFMCommunicate OK [10:50:45]wFMCommunicate request_size=7 [10:50:45]MH_SAM_APDU [10:50:45]CAPDU: 80 0D 02 02 02 CE D4 [10:50:45]Write to MH i2c: E2 0A 00 2D 31 80 0D 02 02 02 00 CE D4 00 00 7E [10:50:45]Write i2c OK [10:50:45]MH_I2C_Read... [10:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:45]Read from MH i2c: E2 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 03 00 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 03 00 2D 31 00 90 00 D2 [10:50:45]RAPDU: 90 00 [10:50:45]wFMCommunicate OK [10:50:45]wFMCommunicate request_size=4 [10:50:45]MH_SAM_APDU [10:50:45]CAPDU: 80 0D 03 02 [10:50:45]Write to MH i2c: E2 08 00 2E 31 80 0D 03 02 00 00 00 00 DA [10:50:45]Write i2c OK [10:50:45]MH_I2C_Read... [10:50:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:45]Read from MH i2c: E2 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 0B 00 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 0B 00 2E 31 00 16 65 E9 CB D7 95 AD CD 90 00 F0 [10:50:45]RAPDU: 16 65 E9 CB D7 95 AD CD 90 00 [10:50:45]wFMCommunicate OK [10:50:45]SAM_PROTO_SignData done [10:50:45]FM_MakeSignedData done [10:50:45]CreateOFDProtocolMessage [10:50:45]wFMCommunicate request_size=4 [10:50:45]MH_SAM_APDU [10:50:45]CAPDU: 80 11 00 00 [10:50:45]Write to MH i2c: E2 08 00 2F 31 80 11 00 00 00 00 00 00 DA [10:50:45]Write i2c OK [10:50:45]MH_I2C_Read... [10:50:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:45]Read from MH i2c: E2 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 17 00 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 17 00 2F 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 29 [10:50:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:50:45]wFMCommunicate OK [10:50:45]CreateOFDProtocolMessage done [10:50:45]OFDSenderStorePacket 28883 [10:50:45]StoreOFDPacket docnum=28883 [10:50:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 27 0A 04 01 9A DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 88 63 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D3 70 00 00 35 04 06 00 3B 2A 5E 95 CE D4 16 65 E9 CB D7 95 AD CD [10:50:45]CheckFolder [10:50:45]dirname=/storage/ofd_packets [10:50:45]CheckFolder done [10:50:45]ProducePacketName [10:50:45]name=ofd_packets/00028883 [10:50:45]NVStorageSaveData ofd_packets/00028883 [10:50:45]File name is /storage/ofd_packets/00028883 [10:50:45]Write 298 bytes [10:50:45]NVStorageSaveData done [10:50:45]OFDSenderStorePacket done [10:50:45]KKMCreateOFDPacket done [10:50:45]NVStorageSaveData kkm_last_timestamp [10:50:45]File name is /storage/kkm_last_timestamp [10:50:45]Write 4 bytes [10:50:45]NVStorageSaveData done [10:50:45]ExternCall_PrintAddStr [10:50:45]wPrintStart [10:50:45]Write to MH i2c: 01 00 00 30 31 61 [10:50:45]Write i2c OK [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: 01 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: 01 07 00 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: 01 07 00 30 31 00 00 00 00 00 FF 0F 76 [10:50:45]RasterBufferAndPrint [10:50:45]line Счет N : (1)347236 [10:50:45]line ИНН: 02508201610067 [10:50:45]line Контрольно-Кассовый Чек [10:50:45]line ПРОДАЖА [10:50:45]line ТРК (МРК, ГНК) : 51 [10:50:45]line Товар: 2710194210 [10:50:45]line ДТ-К-5 [10:50:45]line 6.910 * 72.40 [10:50:45]line = 500.28 [10:50:45]line НДС 12% НСП 1% [10:50:45]line > о реализуемом товаре [10:50:45]line ОКРУГЛЕНИЕ: -0.28 [10:50:45]line ИТОГО: 500.00 [10:50:45]line Внесено: 500.00 [10:50:45]line СДАЧА: 0.00 [10:50:45]line НСП 1% : 4.43 [10:50:45]line НДС 12% : 53.13 [10:50:45]line Наличными: 500.00 [10:50:45]line Безнал.: 0.00 [10:50:45]line Место: АЗС № 108 "Партнер Нефть" [10:50:45]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:50:45]line СНО: Общий режим [10:50:45]line Чек 90 13.04.2024 10:50 [10:50:45]line Смена: 115 ФФД: 1.0 [10:50:45]line ЗНМ: 0300000027 [10:50:45]line РНМ: 0000138879044617 [10:50:45]line Версия ККМ: 001 [10:50:45]line ФМ: 0000000000963154 [10:50:45]line ФД: 28883 [10:50:45]line ФПД: 65053161541332 [10:50:46]line 1/tax-web-control/client/api/v1/ticket?date=20240413T105048&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28883&fm=65053161541332&tin=02508201610067®Number=0000138879044617&sum=50000 [10:50:46]OFD Sender: Processing packet 28883 [packets to send 8, broken 7] [10:50:46]ProducePacketName [10:50:46]name=ofd_packets/00028883 [10:50:46]OFD Sender: To server: pG, [10:50:46]CommunicateWithHost lk.salyk.kg:30040 [10:50:46]ConnectInit lk.salyk.kg [10:50:46]written 0, free lines is 4095 [10:50:46]Connected sock=10 [10:50: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 31 35 34 0C 01 00 00 27 0A 04 01 9A DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 88 63 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D3 70 00 00 35 04 06 00 3B 2A 5E 95 CE D4 16 65 E9 CB D7 95 AD CD [10:50:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D7 2E 47 00 09 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 31 35 34 10 04 04 00 D3 70 00 00 F4 03 04 00 2F 0E 1A 66 B6 04 01 00 00 02 B0 FA 11 F6 92 0F E1 [10:50:46]CommunicateWithHost err = 0 [10:50:46]CheckOFDResponse [10:50:46]1017 (14) - 77093643461234 [10:50:46]1041 (16) - 0000000000963154 [10:50:46]1040 (4) - 28883 [10:50:46]1012 (4) - 13.04.2024 04:46 [10:50:46]1206 (1) - 0 [10:50:46]OFD Sender: Remove packet 28883 [10:50:46]ProducePacketName [10:50:46]name=ofd_packets/00028883 [10:50:46]NVStorageDeleteData [10:50:46]Write to MH i2c: 01 00 00 5A 31 8B [10:50:46]Write i2c OK [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: 01 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: 01 07 00 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: 01 07 00 5A 31 00 00 00 00 00 BC 0C 5A [10:50:46]RasterBufferAndPrint [10:50:46]line [10:50:46]line [10:50:46]line [10:50:46]line [10:50:46]line [10:50:46]written 0, free lines is 3267 [10:50:46]MH_Cut [10:50:46]Write to MH i2c: D1 01 00 61 31 01 64 [10:50:46]Write i2c OK [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: D1 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: D1 01 00 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: D1 01 00 61 31 00 63 [10:50:46]Write to MH i2c: 01 00 00 62 31 93 [10:50:46]Write i2c OK [10:50:46]MH_I2C_Read... [10:50:47]OFD Sender: No OFD packet to send [10:50:47]*** Cut start [10:50:47]*** Partial cut [10:50:47]*** CUTSNS_PIN = 1 [10:50:47]*** CUTSNS_PIN = 0 [10:50:47]*** Brake cut motor [10:50:48]Read from MH i2c: 01 [10:50:48]MH_I2C_Read... [10:50:48]*** Stop cut motor [10:50:48]*** Cut end [10:50:48]Read from MH i2c: 01 07 00 [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: 01 07 00 62 31 00 00 00 00 00 FF 0F A8 [10:50:48]process_action close_receipt done [10:50:48]requested_data is exist [10:50:48]produce_requested_data [10:50:48]requested_item fm.sn is exist - process it [10:50:48]wFMCommunicate request_size=4 [10:50:48]MH_SAM_APDU [10:50:48]CAPDU: 80 11 00 00 [10:50:48]Write to MH i2c: E2 08 00 63 31 80 11 00 00 00 00 00 00 0E [10:50:48]Write i2c OK [10:50:48]MH_I2C_Read... [10:50:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:48]Read from MH i2c: E2 [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: E2 17 00 [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: E2 17 00 63 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5D [10:50:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:50:48]wFMCommunicate OK [10:50:48]requested_item fd.num is exist - process it [10:50:48]SAM_PROTO_GetFieldsCounters [10:50:48]wFMCommunicate request_size=4 [10:50:48]MH_SAM_APDU [10:50:48]CAPDU: 80 13 00 00 [10:50:48]Write to MH i2c: E2 08 00 64 31 80 13 00 00 00 00 00 00 11 [10:50:48]Write i2c OK [10:50:48]MH_I2C_Read... [10:50:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:48]Read from MH i2c: E2 [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: E2 62 00 [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: E2 62 00 64 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D3 70 00 00 0E 04 04 00 73 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 13 [10:50: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D3 70 00 00 0E 04 04 00 73 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:50:48]wFMCommunicate OK [10:50:48]SAM_PROTO_GetFieldsCounters done [10:50:48]requested_item shift.num is exist - process it [10:50:48]requested_item shift.opened is exist - process it [10:50:48]req_shift_opened [10:50:48]FM_GetShiftState [10:50:48]SAM_PROTO_GetShiftState [10:50:48]wFMCommunicate request_size=4 [10:50:48]MH_SAM_APDU [10:50:48]CAPDU: 80 13 01 00 [10:50:48]Write to MH i2c: E2 08 00 65 31 80 13 01 00 00 00 00 00 13 [10:50:48]Write i2c OK [10:50:48]MH_I2C_Read... [10:50:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:48]Read from MH i2c: E2 [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: E2 0E 00 [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: E2 0E 00 65 31 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 2C [10:50:48]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:50:48]wFMCommunicate OK [10:50:48]SAM_PROTO_GetShiftState done [10:50:48]FM_GetShiftState done [10:50:48]req_shift_opened done [10:50:48]requested_item shift.open_date is exist - process it [10:50:48]req_shift_open_date [10:50:48]req_shift_open_date done [10:50:48]produce_requested_data done [10:50:48]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28883,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [10:50:48]process_action_free close_receipt [10:50:48]json_value_free [10:50:48]json_value_free done [10:50:48]process_json_proto returns [10:50:48]Send response to host [10:50:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28883,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [10:50:48]free response buf [10:50:48]execute_script done [10:50:48]execute_script returns [10:50:48]free content buf [10:50:48]Sock 7.Close socket [10:50:48]Sock 7.Thread stoped [10:50:52]OFD Sender: No OFD packet to send [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:47]OFD Sender: No OFD packet to send [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:52:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:17]OFD Sender: No OFD packet to send [10:52:22]OFD Sender: No OFD packet to send [10:52:27]OFD Sender: No OFD packet to send [10:52:32]OFD Sender: No OFD packet to send [10:52:37]OFD Sender: No OFD packet to send [10:52:42]OFD Sender: No OFD packet to send [10:52:47]OFD Sender: No OFD packet to send [10:52:52]OFD Sender: No OFD packet to send [10:52:57]OFD Sender: No OFD packet to send [10:53:02]OFD Sender: No OFD packet to send [10:53:07]OFD Sender: No OFD packet to send [10:53:12]OFD Sender: No OFD packet to send [10:53:17]OFD Sender: No OFD packet to send [10:53:22]OFD Sender: No OFD packet to send [10:53:27]OFD Sender: No OFD packet to send [10:53:32]OFD Sender: No OFD packet to send [10:53:37]OFD Sender: No OFD packet to send [10:53:42]OFD Sender: No OFD packet to send [10:53:47]OFD Sender: No OFD packet to send [10:53:52]OFD Sender: No OFD packet to send [10:53:57]OFD Sender: No OFD packet to send [10:54:02]OFD Sender: No OFD packet to send [10:54:07]OFD Sender: No OFD packet to send [10:54:12]OFD Sender: No OFD packet to send [10:54:17]OFD Sender: No OFD packet to send [10:54:22]OFD Sender: No OFD packet to send [10:54:26]accept exits with 9 [10:54:26]New connection [10:54:26]New thread 3066928484 created [10:54:26]Thread 3066785124 joined [10:54:26]Waiting for new connection... [10:54:26] Sock 9.Parse request [10:54:26]Sock 9.Check first char [10:54:26]Sock 9.First char is OK [10:54:26]request: POST /json_proto HTTP/1.0 [10:54:26]Method: POST [10:54:26]URL: /json_proto [10:54:26]Method is POST - this is cgi request [10:54:26]url: /json_proto [10:54:26]query_string will be loaded in cgi processing [10:54:26]execute_cgi json_proto POST (null) [10:54:26]execute_cgi path=json_proto method=POST [10:54:26]POST find Content-Length [10:54:26]Host: 172.17.33.3:8080 [10:54:26]Content-Length: 805 [10:54:26]Content-Type: application/json [10:54:26] [10:54:26]POST finish read [10:54:26]Found Content-Length = 805 [10:54:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347237", "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" : 72.40, "quantity" : 41.440, "sum" : 3000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:26]execute_script... [10:54: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)347237", "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" : 72.40, "quantity" : 41.440, "sum" : 3000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:26]POST & json_proto [10:54:26]process_json_proto [10:54:26]json parsed OK: [10:54:26]protocol is kg_v1.0 [10:54:26]action value=close_receipt [10:54:26]process_action close_receipt [10:54:26]cmd_close_receipt [10:54:26]MH_GetDate [10:54:26]Write to MH i2c: F0 00 00 66 31 86 [10:54:26]Write i2c OK [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: F0 [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: F0 09 00 [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: F0 09 00 66 31 00 67 64 1A 66 23 5B 8F 65 4C [10:54:26]GetLastDocTimeStamp 1713005448 [10:54:26]current date 1713005671 [10:54:26]FM_GetShiftState [10:54:26]SAM_PROTO_GetShiftState [10:54:26]wFMCommunicate request_size=4 [10:54:26]MH_SAM_APDU [10:54:26]CAPDU: 80 13 01 00 [10:54:26]Write to MH i2c: E2 08 00 67 31 80 13 01 00 00 00 00 00 15 [10:54:26]Write i2c OK [10:54:26]MH_I2C_Read... [10:54:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:26]Read from MH i2c: E2 [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: E2 0E 00 [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: E2 0E 00 67 31 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 2E [10:54:26]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:54:26]wFMCommunicate OK [10:54:26]SAM_PROTO_GetShiftState done [10:54:26]FM_GetShiftState done [10:54:26]opened in 1712967615 [10:54:26]opened+sec_in_day 1713054015 [10:54:26]quantity*price = 300025 [10:54:26]sum+1 = 300027 [10:54:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.26 НСП 1% : 26.55 НДС 12% : 318.61 Наличными: 0.00 Безнал.: 3000.26 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 91 13.04.2024 10:54 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28884 ФПД: 136459329252325 1/tax-web-control/client/api/v1/ticket?date=20240413T105431&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28884&fm=136459329252325&tin=02508201610067®Number=0000138879044617&sum=300026 [10:54:28]StoreToDocumentArchive [10:54:28]shift 115 fd 28884 [10:54:28]save to /storage/0115/doc_00028884 [10:54:28]save last doc name /storage/0115/doc_00028884 to /storage/kkm_last_doc_name [10:54:28]save OK [10:54:28]Clear old archive folders... [10:54:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:54:28]tlvbuf is 01224C70 [10:54:28]SAM_PROTO_ClearQueue [10:54:28]wFMCommunicate request_size=4 [10:54:28]MH_SAM_APDU [10:54:28]CAPDU: 80 09 00 00 [10:54:28]Write to MH i2c: E2 08 00 74 31 80 09 00 00 00 00 00 00 17 [10:54:28]Write i2c OK [10:54:28]MH_I2C_Read... [10:54:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:28]Read from MH i2c: E2 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: E2 03 00 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: E2 03 00 74 31 00 90 00 19 [10:54:28]RAPDU: 90 00 [10:54:28]wFMCommunicate OK [10:54:28]SAM_PROTO_ClearQueue done [10:54:28]KKMCreateOFDPacket [10:54:28]OFDProtocolAddRootSTLVToBuf [10:54:28]FM_MakeSignedData [10:54:28]FM_MakeSignedData [10:54:28]SAM_PROTO_SignData [10:54:28]wFMCommunicate request_size=4 [10:54:28]MH_SAM_APDU [10:54:28]CAPDU: 80 0D 01 02 [10:54:28]Write to MH i2c: E2 08 00 75 31 80 0D 01 02 00 00 00 00 1F [10:54:28]Write i2c OK [10:54:28]MH_I2C_Read... [10:54:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:28]Read from MH i2c: E2 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: E2 03 00 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: E2 03 00 75 31 00 90 00 1A [10:54:28]RAPDU: 90 00 [10:54:28]wFMCommunicate OK [10:54:28]wFMCommunicate request_size=255 [10:54:28]MH_SAM_APDU [10:54:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA 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 75 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 67 64 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D4 70 00 00 35 04 06 00 7C 1B E9 D8 [10:54:28]Write to MH i2c: E2 02 01 76 31 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 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA 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 75 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 67 64 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D4 70 00 00 35 04 06 00 7C 1B E9 D8 00 00 40 [10:54:28]Write i2c OK [10:54:28]MH_I2C_Read... [10:54:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:28]Read from MH i2c: E2 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: E2 03 00 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: E2 03 00 76 31 00 90 00 1B [10:54:28]RAPDU: 90 00 [10:54:28]wFMCommunicate OK [10:54:28]wFMCommunicate request_size=7 [10:54:28]MH_SAM_APDU [10:54:28]CAPDU: 80 0D 02 02 02 AB E5 [10:54:28]Write to MH i2c: E2 0A 00 77 31 80 0D 02 02 02 00 AB E5 00 00 B6 [10:54:28]Write i2c OK [10:54:28]MH_I2C_Read... [10:54:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:28]Read from MH i2c: E2 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: E2 03 00 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: E2 03 00 77 31 00 90 00 1C [10:54:28]RAPDU: 90 00 [10:54:28]wFMCommunicate OK [10:54:28]wFMCommunicate request_size=4 [10:54:28]MH_SAM_APDU [10:54:28]CAPDU: 80 0D 03 02 [10:54:28]Write to MH i2c: E2 08 00 78 31 80 0D 03 02 00 00 00 00 24 [10:54:28]Write i2c OK [10:54:28]MH_I2C_Read... [10:54:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:28]Read from MH i2c: E2 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: E2 0B 00 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: E2 0B 00 78 31 00 52 A1 50 6F D5 7B 16 62 90 00 9F [10:54:28]RAPDU: 52 A1 50 6F D5 7B 16 62 90 00 [10:54:28]wFMCommunicate OK [10:54:28]SAM_PROTO_SignData done [10:54:28]FM_MakeSignedData done [10:54:28]CreateOFDProtocolMessage [10:54:28]wFMCommunicate request_size=4 [10:54:28]MH_SAM_APDU [10:54:28]CAPDU: 80 11 00 00 [10:54:28]Write to MH i2c: E2 08 00 79 31 80 11 00 00 00 00 00 00 24 [10:54:28]Write i2c OK [10:54:28]MH_I2C_Read... [10:54:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:28]Read from MH i2c: E2 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: E2 17 00 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: E2 17 00 79 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 73 [10:54:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:54:28]wFMCommunicate OK [10:54:28]CreateOFDProtocolMessage done [10:54:28]OFDSenderStorePacket 28884 [10:54:28]StoreOFDPacket docnum=28884 [10:54:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 DE 18 04 01 D1 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA 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 75 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 67 64 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D4 70 00 00 35 04 06 00 7C 1B E9 D8 AB E5 52 A1 50 6F D5 7B 16 62 [10:54:28]CheckFolder [10:54:28]dirname=/storage/ofd_packets [10:54:28]CheckFolder done [10:54:28]ProducePacketName [10:54:28]name=ofd_packets/00028884 [10:54:28]NVStorageSaveData ofd_packets/00028884 [10:54:28]File name is /storage/ofd_packets/00028884 [10:54:28]Write 298 bytes [10:54:28]NVStorageSaveData done [10:54:28]OFDSenderStorePacket done [10:54:28]KKMCreateOFDPacket done [10:54:28]NVStorageSaveData kkm_last_timestamp [10:54:28]File name is /storage/kkm_last_timestamp [10:54:28]Write 4 bytes [10:54:28]NVStorageSaveData done [10:54:28]ExternCall_PrintAddStr [10:54:28]wPrintStart [10:54:28]Write to MH i2c: 01 00 00 7A 31 AB [10:54:28]Write i2c OK [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: 01 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: 01 07 00 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: 01 07 00 7A 31 00 00 00 00 00 FF 0F C0 [10:54:28]RasterBufferAndPrint [10:54:28]line Счет N : (1)347237 [10:54:28]line ИНН: 02508201610067 [10:54:28]line Контрольно-Кассовый Чек [10:54:28]line ПРОДАЖА [10:54:28]line ТРК (МРК, ГНК) : 51 [10:54:28]line Товар: 2710194210 [10:54:28]line ДТ-К-5 [10:54:28]line 41.440 * 72.40 [10:54:28]line = 3000.26 [10:54:28]line НДС 12% НСП 1% [10:54:28]line > о реализуемом товаре [10:54:28]line ИТОГО: 3000.26 [10:54:28]line НСП 1% : 26.55 [10:54:28]line НДС 12% : 318.61 [10:54:28]line Наличными: 0.00 [10:54:28]line Безнал.: 3000.26 [10:54:28]line Место: АЗС № 108 "Партнер Нефть" [10:54:28]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [10:54:28]line СНО: Общий режим [10:54:28]line Чек 91 13.04.2024 10:54 [10:54:28]line Смена: 115 ФФД: 1.0 [10:54:28]line ЗНМ: 0300000027 [10:54:28]line РНМ: 0000138879044617 [10:54:28]line Версия ККМ: 001 [10:54:28]line Платежная система: О! деньги [10:54:28]line ФМ: 0000000000963154 [10:54:28]line ФД: 28884 [10:54:28]line ФПД: 136459329252325 [10:54:28]line 1/tax-web-control/client/api/v1/ticket?date=20240413T105431&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28884&fm=136459329252325&tin=02508201610067®Number=0000138879044617&sum=300026 [10:54:28]OFD Sender: Processing packet 28884 [packets to send 8, broken 7] [10:54:28]ProducePacketName [10:54:28]name=ofd_packets/00028884 [10:54:28]OFD Sender: To server: pG, [10:54:28]CommunicateWithHost lk.salyk.kg:30040 [10:54:28]ConnectInit lk.salyk.kg [10:54:28]written 0, free lines is 4095 [10:54:29]Connected sock=10 [10:54: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 31 35 34 0C 01 00 00 DE 18 04 01 D1 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA 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 75 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 67 64 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D4 70 00 00 35 04 06 00 7C 1B E9 D8 AB E5 52 A1 50 6F D5 7B 16 62 [10:54:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7B 6A 47 00 A2 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D4 70 00 00 F4 03 04 00 0E 0F 1A 66 B6 04 01 00 00 3B 47 AD 3E 19 1D 68 C2 [10:54:29]CommunicateWithHost err = 0 [10:54:29]CheckOFDResponse [10:54:29]1017 (14) - 77093643461234 [10:54:29]1041 (16) - 0000000000963154 [10:54:29]1040 (4) - 28884 [10:54:29]1012 (4) - 13.04.2024 04:50 [10:54:29]1206 (1) - 0 [10:54:29]OFD Sender: Remove packet 28884 [10:54:29]ProducePacketName [10:54:29]name=ofd_packets/00028884 [10:54:29]NVStorageDeleteData [10:54:29]Write to MH i2c: 01 00 00 A3 31 D4 [10:54:29]Write i2c OK [10:54:29]MH_I2C_Read... [10:54:29]Read from MH i2c: 01 [10:54:29]MH_I2C_Read... [10:54:29]Read from MH i2c: 01 07 00 [10:54:29]MH_I2C_Read... [10:54:29]Read from MH i2c: 01 07 00 A3 31 00 00 00 00 00 DA 0C C1 [10:54:29]RasterBufferAndPrint [10:54:29]line [10:54:29]line [10:54:29]line [10:54:29]line [10:54:29]line [10:54:29]written 0, free lines is 3297 [10:54:29]MH_Cut [10:54:29]Write to MH i2c: D1 01 00 AA 31 01 AD [10:54:29]Write i2c OK [10:54:29]MH_I2C_Read... [10:54:29]Read from MH i2c: D1 [10:54:29]MH_I2C_Read... [10:54:29]Read from MH i2c: D1 01 00 [10:54:29]MH_I2C_Read... [10:54:29]Read from MH i2c: D1 01 00 AA 31 00 AC [10:54:29]Write to MH i2c: 01 00 00 AB 31 DC [10:54:29]Write i2c OK [10:54:29]MH_I2C_Read... [10:54:29]OFD Sender: No OFD packet to send [10:54:30]*** Cut start [10:54:30]*** Partial cut [10:54:30]*** CUTSNS_PIN = 1 [10:54:30]*** CUTSNS_PIN = 0 [10:54:30]*** Brake cut motor [10:54:30]Read from MH i2c: 01 [10:54:30]MH_I2C_Read... [10:54:30]*** Stop cut motor [10:54:30]*** Cut end [10:54:30]Read from MH i2c: 01 07 00 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: 01 07 00 AB 31 00 00 00 00 00 FF 0F F1 [10:54:30]process_action close_receipt done [10:54:30]requested_data is exist [10:54:30]produce_requested_data [10:54:30]requested_item fm.sn is exist - process it [10:54:30]wFMCommunicate request_size=4 [10:54:30]MH_SAM_APDU [10:54:30]CAPDU: 80 11 00 00 [10:54:30]Write to MH i2c: E2 08 00 AC 31 80 11 00 00 00 00 00 00 57 [10:54:30]Write i2c OK [10:54:30]MH_I2C_Read... [10:54:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:30]Read from MH i2c: E2 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: E2 17 00 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: E2 17 00 AC 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A6 [10:54:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [10:54:30]wFMCommunicate OK [10:54:30]requested_item fd.num is exist - process it [10:54:30]SAM_PROTO_GetFieldsCounters [10:54:30]wFMCommunicate request_size=4 [10:54:30]MH_SAM_APDU [10:54:30]CAPDU: 80 13 00 00 [10:54:30]Write to MH i2c: E2 08 00 AD 31 80 13 00 00 00 00 00 00 5A [10:54:30]Write i2c OK [10:54:30]MH_I2C_Read... [10:54:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:31]Read from MH i2c: E2 [10:54:31]MH_I2C_Read... [10:54:31]Read from MH i2c: E2 62 00 [10:54:31]MH_I2C_Read... [10:54:31]Read from MH i2c: E2 62 00 AD 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D4 70 00 00 0E 04 04 00 73 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 60 [10:54: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D4 70 00 00 0E 04 04 00 73 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:54:31]wFMCommunicate OK [10:54:31]SAM_PROTO_GetFieldsCounters done [10:54:31]requested_item shift.num is exist - process it [10:54:31]requested_item shift.opened is exist - process it [10:54:31]req_shift_opened [10:54:31]FM_GetShiftState [10:54:31]SAM_PROTO_GetShiftState [10:54:31]wFMCommunicate request_size=4 [10:54:31]MH_SAM_APDU [10:54:31]CAPDU: 80 13 01 00 [10:54:31]Write to MH i2c: E2 08 00 AE 31 80 13 01 00 00 00 00 00 5C [10:54:31]Write i2c OK [10:54:31]MH_I2C_Read... [10:54:31]Read from MH i2c: E2 [10:54:31]MH_I2C_Read... [10:54:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:31]Read from MH i2c: E2 0E 00 [10:54:31]MH_I2C_Read... [10:54:31]Read from MH i2c: E2 0E 00 AE 31 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 75 [10:54:31]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [10:54:31]wFMCommunicate OK [10:54:31]SAM_PROTO_GetShiftState done [10:54:31]FM_GetShiftState done [10:54:31]req_shift_opened done [10:54:31]requested_item shift.open_date is exist - process it [10:54:31]req_shift_open_date [10:54:31]req_shift_open_date done [10:54:31]produce_requested_data done [10:54:31]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28884,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [10:54:31]process_action_free close_receipt [10:54:31]json_value_free [10:54:31]json_value_free done [10:54:31]process_json_proto returns [10:54:31]Send response to host [10:54:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28884,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [10:54:31]free response buf [10:54:31]execute_script done [10:54:31]execute_script returns [10:54:31]free content buf [10:54:31]Sock 9.Close socket [10:54:31]Sock 9.Thread stoped [10:54:34]OFD Sender: No OFD packet to send [10:54:39]OFD Sender: No OFD packet to send [10:54:44]OFD Sender: No OFD packet to send [10:54:49]OFD Sender: No OFD packet to send [10:54:54]OFD Sender: No OFD packet to send [10:54:59]OFD Sender: No OFD packet to send [10:55:04]OFD Sender: No OFD packet to send [10:55:09]OFD Sender: No OFD packet to send [10:55:14]OFD Sender: No OFD packet to send [10:55:19]OFD Sender: No OFD packet to send [10:55:24]OFD Sender: No OFD packet to send [10:55:29]OFD Sender: No OFD packet to send [10:55:34]OFD Sender: No OFD packet to send [10:55:39]OFD Sender: No OFD packet to send [10:55:44]OFD Sender: No OFD packet to send [10:55:49]OFD Sender: No OFD packet to send [10:55:54]OFD Sender: No OFD packet to send [10:55:59]OFD Sender: No OFD packet to send [10:56:04]OFD Sender: No OFD packet to send [10:56:09]OFD Sender: No OFD packet to send [10:56:14]OFD Sender: No OFD packet to send [10:56:19]OFD Sender: No OFD packet to send [10:56:24]OFD Sender: No OFD packet to send [10:56:29]OFD Sender: No OFD packet to send [10:56:34]OFD Sender: No OFD packet to send [10:56:39]OFD Sender: No OFD packet to send [10:56:44]OFD Sender: No OFD packet to send [10:56:49]OFD Sender: No OFD packet to send [10:56:54]OFD Sender: No OFD packet to send [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:34]OFD Sender: No OFD packet to send [10:57:39]OFD Sender: No OFD packet to send [10:57:44]OFD Sender: No OFD packet to send [10:57:49]OFD Sender: No OFD packet to send [10:57:54]OFD Sender: No OFD packet to send [10:57:59]OFD Sender: No OFD packet to send [10:58:04]OFD Sender: No OFD packet to send [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:24]OFD Sender: No OFD packet to send [10:58:29]OFD Sender: No OFD packet to send [10:58:34]OFD Sender: No OFD packet to send [10:58:39]OFD Sender: No OFD packet to send [10:58:44]OFD Sender: No OFD packet to send [10:58:49]OFD Sender: No OFD packet to send [10:58:54]OFD Sender: No OFD packet to send [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:09]OFD Sender: No OFD packet to send [10:59:14]OFD Sender: No OFD packet to send [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:44]OFD Sender: No OFD packet to send [10:59:49]OFD Sender: No OFD packet to send [10:59:55]OFD Sender: No OFD packet to send [11:00:00]OFD Sender: No OFD packet to send [11:00:05]OFD Sender: No OFD packet to send [11:00:10]OFD Sender: No OFD packet to send [11:00:15]OFD Sender: No OFD packet to send [11:00:20]OFD Sender: No OFD packet to send [11:00:20]accept exits with 7 [11:00:20]New connection [11:00:20]New thread 3066785124 created [11:00:20]Thread 3066928484 joined [11:00:20]Waiting for new connection... [11:00:20] Sock 7.Parse request [11:00:20]Sock 7.Check first char [11:00:20]Sock 7.First char is OK [11:00:20]request: POST /json_proto HTTP/1.0 [11:00:20]Method: POST [11:00:20]URL: /json_proto [11:00:20]Method is POST - this is cgi request [11:00:20]url: /json_proto [11:00:20]query_string will be loaded in cgi processing [11:00:20]execute_cgi json_proto POST (null) [11:00:20]execute_cgi path=json_proto method=POST [11:00:20]POST find Content-Length [11:00:20]Host: 172.17.33.3:8080 [11:00:20]Content-Length: 670 [11:00:20]Content-Type: application/json [11:00:20] [11:00:20]POST finish read [11:00:20]Found Content-Length = 670 [11:00:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 3.990, "sum" : 260.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:20]execute_script... [11:00: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)347238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 3.990, "sum" : 260.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:20]POST & json_proto [11:00:20]process_json_proto [11:00:20]json parsed OK: [11:00:20]protocol is kg_v1.0 [11:00:20]action value=close_receipt [11:00:20]process_action close_receipt [11:00:20]cmd_close_receipt [11:00:20]MH_GetDate [11:00:20]Write to MH i2c: F0 00 00 AF 31 CF [11:00:20]Write i2c OK [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: F0 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: F0 09 00 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: F0 09 00 AF 31 00 C9 65 1A 66 23 5B 8F 65 F8 [11:00:20]GetLastDocTimeStamp 1713005671 [11:00:20]current date 1713006025 [11:00:20]FM_GetShiftState [11:00:20]SAM_PROTO_GetShiftState [11:00:20]wFMCommunicate request_size=4 [11:00:20]MH_SAM_APDU [11:00:20]CAPDU: 80 13 01 00 [11:00:20]Write to MH i2c: E2 08 00 B0 31 80 13 01 00 00 00 00 00 5E [11:00:20]Write i2c OK [11:00:20]MH_I2C_Read... [11:00:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:21]Read from MH i2c: E2 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 0E 00 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 0E 00 B0 31 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 77 [11:00:21]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:00:21]wFMCommunicate OK [11:00:21]SAM_PROTO_GetShiftState done [11:00:21]FM_GetShiftState done [11:00:21]opened in 1712967615 [11:00:21]opened+sec_in_day 1713054015 [11:00:21]quantity*price = 26054 [11:00:21]sum+1 = 26056 [11:00:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.31 НДС 12% : 27.67 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 92 13.04.2024 11:00 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28885 ФПД: 158970220936858 1/tax-web-control/client/api/v1/ticket?date=20240413T110025&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28885&fm=158970220936858&tin=02508201610067®Number=0000138879044617&sum=26000 [11:00:22]StoreToDocumentArchive [11:00:22]shift 115 fd 28885 [11:00:22]save to /storage/0115/doc_00028885 [11:00:22]save last doc name /storage/0115/doc_00028885 to /storage/kkm_last_doc_name [11:00:22]save OK [11:00:22]Clear old archive folders... [11:00:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:00:22]tlvbuf is 01233310 [11:00:22]SAM_PROTO_ClearQueue [11:00:22]wFMCommunicate request_size=4 [11:00:22]MH_SAM_APDU [11:00:22]CAPDU: 80 09 00 00 [11:00:22]Write to MH i2c: E2 08 00 BD 31 80 09 00 00 00 00 00 00 60 [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:22]Read from MH i2c: E2 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 03 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 03 00 BD 31 00 90 00 62 [11:00:22]RAPDU: 90 00 [11:00:22]wFMCommunicate OK [11:00:22]SAM_PROTO_ClearQueue done [11:00:22]KKMCreateOFDPacket [11:00:22]OFDProtocolAddRootSTLVToBuf [11:00:22]FM_MakeSignedData [11:00:22]FM_MakeSignedData [11:00:22]SAM_PROTO_SignData [11:00:22]wFMCommunicate request_size=4 [11:00:22]MH_SAM_APDU [11:00:22]CAPDU: 80 0D 01 02 [11:00:22]Write to MH i2c: E2 08 00 BE 31 80 0D 01 02 00 00 00 00 68 [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:22]Read from MH i2c: E2 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 03 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 03 00 BE 31 00 90 00 63 [11:00:22]RAPDU: 90 00 [11:00:22]wFMCommunicate OK [11:00:22]wFMCommunicate request_size=255 [11:00:22]MH_SAM_APDU [11:00:22]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 0F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C7 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 C9 65 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D5 70 00 00 35 04 06 00 [11:00:22]Write to MH i2c: E2 02 01 BF 31 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 0F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C7 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 C9 65 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D5 70 00 00 35 04 06 00 00 00 11 [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:22]Read from MH i2c: E2 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 03 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 03 00 BF 31 00 90 00 64 [11:00:22]RAPDU: 90 00 [11:00:22]wFMCommunicate OK [11:00:22]wFMCommunicate request_size=11 [11:00:22]MH_SAM_APDU [11:00:22]CAPDU: 80 0D 02 02 06 90 95 23 8C 7E 9A [11:00:22]Write to MH i2c: E2 0E 00 C0 31 80 0D 02 02 06 00 90 95 23 8C 7E 9A 00 00 63 [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:22]Read from MH i2c: E2 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 03 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 03 00 C0 31 00 90 00 65 [11:00:22]RAPDU: 90 00 [11:00:22]wFMCommunicate OK [11:00:22]wFMCommunicate request_size=4 [11:00:22]MH_SAM_APDU [11:00:22]CAPDU: 80 0D 03 02 [11:00:22]Write to MH i2c: E2 08 00 C1 31 80 0D 03 02 00 00 00 00 6D [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:22]Read from MH i2c: E2 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 0B 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 0B 00 C1 31 00 DE 1D CD 84 2F 8F 5C DB 90 00 AF [11:00:22]RAPDU: DE 1D CD 84 2F 8F 5C DB 90 00 [11:00:22]wFMCommunicate OK [11:00:22]SAM_PROTO_SignData done [11:00:22]FM_MakeSignedData done [11:00:22]CreateOFDProtocolMessage [11:00:22]wFMCommunicate request_size=4 [11:00:22]MH_SAM_APDU [11:00:22]CAPDU: 80 11 00 00 [11:00:22]Write to MH i2c: E2 08 00 C2 31 80 11 00 00 00 00 00 00 6D [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:22]Read from MH i2c: E2 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 17 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 17 00 C2 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BC [11:00:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:00:22]wFMCommunicate OK [11:00:22]CreateOFDProtocolMessage done [11:00:22]OFDSenderStorePacket 28885 [11:00:22]StoreOFDPacket docnum=28885 [11:00:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 D0 99 08 01 B4 6E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 0F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C7 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 C9 65 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D5 70 00 00 35 04 06 00 90 95 23 8C 7E 9A DE 1D CD 84 2F 8F 5C DB [11:00:22]CheckFolder [11:00:22]dirname=/storage/ofd_packets [11:00:22]CheckFolder done [11:00:22]ProducePacketName [11:00:22]name=ofd_packets/00028885 [11:00:22]NVStorageSaveData ofd_packets/00028885 [11:00:22]File name is /storage/ofd_packets/00028885 [11:00:22]Write 302 bytes [11:00:22]NVStorageSaveData done [11:00:22]OFDSenderStorePacket done [11:00:22]KKMCreateOFDPacket done [11:00:22]NVStorageSaveData kkm_last_timestamp [11:00:22]File name is /storage/kkm_last_timestamp [11:00:22]Write 4 bytes [11:00:22]NVStorageSaveData done [11:00:22]ExternCall_PrintAddStr [11:00:22]wPrintStart [11:00:22]Write to MH i2c: 01 00 00 C3 31 F4 [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: 01 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: 01 07 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: 01 07 00 C3 31 00 00 00 00 00 FF 0F 09 [11:00:22]RasterBufferAndPrint [11:00:22]line Счет N : (1)347238 [11:00:22]line ИНН: 02508201610067 [11:00:22]line Контрольно-Кассовый Чек [11:00:22]line ПРОДАЖА [11:00:22]line ТРК (МРК, ГНК) : 31 [11:00:22]line Товар: 2710124130 [11:00:22]line SUPER-92-К-5 [11:00:22]line 3.990 * 65.30 [11:00:22]line = 260.55 [11:00:22]line НДС 12% НСП 1% [11:00:22]line > о реализуемом товаре [11:00:22]line ОКРУГЛЕНИЕ: -0.55 [11:00:22]line ИТОГО: 260.00 [11:00:22]line Внесено: 260.00 [11:00:22]line СДАЧА: 0.00 [11:00:22]line НСП 1% : 2.31 [11:00:22]line НДС 12% : 27.67 [11:00:22]line Наличными: 260.00 [11:00:22]line Безнал.: 0.00 [11:00:22]line Место: АЗС № 108 "Партнер Нефть" [11:00:22]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:00:22]line СНО: Общий режим [11:00:22]line Чек 92 13.04.2024 11:00 [11:00:22]line Смена: 115 ФФД: 1.0 [11:00:22]line ЗНМ: 0300000027 [11:00:22]line РНМ: 0000138879044617 [11:00:22]line Версия ККМ: 001 [11:00:22]line ФМ: 0000000000963154 [11:00:22]line ФД: 28885 [11:00:22]line ФПД: 158970220936858 [11:00:22]line 1/tax-web-control/client/api/v1/ticket?date=20240413T110025&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28885&fm=158970220936858&tin=02508201610067®Number=0000138879044617&sum=26000 [11:00:23]OFD Sender: Processing packet 28885 [packets to send 8, broken 7] [11:00:23]ProducePacketName [11:00:23]name=ofd_packets/00028885 [11:00:23]OFD Sender: To server: pG, [11:00:23]CommunicateWithHost lk.salyk.kg:30040 [11:00:23]ConnectInit lk.salyk.kg [11:00:23]written 0, free lines is 4095 [11:00:23]Connected sock=10 [11:00: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 31 35 34 10 01 00 00 D0 99 08 01 B4 6E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 0F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C7 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 C9 65 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D5 70 00 00 35 04 06 00 90 95 23 8C 7E 9A DE 1D CD 84 2F 8F 5C DB [11:00:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F2 CD 47 00 06 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 31 35 34 10 04 04 00 D5 70 00 00 F4 03 04 00 70 10 1A 66 B6 04 01 00 00 EC 4D ED 4F E3 42 7F 59 [11:00:23]CommunicateWithHost err = 0 [11:00:23]CheckOFDResponse [11:00:23]1017 (14) - 77093643461234 [11:00:23]1041 (16) - 0000000000963154 [11:00:23]1040 (4) - 28885 [11:00:23]1012 (4) - 13.04.2024 04:56 [11:00:23]1206 (1) - 0 [11:00:23]OFD Sender: Remove packet 28885 [11:00:23]ProducePacketName [11:00:23]name=ofd_packets/00028885 [11:00:23]NVStorageDeleteData [11:00:23]Write to MH i2c: 01 00 00 ED 31 1E [11:00:23]Write i2c OK [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: 01 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: 01 07 00 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: 01 07 00 ED 31 00 00 00 00 00 C2 0C F3 [11:00:23]RasterBufferAndPrint [11:00:23]line [11:00:23]line [11:00:23]line [11:00:23]line [11:00:23]line [11:00:23]written 0, free lines is 3272 [11:00:23]MH_Cut [11:00:23]Write to MH i2c: D1 01 00 F4 31 01 F7 [11:00:23]Write i2c OK [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: D1 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: D1 01 00 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: D1 01 00 F4 31 00 F6 [11:00:23]Write to MH i2c: 01 00 00 F5 31 26 [11:00:23]Write i2c OK [11:00:23]MH_I2C_Read... [11:00:23]OFD Sender: No OFD packet to send [11:00:24]*** Cut start [11:00:24]*** Partial cut [11:00:24]*** CUTSNS_PIN = 1 [11:00:24]*** CUTSNS_PIN = 0 [11:00:24]*** Brake cut motor [11:00:24]Read from MH i2c: 01 [11:00:24]MH_I2C_Read... [11:00:24]*** Stop cut motor [11:00:24]*** Cut end [11:00:24]Read from MH i2c: 01 07 00 [11:00:24]MH_I2C_Read... [11:00:24]Read from MH i2c: 01 07 00 F5 31 00 00 00 00 00 FF 0F 3B [11:00:24]process_action close_receipt done [11:00:24]requested_data is exist [11:00:24]produce_requested_data [11:00:24]requested_item fm.sn is exist - process it [11:00:24]wFMCommunicate request_size=4 [11:00:24]MH_SAM_APDU [11:00:24]CAPDU: 80 11 00 00 [11:00:24]Write to MH i2c: E2 08 00 F6 31 80 11 00 00 00 00 00 00 A1 [11:00:24]Write i2c OK [11:00:24]MH_I2C_Read... [11:00:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:24]Read from MH i2c: E2 [11:00:24]MH_I2C_Read... [11:00:24]Read from MH i2c: E2 17 00 [11:00:24]MH_I2C_Read... [11:00:24]Read from MH i2c: E2 17 00 F6 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F0 [11:00:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:00:24]wFMCommunicate OK [11:00:24]requested_item fd.num is exist - process it [11:00:24]SAM_PROTO_GetFieldsCounters [11:00:24]wFMCommunicate request_size=4 [11:00:24]MH_SAM_APDU [11:00:24]CAPDU: 80 13 00 00 [11:00:24]Write to MH i2c: E2 08 00 F7 31 80 13 00 00 00 00 00 00 A4 [11:00:24]Write i2c OK [11:00:24]MH_I2C_Read... [11:00:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:25]Read from MH i2c: E2 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 62 00 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 62 00 F7 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D5 70 00 00 0E 04 04 00 73 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 AE [11:00: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D5 70 00 00 0E 04 04 00 73 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 [11:00:25]wFMCommunicate OK [11:00:25]SAM_PROTO_GetFieldsCounters done [11:00:25]requested_item shift.num is exist - process it [11:00:25]requested_item shift.opened is exist - process it [11:00:25]req_shift_opened [11:00:25]FM_GetShiftState [11:00:25]SAM_PROTO_GetShiftState [11:00:25]wFMCommunicate request_size=4 [11:00:25]MH_SAM_APDU [11:00:25]CAPDU: 80 13 01 00 [11:00:25]Write to MH i2c: E2 08 00 F8 31 80 13 01 00 00 00 00 00 A6 [11:00:25]Write i2c OK [11:00:25]MH_I2C_Read... [11:00:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:25]Read from MH i2c: E2 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 0E 00 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 0E 00 F8 31 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 BF [11:00:25]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:00:25]wFMCommunicate OK [11:00:25]SAM_PROTO_GetShiftState done [11:00:25]FM_GetShiftState done [11:00:25]req_shift_opened done [11:00:25]requested_item shift.open_date is exist - process it [11:00:25]req_shift_open_date [11:00:25]req_shift_open_date done [11:00:25]produce_requested_data done [11:00:25]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28885,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [11:00:25]process_action_free close_receipt [11:00:25]json_value_free [11:00:25]json_value_free done [11:00:25]process_json_proto returns [11:00:25]Send response to host [11:00:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28885,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [11:00:25]free response buf [11:00:25]execute_script done [11:00:25]execute_script returns [11:00:25]free content buf [11:00:25]Sock 7.Close socket [11:00:25]Sock 7.Thread stoped [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:55]accept exits with 9 [11:00:55]New connection [11:00:55]New thread 3066928484 created [11:00:55]Thread 3066785124 joined [11:00:55]Waiting for new connection... [11:00:55] Sock 9.Parse request [11:00:55]Sock 9.Check first char [11:00:55]Sock 9.First char is OK [11:00:55]request: POST /json_proto HTTP/1.0 [11:00:55]Method: POST [11:00:55]URL: /json_proto [11:00:55]Method is POST - this is cgi request [11:00:55]url: /json_proto [11:00:55]query_string will be loaded in cgi processing [11:00:55]execute_cgi json_proto POST (null) [11:00:55]execute_cgi path=json_proto method=POST [11:00:55]POST find Content-Length [11:00:55]Host: 172.17.33.3:8080 [11:00:55]Content-Length: 670 [11:00:55]Content-Type: application/json [11:00:55] [11:00:55]POST finish read [11:00:55]Found Content-Length = 670 [11:00:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 3.070, "sum" : 200.47, "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:00:55]execute_script... [11:00: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)347239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 3.070, "sum" : 200.47, "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:00:55]POST & json_proto [11:00:55]process_json_proto [11:00:55]json parsed OK: [11:00:55]protocol is kg_v1.0 [11:00:55]action value=close_receipt [11:00:55]process_action close_receipt [11:00:55]cmd_close_receipt [11:00:55]MH_GetDate [11:00:55]Write to MH i2c: F0 00 00 F9 31 19 [11:00:55]Write i2c OK [11:00:55]MH_I2C_Read... [11:00:55]Read from MH i2c: F0 [11:00:55]MH_I2C_Read... [11:00:55]Read from MH i2c: F0 09 00 [11:00:55]MH_I2C_Read... [11:00:55]Read from MH i2c: F0 09 00 F9 31 00 EB 65 1A 66 23 5B 8F 65 64 [11:00:55]GetLastDocTimeStamp 1713006025 [11:00:55]current date 1713006059 [11:00:55]FM_GetShiftState [11:00:55]SAM_PROTO_GetShiftState [11:00:55]wFMCommunicate request_size=4 [11:00:55]MH_SAM_APDU [11:00:55]CAPDU: 80 13 01 00 [11:00:55]Write to MH i2c: E2 08 00 FA 31 80 13 01 00 00 00 00 00 A8 [11:00:55]Write i2c OK [11:00:55]MH_I2C_Read... [11:00:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:55]Read from MH i2c: E2 [11:00:55]MH_I2C_Read... [11:00:55]Read from MH i2c: E2 0E 00 [11:00:55]MH_I2C_Read... [11:00:55]Read from MH i2c: E2 0E 00 FA 31 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 C1 [11:00:55]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:00:55]wFMCommunicate OK [11:00:55]SAM_PROTO_GetShiftState done [11:00:55]FM_GetShiftState done [11:00:55]opened in 1712967615 [11:00:55]opened+sec_in_day 1713054015 [11:00:55]quantity*price = 20047 [11:00:55]sum+1 = 20048 [11:00:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 93 13.04.2024 11:00 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28886 ФПД: 205111198596986 1/tax-web-control/client/api/v1/ticket?date=20240413T110059&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28886&fm=205111198596986&tin=02508201610067®Number=0000138879044617&sum=20000 [11:00:56]StoreToDocumentArchive [11:00:56]shift 115 fd 28886 [11:00:56]save to /storage/0115/doc_00028886 [11:00:56]save last doc name /storage/0115/doc_00028886 to /storage/kkm_last_doc_name [11:00:56]save OK [11:00:56]Clear old archive folders... [11:00:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:00:56]tlvbuf is 01233200 [11:00:56]SAM_PROTO_ClearQueue [11:00:56]wFMCommunicate request_size=4 [11:00:56]MH_SAM_APDU [11:00:56]CAPDU: 80 09 00 00 [11:00:56]Write to MH i2c: E2 08 00 07 32 80 09 00 00 00 00 00 00 AB [11:00:56]Write i2c OK [11:00:56]MH_I2C_Read... [11:00:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:56]Read from MH i2c: E2 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: E2 03 00 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: E2 03 00 07 32 00 90 00 AD [11:00:56]RAPDU: 90 00 [11:00:56]wFMCommunicate OK [11:00:56]SAM_PROTO_ClearQueue done [11:00:56]KKMCreateOFDPacket [11:00:56]OFDProtocolAddRootSTLVToBuf [11:00:56]FM_MakeSignedData [11:00:56]FM_MakeSignedData [11:00:56]SAM_PROTO_SignData [11:00:56]wFMCommunicate request_size=4 [11:00:56]MH_SAM_APDU [11:00:56]CAPDU: 80 0D 01 02 [11:00:56]Write to MH i2c: E2 08 00 08 32 80 0D 01 02 00 00 00 00 B3 [11:00:56]Write i2c OK [11:00:56]MH_I2C_Read... [11:00:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:56]Read from MH i2c: E2 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: E2 03 00 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: E2 03 00 08 32 00 90 00 AE [11:00:56]RAPDU: 90 00 [11:00:56]wFMCommunicate OK [11:00:56]wFMCommunicate request_size=255 [11:00:56]MH_SAM_APDU [11:00:56]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4F 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 51 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 5D 00 00 00 F4 03 04 00 EB 65 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D6 70 00 00 35 04 06 00 [11:00:56]Write to MH i2c: E2 02 01 09 32 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4F 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 51 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 5D 00 00 00 F4 03 04 00 EB 65 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D6 70 00 00 35 04 06 00 00 00 91 [11:00:56]Write i2c OK [11:00:56]MH_I2C_Read... [11:00:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:56]Read from MH i2c: E2 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: E2 03 00 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: E2 03 00 09 32 00 90 00 AF [11:00:56]RAPDU: 90 00 [11:00:56]wFMCommunicate OK [11:00:56]wFMCommunicate request_size=11 [11:00:56]MH_SAM_APDU [11:00:56]CAPDU: 80 0D 02 02 06 BA 8C 2C 21 BF 7A [11:00:56]Write to MH i2c: E2 0E 00 0A 32 80 0D 02 02 06 00 BA 8C 2C 21 BF 7A 00 00 8E [11:00:56]Write i2c OK [11:00:56]MH_I2C_Read... [11:00:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:56]Read from MH i2c: E2 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: E2 03 00 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: E2 03 00 0A 32 00 90 00 B0 [11:00:56]RAPDU: 90 00 [11:00:56]wFMCommunicate OK [11:00:56]wFMCommunicate request_size=4 [11:00:56]MH_SAM_APDU [11:00:56]CAPDU: 80 0D 03 02 [11:00:56]Write to MH i2c: E2 08 00 0B 32 80 0D 03 02 00 00 00 00 B8 [11:00:56]Write i2c OK [11:00:56]MH_I2C_Read... [11:00:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:56]Read from MH i2c: E2 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: E2 0B 00 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: E2 0B 00 0B 32 00 B9 08 2A D6 09 04 2B 7C 90 00 2E [11:00:56]RAPDU: B9 08 2A D6 09 04 2B 7C 90 00 [11:00:56]wFMCommunicate OK [11:00:56]SAM_PROTO_SignData done [11:00:56]FM_MakeSignedData done [11:00:56]CreateOFDProtocolMessage [11:00:56]wFMCommunicate request_size=4 [11:00:56]MH_SAM_APDU [11:00:56]CAPDU: 80 11 00 00 [11:00:56]Write to MH i2c: E2 08 00 0C 32 80 11 00 00 00 00 00 00 B8 [11:00:56]Write i2c OK [11:00:56]MH_I2C_Read... [11:00:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:56]Read from MH i2c: E2 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: E2 17 00 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: E2 17 00 0C 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 07 [11:00:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:00:56]wFMCommunicate OK [11:00:56]CreateOFDProtocolMessage done [11:00:56]OFDSenderStorePacket 28886 [11:00:56]StoreOFDPacket docnum=28886 [11:00:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 9E E8 08 01 7B A0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4F 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 51 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 5D 00 00 00 F4 03 04 00 EB 65 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D6 70 00 00 35 04 06 00 BA 8C 2C 21 BF 7A B9 08 2A D6 09 04 2B 7C [11:00:56]CheckFolder [11:00:56]dirname=/storage/ofd_packets [11:00:56]CheckFolder done [11:00:56]ProducePacketName [11:00:56]name=ofd_packets/00028886 [11:00:56]NVStorageSaveData ofd_packets/00028886 [11:00:56]File name is /storage/ofd_packets/00028886 [11:00:56]Write 302 bytes [11:00:56]NVStorageSaveData done [11:00:56]OFDSenderStorePacket done [11:00:56]KKMCreateOFDPacket done [11:00:56]NVStorageSaveData kkm_last_timestamp [11:00:56]File name is /storage/kkm_last_timestamp [11:00:56]Write 4 bytes [11:00:56]NVStorageSaveData done [11:00:56]ExternCall_PrintAddStr [11:00:56]wPrintStart [11:00:56]Write to MH i2c: 01 00 00 0D 32 3F [11:00:56]Write i2c OK [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: 01 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: 01 07 00 [11:00:56]MH_I2C_Read... [11:00:56]Read from MH i2c: 01 07 00 0D 32 00 00 00 00 00 FF 0F 54 [11:00:56]RasterBufferAndPrint [11:00:56]line Счет N : (1)347239 [11:00:56]line ИНН: 02508201610067 [11:00:56]line Контрольно-Кассовый Чек [11:00:56]line ПРОДАЖА [11:00:56]line ТРК (МРК, ГНК) : 31 [11:00:56]line Товар: 2710124130 [11:00:56]line SUPER-92-К-5 [11:00:56]line 3.070 * 65.30 [11:00:56]line = 200.47 [11:00:56]line НДС 12% НСП 1% [11:00:56]line > о реализуемом товаре [11:00:56]line ОКРУГЛЕНИЕ: -0.47 [11:00:56]line ИТОГО: 200.00 [11:00:56]line Внесено: 200.00 [11:00:56]line СДАЧА: 0.00 [11:00:56]line НСП 1% : 1.77 [11:00:56]line НДС 12% : 21.29 [11:00:56]line Наличными: 200.00 [11:00:56]line Безнал.: 0.00 [11:00:56]line Место: АЗС № 108 "Партнер Нефть" [11:00:56]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:00:56]line СНО: Общий режим [11:00:56]line Чек 93 13.04.2024 11:00 [11:00:56]line Смена: 115 ФФД: 1.0 [11:00:56]line ЗНМ: 0300000027 [11:00:56]line РНМ: 0000138879044617 [11:00:56]line Версия ККМ: 001 [11:00:56]line ФМ: 0000000000963154 [11:00:56]line ФД: 28886 [11:00:56]line ФПД: 205111198596986 [11:00:56]line 1/tax-web-control/client/api/v1/ticket?date=20240413T110059&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28886&fm=205111198596986&tin=02508201610067®Number=0000138879044617&sum=20000 [11:00:57]OFD Sender: Processing packet 28886 [packets to send 8, broken 7] [11:00:57]ProducePacketName [11:00:57]name=ofd_packets/00028886 [11:00:57]OFD Sender: To server: pG, [11:00:57]CommunicateWithHost lk.salyk.kg:30040 [11:00:57]ConnectInit lk.salyk.kg [11:00:57]written 0, free lines is 4095 [11:00:57]Connected sock=7 [11:00: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 31 35 34 10 01 00 00 9E E8 08 01 7B A0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4F 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 51 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 5D 00 00 00 F4 03 04 00 EB 65 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D6 70 00 00 35 04 06 00 BA 8C 2C 21 BF 7A B9 08 2A D6 09 04 2B 7C [11:00:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2C EF 47 00 75 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 31 35 34 10 04 04 00 D6 70 00 00 F4 03 04 00 92 10 1A 66 B6 04 01 00 00 2B 26 31 E7 89 57 33 99 [11:00:57]CommunicateWithHost err = 0 [11:00:57]CheckOFDResponse [11:00:57]1017 (14) - 77093643461234 [11:00:57]1041 (16) - 0000000000963154 [11:00:57]1040 (4) - 28886 [11:00:57]1012 (4) - 13.04.2024 04:56 [11:00:57]1206 (1) - 0 [11:00:57]OFD Sender: Remove packet 28886 [11:00:57]ProducePacketName [11:00:57]name=ofd_packets/00028886 [11:00:57]NVStorageDeleteData [11:00:57]Write to MH i2c: 01 00 00 37 32 69 [11:00:57]Write i2c OK [11:00:57]MH_I2C_Read... [11:00:57]Read from MH i2c: 01 [11:00:57]MH_I2C_Read... [11:00:57]Read from MH i2c: 01 07 00 [11:00:57]MH_I2C_Read... [11:00:57]Read from MH i2c: 01 07 00 37 32 00 00 00 00 00 C0 0C 3C [11:00:57]RasterBufferAndPrint [11:00:57]line [11:00:57]line [11:00:57]line [11:00:57]line [11:00:57]line [11:00:57]written 0, free lines is 3271 [11:00:57]MH_Cut [11:00:57]Write to MH i2c: D1 01 00 3E 32 01 42 [11:00:57]Write i2c OK [11:00:57]MH_I2C_Read... [11:00:57]Read from MH i2c: D1 [11:00:57]MH_I2C_Read... [11:00:57]Read from MH i2c: D1 01 00 [11:00:57]MH_I2C_Read... [11:00:57]Read from MH i2c: D1 01 00 3E 32 00 41 [11:00:57]Write to MH i2c: 01 00 00 3F 32 71 [11:00:57]Write i2c OK [11:00:57]MH_I2C_Read... [11:00:58]OFD Sender: No OFD packet to send [11:00:58]*** Cut start [11:00:58]*** Partial cut [11:00:58]*** CUTSNS_PIN = 1 [11:00:58]*** CUTSNS_PIN = 0 [11:00:58]*** Brake cut motor [11:00:59]Read from MH i2c: 01 [11:00:59]MH_I2C_Read... [11:00:59]*** Stop cut motor [11:00:59]*** Cut end [11:00:59]Read from MH i2c: 01 07 00 [11:00:59]MH_I2C_Read... [11:00:59]Read from MH i2c: 01 07 00 3F 32 00 00 00 00 00 FF 0F 86 [11:00:59]process_action close_receipt done [11:00:59]requested_data is exist [11:00:59]produce_requested_data [11:00:59]requested_item fm.sn is exist - process it [11:00:59]wFMCommunicate request_size=4 [11:00:59]MH_SAM_APDU [11:00:59]CAPDU: 80 11 00 00 [11:00:59]Write to MH i2c: E2 08 00 40 32 80 11 00 00 00 00 00 00 EC [11:00:59]Write i2c OK [11:00:59]MH_I2C_Read... [11:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:59]Read from MH i2c: E2 [11:00:59]MH_I2C_Read... [11:00:59]Read from MH i2c: E2 17 00 [11:00:59]MH_I2C_Read... [11:00:59]Read from MH i2c: E2 17 00 40 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3B [11:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:00:59]wFMCommunicate OK [11:00:59]requested_item fd.num is exist - process it [11:00:59]SAM_PROTO_GetFieldsCounters [11:00:59]wFMCommunicate request_size=4 [11:00:59]MH_SAM_APDU [11:00:59]CAPDU: 80 13 00 00 [11:00:59]Write to MH i2c: E2 08 00 41 32 80 13 00 00 00 00 00 00 EF [11:00:59]Write i2c OK [11:00:59]MH_I2C_Read... [11:00:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:59]Read from MH i2c: E2 [11:00:59]MH_I2C_Read... [11:00:59]Read from MH i2c: E2 62 00 [11:00:59]MH_I2C_Read... [11:00:59]Read from MH i2c: E2 62 00 41 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D6 70 00 00 0E 04 04 00 73 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 FD [11:00: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D6 70 00 00 0E 04 04 00 73 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 [11:00:59]wFMCommunicate OK [11:00:59]SAM_PROTO_GetFieldsCounters done [11:00:59]requested_item shift.num is exist - process it [11:00:59]requested_item shift.opened is exist - process it [11:00:59]req_shift_opened [11:00:59]FM_GetShiftState [11:00:59]SAM_PROTO_GetShiftState [11:00:59]wFMCommunicate request_size=4 [11:00:59]MH_SAM_APDU [11:00:59]CAPDU: 80 13 01 00 [11:00:59]Write to MH i2c: E2 08 00 42 32 80 13 01 00 00 00 00 00 F1 [11:00:59]Write i2c OK [11:00:59]MH_I2C_Read... [11:00:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:59]Read from MH i2c: E2 [11:00:59]MH_I2C_Read... [11:00:59]Read from MH i2c: E2 0E 00 [11:00:59]MH_I2C_Read... [11:00:59]Read from MH i2c: E2 0E 00 42 32 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 0A [11:00:59]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:00:59]wFMCommunicate OK [11:00:59]SAM_PROTO_GetShiftState done [11:00:59]FM_GetShiftState done [11:00:59]req_shift_opened done [11:00:59]requested_item shift.open_date is exist - process it [11:00:59]req_shift_open_date [11:00:59]req_shift_open_date done [11:00:59]produce_requested_data done [11:00:59]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28886,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [11:00:59]process_action_free close_receipt [11:00:59]json_value_free [11:00:59]json_value_free done [11:00:59]process_json_proto returns [11:00:59]Send response to host [11:00:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28886,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [11:00:59]free response buf [11:00:59]execute_script done [11:00:59]execute_script returns [11:00:59]free content buf [11:00:59]Sock 9.Close socket [11:00:59]Sock 9.Thread stoped [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:45]accept exits with 10 [11:04:45]New connection [11:04:45]New thread 3066785124 created [11:04:45]Thread 3066928484 joined [11:04:45]Waiting for new connection... [11:04:45] Sock 10.Parse request [11:04:45]Sock 10.Check first char [11:04:45]Sock 10.First char is OK [11:04:45]request: POST /json_proto HTTP/1.0 [11:04:45]Method: POST [11:04:45]URL: /json_proto [11:04:45]Method is POST - this is cgi request [11:04:45]url: /json_proto [11:04:45]query_string will be loaded in cgi processing [11:04:45]execute_cgi json_proto POST (null) [11:04:45]execute_cgi path=json_proto method=POST [11:04:45]POST find Content-Length [11:04:45]Host: 172.17.33.3:8080 [11:04:45]Content-Length: 678 [11:04:45]Content-Type: application/json [11:04:45] [11:04:45]POST finish read [11:04:45]Found Content-Length = 678 [11:04:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347240", "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" : 64.30, "quantity" : 10.890, "sum" : 700.23, "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:04:45]execute_script... [11:04: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)347240", "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" : 64.30, "quantity" : 10.890, "sum" : 700.23, "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:04:45]POST & json_proto [11:04:45]process_json_proto [11:04:45]json parsed OK: [11:04:45]protocol is kg_v1.0 [11:04:45]action value=close_receipt [11:04:45]process_action close_receipt [11:04:45]cmd_close_receipt [11:04:45]MH_GetDate [11:04:45]Write to MH i2c: F0 00 00 43 32 64 [11:04:45]Write i2c OK [11:04:45]MH_I2C_Read... [11:04:45]Read from MH i2c: F0 [11:04:45]MH_I2C_Read... [11:04:45]Read from MH i2c: F0 09 00 [11:04:45]MH_I2C_Read... [11:04:45]Read from MH i2c: F0 09 00 43 32 00 D1 66 1A 66 23 5B 8F 65 96 [11:04:45]GetLastDocTimeStamp 1713006059 [11:04:45]current date 1713006289 [11:04:45]FM_GetShiftState [11:04:45]SAM_PROTO_GetShiftState [11:04:45]wFMCommunicate request_size=4 [11:04:45]MH_SAM_APDU [11:04:45]CAPDU: 80 13 01 00 [11:04:45]Write to MH i2c: E2 08 00 44 32 80 13 01 00 00 00 00 00 F3 [11:04:45]Write i2c OK [11:04:45]MH_I2C_Read... [11:04:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:45]Read from MH i2c: E2 [11:04:45]MH_I2C_Read... [11:04:45]Read from MH i2c: E2 0E 00 [11:04:45]MH_I2C_Read... [11:04:45]Read from MH i2c: E2 0E 00 44 32 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 0C [11:04:45]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:04:45]wFMCommunicate OK [11:04:45]SAM_PROTO_GetShiftState done [11:04:45]FM_GetShiftState done [11:04:45]opened in 1712967615 [11:04:45]opened+sec_in_day 1713054015 [11:04:45]quantity*price = 70022 [11:04:45]sum+1 = 70024 [11:04:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 94 13.04.2024 11:04 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28887 ФПД: 175350103227732 1/tax-web-control/client/api/v1/ticket?date=20240413T110449&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28887&fm=175350103227732&tin=02508201610067®Number=0000138879044617&sum=70000 [11:04:46]StoreToDocumentArchive [11:04:46]shift 115 fd 28887 [11:04:46]save to /storage/0115/doc_00028887 [11:04:46]save last doc name /storage/0115/doc_00028887 to /storage/kkm_last_doc_name [11:04:46]save OK [11:04:46]Clear old archive folders... [11:04:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:04:46]tlvbuf is 011EEA80 [11:04:46]SAM_PROTO_ClearQueue [11:04:46]wFMCommunicate request_size=4 [11:04:46]MH_SAM_APDU [11:04:46]CAPDU: 80 09 00 00 [11:04:46]Write to MH i2c: E2 08 00 51 32 80 09 00 00 00 00 00 00 F5 [11:04:46]Write i2c OK [11:04:46]MH_I2C_Read... [11:04:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:46]Read from MH i2c: E2 [11:04:46]MH_I2C_Read... [11:04:46]Read from MH i2c: E2 03 00 [11:04:46]MH_I2C_Read... [11:04:46]Read from MH i2c: E2 03 00 51 32 00 90 00 F7 [11:04:46]RAPDU: 90 00 [11:04:46]wFMCommunicate OK [11:04:46]SAM_PROTO_ClearQueue done [11:04:46]KKMCreateOFDPacket [11:04:46]OFDProtocolAddRootSTLVToBuf [11:04:46]FM_MakeSignedData [11:04:46]FM_MakeSignedData [11:04:46]SAM_PROTO_SignData [11:04:46]wFMCommunicate request_size=4 [11:04:46]MH_SAM_APDU [11:04:46]CAPDU: 80 0D 01 02 [11:04:46]Write to MH i2c: E2 08 00 52 32 80 0D 01 02 00 00 00 00 FD [11:04:46]Write i2c OK [11:04:46]MH_I2C_Read... [11:04:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:46]Read from MH i2c: E2 [11:04:46]MH_I2C_Read... [11:04:46]Read from MH i2c: E2 03 00 [11:04:46]MH_I2C_Read... [11:04:46]Read from MH i2c: E2 03 00 52 32 00 90 00 F8 [11:04:46]RAPDU: 90 00 [11:04:46]wFMCommunicate OK [11:04:46]wFMCommunicate request_size=255 [11:04:46]MH_SAM_APDU [11:04: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 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 5E 00 00 00 F4 03 04 00 D1 66 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D7 70 00 00 35 04 06 00 9F [11:04:46]Write to MH i2c: E2 02 01 53 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 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 5E 00 00 00 F4 03 04 00 D1 66 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D7 70 00 00 35 04 06 00 9F 00 00 B1 [11:04:46]Write i2c OK [11:04:46]MH_I2C_Read... [11:04:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:47]Read from MH i2c: E2 [11:04:47]MH_I2C_Read... [11:04:47]Read from MH i2c: E2 03 00 [11:04:47]MH_I2C_Read... [11:04:47]Read from MH i2c: E2 03 00 53 32 00 90 00 F9 [11:04:47]RAPDU: 90 00 [11:04:47]wFMCommunicate OK [11:04:47]wFMCommunicate request_size=10 [11:04:47]MH_SAM_APDU [11:04:47]CAPDU: 80 0D 02 02 05 7A E0 9D 3D 54 [11:04:47]Write to MH i2c: E2 0D 00 54 32 80 0D 02 02 05 00 7A E0 9D 3D 54 00 00 92 [11:04:47]Write i2c OK [11:04:47]MH_I2C_Read... [11:04:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:47]Read from MH i2c: E2 [11:04:47]MH_I2C_Read... [11:04:47]Read from MH i2c: E2 03 00 [11:04:47]MH_I2C_Read... [11:04:47]Read from MH i2c: E2 03 00 54 32 00 90 00 FA [11:04:47]RAPDU: 90 00 [11:04:47]wFMCommunicate OK [11:04:47]wFMCommunicate request_size=4 [11:04:47]MH_SAM_APDU [11:04:47]CAPDU: 80 0D 03 02 [11:04:47]Write to MH i2c: E2 08 00 55 32 80 0D 03 02 00 00 00 00 02 [11:04:47]Write i2c OK [11:04:47]MH_I2C_Read... [11:04:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:47]Read from MH i2c: E2 [11:04:47]MH_I2C_Read... [11:04:47]Read from MH i2c: E2 0B 00 [11:04:47]MH_I2C_Read... [11:04:47]Read from MH i2c: E2 0B 00 55 32 00 40 AA C0 B7 54 16 EC 64 90 00 1E [11:04:47]RAPDU: 40 AA C0 B7 54 16 EC 64 90 00 [11:04:47]wFMCommunicate OK [11:04:47]SAM_PROTO_SignData done [11:04:47]FM_MakeSignedData done [11:04:47]CreateOFDProtocolMessage [11:04:47]wFMCommunicate request_size=4 [11:04:47]MH_SAM_APDU [11:04:47]CAPDU: 80 11 00 00 [11:04:47]Write to MH i2c: E2 08 00 56 32 80 11 00 00 00 00 00 00 02 [11:04:47]Write i2c OK [11:04:47]MH_I2C_Read... [11:04:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:47]Read from MH i2c: E2 [11:04:47]MH_I2C_Read... [11:04:47]Read from MH i2c: E2 17 00 [11:04:47]MH_I2C_Read... [11:04:47]Read from MH i2c: E2 17 00 56 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 51 [11:04:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:04:47]wFMCommunicate OK [11:04:47]CreateOFDProtocolMessage done [11:04:47]OFDSenderStorePacket 28887 [11:04:47]StoreOFDPacket docnum=28887 [11:04:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 15 B0 07 01 A2 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 5E 00 00 00 F4 03 04 00 D1 66 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D7 70 00 00 35 04 06 00 9F 7A E0 9D 3D 54 40 AA C0 B7 54 16 EC 64 [11:04:47]CheckFolder [11:04:47]dirname=/storage/ofd_packets [11:04:47]CheckFolder done [11:04:47]ProducePacketName [11:04:47]name=ofd_packets/00028887 [11:04:47]NVStorageSaveData ofd_packets/00028887 [11:04:47]File name is /storage/ofd_packets/00028887 [11:04:47]Write 301 bytes [11:04:47]NVStorageSaveData done [11:04:47]OFDSenderStorePacket done [11:04:47]KKMCreateOFDPacket done [11:04:47]NVStorageSaveData kkm_last_timestamp [11:04:47]File name is /storage/kkm_last_timestamp [11:04:47]Write 4 bytes [11:04:47]NVStorageSaveData done [11:04:47]ExternCall_PrintAddStr [11:04:47]wPrintStart [11:04:47]Write to MH i2c: 01 00 00 57 32 89 [11:04:47]Write i2c OK [11:04:47]MH_I2C_Read... [11:04:47]Read from MH i2c: 01 [11:04:47]MH_I2C_Read... [11:04:47]Read from MH i2c: 01 07 00 [11:04:47]MH_I2C_Read... [11:04:47]Read from MH i2c: 01 07 00 57 32 00 00 00 00 00 FF 0F 9E [11:04:47]RasterBufferAndPrint [11:04:47]line Счет N : (1)347240 [11:04:47]line ИНН: 02508201610067 [11:04:47]line Контрольно-Кассовый Чек [11:04:47]line ПРОДАЖА [11:04:47]line ТРК (МРК, ГНК) : 32 [11:04:47]line Товар: 2710124130 [11:04:47]line Аи-92-К-5 [11:04:47]line 10.890 * 64.30 [11:04:47]line = 700.23 [11:04:47]line НДС 12% НСП 1% [11:04:47]line > о реализуемом товаре [11:04:47]line ОКРУГЛЕНИЕ: -0.23 [11:04:47]line ИТОГО: 700.00 [11:04:47]line Внесено: 700.00 [11:04:47]line СДАЧА: 0.00 [11:04:47]line НСП 1% : 6.20 [11:04:47]line НДС 12% : 74.36 [11:04:47]line Наличными: 700.00 [11:04:47]line Безнал.: 0.00 [11:04:47]line Место: АЗС № 108 "Партнер Нефть" [11:04:47]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:04:47]line СНО: Общий режим [11:04:47]line Чек 94 13.04.2024 11:04 [11:04:47]line Смена: 115 ФФД: 1.0 [11:04:47]line ЗНМ: 0300000027 [11:04:47]line РНМ: 0000138879044617 [11:04:47]line Версия ККМ: 001 [11:04:47]line ФМ: 0000000000963154 [11:04:47]line ФД: 28887 [11:04:47]line ФПД: 175350103227732 [11:04:47]line 1/tax-web-control/client/api/v1/ticket?date=20240413T110449&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28887&fm=175350103227732&tin=02508201610067®Number=0000138879044617&sum=70000 [11:04:47]OFD Sender: Processing packet 28887 [packets to send 8, broken 7] [11:04:47]ProducePacketName [11:04:47]name=ofd_packets/00028887 [11:04:47]OFD Sender: To server: pG, [11:04:47]CommunicateWithHost lk.salyk.kg:30040 [11:04:47]ConnectInit lk.salyk.kg [11:04:47]written 0, free lines is 4095 [11:04:47]Connected sock=9 [11:04: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 31 35 34 0F 01 00 00 15 B0 07 01 A2 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 5E 00 00 00 F4 03 04 00 D1 66 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D7 70 00 00 35 04 06 00 9F 7A E0 9D 3D 54 40 AA C0 B7 54 16 EC 64 [11:04:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AF 60 47 00 52 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 31 35 34 10 04 04 00 D7 70 00 00 F4 03 04 00 79 11 1A 66 B6 04 01 00 00 BB 09 B2 E2 68 A7 5F C5 [11:04:47]CommunicateWithHost err = 0 [11:04:47]CheckOFDResponse [11:04:47]1017 (14) - 77093643461234 [11:04:47]1041 (16) - 0000000000963154 [11:04:47]1040 (4) - 28887 [11:04:47]1012 (4) - 13.04.2024 05:00 [11:04:47]1206 (1) - 0 [11:04:47]OFD Sender: Remove packet 28887 [11:04:47]ProducePacketName [11:04:47]name=ofd_packets/00028887 [11:04:47]NVStorageDeleteData [11:04:48]Write to MH i2c: 01 00 00 81 32 B3 [11:04:48]Write i2c OK [11:04:48]MH_I2C_Read... [11:04:48]Read from MH i2c: 01 [11:04:48]MH_I2C_Read... [11:04:48]Read from MH i2c: 01 07 00 [11:04:48]MH_I2C_Read... [11:04:48]Read from MH i2c: 01 07 00 81 32 00 00 00 00 00 BC 0C 82 [11:04:48]RasterBufferAndPrint [11:04:48]line [11:04:48]line [11:04:48]line [11:04:48]line [11:04:48]line [11:04:48]written 0, free lines is 3265 [11:04:48]MH_Cut [11:04:48]Write to MH i2c: D1 01 00 88 32 01 8C [11:04:48]Write i2c OK [11:04:48]MH_I2C_Read... [11:04:48]Read from MH i2c: D1 [11:04:48]MH_I2C_Read... [11:04:48]Read from MH i2c: D1 01 00 [11:04:48]MH_I2C_Read... [11:04:48]Read from MH i2c: D1 01 00 88 32 00 8B [11:04:48]Write to MH i2c: 01 00 00 89 32 BB [11:04:48]Write i2c OK [11:04:48]MH_I2C_Read... [11:04:48]OFD Sender: No OFD packet to send [11:04:48]*** Cut start [11:04:48]*** Partial cut [11:04:48]*** CUTSNS_PIN = 1 [11:04:48]*** CUTSNS_PIN = 0 [11:04:49]*** Brake cut motor [11:04:49]Read from MH i2c: 01 [11:04:49]MH_I2C_Read... [11:04:49]*** Stop cut motor [11:04:49]*** Cut end [11:04:49]Read from MH i2c: 01 07 00 [11:04:49]MH_I2C_Read... [11:04:49]Read from MH i2c: 01 07 00 89 32 00 00 00 00 00 FF 0F D0 [11:04:49]process_action close_receipt done [11:04:49]requested_data is exist [11:04:49]produce_requested_data [11:04:49]requested_item fm.sn is exist - process it [11:04:49]wFMCommunicate request_size=4 [11:04:49]MH_SAM_APDU [11:04:49]CAPDU: 80 11 00 00 [11:04:49]Write to MH i2c: E2 08 00 8A 32 80 11 00 00 00 00 00 00 36 [11:04:49]Write i2c OK [11:04:49]MH_I2C_Read... [11:04:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:49]Read from MH i2c: E2 [11:04:49]MH_I2C_Read... [11:04:49]Read from MH i2c: E2 17 00 [11:04:49]MH_I2C_Read... [11:04:49]Read from MH i2c: E2 17 00 8A 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 85 [11:04:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:04:49]wFMCommunicate OK [11:04:49]requested_item fd.num is exist - process it [11:04:49]SAM_PROTO_GetFieldsCounters [11:04:49]wFMCommunicate request_size=4 [11:04:49]MH_SAM_APDU [11:04:49]CAPDU: 80 13 00 00 [11:04:49]Write to MH i2c: E2 08 00 8B 32 80 13 00 00 00 00 00 00 39 [11:04:49]Write i2c OK [11:04:49]MH_I2C_Read... [11:04:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:49]Read from MH i2c: E2 [11:04:49]MH_I2C_Read... [11:04:49]Read from MH i2c: E2 62 00 [11:04:49]MH_I2C_Read... [11:04:49]Read from MH i2c: E2 62 00 8B 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D7 70 00 00 0E 04 04 00 73 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 4B [11:04: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D7 70 00 00 0E 04 04 00 73 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 [11:04:49]wFMCommunicate OK [11:04:49]SAM_PROTO_GetFieldsCounters done [11:04:49]requested_item shift.num is exist - process it [11:04:49]requested_item shift.opened is exist - process it [11:04:49]req_shift_opened [11:04:49]FM_GetShiftState [11:04:49]SAM_PROTO_GetShiftState [11:04:49]wFMCommunicate request_size=4 [11:04:49]MH_SAM_APDU [11:04:49]CAPDU: 80 13 01 00 [11:04:49]Write to MH i2c: E2 08 00 8C 32 80 13 01 00 00 00 00 00 3B [11:04:49]Write i2c OK [11:04:49]MH_I2C_Read... [11:04:49]Read from MH i2c: E2 [11:04:49]MH_I2C_Read... [11:04:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:49]Read from MH i2c: E2 0E 00 [11:04:49]MH_I2C_Read... [11:04:49]Read from MH i2c: E2 0E 00 8C 32 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 54 [11:04:49]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:04:49]wFMCommunicate OK [11:04:49]SAM_PROTO_GetShiftState done [11:04:49]FM_GetShiftState done [11:04:49]req_shift_opened done [11:04:49]requested_item shift.open_date is exist - process it [11:04:49]req_shift_open_date [11:04:49]req_shift_open_date done [11:04:49]produce_requested_data done [11:04:49]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28887,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [11:04:49]process_action_free close_receipt [11:04:49]json_value_free [11:04:49]json_value_free done [11:04:49]process_json_proto returns [11:04:49]Send response to host [11:04:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28887,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [11:04:49]free response buf [11:04:49]execute_script done [11:04:49]execute_script returns [11:04:49]free content buf [11:04:49]Sock 10.Close socket [11:04:49]Sock 10.Thread stoped [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:35]accept exits with 7 [11:05:35]New connection [11:05:35]New thread 3066928484 created [11:05:35]Thread 3066785124 joined [11:05:35]Waiting for new connection... [11:05:35] Sock 7.Parse request [11:05:35]Sock 7.Check first char [11:05:35]Sock 7.First char is OK [11:05:35]request: POST /json_proto HTTP/1.0 [11:05:35]Method: POST [11:05:35]URL: /json_proto [11:05:35]Method is POST - this is cgi request [11:05:35]url: /json_proto [11:05:35]query_string will be loaded in cgi processing [11:05:35]execute_cgi json_proto POST (null) [11:05:35]execute_cgi path=json_proto method=POST [11:05:35]POST find Content-Length [11:05:35]Host: 172.17.33.3:8080 [11:05:35]Content-Length: 677 [11:05:35]Content-Type: application/json [11:05:35] [11:05:35]POST finish read [11:05:35]Found Content-Length = 677 [11:05:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "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:05:35]execute_script... [11:05: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)347241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "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:05:35]POST & json_proto [11:05:35]process_json_proto [11:05:35]json parsed OK: [11:05:35]protocol is kg_v1.0 [11:05:35]action value=close_receipt [11:05:35]process_action close_receipt [11:05:35]cmd_close_receipt [11:05:35]MH_GetDate [11:05:35]Write to MH i2c: F0 00 00 8D 32 AE [11:05:35]Write i2c OK [11:05:35]MH_I2C_Read... [11:05:35]Read from MH i2c: F0 [11:05:35]MH_I2C_Read... [11:05:35]Read from MH i2c: F0 09 00 [11:05:35]MH_I2C_Read... [11:05:35]Read from MH i2c: F0 09 00 8D 32 00 04 67 1A 66 23 5B 8F 65 14 [11:05:35]GetLastDocTimeStamp 1713006289 [11:05:35]current date 1713006340 [11:05:35]FM_GetShiftState [11:05:35]SAM_PROTO_GetShiftState [11:05:35]wFMCommunicate request_size=4 [11:05:35]MH_SAM_APDU [11:05:35]CAPDU: 80 13 01 00 [11:05:35]Write to MH i2c: E2 08 00 8E 32 80 13 01 00 00 00 00 00 3D [11:05:35]Write i2c OK [11:05:35]MH_I2C_Read... [11:05:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:35]Read from MH i2c: E2 [11:05:35]MH_I2C_Read... [11:05:35]Read from MH i2c: E2 0E 00 [11:05:35]MH_I2C_Read... [11:05:35]Read from MH i2c: E2 0E 00 8E 32 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 56 [11:05:35]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:05:35]wFMCommunicate OK [11:05:35]SAM_PROTO_GetShiftState done [11:05:35]FM_GetShiftState done [11:05:35]opened in 1712967615 [11:05:35]opened+sec_in_day 1713054015 [11:05:35]quantity*price = 50025 [11:05:35]sum+1 = 50026 [11:05:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 95 13.04.2024 11:05 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28888 ФПД: 10713647363438 1/tax-web-control/client/api/v1/ticket?date=20240413T110540&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28888&fm=10713647363438&tin=02508201610067®Number=0000138879044617&sum=50000 [11:05:37]StoreToDocumentArchive [11:05:37]shift 115 fd 28888 [11:05:37]save to /storage/0115/doc_00028888 [11:05:37]save last doc name /storage/0115/doc_00028888 to /storage/kkm_last_doc_name [11:05:37]save OK [11:05:37]Clear old archive folders... [11:05:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:05:37]tlvbuf is 011EE950 [11:05:37]SAM_PROTO_ClearQueue [11:05:37]wFMCommunicate request_size=4 [11:05:37]MH_SAM_APDU [11:05:37]CAPDU: 80 09 00 00 [11:05:37]Write to MH i2c: E2 08 00 9B 32 80 09 00 00 00 00 00 00 3F [11:05:37]Write i2c OK [11:05:37]MH_I2C_Read... [11:05:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:37]Read from MH i2c: E2 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 03 00 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 03 00 9B 32 00 90 00 41 [11:05:37]RAPDU: 90 00 [11:05:37]wFMCommunicate OK [11:05:37]SAM_PROTO_ClearQueue done [11:05:37]KKMCreateOFDPacket [11:05:37]OFDProtocolAddRootSTLVToBuf [11:05:37]FM_MakeSignedData [11:05:37]FM_MakeSignedData [11:05:37]SAM_PROTO_SignData [11:05:37]wFMCommunicate request_size=4 [11:05:37]MH_SAM_APDU [11:05:37]CAPDU: 80 0D 01 02 [11:05:37]Write to MH i2c: E2 08 00 9C 32 80 0D 01 02 00 00 00 00 47 [11:05:37]Write i2c OK [11:05:37]MH_I2C_Read... [11:05:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:37]Read from MH i2c: E2 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 03 00 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 03 00 9C 32 00 90 00 42 [11:05:37]RAPDU: 90 00 [11:05:37]wFMCommunicate OK [11:05:37]wFMCommunicate request_size=255 [11:05:37]MH_SAM_APDU [11:05: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 5F 00 00 00 F4 03 04 00 04 67 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D8 70 00 00 35 04 06 00 09 [11:05:37]Write to MH i2c: E2 02 01 9D 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 5F 00 00 00 F4 03 04 00 04 67 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D8 70 00 00 35 04 06 00 09 00 00 17 [11:05:37]Write i2c OK [11:05:37]MH_I2C_Read... [11:05:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:37]Read from MH i2c: E2 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 03 00 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 03 00 9D 32 00 90 00 43 [11:05:37]RAPDU: 90 00 [11:05:37]wFMCommunicate OK [11:05:37]wFMCommunicate request_size=10 [11:05:37]MH_SAM_APDU [11:05:37]CAPDU: 80 0D 02 02 05 BE 77 25 35 6E [11:05:37]Write to MH i2c: E2 0D 00 9E 32 80 0D 02 02 05 00 BE 77 25 35 6E 00 00 51 [11:05:37]Write i2c OK [11:05:37]MH_I2C_Read... [11:05:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:37]Read from MH i2c: E2 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 03 00 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 03 00 9E 32 00 90 00 44 [11:05:37]RAPDU: 90 00 [11:05:37]wFMCommunicate OK [11:05:37]wFMCommunicate request_size=4 [11:05:37]MH_SAM_APDU [11:05:37]CAPDU: 80 0D 03 02 [11:05:37]Write to MH i2c: E2 08 00 9F 32 80 0D 03 02 00 00 00 00 4C [11:05:37]Write i2c OK [11:05:37]MH_I2C_Read... [11:05:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:37]Read from MH i2c: E2 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 0B 00 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 0B 00 9F 32 00 D8 F0 BA BE 93 8D 5F C0 90 00 CC [11:05:37]RAPDU: D8 F0 BA BE 93 8D 5F C0 90 00 [11:05:37]wFMCommunicate OK [11:05:37]SAM_PROTO_SignData done [11:05:37]FM_MakeSignedData done [11:05:37]CreateOFDProtocolMessage [11:05:37]wFMCommunicate request_size=4 [11:05:37]MH_SAM_APDU [11:05:37]CAPDU: 80 11 00 00 [11:05:37]Write to MH i2c: E2 08 00 A0 32 80 11 00 00 00 00 00 00 4C [11:05:37]Write i2c OK [11:05:37]MH_I2C_Read... [11:05:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:37]Read from MH i2c: E2 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 17 00 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 17 00 A0 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9B [11:05:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:05:37]wFMCommunicate OK [11:05:37]CreateOFDProtocolMessage done [11:05:37]OFDSenderStorePacket 28888 [11:05:37]StoreOFDPacket docnum=28888 [11:05:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 79 02 07 01 CF BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 5F 00 00 00 F4 03 04 00 04 67 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D8 70 00 00 35 04 06 00 09 BE 77 25 35 6E D8 F0 BA BE 93 8D 5F C0 [11:05:37]CheckFolder [11:05:37]dirname=/storage/ofd_packets [11:05:37]CheckFolder done [11:05:37]ProducePacketName [11:05:37]name=ofd_packets/00028888 [11:05:37]NVStorageSaveData ofd_packets/00028888 [11:05:37]File name is /storage/ofd_packets/00028888 [11:05:37]Write 301 bytes [11:05:37]NVStorageSaveData done [11:05:37]OFDSenderStorePacket done [11:05:37]KKMCreateOFDPacket done [11:05:37]NVStorageSaveData kkm_last_timestamp [11:05:37]File name is /storage/kkm_last_timestamp [11:05:37]Write 4 bytes [11:05:37]NVStorageSaveData done [11:05:37]ExternCall_PrintAddStr [11:05:37]wPrintStart [11:05:37]Write to MH i2c: 01 00 00 A1 32 D3 [11:05:37]Write i2c OK [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: 01 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: 01 07 00 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: 01 07 00 A1 32 00 00 00 00 00 FF 0F E8 [11:05:37]RasterBufferAndPrint [11:05:37]line Счет N : (1)347241 [11:05:37]line ИНН: 02508201610067 [11:05:37]line Контрольно-Кассовый Чек [11:05:37]line ПРОДАЖА [11:05:37]line ТРК (МРК, ГНК) : 23 [11:05:37]line Товар: 2710124130 [11:05:37]line Аи-92-К-5 [11:05:37]line 7.780 * 64.30 [11:05:37]line = 500.25 [11:05:37]line НДС 12% НСП 1% [11:05:37]line > о реализуемом товаре [11:05:37]line ОКРУГЛЕНИЕ: -0.25 [11:05:37]line ИТОГО: 500.00 [11:05:37]line Внесено: 500.00 [11:05:37]line СДАЧА: 0.00 [11:05:37]line НСП 1% : 4.43 [11:05:37]line НДС 12% : 53.12 [11:05:37]line Наличными: 500.00 [11:05:37]line Безнал.: 0.00 [11:05:37]line Место: АЗС № 108 "Партнер Нефть" [11:05:37]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:05:37]line СНО: Общий режим [11:05:37]line Чек 95 13.04.2024 11:05 [11:05:37]line Смена: 115 ФФД: 1.0 [11:05:37]line ЗНМ: 0300000027 [11:05:37]line РНМ: 0000138879044617 [11:05:37]line Версия ККМ: 001 [11:05:37]line ФМ: 0000000000963154 [11:05:37]line ФД: 28888 [11:05:37]line ФПД: 10713647363438 [11:05:37]line 1/tax-web-control/client/api/v1/ticket?date=20240413T110540&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28888&fm=10713647363438&tin=02508201610067®Number=0000138879044617&sum=50000 [11:05:37]OFD Sender: Processing packet 28888 [packets to send 8, broken 7] [11:05:37]ProducePacketName [11:05:37]name=ofd_packets/00028888 [11:05:37]OFD Sender: To server: pG, [11:05:37]CommunicateWithHost lk.salyk.kg:30040 [11:05:37]ConnectInit lk.salyk.kg [11:05:37]written 0, free lines is 4095 [11:05:38]Connected sock=10 [11:05: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 31 35 34 0F 01 00 00 79 02 07 01 CF BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 5F 00 00 00 F4 03 04 00 04 67 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D8 70 00 00 35 04 06 00 09 BE 77 25 35 6E D8 F0 BA BE 93 8D 5F C0 [11:05:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F2 C1 47 00 3E 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 31 35 34 10 04 04 00 D8 70 00 00 F4 03 04 00 AB 11 1A 66 B6 04 01 00 00 EF 4F AA 18 AB 18 B8 2C [11:05:38]CommunicateWithHost err = 0 [11:05:38]CheckOFDResponse [11:05:38]1017 (14) - 77093643461234 [11:05:38]1041 (16) - 0000000000963154 [11:05:38]1040 (4) - 28888 [11:05:38]1012 (4) - 13.04.2024 05:01 [11:05:38]1206 (1) - 0 [11:05:38]OFD Sender: Remove packet 28888 [11:05:38]ProducePacketName [11:05:38]name=ofd_packets/00028888 [11:05:38]NVStorageDeleteData [11:05:38]Write to MH i2c: 01 00 00 CB 32 FD [11:05:38]Write i2c OK [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: 01 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: 01 07 00 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: 01 07 00 CB 32 00 00 00 00 00 C0 0C D0 [11:05:38]RasterBufferAndPrint [11:05:38]line [11:05:38]line [11:05:38]line [11:05:38]line [11:05:38]line [11:05:38]written 0, free lines is 3267 [11:05:38]MH_Cut [11:05:38]Write to MH i2c: D1 01 00 D2 32 01 D6 [11:05:38]Write i2c OK [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: D1 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: D1 01 00 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: D1 01 00 D2 32 00 D5 [11:05:38]Write to MH i2c: 01 00 00 D3 32 05 [11:05:38]Write i2c OK [11:05:38]MH_I2C_Read... [11:05:38]OFD Sender: No OFD packet to send [11:05:39]*** Cut start [11:05:39]*** Partial cut [11:05:39]*** CUTSNS_PIN = 1 [11:05:39]*** CUTSNS_PIN = 0 [11:05:39]*** Brake cut motor [11:05:39]Read from MH i2c: 01 [11:05:39]MH_I2C_Read... [11:05:39]*** Stop cut motor [11:05:39]*** Cut end [11:05:39]Read from MH i2c: 01 07 00 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: 01 07 00 D3 32 00 00 00 00 00 FF 0F 1A [11:05:39]process_action close_receipt done [11:05:39]requested_data is exist [11:05:39]produce_requested_data [11:05:39]requested_item fm.sn is exist - process it [11:05:39]wFMCommunicate request_size=4 [11:05:39]MH_SAM_APDU [11:05:39]CAPDU: 80 11 00 00 [11:05:39]Write to MH i2c: E2 08 00 D4 32 80 11 00 00 00 00 00 00 80 [11:05:39]Write i2c OK [11:05:39]MH_I2C_Read... [11:05:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:39]Read from MH i2c: E2 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 17 00 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 17 00 D4 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CF [11:05:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:05:39]wFMCommunicate OK [11:05:39]requested_item fd.num is exist - process it [11:05:39]SAM_PROTO_GetFieldsCounters [11:05:39]wFMCommunicate request_size=4 [11:05:39]MH_SAM_APDU [11:05:39]CAPDU: 80 13 00 00 [11:05:39]Write to MH i2c: E2 08 00 D5 32 80 13 00 00 00 00 00 00 83 [11:05:39]Write i2c OK [11:05:39]MH_I2C_Read... [11:05:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:40]Read from MH i2c: E2 [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: E2 62 00 [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: E2 62 00 D5 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D8 70 00 00 0E 04 04 00 73 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 99 [11:05: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D8 70 00 00 0E 04 04 00 73 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 [11:05:40]wFMCommunicate OK [11:05:40]SAM_PROTO_GetFieldsCounters done [11:05:40]requested_item shift.num is exist - process it [11:05:40]requested_item shift.opened is exist - process it [11:05:40]req_shift_opened [11:05:40]FM_GetShiftState [11:05:40]SAM_PROTO_GetShiftState [11:05:40]wFMCommunicate request_size=4 [11:05:40]MH_SAM_APDU [11:05:40]CAPDU: 80 13 01 00 [11:05:40]Write to MH i2c: E2 08 00 D6 32 80 13 01 00 00 00 00 00 85 [11:05:40]Write i2c OK [11:05:40]MH_I2C_Read... [11:05:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:40]Read from MH i2c: E2 [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: E2 0E 00 [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: E2 0E 00 D6 32 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 9E [11:05:40]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:05:40]wFMCommunicate OK [11:05:40]SAM_PROTO_GetShiftState done [11:05:40]FM_GetShiftState done [11:05:40]req_shift_opened done [11:05:40]requested_item shift.open_date is exist - process it [11:05:40]req_shift_open_date [11:05:40]req_shift_open_date done [11:05:40]produce_requested_data done [11:05:40]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28888,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [11:05:40]process_action_free close_receipt [11:05:40]json_value_free [11:05:40]json_value_free done [11:05:40]process_json_proto returns [11:05:40]Send response to host [11:05:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28888,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [11:05:40]free response buf [11:05:40]execute_script done [11:05:40]execute_script returns [11:05:40]free content buf [11:05:40]Sock 7.Close socket [11:05:40]Sock 7.Thread stoped [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]accept exits with 9 [11:06:58]New connection [11:06:58]New thread 3066785124 created [11:06:58]Thread 3066928484 joined [11:06:58]Waiting for new connection... [11:06:58] Sock 9.Parse request [11:06:58]Sock 9.Check first char [11:06:58]Sock 9.First char is OK [11:06:58]request: POST /json_proto HTTP/1.0 [11:06:58]Method: POST [11:06:58]URL: /json_proto [11:06:58]Method is POST - this is cgi request [11:06:58]url: /json_proto [11:06:58]query_string will be loaded in cgi processing [11:06:58]execute_cgi json_proto POST (null) [11:06:58]execute_cgi path=json_proto method=POST [11:06:58]POST find Content-Length [11:06:58]Host: 172.17.33.3:8080 [11:06:58]Content-Length: 677 [11:06:58]Content-Type: application/json [11:06:58] [11:06:58]POST finish read [11:06:58]Found Content-Length = 677 [11:06:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347242", "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" : 64.30, "quantity" : 7.780, "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:06:58]execute_script... [11:06:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347242", "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" : 64.30, "quantity" : 7.780, "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:06:58]POST & json_proto [11:06:58]process_json_proto [11:06:58]json parsed OK: [11:06:58]protocol is kg_v1.0 [11:06:58]action value=close_receipt [11:06:58]process_action close_receipt [11:06:58]cmd_close_receipt [11:06:58]MH_GetDate [11:06:58]Write to MH i2c: F0 00 00 D7 32 F8 [11:06:58]Write i2c OK [11:06:58]MH_I2C_Read... [11:06:58]Read from MH i2c: F0 [11:06:58]MH_I2C_Read... [11:06:58]Read from MH i2c: F0 09 00 [11:06:58]MH_I2C_Read... [11:06:58]Read from MH i2c: F0 09 00 D7 32 00 56 67 1A 66 23 5B 8F 65 B0 [11:06:58]GetLastDocTimeStamp 1713006340 [11:06:58]current date 1713006422 [11:06:58]FM_GetShiftState [11:06:58]SAM_PROTO_GetShiftState [11:06:58]wFMCommunicate request_size=4 [11:06:58]MH_SAM_APDU [11:06:58]CAPDU: 80 13 01 00 [11:06:58]Write to MH i2c: E2 08 00 D8 32 80 13 01 00 00 00 00 00 87 [11:06:58]Write i2c OK [11:06:58]MH_I2C_Read... [11:06:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:58]Read from MH i2c: E2 [11:06:58]MH_I2C_Read... [11:06:58]Read from MH i2c: E2 0E 00 [11:06:58]MH_I2C_Read... [11:06:58]Read from MH i2c: E2 0E 00 D8 32 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A0 [11:06:58]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:06:58]wFMCommunicate OK [11:06:58]SAM_PROTO_GetShiftState done [11:06:58]FM_GetShiftState done [11:06:58]opened in 1712967615 [11:06:58]opened+sec_in_day 1713054015 [11:06:58]quantity*price = 50025 [11:06:58]sum+1 = 50026 [11:06:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 96 13.04.2024 11:07 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28889 ФПД: 74110698477600 1/tax-web-control/client/api/v1/ticket?date=20240413T110702&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28889&fm=74110698477600&tin=02508201610067®Number=0000138879044617&sum=50000 [11:06:59]StoreToDocumentArchive [11:06:59]shift 115 fd 28889 [11:06:59]save to /storage/0115/doc_00028889 [11:06:59]save last doc name /storage/0115/doc_00028889 to /storage/kkm_last_doc_name [11:06:59]save OK [11:06:59]Clear old archive folders... [11:06:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:06:59]tlvbuf is 01284500 [11:06:59]SAM_PROTO_ClearQueue [11:06:59]wFMCommunicate request_size=4 [11:06:59]MH_SAM_APDU [11:06:59]CAPDU: 80 09 00 00 [11:06:59]Write to MH i2c: E2 08 00 E5 32 80 09 00 00 00 00 00 00 89 [11:06:59]Write i2c OK [11:06:59]MH_I2C_Read... [11:06:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:59]Read from MH i2c: E2 [11:06:59]MH_I2C_Read... [11:06:59]Read from MH i2c: E2 03 00 [11:06:59]MH_I2C_Read... [11:06:59]Read from MH i2c: E2 03 00 E5 32 00 90 00 8B [11:06:59]RAPDU: 90 00 [11:06:59]wFMCommunicate OK [11:06:59]SAM_PROTO_ClearQueue done [11:06:59]KKMCreateOFDPacket [11:06:59]OFDProtocolAddRootSTLVToBuf [11:06:59]FM_MakeSignedData [11:06:59]FM_MakeSignedData [11:06:59]SAM_PROTO_SignData [11:06:59]wFMCommunicate request_size=4 [11:06:59]MH_SAM_APDU [11:06:59]CAPDU: 80 0D 01 02 [11:06:59]Write to MH i2c: E2 08 00 E6 32 80 0D 01 02 00 00 00 00 91 [11:06:59]Write i2c OK [11:06:59]MH_I2C_Read... [11:06:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:59]Read from MH i2c: E2 [11:06:59]MH_I2C_Read... [11:06:59]Read from MH i2c: E2 03 00 [11:06:59]MH_I2C_Read... [11:06:59]Read from MH i2c: E2 03 00 E6 32 00 90 00 8C [11:06:59]RAPDU: 90 00 [11:06:59]wFMCommunicate OK [11:06:59]wFMCommunicate request_size=255 [11:06:59]MH_SAM_APDU [11:06:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 60 00 00 00 F4 03 04 00 56 67 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D9 70 00 00 35 04 06 00 43 [11:06:59]Write to MH i2c: E2 02 01 E7 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 60 00 00 00 F4 03 04 00 56 67 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D9 70 00 00 35 04 06 00 43 00 00 EF [11:06:59]Write i2c OK [11:06:59]MH_I2C_Read... [11:07:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:00]Read from MH i2c: E2 [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: E2 03 00 [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: E2 03 00 E7 32 00 90 00 8D [11:07:00]RAPDU: 90 00 [11:07:00]wFMCommunicate OK [11:07:00]wFMCommunicate request_size=10 [11:07:00]MH_SAM_APDU [11:07:00]CAPDU: 80 0D 02 02 05 67 3D DB 58 20 [11:07:00]Write to MH i2c: E2 0D 00 E8 32 80 0D 02 02 05 00 67 3D DB 58 20 00 00 95 [11:07:00]Write i2c OK [11:07:00]MH_I2C_Read... [11:07:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:00]Read from MH i2c: E2 [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: E2 03 00 [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: E2 03 00 E8 32 00 90 00 8E [11:07:00]RAPDU: 90 00 [11:07:00]wFMCommunicate OK [11:07:00]wFMCommunicate request_size=4 [11:07:00]MH_SAM_APDU [11:07:00]CAPDU: 80 0D 03 02 [11:07:00]Write to MH i2c: E2 08 00 E9 32 80 0D 03 02 00 00 00 00 96 [11:07:00]Write i2c OK [11:07:00]MH_I2C_Read... [11:07:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:00]Read from MH i2c: E2 [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: E2 0B 00 [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: E2 0B 00 E9 32 00 D1 61 39 14 98 50 42 FC 90 00 3C [11:07:00]RAPDU: D1 61 39 14 98 50 42 FC 90 00 [11:07:00]wFMCommunicate OK [11:07:00]SAM_PROTO_SignData done [11:07:00]FM_MakeSignedData done [11:07:00]CreateOFDProtocolMessage [11:07:00]wFMCommunicate request_size=4 [11:07:00]MH_SAM_APDU [11:07:00]CAPDU: 80 11 00 00 [11:07:00]Write to MH i2c: E2 08 00 EA 32 80 11 00 00 00 00 00 00 96 [11:07:00]Write i2c OK [11:07:00]MH_I2C_Read... [11:07:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:00]Read from MH i2c: E2 [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: E2 17 00 [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: E2 17 00 EA 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E5 [11:07:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:07:00]wFMCommunicate OK [11:07:00]CreateOFDProtocolMessage done [11:07:00]OFDSenderStorePacket 28889 [11:07:00]StoreOFDPacket docnum=28889 [11:07:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F4 DA 07 01 99 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 60 00 00 00 F4 03 04 00 56 67 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D9 70 00 00 35 04 06 00 43 67 3D DB 58 20 D1 61 39 14 98 50 42 FC [11:07:00]CheckFolder [11:07:00]dirname=/storage/ofd_packets [11:07:00]CheckFolder done [11:07:00]ProducePacketName [11:07:00]name=ofd_packets/00028889 [11:07:00]NVStorageSaveData ofd_packets/00028889 [11:07:00]File name is /storage/ofd_packets/00028889 [11:07:00]Write 301 bytes [11:07:00]NVStorageSaveData done [11:07:00]OFDSenderStorePacket done [11:07:00]KKMCreateOFDPacket done [11:07:00]NVStorageSaveData kkm_last_timestamp [11:07:00]File name is /storage/kkm_last_timestamp [11:07:00]Write 4 bytes [11:07:00]NVStorageSaveData done [11:07:00]ExternCall_PrintAddStr [11:07:00]wPrintStart [11:07:00]Write to MH i2c: 01 00 00 EB 32 1D [11:07:00]Write i2c OK [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: 01 [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: 01 07 00 [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: 01 07 00 EB 32 00 00 00 00 00 FF 0F 32 [11:07:00]RasterBufferAndPrint [11:07:00]line Счет N : (1)347242 [11:07:00]line ИНН: 02508201610067 [11:07:00]line Контрольно-Кассовый Чек [11:07:00]line ПРОДАЖА [11:07:00]line ТРК (МРК, ГНК) : 42 [11:07:00]line Товар: 2710124130 [11:07:00]line Аи-92-К-5 [11:07:00]line 7.780 * 64.30 [11:07:00]line = 500.25 [11:07:00]line НДС 12% НСП 1% [11:07:00]line > о реализуемом товаре [11:07:00]line ОКРУГЛЕНИЕ: -0.25 [11:07:00]line ИТОГО: 500.00 [11:07:00]line Внесено: 500.00 [11:07:00]line СДАЧА: 0.00 [11:07:00]line НСП 1% : 4.43 [11:07:00]line НДС 12% : 53.12 [11:07:00]line Наличными: 500.00 [11:07:00]line Безнал.: 0.00 [11:07:00]line Место: АЗС № 108 "Партнер Нефть" [11:07:00]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:07:00]line СНО: Общий режим [11:07:00]line Чек 96 13.04.2024 11:07 [11:07:00]line Смена: 115 ФФД: 1.0 [11:07:00]line ЗНМ: 0300000027 [11:07:00]line РНМ: 0000138879044617 [11:07:00]line Версия ККМ: 001 [11:07:00]line ФМ: 0000000000963154 [11:07:00]line ФД: 28889 [11:07:00]line ФПД: 74110698477600 [11:07:00]line 1/tax-web-control/client/api/v1/ticket?date=20240413T110702&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28889&fm=74110698477600&tin=02508201610067®Number=0000138879044617&sum=50000 [11:07:00]OFD Sender: Processing packet 28889 [packets to send 8, broken 7] [11:07:00]ProducePacketName [11:07:00]name=ofd_packets/00028889 [11:07:00]OFD Sender: To server: pG, [11:07:00]CommunicateWithHost lk.salyk.kg:30040 [11:07:00]ConnectInit lk.salyk.kg [11:07:00]written 0, free lines is 4095 [11:07:00]Connected sock=10 [11:07: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 31 35 34 0F 01 00 00 F4 DA 07 01 99 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 60 00 00 00 F4 03 04 00 56 67 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 D9 70 00 00 35 04 06 00 43 67 3D DB 58 20 D1 61 39 14 98 50 42 FC [11:07:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 78 1E 47 00 D0 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 31 35 34 10 04 04 00 D9 70 00 00 F4 03 04 00 FE 11 1A 66 B6 04 01 00 00 50 EA 1E BB 66 DA D3 75 [11:07:00]CommunicateWithHost err = 0 [11:07:00]CheckOFDResponse [11:07:00]1017 (14) - 77093643461234 [11:07:00]1041 (16) - 0000000000963154 [11:07:00]1040 (4) - 28889 [11:07:00]1012 (4) - 13.04.2024 05:02 [11:07:00]1206 (1) - 0 [11:07:00]OFD Sender: Remove packet 28889 [11:07:00]ProducePacketName [11:07:00]name=ofd_packets/00028889 [11:07:00]NVStorageDeleteData [11:07:00]Write to MH i2c: 01 00 00 15 33 48 [11:07:00]Write i2c OK [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: 01 [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: 01 07 00 [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: 01 07 00 15 33 00 00 00 00 00 BD 0C 18 [11:07:00]RasterBufferAndPrint [11:07:00]line [11:07:00]line [11:07:00]line [11:07:00]line [11:07:00]line [11:07:00]written 0, free lines is 3267 [11:07:00]MH_Cut [11:07:00]Write to MH i2c: D1 01 00 1C 33 01 21 [11:07:00]Write i2c OK [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: D1 [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: D1 01 00 [11:07:00]MH_I2C_Read... [11:07:00]Read from MH i2c: D1 01 00 1C 33 00 20 [11:07:00]Write to MH i2c: 01 00 00 1D 33 50 [11:07:00]Write i2c OK [11:07:00]MH_I2C_Read... [11:07:01]OFD Sender: No OFD packet to send [11:07:01]*** Cut start [11:07:01]*** Partial cut [11:07:01]*** CUTSNS_PIN = 1 [11:07:01]*** CUTSNS_PIN = 0 [11:07:02]*** Brake cut motor [11:07:02]Read from MH i2c: 01 [11:07:02]MH_I2C_Read... [11:07:02]*** Stop cut motor [11:07:02]*** Cut end [11:07:02]Read from MH i2c: 01 07 00 [11:07:02]MH_I2C_Read... [11:07:02]Read from MH i2c: 01 07 00 1D 33 00 00 00 00 00 FF 0F 65 [11:07:02]process_action close_receipt done [11:07:02]requested_data is exist [11:07:02]produce_requested_data [11:07:02]requested_item fm.sn is exist - process it [11:07:02]wFMCommunicate request_size=4 [11:07:02]MH_SAM_APDU [11:07:02]CAPDU: 80 11 00 00 [11:07:02]Write to MH i2c: E2 08 00 1E 33 80 11 00 00 00 00 00 00 CB [11:07:02]Write i2c OK [11:07:02]MH_I2C_Read... [11:07:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:02]Read from MH i2c: E2 [11:07:02]MH_I2C_Read... [11:07:02]Read from MH i2c: E2 17 00 [11:07:02]MH_I2C_Read... [11:07:02]Read from MH i2c: E2 17 00 1E 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1A [11:07:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:07:02]wFMCommunicate OK [11:07:02]requested_item fd.num is exist - process it [11:07:02]SAM_PROTO_GetFieldsCounters [11:07:02]wFMCommunicate request_size=4 [11:07:02]MH_SAM_APDU [11:07:02]CAPDU: 80 13 00 00 [11:07:02]Write to MH i2c: E2 08 00 1F 33 80 13 00 00 00 00 00 00 CE [11:07:02]Write i2c OK [11:07:02]MH_I2C_Read... [11:07:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:02]Read from MH i2c: E2 [11:07:02]MH_I2C_Read... [11:07:02]Read from MH i2c: E2 62 00 [11:07:02]MH_I2C_Read... [11:07:02]Read from MH i2c: E2 62 00 1F 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D9 70 00 00 0E 04 04 00 73 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 E8 [11:07: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 D9 70 00 00 0E 04 04 00 73 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 [11:07:02]wFMCommunicate OK [11:07:02]SAM_PROTO_GetFieldsCounters done [11:07:02]requested_item shift.num is exist - process it [11:07:02]requested_item shift.opened is exist - process it [11:07:02]req_shift_opened [11:07:02]FM_GetShiftState [11:07:02]SAM_PROTO_GetShiftState [11:07:02]wFMCommunicate request_size=4 [11:07:02]MH_SAM_APDU [11:07:02]CAPDU: 80 13 01 00 [11:07:02]Write to MH i2c: E2 08 00 20 33 80 13 01 00 00 00 00 00 D0 [11:07:02]Write i2c OK [11:07:02]MH_I2C_Read... [11:07:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:02]Read from MH i2c: E2 [11:07:02]MH_I2C_Read... [11:07:02]Read from MH i2c: E2 0E 00 [11:07:02]MH_I2C_Read... [11:07:02]Read from MH i2c: E2 0E 00 20 33 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 E9 [11:07:02]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:07:02]wFMCommunicate OK [11:07:02]SAM_PROTO_GetShiftState done [11:07:02]FM_GetShiftState done [11:07:02]req_shift_opened done [11:07:02]requested_item shift.open_date is exist - process it [11:07:02]req_shift_open_date [11:07:02]req_shift_open_date done [11:07:02]produce_requested_data done [11:07:02]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28889,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [11:07:02]process_action_free close_receipt [11:07:02]json_value_free [11:07:02]json_value_free done [11:07:02]process_json_proto returns [11:07:02]Send response to host [11:07:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28889,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [11:07:02]free response buf [11:07:02]execute_script done [11:07:02]execute_script returns [11:07:02]free content buf [11:07:02]Sock 9.Close socket [11:07:02]Sock 9.Thread stoped [11:07:06]OFD Sender: No OFD packet to send [11:07:11]OFD Sender: No OFD packet to send [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:26]OFD Sender: No OFD packet to send [11:07:31]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:07:46]OFD Sender: No OFD packet to send [11:07:51]OFD Sender: No OFD packet to send [11:07:56]OFD Sender: No OFD packet to send [11:08:01]OFD Sender: No OFD packet to send [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:16]OFD Sender: No OFD packet to send [11:08:21]OFD Sender: No OFD packet to send [11:08:26]OFD Sender: No OFD packet to send [11:08:31]OFD Sender: No OFD packet to send [11:08:36]OFD Sender: No OFD packet to send [11:08:41]OFD Sender: No OFD packet to send [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:56]OFD Sender: No OFD packet to send [11:09:01]OFD Sender: No OFD packet to send [11:09:06]OFD Sender: No OFD packet to send [11:09:11]OFD Sender: No OFD packet to send [11:09:16]OFD Sender: No OFD packet to send [11:09:21]OFD Sender: No OFD packet to send [11:09:26]OFD Sender: No OFD packet to send [11:09:31]OFD Sender: No OFD packet to send [11:09:36]OFD Sender: No OFD packet to send [11:09:41]OFD Sender: No OFD packet to send [11:09:46]OFD Sender: No OFD packet to send [11:09:51]OFD Sender: No OFD packet to send [11:09:56]OFD Sender: No OFD packet to send [11:10:01]OFD Sender: No OFD packet to send [11:10:03]accept exits with 7 [11:10:03]New connection [11:10:03]New thread 3066928484 created [11:10:03]Thread 3066785124 joined [11:10:03]Waiting for new connection... [11:10:03] Sock 7.Parse request [11:10:03]Sock 7.Check first char [11:10:03]Sock 7.First char is OK [11:10:03]request: POST /json_proto HTTP/1.0 [11:10:03]Method: POST [11:10:03]URL: /json_proto [11:10:03]Method is POST - this is cgi request [11:10:03]url: /json_proto [11:10:03]query_string will be loaded in cgi processing [11:10:03]execute_cgi json_proto POST (null) [11:10:03]execute_cgi path=json_proto method=POST [11:10:03]POST find Content-Length [11:10:03]Host: 172.17.33.3:8080 [11:10:03]Content-Length: 677 [11:10:03]Content-Type: application/json [11:10:03] [11:10:03]POST finish read [11:10:03]Found Content-Length = 677 [11:10:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "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:10:03]execute_script... [11:10: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)347243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "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:10:03]POST & json_proto [11:10:03]process_json_proto [11:10:03]json parsed OK: [11:10:03]protocol is kg_v1.0 [11:10:03]action value=close_receipt [11:10:03]process_action close_receipt [11:10:03]cmd_close_receipt [11:10:03]MH_GetDate [11:10:03]Write to MH i2c: F0 00 00 21 33 43 [11:10:03]Write i2c OK [11:10:03]MH_I2C_Read... [11:10:03]Read from MH i2c: F0 [11:10:03]MH_I2C_Read... [11:10:03]Read from MH i2c: F0 09 00 [11:10:03]MH_I2C_Read... [11:10:03]Read from MH i2c: F0 09 00 21 33 00 0F 68 1A 66 23 5B 8F 65 B5 [11:10:03]GetLastDocTimeStamp 1713006422 [11:10:03]current date 1713006607 [11:10:03]FM_GetShiftState [11:10:03]SAM_PROTO_GetShiftState [11:10:03]wFMCommunicate request_size=4 [11:10:03]MH_SAM_APDU [11:10:03]CAPDU: 80 13 01 00 [11:10:03]Write to MH i2c: E2 08 00 22 33 80 13 01 00 00 00 00 00 D2 [11:10:03]Write i2c OK [11:10:03]MH_I2C_Read... [11:10:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:03]Read from MH i2c: E2 [11:10:03]MH_I2C_Read... [11:10:03]Read from MH i2c: E2 0E 00 [11:10:03]MH_I2C_Read... [11:10:03]Read from MH i2c: E2 0E 00 22 33 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 EB [11:10:03]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:10:03]wFMCommunicate OK [11:10:03]SAM_PROTO_GetShiftState done [11:10:03]FM_GetShiftState done [11:10:03]opened in 1712967615 [11:10:03]opened+sec_in_day 1713054015 [11:10:03]quantity*price = 50025 [11:10:03]sum+1 = 50026 [11:10:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 97 13.04.2024 11:10 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28890 ФПД: 168180979036361 1/tax-web-control/client/api/v1/ticket?date=20240413T111007&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28890&fm=168180979036361&tin=02508201610067®Number=0000138879044617&sum=50000 [11:10:04]StoreToDocumentArchive [11:10:04]shift 115 fd 28890 [11:10:04]save to /storage/0115/doc_00028890 [11:10:04]save last doc name /storage/0115/doc_00028890 to /storage/kkm_last_doc_name [11:10:04]save OK [11:10:04]Clear old archive folders... [11:10:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:04]tlvbuf is 0121FD50 [11:10:04]SAM_PROTO_ClearQueue [11:10:04]wFMCommunicate request_size=4 [11:10:04]MH_SAM_APDU [11:10:04]CAPDU: 80 09 00 00 [11:10:04]Write to MH i2c: E2 08 00 2F 33 80 09 00 00 00 00 00 00 D4 [11:10:04]Write i2c OK [11:10:04]MH_I2C_Read... [11:10:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:04]Read from MH i2c: E2 [11:10:04]MH_I2C_Read... [11:10:04]Read from MH i2c: E2 03 00 [11:10:04]MH_I2C_Read... [11:10:04]Read from MH i2c: E2 03 00 2F 33 00 90 00 D6 [11:10:04]RAPDU: 90 00 [11:10:04]wFMCommunicate OK [11:10:04]SAM_PROTO_ClearQueue done [11:10:04]KKMCreateOFDPacket [11:10:04]OFDProtocolAddRootSTLVToBuf [11:10:04]FM_MakeSignedData [11:10:04]FM_MakeSignedData [11:10:04]SAM_PROTO_SignData [11:10:04]wFMCommunicate request_size=4 [11:10:04]MH_SAM_APDU [11:10:04]CAPDU: 80 0D 01 02 [11:10:04]Write to MH i2c: E2 08 00 30 33 80 0D 01 02 00 00 00 00 DC [11:10:04]Write i2c OK [11:10:04]MH_I2C_Read... [11:10:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:04]Read from MH i2c: E2 [11:10:04]MH_I2C_Read... [11:10:04]Read from MH i2c: E2 03 00 [11:10:04]MH_I2C_Read... [11:10:04]Read from MH i2c: E2 03 00 30 33 00 90 00 D7 [11:10:04]RAPDU: 90 00 [11:10:04]wFMCommunicate OK [11:10:04]wFMCommunicate request_size=255 [11:10:04]MH_SAM_APDU [11:10: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 61 00 00 00 F4 03 04 00 0F 68 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DA 70 00 00 35 04 06 00 98 [11:10:04]Write to MH i2c: E2 02 01 31 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 61 00 00 00 F4 03 04 00 0F 68 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DA 70 00 00 35 04 06 00 98 00 00 4B [11:10:04]Write i2c OK [11:10:04]MH_I2C_Read... [11:10:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:04]Read from MH i2c: E2 [11:10:04]MH_I2C_Read... [11:10:04]Read from MH i2c: E2 03 00 [11:10:04]MH_I2C_Read... [11:10:04]Read from MH i2c: E2 03 00 31 33 00 90 00 D8 [11:10:04]RAPDU: 90 00 [11:10:04]wFMCommunicate OK [11:10:04]wFMCommunicate request_size=10 [11:10:04]MH_SAM_APDU [11:10:04]CAPDU: 80 0D 02 02 05 F5 AF 83 70 C9 [11:10:04]Write to MH i2c: E2 0D 00 32 33 80 0D 02 02 05 00 F5 AF 83 70 C9 00 00 49 [11:10:04]Write i2c OK [11:10:04]MH_I2C_Read... [11:10:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:04]Read from MH i2c: E2 [11:10:04]MH_I2C_Read... [11:10:04]Read from MH i2c: E2 03 00 [11:10:04]MH_I2C_Read... [11:10:04]Read from MH i2c: E2 03 00 32 33 00 90 00 D9 [11:10:04]RAPDU: 90 00 [11:10:04]wFMCommunicate OK [11:10:04]wFMCommunicate request_size=4 [11:10:04]MH_SAM_APDU [11:10:04]CAPDU: 80 0D 03 02 [11:10:04]Write to MH i2c: E2 08 00 33 33 80 0D 03 02 00 00 00 00 E1 [11:10:04]Write i2c OK [11:10:04]MH_I2C_Read... [11:10:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:04]Read from MH i2c: E2 [11:10:04]MH_I2C_Read... [11:10:04]Read from MH i2c: E2 0B 00 [11:10:04]MH_I2C_Read... [11:10:04]Read from MH i2c: E2 0B 00 33 33 00 A4 08 82 E4 08 BE 99 F2 90 00 45 [11:10:04]RAPDU: A4 08 82 E4 08 BE 99 F2 90 00 [11:10:04]wFMCommunicate OK [11:10:04]SAM_PROTO_SignData done [11:10:04]FM_MakeSignedData done [11:10:04]CreateOFDProtocolMessage [11:10:04]wFMCommunicate request_size=4 [11:10:04]MH_SAM_APDU [11:10:04]CAPDU: 80 11 00 00 [11:10:04]Write to MH i2c: E2 08 00 34 33 80 11 00 00 00 00 00 00 E1 [11:10:04]Write i2c OK [11:10:04]MH_I2C_Read... [11:10:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:04]Read from MH i2c: E2 [11:10:04]MH_I2C_Read... [11:10:04]Read from MH i2c: E2 17 00 [11:10:04]MH_I2C_Read... [11:10:04]Read from MH i2c: E2 17 00 34 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 30 [11:10:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:10:04]wFMCommunicate OK [11:10:04]CreateOFDProtocolMessage done [11:10:04]OFDSenderStorePacket 28890 [11:10:04]StoreOFDPacket docnum=28890 [11:10:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A6 BD 07 01 43 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 61 00 00 00 F4 03 04 00 0F 68 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DA 70 00 00 35 04 06 00 98 F5 AF 83 70 C9 A4 08 82 E4 08 BE 99 F2 [11:10:04]CheckFolder [11:10:04]dirname=/storage/ofd_packets [11:10:04]CheckFolder done [11:10:04]ProducePacketName [11:10:04]name=ofd_packets/00028890 [11:10:04]NVStorageSaveData ofd_packets/00028890 [11:10:04]File name is /storage/ofd_packets/00028890 [11:10:04]Write 301 bytes [11:10:04]NVStorageSaveData done [11:10:04]OFDSenderStorePacket done [11:10:04]KKMCreateOFDPacket done [11:10:04]NVStorageSaveData kkm_last_timestamp [11:10:04]File name is /storage/kkm_last_timestamp [11:10:04]Write 4 bytes [11:10:04]NVStorageSaveData done [11:10:04]ExternCall_PrintAddStr [11:10:04]wPrintStart [11:10:04]Write to MH i2c: 01 00 00 35 33 68 [11:10:04]Write i2c OK [11:10:04]MH_I2C_Read... [11:10:04]Read from MH i2c: 01 [11:10:04]MH_I2C_Read... [11:10:04]Read from MH i2c: 01 07 00 [11:10:04]MH_I2C_Read... [11:10:04]Read from MH i2c: 01 07 00 35 33 00 00 00 00 00 FF 0F 7D [11:10:04]RasterBufferAndPrint [11:10:04]line Счет N : (1)347243 [11:10:04]line ИНН: 02508201610067 [11:10:04]line Контрольно-Кассовый Чек [11:10:04]line ПРОДАЖА [11:10:04]line ТРК (МРК, ГНК) : 13 [11:10:04]line Товар: 2710124130 [11:10:04]line Аи-92-К-5 [11:10:04]line 7.780 * 64.30 [11:10:04]line = 500.25 [11:10:04]line НДС 12% НСП 1% [11:10:04]line > о реализуемом товаре [11:10:04]line ОКРУГЛЕНИЕ: -0.25 [11:10:04]line ИТОГО: 500.00 [11:10:04]line Внесено: 500.00 [11:10:04]line СДАЧА: 0.00 [11:10:04]line НСП 1% : 4.43 [11:10:04]line НДС 12% : 53.12 [11:10:04]line Наличными: 500.00 [11:10:04]line Безнал.: 0.00 [11:10:04]line Место: АЗС № 108 "Партнер Нефть" [11:10:04]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:10:04]line СНО: Общий режим [11:10:04]line Чек 97 13.04.2024 11:10 [11:10:04]line Смена: 115 ФФД: 1.0 [11:10:04]line ЗНМ: 0300000027 [11:10:04]line РНМ: 0000138879044617 [11:10:04]line Версия ККМ: 001 [11:10:04]line ФМ: 0000000000963154 [11:10:04]line ФД: 28890 [11:10:04]line ФПД: 168180979036361 [11:10:04]line 1/tax-web-control/client/api/v1/ticket?date=20240413T111007&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28890&fm=168180979036361&tin=02508201610067®Number=0000138879044617&sum=50000 [11:10:05]OFD Sender: Processing packet 28890 [packets to send 8, broken 7] [11:10:05]ProducePacketName [11:10:05]name=ofd_packets/00028890 [11:10:05]OFD Sender: To server: pG, [11:10:05]CommunicateWithHost lk.salyk.kg:30040 [11:10:05]ConnectInit lk.salyk.kg [11:10:05]written 0, free lines is 4095 [11:10:05]Connected sock=10 [11:10: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 31 35 34 0F 01 00 00 A6 BD 07 01 43 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 61 00 00 00 F4 03 04 00 0F 68 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DA 70 00 00 35 04 06 00 98 F5 AF 83 70 C9 A4 08 82 E4 08 BE 99 F2 [11:10:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 5F 39 47 00 C4 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 31 35 34 10 04 04 00 DA 70 00 00 F4 03 04 00 B6 12 1A 66 B6 04 01 00 00 8B 40 F9 0C 0B 77 D7 AC [11:10:05]CommunicateWithHost err = 0 [11:10:05]CheckOFDResponse [11:10:05]1017 (14) - 77093643461234 [11:10:05]1041 (16) - 0000000000963154 [11:10:05]1040 (4) - 28890 [11:10:05]1012 (4) - 13.04.2024 05:05 [11:10:05]1206 (1) - 0 [11:10:05]OFD Sender: Remove packet 28890 [11:10:05]ProducePacketName [11:10:05]name=ofd_packets/00028890 [11:10:05]NVStorageDeleteData [11:10:05]Write to MH i2c: 01 00 00 5F 33 92 [11:10:05]Write i2c OK [11:10:05]MH_I2C_Read... [11:10:05]Read from MH i2c: 01 [11:10:05]MH_I2C_Read... [11:10:05]Read from MH i2c: 01 07 00 [11:10:05]MH_I2C_Read... [11:10:05]Read from MH i2c: 01 07 00 5F 33 00 00 00 00 00 D9 0C 7E [11:10:05]RasterBufferAndPrint [11:10:05]line [11:10:05]line [11:10:05]line [11:10:05]line [11:10:05]line [11:10:05]written 0, free lines is 3294 [11:10:05]MH_Cut [11:10:05]Write to MH i2c: D1 01 00 66 33 01 6B [11:10:05]Write i2c OK [11:10:05]MH_I2C_Read... [11:10:05]Read from MH i2c: D1 [11:10:05]MH_I2C_Read... [11:10:05]Read from MH i2c: D1 01 00 [11:10:05]MH_I2C_Read... [11:10:05]Read from MH i2c: D1 01 00 66 33 00 6A [11:10:05]Write to MH i2c: 01 00 00 67 33 9A [11:10:05]Write i2c OK [11:10:05]MH_I2C_Read... [11:10:06]OFD Sender: No OFD packet to send [11:10:06]*** Cut start [11:10:06]*** Partial cut [11:10:06]*** CUTSNS_PIN = 1 [11:10:06]*** CUTSNS_PIN = 0 [11:10:06]*** Brake cut motor [11:10:07]Read from MH i2c: 01 [11:10:07]MH_I2C_Read... [11:10:07]*** Stop cut motor [11:10:07]*** Cut end [11:10:07]Read from MH i2c: 01 07 00 [11:10:07]MH_I2C_Read... [11:10:07]Read from MH i2c: 01 07 00 67 33 00 00 00 00 00 FF 0F AF [11:10:07]process_action close_receipt done [11:10:07]requested_data is exist [11:10:07]produce_requested_data [11:10:07]requested_item fm.sn is exist - process it [11:10:07]wFMCommunicate request_size=4 [11:10:07]MH_SAM_APDU [11:10:07]CAPDU: 80 11 00 00 [11:10:07]Write to MH i2c: E2 08 00 68 33 80 11 00 00 00 00 00 00 15 [11:10:07]Write i2c OK [11:10:07]MH_I2C_Read... [11:10:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:07]Read from MH i2c: E2 [11:10:07]MH_I2C_Read... [11:10:07]Read from MH i2c: E2 17 00 [11:10:07]MH_I2C_Read... [11:10:07]Read from MH i2c: E2 17 00 68 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 64 [11:10:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:10:07]wFMCommunicate OK [11:10:07]requested_item fd.num is exist - process it [11:10:07]SAM_PROTO_GetFieldsCounters [11:10:07]wFMCommunicate request_size=4 [11:10:07]MH_SAM_APDU [11:10:07]CAPDU: 80 13 00 00 [11:10:07]Write to MH i2c: E2 08 00 69 33 80 13 00 00 00 00 00 00 18 [11:10:07]Write i2c OK [11:10:07]MH_I2C_Read... [11:10:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:07]Read from MH i2c: E2 [11:10:07]MH_I2C_Read... [11:10:07]Read from MH i2c: E2 62 00 [11:10:07]MH_I2C_Read... [11:10:07]Read from MH i2c: E2 62 00 69 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DA 70 00 00 0E 04 04 00 73 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 36 [11:10: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DA 70 00 00 0E 04 04 00 73 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:10:07]wFMCommunicate OK [11:10:07]SAM_PROTO_GetFieldsCounters done [11:10:07]requested_item shift.num is exist - process it [11:10:07]requested_item shift.opened is exist - process it [11:10:07]req_shift_opened [11:10:07]FM_GetShiftState [11:10:07]SAM_PROTO_GetShiftState [11:10:07]wFMCommunicate request_size=4 [11:10:07]MH_SAM_APDU [11:10:07]CAPDU: 80 13 01 00 [11:10:07]Write to MH i2c: E2 08 00 6A 33 80 13 01 00 00 00 00 00 1A [11:10:07]Write i2c OK [11:10:07]MH_I2C_Read... [11:10:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:07]Read from MH i2c: E2 [11:10:07]MH_I2C_Read... [11:10:07]Read from MH i2c: E2 0E 00 [11:10:07]MH_I2C_Read... [11:10:07]Read from MH i2c: E2 0E 00 6A 33 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 33 [11:10:07]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:10:07]wFMCommunicate OK [11:10:07]SAM_PROTO_GetShiftState done [11:10:07]FM_GetShiftState done [11:10:07]req_shift_opened done [11:10:07]requested_item shift.open_date is exist - process it [11:10:07]req_shift_open_date [11:10:07]req_shift_open_date done [11:10:07]produce_requested_data done [11:10:07]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28890,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [11:10:07]process_action_free close_receipt [11:10:07]json_value_free [11:10:07]json_value_free done [11:10:07]process_json_proto returns [11:10:07]Send response to host [11:10:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28890,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [11:10:07]free response buf [11:10:07]execute_script done [11:10:07]execute_script returns [11:10:07]free content buf [11:10:07]Sock 7.Close socket [11:10:07]Sock 7.Thread stoped [11:10:11]OFD Sender: No OFD packet to send [11:10:16]OFD Sender: No OFD packet to send [11:10:21]OFD Sender: No OFD packet to send [11:10:26]OFD Sender: No OFD packet to send [11:10:31]OFD Sender: No OFD packet to send [11:10:36]OFD Sender: No OFD packet to send [11:10:41]OFD Sender: No OFD packet to send [11:10:46]OFD Sender: No OFD packet to send [11:10:51]OFD Sender: No OFD packet to send [11:10:56]OFD Sender: No OFD packet to send [11:11:01]OFD Sender: No OFD packet to send [11:11:06]OFD Sender: No OFD packet to send [11:11:11]OFD Sender: No OFD packet to send [11:11:16]OFD Sender: No OFD packet to send [11:11:21]OFD Sender: No OFD packet to send [11:11:26]OFD Sender: No OFD packet to send [11:11:31]OFD Sender: No OFD packet to send [11:11:36]OFD Sender: No OFD packet to send [11:11:41]OFD Sender: No OFD packet to send [11:11:46]OFD Sender: No OFD packet to send [11:11:51]OFD Sender: No OFD packet to send [11:11:56]OFD Sender: No OFD packet to send [11:12:01]OFD Sender: No OFD packet to send [11:12:06]OFD Sender: No OFD packet to send [11:12:11]OFD Sender: No OFD packet to send [11:12:16]OFD Sender: No OFD packet to send [11:12:21]OFD Sender: No OFD packet to send [11:12:26]OFD Sender: No OFD packet to send [11:12:31]OFD Sender: No OFD packet to send [11:12:36]OFD Sender: No OFD packet to send [11:12:41]OFD Sender: No OFD packet to send [11:12:46]OFD Sender: No OFD packet to send [11:12:51]OFD Sender: No OFD packet to send [11:12:56]OFD Sender: No OFD packet to send [11:13:01]OFD Sender: No OFD packet to send [11:13:06]OFD Sender: No OFD packet to send [11:13:11]OFD Sender: No OFD packet to send [11:13:16]OFD Sender: No OFD packet to send [11:13:21]OFD Sender: No OFD packet to send [11:13:26]OFD Sender: No OFD packet to send [11:13:31]OFD Sender: No OFD packet to send [11:13:36]OFD Sender: No OFD packet to send [11:13:41]OFD Sender: No OFD packet to send [11:13:46]OFD Sender: No OFD packet to send [11:13:51]OFD Sender: No OFD packet to send [11:13:56]OFD Sender: No OFD packet to send [11:14:01]OFD Sender: No OFD packet to send [11:14:06]OFD Sender: No OFD packet to send [11:14:11]OFD Sender: No OFD packet to send [11:14:16]OFD Sender: No OFD packet to send [11:14:21]OFD Sender: No OFD packet to send [11:14:26]OFD Sender: No OFD packet to send [11:14:31]OFD Sender: No OFD packet to send [11:14:36]OFD Sender: No OFD packet to send [11:14:41]OFD Sender: No OFD packet to send [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:15:01]OFD Sender: No OFD packet to send [11:15:06]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:41]OFD Sender: No OFD packet to send [11:15:46]OFD Sender: No OFD packet to send [11:15:51]OFD Sender: No OFD packet to send [11:15:56]OFD Sender: No OFD packet to send [11:16:01]OFD Sender: No OFD packet to send [11:16:06]OFD Sender: No OFD packet to send [11:16:11]OFD Sender: No OFD packet to send [11:16:16]OFD Sender: No OFD packet to send [11:16:21]OFD Sender: No OFD packet to send [11:16:26]OFD Sender: No OFD packet to send [11:16:31]OFD Sender: No OFD packet to send [11:16:36]OFD Sender: No OFD packet to send [11:16:41]OFD Sender: No OFD packet to send [11:16:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [11:16:56]OFD Sender: No OFD packet to send [11:17:01]OFD Sender: No OFD packet to send [11:17:06]OFD Sender: No OFD packet to send [11:17:11]OFD Sender: No OFD packet to send [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:09]accept exits with 9 [11:18:09]New connection [11:18:09]New thread 3066785124 created [11:18:09]Thread 3066928484 joined [11:18:09]Waiting for new connection... [11:18:09] Sock 9.Parse request [11:18:09]Sock 9.Check first char [11:18:09]Sock 9.First char is OK [11:18:09]request: POST /json_proto HTTP/1.0 [11:18:09]Method: POST [11:18:09]URL: /json_proto [11:18:09]Method is POST - this is cgi request [11:18:09]url: /json_proto [11:18:09]query_string will be loaded in cgi processing [11:18:09]execute_cgi json_proto POST (null) [11:18:09]execute_cgi path=json_proto method=POST [11:18:09]POST find Content-Length [11:18:09]Host: 172.17.33.3:8080 [11:18:09]Content-Length: 645 [11:18:09]Content-Type: application/json [11:18:09] [11:18:09]POST finish read [11:18:09]Found Content-Length = 645 [11:18:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 50.000, "sum" : 1645.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1645.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:09]execute_script... [11:18: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)347244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 50.000, "sum" : 1645.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1645.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:09]POST & json_proto [11:18:09]process_json_proto [11:18:09]json parsed OK: [11:18:09]protocol is kg_v1.0 [11:18:09]action value=close_receipt [11:18:09]process_action close_receipt [11:18:09]cmd_close_receipt [11:18:09]MH_GetDate [11:18:09]Write to MH i2c: F0 00 00 6B 33 8D [11:18:09]Write i2c OK [11:18:09]MH_I2C_Read... [11:18:09]Read from MH i2c: F0 [11:18:09]MH_I2C_Read... [11:18:09]Read from MH i2c: F0 09 00 [11:18:09]MH_I2C_Read... [11:18:09]Read from MH i2c: F0 09 00 6B 33 00 F5 69 1A 66 23 5B 8F 65 E6 [11:18:09]GetLastDocTimeStamp 1713006607 [11:18:09]current date 1713007093 [11:18:09]FM_GetShiftState [11:18:09]SAM_PROTO_GetShiftState [11:18:09]wFMCommunicate request_size=4 [11:18:09]MH_SAM_APDU [11:18:09]CAPDU: 80 13 01 00 [11:18:09]Write to MH i2c: E2 08 00 6C 33 80 13 01 00 00 00 00 00 1C [11:18:09]Write i2c OK [11:18:09]MH_I2C_Read... [11:18:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:09]Read from MH i2c: E2 [11:18:09]MH_I2C_Read... [11:18:09]Read from MH i2c: E2 0E 00 [11:18:09]MH_I2C_Read... [11:18:09]Read from MH i2c: E2 0E 00 6C 33 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 35 [11:18:09]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:18:09]wFMCommunicate OK [11:18:09]SAM_PROTO_GetShiftState done [11:18:09]FM_GetShiftState done [11:18:09]opened in 1712967615 [11:18:09]opened+sec_in_day 1713054015 [11:18:09]quantity*price = 164500 [11:18:09]sum+1 = 164501 [11:18:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1645.00 НСП 1% : 14.56 НДС 12% : 174.69 Наличными: 1645.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 98 13.04.2024 11:18 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28891 ФПД: 202864985591208 1/tax-web-control/client/api/v1/ticket?date=20240413T111813&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28891&fm=202864985591208&tin=02508201610067®Number=0000138879044617&sum=164500 [11:18:10]StoreToDocumentArchive [11:18:10]shift 115 fd 28891 [11:18:10]save to /storage/0115/doc_00028891 [11:18:10]save last doc name /storage/0115/doc_00028891 to /storage/kkm_last_doc_name [11:18:10]save OK [11:18:10]Clear old archive folders... [11:18:10]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:18:10]tlvbuf is 01232F50 [11:18:10]SAM_PROTO_ClearQueue [11:18:10]wFMCommunicate request_size=4 [11:18:10]MH_SAM_APDU [11:18:10]CAPDU: 80 09 00 00 [11:18:10]Write to MH i2c: E2 08 00 79 33 80 09 00 00 00 00 00 00 1E [11:18:10]Write i2c OK [11:18:10]MH_I2C_Read... [11:18:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:10]Read from MH i2c: E2 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: E2 03 00 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: E2 03 00 79 33 00 90 00 20 [11:18:10]RAPDU: 90 00 [11:18:10]wFMCommunicate OK [11:18:10]SAM_PROTO_ClearQueue done [11:18:10]KKMCreateOFDPacket [11:18:10]OFDProtocolAddRootSTLVToBuf [11:18:10]FM_MakeSignedData [11:18:10]FM_MakeSignedData [11:18:10]SAM_PROTO_SignData [11:18:10]wFMCommunicate request_size=4 [11:18:10]MH_SAM_APDU [11:18:10]CAPDU: 80 0D 01 02 [11:18:10]Write to MH i2c: E2 08 00 7A 33 80 0D 01 02 00 00 00 00 26 [11:18:10]Write i2c OK [11:18:10]MH_I2C_Read... [11:18:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:10]Read from MH i2c: E2 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: E2 03 00 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: E2 03 00 7A 33 00 90 00 21 [11:18:10]RAPDU: 90 00 [11:18:10]wFMCommunicate OK [11:18:10]wFMCommunicate request_size=255 [11:18:10]MH_SAM_APDU [11:18: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 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 94 82 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 82 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 44 00 00 00 00 07 04 06 00 94 82 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 F5 69 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DB 70 00 00 35 04 06 00 B8 81 [11:18:10]Write to MH i2c: E2 02 01 7B 33 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 94 82 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 82 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 44 00 00 00 00 07 04 06 00 94 82 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 F5 69 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DB 70 00 00 35 04 06 00 B8 81 00 00 AB [11:18:10]Write i2c OK [11:18:10]MH_I2C_Read... [11:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:11]Read from MH i2c: E2 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: E2 03 00 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: E2 03 00 7B 33 00 90 00 22 [11:18:11]RAPDU: 90 00 [11:18:11]wFMCommunicate OK [11:18:11]wFMCommunicate request_size=9 [11:18:11]MH_SAM_APDU [11:18:11]CAPDU: 80 0D 02 02 04 2F 67 4D A8 [11:18:11]Write to MH i2c: E2 0C 00 7C 33 80 0D 02 02 04 00 2F 67 4D A8 00 00 BC [11:18:11]Write i2c OK [11:18:11]MH_I2C_Read... [11:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:11]Read from MH i2c: E2 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: E2 03 00 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: E2 03 00 7C 33 00 90 00 23 [11:18:11]RAPDU: 90 00 [11:18:11]wFMCommunicate OK [11:18:11]wFMCommunicate request_size=4 [11:18:11]MH_SAM_APDU [11:18:11]CAPDU: 80 0D 03 02 [11:18:11]Write to MH i2c: E2 08 00 7D 33 80 0D 03 02 00 00 00 00 2B [11:18:11]Write i2c OK [11:18:11]MH_I2C_Read... [11:18:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:11]Read from MH i2c: E2 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: E2 0B 00 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: E2 0B 00 7D 33 00 D6 04 DE BD FC 5E 47 CA 90 00 0C [11:18:11]RAPDU: D6 04 DE BD FC 5E 47 CA 90 00 [11:18:11]wFMCommunicate OK [11:18:11]SAM_PROTO_SignData done [11:18:11]FM_MakeSignedData done [11:18:11]CreateOFDProtocolMessage [11:18:11]wFMCommunicate request_size=4 [11:18:11]MH_SAM_APDU [11:18:11]CAPDU: 80 11 00 00 [11:18:11]Write to MH i2c: E2 08 00 7E 33 80 11 00 00 00 00 00 00 2B [11:18:11]Write i2c OK [11:18:11]MH_I2C_Read... [11:18:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:11]Read from MH i2c: E2 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: E2 17 00 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: E2 17 00 7E 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7A [11:18:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:18:11]wFMCommunicate OK [11:18:11]CreateOFDProtocolMessage done [11:18:11]OFDSenderStorePacket 28891 [11:18:11]StoreOFDPacket docnum=28891 [11:18:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 BE FB 06 01 B3 80 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 94 82 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 82 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 44 00 00 00 00 07 04 06 00 94 82 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 F5 69 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DB 70 00 00 35 04 06 00 B8 81 2F 67 4D A8 D6 04 DE BD FC 5E 47 CA [11:18:11]CheckFolder [11:18:11]dirname=/storage/ofd_packets [11:18:11]CheckFolder done [11:18:11]ProducePacketName [11:18:11]name=ofd_packets/00028891 [11:18:11]NVStorageSaveData ofd_packets/00028891 [11:18:11]File name is /storage/ofd_packets/00028891 [11:18:11]Write 300 bytes [11:18:11]NVStorageSaveData done [11:18:11]OFDSenderStorePacket done [11:18:11]KKMCreateOFDPacket done [11:18:11]NVStorageSaveData kkm_last_timestamp [11:18:11]File name is /storage/kkm_last_timestamp [11:18:11]Write 4 bytes [11:18:11]NVStorageSaveData done [11:18:11]OFD Sender: Processing packet 28891 [packets to send 8, broken 7] [11:18:11]ProducePacketName [11:18:11]name=ofd_packets/00028891 [11:18:11]OFD Sender: To server: pG, [11:18:11]CommunicateWithHost lk.salyk.kg:30040 [11:18:11]ConnectInit lk.salyk.kg [11:18:11]ExternCall_PrintAddStr [11:18:11]wPrintStart [11:18:11]Write to MH i2c: 01 00 00 7F 33 B2 [11:18:11]Write i2c OK [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: 01 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: 01 07 00 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: 01 07 00 7F 33 00 00 00 00 00 FF 0F C7 [11:18:11]RasterBufferAndPrint [11:18:11]line Счет N : (1)347244 [11:18:11]line ИНН: 02508201610067 [11:18:11]line Контрольно-Кассовый Чек [11:18:11]line ПРОДАЖА [11:18:11]line ТРК (МРК, ГНК) : 71 [11:18:11]line Товар: 2711129700 [11:18:11]line ГАЗ-К-5 [11:18:11]line 50.000 * 32.90 [11:18:11]line = 1645.00 [11:18:11]line НДС 12% НСП 1% [11:18:11]line > о реализуемом товаре [11:18:11]line ИТОГО: 1645.00 [11:18:11]line НСП 1% : 14.56 [11:18:11]line НДС 12% : 174.69 [11:18:11]line Наличными: 1645.00 [11:18:11]line Безнал.: 0.00 [11:18:11]line Место: АЗС № 108 "Партнер Нефть" [11:18:11]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:18:11]line СНО: Общий режим [11:18:11]line Чек 98 13.04.2024 11:18 [11:18:11]line Смена: 115 ФФД: 1.0 [11:18:11]line ЗНМ: 0300000027 [11:18:11]line РНМ: 0000138879044617 [11:18:11]line Версия ККМ: 001 [11:18:11]line ФМ: 0000000000963154 [11:18:11]line ФД: 28891 [11:18:11]line ФПД: 202864985591208 [11:18:11]line 1/tax-web-control/client/api/v1/ticket?date=20240413T111813&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28891&fm=202864985591208&tin=02508201610067®Number=0000138879044617&sum=164500 [11:18:11]Connected sock=10 [11:18: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 31 35 34 0E 01 00 00 BE FB 06 01 B3 80 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 94 82 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 82 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 44 00 00 00 00 07 04 06 00 94 82 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 F5 69 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DB 70 00 00 35 04 06 00 B8 81 2F 67 4D A8 D6 04 DE BD FC 5E 47 CA [11:18:11]written 0, free lines is 4095 [11:18:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 52 01 47 00 48 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 31 35 34 10 04 04 00 DB 70 00 00 F4 03 04 00 9D 14 1A 66 B6 04 01 00 00 89 92 70 A9 19 67 E8 84 [11:18:11]CommunicateWithHost err = 0 [11:18:11]CheckOFDResponse [11:18:11]1017 (14) - 77093643461234 [11:18:11]1041 (16) - 0000000000963154 [11:18:11]1040 (4) - 28891 [11:18:11]1012 (4) - 13.04.2024 05:14 [11:18:11]1206 (1) - 0 [11:18:11]OFD Sender: Remove packet 28891 [11:18:11]ProducePacketName [11:18:11]name=ofd_packets/00028891 [11:18:11]NVStorageDeleteData [11:18:12]Write to MH i2c: 01 00 00 A6 33 D9 [11:18:12]Write i2c OK [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: 01 [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: 01 07 00 [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: 01 07 00 A6 33 00 00 00 00 00 FB 0C E7 [11:18:12]RasterBufferAndPrint [11:18:12]line [11:18:12]line [11:18:12]line [11:18:12]line [11:18:12]line [11:18:12]written 0, free lines is 3329 [11:18:12]MH_Cut [11:18:12]Write to MH i2c: D1 01 00 AD 33 01 B2 [11:18:12]Write i2c OK [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: D1 [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: D1 01 00 [11:18:12]MH_I2C_Read... [11:18:12]Read from MH i2c: D1 01 00 AD 33 00 B1 [11:18:12]Write to MH i2c: 01 00 00 AE 33 E1 [11:18:12]Write i2c OK [11:18:12]MH_I2C_Read... [11:18:12]OFD Sender: No OFD packet to send [11:18:12]*** Cut start [11:18:12]*** Partial cut [11:18:12]*** CUTSNS_PIN = 1 [11:18:12]*** CUTSNS_PIN = 0 [11:18:13]*** Brake cut motor [11:18:13]Read from MH i2c: 01 [11:18:13]MH_I2C_Read... [11:18:13]*** Stop cut motor [11:18:13]*** Cut end [11:18:13]Read from MH i2c: 01 07 00 [11:18:13]MH_I2C_Read... [11:18:13]Read from MH i2c: 01 07 00 AE 33 00 00 00 00 00 FF 0F F6 [11:18:13]process_action close_receipt done [11:18:13]requested_data is exist [11:18:13]produce_requested_data [11:18:13]requested_item fm.sn is exist - process it [11:18:13]wFMCommunicate request_size=4 [11:18:13]MH_SAM_APDU [11:18:13]CAPDU: 80 11 00 00 [11:18:13]Write to MH i2c: E2 08 00 AF 33 80 11 00 00 00 00 00 00 5C [11:18:13]Write i2c OK [11:18:13]MH_I2C_Read... [11:18:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:13]Read from MH i2c: E2 [11:18:13]MH_I2C_Read... [11:18:13]Read from MH i2c: E2 17 00 [11:18:13]MH_I2C_Read... [11:18:13]Read from MH i2c: E2 17 00 AF 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AB [11:18:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:18:13]wFMCommunicate OK [11:18:13]requested_item fd.num is exist - process it [11:18:13]SAM_PROTO_GetFieldsCounters [11:18:13]wFMCommunicate request_size=4 [11:18:13]MH_SAM_APDU [11:18:13]CAPDU: 80 13 00 00 [11:18:13]Write to MH i2c: E2 08 00 B0 33 80 13 00 00 00 00 00 00 5F [11:18:13]Write i2c OK [11:18:13]MH_I2C_Read... [11:18:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:13]Read from MH i2c: E2 [11:18:13]MH_I2C_Read... [11:18:13]Read from MH i2c: E2 62 00 [11:18:13]MH_I2C_Read... [11:18:13]Read from MH i2c: E2 62 00 B0 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DB 70 00 00 0E 04 04 00 73 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 81 [11:18: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DB 70 00 00 0E 04 04 00 73 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:18:13]wFMCommunicate OK [11:18:13]SAM_PROTO_GetFieldsCounters done [11:18:13]requested_item shift.num is exist - process it [11:18:13]requested_item shift.opened is exist - process it [11:18:13]req_shift_opened [11:18:13]FM_GetShiftState [11:18:13]SAM_PROTO_GetShiftState [11:18:13]wFMCommunicate request_size=4 [11:18:13]MH_SAM_APDU [11:18:13]CAPDU: 80 13 01 00 [11:18:13]Write to MH i2c: E2 08 00 B1 33 80 13 01 00 00 00 00 00 61 [11:18:13]Write i2c OK [11:18:13]MH_I2C_Read... [11:18:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:13]Read from MH i2c: E2 [11:18:13]MH_I2C_Read... [11:18:13]Read from MH i2c: E2 0E 00 [11:18:13]MH_I2C_Read... [11:18:13]Read from MH i2c: E2 0E 00 B1 33 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 7A [11:18:13]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:18:13]wFMCommunicate OK [11:18:13]SAM_PROTO_GetShiftState done [11:18:13]FM_GetShiftState done [11:18:13]req_shift_opened done [11:18:13]requested_item shift.open_date is exist - process it [11:18:13]req_shift_open_date [11:18:13]req_shift_open_date done [11:18:13]produce_requested_data done [11:18:13]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28891,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [11:18:13]process_action_free close_receipt [11:18:13]json_value_free [11:18:13]json_value_free done [11:18:13]process_json_proto returns [11:18:13]Send response to host [11:18:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28891,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [11:18:13]free response buf [11:18:13]execute_script done [11:18:13]execute_script returns [11:18:13]free content buf [11:18:13]Sock 9.Close socket [11:18:13]Sock 9.Thread stoped [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:00]accept exits with 7 [11:21:00]New connection [11:21:00]New thread 3066928484 created [11:21:00]Thread 3066785124 joined [11:21:00]Waiting for new connection... [11:21:00] Sock 7.Parse request [11:21:00]Sock 7.Check first char [11:21:00]Sock 7.First char is OK [11:21:00]request: POST /json_proto HTTP/1.0 [11:21:00]Method: POST [11:21:00]URL: /json_proto [11:21:00]Method is POST - this is cgi request [11:21:00]url: /json_proto [11:21:00]query_string will be loaded in cgi processing [11:21:00]execute_cgi json_proto POST (null) [11:21:00]execute_cgi path=json_proto method=POST [11:21:00]POST find Content-Length [11:21:00]Host: 172.17.33.3:8080 [11:21:00]Content-Length: 677 [11:21:00]Content-Type: application/json [11:21:00] [11:21:00]POST finish read [11:21:00]Found Content-Length = 677 [11:21:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:00]execute_script... [11:21: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)347245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:00]POST & json_proto [11:21:00]process_json_proto [11:21:00]json parsed OK: [11:21:00]protocol is kg_v1.0 [11:21:00]action value=close_receipt [11:21:00]process_action close_receipt [11:21:00]cmd_close_receipt [11:21:00]MH_GetDate [11:21:00]Write to MH i2c: F0 00 00 B2 33 D4 [11:21:00]Write i2c OK [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: F0 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: F0 09 00 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: F0 09 00 B2 33 00 A0 6A 1A 66 23 5B 8F 65 D9 [11:21:00]GetLastDocTimeStamp 1713007093 [11:21:00]current date 1713007264 [11:21:00]FM_GetShiftState [11:21:00]SAM_PROTO_GetShiftState [11:21:00]wFMCommunicate request_size=4 [11:21:00]MH_SAM_APDU [11:21:00]CAPDU: 80 13 01 00 [11:21:00]Write to MH i2c: E2 08 00 B3 33 80 13 01 00 00 00 00 00 63 [11:21:00]Write i2c OK [11:21:00]MH_I2C_Read... [11:21:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:00]Read from MH i2c: E2 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 0E 00 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 0E 00 B3 33 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 7C [11:21:00]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:21:00]wFMCommunicate OK [11:21:00]SAM_PROTO_GetShiftState done [11:21:00]FM_GetShiftState done [11:21:00]opened in 1712967615 [11:21:00]opened+sec_in_day 1713054015 [11:21:00]quantity*price = 60056 [11:21:00]sum+1 = 60057 [11:21:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 99 13.04.2024 11:21 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28892 ФПД: 36509576633440 1/tax-web-control/client/api/v1/ticket?date=20240413T112104&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28892&fm=36509576633440&tin=02508201610067®Number=0000138879044617&sum=60000 [11:21:01]StoreToDocumentArchive [11:21:01]shift 115 fd 28892 [11:21:01]save to /storage/0115/doc_00028892 [11:21:01]save last doc name /storage/0115/doc_00028892 to /storage/kkm_last_doc_name [11:21:01]save OK [11:21:01]Clear old archive folders... [11:21:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:21:01]tlvbuf is 01284260 [11:21:01]SAM_PROTO_ClearQueue [11:21:01]wFMCommunicate request_size=4 [11:21:01]MH_SAM_APDU [11:21:01]CAPDU: 80 09 00 00 [11:21:01]Write to MH i2c: E2 08 00 C0 33 80 09 00 00 00 00 00 00 65 [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:01]Read from MH i2c: E2 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 03 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 03 00 C0 33 00 90 00 67 [11:21:01]RAPDU: 90 00 [11:21:01]wFMCommunicate OK [11:21:01]SAM_PROTO_ClearQueue done [11:21:01]KKMCreateOFDPacket [11:21:01]OFDProtocolAddRootSTLVToBuf [11:21:01]FM_MakeSignedData [11:21:01]FM_MakeSignedData [11:21:01]SAM_PROTO_SignData [11:21:01]wFMCommunicate request_size=4 [11:21:01]MH_SAM_APDU [11:21:01]CAPDU: 80 0D 01 02 [11:21:01]Write to MH i2c: E2 08 00 C1 33 80 0D 01 02 00 00 00 00 6D [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:01]Read from MH i2c: E2 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 03 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 03 00 C1 33 00 90 00 68 [11:21:01]RAPDU: 90 00 [11:21:01]wFMCommunicate OK [11:21:01]wFMCommunicate request_size=255 [11:21:01]MH_SAM_APDU [11:21:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 63 00 00 00 F4 03 04 00 A0 6A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DC 70 00 00 35 04 06 00 21 [11:21:01]Write to MH i2c: E2 02 01 C2 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 63 00 00 00 F4 03 04 00 A0 6A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DC 70 00 00 35 04 06 00 21 00 00 65 [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:01]Read from MH i2c: E2 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 03 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 03 00 C2 33 00 90 00 69 [11:21:01]RAPDU: 90 00 [11:21:01]wFMCommunicate OK [11:21:01]wFMCommunicate request_size=10 [11:21:01]MH_SAM_APDU [11:21:01]CAPDU: 80 0D 02 02 05 34 8C 58 9C 60 [11:21:01]Write to MH i2c: E2 0D 00 C3 33 80 0D 02 02 05 00 34 8C 58 9C 60 00 00 8E [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:01]Read from MH i2c: E2 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 03 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 03 00 C3 33 00 90 00 6A [11:21:01]RAPDU: 90 00 [11:21:01]wFMCommunicate OK [11:21:01]wFMCommunicate request_size=4 [11:21:01]MH_SAM_APDU [11:21:01]CAPDU: 80 0D 03 02 [11:21:01]Write to MH i2c: E2 08 00 C4 33 80 0D 03 02 00 00 00 00 72 [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:01]Read from MH i2c: E2 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 0B 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 0B 00 C4 33 00 6E 53 A7 E7 BE C3 7A C6 90 00 83 [11:21:01]RAPDU: 6E 53 A7 E7 BE C3 7A C6 90 00 [11:21:01]wFMCommunicate OK [11:21:01]SAM_PROTO_SignData done [11:21:01]FM_MakeSignedData done [11:21:01]CreateOFDProtocolMessage [11:21:01]wFMCommunicate request_size=4 [11:21:01]MH_SAM_APDU [11:21:01]CAPDU: 80 11 00 00 [11:21:01]Write to MH i2c: E2 08 00 C5 33 80 11 00 00 00 00 00 00 72 [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:01]Read from MH i2c: E2 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 17 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 17 00 C5 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C1 [11:21:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:21:01]wFMCommunicate OK [11:21:01]CreateOFDProtocolMessage done [11:21:01]OFDSenderStorePacket 28892 [11:21:01]StoreOFDPacket docnum=28892 [11:21:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 AE 79 07 01 93 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 63 00 00 00 F4 03 04 00 A0 6A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DC 70 00 00 35 04 06 00 21 34 8C 58 9C 60 6E 53 A7 E7 BE C3 7A C6 [11:21:01]CheckFolder [11:21:01]dirname=/storage/ofd_packets [11:21:01]CheckFolder done [11:21:01]ProducePacketName [11:21:01]name=ofd_packets/00028892 [11:21:01]NVStorageSaveData ofd_packets/00028892 [11:21:01]File name is /storage/ofd_packets/00028892 [11:21:01]Write 301 bytes [11:21:01]NVStorageSaveData done [11:21:01]OFDSenderStorePacket done [11:21:01]KKMCreateOFDPacket done [11:21:01]NVStorageSaveData kkm_last_timestamp [11:21:01]File name is /storage/kkm_last_timestamp [11:21:01]Write 4 bytes [11:21:01]NVStorageSaveData done [11:21:01]ExternCall_PrintAddStr [11:21:01]wPrintStart [11:21:01]Write to MH i2c: 01 00 00 C6 33 F9 [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: 01 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: 01 07 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: 01 07 00 C6 33 00 00 00 00 00 FF 0F 0E [11:21:01]RasterBufferAndPrint [11:21:01]line Счет N : (1)347245 [11:21:01]line ИНН: 02508201610067 [11:21:01]line Контрольно-Кассовый Чек [11:21:01]line ПРОДАЖА [11:21:01]line ТРК (МРК, ГНК) : 23 [11:21:01]line Товар: 2710124130 [11:21:01]line Аи-92-К-5 [11:21:01]line 9.340 * 64.30 [11:21:01]line = 600.56 [11:21:01]line НДС 12% НСП 1% [11:21:01]line > о реализуемом товаре [11:21:01]line ОКРУГЛЕНИЕ: -0.56 [11:21:01]line ИТОГО: 600.00 [11:21:01]line Внесено: 600.00 [11:21:01]line СДАЧА: 0.00 [11:21:01]line НСП 1% : 5.31 [11:21:01]line НДС 12% : 63.78 [11:21:01]line Наличными: 600.00 [11:21:01]line Безнал.: 0.00 [11:21:01]line Место: АЗС № 108 "Партнер Нефть" [11:21:01]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:21:01]line СНО: Общий режим [11:21:01]line Чек 99 13.04.2024 11:21 [11:21:01]line Смена: 115 ФФД: 1.0 [11:21:01]line ЗНМ: 0300000027 [11:21:01]line РНМ: 0000138879044617 [11:21:01]line Версия ККМ: 001 [11:21:01]line ФМ: 0000000000963154 [11:21:01]line ФД: 28892 [11:21:02]line ФПД: 36509576633440 [11:21:02]line 1/tax-web-control/client/api/v1/ticket?date=20240413T112104&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28892&fm=36509576633440&tin=02508201610067®Number=0000138879044617&sum=60000 [11:21:02]OFD Sender: Processing packet 28892 [packets to send 8, broken 7] [11:21:02]ProducePacketName [11:21:02]name=ofd_packets/00028892 [11:21:02]OFD Sender: To server: pG, [11:21:02]CommunicateWithHost lk.salyk.kg:30040 [11:21:02]ConnectInit lk.salyk.kg [11:21:02]written 0, free lines is 4095 [11:21:02]Connected sock=10 [11:21: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 31 35 34 0F 01 00 00 AE 79 07 01 93 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 63 00 00 00 F4 03 04 00 A0 6A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DC 70 00 00 35 04 06 00 21 34 8C 58 9C 60 6E 53 A7 E7 BE C3 7A C6 [11:21:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B7 3C 47 00 52 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DC 70 00 00 F4 03 04 00 47 15 1A 66 B6 04 01 00 00 F7 86 2E C5 6C AA 11 4D [11:21:02]CommunicateWithHost err = 0 [11:21:02]CheckOFDResponse [11:21:02]1017 (14) - 77093643461234 [11:21:02]1041 (16) - 0000000000963154 [11:21:02]1040 (4) - 28892 [11:21:02]1012 (4) - 13.04.2024 05:16 [11:21:02]1206 (1) - 0 [11:21:02]OFD Sender: Remove packet 28892 [11:21:02]ProducePacketName [11:21:02]name=ofd_packets/00028892 [11:21:02]NVStorageDeleteData [11:21:02]Write to MH i2c: 01 00 00 F0 33 23 [11:21:02]Write i2c OK [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: 01 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: 01 07 00 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: 01 07 00 F0 33 00 00 00 00 00 C7 0C FD [11:21:02]RasterBufferAndPrint [11:21:02]line [11:21:02]line [11:21:02]line [11:21:02]line [11:21:02]line [11:21:02]written 0, free lines is 3276 [11:21:02]MH_Cut [11:21:02]Write to MH i2c: D1 01 00 F7 33 01 FC [11:21:02]Write i2c OK [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: D1 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: D1 01 00 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: D1 01 00 F7 33 00 FB [11:21:02]Write to MH i2c: 01 00 00 F8 33 2B [11:21:02]Write i2c OK [11:21:02]MH_I2C_Read... [11:21:02]OFD Sender: No OFD packet to send [11:21:03]*** Cut start [11:21:03]*** Partial cut [11:21:03]*** CUTSNS_PIN = 1 [11:21:03]*** CUTSNS_PIN = 0 [11:21:03]*** Brake cut motor [11:21:03]Read from MH i2c: 01 [11:21:03]MH_I2C_Read... [11:21:03]*** Stop cut motor [11:21:03]Read from MH i2c: 01 07 00 [11:21:03]MH_I2C_Read... [11:21:03]*** Cut end [11:21:03]Read from MH i2c: 01 07 00 F8 33 00 00 00 00 00 FF 0F 40 [11:21:03]process_action close_receipt done [11:21:03]requested_data is exist [11:21:03]produce_requested_data [11:21:03]requested_item fm.sn is exist - process it [11:21:03]wFMCommunicate request_size=4 [11:21:03]MH_SAM_APDU [11:21:03]CAPDU: 80 11 00 00 [11:21:03]Write to MH i2c: E2 08 00 F9 33 80 11 00 00 00 00 00 00 A6 [11:21:03]Write i2c OK [11:21:03]MH_I2C_Read... [11:21:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:04]Read from MH i2c: E2 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 17 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 17 00 F9 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F5 [11:21:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:21:04]wFMCommunicate OK [11:21:04]requested_item fd.num is exist - process it [11:21:04]SAM_PROTO_GetFieldsCounters [11:21:04]wFMCommunicate request_size=4 [11:21:04]MH_SAM_APDU [11:21:04]CAPDU: 80 13 00 00 [11:21:04]Write to MH i2c: E2 08 00 FA 33 80 13 00 00 00 00 00 00 A9 [11:21:04]Write i2c OK [11:21:04]MH_I2C_Read... [11:21:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:04]Read from MH i2c: E2 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 62 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 62 00 FA 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DC 70 00 00 0E 04 04 00 73 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 CF [11:21: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DC 70 00 00 0E 04 04 00 73 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:21:04]wFMCommunicate OK [11:21:04]SAM_PROTO_GetFieldsCounters done [11:21:04]requested_item shift.num is exist - process it [11:21:04]requested_item shift.opened is exist - process it [11:21:04]req_shift_opened [11:21:04]FM_GetShiftState [11:21:04]SAM_PROTO_GetShiftState [11:21:04]wFMCommunicate request_size=4 [11:21:04]MH_SAM_APDU [11:21:04]CAPDU: 80 13 01 00 [11:21:04]Write to MH i2c: E2 08 00 FB 33 80 13 01 00 00 00 00 00 AB [11:21:04]Write i2c OK [11:21:04]MH_I2C_Read... [11:21:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:04]Read from MH i2c: E2 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 0E 00 [11:21:04]MH_I2C_Read... [11:21:04]Read from MH i2c: E2 0E 00 FB 33 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 C4 [11:21:04]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:21:04]wFMCommunicate OK [11:21:04]SAM_PROTO_GetShiftState done [11:21:04]FM_GetShiftState done [11:21:04]req_shift_opened done [11:21:04]requested_item shift.open_date is exist - process it [11:21:04]req_shift_open_date [11:21:04]req_shift_open_date done [11:21:04]produce_requested_data done [11:21:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28892,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [11:21:04]process_action_free close_receipt [11:21:04]json_value_free [11:21:04]json_value_free done [11:21:04]process_json_proto returns [11:21:04]Send response to host [11:21:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28892,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [11:21:04]free response buf [11:21:04]execute_script done [11:21:04]execute_script returns [11:21:04]free content buf [11:21:04]Sock 7.Close socket [11:21:04]Sock 7.Thread stoped [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:05]accept exits with 9 [11:23:05]New connection [11:23:05]New thread 3066785124 created [11:23:05]Thread 3066928484 joined [11:23:05]Waiting for new connection... [11:23:05] Sock 9.Parse request [11:23:05]Sock 9.Check first char [11:23:05]Sock 9.First char is OK [11:23:05]request: POST /json_proto HTTP/1.0 [11:23:05]Method: POST [11:23:05]URL: /json_proto [11:23:05]Method is POST - this is cgi request [11:23:05]url: /json_proto [11:23:05]query_string will be loaded in cgi processing [11:23:05]execute_cgi json_proto POST (null) [11:23:05]execute_cgi path=json_proto method=POST [11:23:05]POST find Content-Length [11:23:05]Host: 172.17.33.3:8080 [11:23:05]Content-Length: 677 [11:23:05]Content-Type: application/json [11:23:05] [11:23:05]POST finish read [11:23:05]Found Content-Length = 677 [11:23:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347246", "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" : 72.50, "quantity" : 6.900, "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:23:05]execute_script... [11: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)347246", "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" : 72.50, "quantity" : 6.900, "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:23:05]POST & json_proto [11:23:05]process_json_proto [11:23:05]json parsed OK: [11:23:05]protocol is kg_v1.0 [11:23:05]action value=close_receipt [11:23:05]process_action close_receipt [11:23:05]cmd_close_receipt [11:23:05]MH_GetDate [11:23:05]Write to MH i2c: F0 00 00 FC 33 1E [11:23:05]Write i2c OK [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: F0 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: F0 09 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: F0 09 00 FC 33 00 1D 6B 1A 66 23 5B 8F 65 A1 [11:23:05]GetLastDocTimeStamp 1713007264 [11:23:05]current date 1713007389 [11:23:05]FM_GetShiftState [11:23:05]SAM_PROTO_GetShiftState [11:23:05]wFMCommunicate request_size=4 [11:23:05]MH_SAM_APDU [11:23:05]CAPDU: 80 13 01 00 [11:23:05]Write to MH i2c: E2 08 00 FD 33 80 13 01 00 00 00 00 00 AD [11:23:05]Write i2c OK [11:23:05]MH_I2C_Read... [11:23:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:05]Read from MH i2c: E2 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 0E 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 0E 00 FD 33 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 C6 [11:23:05]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:23:05]wFMCommunicate OK [11:23:05]SAM_PROTO_GetShiftState done [11:23:05]FM_GetShiftState done [11:23:05]opened in 1712967615 [11:23:05]opened+sec_in_day 1713054015 [11:23:05]quantity*price = 50025 [11:23:05]sum+1 = 50026 [11:23:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 100 13.04.2024 11:23 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28893 ФПД: 267398959865685 1/tax-web-control/client/api/v1/ticket?date=20240413T112309&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28893&fm=267398959865685&tin=02508201610067®Number=0000138879044617&sum=50000 [11:23:06]StoreToDocumentArchive [11:23:06]shift 115 fd 28893 [11:23:06]save to /storage/0115/doc_00028893 [11:23:06]save last doc name /storage/0115/doc_00028893 to /storage/kkm_last_doc_name [11:23:06]save OK [11:23:06]Clear old archive folders... [11:23:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:06]tlvbuf is 011ECB30 [11:23:06]SAM_PROTO_ClearQueue [11:23:06]wFMCommunicate request_size=4 [11:23:06]MH_SAM_APDU [11:23:06]CAPDU: 80 09 00 00 [11:23:06]Write to MH i2c: E2 08 00 0A 34 80 09 00 00 00 00 00 00 B0 [11:23:06]Write i2c OK [11:23:06]MH_I2C_Read... [11:23:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:06]Read from MH i2c: E2 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 03 00 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 03 00 0A 34 00 90 00 B2 [11:23:06]RAPDU: 90 00 [11:23:06]wFMCommunicate OK [11:23:06]SAM_PROTO_ClearQueue done [11:23:06]KKMCreateOFDPacket [11:23:06]OFDProtocolAddRootSTLVToBuf [11:23:06]FM_MakeSignedData [11:23:06]FM_MakeSignedData [11:23:06]SAM_PROTO_SignData [11:23:06]wFMCommunicate request_size=4 [11:23:06]MH_SAM_APDU [11:23:06]CAPDU: 80 0D 01 02 [11:23:06]Write to MH i2c: E2 08 00 0B 34 80 0D 01 02 00 00 00 00 B8 [11:23:06]Write i2c OK [11:23:06]MH_I2C_Read... [11:23:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:06]Read from MH i2c: E2 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 03 00 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 03 00 0B 34 00 90 00 B3 [11:23:06]RAPDU: 90 00 [11:23:06]wFMCommunicate OK [11:23:06]wFMCommunicate request_size=255 [11:23:06]MH_SAM_APDU [11: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 1D 6B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DD 70 00 00 35 04 06 00 F3 [11:23:06]Write to MH i2c: E2 02 01 0C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 1D 6B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DD 70 00 00 35 04 06 00 F3 00 00 60 [11:23:06]Write i2c OK [11:23:06]MH_I2C_Read... [11:23:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:06]Read from MH i2c: E2 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 03 00 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 03 00 0C 34 00 90 00 B4 [11:23:06]RAPDU: 90 00 [11:23:06]wFMCommunicate OK [11:23:06]wFMCommunicate request_size=10 [11:23:06]MH_SAM_APDU [11:23:06]CAPDU: 80 0D 02 02 05 32 AC 04 1F 55 [11:23:06]Write to MH i2c: E2 0D 00 0D 34 80 0D 02 02 05 00 32 AC 04 1F 55 00 00 1B [11:23:06]Write i2c OK [11:23:06]MH_I2C_Read... [11:23:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:06]Read from MH i2c: E2 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 03 00 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 03 00 0D 34 00 90 00 B5 [11:23:06]RAPDU: 90 00 [11:23:06]wFMCommunicate OK [11:23:06]wFMCommunicate request_size=4 [11:23:06]MH_SAM_APDU [11:23:06]CAPDU: 80 0D 03 02 [11:23:06]Write to MH i2c: E2 08 00 0E 34 80 0D 03 02 00 00 00 00 BD [11:23:06]Write i2c OK [11:23:06]MH_I2C_Read... [11:23:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:06]Read from MH i2c: E2 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 0B 00 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 0B 00 0E 34 00 ED AF 0A 73 52 EE 09 93 90 00 B3 [11:23:06]RAPDU: ED AF 0A 73 52 EE 09 93 90 00 [11:23:06]wFMCommunicate OK [11:23:06]SAM_PROTO_SignData done [11:23:06]FM_MakeSignedData done [11:23:06]CreateOFDProtocolMessage [11:23:06]wFMCommunicate request_size=4 [11:23:06]MH_SAM_APDU [11:23:06]CAPDU: 80 11 00 00 [11:23:06]Write to MH i2c: E2 08 00 0F 34 80 11 00 00 00 00 00 00 BD [11:23:06]Write i2c OK [11:23:06]MH_I2C_Read... [11:23:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:06]Read from MH i2c: E2 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 17 00 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 17 00 0F 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0C [11:23:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:23:06]wFMCommunicate OK [11:23:06]CreateOFDProtocolMessage done [11:23:06]OFDSenderStorePacket 28893 [11:23:06]StoreOFDPacket docnum=28893 [11:23:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 28 D7 07 01 D3 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 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 1D 6B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DD 70 00 00 35 04 06 00 F3 32 AC 04 1F 55 ED AF 0A 73 52 EE 09 93 [11:23:06]CheckFolder [11:23:06]dirname=/storage/ofd_packets [11:23:06]CheckFolder done [11:23:06]ProducePacketName [11:23:06]name=ofd_packets/00028893 [11:23:06]NVStorageSaveData ofd_packets/00028893 [11:23:06]File name is /storage/ofd_packets/00028893 [11:23:06]Write 301 bytes [11:23:06]NVStorageSaveData done [11:23:06]OFDSenderStorePacket done [11:23:06]KKMCreateOFDPacket done [11:23:06]NVStorageSaveData kkm_last_timestamp [11:23:06]File name is /storage/kkm_last_timestamp [11:23:06]Write 4 bytes [11:23:06]NVStorageSaveData done [11:23:06]ExternCall_PrintAddStr [11:23:06]wPrintStart [11:23:06]Write to MH i2c: 01 00 00 10 34 44 [11:23:06]Write i2c OK [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: 01 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: 01 07 00 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: 01 07 00 10 34 00 00 00 00 00 FF 0F 59 [11:23:06]RasterBufferAndPrint [11:23:06]line Счет N : (1)347246 [11:23:06]line ИНН: 02508201610067 [11:23:06]line Контрольно-Кассовый Чек [11:23:06]line ПРОДАЖА [11:23:06]line ТРК (МРК, ГНК) : 43 [11:23:06]line Товар: 2710124500 [11:23:06]line Аи-95-К-5 [11:23:06]line 6.900 * 72.50 [11:23:06]line = 500.25 [11:23:06]line НДС 12% НСП 1% [11:23:06]line > о реализуемом товаре [11:23:06]line ОКРУГЛЕНИЕ: -0.25 [11:23:06]line ИТОГО: 500.00 [11:23:06]line Внесено: 500.00 [11:23:06]line СДАЧА: 0.00 [11:23:06]line НСП 1% : 4.43 [11:23:06]line НДС 12% : 53.12 [11:23:06]line Наличными: 500.00 [11:23:06]line Безнал.: 0.00 [11:23:06]line Место: АЗС № 108 "Партнер Нефть" [11:23:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:23:06]line СНО: Общий режим [11:23:06]line Чек 100 13.04.2024 11:23 [11:23:06]line Смена: 115 ФФД: 1.0 [11:23:06]line ЗНМ: 0300000027 [11:23:06]line РНМ: 0000138879044617 [11:23:06]line Версия ККМ: 001 [11:23:06]line ФМ: 0000000000963154 [11:23:06]line ФД: 28893 [11:23:06]line ФПД: 267398959865685 [11:23:06]line 1/tax-web-control/client/api/v1/ticket?date=20240413T112309&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28893&fm=267398959865685&tin=02508201610067®Number=0000138879044617&sum=50000 [11:23:07]OFD Sender: Processing packet 28893 [packets to send 8, broken 7] [11:23:07]ProducePacketName [11:23:07]name=ofd_packets/00028893 [11:23:07]OFD Sender: To server: pG, [11:23:07]CommunicateWithHost lk.salyk.kg:30040 [11:23:07]ConnectInit lk.salyk.kg [11:23:07]written 0, free lines is 4095 [11:23:07]Connected sock=10 [11: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 31 35 34 0F 01 00 00 28 D7 07 01 D3 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 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 1D 6B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DD 70 00 00 35 04 06 00 F3 32 AC 04 1F 55 ED AF 0A 73 52 EE 09 93 [11: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 31 35 34 4F 00 00 00 51 61 47 00 17 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 31 35 34 10 04 04 00 DD 70 00 00 F4 03 04 00 C4 15 1A 66 B6 04 01 00 00 0C F9 21 74 5C 27 45 C5 [11:23:07]CommunicateWithHost err = 0 [11:23:07]CheckOFDResponse [11:23:07]1017 (14) - 77093643461234 [11:23:07]1041 (16) - 0000000000963154 [11:23:07]1040 (4) - 28893 [11:23:07]1012 (4) - 13.04.2024 05:19 [11:23:07]1206 (1) - 0 [11:23:07]OFD Sender: Remove packet 28893 [11:23:07]ProducePacketName [11:23:07]name=ofd_packets/00028893 [11:23:07]NVStorageDeleteData [11:23:07]Write to MH i2c: 01 00 00 3A 34 6E [11:23:07]Write i2c OK [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: 01 [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: 01 07 00 [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: 01 07 00 3A 34 00 00 00 00 00 C6 0C 47 [11:23:07]RasterBufferAndPrint [11:23:07]line [11:23:07]line [11:23:07]line [11:23:07]line [11:23:07]line [11:23:07]written 0, free lines is 3274 [11:23:07]MH_Cut [11:23:07]Write to MH i2c: D1 01 00 41 34 01 47 [11:23:07]Write i2c OK [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: D1 [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: D1 01 00 [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: D1 01 00 41 34 00 46 [11:23:07]Write to MH i2c: 01 00 00 42 34 76 [11:23:07]Write i2c OK [11:23:07]MH_I2C_Read... [11:23:08]OFD Sender: No OFD packet to send [11:23:08]*** Cut start [11:23:08]*** Partial cut [11:23:08]*** CUTSNS_PIN = 1 [11:23:08]*** CUTSNS_PIN = 0 [11:23:08]*** Brake cut motor [11:23:09]Read from MH i2c: 01 [11:23:09]MH_I2C_Read... [11:23:09]*** Stop cut motor [11:23:09]*** Cut end [11:23:09]Read from MH i2c: 01 07 00 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: 01 07 00 42 34 00 00 00 00 00 FF 0F 8B [11:23:09]process_action close_receipt done [11:23:09]requested_data is exist [11:23:09]produce_requested_data [11:23:09]requested_item fm.sn is exist - process it [11:23:09]wFMCommunicate request_size=4 [11:23:09]MH_SAM_APDU [11:23:09]CAPDU: 80 11 00 00 [11:23:09]Write to MH i2c: E2 08 00 43 34 80 11 00 00 00 00 00 00 F1 [11:23:09]Write i2c OK [11:23:09]MH_I2C_Read... [11:23:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:09]Read from MH i2c: E2 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 17 00 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 17 00 43 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 40 [11:23:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:23:09]wFMCommunicate OK [11:23:09]requested_item fd.num is exist - process it [11:23:09]SAM_PROTO_GetFieldsCounters [11:23:09]wFMCommunicate request_size=4 [11:23:09]MH_SAM_APDU [11:23:09]CAPDU: 80 13 00 00 [11:23:09]Write to MH i2c: E2 08 00 44 34 80 13 00 00 00 00 00 00 F4 [11:23:09]Write i2c OK [11:23:09]MH_I2C_Read... [11:23:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:09]Read from MH i2c: E2 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 62 00 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 62 00 44 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DD 70 00 00 0E 04 04 00 73 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 1E [11: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DD 70 00 00 0E 04 04 00 73 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:23:09]wFMCommunicate OK [11:23:09]SAM_PROTO_GetFieldsCounters done [11:23:09]requested_item shift.num is exist - process it [11:23:09]requested_item shift.opened is exist - process it [11:23:09]req_shift_opened [11:23:09]FM_GetShiftState [11:23:09]SAM_PROTO_GetShiftState [11:23:09]wFMCommunicate request_size=4 [11:23:09]MH_SAM_APDU [11:23:09]CAPDU: 80 13 01 00 [11:23:09]Write to MH i2c: E2 08 00 45 34 80 13 01 00 00 00 00 00 F6 [11:23:09]Write i2c OK [11:23:09]MH_I2C_Read... [11:23:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:09]Read from MH i2c: E2 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 0E 00 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 0E 00 45 34 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 0F [11:23:09]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:23:09]wFMCommunicate OK [11:23:09]SAM_PROTO_GetShiftState done [11:23:09]FM_GetShiftState done [11:23:09]req_shift_opened done [11:23:09]requested_item shift.open_date is exist - process it [11:23:09]req_shift_open_date [11:23:09]req_shift_open_date done [11:23:09]produce_requested_data done [11:23:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28893,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [11:23:09]process_action_free close_receipt [11:23:09]json_value_free [11:23:09]json_value_free done [11:23:09]process_json_proto returns [11:23:09]Send response to host [11:23:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28893,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [11:23:09]free response buf [11:23:09]execute_script done [11:23:09]execute_script returns [11:23:09]free content buf [11:23:09]Sock 9.Close socket [11:23:09]Sock 9.Thread stoped [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:13]OFD Sender: No OFD packet to send [11:24:15]accept exits with 7 [11:24:15]New connection [11:24:15]New thread 3066928484 created [11:24:15]Thread 3066785124 joined [11:24:15]Waiting for new connection... [11:24:15] Sock 7.Parse request [11:24:15]Sock 7.Check first char [11:24:15]Sock 7.First char is OK [11:24:15]request: POST /json_proto HTTP/1.0 [11:24:15]Method: POST [11:24:15]URL: /json_proto [11:24:15]Method is POST - this is cgi request [11:24:15]url: /json_proto [11:24:15]query_string will be loaded in cgi processing [11:24:15]execute_cgi json_proto POST (null) [11:24:15]execute_cgi path=json_proto method=POST [11:24:15]POST find Content-Length [11:24:15]Host: 172.17.33.3:8080 [11:24:15]Content-Length: 677 [11:24:15]Content-Type: application/json [11:24:15] [11:24:15]POST finish read [11:24:15]Found Content-Length = 677 [11:24:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347247", "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" : 72.50, "quantity" : 6.900, "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:24:15]execute_script... [11:24: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)347247", "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" : 72.50, "quantity" : 6.900, "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:24:15]POST & json_proto [11:24:15]process_json_proto [11:24:15]json parsed OK: [11:24:15]protocol is kg_v1.0 [11:24:15]action value=close_receipt [11:24:15]process_action close_receipt [11:24:15]cmd_close_receipt [11:24:15]MH_GetDate [11:24:15]Write to MH i2c: F0 00 00 46 34 69 [11:24:15]Write i2c OK [11:24:15]MH_I2C_Read... [11:24:15]Read from MH i2c: F0 [11:24:15]MH_I2C_Read... [11:24:15]Read from MH i2c: F0 09 00 [11:24:15]MH_I2C_Read... [11:24:15]Read from MH i2c: F0 09 00 46 34 00 63 6B 1A 66 23 5B 8F 65 32 [11:24:15]GetLastDocTimeStamp 1713007389 [11:24:15]current date 1713007459 [11:24:15]FM_GetShiftState [11:24:15]SAM_PROTO_GetShiftState [11:24:15]wFMCommunicate request_size=4 [11:24:15]MH_SAM_APDU [11:24:15]CAPDU: 80 13 01 00 [11:24:15]Write to MH i2c: E2 08 00 47 34 80 13 01 00 00 00 00 00 F8 [11:24:15]Write i2c OK [11:24:15]MH_I2C_Read... [11:24:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:15]Read from MH i2c: E2 [11:24:15]MH_I2C_Read... [11:24:15]Read from MH i2c: E2 0E 00 [11:24:15]MH_I2C_Read... [11:24:15]Read from MH i2c: E2 0E 00 47 34 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 11 [11:24:15]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:24:15]wFMCommunicate OK [11:24:15]SAM_PROTO_GetShiftState done [11:24:15]FM_GetShiftState done [11:24:15]opened in 1712967615 [11:24:15]opened+sec_in_day 1713054015 [11:24:15]quantity*price = 50025 [11:24:15]sum+1 = 50026 [11:24:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 101 13.04.2024 11:24 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28894 ФПД: 162888474292261 1/tax-web-control/client/api/v1/ticket?date=20240413T112419&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28894&fm=162888474292261&tin=02508201610067®Number=0000138879044617&sum=50000 [11:24:16]StoreToDocumentArchive [11:24:16]shift 115 fd 28894 [11:24:16]save to /storage/0115/doc_00028894 [11:24:16]save last doc name /storage/0115/doc_00028894 to /storage/kkm_last_doc_name [11:24:16]save OK [11:24:16]Clear old archive folders... [11:24:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:24:16]tlvbuf is 0121FD30 [11:24:16]SAM_PROTO_ClearQueue [11:24:16]wFMCommunicate request_size=4 [11:24:16]MH_SAM_APDU [11:24:16]CAPDU: 80 09 00 00 [11:24:16]Write to MH i2c: E2 08 00 54 34 80 09 00 00 00 00 00 00 FA [11:24:16]Write i2c OK [11:24:16]MH_I2C_Read... [11:24:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:16]Read from MH i2c: E2 [11:24:16]MH_I2C_Read... [11:24:16]Read from MH i2c: E2 03 00 [11:24:16]MH_I2C_Read... [11:24:16]Read from MH i2c: E2 03 00 54 34 00 90 00 FC [11:24:16]RAPDU: 90 00 [11:24:16]wFMCommunicate OK [11:24:16]SAM_PROTO_ClearQueue done [11:24:16]KKMCreateOFDPacket [11:24:16]OFDProtocolAddRootSTLVToBuf [11:24:16]FM_MakeSignedData [11:24:16]FM_MakeSignedData [11:24:16]SAM_PROTO_SignData [11:24:16]wFMCommunicate request_size=4 [11:24:16]MH_SAM_APDU [11:24:16]CAPDU: 80 0D 01 02 [11:24:16]Write to MH i2c: E2 08 00 55 34 80 0D 01 02 00 00 00 00 02 [11:24:16]Write i2c OK [11:24:16]MH_I2C_Read... [11:24:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:16]Read from MH i2c: E2 [11:24:16]MH_I2C_Read... [11:24:16]Read from MH i2c: E2 03 00 [11:24:16]MH_I2C_Read... [11:24:16]Read from MH i2c: E2 03 00 55 34 00 90 00 FD [11:24:16]RAPDU: 90 00 [11:24:16]wFMCommunicate OK [11:24:16]wFMCommunicate request_size=255 [11:24:16]MH_SAM_APDU [11:24:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 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 65 00 00 00 F4 03 04 00 63 6B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DE 70 00 00 35 04 06 00 94 [11:24:16]Write to MH i2c: E2 02 01 56 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 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 65 00 00 00 F4 03 04 00 63 6B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DE 70 00 00 35 04 06 00 94 00 00 93 [11:24:16]Write i2c OK [11:24:16]MH_I2C_Read... [11:24:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:16]Read from MH i2c: E2 [11:24:16]MH_I2C_Read... [11:24:16]Read from MH i2c: E2 03 00 [11:24:16]MH_I2C_Read... [11:24:16]Read from MH i2c: E2 03 00 56 34 00 90 00 FE [11:24:16]RAPDU: 90 00 [11:24:16]wFMCommunicate OK [11:24:16]wFMCommunicate request_size=10 [11:24:16]MH_SAM_APDU [11:24:16]CAPDU: 80 0D 02 02 05 25 6D A5 F0 25 [11:24:16]Write to MH i2c: E2 0D 00 57 34 80 0D 02 02 05 00 25 6D A5 F0 25 00 00 5B [11:24:16]Write i2c OK [11:24:16]MH_I2C_Read... [11:24:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:16]Read from MH i2c: E2 [11:24:16]MH_I2C_Read... [11:24:16]Read from MH i2c: E2 03 00 [11:24:16]MH_I2C_Read... [11:24:16]Read from MH i2c: E2 03 00 57 34 00 90 00 FF [11:24:16]RAPDU: 90 00 [11:24:16]wFMCommunicate OK [11:24:16]wFMCommunicate request_size=4 [11:24:16]MH_SAM_APDU [11:24:16]CAPDU: 80 0D 03 02 [11:24:16]Write to MH i2c: E2 08 00 58 34 80 0D 03 02 00 00 00 00 07 [11:24:16]Write i2c OK [11:24:16]MH_I2C_Read... [11:24:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:16]Read from MH i2c: E2 [11:24:16]MH_I2C_Read... [11:24:16]Read from MH i2c: E2 0B 00 [11:24:16]MH_I2C_Read... [11:24:16]Read from MH i2c: E2 0B 00 58 34 00 E7 DA 7E 0D C2 77 D6 21 90 00 84 [11:24:16]RAPDU: E7 DA 7E 0D C2 77 D6 21 90 00 [11:24:16]wFMCommunicate OK [11:24:16]SAM_PROTO_SignData done [11:24:16]FM_MakeSignedData done [11:24:16]CreateOFDProtocolMessage [11:24:16]wFMCommunicate request_size=4 [11:24:16]MH_SAM_APDU [11:24:16]CAPDU: 80 11 00 00 [11:24:16]Write to MH i2c: E2 08 00 59 34 80 11 00 00 00 00 00 00 07 [11:24:16]Write i2c OK [11:24:16]MH_I2C_Read... [11:24:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:17]Read from MH i2c: E2 [11:24:17]MH_I2C_Read... [11:24:17]Read from MH i2c: E2 17 00 [11:24:17]MH_I2C_Read... [11:24:17]Read from MH i2c: E2 17 00 59 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 56 [11:24:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:24:17]wFMCommunicate OK [11:24:17]CreateOFDProtocolMessage done [11:24:17]OFDSenderStorePacket 28894 [11:24:17]StoreOFDPacket docnum=28894 [11:24:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 94 07 07 01 88 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 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 65 00 00 00 F4 03 04 00 63 6B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DE 70 00 00 35 04 06 00 94 25 6D A5 F0 25 E7 DA 7E 0D C2 77 D6 21 [11:24:17]CheckFolder [11:24:17]dirname=/storage/ofd_packets [11:24:17]CheckFolder done [11:24:17]ProducePacketName [11:24:17]name=ofd_packets/00028894 [11:24:17]NVStorageSaveData ofd_packets/00028894 [11:24:17]File name is /storage/ofd_packets/00028894 [11:24:17]Write 301 bytes [11:24:17]NVStorageSaveData done [11:24:17]OFDSenderStorePacket done [11:24:17]KKMCreateOFDPacket done [11:24:17]NVStorageSaveData kkm_last_timestamp [11:24:17]File name is /storage/kkm_last_timestamp [11:24:17]Write 4 bytes [11:24:17]NVStorageSaveData done [11:24:17]ExternCall_PrintAddStr [11:24:17]wPrintStart [11:24:17]Write to MH i2c: 01 00 00 5A 34 8E [11:24:17]Write i2c OK [11:24:17]MH_I2C_Read... [11:24:17]Read from MH i2c: 01 [11:24:17]MH_I2C_Read... [11:24:17]Read from MH i2c: 01 07 00 [11:24:17]MH_I2C_Read... [11:24:17]Read from MH i2c: 01 07 00 5A 34 00 00 00 00 00 FF 0F A3 [11:24:17]RasterBufferAndPrint [11:24:17]line Счет N : (1)347247 [11:24:17]line ИНН: 02508201610067 [11:24:17]line Контрольно-Кассовый Чек [11:24:17]line ПРОДАЖА [11:24:17]line ТРК (МРК, ГНК) : 33 [11:24:17]line Товар: 2710124500 [11:24:17]line Аи-95-К-5 [11:24:17]line 6.900 * 72.50 [11:24:17]line = 500.25 [11:24:17]line НДС 12% НСП 1% [11:24:17]line > о реализуемом товаре [11:24:17]line ОКРУГЛЕНИЕ: -0.25 [11:24:17]line ИТОГО: 500.00 [11:24:17]line Внесено: 500.00 [11:24:17]line СДАЧА: 0.00 [11:24:17]line НСП 1% : 4.43 [11:24:17]line НДС 12% : 53.12 [11:24:17]line Наличными: 500.00 [11:24:17]line Безнал.: 0.00 [11:24:17]line Место: АЗС № 108 "Партнер Нефть" [11:24:17]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:24:17]line СНО: Общий режим [11:24:17]line Чек 101 13.04.2024 11:24 [11:24:17]line Смена: 115 ФФД: 1.0 [11:24:17]line ЗНМ: 0300000027 [11:24:17]line РНМ: 0000138879044617 [11:24:17]line Версия ККМ: 001 [11:24:17]line ФМ: 0000000000963154 [11:24:17]line ФД: 28894 [11:24:17]line ФПД: 162888474292261 [11:24:17]line 1/tax-web-control/client/api/v1/ticket?date=20240413T112419&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28894&fm=162888474292261&tin=02508201610067®Number=0000138879044617&sum=50000 [11:24:17]OFD Sender: Processing packet 28894 [packets to send 8, broken 7] [11:24:17]ProducePacketName [11:24:17]name=ofd_packets/00028894 [11:24:17]OFD Sender: To server: pG, [11:24:17]CommunicateWithHost lk.salyk.kg:30040 [11:24:17]ConnectInit lk.salyk.kg [11:24:17]written 0, free lines is 4095 [11:24:17]Connected sock=10 [11:24: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 31 35 34 0F 01 00 00 94 07 07 01 88 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 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 65 00 00 00 F4 03 04 00 63 6B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DE 70 00 00 35 04 06 00 94 25 6D A5 F0 25 E7 DA 7E 0D C2 77 D6 21 [11:24:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 61 34 47 00 84 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 31 35 34 10 04 04 00 DE 70 00 00 F4 03 04 00 0B 16 1A 66 B6 04 01 00 00 74 F5 F0 48 E3 34 F1 FF [11:24:17]CommunicateWithHost err = 0 [11:24:17]CheckOFDResponse [11:24:17]1017 (14) - 77093643461234 [11:24:17]1041 (16) - 0000000000963154 [11:24:17]1040 (4) - 28894 [11:24:17]1012 (4) - 13.04.2024 05:20 [11:24:17]1206 (1) - 0 [11:24:17]OFD Sender: Remove packet 28894 [11:24:17]ProducePacketName [11:24:17]name=ofd_packets/00028894 [11:24:17]NVStorageDeleteData [11:24:17]Write to MH i2c: 01 00 00 84 34 B8 [11:24:17]Write i2c OK [11:24:17]MH_I2C_Read... [11:24:17]Read from MH i2c: 01 [11:24:17]MH_I2C_Read... [11:24:17]Read from MH i2c: 01 07 00 [11:24:17]MH_I2C_Read... [11:24:17]Read from MH i2c: 01 07 00 84 34 00 00 00 00 00 CC 0C 97 [11:24:17]RasterBufferAndPrint [11:24:17]line [11:24:17]line [11:24:17]line [11:24:17]line [11:24:17]line [11:24:17]written 0, free lines is 3284 [11:24:17]MH_Cut [11:24:17]Write to MH i2c: D1 01 00 8B 34 01 91 [11:24:17]Write i2c OK [11:24:17]MH_I2C_Read... [11:24:17]Read from MH i2c: D1 [11:24:17]MH_I2C_Read... [11:24:17]Read from MH i2c: D1 01 00 [11:24:17]MH_I2C_Read... [11:24:17]Read from MH i2c: D1 01 00 8B 34 00 90 [11:24:17]Write to MH i2c: 01 00 00 8C 34 C0 [11:24:17]Write i2c OK [11:24:17]MH_I2C_Read... [11:24:18]OFD Sender: No OFD packet to send [11:24:18]*** Cut start [11:24:18]*** Partial cut [11:24:18]*** CUTSNS_PIN = 1 [11:24:18]*** CUTSNS_PIN = 0 [11:24:18]*** Brake cut motor [11:24:19]Read from MH i2c: 01 [11:24:19]MH_I2C_Read... [11:24:19]*** Stop cut motor [11:24:19]*** Cut end [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 8C 34 00 00 00 00 00 FF 0F D5 [11:24:19]process_action close_receipt done [11:24:19]requested_data is exist [11:24:19]produce_requested_data [11:24:19]requested_item fm.sn is exist - process it [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 8D 34 80 11 00 00 00 00 00 00 3B [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 8D 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8A [11:24:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:24:19]wFMCommunicate OK [11:24:19]requested_item fd.num is exist - process it [11:24:19]SAM_PROTO_GetFieldsCounters [11:24:19]wFMCommunicate request_size=4 [11:24:19]MH_SAM_APDU [11:24:19]CAPDU: 80 13 00 00 [11:24:19]Write to MH i2c: E2 08 00 8E 34 80 13 00 00 00 00 00 00 3E [11:24:19]Write i2c OK [11:24:19]MH_I2C_Read... [11:24:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:19]Read from MH i2c: E2 [11:24:19]MH_I2C_Read... [11:24:19]Read from MH i2c: E2 62 00 [11:24:19]MH_I2C_Read... [11:24:19]Read from MH i2c: E2 62 00 8E 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DE 70 00 00 0E 04 04 00 73 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 6C [11:24: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DE 70 00 00 0E 04 04 00 73 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:24:19]wFMCommunicate OK [11:24:19]SAM_PROTO_GetFieldsCounters done [11:24:19]requested_item shift.num is exist - process it [11:24:19]requested_item shift.opened is exist - process it [11:24:19]req_shift_opened [11:24:19]FM_GetShiftState [11:24:19]SAM_PROTO_GetShiftState [11:24:19]wFMCommunicate request_size=4 [11:24:19]MH_SAM_APDU [11:24:19]CAPDU: 80 13 01 00 [11:24:19]Write to MH i2c: E2 08 00 8F 34 80 13 01 00 00 00 00 00 40 [11:24:19]Write i2c OK [11:24:19]MH_I2C_Read... [11:24:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:19]Read from MH i2c: E2 [11:24:19]MH_I2C_Read... [11:24:19]Read from MH i2c: E2 0E 00 [11:24:19]MH_I2C_Read... [11:24:19]Read from MH i2c: E2 0E 00 8F 34 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 59 [11:24:19]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:24:19]wFMCommunicate OK [11:24:19]SAM_PROTO_GetShiftState done [11:24:19]FM_GetShiftState done [11:24:19]req_shift_opened done [11:24:19]requested_item shift.open_date is exist - process it [11:24:19]req_shift_open_date [11:24:19]req_shift_open_date done [11:24:19]produce_requested_data done [11:24:19]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28894,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [11:24:19]process_action_free close_receipt [11:24:19]json_value_free [11:24:19]json_value_free done [11:24:19]process_json_proto returns [11:24:19]Send response to host [11:24:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28894,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [11:24:19]free response buf [11:24:19]execute_script done [11:24:19]execute_script returns [11:24:19]free content buf [11:24:19]Sock 7.Close socket [11:24:19]Sock 7.Thread stoped [11:24:23]OFD Sender: No OFD packet to send [11:24:28]OFD Sender: No OFD packet to send [11:24:33]OFD Sender: No OFD packet to send [11:24:38]OFD Sender: No OFD packet to send [11:24:43]OFD Sender: No OFD packet to send [11:24:48]OFD Sender: No OFD packet to send [11:24:53]OFD Sender: No OFD packet to send [11:24:58]OFD Sender: No OFD packet to send [11:25:03]OFD Sender: No OFD packet to send [11:25:08]OFD Sender: No OFD packet to send [11:25:13]OFD Sender: No OFD packet to send [11:25:18]OFD Sender: No OFD packet to send [11:25:23]OFD Sender: No OFD packet to send [11:25:28]OFD Sender: No OFD packet to send [11:25:33]OFD Sender: No OFD packet to send [11:25:38]OFD Sender: No OFD packet to send [11:25:43]OFD Sender: No OFD packet to send [11:25:48]OFD Sender: No OFD packet to send [11:25:53]OFD Sender: No OFD packet to send [11:25:58]OFD Sender: No OFD packet to send [11:26:03]OFD Sender: No OFD packet to send [11:26:08]OFD Sender: No OFD packet to send [11:26:13]OFD Sender: No OFD packet to send [11:26:18]OFD Sender: No OFD packet to send [11:26:23]OFD Sender: No OFD packet to send [11:26:28]OFD Sender: No OFD packet to send [11:26:33]OFD Sender: No OFD packet to send [11:26:38]OFD Sender: No OFD packet to send [11:26:43]OFD Sender: No OFD packet to send [11:26:48]OFD Sender: No OFD packet to send [11:26:53]OFD Sender: No OFD packet to send [11:26:58]OFD Sender: No OFD packet to send [11:27:03]OFD Sender: No OFD packet to send [11:27:08]OFD Sender: No OFD packet to send [11:27:13]OFD Sender: No OFD packet to send [11:27:18]OFD Sender: No OFD packet to send [11:27:23]OFD Sender: No OFD packet to send [11:27:28]OFD Sender: No OFD packet to send [11:27:33]OFD Sender: No OFD packet to send [11:27:38]OFD Sender: No OFD packet to send [11:27:43]OFD Sender: No OFD packet to send [11:27:48]OFD Sender: No OFD packet to send [11:27:53]OFD Sender: No OFD packet to send [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:08]OFD Sender: No OFD packet to send [11:28:13]OFD Sender: No OFD packet to send [11:28:18]OFD Sender: No OFD packet to send [11:28:23]OFD Sender: No OFD packet to send [11:28:28]OFD Sender: No OFD packet to send [11:28:33]OFD Sender: No OFD packet to send [11:28:37]accept exits with 9 [11:28:37]New connection [11:28:37]New thread 3066785124 created [11:28:37]Thread 3066928484 joined [11:28:37]Waiting for new connection... [11:28:37] Sock 9.Parse request [11:28:37]Sock 9.Check first char [11:28:37]Sock 9.First char is OK [11:28:37]request: POST /json_proto HTTP/1.0 [11:28:37]Method: POST [11:28:37]URL: /json_proto [11:28:37]Method is POST - this is cgi request [11:28:37]url: /json_proto [11:28:37]query_string will be loaded in cgi processing [11:28:37]execute_cgi json_proto POST (null) [11:28:37]execute_cgi path=json_proto method=POST [11:28:37]POST find Content-Length [11:28:37]Host: 172.17.33.3:8080 [11:28:37]Content-Length: 670 [11:28:37]Content-Type: application/json [11:28:37] [11:28:37]POST finish read [11:28:37]Found Content-Length = 670 [11:28:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 9.190, "sum" : 600.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:37]execute_script... [11:28:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 9.190, "sum" : 600.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:37]POST & json_proto [11:28:37]process_json_proto [11:28:37]json parsed OK: [11:28:37]protocol is kg_v1.0 [11:28:37]action value=close_receipt [11:28:37]process_action close_receipt [11:28:37]cmd_close_receipt [11:28:37]MH_GetDate [11:28:37]Write to MH i2c: F0 00 00 90 34 B3 [11:28:37]Write i2c OK [11:28:37]MH_I2C_Read... [11:28:37]Read from MH i2c: F0 [11:28:37]MH_I2C_Read... [11:28:37]Read from MH i2c: F0 09 00 [11:28:37]MH_I2C_Read... [11:28:37]Read from MH i2c: F0 09 00 90 34 00 6A 6C 1A 66 23 5B 8F 65 84 [11:28:37]GetLastDocTimeStamp 1713007459 [11:28:37]current date 1713007722 [11:28:37]FM_GetShiftState [11:28:37]SAM_PROTO_GetShiftState [11:28:37]wFMCommunicate request_size=4 [11:28:37]MH_SAM_APDU [11:28:37]CAPDU: 80 13 01 00 [11:28:37]Write to MH i2c: E2 08 00 91 34 80 13 01 00 00 00 00 00 42 [11:28:37]Write i2c OK [11:28:37]MH_I2C_Read... [11:28:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:37]Read from MH i2c: E2 [11:28:37]MH_I2C_Read... [11:28:37]Read from MH i2c: E2 0E 00 [11:28:37]MH_I2C_Read... [11:28:37]Read from MH i2c: E2 0E 00 91 34 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 5B [11:28:37]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:28:37]wFMCommunicate OK [11:28:37]SAM_PROTO_GetShiftState done [11:28:37]FM_GetShiftState done [11:28:37]opened in 1712967615 [11:28:37]opened+sec_in_day 1713054015 [11:28:37]quantity*price = 60010 [11:28:37]sum+1 = 60012 [11:28:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 102 13.04.2024 11:28 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28895 ФПД: 221820683510332 1/tax-web-control/client/api/v1/ticket?date=20240413T112842&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28895&fm=221820683510332&tin=02508201610067®Number=0000138879044617&sum=60000 [11:28:38]StoreToDocumentArchive [11:28:38]shift 115 fd 28895 [11:28:38]save to /storage/0115/doc_00028895 [11:28:38]save last doc name /storage/0115/doc_00028895 to /storage/kkm_last_doc_name [11:28:38]save OK [11:28:38]Clear old archive folders... [11:28:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:28:38]tlvbuf is 01284430 [11:28:38]SAM_PROTO_ClearQueue [11:28:38]wFMCommunicate request_size=4 [11:28:38]MH_SAM_APDU [11:28:38]CAPDU: 80 09 00 00 [11:28:38]Write to MH i2c: E2 08 00 9E 34 80 09 00 00 00 00 00 00 44 [11:28:38]Write i2c OK [11:28:38]MH_I2C_Read... [11:28:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:39]Read from MH i2c: E2 [11:28:39]MH_I2C_Read... [11:28:39]Read from MH i2c: E2 03 00 [11:28:39]MH_I2C_Read... [11:28:39]Read from MH i2c: E2 03 00 9E 34 00 90 00 46 [11:28:39]RAPDU: 90 00 [11:28:39]wFMCommunicate OK [11:28:39]SAM_PROTO_ClearQueue done [11:28:39]KKMCreateOFDPacket [11:28:39]OFDProtocolAddRootSTLVToBuf [11:28:39]FM_MakeSignedData [11:28:39]FM_MakeSignedData [11:28:39]SAM_PROTO_SignData [11:28:39]wFMCommunicate request_size=4 [11:28:39]MH_SAM_APDU [11:28:39]CAPDU: 80 0D 01 02 [11:28:39]Write to MH i2c: E2 08 00 9F 34 80 0D 01 02 00 00 00 00 4C [11:28:39]Write i2c OK [11:28:39]MH_I2C_Read... [11:28:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:39]Read from MH i2c: E2 [11:28:39]MH_I2C_Read... [11:28:39]Read from MH i2c: E2 03 00 [11:28:39]MH_I2C_Read... [11:28:39]Read from MH i2c: E2 03 00 9F 34 00 90 00 47 [11:28:39]RAPDU: 90 00 [11:28:39]wFMCommunicate OK [11:28:39]wFMCommunicate request_size=255 [11:28:39]MH_SAM_APDU [11:28:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 66 00 00 00 F4 03 04 00 6A 6C 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DF 70 00 00 35 04 06 00 [11:28:39]Write to MH i2c: E2 02 01 A0 34 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 66 00 00 00 F4 03 04 00 6A 6C 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DF 70 00 00 35 04 06 00 00 00 3A [11:28:39]Write i2c OK [11:28:39]MH_I2C_Read... [11:28:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:39]Read from MH i2c: E2 [11:28:39]MH_I2C_Read... [11:28:39]Read from MH i2c: E2 03 00 [11:28:39]MH_I2C_Read... [11:28:39]Read from MH i2c: E2 03 00 A0 34 00 90 00 48 [11:28:39]RAPDU: 90 00 [11:28:39]wFMCommunicate OK [11:28:39]wFMCommunicate request_size=11 [11:28:39]MH_SAM_APDU [11:28:39]CAPDU: 80 0D 02 02 06 C9 BE A7 0B 62 3C [11:28:39]Write to MH i2c: E2 0E 00 A1 34 80 0D 02 02 06 00 C9 BE A7 0B 62 3C 00 00 32 [11:28:39]Write i2c OK [11:28:39]MH_I2C_Read... [11:28:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:39]Read from MH i2c: E2 [11:28:39]MH_I2C_Read... [11:28:39]Read from MH i2c: E2 03 00 [11:28:39]MH_I2C_Read... [11:28:39]Read from MH i2c: E2 03 00 A1 34 00 90 00 49 [11:28:39]RAPDU: 90 00 [11:28:39]wFMCommunicate OK [11:28:39]wFMCommunicate request_size=4 [11:28:39]MH_SAM_APDU [11:28:39]CAPDU: 80 0D 03 02 [11:28:39]Write to MH i2c: E2 08 00 A2 34 80 0D 03 02 00 00 00 00 51 [11:28:39]Write i2c OK [11:28:39]MH_I2C_Read... [11:28:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:39]Read from MH i2c: E2 [11:28:39]MH_I2C_Read... [11:28:39]Read from MH i2c: E2 0B 00 [11:28:39]MH_I2C_Read... [11:28:39]Read from MH i2c: E2 0B 00 A2 34 00 E9 5E CF AE 14 22 A8 EC 90 00 E0 [11:28:39]RAPDU: E9 5E CF AE 14 22 A8 EC 90 00 [11:28:39]wFMCommunicate OK [11:28:39]SAM_PROTO_SignData done [11:28:39]FM_MakeSignedData done [11:28:39]CreateOFDProtocolMessage [11:28:39]wFMCommunicate request_size=4 [11:28:39]MH_SAM_APDU [11:28:39]CAPDU: 80 11 00 00 [11:28:39]Write to MH i2c: E2 08 00 A3 34 80 11 00 00 00 00 00 00 51 [11:28:39]Write i2c OK [11:28:39]MH_I2C_Read... [11:28:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:39]Read from MH i2c: E2 [11:28:39]MH_I2C_Read... [11:28:39]Read from MH i2c: E2 17 00 [11:28:39]MH_I2C_Read... [11:28:39]Read from MH i2c: E2 17 00 A3 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A0 [11:28:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:28:39]wFMCommunicate OK [11:28:39]CreateOFDProtocolMessage done [11:28:39]OFDSenderStorePacket 28895 [11:28:39]StoreOFDPacket docnum=28895 [11:28:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 82 92 08 01 D0 76 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 66 00 00 00 F4 03 04 00 6A 6C 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DF 70 00 00 35 04 06 00 C9 BE A7 0B 62 3C E9 5E CF AE 14 22 A8 EC [11:28:39]CheckFolder [11:28:39]dirname=/storage/ofd_packets [11:28:39]CheckFolder done [11:28:39]ProducePacketName [11:28:39]name=ofd_packets/00028895 [11:28:39]NVStorageSaveData ofd_packets/00028895 [11:28:39]File name is /storage/ofd_packets/00028895 [11:28:39]Write 302 bytes [11:28:39]NVStorageSaveData done [11:28:39]OFDSenderStorePacket done [11:28:39]KKMCreateOFDPacket done [11:28:39]NVStorageSaveData kkm_last_timestamp [11:28:39]File name is /storage/kkm_last_timestamp [11:28:39]Write 4 bytes [11:28:39]NVStorageSaveData done [11:28:39]ExternCall_PrintAddStr [11:28:39]wPrintStart [11:28:39]Write to MH i2c: 01 00 00 A4 34 D8 [11:28:39]Write i2c OK [11:28:39]MH_I2C_Read... [11:28:39]Read from MH i2c: 01 [11:28:39]MH_I2C_Read... [11:28:39]Read from MH i2c: 01 07 00 [11:28:39]MH_I2C_Read... [11:28:39]Read from MH i2c: 01 07 00 A4 34 00 00 00 00 00 FF 0F ED [11:28:39]RasterBufferAndPrint [11:28:39]line Счет N : (1)347248 [11:28:39]line ИНН: 02508201610067 [11:28:39]line Контрольно-Кассовый Чек [11:28:39]line ПРОДАЖА [11:28:39]line ТРК (МРК, ГНК) : 22 [11:28:39]line Товар: 2710124130 [11:28:39]line SUPER-92-К-5 [11:28:39]line 9.190 * 65.30 [11:28:39]line = 600.11 [11:28:39]line НДС 12% НСП 1% [11:28:39]line > о реализуемом товаре [11:28:39]line ОКРУГЛЕНИЕ: -0.11 [11:28:39]line ИТОГО: 600.00 [11:28:39]line Внесено: 600.00 [11:28:39]line СДАЧА: 0.00 [11:28:39]line НСП 1% : 5.31 [11:28:39]line НДС 12% : 63.73 [11:28:39]line Наличными: 600.00 [11:28:39]line Безнал.: 0.00 [11:28:39]line Место: АЗС № 108 "Партнер Нефть" [11:28:39]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:28:39]line СНО: Общий режим [11:28:39]line Чек 102 13.04.2024 11:28 [11:28:39]line Смена: 115 ФФД: 1.0 [11:28:39]line ЗНМ: 0300000027 [11:28:39]line РНМ: 0000138879044617 [11:28:39]line Версия ККМ: 001 [11:28:39]line ФМ: 0000000000963154 [11:28:39]line ФД: 28895 [11:28:39]line ФПД: 221820683510332 [11:28:39]line 1/tax-web-control/client/api/v1/ticket?date=20240413T112842&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28895&fm=221820683510332&tin=02508201610067®Number=0000138879044617&sum=60000 [11:28:39]OFD Sender: Processing packet 28895 [packets to send 8, broken 7] [11:28:39]ProducePacketName [11:28:39]name=ofd_packets/00028895 [11:28:39]OFD Sender: To server: pG, [11:28:39]CommunicateWithHost lk.salyk.kg:30040 [11:28:39]ConnectInit lk.salyk.kg [11:28:39]written 0, free lines is 4095 [11:28:39]Connected sock=10 [11:28: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 31 35 34 10 01 00 00 82 92 08 01 D0 76 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B 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 66 00 00 00 F4 03 04 00 6A 6C 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 DF 70 00 00 35 04 06 00 C9 BE A7 0B 62 3C E9 5E CF AE 14 22 A8 EC [11:28:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 00 95 47 00 27 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 31 35 34 10 04 04 00 DF 70 00 00 F4 03 04 00 11 17 1A 66 B6 04 01 00 00 03 B9 02 62 4A 68 8B B4 [11:28:40]CommunicateWithHost err = 0 [11:28:40]CheckOFDResponse [11:28:40]1017 (14) - 77093643461234 [11:28:40]1041 (16) - 0000000000963154 [11:28:40]1040 (4) - 28895 [11:28:40]1012 (4) - 13.04.2024 05:24 [11:28:40]1206 (1) - 0 [11:28:40]OFD Sender: Remove packet 28895 [11:28:40]ProducePacketName [11:28:40]name=ofd_packets/00028895 [11:28:40]NVStorageDeleteData [11:28:40]Write to MH i2c: 01 00 00 CE 34 02 [11:28:40]Write i2c OK [11:28:40]MH_I2C_Read... [11:28:40]Read from MH i2c: 01 [11:28:40]MH_I2C_Read... [11:28:40]Read from MH i2c: 01 07 00 [11:28:40]MH_I2C_Read... [11:28:40]Read from MH i2c: 01 07 00 CE 34 00 00 00 00 00 CD 0C E2 [11:28:40]RasterBufferAndPrint [11:28:40]line [11:28:40]line [11:28:40]line [11:28:40]line [11:28:40]line [11:28:40]written 0, free lines is 3283 [11:28:40]MH_Cut [11:28:40]Write to MH i2c: D1 01 00 D5 34 01 DB [11:28:40]Write i2c OK [11:28:40]MH_I2C_Read... [11:28:40]Read from MH i2c: D1 [11:28:40]MH_I2C_Read... [11:28:40]Read from MH i2c: D1 01 00 [11:28:40]MH_I2C_Read... [11:28:40]Read from MH i2c: D1 01 00 D5 34 00 DA [11:28:40]Write to MH i2c: 01 00 00 D6 34 0A [11:28:40]Write i2c OK [11:28:40]MH_I2C_Read... [11:28:40]OFD Sender: No OFD packet to send [11:28:41]*** Cut start [11:28:41]*** Partial cut [11:28:41]*** CUTSNS_PIN = 1 [11:28:41]*** CUTSNS_PIN = 0 [11:28:41]*** Brake cut motor [11:28:41]Read from MH i2c: 01 [11:28:41]MH_I2C_Read... [11:28:41]*** Stop cut motor [11:28:41]*** Cut end [11:28:41]Read from MH i2c: 01 07 00 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: 01 07 00 D6 34 00 00 00 00 00 FF 0F 1F [11:28:41]process_action close_receipt done [11:28:41]requested_data is exist [11:28:41]produce_requested_data [11:28:41]requested_item fm.sn is exist - process it [11:28:41]wFMCommunicate request_size=4 [11:28:41]MH_SAM_APDU [11:28:41]CAPDU: 80 11 00 00 [11:28:41]Write to MH i2c: E2 08 00 D7 34 80 11 00 00 00 00 00 00 85 [11:28:41]Write i2c OK [11:28:41]MH_I2C_Read... [11:28:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:41]Read from MH i2c: E2 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 17 00 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 17 00 D7 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D4 [11:28:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:28:41]wFMCommunicate OK [11:28:41]requested_item fd.num is exist - process it [11:28:41]SAM_PROTO_GetFieldsCounters [11:28:41]wFMCommunicate request_size=4 [11:28:41]MH_SAM_APDU [11:28:41]CAPDU: 80 13 00 00 [11:28:41]Write to MH i2c: E2 08 00 D8 34 80 13 00 00 00 00 00 00 88 [11:28:41]Write i2c OK [11:28:41]MH_I2C_Read... [11:28:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:41]Read from MH i2c: E2 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 62 00 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 62 00 D8 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DF 70 00 00 0E 04 04 00 73 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 BA [11:28: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DF 70 00 00 0E 04 04 00 73 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:28:41]wFMCommunicate OK [11:28:41]SAM_PROTO_GetFieldsCounters done [11:28:41]requested_item shift.num is exist - process it [11:28:41]requested_item shift.opened is exist - process it [11:28:41]req_shift_opened [11:28:41]FM_GetShiftState [11:28:41]SAM_PROTO_GetShiftState [11:28:41]wFMCommunicate request_size=4 [11:28:41]MH_SAM_APDU [11:28:41]CAPDU: 80 13 01 00 [11:28:41]Write to MH i2c: E2 08 00 D9 34 80 13 01 00 00 00 00 00 8A [11:28:41]Write i2c OK [11:28:41]MH_I2C_Read... [11:28:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:42]Read from MH i2c: E2 [11:28:42]MH_I2C_Read... [11:28:42]Read from MH i2c: E2 0E 00 [11:28:42]MH_I2C_Read... [11:28:42]Read from MH i2c: E2 0E 00 D9 34 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A3 [11:28:42]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:28:42]wFMCommunicate OK [11:28:42]SAM_PROTO_GetShiftState done [11:28:42]FM_GetShiftState done [11:28:42]req_shift_opened done [11:28:42]requested_item shift.open_date is exist - process it [11:28:42]req_shift_open_date [11:28:42]req_shift_open_date done [11:28:42]produce_requested_data done [11:28:42]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28895,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [11:28:42]process_action_free close_receipt [11:28:42]json_value_free [11:28:42]json_value_free done [11:28:42]process_json_proto returns [11:28:42]Send response to host [11:28:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28895,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [11:28:42]free response buf [11:28:42]execute_script done [11:28:42]execute_script returns [11:28:42]free content buf [11:28:42]Sock 9.Close socket [11:28:42]Sock 9.Thread stoped [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:05]OFD Sender: No OFD packet to send [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]OFD Sender: No OFD packet to send [11:30:00]OFD Sender: No OFD packet to send [11:30:05]OFD Sender: No OFD packet to send [11:30:10]OFD Sender: No OFD packet to send [11:30:15]OFD Sender: No OFD packet to send [11:30:20]OFD Sender: No OFD packet to send [11:30:25]OFD Sender: No OFD packet to send [11:30:30]OFD Sender: No OFD packet to send [11:30:35]OFD Sender: No OFD packet to send [11:30:40]OFD Sender: No OFD packet to send [11:30:45]OFD Sender: No OFD packet to send [11:30:50]OFD Sender: No OFD packet to send [11:30:55]OFD Sender: No OFD packet to send [11:31:00]OFD Sender: No OFD packet to send [11:31:05]OFD Sender: No OFD packet to send [11:31:10]OFD Sender: No OFD packet to send [11:31:15]OFD Sender: No OFD packet to send [11:31:20]OFD Sender: No OFD packet to send [11:31:25]OFD Sender: No OFD packet to send [11:31:30]OFD Sender: No OFD packet to send [11:31:35]OFD Sender: No OFD packet to send [11:31:40]OFD Sender: No OFD packet to send [11:31:45]OFD Sender: No OFD packet to send [11:31:50]OFD Sender: No OFD packet to send [11:31:55]OFD Sender: No OFD packet to send [11:32:00]OFD Sender: No OFD packet to send [11:32:05]OFD Sender: No OFD packet to send [11:32:10]OFD Sender: No OFD packet to send [11:32:15]OFD Sender: No OFD packet to send [11:32:17]accept exits with 7 [11:32:17]New connection [11:32:17]New thread 3066928484 created [11:32:17]Thread 3066785124 joined [11:32:17]Waiting for new connection... [11:32:17] Sock 7.Parse request [11:32:17]Sock 7.Check first char [11:32:17]Sock 7.First char is OK [11:32:17]request: POST /json_proto HTTP/1.0 [11:32:17]Method: POST [11:32:17]URL: /json_proto [11:32:17]Method is POST - this is cgi request [11:32:17]url: /json_proto [11:32:17]query_string will be loaded in cgi processing [11:32:17]execute_cgi json_proto POST (null) [11:32:17]execute_cgi path=json_proto method=POST [11:32:17]POST find Content-Length [11:32:17]Host: 172.17.33.3:8080 [11:32:17]Content-Length: 1165 [11:32:17]Content-Type: application/json [11:32:17] [11:32:17]POST finish read [11:32:17]Found Content-Length = 1165 [11:32:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347249\u000A13.04.2024 11:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 12.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 868.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30097341\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:17]execute_script... [11:32:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347249\u000A13.04.2024 11:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 12.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 868.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30097341\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:17]POST & json_proto [11:32:17]process_json_proto [11:32:17]json parsed OK: [11:32:17]protocol is kg_v1.0 [11:32:17]action value=print_text [11:32:17]process_action print_text [11:32:17]cmd_print_text [11:32:17]ExternCall_PrintAddStr [11:32:17]wPrintStart [11:32:17]Write to MH i2c: 01 00 00 DA 34 0E [11:32:17]Write i2c OK [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: 01 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: 01 07 00 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: 01 07 00 DA 34 00 00 00 00 00 FF 0F 23 [11:32:17]RasterBufferAndPrint [11:32:17]line *****ТОВАРНЫЙ ЧЕК***** [11:32:17]line АЗС 108 [11:32:17]line Партнер нефть [11:32:17]line 02508201610067 [11:32:17]line Кассир : Шадыканова Ж. [11:32:17]line Счет N : (1)347249 [11:32:17]line 13.04.2024 11:14 [11:32:17]line ПРОДАЖА [11:32:17]line ТРК (МРК, ГНК): 51 [11:32:17]line Вид ГСМ : 2710194210 [11:32:17]line ДТ-К-5 [11:32:17]line 12.000 x 72.40 [11:32:17]line ИТОГ: 868.80 [11:32:17]line Тип оплаты: Талоны: ТК ГПНА Online [11:32:17]line 30097341 [11:32:17]line ______________________ [11:32:17]line (подпись) [11:32:17]written 0, free lines is 4095 [11:32:17]Write to MH i2c: 01 00 00 EF 34 23 [11:32:17]Write i2c OK [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: 01 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: 01 07 00 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: 01 07 00 EF 34 00 00 00 00 00 F3 0D 2A [11:32:17]RasterBufferAndPrint [11:32:17]line [11:32:17]line [11:32:17]line [11:32:17]line [11:32:17]line [11:32:17]written 0, free lines is 3573 [11:32:17]MH_Cut [11:32:17]Write to MH i2c: D1 01 00 F6 34 01 FC [11:32:17]Write i2c OK [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: D1 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: D1 01 00 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: D1 01 00 F6 34 00 FB [11:32:17]Write to MH i2c: 01 00 00 F7 34 2B [11:32:17]Write i2c OK [11:32:17]MH_I2C_Read... [11:32:17]*** Cut start [11:32:17]*** Partial cut [11:32:17]*** CUTSNS_PIN = 1 [11:32:17]*** CUTSNS_PIN = 0 [11:32:18]*** Brake cut motor [11:32:18]Read from MH i2c: 01 [11:32:18]MH_I2C_Read... [11:32:18]*** Stop cut motor [11:32:18]*** Cut end [11:32:18]Read from MH i2c: 01 07 00 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: 01 07 00 F7 34 00 00 00 00 00 FF 0F 40 [11:32:18]process_action print_text done [11:32:18]requested_data is exist [11:32:18]produce_requested_data [11:32:18]requested_item fm.sn is exist - process it [11:32:18]wFMCommunicate request_size=4 [11:32:18]MH_SAM_APDU [11:32:18]CAPDU: 80 11 00 00 [11:32:18]Write to MH i2c: E2 08 00 F8 34 80 11 00 00 00 00 00 00 A6 [11:32:18]Write i2c OK [11:32:18]MH_I2C_Read... [11:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:18]Read from MH i2c: E2 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: E2 17 00 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: E2 17 00 F8 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F5 [11:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:32:18]wFMCommunicate OK [11:32:18]requested_item fd.num is exist - process it [11:32:18]SAM_PROTO_GetFieldsCounters [11:32:18]wFMCommunicate request_size=4 [11:32:18]MH_SAM_APDU [11:32:18]CAPDU: 80 13 00 00 [11:32:18]Write to MH i2c: E2 08 00 F9 34 80 13 00 00 00 00 00 00 A9 [11:32:18]Write i2c OK [11:32:18]MH_I2C_Read... [11:32:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:18]Read from MH i2c: E2 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: E2 62 00 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: E2 62 00 F9 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DF 70 00 00 0E 04 04 00 73 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 DB [11:32: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 DF 70 00 00 0E 04 04 00 73 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:32:18]wFMCommunicate OK [11:32:18]SAM_PROTO_GetFieldsCounters done [11:32:18]requested_item shift.num is exist - process it [11:32:18]requested_item shift.opened is exist - process it [11:32:18]req_shift_opened [11:32:18]FM_GetShiftState [11:32:18]SAM_PROTO_GetShiftState [11:32:18]wFMCommunicate request_size=4 [11:32:18]MH_SAM_APDU [11:32:18]CAPDU: 80 13 01 00 [11:32:18]Write to MH i2c: E2 08 00 FA 34 80 13 01 00 00 00 00 00 AB [11:32:18]Write i2c OK [11:32:18]MH_I2C_Read... [11:32:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:18]Read from MH i2c: E2 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: E2 0E 00 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: E2 0E 00 FA 34 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 C4 [11:32:18]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:32:18]wFMCommunicate OK [11:32:18]SAM_PROTO_GetShiftState done [11:32:18]FM_GetShiftState done [11:32:18]req_shift_opened done [11:32:18]requested_item shift.open_date is exist - process it [11:32:18]req_shift_open_date [11:32:18]req_shift_open_date done [11:32:18]produce_requested_data done [11:32:18]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28895,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [11:32:18]process_action_free print_text [11:32:18]json_value_free [11:32:18]json_value_free done [11:32:18]process_json_proto returns [11:32:18]Send response to host [11:32:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28895,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [11:32:18]free response buf [11:32:18]execute_script done [11:32:18]execute_script returns [11:32:18]free content buf [11:32:18]Sock 7.Close socket [11:32:18]Sock 7.Thread stoped [11:32:20]OFD Sender: No OFD packet to send [11:32:25]OFD Sender: No OFD packet to send [11:32:30]OFD Sender: No OFD packet to send [11:32:35]OFD Sender: No OFD packet to send [11:32:40]OFD Sender: No OFD packet to send [11:32:45]OFD Sender: No OFD packet to send [11:32:50]OFD Sender: No OFD packet to send [11:32:55]OFD Sender: No OFD packet to send [11:33:00]OFD Sender: No OFD packet to send [11:33:05]OFD Sender: No OFD packet to send [11:33:10]OFD Sender: No OFD packet to send [11:33:15]OFD Sender: No OFD packet to send [11:33:20]OFD Sender: No OFD packet to send [11:33:25]OFD Sender: No OFD packet to send [11:33:30]OFD Sender: No OFD packet to send [11:33:35]OFD Sender: No OFD packet to send [11:33:40]OFD Sender: No OFD packet to send [11:33:45]OFD Sender: No OFD packet to send [11:33:50]OFD Sender: No OFD packet to send [11:33:55]OFD Sender: No OFD packet to send [11:34:00]OFD Sender: No OFD packet to send [11:34:05]OFD Sender: No OFD packet to send [11:34:10]OFD Sender: No OFD packet to send [11:34:15]OFD Sender: No OFD packet to send [11:34:20]OFD Sender: No OFD packet to send [11:34:25]OFD Sender: No OFD packet to send [11:34:30]OFD Sender: No OFD packet to send [11:34:35]OFD Sender: No OFD packet to send [11:34:40]OFD Sender: No OFD packet to send [11:34:45]OFD Sender: No OFD packet to send [11:34:50]OFD Sender: No OFD packet to send [11:34:55]OFD Sender: No OFD packet to send [11:35:00]OFD Sender: No OFD packet to send [11:35:05]OFD Sender: No OFD packet to send [11:35:10]OFD Sender: No OFD packet to send [11:35:15]OFD Sender: No OFD packet to send [11:35:20]OFD Sender: No OFD packet to send [11:35:25]OFD Sender: No OFD packet to send [11:35:30]OFD Sender: No OFD packet to send [11:35:35]OFD Sender: No OFD packet to send [11:35:40]OFD Sender: No OFD packet to send [11:35:45]OFD Sender: No OFD packet to send [11:35:50]OFD Sender: No OFD packet to send [11:35:55]OFD Sender: No OFD packet to send [11:36:00]OFD Sender: No OFD packet to send [11:36:05]OFD Sender: No OFD packet to send [11:36:10]OFD Sender: No OFD packet to send [11:36:15]OFD Sender: No OFD packet to send [11:36:21]OFD Sender: No OFD packet to send [11:36:26]OFD Sender: No OFD packet to send [11:36:31]OFD Sender: No OFD packet to send [11:36:36]OFD Sender: No OFD packet to send [11:36:41]OFD Sender: No OFD packet to send [11:36:46]OFD Sender: No OFD packet to send [11:36:51]OFD Sender: No OFD packet to send [11:36:56]OFD Sender: No OFD packet to send [11:37:01]OFD Sender: No OFD packet to send [11:37:06]OFD Sender: No OFD packet to send [11:37:11]OFD Sender: No OFD packet to send [11:37:16]OFD Sender: No OFD packet to send [11:37:21]OFD Sender: No OFD packet to send [11:37:26]OFD Sender: No OFD packet to send [11:37:31]OFD Sender: No OFD packet to send [11:37:36]OFD Sender: No OFD packet to send [11:37:41]OFD Sender: No OFD packet to send [11:37:46]OFD Sender: No OFD packet to send [11:37:51]OFD Sender: No OFD packet to send [11:37:56]OFD Sender: No OFD packet to send [11:38:01]OFD Sender: No OFD packet to send [11:38:06]OFD Sender: No OFD packet to send [11:38:11]OFD Sender: No OFD packet to send [11:38:16]OFD Sender: No OFD packet to send [11:38:21]OFD Sender: No OFD packet to send [11:38:26]OFD Sender: No OFD packet to send [11:38:31]OFD Sender: No OFD packet to send [11:38:36]OFD Sender: No OFD packet to send [11:38:41]OFD Sender: No OFD packet to send [11:38:46]OFD Sender: No OFD packet to send [11:38:51]OFD Sender: No OFD packet to send [11:38:56]OFD Sender: No OFD packet to send [11:39:01]OFD Sender: No OFD packet to send [11:39:06]OFD Sender: No OFD packet to send [11:39:11]OFD Sender: No OFD packet to send [11:39:16]OFD Sender: No OFD packet to send [11:39:21]OFD Sender: No OFD packet to send [11:39:26]OFD Sender: No OFD packet to send [11:39:31]OFD Sender: No OFD packet to send [11:39:36]OFD Sender: No OFD packet to send [11:39:41]OFD Sender: No OFD packet to send [11:39:46]OFD Sender: No OFD packet to send [11:39:51]OFD Sender: No OFD packet to send [11:39:56]OFD Sender: No OFD packet to send [11:40:01]OFD Sender: No OFD packet to send [11:40:06]OFD Sender: No OFD packet to send [11:40:11]OFD Sender: No OFD packet to send [11:40:16]OFD Sender: No OFD packet to send [11:40:21]OFD Sender: No OFD packet to send [11:40:26]OFD Sender: No OFD packet to send [11:40:31]OFD Sender: No OFD packet to send [11:40:36]OFD Sender: No OFD packet to send [11:40:41]OFD Sender: No OFD packet to send [11:40:46]OFD Sender: No OFD packet to send [11:40:51]OFD Sender: No OFD packet to send [11:40:56]OFD Sender: No OFD packet to send [11:41:01]OFD Sender: No OFD packet to send [11:41:06]OFD Sender: No OFD packet to send [11:41:11]OFD Sender: No OFD packet to send [11:41:16]OFD Sender: No OFD packet to send [11:41:21]OFD Sender: No OFD packet to send [11:41:26]OFD Sender: No OFD packet to send [11:41:31]OFD Sender: No OFD packet to send [11:41:36]OFD Sender: No OFD packet to send [11:41:41]OFD Sender: No OFD packet to send [11:41:46]OFD Sender: No OFD packet to send [11:41:51]OFD Sender: No OFD packet to send [11:41:56]OFD Sender: No OFD packet to send [11:42:01]OFD Sender: No OFD packet to send [11:42:06]OFD Sender: No OFD packet to send [11:42:11]OFD Sender: No OFD packet to send [11:42:16]OFD Sender: No OFD packet to send [11:42:21]OFD Sender: No OFD packet to send [11:42:26]OFD Sender: No OFD packet to send [11:42:31]OFD Sender: No OFD packet to send [11:42:36]OFD Sender: No OFD packet to send [11:42:41]OFD Sender: No OFD packet to send [11:42:46]OFD Sender: No OFD packet to send [11:42:51]OFD Sender: No OFD packet to send [11:42:56]OFD Sender: No OFD packet to send [11:43:01]OFD Sender: No OFD packet to send [11:43:06]OFD Sender: No OFD packet to send [11:43:11]OFD Sender: No OFD packet to send [11:43:16]OFD Sender: No OFD packet to send [11:43:21]OFD Sender: No OFD packet to send [11:43:26]OFD Sender: No OFD packet to send [11:43:31]OFD Sender: No OFD packet to send [11:43:36]OFD Sender: No OFD packet to send [11:43:41]OFD Sender: No OFD packet to send [11:43:46]OFD Sender: No OFD packet to send [11:43:51]OFD Sender: No OFD packet to send [11:43:56]OFD Sender: No OFD packet to send [11:44:01]OFD Sender: No OFD packet to send [11:44:06]OFD Sender: No OFD packet to send [11:44:11]OFD Sender: No OFD packet to send [11:44:16]OFD Sender: No OFD packet to send [11:44:21]OFD Sender: No OFD packet to send [11:44:26]OFD Sender: No OFD packet to send [11:44:31]OFD Sender: No OFD packet to send [11:44:36]OFD Sender: No OFD packet to send [11:44:41]OFD Sender: No OFD packet to send [11:44:46]OFD Sender: No OFD packet to send [11:44:51]OFD Sender: No OFD packet to send [11:44:56]OFD Sender: No OFD packet to send [11:45:01]OFD Sender: No OFD packet to send [11:45:06]OFD Sender: No OFD packet to send [11:45:11]OFD Sender: No OFD packet to send [11:45:16]OFD Sender: No OFD packet to send [11:45:21]OFD Sender: No OFD packet to send [11:45:26]OFD Sender: No OFD packet to send [11:45:31]OFD Sender: No OFD packet to send [11:45:36]OFD Sender: No OFD packet to send [11:45:39]accept exits with 9 [11:45:39]New connection [11:45:39]New thread 3066785124 created [11:45:39]Thread 3066928484 joined [11:45:39]Waiting for new connection... [11:45:39] Sock 9.Parse request [11:45:39]Sock 9.Check first char [11:45:39]Sock 9.First char is OK [11:45:39]request: POST /json_proto HTTP/1.0 [11:45:39]Method: POST [11:45:39]URL: /json_proto [11:45:39]Method is POST - this is cgi request [11:45:39]url: /json_proto [11:45:39]query_string will be loaded in cgi processing [11:45:39]execute_cgi json_proto POST (null) [11:45:39]execute_cgi path=json_proto method=POST [11:45:39]POST find Content-Length [11:45:39]Host: 172.17.33.3:8080 [11:45:39]Content-Length: 680 [11:45:39]Content-Type: application/json [11:45:39] [11:45:39]POST finish read [11:45:39]Found Content-Length = 680 [11:45:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 6.080, "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:45:40]execute_script... [11:45: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)347251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 6.080, "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:45:40]POST & json_proto [11:45:40]process_json_proto [11:45:40]json parsed OK: [11:45:40]protocol is kg_v1.0 [11:45:40]action value=close_receipt [11:45:40]process_action close_receipt [11:45:40]cmd_close_receipt [11:45:40]MH_GetDate [11:45:40]Write to MH i2c: F0 00 00 FB 34 1E [11:45:40]Write i2c OK [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: F0 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: F0 09 00 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: F0 09 00 FB 34 00 68 70 1A 66 23 5B 8F 65 F1 [11:45:40]GetLastDocTimeStamp 1713007722 [11:45:40]current date 1713008744 [11:45:40]FM_GetShiftState [11:45:40]SAM_PROTO_GetShiftState [11:45:40]wFMCommunicate request_size=4 [11:45:40]MH_SAM_APDU [11:45:40]CAPDU: 80 13 01 00 [11:45:40]Write to MH i2c: E2 08 00 FC 34 80 13 01 00 00 00 00 00 AD [11:45:40]Write i2c OK [11:45:40]MH_I2C_Read... [11:45:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:40]Read from MH i2c: E2 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 0E 00 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: E2 0E 00 FC 34 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 C6 [11:45:40]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:45:40]wFMCommunicate OK [11:45:40]SAM_PROTO_GetShiftState done [11:45:40]FM_GetShiftState done [11:45:40]opened in 1712967615 [11:45:40]opened+sec_in_day 1713054015 [11:45:40]quantity*price = 20003 [11:45:40]sum+1 = 20004 [11:45:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 103 13.04.2024 11:45 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28896 ФПД: 232760206926496 1/tax-web-control/client/api/v1/ticket?date=20240413T114544&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28896&fm=232760206926496&tin=02508201610067®Number=0000138879044617&sum=20000 [11:45:41]StoreToDocumentArchive [11:45:41]shift 115 fd 28896 [11:45:41]save to /storage/0115/doc_00028896 [11:45:41]save last doc name /storage/0115/doc_00028896 to /storage/kkm_last_doc_name [11:45:41]save OK [11:45:41]Clear old archive folders... [11:45:41]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:45:41]tlvbuf is 01294BC0 [11:45:41]SAM_PROTO_ClearQueue [11:45:41]wFMCommunicate request_size=4 [11:45:41]MH_SAM_APDU [11:45:41]CAPDU: 80 09 00 00 [11:45:41]Write to MH i2c: E2 08 00 09 35 80 09 00 00 00 00 00 00 B0 [11:45:41]Write i2c OK [11:45:41]MH_I2C_Read... [11:45:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:41]Read from MH i2c: E2 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: E2 03 00 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: E2 03 00 09 35 00 90 00 B2 [11:45:41]RAPDU: 90 00 [11:45:41]wFMCommunicate OK [11:45:41]SAM_PROTO_ClearQueue done [11:45:41]KKMCreateOFDPacket [11:45:41]OFDProtocolAddRootSTLVToBuf [11:45:41]FM_MakeSignedData [11:45:41]FM_MakeSignedData [11:45:41]SAM_PROTO_SignData [11:45:41]wFMCommunicate request_size=4 [11:45:41]MH_SAM_APDU [11:45:41]CAPDU: 80 0D 01 02 [11:45:41]Write to MH i2c: E2 08 00 0A 35 80 0D 01 02 00 00 00 00 B8 [11:45:41]Write i2c OK [11:45:41]MH_I2C_Read... [11:45:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:41]Read from MH i2c: E2 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: E2 03 00 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: E2 03 00 0A 35 00 90 00 B3 [11:45:41]RAPDU: 90 00 [11:45:41]wFMCommunicate OK [11:45:41]wFMCommunicate request_size=255 [11:45:41]MH_SAM_APDU [11:45: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 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 DA 0C 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 67 00 00 00 F4 03 04 00 68 70 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E0 70 00 00 35 04 06 00 D3 B1 [11:45:41]Write to MH i2c: E2 02 01 0B 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 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 DA 0C 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 67 00 00 00 F4 03 04 00 68 70 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E0 70 00 00 35 04 06 00 D3 B1 00 00 A4 [11:45:41]Write i2c OK [11:45:41]MH_I2C_Read... [11:45:41]OFD Sender: No OFD packet to send [11:45:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:41]Read from MH i2c: E2 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: E2 03 00 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: E2 03 00 0B 35 00 90 00 B4 [11:45:41]RAPDU: 90 00 [11:45:41]wFMCommunicate OK [11:45:41]wFMCommunicate request_size=9 [11:45:41]MH_SAM_APDU [11:45:41]CAPDU: 80 0D 02 02 04 B5 73 A2 A0 [11:45:41]Write to MH i2c: E2 0C 00 0C 35 80 0D 02 02 04 00 B5 73 A2 A0 00 00 2D [11:45:41]Write i2c OK [11:45:41]MH_I2C_Read... [11:45:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:41]Read from MH i2c: E2 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: E2 03 00 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: E2 03 00 0C 35 00 90 00 B5 [11:45:41]RAPDU: 90 00 [11:45:41]wFMCommunicate OK [11:45:41]wFMCommunicate request_size=4 [11:45:41]MH_SAM_APDU [11:45:41]CAPDU: 80 0D 03 02 [11:45:41]Write to MH i2c: E2 08 00 0D 35 80 0D 03 02 00 00 00 00 BD [11:45:41]Write i2c OK [11:45:41]MH_I2C_Read... [11:45:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:41]Read from MH i2c: E2 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: E2 0B 00 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: E2 0B 00 0D 35 00 6A C4 43 C2 CE 17 57 8A 90 00 B7 [11:45:41]RAPDU: 6A C4 43 C2 CE 17 57 8A 90 00 [11:45:41]wFMCommunicate OK [11:45:41]SAM_PROTO_SignData done [11:45:41]FM_MakeSignedData done [11:45:41]CreateOFDProtocolMessage [11:45:41]wFMCommunicate request_size=4 [11:45:41]MH_SAM_APDU [11:45:41]CAPDU: 80 11 00 00 [11:45:41]Write to MH i2c: E2 08 00 0E 35 80 11 00 00 00 00 00 00 BD [11:45:41]Write i2c OK [11:45:41]MH_I2C_Read... [11:45:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:41]Read from MH i2c: E2 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: E2 17 00 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: E2 17 00 0E 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0C [11:45:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:45:41]wFMCommunicate OK [11:45:41]CreateOFDProtocolMessage done [11:45:41]OFDSenderStorePacket 28896 [11:45:41]StoreOFDPacket docnum=28896 [11:45:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 7E 9E 06 01 EA DC 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 DA 0C 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 67 00 00 00 F4 03 04 00 68 70 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E0 70 00 00 35 04 06 00 D3 B1 B5 73 A2 A0 6A C4 43 C2 CE 17 57 8A [11:45:41]CheckFolder [11:45:41]dirname=/storage/ofd_packets [11:45:41]CheckFolder done [11:45:41]ProducePacketName [11:45:41]name=ofd_packets/00028896 [11:45:41]NVStorageSaveData ofd_packets/00028896 [11:45:41]File name is /storage/ofd_packets/00028896 [11:45:41]Write 300 bytes [11:45:41]NVStorageSaveData done [11:45:41]OFDSenderStorePacket done [11:45:41]KKMCreateOFDPacket done [11:45:41]NVStorageSaveData kkm_last_timestamp [11:45:41]File name is /storage/kkm_last_timestamp [11:45:41]Write 4 bytes [11:45:41]NVStorageSaveData done [11:45:41]ExternCall_PrintAddStr [11:45:41]wPrintStart [11:45:41]Write to MH i2c: 01 00 00 0F 35 44 [11:45:41]Write i2c OK [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: 01 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: 01 07 00 [11:45:41]MH_I2C_Read... [11:45:41]Read from MH i2c: 01 07 00 0F 35 00 00 00 00 00 FF 0F 59 [11:45:41]RasterBufferAndPrint [11:45:41]line Счет N : (1)347251 [11:45:41]line ИНН: 02508201610067 [11:45:41]line Контрольно-Кассовый Чек [11:45:41]line ПРОДАЖА [11:45:41]line ТРК (МРК, ГНК) : 71 [11:45:41]line Товар: 2711129700 [11:45:41]line ГАЗ-К-5 [11:45:41]line 6.080 * 32.90 [11:45:41]line = 200.03 [11:45:41]line НДС 12% НСП 1% [11:45:41]line > о реализуемом товаре [11:45:41]line ОКРУГЛЕНИЕ: -0.03 [11:45:41]line ИТОГО: 200.00 [11:45:41]line Внесено: 200.00 [11:45:41]line СДАЧА: 0.00 [11:45:41]line НСП 1% : 1.77 [11:45:41]line НДС 12% : 21.24 [11:45:41]line Наличными: 200.00 [11:45:41]line Безнал.: 0.00 [11:45:41]line Место: АЗС № 108 "Партнер Нефть" [11:45:41]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:45:41]line СНО: Общий режим [11:45:41]line Чек 103 13.04.2024 11:45 [11:45:41]line Смена: 115 ФФД: 1.0 [11:45:41]line ЗНМ: 0300000027 [11:45:41]line РНМ: 0000138879044617 [11:45:41]line Версия ККМ: 001 [11:45:41]line ФМ: 0000000000963154 [11:45:41]line ФД: 28896 [11:45:41]line ФПД: 232760206926496 [11:45:41]line 1/tax-web-control/client/api/v1/ticket?date=20240413T114544&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28896&fm=232760206926496&tin=02508201610067®Number=0000138879044617&sum=20000 [11:45:41]written 0, free lines is 4095 [11:45:41]OFD Sender: Processing packet 28896 [packets to send 8, broken 7] [11:45:41]ProducePacketName [11:45:41]name=ofd_packets/00028896 [11:45:41]OFD Sender: To server: pG, [11:45:41]CommunicateWithHost lk.salyk.kg:30040 [11:45:41]ConnectInit lk.salyk.kg [11:45:41]Connected sock=10 [11:45: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 31 35 34 0E 01 00 00 7E 9E 06 01 EA DC 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 DA 0C 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 67 00 00 00 F4 03 04 00 68 70 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E0 70 00 00 35 04 06 00 D3 B1 B5 73 A2 A0 6A C4 43 C2 CE 17 57 8A [11:45:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 FF F6 47 00 38 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E0 70 00 00 F4 03 04 00 0F 1B 1A 66 B6 04 01 00 00 00 0D 12 29 F6 B8 5A F3 [11:45:42]CommunicateWithHost err = 0 [11:45:42]CheckOFDResponse [11:45:42]1017 (14) - 77093643461234 [11:45:42]1041 (16) - 0000000000963154 [11:45:42]1040 (4) - 28896 [11:45:42]1012 (4) - 13.04.2024 05:41 [11:45:42]1206 (1) - 0 [11:45:42]OFD Sender: Remove packet 28896 [11:45:42]ProducePacketName [11:45:42]name=ofd_packets/00028896 [11:45:42]NVStorageDeleteData [11:45:42]Write to MH i2c: 01 00 00 39 35 6E [11:45:42]Write i2c OK [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: 01 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: 01 07 00 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: 01 07 00 39 35 00 00 00 00 00 C6 0C 47 [11:45:42]RasterBufferAndPrint [11:45:42]line [11:45:42]line [11:45:42]line [11:45:42]line [11:45:42]line [11:45:42]written 0, free lines is 3276 [11:45:42]MH_Cut [11:45:42]Write to MH i2c: D1 01 00 40 35 01 47 [11:45:42]Write i2c OK [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: D1 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: D1 01 00 [11:45:42]MH_I2C_Read... [11:45:42]Read from MH i2c: D1 01 00 40 35 00 46 [11:45:42]Write to MH i2c: 01 00 00 41 35 76 [11:45:42]Write i2c OK [11:45:42]MH_I2C_Read... [11:45:42]OFD Sender: No OFD packet to send [11:45:43]*** Cut start [11:45:43]*** Partial cut [11:45:43]*** CUTSNS_PIN = 1 [11:45:43]*** CUTSNS_PIN = 0 [11:45:43]*** Brake cut motor [11:45:43]Read from MH i2c: 01 [11:45:43]MH_I2C_Read... [11:45:43]*** Stop cut motor [11:45:43]*** Cut end [11:45:43]Read from MH i2c: 01 07 00 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: 01 07 00 41 35 00 00 00 00 00 FF 0F 8B [11:45:43]process_action close_receipt done [11:45:43]requested_data is exist [11:45:43]produce_requested_data [11:45:43]requested_item fm.sn is exist - process it [11:45:43]wFMCommunicate request_size=4 [11:45:43]MH_SAM_APDU [11:45:43]CAPDU: 80 11 00 00 [11:45:43]Write to MH i2c: E2 08 00 42 35 80 11 00 00 00 00 00 00 F1 [11:45:43]Write i2c OK [11:45:43]MH_I2C_Read... [11:45:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:43]Read from MH i2c: E2 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 17 00 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 17 00 42 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 40 [11:45:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:45:43]wFMCommunicate OK [11:45:43]requested_item fd.num is exist - process it [11:45:43]SAM_PROTO_GetFieldsCounters [11:45:43]wFMCommunicate request_size=4 [11:45:43]MH_SAM_APDU [11:45:43]CAPDU: 80 13 00 00 [11:45:43]Write to MH i2c: E2 08 00 43 35 80 13 00 00 00 00 00 00 F4 [11:45:43]Write i2c OK [11:45:43]MH_I2C_Read... [11:45:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:43]Read from MH i2c: E2 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 62 00 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 62 00 43 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E0 70 00 00 0E 04 04 00 73 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 2A [11:45: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E0 70 00 00 0E 04 04 00 73 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:45:43]wFMCommunicate OK [11:45:43]SAM_PROTO_GetFieldsCounters done [11:45:43]requested_item shift.num is exist - process it [11:45:43]requested_item shift.opened is exist - process it [11:45:43]req_shift_opened [11:45:43]FM_GetShiftState [11:45:43]SAM_PROTO_GetShiftState [11:45:43]wFMCommunicate request_size=4 [11:45:43]MH_SAM_APDU [11:45:43]CAPDU: 80 13 01 00 [11:45:43]Write to MH i2c: E2 08 00 44 35 80 13 01 00 00 00 00 00 F6 [11:45:43]Write i2c OK [11:45:43]MH_I2C_Read... [11:45:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:43]Read from MH i2c: E2 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 0E 00 [11:45:43]MH_I2C_Read... [11:45:43]Read from MH i2c: E2 0E 00 44 35 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 0F [11:45:43]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:45:43]wFMCommunicate OK [11:45:43]SAM_PROTO_GetShiftState done [11:45:43]FM_GetShiftState done [11:45:43]req_shift_opened done [11:45:43]requested_item shift.open_date is exist - process it [11:45:43]req_shift_open_date [11:45:43]req_shift_open_date done [11:45:43]produce_requested_data done [11:45:43]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28896,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [11:45:43]process_action_free close_receipt [11:45:43]json_value_free [11:45:43]json_value_free done [11:45:43]process_json_proto returns [11:45:43]Send response to host [11:45:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28896,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [11:45:43]free response buf [11:45:43]execute_script done [11:45:43]execute_script returns [11:45:43]free content buf [11:45:43]Sock 9.Close socket [11:45:43]Sock 9.Thread stoped [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:32]accept exits with 7 [11:48:32]New connection [11:48:32]New thread 3066928484 created [11:48:32]Thread 3066785124 joined [11:48:32]Waiting for new connection... [11:48:32] Sock 7.Parse request [11:48:32]Sock 7.Check first char [11:48:32]Sock 7.First char is OK [11:48:32]request: POST /json_proto HTTP/1.0 [11:48:32]Method: POST [11:48:32]URL: /json_proto [11:48:32]Method is POST - this is cgi request [11:48:32]url: /json_proto [11:48:32]query_string will be loaded in cgi processing [11:48:32]execute_cgi json_proto POST (null) [11:48:32]execute_cgi path=json_proto method=POST [11:48:32]POST find Content-Length [11:48:32]Host: 172.17.33.3:8080 [11:48:32]Content-Length: 816 [11:48:32]Content-Type: application/json [11:48:32] [11:48:32]POST finish read [11:48:32]Found Content-Length = 816 [11:48:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347250", "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" : 72.40, "quantity" : 82.880, "sum" : 6000.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 6000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:32]execute_script... [11:48:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347250", "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" : 72.40, "quantity" : 82.880, "sum" : 6000.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 6000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:32]POST & json_proto [11:48:32]process_json_proto [11:48:32]json parsed OK: [11:48:32]protocol is kg_v1.0 [11:48:32]action value=close_receipt [11:48:32]process_action close_receipt [11:48:32]cmd_close_receipt [11:48:32]MH_GetDate [11:48:32]Write to MH i2c: F0 00 00 45 35 69 [11:48:32]Write i2c OK [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: F0 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: F0 09 00 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: F0 09 00 45 35 00 15 71 1A 66 23 5B 8F 65 EA [11:48:32]GetLastDocTimeStamp 1713008744 [11:48:32]current date 1713008917 [11:48:32]FM_GetShiftState [11:48:32]SAM_PROTO_GetShiftState [11:48:32]wFMCommunicate request_size=4 [11:48:32]MH_SAM_APDU [11:48:32]CAPDU: 80 13 01 00 [11:48:32]Write to MH i2c: E2 08 00 46 35 80 13 01 00 00 00 00 00 F8 [11:48:32]Write i2c OK [11:48:32]MH_I2C_Read... [11:48:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:32]Read from MH i2c: E2 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: E2 0E 00 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: E2 0E 00 46 35 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 11 [11:48:32]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:48:32]wFMCommunicate OK [11:48:32]SAM_PROTO_GetShiftState done [11:48:32]FM_GetShiftState done [11:48:32]opened in 1712967615 [11:48:32]opened+sec_in_day 1713054015 [11:48:32]quantity*price = 600051 [11:48:32]sum+1 = 600052 [11:48:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 6000.51 НСП 1% : 53.10 НДС 12% : 637.22 Наличными: 0.00 Безнал.: 6000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 104 13.04.2024 11:48 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 28897 ФПД: 164692951375207 1/tax-web-control/client/api/v1/ticket?date=20240413T114837&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28897&fm=164692951375207&tin=02508201610067®Number=0000138879044617&sum=600051 [11:48:33]StoreToDocumentArchive [11:48:33]shift 115 fd 28897 [11:48:33]save to /storage/0115/doc_00028897 [11:48:33]save last doc name /storage/0115/doc_00028897 to /storage/kkm_last_doc_name [11:48:33]save OK [11:48:33]Clear old archive folders... [11:48:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:48:33]tlvbuf is 01284500 [11:48:33]SAM_PROTO_ClearQueue [11:48:33]wFMCommunicate request_size=4 [11:48:33]MH_SAM_APDU [11:48:33]CAPDU: 80 09 00 00 [11:48:33]Write to MH i2c: E2 08 00 53 35 80 09 00 00 00 00 00 00 FA [11:48:33]Write i2c OK [11:48:33]MH_I2C_Read... [11:48:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:34]Read from MH i2c: E2 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 03 00 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 03 00 53 35 00 90 00 FC [11:48:34]RAPDU: 90 00 [11:48:34]wFMCommunicate OK [11:48:34]SAM_PROTO_ClearQueue done [11:48:34]KKMCreateOFDPacket [11:48:34]OFDProtocolAddRootSTLVToBuf [11:48:34]FM_MakeSignedData [11:48:34]FM_MakeSignedData [11:48:34]SAM_PROTO_SignData [11:48:34]wFMCommunicate request_size=4 [11:48:34]MH_SAM_APDU [11:48:34]CAPDU: 80 0D 01 02 [11:48:34]Write to MH i2c: E2 08 00 54 35 80 0D 01 02 00 00 00 00 02 [11:48:34]Write i2c OK [11:48:34]MH_I2C_Read... [11:48:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:34]Read from MH i2c: E2 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 03 00 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 03 00 54 35 00 90 00 FD [11:48:34]RAPDU: 90 00 [11:48:34]wFMCommunicate OK [11:48:34]wFMCommunicate request_size=255 [11:48:34]MH_SAM_APDU [11:48:34]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 C0 43 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 F3 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 15 71 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E1 70 00 00 35 04 06 00 95 C9 90 DD [11:48:34]Write to MH i2c: E2 02 01 55 35 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 C0 43 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 F3 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 15 71 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E1 70 00 00 35 04 06 00 95 C9 90 DD 00 00 FE [11:48:34]Write i2c OK [11:48:34]MH_I2C_Read... [11:48:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:34]Read from MH i2c: E2 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 03 00 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 03 00 55 35 00 90 00 FE [11:48:34]RAPDU: 90 00 [11:48:34]wFMCommunicate OK [11:48:34]wFMCommunicate request_size=7 [11:48:34]MH_SAM_APDU [11:48:34]CAPDU: 80 0D 02 02 02 1D 67 [11:48:34]Write to MH i2c: E2 0A 00 56 35 80 0D 02 02 02 00 1D 67 00 00 8D [11:48:34]Write i2c OK [11:48:34]MH_I2C_Read... [11:48:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:34]Read from MH i2c: E2 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 03 00 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 03 00 56 35 00 90 00 FF [11:48:34]RAPDU: 90 00 [11:48:34]wFMCommunicate OK [11:48:34]wFMCommunicate request_size=4 [11:48:34]MH_SAM_APDU [11:48:34]CAPDU: 80 0D 03 02 [11:48:34]Write to MH i2c: E2 08 00 57 35 80 0D 03 02 00 00 00 00 07 [11:48:34]Write i2c OK [11:48:34]MH_I2C_Read... [11:48:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:34]Read from MH i2c: E2 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 0B 00 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 0B 00 57 35 00 66 9D 1D 2E 35 B8 8F C4 90 00 96 [11:48:34]RAPDU: 66 9D 1D 2E 35 B8 8F C4 90 00 [11:48:34]wFMCommunicate OK [11:48:34]SAM_PROTO_SignData done [11:48:34]FM_MakeSignedData done [11:48:34]CreateOFDProtocolMessage [11:48:34]wFMCommunicate request_size=4 [11:48:34]MH_SAM_APDU [11:48:34]CAPDU: 80 11 00 00 [11:48:34]Write to MH i2c: E2 08 00 58 35 80 11 00 00 00 00 00 00 07 [11:48:34]Write i2c OK [11:48:34]MH_I2C_Read... [11:48:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:34]Read from MH i2c: E2 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 17 00 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: E2 17 00 58 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 56 [11:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:48:34]wFMCommunicate OK [11:48:34]CreateOFDProtocolMessage done [11:48:34]OFDSenderStorePacket 28897 [11:48:34]StoreOFDPacket docnum=28897 [11:48:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 F0 CF 04 01 49 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C0 43 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 F3 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 15 71 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E1 70 00 00 35 04 06 00 95 C9 90 DD 1D 67 66 9D 1D 2E 35 B8 8F C4 [11:48:34]CheckFolder [11:48:34]dirname=/storage/ofd_packets [11:48:34]CheckFolder done [11:48:34]ProducePacketName [11:48:34]name=ofd_packets/00028897 [11:48:34]NVStorageSaveData ofd_packets/00028897 [11:48:34]File name is /storage/ofd_packets/00028897 [11:48:34]Write 298 bytes [11:48:34]NVStorageSaveData done [11:48:34]OFDSenderStorePacket done [11:48:34]KKMCreateOFDPacket done [11:48:34]NVStorageSaveData kkm_last_timestamp [11:48:34]File name is /storage/kkm_last_timestamp [11:48:34]Write 4 bytes [11:48:34]NVStorageSaveData done [11:48:34]ExternCall_PrintAddStr [11:48:34]wPrintStart [11:48:34]Write to MH i2c: 01 00 00 59 35 8E [11:48:34]Write i2c OK [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: 01 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: 01 07 00 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: 01 07 00 59 35 00 00 00 00 00 FF 0F A3 [11:48:34]RasterBufferAndPrint [11:48:34]line Счет N : (1)347250 [11:48:34]line ИНН: 02508201610067 [11:48:34]line Контрольно-Кассовый Чек [11:48:34]line ПРОДАЖА [11:48:34]line ТРК (МРК, ГНК) : 51 [11:48:34]line Товар: 2710194210 [11:48:34]line ДТ-К-5 [11:48:34]line 82.880 * 72.40 [11:48:34]line = 6000.51 [11:48:34]line НДС 12% НСП 1% [11:48:34]line > о реализуемом товаре [11:48:34]line ИТОГО: 6000.51 [11:48:34]line НСП 1% : 53.10 [11:48:34]line НДС 12% : 637.22 [11:48:34]line Наличными: 0.00 [11:48:34]line Безнал.: 6000.51 [11:48:34]line Место: АЗС № 108 "Партнер Нефть" [11:48:34]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:48:34]line СНО: Общий режим [11:48:34]line Чек 104 13.04.2024 11:48 [11:48:34]line Смена: 115 ФФД: 1.0 [11:48:34]line ЗНМ: 0300000027 [11:48:34]line РНМ: 0000138879044617 [11:48:34]line Версия ККМ: 001 [11:48:34]line Платежная система: Бакай Банк [11:48:34]line ФМ: 0000000000963154 [11:48:34]line ФД: 28897 [11:48:34]line ФПД: 164692951375207 [11:48:34]line 1/tax-web-control/client/api/v1/ticket?date=20240413T114837&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28897&fm=164692951375207&tin=02508201610067®Number=0000138879044617&sum=600051 [11:48:34]OFD Sender: Processing packet 28897 [packets to send 8, broken 7] [11:48:34]ProducePacketName [11:48:34]name=ofd_packets/00028897 [11:48:34]OFD Sender: To server: pG, [11:48:34]CommunicateWithHost lk.salyk.kg:30040 [11:48:34]ConnectInit lk.salyk.kg [11:48:34]written 0, free lines is 4095 [11:48:34]Connected sock=10 [11:48: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 31 35 34 0C 01 00 00 F0 CF 04 01 49 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C0 43 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 F3 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 15 71 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E1 70 00 00 35 04 06 00 95 C9 90 DD 1D 67 66 9D 1D 2E 35 B8 8F C4 [11:48:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0D 9D 47 00 C7 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 31 35 34 10 04 04 00 E1 70 00 00 F4 03 04 00 BC 1B 1A 66 B6 04 01 00 00 B3 49 11 B0 41 2C 1A 25 [11:48:35]CommunicateWithHost err = 0 [11:48:35]CheckOFDResponse [11:48:35]1017 (14) - 77093643461234 [11:48:35]1041 (16) - 0000000000963154 [11:48:35]1040 (4) - 28897 [11:48:35]1012 (4) - 13.04.2024 05:44 [11:48:35]1206 (1) - 0 [11:48:35]OFD Sender: Remove packet 28897 [11:48:35]ProducePacketName [11:48:35]name=ofd_packets/00028897 [11:48:35]NVStorageDeleteData [11:48:35]Write to MH i2c: 01 00 00 82 35 B7 [11:48:35]Write i2c OK [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: 01 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: 01 07 00 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: 01 07 00 82 35 00 00 00 00 00 DE 0C A8 [11:48:35]RasterBufferAndPrint [11:48:35]line [11:48:35]line [11:48:35]line [11:48:35]line [11:48:35]line [11:48:35]written 0, free lines is 3301 [11:48:35]MH_Cut [11:48:35]Write to MH i2c: D1 01 00 89 35 01 90 [11:48:35]Write i2c OK [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: D1 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: D1 01 00 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: D1 01 00 89 35 00 8F [11:48:35]Write to MH i2c: 01 00 00 8A 35 BF [11:48:35]Write i2c OK [11:48:35]MH_I2C_Read... [11:48:35]OFD Sender: No OFD packet to send [11:48:36]*** Cut start [11:48:36]*** Partial cut [11:48:36]*** CUTSNS_PIN = 1 [11:48:36]*** CUTSNS_PIN = 0 [11:48:36]*** Brake cut motor [11:48:36]Read from MH i2c: 01 [11:48:36]MH_I2C_Read... [11:48:36]*** Stop cut motor [11:48:36]*** Cut end [11:48:36]Read from MH i2c: 01 07 00 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: 01 07 00 8A 35 00 00 00 00 00 FF 0F D4 [11:48:36]process_action close_receipt done [11:48:36]requested_data is exist [11:48:36]produce_requested_data [11:48:36]requested_item fm.sn is exist - process it [11:48:36]wFMCommunicate request_size=4 [11:48:36]MH_SAM_APDU [11:48:36]CAPDU: 80 11 00 00 [11:48:36]Write to MH i2c: E2 08 00 8B 35 80 11 00 00 00 00 00 00 3A [11:48:36]Write i2c OK [11:48:36]MH_I2C_Read... [11:48:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:36]Read from MH i2c: E2 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: E2 17 00 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: E2 17 00 8B 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 89 [11:48:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:48:36]wFMCommunicate OK [11:48:36]requested_item fd.num is exist - process it [11:48:36]SAM_PROTO_GetFieldsCounters [11:48:36]wFMCommunicate request_size=4 [11:48:36]MH_SAM_APDU [11:48:36]CAPDU: 80 13 00 00 [11:48:36]Write to MH i2c: E2 08 00 8C 35 80 13 00 00 00 00 00 00 3D [11:48:36]Write i2c OK [11:48:36]MH_I2C_Read... [11:48:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:36]Read from MH i2c: E2 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: E2 62 00 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: E2 62 00 8C 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E1 70 00 00 0E 04 04 00 73 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 77 [11:48: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E1 70 00 00 0E 04 04 00 73 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:48:36]wFMCommunicate OK [11:48:36]SAM_PROTO_GetFieldsCounters done [11:48:36]requested_item shift.num is exist - process it [11:48:36]requested_item shift.opened is exist - process it [11:48:36]req_shift_opened [11:48:36]FM_GetShiftState [11:48:36]SAM_PROTO_GetShiftState [11:48:36]wFMCommunicate request_size=4 [11:48:36]MH_SAM_APDU [11:48:36]CAPDU: 80 13 01 00 [11:48:36]Write to MH i2c: E2 08 00 8D 35 80 13 01 00 00 00 00 00 3F [11:48:36]Write i2c OK [11:48:36]MH_I2C_Read... [11:48:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:37]Read from MH i2c: E2 [11:48:37]MH_I2C_Read... [11:48:37]Read from MH i2c: E2 0E 00 [11:48:37]MH_I2C_Read... [11:48:37]Read from MH i2c: E2 0E 00 8D 35 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 58 [11:48:37]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:48:37]wFMCommunicate OK [11:48:37]SAM_PROTO_GetShiftState done [11:48:37]FM_GetShiftState done [11:48:37]req_shift_opened done [11:48:37]requested_item shift.open_date is exist - process it [11:48:37]req_shift_open_date [11:48:37]req_shift_open_date done [11:48:37]produce_requested_data done [11:48:37]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28897,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [11:48:37]process_action_free close_receipt [11:48:37]json_value_free [11:48:37]json_value_free done [11:48:37]process_json_proto returns [11:48:37]Send response to host [11:48:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28897,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [11:48:37]free response buf [11:48:37]execute_script done [11:48:37]execute_script returns [11:48:37]free content buf [11:48:37]Sock 7.Close socket [11:48:37]Sock 7.Thread stoped [11:48:40]OFD Sender: No OFD packet to send [11:48:45]OFD Sender: No OFD packet to send [11:48:50]OFD Sender: No OFD packet to send [11:48:55]OFD Sender: No OFD packet to send [11:49:00]OFD Sender: No OFD packet to send [11:49:05]OFD Sender: No OFD packet to send [11:49:10]OFD Sender: No OFD packet to send [11:49:15]OFD Sender: No OFD packet to send [11:49:20]OFD Sender: No OFD packet to send [11:49:25]OFD Sender: No OFD packet to send [11:49:30]OFD Sender: No OFD packet to send [11:49:35]OFD Sender: No OFD packet to send [11:49:40]OFD Sender: No OFD packet to send [11:49:45]OFD Sender: No OFD packet to send [11:49:50]OFD Sender: No OFD packet to send [11:49:55]OFD Sender: No OFD packet to send [11:50:00]OFD Sender: No OFD packet to send [11:50:05]OFD Sender: No OFD packet to send [11:50:10]OFD Sender: No OFD packet to send [11:50:15]OFD Sender: No OFD packet to send [11:50:20]OFD Sender: No OFD packet to send [11:50:25]OFD Sender: No OFD packet to send [11:50:30]OFD Sender: No OFD packet to send [11:50:35]OFD Sender: No OFD packet to send [11:50:40]OFD Sender: No OFD packet to send [11:50:45]OFD Sender: No OFD packet to send [11:50:46]accept exits with 9 [11:50:46]New connection [11:50:46]New thread 3066785124 created [11:50:46]Thread 3066928484 joined [11:50:46]Waiting for new connection... [11:50:46] Sock 9.Parse request [11:50:46]Sock 9.Check first char [11:50:46]Sock 9.First char is OK [11:50:46]request: POST /json_proto HTTP/1.0 [11:50:46]Method: POST [11:50:46]URL: /json_proto [11:50:46]Method is POST - this is cgi request [11:50:46]url: /json_proto [11:50:46]query_string will be loaded in cgi processing [11:50:46]execute_cgi json_proto POST (null) [11:50:46]execute_cgi path=json_proto method=POST [11:50:46]POST find Content-Length [11:50:46]Host: 172.17.33.3:8080 [11:50:46]Content-Length: 843 [11:50:46]Content-Type: application/json [11:50:46] [11:50:46]POST finish read [11:50:46]Found Content-Length = 843 [11:50:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347252", "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" : 64.30, "quantity" : 23.330, "sum" : 1500.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:46]execute_script... [11:50: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)347252", "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" : 64.30, "quantity" : 23.330, "sum" : 1500.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:46]POST & json_proto [11:50:46]process_json_proto [11:50:46]json parsed OK: [11:50:46]protocol is kg_v1.0 [11:50:46]action value=close_receipt [11:50:46]process_action close_receipt [11:50:46]cmd_close_receipt [11:50:46]MH_GetDate [11:50:46]Write to MH i2c: F0 00 00 8E 35 B2 [11:50:46]Write i2c OK [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: F0 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: F0 09 00 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: F0 09 00 8E 35 00 9A 71 1A 66 23 5B 8F 65 B8 [11:50:46]GetLastDocTimeStamp 1713008917 [11:50:46]current date 1713009050 [11:50:46]FM_GetShiftState [11:50:46]SAM_PROTO_GetShiftState [11:50:46]wFMCommunicate request_size=4 [11:50:46]MH_SAM_APDU [11:50:46]CAPDU: 80 13 01 00 [11:50:46]Write to MH i2c: E2 08 00 8F 35 80 13 01 00 00 00 00 00 41 [11:50:46]Write i2c OK [11:50:46]MH_I2C_Read... [11:50:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:46]Read from MH i2c: E2 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: E2 0E 00 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: E2 0E 00 8F 35 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 5A [11:50:46]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:50:46]wFMCommunicate OK [11:50:46]SAM_PROTO_GetShiftState done [11:50:46]FM_GetShiftState done [11:50:46]opened in 1712967615 [11:50:46]opened+sec_in_day 1713054015 [11:50:46]quantity*price = 150011 [11:50:46]sum+1 = 150013 [11:50:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.12 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 0.00 Безнал.: 1500.12 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 105 13.04.2024 11:50 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28898 ФПД: 42424906872627 1/tax-web-control/client/api/v1/ticket?date=20240413T115050&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28898&fm=42424906872627&tin=02508201610067®Number=0000138879044617&sum=150012 [11:50:47]StoreToDocumentArchive [11:50:47]shift 115 fd 28898 [11:50:47]save to /storage/0115/doc_00028898 [11:50:47]save last doc name /storage/0115/doc_00028898 to /storage/kkm_last_doc_name [11:50:47]save OK [11:50:47]Clear old archive folders... [11:50:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:50:47]tlvbuf is 012334A0 [11:50:47]SAM_PROTO_ClearQueue [11:50:47]wFMCommunicate request_size=4 [11:50:47]MH_SAM_APDU [11:50:47]CAPDU: 80 09 00 00 [11:50:47]Write to MH i2c: E2 08 00 9C 35 80 09 00 00 00 00 00 00 43 [11:50:47]Write i2c OK [11:50:47]MH_I2C_Read... [11:50:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:47]Read from MH i2c: E2 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 03 00 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 03 00 9C 35 00 90 00 45 [11:50:47]RAPDU: 90 00 [11:50:47]wFMCommunicate OK [11:50:47]SAM_PROTO_ClearQueue done [11:50:47]KKMCreateOFDPacket [11:50:47]OFDProtocolAddRootSTLVToBuf [11:50:47]FM_MakeSignedData [11:50:47]FM_MakeSignedData [11:50:47]SAM_PROTO_SignData [11:50:47]wFMCommunicate request_size=4 [11:50:47]MH_SAM_APDU [11:50:47]CAPDU: 80 0D 01 02 [11:50:47]Write to MH i2c: E2 08 00 9D 35 80 0D 01 02 00 00 00 00 4B [11:50:47]Write i2c OK [11:50:47]MH_I2C_Read... [11:50:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:47]Read from MH i2c: E2 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 03 00 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 03 00 9D 35 00 90 00 46 [11:50:47]RAPDU: 90 00 [11:50:47]wFMCommunicate OK [11:50:47]wFMCommunicate request_size=255 [11:50:47]MH_SAM_APDU [11:50: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 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 9A 71 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E2 70 00 00 35 04 06 00 26 [11:50:47]Write to MH i2c: E2 02 01 9E 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 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 9A 71 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E2 70 00 00 35 04 06 00 26 00 00 86 [11:50:47]Write i2c OK [11:50:47]MH_I2C_Read... [11:50:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:47]Read from MH i2c: E2 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 03 00 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 03 00 9E 35 00 90 00 47 [11:50:47]RAPDU: 90 00 [11:50:47]wFMCommunicate OK [11:50:47]wFMCommunicate request_size=10 [11:50:47]MH_SAM_APDU [11:50:47]CAPDU: 80 0D 02 02 05 95 D1 80 F7 33 [11:50:47]Write to MH i2c: E2 0D 00 9F 35 80 0D 02 02 05 00 95 D1 80 F7 33 00 00 68 [11:50:47]Write i2c OK [11:50:47]MH_I2C_Read... [11:50:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:47]Read from MH i2c: E2 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 03 00 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 03 00 9F 35 00 90 00 48 [11:50:47]RAPDU: 90 00 [11:50:47]wFMCommunicate OK [11:50:47]wFMCommunicate request_size=4 [11:50:47]MH_SAM_APDU [11:50:47]CAPDU: 80 0D 03 02 [11:50:47]Write to MH i2c: E2 08 00 A0 35 80 0D 03 02 00 00 00 00 50 [11:50:47]Write i2c OK [11:50:47]MH_I2C_Read... [11:50:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:47]Read from MH i2c: E2 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 0B 00 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 0B 00 A0 35 00 D3 73 38 A9 6E CB CC BD 90 00 3A [11:50:47]RAPDU: D3 73 38 A9 6E CB CC BD 90 00 [11:50:47]wFMCommunicate OK [11:50:47]SAM_PROTO_SignData done [11:50:47]FM_MakeSignedData done [11:50:47]CreateOFDProtocolMessage [11:50:47]wFMCommunicate request_size=4 [11:50:47]MH_SAM_APDU [11:50:47]CAPDU: 80 11 00 00 [11:50:47]Write to MH i2c: E2 08 00 A1 35 80 11 00 00 00 00 00 00 50 [11:50:47]Write i2c OK [11:50:47]MH_I2C_Read... [11:50:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:47]Read from MH i2c: E2 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 17 00 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 17 00 A1 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9F [11:50:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:50:47]wFMCommunicate OK [11:50:47]CreateOFDProtocolMessage done [11:50:47]OFDSenderStorePacket 28898 [11:50:47]StoreOFDPacket docnum=28898 [11:50:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EE 90 07 01 21 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 9A 71 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E2 70 00 00 35 04 06 00 26 95 D1 80 F7 33 D3 73 38 A9 6E CB CC BD [11:50:47]CheckFolder [11:50:47]dirname=/storage/ofd_packets [11:50:47]CheckFolder done [11:50:47]ProducePacketName [11:50:47]name=ofd_packets/00028898 [11:50:47]NVStorageSaveData ofd_packets/00028898 [11:50:47]File name is /storage/ofd_packets/00028898 [11:50:47]Write 301 bytes [11:50:47]NVStorageSaveData done [11:50:47]OFDSenderStorePacket done [11:50:47]KKMCreateOFDPacket done [11:50:47]NVStorageSaveData kkm_last_timestamp [11:50:47]File name is /storage/kkm_last_timestamp [11:50:47]Write 4 bytes [11:50:47]NVStorageSaveData done [11:50:47]ExternCall_PrintAddStr [11:50:47]wPrintStart [11:50:47]Write to MH i2c: 01 00 00 A2 35 D7 [11:50:47]Write i2c OK [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: 01 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: 01 07 00 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: 01 07 00 A2 35 00 00 00 00 00 FF 0F EC [11:50:47]RasterBufferAndPrint [11:50:47]line Счет N : (1)347252 [11:50:47]line ИНН: 02508201610067 [11:50:47]line Контрольно-Кассовый Чек [11:50:47]line ПРОДАЖА [11:50:47]line ТРК (МРК, ГНК) : 42 [11:50:47]line Товар: 2710124130 [11:50:47]line Аи-92-К-5 [11:50:47]line 23.330 * 64.30 [11:50:47]line = 1500.12 [11:50:47]line НДС 12% НСП 1% [11:50:47]line > о реализуемом товаре [11:50:47]line ИТОГО: 1500.12 [11:50:47]line НСП 1% : 13.27 [11:50:47]line НДС 12% : 159.30 [11:50:47]line Наличными: 0.00 [11:50:47]line Безнал.: 1500.12 [11:50:47]line Место: АЗС № 108 "Партнер Нефть" [11:50:47]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:50:47]line СНО: Общий режим [11:50:47]line Чек 105 13.04.2024 11:50 [11:50:47]line Смена: 115 ФФД: 1.0 [11:50:47]line ЗНМ: 0300000027 [11:50:47]line РНМ: 0000138879044617 [11:50:47]line Версия ККМ: 001 [11:50:47]line Платежная система: АКБ Кыргызстан [11:50:47]line ФМ: 0000000000963154 [11:50:47]line ФД: 28898 [11:50:47]line ФПД: 42424906872627 [11:50:47]line 1/tax-web-control/client/api/v1/ticket?date=20240413T115050&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28898&fm=42424906872627&tin=02508201610067®Number=0000138879044617&sum=150012 [11:50:48]OFD Sender: Processing packet 28898 [packets to send 8, broken 7] [11:50:48]ProducePacketName [11:50:48]name=ofd_packets/00028898 [11:50:48]OFD Sender: To server: pG, [11:50:48]CommunicateWithHost lk.salyk.kg:30040 [11:50:48]ConnectInit lk.salyk.kg [11:50:48]written 0, free lines is 4095 [11:50:48]Connected sock=10 [11:50: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 31 35 34 0F 01 00 00 EE 90 07 01 21 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 9A 71 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E2 70 00 00 35 04 06 00 26 95 D1 80 F7 33 D3 73 38 A9 6E CB CC BD [11:50:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DD 2E 47 00 F3 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E2 70 00 00 F4 03 04 00 41 1C 1A 66 B6 04 01 00 00 64 46 8E 39 A9 2C 9D 7B [11:50:48]CommunicateWithHost err = 0 [11:50:48]CheckOFDResponse [11:50:48]1017 (14) - 77093643461234 [11:50:48]1041 (16) - 0000000000963154 [11:50:48]1040 (4) - 28898 [11:50:48]1012 (4) - 13.04.2024 05:46 [11:50:48]1206 (1) - 0 [11:50:48]OFD Sender: Remove packet 28898 [11:50:48]ProducePacketName [11:50:48]name=ofd_packets/00028898 [11:50:48]NVStorageDeleteData [11:50:48]Write to MH i2c: 01 00 00 CB 35 00 [11:50:48]Write i2c OK [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: 01 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: 01 07 00 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: 01 07 00 CB 35 00 00 00 00 00 E8 0C FB [11:50:48]RasterBufferAndPrint [11:50:48]line [11:50:48]line [11:50:48]line [11:50:48]line [11:50:48]line [11:50:48]written 0, free lines is 3311 [11:50:48]MH_Cut [11:50:48]Write to MH i2c: D1 01 00 D2 35 01 D9 [11:50:48]Write i2c OK [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: D1 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: D1 01 00 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: D1 01 00 D2 35 00 D8 [11:50:48]Write to MH i2c: 01 00 00 D3 35 08 [11:50:48]Write i2c OK [11:50:48]MH_I2C_Read... [11:50:49]OFD Sender: No OFD packet to send [11:50:49]*** Cut start [11:50:49]*** Partial cut [11:50:49]*** CUTSNS_PIN = 1 [11:50:49]*** CUTSNS_PIN = 0 [11:50:49]*** Brake cut motor [11:50:50]Read from MH i2c: 01 [11:50:50]MH_I2C_Read... [11:50:50]*** Stop cut motor [11:50:50]*** Cut end [11:50:50]Read from MH i2c: 01 07 00 [11:50:50]MH_I2C_Read... [11:50:50]Read from MH i2c: 01 07 00 D3 35 00 00 00 00 00 FF 0F 1D [11:50:50]process_action close_receipt done [11:50:50]requested_data is exist [11:50:50]produce_requested_data [11:50:50]requested_item fm.sn is exist - process it [11:50:50]wFMCommunicate request_size=4 [11:50:50]MH_SAM_APDU [11:50:50]CAPDU: 80 11 00 00 [11:50:50]Write to MH i2c: E2 08 00 D4 35 80 11 00 00 00 00 00 00 83 [11:50:50]Write i2c OK [11:50:50]MH_I2C_Read... [11:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:50]Read from MH i2c: E2 [11:50:50]MH_I2C_Read... [11:50:50]Read from MH i2c: E2 17 00 [11:50:50]MH_I2C_Read... [11:50:50]Read from MH i2c: E2 17 00 D4 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D2 [11:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:50:50]wFMCommunicate OK [11:50:50]requested_item fd.num is exist - process it [11:50:50]SAM_PROTO_GetFieldsCounters [11:50:50]wFMCommunicate request_size=4 [11:50:50]MH_SAM_APDU [11:50:50]CAPDU: 80 13 00 00 [11:50:50]Write to MH i2c: E2 08 00 D5 35 80 13 00 00 00 00 00 00 86 [11:50:50]Write i2c OK [11:50:50]MH_I2C_Read... [11:50:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:50]Read from MH i2c: E2 [11:50:50]MH_I2C_Read... [11:50:50]Read from MH i2c: E2 62 00 [11:50:50]MH_I2C_Read... [11:50:50]Read from MH i2c: E2 62 00 D5 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E2 70 00 00 0E 04 04 00 73 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 C4 [11:50: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E2 70 00 00 0E 04 04 00 73 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:50:50]wFMCommunicate OK [11:50:50]SAM_PROTO_GetFieldsCounters done [11:50:50]requested_item shift.num is exist - process it [11:50:50]requested_item shift.opened is exist - process it [11:50:50]req_shift_opened [11:50:50]FM_GetShiftState [11:50:50]SAM_PROTO_GetShiftState [11:50:50]wFMCommunicate request_size=4 [11:50:50]MH_SAM_APDU [11:50:50]CAPDU: 80 13 01 00 [11:50:50]Write to MH i2c: E2 08 00 D6 35 80 13 01 00 00 00 00 00 88 [11:50:50]Write i2c OK [11:50:50]MH_I2C_Read... [11:50:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:50]Read from MH i2c: E2 [11:50:50]MH_I2C_Read... [11:50:50]Read from MH i2c: E2 0E 00 [11:50:50]MH_I2C_Read... [11:50:50]Read from MH i2c: E2 0E 00 D6 35 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A1 [11:50:50]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:50:50]wFMCommunicate OK [11:50:50]SAM_PROTO_GetShiftState done [11:50:50]FM_GetShiftState done [11:50:50]req_shift_opened done [11:50:50]requested_item shift.open_date is exist - process it [11:50:50]req_shift_open_date [11:50:50]req_shift_open_date done [11:50:50]produce_requested_data done [11:50:50]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28898,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [11:50:50]process_action_free close_receipt [11:50:50]json_value_free [11:50:50]json_value_free done [11:50:50]process_json_proto returns [11:50:50]Send response to host [11:50:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28898,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [11:50:50]free response buf [11:50:50]execute_script done [11:50:50]execute_script returns [11:50:50]free content buf [11:50:50]Sock 9.Close socket [11:50:50]Sock 9.Thread stoped [11:50:54]OFD Sender: No OFD packet to send [11:50:59]OFD Sender: No OFD packet to send [11:51:04]OFD Sender: No OFD packet to send [11:51:09]OFD Sender: No OFD packet to send [11:51:14]OFD Sender: No OFD packet to send [11:51:19]OFD Sender: No OFD packet to send [11:51:24]OFD Sender: No OFD packet to send [11:51:29]OFD Sender: No OFD packet to send [11:51:34]OFD Sender: No OFD packet to send [11:51:39]OFD Sender: No OFD packet to send [11:51:44]OFD Sender: No OFD packet to send [11:51:49]OFD Sender: No OFD packet to send [11:51:54]OFD Sender: No OFD packet to send [11:51:59]OFD Sender: No OFD packet to send [11:52:04]OFD Sender: No OFD packet to send [11:52:06]accept exits with 7 [11:52:06]New connection [11:52:06]New thread 3066928484 created [11:52:06]Thread 3066785124 joined [11:52:06]Waiting for new connection... [11:52:06] Sock 7.Parse request [11:52:06]Sock 7.Check first char [11:52:06]Sock 7.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.33.3:8080 [11:52:06]Content-Length: 677 [11:52:06]Content-Type: application/json [11:52:06] [11:52:06]POST finish read [11:52:06]Found Content-Length = 677 [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)347253", "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" : 72.50, "quantity" : 6.900, "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: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)347253", "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" : 72.50, "quantity" : 6.900, "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: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 D7 35 FB [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 D7 35 00 EA 71 1A 66 23 5B 8F 65 51 [11:52:06]GetLastDocTimeStamp 1713009050 [11:52:06]current date 1713009130 [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 D8 35 80 13 01 00 00 00 00 00 8A [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 D8 35 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A3 [11:52:06]RAPDU: 09 00 01 BF CF 19 66 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 1712967615 [11:52:06]opened+sec_in_day 1713054015 [11:52:06]quantity*price = 50025 [11:52:06]sum+1 = 50026 [11:52:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 106 13.04.2024 11:52 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28899 ФПД: 72159327867196 1/tax-web-control/client/api/v1/ticket?date=20240413T115210&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28899&fm=72159327867196&tin=02508201610067®Number=0000138879044617&sum=50000 [11:52:07]StoreToDocumentArchive [11:52:07]shift 115 fd 28899 [11:52:07]save to /storage/0115/doc_00028899 [11:52:07]save last doc name /storage/0115/doc_00028899 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=251 [11:52:07]tlvbuf is 011B4790 [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 E5 35 80 09 00 00 00 00 00 00 8C [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 E5 35 00 90 00 8E [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 E6 35 80 0D 01 02 00 00 00 00 94 [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 E6 35 00 90 00 8F [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 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 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 EA 71 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E3 70 00 00 35 04 06 00 41 [11:52:07]Write to MH i2c: E2 02 01 E7 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 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 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 EA 71 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E3 70 00 00 35 04 06 00 41 00 00 69 [11:52:07]Write i2c OK [11:52:07]MH_I2C_Read... [11:52:07]*** iso7816_exchange 80 0D 02 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 E7 35 00 90 00 90 [11:52:07]RAPDU: 90 00 [11:52:07]wFMCommunicate OK [11:52:07]wFMCommunicate request_size=10 [11:52:07]MH_SAM_APDU [11:52:07]CAPDU: 80 0D 02 02 05 A0 E7 1A D1 3C [11:52:07]Write to MH i2c: E2 0D 00 E8 35 80 0D 02 02 05 00 A0 E7 1A D1 3C 00 00 4F [11:52:07]Write i2c OK [11:52:07]MH_I2C_Read... [11:52:07]*** iso7816_exchange 80 0D 02 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 E8 35 00 90 00 91 [11:52:07]RAPDU: 90 00 [11:52:07]wFMCommunicate OK [11:52:07]wFMCommunicate request_size=4 [11:52:07]MH_SAM_APDU [11:52:07]CAPDU: 80 0D 03 02 [11:52:07]Write to MH i2c: E2 08 00 E9 35 80 0D 03 02 00 00 00 00 99 [11:52:07]Write i2c OK [11:52:07]MH_I2C_Read... [11:52:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:07]Read from MH i2c: E2 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: E2 0B 00 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: E2 0B 00 E9 35 00 CE 13 72 9B 18 67 38 30 90 00 6F [11:52:07]RAPDU: CE 13 72 9B 18 67 38 30 90 00 [11:52:07]wFMCommunicate OK [11:52:07]SAM_PROTO_SignData done [11:52:07]FM_MakeSignedData done [11:52:07]CreateOFDProtocolMessage [11:52:07]wFMCommunicate request_size=4 [11:52:07]MH_SAM_APDU [11:52:07]CAPDU: 80 11 00 00 [11:52:07]Write to MH i2c: E2 08 00 EA 35 80 11 00 00 00 00 00 00 99 [11:52:07]Write i2c OK [11:52:07]MH_I2C_Read... [11:52:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:07]Read from MH i2c: E2 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: E2 17 00 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: E2 17 00 EA 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E8 [11:52:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:52:07]wFMCommunicate OK [11:52:07]CreateOFDProtocolMessage done [11:52:07]OFDSenderStorePacket 28899 [11:52:07]StoreOFDPacket docnum=28899 [11:52:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 CA 41 07 01 00 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 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 EA 71 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E3 70 00 00 35 04 06 00 41 A0 E7 1A D1 3C CE 13 72 9B 18 67 38 30 [11:52:07]CheckFolder [11:52:07]dirname=/storage/ofd_packets [11:52:07]CheckFolder done [11:52:07]ProducePacketName [11:52:07]name=ofd_packets/00028899 [11:52:07]NVStorageSaveData ofd_packets/00028899 [11:52:07]File name is /storage/ofd_packets/00028899 [11:52:07]Write 301 bytes [11:52:07]NVStorageSaveData done [11:52:07]OFDSenderStorePacket done [11:52:07]KKMCreateOFDPacket done [11:52:07]NVStorageSaveData kkm_last_timestamp [11:52:07]File name is /storage/kkm_last_timestamp [11:52:07]Write 4 bytes [11:52:07]NVStorageSaveData done [11:52:07]ExternCall_PrintAddStr [11:52:07]wPrintStart [11:52:07]Write to MH i2c: 01 00 00 EB 35 20 [11:52:07]Write i2c OK [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: 01 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: 01 07 00 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: 01 07 00 EB 35 00 00 00 00 00 FF 0F 35 [11:52:07]RasterBufferAndPrint [11:52:07]line Счет N : (1)347253 [11:52:07]line ИНН: 02508201610067 [11:52:07]line Контрольно-Кассовый Чек [11:52:07]line ПРОДАЖА [11:52:07]line ТРК (МРК, ГНК) : 33 [11:52:07]line Товар: 2710124500 [11:52:07]line Аи-95-К-5 [11:52:07]line 6.900 * 72.50 [11:52:07]line = 500.25 [11:52:07]line НДС 12% НСП 1% [11:52:07]line > о реализуемом товаре [11:52:07]line ОКРУГЛЕНИЕ: -0.25 [11:52:07]line ИТОГО: 500.00 [11:52:07]line Внесено: 500.00 [11:52:07]line СДАЧА: 0.00 [11:52:07]line НСП 1% : 4.43 [11:52:07]line НДС 12% : 53.12 [11:52:07]line Наличными: 500.00 [11:52:07]line Безнал.: 0.00 [11:52:07]line Место: АЗС № 108 "Партнер Нефть" [11:52:07]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:52:07]line СНО: Общий режим [11:52:07]line Чек 106 13.04.2024 11:52 [11:52:07]line Смена: 115 ФФД: 1.0 [11:52:07]line ЗНМ: 0300000027 [11:52:07]line РНМ: 0000138879044617 [11:52:07]line Версия ККМ: 001 [11:52:07]line ФМ: 0000000000963154 [11:52:07]line ФД: 28899 [11:52:08]line ФПД: 72159327867196 [11:52:08]line 1/tax-web-control/client/api/v1/ticket?date=20240413T115210&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28899&fm=72159327867196&tin=02508201610067®Number=0000138879044617&sum=50000 [11:52:08]OFD Sender: Processing packet 28899 [packets to send 8, broken 7] [11:52:08]ProducePacketName [11:52:08]name=ofd_packets/00028899 [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 31 35 34 0F 01 00 00 CA 41 07 01 00 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 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 EA 71 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E3 70 00 00 35 04 06 00 41 A0 E7 1A D1 3C CE 13 72 9B 18 67 38 30 [11:52:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 14 90 47 00 60 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 31 35 34 10 04 04 00 E3 70 00 00 F4 03 04 00 91 1C 1A 66 B6 04 01 00 00 26 67 AA DC EA 9D CD 50 [11:52:08]CommunicateWithHost err = 0 [11:52:08]CheckOFDResponse [11:52:08]1017 (14) - 77093643461234 [11:52:08]1041 (16) - 0000000000963154 [11:52:08]1040 (4) - 28899 [11:52:08]1012 (4) - 13.04.2024 05:48 [11:52:08]1206 (1) - 0 [11:52:08]OFD Sender: Remove packet 28899 [11:52:08]ProducePacketName [11:52:08]name=ofd_packets/00028899 [11:52:08]NVStorageDeleteData [11:52:08]Write to MH i2c: 01 00 00 15 36 4B [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 15 36 00 00 00 00 00 CA 0C 28 [11:52:08]RasterBufferAndPrint [11:52:08]line [11:52:08]line [11:52:08]line [11:52:08]line [11:52:08]line [11:52:08]written 0, free lines is 3280 [11:52:08]MH_Cut [11:52:08]Write to MH i2c: D1 01 00 1C 36 01 24 [11:52:08]Write i2c OK [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: D1 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: D1 01 00 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: D1 01 00 1C 36 00 23 [11:52:08]Write to MH i2c: 01 00 00 1D 36 53 [11:52:08]Write i2c OK [11:52:08]MH_I2C_Read... [11:52:08]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:09]*** 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 1D 36 00 00 00 00 00 FF 0F 68 [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 1E 36 80 11 00 00 00 00 00 00 CE [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 1E 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1D [11:52:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 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 1F 36 80 13 00 00 00 00 00 00 D1 [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 1F 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E3 70 00 00 0E 04 04 00 73 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 13 [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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E3 70 00 00 0E 04 04 00 73 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: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 20 36 80 13 01 00 00 00 00 00 D3 [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 20 36 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 EC [11:52:10]RAPDU: 09 00 01 BF CF 19 66 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":"0000000000963154","fd.num":28899,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [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":"0000000000963154","fd.num":28899,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [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 7.Close socket [11:52:10]Sock 7.Thread stoped [11:52:13]OFD Sender: No OFD packet to send [11:52:18]OFD Sender: No OFD packet to send [11:52:23]OFD Sender: No OFD packet to send [11:52:28]OFD Sender: No OFD packet to send [11:52:33]OFD Sender: No OFD packet to send [11:52:38]OFD Sender: No OFD packet to send [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send [11:52:53]OFD Sender: No OFD packet to send [11:52:58]OFD Sender: No OFD packet to send [11:53:03]OFD Sender: No OFD packet to send [11:53:08]OFD Sender: No OFD packet to send [11:53:13]OFD Sender: No OFD packet to send [11:53:18]OFD Sender: No OFD packet to send [11:53:23]OFD Sender: No OFD packet to send [11:53:28]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:04]OFD Sender: No OFD packet to send [11:55:09]OFD Sender: No OFD packet to send [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:44]OFD Sender: No OFD packet to send [11:55:49]OFD Sender: No OFD packet to send [11:55:54]OFD Sender: No OFD packet to send [11:55:59]OFD Sender: No OFD packet to send [11:56:04]OFD Sender: No OFD packet to send [11:56:09]OFD Sender: No OFD packet to send [11:56:14]OFD Sender: No OFD packet to send [11:56:19]OFD Sender: No OFD packet to send [11:56:24]OFD Sender: No OFD packet to send [11:56:29]OFD Sender: No OFD packet to send [11:56:34]OFD Sender: No OFD packet to send [11:56:39]OFD Sender: No OFD packet to send [11:56:44]OFD Sender: No OFD packet to send [11:56:49]OFD Sender: No OFD packet to send [11:56:52]accept exits with 9 [11:56:52]New connection [11:56:52]New thread 3066785124 created [11:56:52]Thread 3066928484 joined [11:56:52]Waiting for new connection... [11:56:52] Sock 9.Parse request [11:56:52]Sock 9.Check first char [11:56:52]Sock 9.First char is OK [11:56:52]request: POST /json_proto HTTP/1.0 [11:56:52]Method: POST [11:56:52]URL: /json_proto [11:56:52]Method is POST - this is cgi request [11:56:52]url: /json_proto [11:56:52]query_string will be loaded in cgi processing [11:56:52]execute_cgi json_proto POST (null) [11:56:52]execute_cgi path=json_proto method=POST [11:56:52]POST find Content-Length [11:56:52]Host: 172.17.33.3:8080 [11:56:52]Content-Length: 843 [11:56:52]Content-Type: application/json [11:56:52] [11:56:52]POST finish read [11:56:52]Found Content-Length = 843 [11:56:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347254", "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" : 64.30, "quantity" : 15.560, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:52]execute_script... [11:56: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)347254", "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" : 64.30, "quantity" : 15.560, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:52]POST & json_proto [11:56:52]process_json_proto [11:56:52]json parsed OK: [11:56:52]protocol is kg_v1.0 [11:56:52]action value=close_receipt [11:56:52]process_action close_receipt [11:56:52]cmd_close_receipt [11:56:52]MH_GetDate [11:56:52]Write to MH i2c: F0 00 00 21 36 46 [11:56:52]Write i2c OK [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: F0 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: F0 09 00 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: F0 09 00 21 36 00 08 73 1A 66 23 5B 8F 65 BC [11:56:52]GetLastDocTimeStamp 1713009130 [11:56:52]current date 1713009416 [11:56:52]FM_GetShiftState [11:56:52]SAM_PROTO_GetShiftState [11:56:52]wFMCommunicate request_size=4 [11:56:52]MH_SAM_APDU [11:56:52]CAPDU: 80 13 01 00 [11:56:52]Write to MH i2c: E2 08 00 22 36 80 13 01 00 00 00 00 00 D5 [11:56:52]Write i2c OK [11:56:52]MH_I2C_Read... [11:56:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:52]Read from MH i2c: E2 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: E2 0E 00 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: E2 0E 00 22 36 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 EE [11:56:52]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:56:52]wFMCommunicate OK [11:56:52]SAM_PROTO_GetShiftState done [11:56:52]FM_GetShiftState done [11:56:52]opened in 1712967615 [11:56:52]opened+sec_in_day 1713054015 [11:56:52]quantity*price = 100050 [11:56:52]sum+1 = 100052 [11:56:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 107 13.04.2024 11:56 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28900 ФПД: 196271428285702 1/tax-web-control/client/api/v1/ticket?date=20240413T115656&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28900&fm=196271428285702&tin=02508201610067®Number=0000138879044617&sum=100051 [11:56:53]StoreToDocumentArchive [11:56:53]shift 115 fd 28900 [11:56:53]save to /storage/0115/doc_00028900 [11:56:53]save last doc name /storage/0115/doc_00028900 to /storage/kkm_last_doc_name [11:56:53]save OK [11:56:53]Clear old archive folders... [11:56:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:56:53]tlvbuf is 011B45C0 [11:56:53]SAM_PROTO_ClearQueue [11:56:53]wFMCommunicate request_size=4 [11:56:53]MH_SAM_APDU [11:56:53]CAPDU: 80 09 00 00 [11:56:53]Write to MH i2c: E2 08 00 2F 36 80 09 00 00 00 00 00 00 D7 [11:56:53]Write i2c OK [11:56:53]MH_I2C_Read... [11:56:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:53]Read from MH i2c: E2 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: E2 03 00 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: E2 03 00 2F 36 00 90 00 D9 [11:56:53]RAPDU: 90 00 [11:56:53]wFMCommunicate OK [11:56:53]SAM_PROTO_ClearQueue done [11:56:53]KKMCreateOFDPacket [11:56:53]OFDProtocolAddRootSTLVToBuf [11:56:53]FM_MakeSignedData [11:56:53]FM_MakeSignedData [11:56:53]SAM_PROTO_SignData [11:56:53]wFMCommunicate request_size=4 [11:56:53]MH_SAM_APDU [11:56:53]CAPDU: 80 0D 01 02 [11:56:53]Write to MH i2c: E2 08 00 30 36 80 0D 01 02 00 00 00 00 DF [11:56:53]Write i2c OK [11:56:53]MH_I2C_Read... [11:56:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:53]Read from MH i2c: E2 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: E2 03 00 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: E2 03 00 30 36 00 90 00 DA [11:56:53]RAPDU: 90 00 [11:56:53]wFMCommunicate OK [11:56:53]wFMCommunicate request_size=255 [11:56:53]MH_SAM_APDU [11:56: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 6B 00 00 00 F4 03 04 00 08 73 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E4 70 00 00 35 04 06 00 B2 [11:56:53]Write to MH i2c: E2 02 01 31 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 6B 00 00 00 F4 03 04 00 08 73 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E4 70 00 00 35 04 06 00 B2 00 00 50 [11:56:53]Write i2c OK [11:56:53]MH_I2C_Read... [11:56:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:53]Read from MH i2c: E2 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: E2 03 00 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: E2 03 00 31 36 00 90 00 DB [11:56:53]RAPDU: 90 00 [11:56:53]wFMCommunicate OK [11:56:53]wFMCommunicate request_size=10 [11:56:53]MH_SAM_APDU [11:56:53]CAPDU: 80 0D 02 02 05 82 00 C3 35 06 [11:56:53]Write to MH i2c: E2 0D 00 32 36 80 0D 02 02 05 00 82 00 C3 35 06 00 00 6C [11:56:53]Write i2c OK [11:56:53]MH_I2C_Read... [11:56:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:53]Read from MH i2c: E2 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: E2 03 00 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: E2 03 00 32 36 00 90 00 DC [11:56:53]RAPDU: 90 00 [11:56:53]wFMCommunicate OK [11:56:53]wFMCommunicate request_size=4 [11:56:53]MH_SAM_APDU [11:56:53]CAPDU: 80 0D 03 02 [11:56:53]Write to MH i2c: E2 08 00 33 36 80 0D 03 02 00 00 00 00 E4 [11:56:53]Write i2c OK [11:56:53]MH_I2C_Read... [11:56:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:53]Read from MH i2c: E2 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: E2 0B 00 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: E2 0B 00 33 36 00 79 85 26 57 90 72 FA 48 90 00 A4 [11:56:54]RAPDU: 79 85 26 57 90 72 FA 48 90 00 [11:56:54]wFMCommunicate OK [11:56:54]SAM_PROTO_SignData done [11:56:54]FM_MakeSignedData done [11:56:54]CreateOFDProtocolMessage [11:56:54]wFMCommunicate request_size=4 [11:56:54]MH_SAM_APDU [11:56:54]CAPDU: 80 11 00 00 [11:56:54]Write to MH i2c: E2 08 00 34 36 80 11 00 00 00 00 00 00 E4 [11:56:54]Write i2c OK [11:56:54]MH_I2C_Read... [11:56:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:54]Read from MH i2c: E2 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 17 00 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 17 00 34 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 33 [11:56:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:56:54]wFMCommunicate OK [11:56:54]CreateOFDProtocolMessage done [11:56:54]OFDSenderStorePacket 28900 [11:56:54]StoreOFDPacket docnum=28900 [11:56:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 54 A8 07 01 6D 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 6B 00 00 00 F4 03 04 00 08 73 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E4 70 00 00 35 04 06 00 B2 82 00 C3 35 06 79 85 26 57 90 72 FA 48 [11:56:54]CheckFolder [11:56:54]dirname=/storage/ofd_packets [11:56:54]CheckFolder done [11:56:54]ProducePacketName [11:56:54]name=ofd_packets/00028900 [11:56:54]NVStorageSaveData ofd_packets/00028900 [11:56:54]File name is /storage/ofd_packets/00028900 [11:56:54]Write 301 bytes [11:56:54]NVStorageSaveData done [11:56:54]OFDSenderStorePacket done [11:56:54]KKMCreateOFDPacket done [11:56:54]NVStorageSaveData kkm_last_timestamp [11:56:54]File name is /storage/kkm_last_timestamp [11:56:54]Write 4 bytes [11:56:54]NVStorageSaveData done [11:56:54]ExternCall_PrintAddStr [11:56:54]wPrintStart [11:56:54]Write to MH i2c: 01 00 00 35 36 6B [11:56:54]Write i2c OK [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: 01 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: 01 07 00 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: 01 07 00 35 36 00 00 00 00 00 FF 0F 80 [11:56:54]RasterBufferAndPrint [11:56:54]line Счет N : (1)347254 [11:56:54]line ИНН: 02508201610067 [11:56:54]line Контрольно-Кассовый Чек [11:56:54]line ПРОДАЖА [11:56:54]line ТРК (МРК, ГНК) : 32 [11:56:54]line Товар: 2710124130 [11:56:54]line Аи-92-К-5 [11:56:54]line 15.560 * 64.30 [11:56:54]line = 1000.51 [11:56:54]line НДС 12% НСП 1% [11:56:54]line > о реализуемом товаре [11:56:54]line ИТОГО: 1000.51 [11:56:54]line НСП 1% : 8.85 [11:56:54]line НДС 12% : 106.25 [11:56:54]line Наличными: 0.00 [11:56:54]line Безнал.: 1000.51 [11:56:54]line Место: АЗС № 108 "Партнер Нефть" [11:56:54]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:56:54]line СНО: Общий режим [11:56:54]line Чек 107 13.04.2024 11:56 [11:56:54]line Смена: 115 ФФД: 1.0 [11:56:54]line ЗНМ: 0300000027 [11:56:54]line РНМ: 0000138879044617 [11:56:54]line Версия ККМ: 001 [11:56:54]line Платежная система: АКБ Кыргызстан [11:56:54]line ФМ: 0000000000963154 [11:56:54]line ФД: 28900 [11:56:54]line ФПД: 196271428285702 [11:56:54]line 1/tax-web-control/client/api/v1/ticket?date=20240413T115656&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28900&fm=196271428285702&tin=02508201610067®Number=0000138879044617&sum=100051 [11:56:54]OFD Sender: Processing packet 28900 [packets to send 8, broken 7] [11:56:54]ProducePacketName [11:56:54]name=ofd_packets/00028900 [11:56:54]OFD Sender: To server: pG, [11:56:54]CommunicateWithHost lk.salyk.kg:30040 [11:56:54]ConnectInit lk.salyk.kg [11:56:54]written 0, free lines is 4095 [11:56:54]Connected sock=10 [11:56: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 31 35 34 0F 01 00 00 54 A8 07 01 6D 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 6B 00 00 00 F4 03 04 00 08 73 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E4 70 00 00 35 04 06 00 B2 82 00 C3 35 06 79 85 26 57 90 72 FA 48 [11:56:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 BB 66 47 00 C2 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 31 35 34 10 04 04 00 E4 70 00 00 F4 03 04 00 B0 1D 1A 66 B6 04 01 00 00 20 0E 92 0D FC 26 1C F7 [11:56:54]CommunicateWithHost err = 0 [11:56:54]CheckOFDResponse [11:56:54]1017 (14) - 77093643461234 [11:56:54]1041 (16) - 0000000000963154 [11:56:54]1040 (4) - 28900 [11:56:54]1012 (4) - 13.04.2024 05:52 [11:56:54]1206 (1) - 0 [11:56:54]OFD Sender: Remove packet 28900 [11:56:54]ProducePacketName [11:56:54]name=ofd_packets/00028900 [11:56:54]NVStorageDeleteData [11:56:54]Write to MH i2c: 01 00 00 5E 36 94 [11:56:54]Write i2c OK [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: 01 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: 01 07 00 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: 01 07 00 5E 36 00 00 00 00 00 D5 0C 7C [11:56:54]RasterBufferAndPrint [11:56:54]line [11:56:54]line [11:56:54]line [11:56:54]line [11:56:54]line [11:56:54]written 0, free lines is 3291 [11:56:54]MH_Cut [11:56:54]Write to MH i2c: D1 01 00 65 36 01 6D [11:56:54]Write i2c OK [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: D1 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: D1 01 00 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: D1 01 00 65 36 00 6C [11:56:54]Write to MH i2c: 01 00 00 66 36 9C [11:56:54]Write i2c OK [11:56:54]MH_I2C_Read... [11:56:55]OFD Sender: No OFD packet to send [11:56:55]*** Cut start [11:56:55]*** Partial cut [11:56:55]*** CUTSNS_PIN = 1 [11:56:55]*** CUTSNS_PIN = 0 [11:56:55]*** Brake cut motor [11:56:56]Read from MH i2c: 01 [11:56:56]MH_I2C_Read... [11:56:56]*** Stop cut motor [11:56:56]*** Cut end [11:56:56]Read from MH i2c: 01 07 00 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: 01 07 00 66 36 00 00 00 00 00 FF 0F B1 [11:56:56]process_action close_receipt done [11:56:56]requested_data is exist [11:56:56]produce_requested_data [11:56:56]requested_item fm.sn is exist - process it [11:56:56]wFMCommunicate request_size=4 [11:56:56]MH_SAM_APDU [11:56:56]CAPDU: 80 11 00 00 [11:56:56]Write to MH i2c: E2 08 00 67 36 80 11 00 00 00 00 00 00 17 [11:56:56]Write i2c OK [11:56:56]MH_I2C_Read... [11:56:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:56]Read from MH i2c: E2 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 17 00 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 17 00 67 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 66 [11:56:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:56:56]wFMCommunicate OK [11:56:56]requested_item fd.num is exist - process it [11:56:56]SAM_PROTO_GetFieldsCounters [11:56:56]wFMCommunicate request_size=4 [11:56:56]MH_SAM_APDU [11:56:56]CAPDU: 80 13 00 00 [11:56:56]Write to MH i2c: E2 08 00 68 36 80 13 00 00 00 00 00 00 1A [11:56:56]Write i2c OK [11:56:56]MH_I2C_Read... [11:56:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:56]Read from MH i2c: E2 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 62 00 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 62 00 68 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E4 70 00 00 0E 04 04 00 73 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 60 [11:56: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E4 70 00 00 0E 04 04 00 73 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:56:56]wFMCommunicate OK [11:56:56]SAM_PROTO_GetFieldsCounters done [11:56:56]requested_item shift.num is exist - process it [11:56:56]requested_item shift.opened is exist - process it [11:56:56]req_shift_opened [11:56:56]FM_GetShiftState [11:56:56]SAM_PROTO_GetShiftState [11:56:56]wFMCommunicate request_size=4 [11:56:56]MH_SAM_APDU [11:56:56]CAPDU: 80 13 01 00 [11:56:56]Write to MH i2c: E2 08 00 69 36 80 13 01 00 00 00 00 00 1C [11:56:56]Write i2c OK [11:56:56]MH_I2C_Read... [11:56:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:56]Read from MH i2c: E2 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 0E 00 [11:56:56]MH_I2C_Read... [11:56:56]Read from MH i2c: E2 0E 00 69 36 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 35 [11:56:56]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:56:56]wFMCommunicate OK [11:56:56]SAM_PROTO_GetShiftState done [11:56:56]FM_GetShiftState done [11:56:56]req_shift_opened done [11:56:56]requested_item shift.open_date is exist - process it [11:56:56]req_shift_open_date [11:56:56]req_shift_open_date done [11:56:56]produce_requested_data done [11:56:56]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28900,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [11:56:56]process_action_free close_receipt [11:56:56]json_value_free [11:56:56]json_value_free done [11:56:56]process_json_proto returns [11:56:56]Send response to host [11:56:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28900,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [11:56:56]free response buf [11:56:56]execute_script done [11:56:56]execute_script returns [11:56:56]free content buf [11:56:56]Sock 9.Close socket [11:56:56]Sock 9.Thread stoped [11:57:00]OFD Sender: No OFD packet to send [11:57:05]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:40]accept exits with 7 [11:59:40]New connection [11:59:40]New thread 3066928484 created [11:59:40]Thread 3066785124 joined [11:59:40]Waiting for new connection... [11:59:40] Sock 7.Parse request [11:59:40]Sock 7.Check first char [11:59:40]Sock 7.First char is OK [11:59:40]request: POST /json_proto HTTP/1.0 [11:59:40]Method: POST [11:59:40]URL: /json_proto [11:59:40]Method is POST - this is cgi request [11:59:40]url: /json_proto [11:59:40]query_string will be loaded in cgi processing [11:59:40]execute_cgi json_proto POST (null) [11:59:40]execute_cgi path=json_proto method=POST [11:59:40]POST find Content-Length [11:59:40]Host: 172.17.33.3:8080 [11:59:40]Content-Length: 808 [11:59:40]Content-Type: application/json [11:59:40] [11:59:40]POST finish read [11:59:40]Found Content-Length = 808 [11:59:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347255", "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" : 64.30, "quantity" : 23.330, "sum" : 1500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:40]execute_script... [11:59:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347255", "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" : 64.30, "quantity" : 23.330, "sum" : 1500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:40]POST & json_proto [11:59:40]process_json_proto [11:59:40]json parsed OK: [11:59:40]protocol is kg_v1.0 [11:59:40]action value=close_receipt [11:59:40]process_action close_receipt [11:59:40]cmd_close_receipt [11:59:40]MH_GetDate [11:59:40]Write to MH i2c: F0 00 00 6A 36 8F [11:59:40]Write i2c OK [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: F0 [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: F0 09 00 [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: F0 09 00 6A 36 00 B1 73 1A 66 23 5B 8F 65 AE [11:59:40]GetLastDocTimeStamp 1713009416 [11:59:40]current date 1713009585 [11:59:40]FM_GetShiftState [11:59:40]SAM_PROTO_GetShiftState [11:59:40]wFMCommunicate request_size=4 [11:59:40]MH_SAM_APDU [11:59:40]CAPDU: 80 13 01 00 [11:59:40]Write to MH i2c: E2 08 00 6B 36 80 13 01 00 00 00 00 00 1E [11:59:40]Write i2c OK [11:59:40]MH_I2C_Read... [11:59:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:40]Read from MH i2c: E2 [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: E2 0E 00 [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: E2 0E 00 6B 36 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 37 [11:59:40]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:59:40]wFMCommunicate OK [11:59:40]SAM_PROTO_GetShiftState done [11:59:40]FM_GetShiftState done [11:59:40]opened in 1712967615 [11:59:40]opened+sec_in_day 1713054015 [11:59:40]quantity*price = 150011 [11:59:40]sum+1 = 150013 [11:59:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.12 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 0.00 Безнал.: 1500.12 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 108 13.04.2024 11:59 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28901 ФПД: 40516488856681 1/tax-web-control/client/api/v1/ticket?date=20240413T115945&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28901&fm=40516488856681&tin=02508201610067®Number=0000138879044617&sum=150012 [11:59:41]StoreToDocumentArchive [11:59:41]shift 115 fd 28901 [11:59:41]save to /storage/0115/doc_00028901 [11:59:41]save last doc name /storage/0115/doc_00028901 to /storage/kkm_last_doc_name [11:59:41]save OK [11:59:41]Clear old archive folders... [11:59:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:59:41]tlvbuf is 01284630 [11:59:41]SAM_PROTO_ClearQueue [11:59:41]wFMCommunicate request_size=4 [11:59:41]MH_SAM_APDU [11:59:41]CAPDU: 80 09 00 00 [11:59:41]Write to MH i2c: E2 08 00 78 36 80 09 00 00 00 00 00 00 20 [11:59:41]Write i2c OK [11:59:41]MH_I2C_Read... [11:59:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:41]Read from MH i2c: E2 [11:59:41]MH_I2C_Read... [11:59:41]Read from MH i2c: E2 03 00 [11:59:41]MH_I2C_Read... [11:59:41]Read from MH i2c: E2 03 00 78 36 00 90 00 22 [11:59:41]RAPDU: 90 00 [11:59:41]wFMCommunicate OK [11:59:41]SAM_PROTO_ClearQueue done [11:59:41]KKMCreateOFDPacket [11:59:41]OFDProtocolAddRootSTLVToBuf [11:59:41]FM_MakeSignedData [11:59:41]FM_MakeSignedData [11:59:41]SAM_PROTO_SignData [11:59:41]wFMCommunicate request_size=4 [11:59:41]MH_SAM_APDU [11:59:41]CAPDU: 80 0D 01 02 [11:59:41]Write to MH i2c: E2 08 00 79 36 80 0D 01 02 00 00 00 00 28 [11:59:41]Write i2c OK [11:59:41]MH_I2C_Read... [11:59:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:42]Read from MH i2c: E2 [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: E2 03 00 [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: E2 03 00 79 36 00 90 00 23 [11:59:42]RAPDU: 90 00 [11:59:42]wFMCommunicate OK [11:59:42]wFMCommunicate request_size=255 [11:59:42]MH_SAM_APDU [11:59: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 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 B1 73 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E5 70 00 00 35 04 06 00 24 [11:59:42]Write to MH i2c: E2 02 01 7A 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 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 B1 73 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E5 70 00 00 35 04 06 00 24 00 00 80 [11:59:42]Write i2c OK [11:59:42]MH_I2C_Read... [11:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:42]Read from MH i2c: E2 [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: E2 03 00 [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: E2 03 00 7A 36 00 90 00 24 [11:59:42]RAPDU: 90 00 [11:59:42]wFMCommunicate OK [11:59:42]wFMCommunicate request_size=10 [11:59:42]MH_SAM_APDU [11:59:42]CAPDU: 80 0D 02 02 05 D9 7A ED 04 69 [11:59:42]Write to MH i2c: E2 0D 00 7B 36 80 0D 02 02 05 00 D9 7A ED 04 69 00 00 E2 [11:59:42]Write i2c OK [11:59:42]MH_I2C_Read... [11:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:42]Read from MH i2c: E2 [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: E2 03 00 [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: E2 03 00 7B 36 00 90 00 25 [11:59:42]RAPDU: 90 00 [11:59:42]wFMCommunicate OK [11:59:42]wFMCommunicate request_size=4 [11:59:42]MH_SAM_APDU [11:59:42]CAPDU: 80 0D 03 02 [11:59:42]Write to MH i2c: E2 08 00 7C 36 80 0D 03 02 00 00 00 00 2D [11:59:42]Write i2c OK [11:59:42]MH_I2C_Read... [11:59:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:42]Read from MH i2c: E2 [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: E2 0B 00 [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: E2 0B 00 7C 36 00 8E 50 89 36 10 0C 6B CF 90 00 21 [11:59:42]RAPDU: 8E 50 89 36 10 0C 6B CF 90 00 [11:59:42]wFMCommunicate OK [11:59:42]SAM_PROTO_SignData done [11:59:42]FM_MakeSignedData done [11:59:42]CreateOFDProtocolMessage [11:59:42]wFMCommunicate request_size=4 [11:59:42]MH_SAM_APDU [11:59:42]CAPDU: 80 11 00 00 [11:59:42]Write to MH i2c: E2 08 00 7D 36 80 11 00 00 00 00 00 00 2D [11:59:42]Write i2c OK [11:59:42]MH_I2C_Read... [11:59:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:42]Read from MH i2c: E2 [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: E2 17 00 [11:59:42]MH_I2C_Read... [11:59:42]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 31 35 34 90 00 7C [11:59:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:59:42]wFMCommunicate OK [11:59:42]CreateOFDProtocolMessage done [11:59:42]OFDSenderStorePacket 28901 [11:59:42]StoreOFDPacket docnum=28901 [11:59:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 89 DF 07 01 63 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 B1 73 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E5 70 00 00 35 04 06 00 24 D9 7A ED 04 69 8E 50 89 36 10 0C 6B CF [11:59:42]CheckFolder [11:59:42]dirname=/storage/ofd_packets [11:59:42]CheckFolder done [11:59:42]ProducePacketName [11:59:42]name=ofd_packets/00028901 [11:59:42]NVStorageSaveData ofd_packets/00028901 [11:59:42]File name is /storage/ofd_packets/00028901 [11:59:42]Write 301 bytes [11:59:42]NVStorageSaveData done [11:59:42]OFDSenderStorePacket done [11:59:42]KKMCreateOFDPacket done [11:59:42]NVStorageSaveData kkm_last_timestamp [11:59:42]File name is /storage/kkm_last_timestamp [11:59:42]Write 4 bytes [11:59:42]NVStorageSaveData done [11:59:42]ExternCall_PrintAddStr [11:59:42]wPrintStart [11:59:42]Write to MH i2c: 01 00 00 7E 36 B4 [11:59:42]Write i2c OK [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: 01 [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: 01 07 00 [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: 01 07 00 7E 36 00 00 00 00 00 FF 0F C9 [11:59:42]RasterBufferAndPrint [11:59:42]line Счет N : (1)347255 [11:59:42]line ИНН: 02508201610067 [11:59:42]line Контрольно-Кассовый Чек [11:59:42]line ПРОДАЖА [11:59:42]line ТРК (МРК, ГНК) : 42 [11:59:42]line Товар: 2710124130 [11:59:42]line Аи-92-К-5 [11:59:42]line 23.330 * 64.30 [11:59:42]line = 1500.12 [11:59:42]line НДС 12% НСП 1% [11:59:42]line > о реализуемом товаре [11:59:42]line ИТОГО: 1500.12 [11:59:42]line НСП 1% : 13.27 [11:59:42]line НДС 12% : 159.30 [11:59:42]line Наличными: 0.00 [11:59:42]line Безнал.: 1500.12 [11:59:42]line Место: АЗС № 108 "Партнер Нефть" [11:59:42]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [11:59:42]line СНО: Общий режим [11:59:42]line Чек 108 13.04.2024 11:59 [11:59:42]line Смена: 115 ФФД: 1.0 [11:59:42]line ЗНМ: 0300000027 [11:59:42]line РНМ: 0000138879044617 [11:59:42]line Версия ККМ: 001 [11:59:42]line Платежная система: О! деньги [11:59:42]line ФМ: 0000000000963154 [11:59:42]line ФД: 28901 [11:59:42]line ФПД: 40516488856681 [11:59:42]line 1/tax-web-control/client/api/v1/ticket?date=20240413T115945&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28901&fm=40516488856681&tin=02508201610067®Number=0000138879044617&sum=150012 [11:59:42]OFD Sender: Processing packet 28901 [packets to send 8, broken 7] [11:59:42]ProducePacketName [11:59:42]name=ofd_packets/00028901 [11:59:42]OFD Sender: To server: pG, [11:59:42]CommunicateWithHost lk.salyk.kg:30040 [11:59:42]ConnectInit lk.salyk.kg [11:59:42]written 0, free lines is 4095 [11:59:42]Connected sock=10 [11:59:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 89 DF 07 01 63 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 B1 73 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E5 70 00 00 35 04 06 00 24 D9 7A ED 04 69 8E 50 89 36 10 0C 6B CF [11:59:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 15 2C 47 00 54 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 31 35 34 10 04 04 00 E5 70 00 00 F4 03 04 00 58 1E 1A 66 B6 04 01 00 00 94 A3 B7 DA C4 3E 39 7F [11:59:43]CommunicateWithHost err = 0 [11:59:43]CheckOFDResponse [11:59:43]1017 (14) - 77093643461234 [11:59:43]1041 (16) - 0000000000963154 [11:59:43]1040 (4) - 28901 [11:59:43]1012 (4) - 13.04.2024 05:55 [11:59:43]1206 (1) - 0 [11:59:43]OFD Sender: Remove packet 28901 [11:59:43]ProducePacketName [11:59:43]name=ofd_packets/00028901 [11:59:43]NVStorageDeleteData [11:59:43]Write to MH i2c: 01 00 00 A7 36 DD [11:59:43]Write i2c OK [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: 01 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: 01 07 00 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: 01 07 00 A7 36 00 00 00 00 00 DE 0C CE [11:59:43]RasterBufferAndPrint [11:59:43]line [11:59:43]line [11:59:43]line [11:59:43]line [11:59:43]line [11:59:43]written 0, free lines is 3302 [11:59:43]MH_Cut [11:59:43]Write to MH i2c: D1 01 00 AE 36 01 B6 [11:59:43]Write i2c OK [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: D1 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: D1 01 00 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: D1 01 00 AE 36 00 B5 [11:59:43]Write to MH i2c: 01 00 00 AF 36 E5 [11:59:43]Write i2c OK [11:59:43]MH_I2C_Read... [11:59:43]OFD Sender: No OFD packet to send [11:59:44]*** Cut start [11:59:44]*** Partial cut [11:59:44]*** CUTSNS_PIN = 1 [11:59:44]*** CUTSNS_PIN = 0 [11:59:44]*** Brake cut motor [11:59:44]Read from MH i2c: 01 [11:59:44]MH_I2C_Read... [11:59:44]*** Stop cut motor [11:59:44]*** Cut end [11:59:44]Read from MH i2c: 01 07 00 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: 01 07 00 AF 36 00 00 00 00 00 FF 0F FA [11:59:44]process_action close_receipt done [11:59:44]requested_data is exist [11:59:44]produce_requested_data [11:59:44]requested_item fm.sn is exist - process it [11:59:44]wFMCommunicate request_size=4 [11:59:44]MH_SAM_APDU [11:59:44]CAPDU: 80 11 00 00 [11:59:44]Write to MH i2c: E2 08 00 B0 36 80 11 00 00 00 00 00 00 60 [11:59:44]Write i2c OK [11:59:44]MH_I2C_Read... [11:59:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:44]Read from MH i2c: E2 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: E2 17 00 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: E2 17 00 B0 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AF [11:59:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [11:59:44]wFMCommunicate OK [11:59:44]requested_item fd.num is exist - process it [11:59:44]SAM_PROTO_GetFieldsCounters [11:59:44]wFMCommunicate request_size=4 [11:59:44]MH_SAM_APDU [11:59:44]CAPDU: 80 13 00 00 [11:59:44]Write to MH i2c: E2 08 00 B1 36 80 13 00 00 00 00 00 00 63 [11:59:44]Write i2c OK [11:59:44]MH_I2C_Read... [11:59:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:44]Read from MH i2c: E2 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: E2 62 00 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: E2 62 00 B1 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E5 70 00 00 0E 04 04 00 73 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 AD [11:59:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E5 70 00 00 0E 04 04 00 73 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:59:44]wFMCommunicate OK [11:59:44]SAM_PROTO_GetFieldsCounters done [11:59:44]requested_item shift.num is exist - process it [11:59:44]requested_item shift.opened is exist - process it [11:59:44]req_shift_opened [11:59:44]FM_GetShiftState [11:59:44]SAM_PROTO_GetShiftState [11:59:44]wFMCommunicate request_size=4 [11:59:44]MH_SAM_APDU [11:59:44]CAPDU: 80 13 01 00 [11:59:44]Write to MH i2c: E2 08 00 B2 36 80 13 01 00 00 00 00 00 65 [11:59:44]Write i2c OK [11:59:44]MH_I2C_Read... [11:59:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:44]Read from MH i2c: E2 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: E2 0E 00 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: E2 0E 00 B2 36 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 7E [11:59:44]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [11:59:44]wFMCommunicate OK [11:59:44]SAM_PROTO_GetShiftState done [11:59:44]FM_GetShiftState done [11:59:44]req_shift_opened done [11:59:44]requested_item shift.open_date is exist - process it [11:59:44]req_shift_open_date [11:59:44]req_shift_open_date done [11:59:44]produce_requested_data done [11:59:44]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28901,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [11:59:44]process_action_free close_receipt [11:59:44]json_value_free [11:59:44]json_value_free done [11:59:44]process_json_proto returns [11:59:44]Send response to host [11:59:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28901,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [11:59:44]free response buf [11:59:44]execute_script done [11:59:44]execute_script returns [11:59:44]free content buf [11:59:44]Sock 7.Close socket [11:59:44]Sock 7.Thread stoped [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:33]OFD Sender: No OFD packet to send [12:01:38]OFD Sender: No OFD packet to send [12:01:43]OFD Sender: No OFD packet to send [12:01:48]OFD Sender: No OFD packet to send [12:01:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:13]OFD Sender: No OFD packet to send [12:02:18]OFD Sender: No OFD packet to send [12:02:23]OFD Sender: No OFD packet to send [12:02:28]OFD Sender: No OFD packet to send [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02:43]OFD Sender: No OFD packet to send [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:57]accept exits with 9 [12:02:57]New connection [12:02:57]New thread 3066785124 created [12:02:57]Thread 3066928484 joined [12:02:57]Waiting for new connection... [12:02:57] Sock 9.Parse request [12:02:57]Sock 9.Check first char [12:02:57]Sock 9.First char is OK [12:02:57]request: POST /json_proto HTTP/1.0 [12:02:57]Method: POST [12:02:57]URL: /json_proto [12:02:57]Method is POST - this is cgi request [12:02:57]url: /json_proto [12:02:57]query_string will be loaded in cgi processing [12:02:57]execute_cgi json_proto POST (null) [12:02:57]execute_cgi path=json_proto method=POST [12:02:57]POST find Content-Length [12:02:57]Host: 172.17.33.3:8080 [12:02:57]Content-Length: 674 [12:02:57]Content-Type: application/json [12:02:57] [12:02:57]POST finish read [12:02:57]Found Content-Length = 674 [12:02:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347257", "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" : 72.40, "quantity" : 6.910, "sum" : 500.28, "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:02:57]execute_script... [12:02:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347257", "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" : 72.40, "quantity" : 6.910, "sum" : 500.28, "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:02:57]POST & json_proto [12:02:57]process_json_proto [12:02:57]json parsed OK: [12:02:57]protocol is kg_v1.0 [12:02:57]action value=close_receipt [12:02:57]process_action close_receipt [12:02:57]cmd_close_receipt [12:02:57]MH_GetDate [12:02:57]Write to MH i2c: F0 00 00 B3 36 D8 [12:02:57]Write i2c OK [12:02:57]MH_I2C_Read... [12:02:57]Read from MH i2c: F0 [12:02:57]MH_I2C_Read... [12:02:57]Read from MH i2c: F0 09 00 [12:02:57]MH_I2C_Read... [12:02:57]Read from MH i2c: F0 09 00 B3 36 00 76 74 1A 66 23 5B 8F 65 BD [12:02:57]GetLastDocTimeStamp 1713009585 [12:02:57]current date 1713009782 [12:02:57]FM_GetShiftState [12:02:57]SAM_PROTO_GetShiftState [12:02:57]wFMCommunicate request_size=4 [12:02:57]MH_SAM_APDU [12:02:57]CAPDU: 80 13 01 00 [12:02:57]Write to MH i2c: E2 08 00 B4 36 80 13 01 00 00 00 00 00 67 [12:02:57]Write i2c OK [12:02:57]MH_I2C_Read... [12:02:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:57]Read from MH i2c: E2 [12:02:57]MH_I2C_Read... [12:02:57]Read from MH i2c: E2 0E 00 [12:02:57]MH_I2C_Read... [12:02:57]Read from MH i2c: E2 0E 00 B4 36 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 80 [12:02:57]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:02:57]wFMCommunicate OK [12:02:57]SAM_PROTO_GetShiftState done [12:02:57]FM_GetShiftState done [12:02:57]opened in 1712967615 [12:02:57]opened+sec_in_day 1713054015 [12:02:57]quantity*price = 50028 [12:02:57]sum+1 = 50029 [12:02:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 109 13.04.2024 12:03 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28902 ФПД: 110997804309211 1/tax-web-control/client/api/v1/ticket?date=20240413T120302&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28902&fm=110997804309211&tin=02508201610067®Number=0000138879044617&sum=50000 [12:02:58]StoreToDocumentArchive [12:02:58]shift 115 fd 28902 [12:02:58]save to /storage/0115/doc_00028902 [12:02:58]save last doc name /storage/0115/doc_00028902 to /storage/kkm_last_doc_name [12:02:58]save OK [12:02:58]Clear old archive folders... [12:02:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:02:58]tlvbuf is 01233370 [12:02:58]SAM_PROTO_ClearQueue [12:02:58]wFMCommunicate request_size=4 [12:02:58]MH_SAM_APDU [12:02:58]CAPDU: 80 09 00 00 [12:02:58]Write to MH i2c: E2 08 00 C1 36 80 09 00 00 00 00 00 00 69 [12:02:58]Write i2c OK [12:02:58]MH_I2C_Read... [12:02:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:58]Read from MH i2c: E2 [12:02:58]MH_I2C_Read... [12:02:58]Read from MH i2c: E2 03 00 [12:02:58]MH_I2C_Read... [12:02:58]Read from MH i2c: E2 03 00 C1 36 00 90 00 6B [12:02:58]RAPDU: 90 00 [12:02:58]wFMCommunicate OK [12:02:58]SAM_PROTO_ClearQueue done [12:02:58]KKMCreateOFDPacket [12:02:58]OFDProtocolAddRootSTLVToBuf [12:02:58]FM_MakeSignedData [12:02:58]FM_MakeSignedData [12:02:58]SAM_PROTO_SignData [12:02:58]wFMCommunicate request_size=4 [12:02:58]MH_SAM_APDU [12:02:58]CAPDU: 80 0D 01 02 [12:02:58]Write to MH i2c: E2 08 00 C2 36 80 0D 01 02 00 00 00 00 71 [12:02:58]Write i2c OK [12:02:58]MH_I2C_Read... [12:02:58]OFD Sender: No OFD packet to send [12:02:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:58]Read from MH i2c: E2 [12:02:58]MH_I2C_Read... [12:02:58]Read from MH i2c: E2 03 00 [12:02:58]MH_I2C_Read... [12:02:58]Read from MH i2c: E2 03 00 C2 36 00 90 00 6C [12:02:58]RAPDU: 90 00 [12:02:58]wFMCommunicate OK [12:02:58]wFMCommunicate request_size=255 [12:02:58]MH_SAM_APDU [12:02: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 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 76 74 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E6 70 00 00 35 04 06 00 64 F3 B0 B2 [12:02:58]Write to MH i2c: E2 02 01 C3 36 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 76 74 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E6 70 00 00 35 04 06 00 64 F3 B0 B2 00 00 A6 [12:02:58]Write i2c OK [12:02:58]MH_I2C_Read... [12:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:59]Read from MH i2c: E2 [12:02:59]MH_I2C_Read... [12:02:59]Read from MH i2c: E2 03 00 [12:02:59]MH_I2C_Read... [12:02:59]Read from MH i2c: E2 03 00 C3 36 00 90 00 6D [12:02:59]RAPDU: 90 00 [12:02:59]wFMCommunicate OK [12:02:59]wFMCommunicate request_size=7 [12:02:59]MH_SAM_APDU [12:02:59]CAPDU: 80 0D 02 02 02 5A DB [12:02:59]Write to MH i2c: E2 0A 00 C4 36 80 0D 02 02 02 00 5A DB 00 00 AD [12:02:59]Write i2c OK [12:02:59]MH_I2C_Read... [12:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:59]Read from MH i2c: E2 [12:02:59]MH_I2C_Read... [12:02:59]Read from MH i2c: E2 03 00 [12:02:59]MH_I2C_Read... [12:02:59]Read from MH i2c: E2 03 00 C4 36 00 90 00 6E [12:02:59]RAPDU: 90 00 [12:02:59]wFMCommunicate OK [12:02:59]wFMCommunicate request_size=4 [12:02:59]MH_SAM_APDU [12:02:59]CAPDU: 80 0D 03 02 [12:02:59]Write to MH i2c: E2 08 00 C5 36 80 0D 03 02 00 00 00 00 76 [12:02:59]Write i2c OK [12:02:59]MH_I2C_Read... [12:02:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:59]Read from MH i2c: E2 [12:02:59]MH_I2C_Read... [12:02:59]Read from MH i2c: E2 0B 00 [12:02:59]MH_I2C_Read... [12:02:59]Read from MH i2c: E2 0B 00 C5 36 00 54 08 75 63 C6 47 F7 43 90 00 F2 [12:02:59]RAPDU: 54 08 75 63 C6 47 F7 43 90 00 [12:02:59]wFMCommunicate OK [12:02:59]SAM_PROTO_SignData done [12:02:59]FM_MakeSignedData done [12:02:59]CreateOFDProtocolMessage [12:02:59]wFMCommunicate request_size=4 [12:02:59]MH_SAM_APDU [12:02:59]CAPDU: 80 11 00 00 [12:02:59]Write to MH i2c: E2 08 00 C6 36 80 11 00 00 00 00 00 00 76 [12:02:59]Write i2c OK [12:02:59]MH_I2C_Read... [12:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:59]Read from MH i2c: E2 [12:02:59]MH_I2C_Read... [12:02:59]Read from MH i2c: E2 17 00 [12:02:59]MH_I2C_Read... [12:02:59]Read from MH i2c: E2 17 00 C6 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C5 [12:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:02:59]wFMCommunicate OK [12:02:59]CreateOFDProtocolMessage done [12:02:59]OFDSenderStorePacket 28902 [12:02:59]StoreOFDPacket docnum=28902 [12:02:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 DD 41 04 01 C9 C9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 76 74 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E6 70 00 00 35 04 06 00 64 F3 B0 B2 5A DB 54 08 75 63 C6 47 F7 43 [12:02:59]CheckFolder [12:02:59]dirname=/storage/ofd_packets [12:02:59]CheckFolder done [12:02:59]ProducePacketName [12:02:59]name=ofd_packets/00028902 [12:02:59]NVStorageSaveData ofd_packets/00028902 [12:02:59]File name is /storage/ofd_packets/00028902 [12:02:59]Write 298 bytes [12:02:59]NVStorageSaveData done [12:02:59]OFDSenderStorePacket done [12:02:59]KKMCreateOFDPacket done [12:02:59]NVStorageSaveData kkm_last_timestamp [12:02:59]File name is /storage/kkm_last_timestamp [12:02:59]Write 4 bytes [12:02:59]NVStorageSaveData done [12:02:59]ExternCall_PrintAddStr [12:02:59]wPrintStart [12:02:59]Write to MH i2c: 01 00 00 C7 36 FD [12:02:59]Write i2c OK [12:02:59]MH_I2C_Read... [12:02:59]Read from MH i2c: 01 [12:02:59]MH_I2C_Read... [12:02:59]Read from MH i2c: 01 07 00 [12:02:59]MH_I2C_Read... [12:02:59]Read from MH i2c: 01 07 00 C7 36 00 00 00 00 00 FF 0F 12 [12:02:59]RasterBufferAndPrint [12:02:59]line Счет N : (1)347257 [12:02:59]line ИНН: 02508201610067 [12:02:59]line Контрольно-Кассовый Чек [12:02:59]line ПРОДАЖА [12:02:59]line ТРК (МРК, ГНК) : 51 [12:02:59]line Товар: 2710194210 [12:02:59]line ДТ-К-5 [12:02:59]line 6.910 * 72.40 [12:02:59]line = 500.28 [12:02:59]line НДС 12% НСП 1% [12:02:59]line > о реализуемом товаре [12:02:59]line ОКРУГЛЕНИЕ: -0.28 [12:02:59]line ИТОГО: 500.00 [12:02:59]line Внесено: 500.00 [12:02:59]line СДАЧА: 0.00 [12:02:59]line НСП 1% : 4.43 [12:02:59]line НДС 12% : 53.13 [12:02:59]line Наличными: 500.00 [12:02:59]line Безнал.: 0.00 [12:02:59]line Место: АЗС № 108 "Партнер Нефть" [12:02:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:02:59]line СНО: Общий режим [12:02:59]line Чек 109 13.04.2024 12:03 [12:02:59]line Смена: 115 ФФД: 1.0 [12:02:59]line ЗНМ: 0300000027 [12:02:59]line РНМ: 0000138879044617 [12:02:59]line Версия ККМ: 001 [12:02:59]line ФМ: 0000000000963154 [12:02:59]line ФД: 28902 [12:02:59]line ФПД: 110997804309211 [12:02:59]line 1/tax-web-control/client/api/v1/ticket?date=20240413T120302&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28902&fm=110997804309211&tin=02508201610067®Number=0000138879044617&sum=50000 [12:02:59]OFD Sender: Processing packet 28902 [packets to send 8, broken 7] [12:02:59]ProducePacketName [12:02:59]name=ofd_packets/00028902 [12:02:59]OFD Sender: To server: pG, [12:02:59]CommunicateWithHost lk.salyk.kg:30040 [12:02:59]ConnectInit lk.salyk.kg [12:02:59]written 0, free lines is 4095 [12:02:59]Connected sock=10 [12:02: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 31 35 34 0C 01 00 00 DD 41 04 01 C9 C9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 76 74 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E6 70 00 00 35 04 06 00 64 F3 B0 B2 5A DB 54 08 75 63 C6 47 F7 43 [12:02:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E8 E4 47 00 67 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 31 35 34 10 04 04 00 E6 70 00 00 F4 03 04 00 1D 1F 1A 66 B6 04 01 00 00 8A E0 F2 4B 82 0E 0D 85 [12:02:59]CommunicateWithHost err = 0 [12:02:59]CheckOFDResponse [12:02:59]1017 (14) - 77093643461234 [12:02:59]1041 (16) - 0000000000963154 [12:02:59]1040 (4) - 28902 [12:02:59]1012 (4) - 13.04.2024 05:58 [12:02:59]1206 (1) - 0 [12:02:59]OFD Sender: Remove packet 28902 [12:02:59]ProducePacketName [12:02:59]name=ofd_packets/00028902 [12:02:59]NVStorageDeleteData [12:03:00]Write to MH i2c: 01 00 00 F1 36 27 [12:03:00]Write i2c OK [12:03:00]MH_I2C_Read... [12:03:00]Read from MH i2c: 01 [12:03:00]MH_I2C_Read... [12:03:00]Read from MH i2c: 01 07 00 [12:03:00]MH_I2C_Read... [12:03:00]Read from MH i2c: 01 07 00 F1 36 00 00 00 00 00 C2 0C FC [12:03:00]RasterBufferAndPrint [12:03:00]line [12:03:00]line [12:03:00]line [12:03:00]line [12:03:00]line [12:03:00]written 0, free lines is 3272 [12:03:00]MH_Cut [12:03:00]Write to MH i2c: D1 01 00 F8 36 01 00 [12:03:00]Write i2c OK [12:03:00]MH_I2C_Read... [12:03:00]Read from MH i2c: D1 [12:03:00]MH_I2C_Read... [12:03:00]Read from MH i2c: D1 01 00 [12:03:00]MH_I2C_Read... [12:03:00]Read from MH i2c: D1 01 00 F8 36 00 FF [12:03:00]Write to MH i2c: 01 00 00 F9 36 2F [12:03:00]Write i2c OK [12:03:00]MH_I2C_Read... [12:03:00]OFD Sender: No OFD packet to send [12:03:00]*** Cut start [12:03:00]*** Partial cut [12:03:00]*** CUTSNS_PIN = 1 [12:03:00]*** CUTSNS_PIN = 0 [12:03:01]*** Brake cut motor [12:03:01]Read from MH i2c: 01 [12:03:01]MH_I2C_Read... [12:03:01]*** Stop cut motor [12:03:01]*** Cut end [12:03:01]Read from MH i2c: 01 07 00 [12:03:01]MH_I2C_Read... [12:03:01]Read from MH i2c: 01 07 00 F9 36 00 00 00 00 00 FF 0F 44 [12:03:01]process_action close_receipt done [12:03:01]requested_data is exist [12:03:01]produce_requested_data [12:03:01]requested_item fm.sn is exist - process it [12:03:01]wFMCommunicate request_size=4 [12:03:01]MH_SAM_APDU [12:03:01]CAPDU: 80 11 00 00 [12:03:01]Write to MH i2c: E2 08 00 FA 36 80 11 00 00 00 00 00 00 AA [12:03:01]Write i2c OK [12:03:01]MH_I2C_Read... [12:03:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:01]Read from MH i2c: E2 [12:03:01]MH_I2C_Read... [12:03:01]Read from MH i2c: E2 17 00 [12:03:01]MH_I2C_Read... [12:03:01]Read from MH i2c: E2 17 00 FA 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F9 [12:03:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:03:01]wFMCommunicate OK [12:03:01]requested_item fd.num is exist - process it [12:03:01]SAM_PROTO_GetFieldsCounters [12:03:01]wFMCommunicate request_size=4 [12:03:01]MH_SAM_APDU [12:03:01]CAPDU: 80 13 00 00 [12:03:01]Write to MH i2c: E2 08 00 FB 36 80 13 00 00 00 00 00 00 AD [12:03:01]Write i2c OK [12:03:01]MH_I2C_Read... [12:03:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:01]Read from MH i2c: E2 [12:03:01]MH_I2C_Read... [12:03:01]Read from MH i2c: E2 62 00 [12:03:01]MH_I2C_Read... [12:03:01]Read from MH i2c: E2 62 00 FB 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E6 70 00 00 0E 04 04 00 73 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 FB [12:03: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E6 70 00 00 0E 04 04 00 73 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 [12:03:01]wFMCommunicate OK [12:03:01]SAM_PROTO_GetFieldsCounters done [12:03:01]requested_item shift.num is exist - process it [12:03:01]requested_item shift.opened is exist - process it [12:03:01]req_shift_opened [12:03:01]FM_GetShiftState [12:03:01]SAM_PROTO_GetShiftState [12:03:01]wFMCommunicate request_size=4 [12:03:01]MH_SAM_APDU [12:03:01]CAPDU: 80 13 01 00 [12:03:01]Write to MH i2c: E2 08 00 FC 36 80 13 01 00 00 00 00 00 AF [12:03:01]Write i2c OK [12:03:01]MH_I2C_Read... [12:03:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:01]Read from MH i2c: E2 [12:03:01]MH_I2C_Read... [12:03:01]Read from MH i2c: E2 0E 00 [12:03:01]MH_I2C_Read... [12:03:01]Read from MH i2c: E2 0E 00 FC 36 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 C8 [12:03:01]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:03:01]wFMCommunicate OK [12:03:01]SAM_PROTO_GetShiftState done [12:03:01]FM_GetShiftState done [12:03:01]req_shift_opened done [12:03:01]requested_item shift.open_date is exist - process it [12:03:01]req_shift_open_date [12:03:01]req_shift_open_date done [12:03:01]produce_requested_data done [12:03:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28902,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [12:03:01]process_action_free close_receipt [12:03:01]json_value_free [12:03:01]json_value_free done [12:03:01]process_json_proto returns [12:03:01]Send response to host [12:03:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28902,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [12:03:01]free response buf [12:03:01]execute_script done [12:03:01]execute_script returns [12:03:01]free content buf [12:03:01]Sock 9.Close socket [12:03:01]Sock 9.Thread stoped [12:03:02]accept exits with 7 [12:03:02]New connection [12:03:02]New thread 3066928484 created [12:03:02]Thread 3066785124 joined [12:03:02]Waiting for new connection... [12:03:02] Sock 7.Parse request [12:03:02]Sock 7.Check first char [12:03:02]Sock 7.First char is OK [12:03:02]request: POST /json_proto HTTP/1.0 [12:03:02]Method: POST [12:03:02]URL: /json_proto [12:03:02]Method is POST - this is cgi request [12:03:02]url: /json_proto [12:03:02]query_string will be loaded in cgi processing [12:03:02]execute_cgi json_proto POST (null) [12:03:02]execute_cgi path=json_proto method=POST [12:03:02]POST find Content-Length [12:03:02]Host: 172.17.33.3:8080 [12:03:02]Content-Length: 843 [12:03:02]Content-Type: application/json [12:03:02] [12:03:02]POST finish read [12:03:02]Found Content-Length = 843 [12:03:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347256", "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" : 72.50, "quantity" : 30.000, "sum" : 2175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2175.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:02]execute_script... [12:03: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)347256", "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" : 72.50, "quantity" : 30.000, "sum" : 2175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2175.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:02]POST & json_proto [12:03:02]process_json_proto [12:03:02]json parsed OK: [12:03:02]protocol is kg_v1.0 [12:03:02]action value=close_receipt [12:03:02]process_action close_receipt [12:03:02]cmd_close_receipt [12:03:02]MH_GetDate [12:03:02]Write to MH i2c: F0 00 00 FD 36 22 [12:03:02]Write i2c OK [12:03:02]MH_I2C_Read... [12:03:02]Read from MH i2c: F0 [12:03:02]MH_I2C_Read... [12:03:02]Read from MH i2c: F0 09 00 [12:03:02]MH_I2C_Read... [12:03:02]Read from MH i2c: F0 09 00 FD 36 00 7A 74 1A 66 23 5B 8F 65 0B [12:03:02]GetLastDocTimeStamp 1713009782 [12:03:02]current date 1713009786 [12:03:02]FM_GetShiftState [12:03:02]SAM_PROTO_GetShiftState [12:03:02]wFMCommunicate request_size=4 [12:03:02]MH_SAM_APDU [12:03:02]CAPDU: 80 13 01 00 [12:03:02]Write to MH i2c: E2 08 00 FE 36 80 13 01 00 00 00 00 00 B1 [12:03:02]Write i2c OK [12:03:02]MH_I2C_Read... [12:03:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:02]Read from MH i2c: E2 [12:03:02]MH_I2C_Read... [12:03:02]Read from MH i2c: E2 0E 00 [12:03:02]MH_I2C_Read... [12:03:02]Read from MH i2c: E2 0E 00 FE 36 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 CA [12:03:02]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:03:02]wFMCommunicate OK [12:03:02]SAM_PROTO_GetShiftState done [12:03:02]FM_GetShiftState done [12:03:02]opened in 1712967615 [12:03:02]opened+sec_in_day 1713054015 [12:03:02]quantity*price = 217500 [12:03:02]sum+1 = 217501 [12:03:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2175.00 НСП 1% : 19.25 НДС 12% : 230.97 Наличными: 0.00 Безнал.: 2175.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 110 13.04.2024 12:03 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28903 ФПД: 214128953910406 1/tax-web-control/client/api/v1/ticket?date=20240413T120306&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28903&fm=214128953910406&tin=02508201610067®Number=0000138879044617&sum=217500 [12:03:03]StoreToDocumentArchive [12:03:03]shift 115 fd 28903 [12:03:03]save to /storage/0115/doc_00028903 [12:03:03]save last doc name /storage/0115/doc_00028903 to /storage/kkm_last_doc_name [12:03:03]save OK [12:03:03]Clear old archive folders... [12:03:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:03:03]tlvbuf is 01294930 [12:03:03]SAM_PROTO_ClearQueue [12:03:03]wFMCommunicate request_size=4 [12:03:03]MH_SAM_APDU [12:03:03]CAPDU: 80 09 00 00 [12:03:03]Write to MH i2c: E2 08 00 0B 37 80 09 00 00 00 00 00 00 B4 [12:03:03]Write i2c OK [12:03:03]MH_I2C_Read... [12:03:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:03]Read from MH i2c: E2 [12:03:03]MH_I2C_Read... [12:03:03]Read from MH i2c: E2 03 00 [12:03:03]MH_I2C_Read... [12:03:03]Read from MH i2c: E2 03 00 0B 37 00 90 00 B6 [12:03:03]RAPDU: 90 00 [12:03:03]wFMCommunicate OK [12:03:03]SAM_PROTO_ClearQueue done [12:03:03]KKMCreateOFDPacket [12:03:03]OFDProtocolAddRootSTLVToBuf [12:03:03]FM_MakeSignedData [12:03:03]FM_MakeSignedData [12:03:03]SAM_PROTO_SignData [12:03:03]wFMCommunicate request_size=4 [12:03:03]MH_SAM_APDU [12:03:03]CAPDU: 80 0D 01 02 [12:03:03]Write to MH i2c: E2 08 00 0C 37 80 0D 01 02 00 00 00 00 BC [12:03:03]Write i2c OK [12:03:03]MH_I2C_Read... [12:03:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:03]Read from MH i2c: E2 [12:03:03]MH_I2C_Read... [12:03:03]Read from MH i2c: E2 03 00 [12:03:03]MH_I2C_Read... [12:03:03]Read from MH i2c: E2 03 00 0C 37 00 90 00 B7 [12:03:03]RAPDU: 90 00 [12:03:03]wFMCommunicate OK [12:03:03]wFMCommunicate request_size=255 [12:03:03]MH_SAM_APDU [12:03:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 9C 51 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 51 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 51 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 7A 74 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E7 70 00 00 35 04 06 00 C2 [12:03:03]Write to MH i2c: E2 02 01 0D 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 30 75 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 9C 51 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 51 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 51 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 7A 74 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E7 70 00 00 35 04 06 00 C2 00 00 51 [12:03:03]Write i2c OK [12:03:03]MH_I2C_Read... [12:03:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:04]Read from MH i2c: E2 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: E2 03 00 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: E2 03 00 0D 37 00 90 00 B8 [12:03:04]RAPDU: 90 00 [12:03:04]wFMCommunicate OK [12:03:04]wFMCommunicate request_size=10 [12:03:04]MH_SAM_APDU [12:03:04]CAPDU: 80 0D 02 02 05 BF C8 3B E4 86 [12:03:04]Write to MH i2c: E2 0D 00 0E 37 80 0D 02 02 05 00 BF C8 3B E4 86 00 00 F5 [12:03:04]Write i2c OK [12:03:04]MH_I2C_Read... [12:03:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:04]Read from MH i2c: E2 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: E2 03 00 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: E2 03 00 0E 37 00 90 00 B9 [12:03:04]RAPDU: 90 00 [12:03:04]wFMCommunicate OK [12:03:04]wFMCommunicate request_size=4 [12:03:04]MH_SAM_APDU [12:03:04]CAPDU: 80 0D 03 02 [12:03:04]Write to MH i2c: E2 08 00 0F 37 80 0D 03 02 00 00 00 00 C1 [12:03:04]Write i2c OK [12:03:04]MH_I2C_Read... [12:03:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:04]Read from MH i2c: E2 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: E2 0B 00 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: E2 0B 00 0F 37 00 51 81 0D 5A BE 78 17 41 90 00 89 [12:03:04]RAPDU: 51 81 0D 5A BE 78 17 41 90 00 [12:03:04]wFMCommunicate OK [12:03:04]SAM_PROTO_SignData done [12:03:04]FM_MakeSignedData done [12:03:04]CreateOFDProtocolMessage [12:03:04]wFMCommunicate request_size=4 [12:03:04]MH_SAM_APDU [12:03:04]CAPDU: 80 11 00 00 [12:03:04]Write to MH i2c: E2 08 00 10 37 80 11 00 00 00 00 00 00 C1 [12:03:04]Write i2c OK [12:03:04]MH_I2C_Read... [12:03:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:04]Read from MH i2c: E2 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: E2 17 00 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: E2 17 00 10 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 10 [12:03:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:03:04]wFMCommunicate OK [12:03:04]CreateOFDProtocolMessage done [12:03:04]OFDSenderStorePacket 28903 [12:03:04]StoreOFDPacket docnum=28903 [12:03:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 5A 00 07 01 D9 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 9C 51 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 51 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 51 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 7A 74 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E7 70 00 00 35 04 06 00 C2 BF C8 3B E4 86 51 81 0D 5A BE 78 17 41 [12:03:04]CheckFolder [12:03:04]dirname=/storage/ofd_packets [12:03:04]CheckFolder done [12:03:04]ProducePacketName [12:03:04]name=ofd_packets/00028903 [12:03:04]NVStorageSaveData ofd_packets/00028903 [12:03:04]File name is /storage/ofd_packets/00028903 [12:03:04]Write 301 bytes [12:03:04]NVStorageSaveData done [12:03:04]OFDSenderStorePacket done [12:03:04]KKMCreateOFDPacket done [12:03:04]NVStorageSaveData kkm_last_timestamp [12:03:04]File name is /storage/kkm_last_timestamp [12:03:04]Write 4 bytes [12:03:04]NVStorageSaveData done [12:03:04]ExternCall_PrintAddStr [12:03:04]wPrintStart [12:03:04]Write to MH i2c: 01 00 00 11 37 48 [12:03:04]Write i2c OK [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: 01 [12:03:04]MH_I2C_Read... [12:03:04]OFD Sender: Processing packet 28903 [packets to send 8, broken 7] [12:03:04]ProducePacketName [12:03:04]name=ofd_packets/00028903 [12:03:04]OFD Sender: To server: pG, [12:03:04]CommunicateWithHost lk.salyk.kg:30040 [12:03:04]ConnectInit lk.salyk.kg [12:03:04]Read from MH i2c: 01 07 00 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: 01 07 00 11 37 00 00 00 00 00 FF 0F 5D [12:03:04]RasterBufferAndPrint [12:03:04]line Счет N : (1)347256 [12:03:04]line ИНН: 02508201610067 [12:03:04]line Контрольно-Кассовый Чек [12:03:04]line ПРОДАЖА [12:03:04]line ТРК (МРК, ГНК) : 33 [12:03:04]line Товар: 2710124500 [12:03:04]line Аи-95-К-5 [12:03:04]line 30.000 * 72.50 [12:03:04]line = 2175.00 [12:03:04]line НДС 12% НСП 1% [12:03:04]line > о реализуемом товаре [12:03:04]line ИТОГО: 2175.00 [12:03:04]line НСП 1% : 19.25 [12:03:04]line НДС 12% : 230.97 [12:03:04]line Наличными: 0.00 [12:03:04]line Безнал.: 2175.00 [12:03:04]line Место: АЗС № 108 "Партнер Нефть" [12:03:04]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:03:04]line СНО: Общий режим [12:03:04]line Чек 110 13.04.2024 12:03 [12:03:04]line Смена: 115 ФФД: 1.0 [12:03:04]line ЗНМ: 0300000027 [12:03:04]line РНМ: 0000138879044617 [12:03:04]line Версия ККМ: 001 [12:03:04]line Платежная система: АКБ Кыргызстан [12:03:04]line ФМ: 0000000000963154 [12:03:04]line ФД: 28903 [12:03:04]line ФПД: 214128953910406 [12:03:04]line 1/tax-web-control/client/api/v1/ticket?date=20240413T120306&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28903&fm=214128953910406&tin=02508201610067®Number=0000138879044617&sum=217500 [12:03:04]written 0, free lines is 4095 [12:03:04]Connected sock=10 [12:03: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 31 35 34 0F 01 00 00 5A 00 07 01 D9 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 9C 51 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 51 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 51 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 7A 74 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E7 70 00 00 35 04 06 00 C2 BF C8 3B E4 86 51 81 0D 5A BE 78 17 41 [12:03:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EB 84 47 00 7E 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 31 35 34 10 04 04 00 E7 70 00 00 F4 03 04 00 21 1F 1A 66 B6 04 01 00 00 4A FA 54 77 5E EE 64 EF [12:03:04]CommunicateWithHost err = 0 [12:03:04]CheckOFDResponse [12:03:04]1017 (14) - 77093643461234 [12:03:04]1041 (16) - 0000000000963154 [12:03:04]1040 (4) - 28903 [12:03:04]1012 (4) - 13.04.2024 05:58 [12:03:04]1206 (1) - 0 [12:03:04]OFD Sender: Remove packet 28903 [12:03:04]ProducePacketName [12:03:04]name=ofd_packets/00028903 [12:03:04]NVStorageDeleteData [12:03:04]Write to MH i2c: 01 00 00 3A 37 71 [12:03:04]Write i2c OK [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: 01 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: 01 07 00 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: 01 07 00 3A 37 00 00 00 00 00 E3 0C 67 [12:03:04]RasterBufferAndPrint [12:03:04]line [12:03:04]line [12:03:04]line [12:03:04]line [12:03:04]line [12:03:04]written 0, free lines is 3313 [12:03:04]MH_Cut [12:03:04]Write to MH i2c: D1 01 00 41 37 01 4A [12:03:04]Write i2c OK [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: D1 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: D1 01 00 [12:03:04]MH_I2C_Read... [12:03:04]Read from MH i2c: D1 01 00 41 37 00 49 [12:03:04]Write to MH i2c: 01 00 00 42 37 79 [12:03:04]Write i2c OK [12:03:04]MH_I2C_Read... [12:03:05]OFD Sender: No OFD packet to send [12:03:05]*** Cut start [12:03:05]*** Partial cut [12:03:05]*** CUTSNS_PIN = 1 [12:03:05]*** CUTSNS_PIN = 0 [12:03:05]*** Brake cut motor [12:03:06]Read from MH i2c: 01 [12:03:06]MH_I2C_Read... [12:03:06]*** Stop cut motor [12:03:06]*** Cut end [12:03:06]Read from MH i2c: 01 07 00 [12:03:06]MH_I2C_Read... [12:03:06]Read from MH i2c: 01 07 00 42 37 00 00 00 00 00 FF 0F 8E [12:03:06]process_action close_receipt done [12:03:06]requested_data is exist [12:03:06]produce_requested_data [12:03:06]requested_item fm.sn is exist - process it [12:03:06]wFMCommunicate request_size=4 [12:03:06]MH_SAM_APDU [12:03:06]CAPDU: 80 11 00 00 [12:03:06]Write to MH i2c: E2 08 00 43 37 80 11 00 00 00 00 00 00 F4 [12:03:06]Write i2c OK [12:03:06]MH_I2C_Read... [12:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:06]Read from MH i2c: E2 [12:03:06]MH_I2C_Read... [12:03:06]Read from MH i2c: E2 17 00 [12:03:06]MH_I2C_Read... [12:03:06]Read from MH i2c: E2 17 00 43 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 43 [12:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:03:06]wFMCommunicate OK [12:03:06]requested_item fd.num is exist - process it [12:03:06]SAM_PROTO_GetFieldsCounters [12:03:06]wFMCommunicate request_size=4 [12:03:06]MH_SAM_APDU [12:03:06]CAPDU: 80 13 00 00 [12:03:06]Write to MH i2c: E2 08 00 44 37 80 13 00 00 00 00 00 00 F7 [12:03:06]Write i2c OK [12:03:06]MH_I2C_Read... [12:03:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:06]Read from MH i2c: E2 [12:03:06]MH_I2C_Read... [12:03:06]Read from MH i2c: E2 62 00 [12:03:06]MH_I2C_Read... [12:03:06]Read from MH i2c: E2 62 00 44 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E7 70 00 00 0E 04 04 00 73 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 49 [12:03: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E7 70 00 00 0E 04 04 00 73 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 [12:03:06]wFMCommunicate OK [12:03:06]SAM_PROTO_GetFieldsCounters done [12:03:06]requested_item shift.num is exist - process it [12:03:06]requested_item shift.opened is exist - process it [12:03:06]req_shift_opened [12:03:06]FM_GetShiftState [12:03:06]SAM_PROTO_GetShiftState [12:03:06]wFMCommunicate request_size=4 [12:03:06]MH_SAM_APDU [12:03:06]CAPDU: 80 13 01 00 [12:03:06]Write to MH i2c: E2 08 00 45 37 80 13 01 00 00 00 00 00 F9 [12:03:06]Write i2c OK [12:03:06]MH_I2C_Read... [12:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:06]Read from MH i2c: E2 [12:03:06]MH_I2C_Read... [12:03:06]Read from MH i2c: E2 0E 00 [12:03:06]MH_I2C_Read... [12:03:06]Read from MH i2c: E2 0E 00 45 37 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 12 [12:03:06]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:03:06]wFMCommunicate OK [12:03:06]SAM_PROTO_GetShiftState done [12:03:06]FM_GetShiftState done [12:03:06]req_shift_opened done [12:03:06]requested_item shift.open_date is exist - process it [12:03:06]req_shift_open_date [12:03:06]req_shift_open_date done [12:03:06]produce_requested_data done [12:03:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28903,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [12:03:06]process_action_free close_receipt [12:03:06]json_value_free [12:03:06]json_value_free done [12:03:06]process_json_proto returns [12:03:06]Send response to host [12:03:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28903,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [12:03:06]free response buf [12:03:06]execute_script done [12:03:06]execute_script returns [12:03:06]free content buf [12:03:06]Sock 7.Close socket [12:03:06]Sock 7.Thread stoped [12:03:10]OFD Sender: No OFD packet to send [12:03:11]accept exits with 9 [12:03:11]New connection [12:03:11]New thread 3066785124 created [12:03:11]Thread 3066928484 joined [12:03:11]Waiting for new connection... [12:03:11] Sock 9.Parse request [12:03:11]Sock 9.Check first char [12:03:11]Sock 9.First char is OK [12:03:11]request: POST /json_proto HTTP/1.0 [12:03:11]Method: POST [12:03:11]URL: /json_proto [12:03:11]Method is POST - this is cgi request [12:03:11]url: /json_proto [12:03:11]query_string will be loaded in cgi processing [12:03:11]execute_cgi json_proto POST (null) [12:03:11]execute_cgi path=json_proto method=POST [12:03:11]POST find Content-Length [12:03:11]Host: 172.17.33.3:8080 [12:03:11]Content-Length: 681 [12:03:11]Content-Type: application/json [12:03:11] [12:03:11]POST finish read [12:03:11]Found Content-Length = 681 [12:03:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 15.200, "sum" : 500.08, "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:03:11]execute_script... [12:03: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)347258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 15.200, "sum" : 500.08, "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:03:11]POST & json_proto [12:03:11]process_json_proto [12:03:11]json parsed OK: [12:03:11]protocol is kg_v1.0 [12:03:11]action value=close_receipt [12:03:11]process_action close_receipt [12:03:11]cmd_close_receipt [12:03:11]MH_GetDate [12:03:11]Write to MH i2c: F0 00 00 46 37 6C [12:03:11]Write i2c OK [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: F0 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: F0 09 00 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: F0 09 00 46 37 00 84 74 1A 66 23 5B 8F 65 5F [12:03:11]GetLastDocTimeStamp 1713009786 [12:03:11]current date 1713009796 [12:03:11]FM_GetShiftState [12:03:11]SAM_PROTO_GetShiftState [12:03:11]wFMCommunicate request_size=4 [12:03:11]MH_SAM_APDU [12:03:11]CAPDU: 80 13 01 00 [12:03:11]Write to MH i2c: E2 08 00 47 37 80 13 01 00 00 00 00 00 FB [12:03:11]Write i2c OK [12:03:11]MH_I2C_Read... [12:03:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:11]Read from MH i2c: E2 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: E2 0E 00 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: E2 0E 00 47 37 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 14 [12:03:11]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:03:11]wFMCommunicate OK [12:03:11]SAM_PROTO_GetShiftState done [12:03:11]FM_GetShiftState done [12:03:11]opened in 1712967615 [12:03:11]opened+sec_in_day 1713054015 [12:03:11]quantity*price = 50008 [12:03:11]sum+1 = 50009 [12:03:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 111 13.04.2024 12:03 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28904 ФПД: 208635296392995 1/tax-web-control/client/api/v1/ticket?date=20240413T120316&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28904&fm=208635296392995&tin=02508201610067®Number=0000138879044617&sum=50000 [12:03:12]StoreToDocumentArchive [12:03:12]shift 115 fd 28904 [12:03:12]save to /storage/0115/doc_00028904 [12:03:12]save last doc name /storage/0115/doc_00028904 to /storage/kkm_last_doc_name [12:03:12]save OK [12:03:12]Clear old archive folders... [12:03:12]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:03:12]tlvbuf is 0129ACA0 [12:03:12]SAM_PROTO_ClearQueue [12:03:12]wFMCommunicate request_size=4 [12:03:12]MH_SAM_APDU [12:03:12]CAPDU: 80 09 00 00 [12:03:12]Write to MH i2c: E2 08 00 54 37 80 09 00 00 00 00 00 00 FD [12:03:12]Write i2c OK [12:03:12]MH_I2C_Read... [12:03:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:12]Read from MH i2c: E2 [12:03:12]MH_I2C_Read... [12:03:12]Read from MH i2c: E2 03 00 [12:03:12]MH_I2C_Read... [12:03:12]Read from MH i2c: E2 03 00 54 37 00 90 00 FF [12:03:12]RAPDU: 90 00 [12:03:12]wFMCommunicate OK [12:03:12]SAM_PROTO_ClearQueue done [12:03:12]KKMCreateOFDPacket [12:03:12]OFDProtocolAddRootSTLVToBuf [12:03:12]FM_MakeSignedData [12:03:12]FM_MakeSignedData [12:03:12]SAM_PROTO_SignData [12:03:12]wFMCommunicate request_size=4 [12:03:12]MH_SAM_APDU [12:03:12]CAPDU: 80 0D 01 02 [12:03:12]Write to MH i2c: E2 08 00 55 37 80 0D 01 02 00 00 00 00 05 [12:03:12]Write i2c OK [12:03:12]MH_I2C_Read... [12:03:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:12]Read from MH i2c: E2 [12:03:12]MH_I2C_Read... [12:03:12]Read from MH i2c: E2 03 00 [12:03:12]MH_I2C_Read... [12:03:12]Read from MH i2c: E2 03 00 55 37 00 90 00 00 [12:03:12]RAPDU: 90 00 [12:03:12]wFMCommunicate OK [12:03:12]wFMCommunicate request_size=255 [12:03:12]MH_SAM_APDU [12:03:12]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 6F 00 00 00 F4 03 04 00 84 74 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E8 70 00 00 35 04 06 00 BD C0 [12:03:12]Write to MH i2c: E2 02 01 56 37 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 6F 00 00 00 F4 03 04 00 84 74 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E8 70 00 00 35 04 06 00 BD C0 00 00 5B [12:03:12]Write i2c OK [12:03:12]MH_I2C_Read... [12:03:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:13]Read from MH i2c: E2 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: E2 03 00 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: E2 03 00 56 37 00 90 00 01 [12:03:13]RAPDU: 90 00 [12:03:13]wFMCommunicate OK [12:03:13]wFMCommunicate request_size=9 [12:03:13]MH_SAM_APDU [12:03:13]CAPDU: 80 0D 02 02 04 B0 BA A7 23 [12:03:13]Write to MH i2c: E2 0C 00 57 37 80 0D 02 02 04 00 B0 BA A7 23 00 00 44 [12:03:13]Write i2c OK [12:03:13]MH_I2C_Read... [12:03:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:13]Read from MH i2c: E2 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: E2 03 00 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: E2 03 00 57 37 00 90 00 02 [12:03:13]RAPDU: 90 00 [12:03:13]wFMCommunicate OK [12:03:13]wFMCommunicate request_size=4 [12:03:13]MH_SAM_APDU [12:03:13]CAPDU: 80 0D 03 02 [12:03:13]Write to MH i2c: E2 08 00 58 37 80 0D 03 02 00 00 00 00 0A [12:03:13]Write i2c OK [12:03:13]MH_I2C_Read... [12:03:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:13]Read from MH i2c: E2 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: E2 0B 00 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: E2 0B 00 58 37 00 BC 87 C0 25 C6 B5 CA D3 90 00 4B [12:03:13]RAPDU: BC 87 C0 25 C6 B5 CA D3 90 00 [12:03:13]wFMCommunicate OK [12:03:13]SAM_PROTO_SignData done [12:03:13]FM_MakeSignedData done [12:03:13]CreateOFDProtocolMessage [12:03:13]wFMCommunicate request_size=4 [12:03:13]MH_SAM_APDU [12:03:13]CAPDU: 80 11 00 00 [12:03:13]Write to MH i2c: E2 08 00 59 37 80 11 00 00 00 00 00 00 0A [12:03:13]Write i2c OK [12:03:13]MH_I2C_Read... [12:03:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:13]Read from MH i2c: E2 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: E2 17 00 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: E2 17 00 59 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 59 [12:03:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:03:13]wFMCommunicate OK [12:03:13]CreateOFDProtocolMessage done [12:03:13]OFDSenderStorePacket 28904 [12:03:13]StoreOFDPacket docnum=28904 [12:03:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 A5 F2 06 01 28 A0 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 6F 00 00 00 F4 03 04 00 84 74 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E8 70 00 00 35 04 06 00 BD C0 B0 BA A7 23 BC 87 C0 25 C6 B5 CA D3 [12:03:13]CheckFolder [12:03:13]dirname=/storage/ofd_packets [12:03:13]CheckFolder done [12:03:13]ProducePacketName [12:03:13]name=ofd_packets/00028904 [12:03:13]NVStorageSaveData ofd_packets/00028904 [12:03:13]File name is /storage/ofd_packets/00028904 [12:03:13]Write 300 bytes [12:03:13]NVStorageSaveData done [12:03:13]OFDSenderStorePacket done [12:03:13]KKMCreateOFDPacket done [12:03:13]NVStorageSaveData kkm_last_timestamp [12:03:13]File name is /storage/kkm_last_timestamp [12:03:13]Write 4 bytes [12:03:13]NVStorageSaveData done [12:03:13]ExternCall_PrintAddStr [12:03:13]wPrintStart [12:03:13]Write to MH i2c: 01 00 00 5A 37 91 [12:03:13]Write i2c OK [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: 01 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: 01 07 00 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: 01 07 00 5A 37 00 00 00 00 00 FF 0F A6 [12:03:13]RasterBufferAndPrint [12:03:13]line Счет N : (1)347258 [12:03:13]line ИНН: 02508201610067 [12:03:13]line Контрольно-Кассовый Чек [12:03:13]line ПРОДАЖА [12:03:13]line ТРК (МРК, ГНК) : 71 [12:03:13]line Товар: 2711129700 [12:03:13]line ГАЗ-К-5 [12:03:13]line 15.200 * 32.90 [12:03:13]line = 500.08 [12:03:13]line НДС 12% НСП 1% [12:03:13]line > о реализуемом товаре [12:03:13]line ОКРУГЛЕНИЕ: -0.08 [12:03:13]line ИТОГО: 500.00 [12:03:13]line Внесено: 500.00 [12:03:13]line СДАЧА: 0.00 [12:03:13]line НСП 1% : 4.42 [12:03:13]line НДС 12% : 53.11 [12:03:13]line Наличными: 500.00 [12:03:13]line Безнал.: 0.00 [12:03:13]line Место: АЗС № 108 "Партнер Нефть" [12:03:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:03:13]line СНО: Общий режим [12:03:13]line Чек 111 13.04.2024 12:03 [12:03:13]line Смена: 115 ФФД: 1.0 [12:03:13]line ЗНМ: 0300000027 [12:03:13]line РНМ: 0000138879044617 [12:03:13]line Версия ККМ: 001 [12:03:13]line ФМ: 0000000000963154 [12:03:13]line ФД: 28904 [12:03:13]line ФПД: 208635296392995 [12:03:13]line 1/tax-web-control/client/api/v1/ticket?date=20240413T120316&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28904&fm=208635296392995&tin=02508201610067®Number=0000138879044617&sum=50000 [12:03:13]OFD Sender: Processing packet 28904 [packets to send 8, broken 7] [12:03:13]ProducePacketName [12:03:13]name=ofd_packets/00028904 [12:03:13]OFD Sender: To server: pG, [12:03:13]CommunicateWithHost lk.salyk.kg:30040 [12:03:13]ConnectInit lk.salyk.kg [12:03:13]written 0, free lines is 4095 [12:03:13]Connected sock=10 [12:03: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 31 35 34 0E 01 00 00 A5 F2 06 01 28 A0 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 6F 00 00 00 F4 03 04 00 84 74 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E8 70 00 00 35 04 06 00 BD C0 B0 BA A7 23 BC 87 C0 25 C6 B5 CA D3 [12:03:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 BB AC 47 00 E4 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 31 35 34 10 04 04 00 E8 70 00 00 F4 03 04 00 2B 1F 1A 66 B6 04 01 00 00 29 9E 27 A8 CD 75 46 18 [12:03:13]CommunicateWithHost err = 0 [12:03:13]CheckOFDResponse [12:03:13]1017 (14) - 77093643461234 [12:03:13]1041 (16) - 0000000000963154 [12:03:13]1040 (4) - 28904 [12:03:13]1012 (4) - 13.04.2024 05:59 [12:03:13]1206 (1) - 0 [12:03:13]OFD Sender: Remove packet 28904 [12:03:13]ProducePacketName [12:03:13]name=ofd_packets/00028904 [12:03:13]NVStorageDeleteData [12:03:13]Write to MH i2c: 01 00 00 84 37 BB [12:03:13]Write i2c OK [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: 01 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: 01 07 00 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: 01 07 00 84 37 00 00 00 00 00 DE 0C AC [12:03:13]RasterBufferAndPrint [12:03:13]line [12:03:13]line [12:03:13]line [12:03:13]line [12:03:13]line [12:03:13]written 0, free lines is 3309 [12:03:13]MH_Cut [12:03:13]Write to MH i2c: D1 01 00 8B 37 01 94 [12:03:13]Write i2c OK [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: D1 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: D1 01 00 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: D1 01 00 8B 37 00 93 [12:03:13]Write to MH i2c: 01 00 00 8C 37 C3 [12:03:13]Write i2c OK [12:03:13]MH_I2C_Read... [12:03:14]OFD Sender: No OFD packet to send [12:03:14]*** Cut start [12:03:14]*** Partial cut [12:03:14]*** CUTSNS_PIN = 1 [12:03:14]*** CUTSNS_PIN = 0 [12:03:14]*** Brake cut motor [12:03:15]Read from MH i2c: 01 [12:03:15]MH_I2C_Read... [12:03:15]*** Stop cut motor [12:03:15]*** Cut end [12:03:15]Read from MH i2c: 01 07 00 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: 01 07 00 8C 37 00 00 00 00 00 FF 0F D8 [12:03:15]process_action close_receipt done [12:03:15]requested_data is exist [12:03:15]produce_requested_data [12:03:15]requested_item fm.sn is exist - process it [12:03:15]wFMCommunicate request_size=4 [12:03:15]MH_SAM_APDU [12:03:15]CAPDU: 80 11 00 00 [12:03:15]Write to MH i2c: E2 08 00 8D 37 80 11 00 00 00 00 00 00 3E [12:03:15]Write i2c OK [12:03:15]MH_I2C_Read... [12:03:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:15]Read from MH i2c: E2 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 17 00 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 17 00 8D 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8D [12:03:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:03:15]wFMCommunicate OK [12:03:15]requested_item fd.num is exist - process it [12:03:15]SAM_PROTO_GetFieldsCounters [12:03:15]wFMCommunicate request_size=4 [12:03:15]MH_SAM_APDU [12:03:15]CAPDU: 80 13 00 00 [12:03:15]Write to MH i2c: E2 08 00 8E 37 80 13 00 00 00 00 00 00 41 [12:03:15]Write i2c OK [12:03:15]MH_I2C_Read... [12:03:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:15]Read from MH i2c: E2 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 62 00 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 62 00 8E 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E8 70 00 00 0E 04 04 00 73 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 97 [12:03: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E8 70 00 00 0E 04 04 00 73 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 [12:03:15]wFMCommunicate OK [12:03:15]SAM_PROTO_GetFieldsCounters done [12:03:15]requested_item shift.num is exist - process it [12:03:15]requested_item shift.opened is exist - process it [12:03:15]req_shift_opened [12:03:15]FM_GetShiftState [12:03:15]SAM_PROTO_GetShiftState [12:03:15]wFMCommunicate request_size=4 [12:03:15]MH_SAM_APDU [12:03:15]CAPDU: 80 13 01 00 [12:03:15]Write to MH i2c: E2 08 00 8F 37 80 13 01 00 00 00 00 00 43 [12:03:15]Write i2c OK [12:03:15]MH_I2C_Read... [12:03:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:15]Read from MH i2c: E2 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 0E 00 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 0E 00 8F 37 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 5C [12:03:15]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:03:15]wFMCommunicate OK [12:03:15]SAM_PROTO_GetShiftState done [12:03:15]FM_GetShiftState done [12:03:15]req_shift_opened done [12:03:15]requested_item shift.open_date is exist - process it [12:03:15]req_shift_open_date [12:03:15]req_shift_open_date done [12:03:15]produce_requested_data done [12:03:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28904,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [12:03:15]process_action_free close_receipt [12:03:15]json_value_free [12:03:15]json_value_free done [12:03:15]process_json_proto returns [12:03:15]Send response to host [12:03:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28904,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [12:03:15]free response buf [12:03:15]execute_script done [12:03:15]execute_script returns [12:03:15]free content buf [12:03:15]Sock 9.Close socket [12:03:15]Sock 9.Thread stoped [12:03:19]OFD Sender: No OFD packet to send [12:03:24]OFD Sender: No OFD packet to send [12:03:29]OFD Sender: No OFD packet to send [12:03:34]OFD Sender: No OFD packet to send [12:03:39]OFD Sender: No OFD packet to send [12:03:44]OFD Sender: No OFD packet to send [12:03:49]OFD Sender: No OFD packet to send [12:03:54]OFD Sender: No OFD packet to send [12:03:59]OFD Sender: No OFD packet to send [12:04:04]OFD Sender: No OFD packet to send [12:04:09]OFD Sender: No OFD packet to send [12:04:14]OFD Sender: No OFD packet to send [12:04:19]OFD Sender: No OFD packet to send [12:04:24]OFD Sender: No OFD packet to send [12:04:29]OFD Sender: No OFD packet to send [12:04:34]OFD Sender: No OFD packet to send [12:04:39]OFD Sender: No OFD packet to send [12:04:44]OFD Sender: No OFD packet to send [12:04:49]OFD Sender: No OFD packet to send [12:04:54]OFD Sender: No OFD packet to send [12:04:59]OFD Sender: No OFD packet to send [12:05:00]accept exits with 7 [12:05:00]New connection [12:05:00]New thread 3066928484 created [12:05:00]Thread 3066785124 joined [12:05:00]Waiting for new connection... [12:05:00] Sock 7.Parse request [12:05:00]Sock 7.Check first char [12:05:00]Sock 7.First char is OK [12:05:00]request: POST /json_proto HTTP/1.0 [12:05:00]Method: POST [12:05:00]URL: /json_proto [12:05:00]Method is POST - this is cgi request [12:05:00]url: /json_proto [12:05:00]query_string will be loaded in cgi processing [12:05:00]execute_cgi json_proto POST (null) [12:05:00]execute_cgi path=json_proto method=POST [12:05:00]POST find Content-Length [12:05:00]Host: 172.17.33.3:8080 [12:05:00]Content-Length: 674 [12:05:00]Content-Type: application/json [12:05:00] [12:05:00]POST finish read [12:05:00]Found Content-Length = 674 [12:05:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347259", "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" : 72.40, "quantity" : 6.910, "sum" : 500.28, "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:05:00]execute_script... [12:05: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)347259", "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" : 72.40, "quantity" : 6.910, "sum" : 500.28, "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:05:00]POST & json_proto [12:05:00]process_json_proto [12:05:00]json parsed OK: [12:05:00]protocol is kg_v1.0 [12:05:00]action value=close_receipt [12:05:00]process_action close_receipt [12:05:00]cmd_close_receipt [12:05:00]MH_GetDate [12:05:00]Write to MH i2c: F0 00 00 90 37 B6 [12:05:00]Write i2c OK [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: F0 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: F0 09 00 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: F0 09 00 90 37 00 F0 74 1A 66 23 5B 8F 65 15 [12:05:00]GetLastDocTimeStamp 1713009796 [12:05:00]current date 1713009904 [12:05:00]FM_GetShiftState [12:05:00]SAM_PROTO_GetShiftState [12:05:00]wFMCommunicate request_size=4 [12:05:00]MH_SAM_APDU [12:05:00]CAPDU: 80 13 01 00 [12:05:00]Write to MH i2c: E2 08 00 91 37 80 13 01 00 00 00 00 00 45 [12:05:00]Write i2c OK [12:05:00]MH_I2C_Read... [12:05:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:00]Read from MH i2c: E2 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: E2 0E 00 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: E2 0E 00 91 37 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 5E [12:05:00]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:05:00]wFMCommunicate OK [12:05:00]SAM_PROTO_GetShiftState done [12:05:00]FM_GetShiftState done [12:05:00]opened in 1712967615 [12:05:00]opened+sec_in_day 1713054015 [12:05:00]quantity*price = 50028 [12:05:00]sum+1 = 50029 [12:05:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 112 13.04.2024 12:05 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28905 ФПД: 117134733499035 1/tax-web-control/client/api/v1/ticket?date=20240413T120504&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28905&fm=117134733499035&tin=02508201610067®Number=0000138879044617&sum=50000 [12:05:01]StoreToDocumentArchive [12:05:01]shift 115 fd 28905 [12:05:01]save to /storage/0115/doc_00028905 [12:05:01]save last doc name /storage/0115/doc_00028905 to /storage/kkm_last_doc_name [12:05:01]save OK [12:05:01]Clear old archive folders... [12:05:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:05:01]tlvbuf is 01294C50 [12:05:01]SAM_PROTO_ClearQueue [12:05:01]wFMCommunicate request_size=4 [12:05:01]MH_SAM_APDU [12:05:01]CAPDU: 80 09 00 00 [12:05:01]Write to MH i2c: E2 08 00 9E 37 80 09 00 00 00 00 00 00 47 [12:05:01]Write i2c OK [12:05:01]MH_I2C_Read... [12:05:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:01]Read from MH i2c: E2 [12:05:01]MH_I2C_Read... [12:05:01]Read from MH i2c: E2 03 00 [12:05:01]MH_I2C_Read... [12:05:01]Read from MH i2c: E2 03 00 9E 37 00 90 00 49 [12:05:01]RAPDU: 90 00 [12:05:01]wFMCommunicate OK [12:05:01]SAM_PROTO_ClearQueue done [12:05:01]KKMCreateOFDPacket [12:05:01]OFDProtocolAddRootSTLVToBuf [12:05:01]FM_MakeSignedData [12:05:01]FM_MakeSignedData [12:05:01]SAM_PROTO_SignData [12:05:01]wFMCommunicate request_size=4 [12:05:01]MH_SAM_APDU [12:05:01]CAPDU: 80 0D 01 02 [12:05:01]Write to MH i2c: E2 08 00 9F 37 80 0D 01 02 00 00 00 00 4F [12:05:01]Write i2c OK [12:05:01]MH_I2C_Read... [12:05:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:01]Read from MH i2c: E2 [12:05:01]MH_I2C_Read... [12:05:01]Read from MH i2c: E2 03 00 [12:05:01]MH_I2C_Read... [12:05:01]Read from MH i2c: E2 03 00 9F 37 00 90 00 4A [12:05:01]RAPDU: 90 00 [12:05:01]wFMCommunicate OK [12:05:01]wFMCommunicate request_size=255 [12:05:01]MH_SAM_APDU [12:05: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 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 F0 74 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E9 70 00 00 35 04 06 00 6A 88 8E 2E [12:05:01]Write to MH i2c: E2 02 01 A0 37 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 F0 74 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E9 70 00 00 35 04 06 00 6A 88 8E 2E 00 00 F9 [12:05:01]Write i2c OK [12:05:01]MH_I2C_Read... [12:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:01]Read from MH i2c: E2 [12:05:01]MH_I2C_Read... [12:05:01]Read from MH i2c: E2 03 00 [12:05:01]MH_I2C_Read... [12:05:01]Read from MH i2c: E2 03 00 A0 37 00 90 00 4B [12:05:01]RAPDU: 90 00 [12:05:01]wFMCommunicate OK [12:05:01]wFMCommunicate request_size=7 [12:05:01]MH_SAM_APDU [12:05:01]CAPDU: 80 0D 02 02 02 5A 9B [12:05:01]Write to MH i2c: E2 0A 00 A1 37 80 0D 02 02 02 00 5A 9B 00 00 4B [12:05:01]Write i2c OK [12:05:01]MH_I2C_Read... [12:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:01]Read from MH i2c: E2 [12:05:01]MH_I2C_Read... [12:05:01]Read from MH i2c: E2 03 00 [12:05:01]MH_I2C_Read... [12:05:01]Read from MH i2c: E2 03 00 A1 37 00 90 00 4C [12:05:01]RAPDU: 90 00 [12:05:01]wFMCommunicate OK [12:05:01]wFMCommunicate request_size=4 [12:05:01]MH_SAM_APDU [12:05:01]CAPDU: 80 0D 03 02 [12:05:01]Write to MH i2c: E2 08 00 A2 37 80 0D 03 02 00 00 00 00 54 [12:05:01]Write i2c OK [12:05:01]MH_I2C_Read... [12:05:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:01]Read from MH i2c: E2 [12:05:01]MH_I2C_Read... [12:05:01]Read from MH i2c: E2 0B 00 [12:05:01]MH_I2C_Read... [12:05:01]Read from MH i2c: E2 0B 00 A2 37 00 8B 89 9D FF 25 E6 0B 9A 90 00 B5 [12:05:01]RAPDU: 8B 89 9D FF 25 E6 0B 9A 90 00 [12:05:01]wFMCommunicate OK [12:05:01]SAM_PROTO_SignData done [12:05:01]FM_MakeSignedData done [12:05:01]CreateOFDProtocolMessage [12:05:01]wFMCommunicate request_size=4 [12:05:01]MH_SAM_APDU [12:05:01]CAPDU: 80 11 00 00 [12:05:01]Write to MH i2c: E2 08 00 A3 37 80 11 00 00 00 00 00 00 54 [12:05:01]Write i2c OK [12:05:01]MH_I2C_Read... [12:05:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:02]Read from MH i2c: E2 [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: E2 17 00 [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: E2 17 00 A3 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A3 [12:05:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:05:02]wFMCommunicate OK [12:05:02]CreateOFDProtocolMessage done [12:05:02]OFDSenderStorePacket 28905 [12:05:02]StoreOFDPacket docnum=28905 [12:05:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 CF E4 04 01 A6 D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 F0 74 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E9 70 00 00 35 04 06 00 6A 88 8E 2E 5A 9B 8B 89 9D FF 25 E6 0B 9A [12:05:02]CheckFolder [12:05:02]dirname=/storage/ofd_packets [12:05:02]CheckFolder done [12:05:02]ProducePacketName [12:05:02]name=ofd_packets/00028905 [12:05:02]NVStorageSaveData ofd_packets/00028905 [12:05:02]File name is /storage/ofd_packets/00028905 [12:05:02]Write 298 bytes [12:05:02]NVStorageSaveData done [12:05:02]OFDSenderStorePacket done [12:05:02]KKMCreateOFDPacket done [12:05:02]NVStorageSaveData kkm_last_timestamp [12:05:02]File name is /storage/kkm_last_timestamp [12:05:02]Write 4 bytes [12:05:02]NVStorageSaveData done [12:05:02]ExternCall_PrintAddStr [12:05:02]wPrintStart [12:05:02]Write to MH i2c: 01 00 00 A4 37 DB [12:05:02]OFD Sender: Processing packet 28905 [packets to send 8, broken 7] [12:05:02]ProducePacketName [12:05:02]name=ofd_packets/00028905 [12:05:02]OFD Sender: To server: pG, [12:05:02]CommunicateWithHost lk.salyk.kg:30040 [12:05:02]ConnectInit lk.salyk.kg [12:05:02]Write i2c OK [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: 01 [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: 01 07 00 [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: 01 07 00 A4 37 00 00 00 00 00 FF 0F F0 [12:05:02]RasterBufferAndPrint [12:05:02]line Счет N : (1)347259 [12:05:02]line ИНН: 02508201610067 [12:05:02]line Контрольно-Кассовый Чек [12:05:02]line ПРОДАЖА [12:05:02]line ТРК (МРК, ГНК) : 51 [12:05:02]line Товар: 2710194210 [12:05:02]line ДТ-К-5 [12:05:02]line 6.910 * 72.40 [12:05:02]line = 500.28 [12:05:02]line НДС 12% НСП 1% [12:05:02]line > о реализуемом товаре [12:05:02]line ОКРУГЛЕНИЕ: -0.28 [12:05:02]line ИТОГО: 500.00 [12:05:02]line Внесено: 500.00 [12:05:02]line СДАЧА: 0.00 [12:05:02]line НСП 1% : 4.43 [12:05:02]line НДС 12% : 53.13 [12:05:02]line Наличными: 500.00 [12:05:02]line Безнал.: 0.00 [12:05:02]line Место: АЗС № 108 "Партнер Нефть" [12:05:02]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:05:02]line СНО: Общий режим [12:05:02]line Чек 112 13.04.2024 12:05 [12:05:02]line Смена: 115 ФФД: 1.0 [12:05:02]line ЗНМ: 0300000027 [12:05:02]line РНМ: 0000138879044617 [12:05:02]line Версия ККМ: 001 [12:05:02]line ФМ: 0000000000963154 [12:05:02]line ФД: 28905 [12:05:02]line ФПД: 117134733499035 [12:05:02]line 1/tax-web-control/client/api/v1/ticket?date=20240413T120504&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28905&fm=117134733499035&tin=02508201610067®Number=0000138879044617&sum=50000 [12:05:02]Connected sock=10 [12:05: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 31 35 34 0C 01 00 00 CF E4 04 01 A6 D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 F0 74 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 E9 70 00 00 35 04 06 00 6A 88 8E 2E 5A 9B 8B 89 9D FF 25 E6 0B 9A [12:05:02]written 0, free lines is 4095 [12:05:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 3A 4D 47 00 60 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 31 35 34 10 04 04 00 E9 70 00 00 F4 03 04 00 97 1F 1A 66 B6 04 01 00 00 6B 74 5B 10 09 11 5B 7B [12:05:02]CommunicateWithHost err = 0 [12:05:02]CheckOFDResponse [12:05:02]1017 (14) - 77093643461234 [12:05:02]1041 (16) - 0000000000963154 [12:05:02]1040 (4) - 28905 [12:05:02]1012 (4) - 13.04.2024 06:00 [12:05:02]1206 (1) - 0 [12:05:02]OFD Sender: Remove packet 28905 [12:05:02]ProducePacketName [12:05:02]name=ofd_packets/00028905 [12:05:02]NVStorageDeleteData [12:05:02]Write to MH i2c: 01 00 00 CE 37 05 [12:05:02]Write i2c OK [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: 01 [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: 01 07 00 [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: 01 07 00 CE 37 00 00 00 00 00 C6 0C DE [12:05:02]RasterBufferAndPrint [12:05:02]line [12:05:02]line [12:05:02]line [12:05:02]line [12:05:02]line [12:05:02]written 0, free lines is 3276 [12:05:02]MH_Cut [12:05:02]Write to MH i2c: D1 01 00 D5 37 01 DE [12:05:02]Write i2c OK [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: D1 [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: D1 01 00 [12:05:02]MH_I2C_Read... [12:05:02]Read from MH i2c: D1 01 00 D5 37 00 DD [12:05:02]Write to MH i2c: 01 00 00 D6 37 0D [12:05:02]Write i2c OK [12:05:02]MH_I2C_Read... [12:05:03]OFD Sender: No OFD packet to send [12:05:03]*** Cut start [12:05:03]*** Partial cut [12:05:03]*** CUTSNS_PIN = 1 [12:05:03]*** CUTSNS_PIN = 0 [12:05:03]*** Brake cut motor [12:05:04]Read from MH i2c: 01 [12:05:04]MH_I2C_Read... [12:05:04]*** Stop cut motor [12:05:04]*** Cut end [12:05:04]Read from MH i2c: 01 07 00 [12:05:04]MH_I2C_Read... [12:05:04]Read from MH i2c: 01 07 00 D6 37 00 00 00 00 00 FF 0F 22 [12:05:04]process_action close_receipt done [12:05:04]requested_data is exist [12:05:04]produce_requested_data [12:05:04]requested_item fm.sn is exist - process it [12:05:04]wFMCommunicate request_size=4 [12:05:04]MH_SAM_APDU [12:05:04]CAPDU: 80 11 00 00 [12:05:04]Write to MH i2c: E2 08 00 D7 37 80 11 00 00 00 00 00 00 88 [12:05:04]Write i2c OK [12:05:04]MH_I2C_Read... [12:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:04]Read from MH i2c: E2 [12:05:04]MH_I2C_Read... [12:05:04]Read from MH i2c: E2 17 00 [12:05:04]MH_I2C_Read... [12:05:04]Read from MH i2c: E2 17 00 D7 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D7 [12:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:05:04]wFMCommunicate OK [12:05:04]requested_item fd.num is exist - process it [12:05:04]SAM_PROTO_GetFieldsCounters [12:05:04]wFMCommunicate request_size=4 [12:05:04]MH_SAM_APDU [12:05:04]CAPDU: 80 13 00 00 [12:05:04]Write to MH i2c: E2 08 00 D8 37 80 13 00 00 00 00 00 00 8B [12:05:04]Write i2c OK [12:05:04]MH_I2C_Read... [12:05:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:04]Read from MH i2c: E2 [12:05:04]MH_I2C_Read... [12:05:04]Read from MH i2c: E2 62 00 [12:05:04]MH_I2C_Read... [12:05:04]Read from MH i2c: E2 62 00 D8 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E9 70 00 00 0E 04 04 00 73 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 E5 [12:05: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 E9 70 00 00 0E 04 04 00 73 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 [12:05:04]wFMCommunicate OK [12:05:04]SAM_PROTO_GetFieldsCounters done [12:05:04]requested_item shift.num is exist - process it [12:05:04]requested_item shift.opened is exist - process it [12:05:04]req_shift_opened [12:05:04]FM_GetShiftState [12:05:04]SAM_PROTO_GetShiftState [12:05:04]wFMCommunicate request_size=4 [12:05:04]MH_SAM_APDU [12:05:04]CAPDU: 80 13 01 00 [12:05:04]Write to MH i2c: E2 08 00 D9 37 80 13 01 00 00 00 00 00 8D [12:05:04]Write i2c OK [12:05:04]MH_I2C_Read... [12:05:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:04]Read from MH i2c: E2 [12:05:04]MH_I2C_Read... [12:05:04]Read from MH i2c: E2 0E 00 [12:05:04]MH_I2C_Read... [12:05:04]Read from MH i2c: E2 0E 00 D9 37 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A6 [12:05:04]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:05:04]wFMCommunicate OK [12:05:04]SAM_PROTO_GetShiftState done [12:05:04]FM_GetShiftState done [12:05:04]req_shift_opened done [12:05:04]requested_item shift.open_date is exist - process it [12:05:04]req_shift_open_date [12:05:04]req_shift_open_date done [12:05:04]produce_requested_data done [12:05:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28905,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [12:05:04]process_action_free close_receipt [12:05:04]json_value_free [12:05:04]json_value_free done [12:05:04]process_json_proto returns [12:05:04]Send response to host [12:05:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28905,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [12:05:04]free response buf [12:05:04]execute_script done [12:05:04]execute_script returns [12:05:04]free content buf [12:05:04]Sock 7.Close socket [12:05:04]Sock 7.Thread stoped [12:05:08]OFD Sender: No OFD packet to send [12:05:13]OFD Sender: No OFD packet to send [12:05:18]OFD Sender: No OFD packet to send [12:05:23]OFD Sender: No OFD packet to send [12:05:28]OFD Sender: No OFD packet to send [12:05:33]OFD Sender: No OFD packet to send [12:05:38]OFD Sender: No OFD packet to send [12:05:43]OFD Sender: No OFD packet to send [12:05:48]OFD Sender: No OFD packet to send [12:05:53]OFD Sender: No OFD packet to send [12:05:58]OFD Sender: No OFD packet to send [12:06:02]accept exits with 9 [12:06:02]New connection [12:06:02]New thread 3066785124 created [12:06:02]Thread 3066928484 joined [12:06:02]Waiting for new connection... [12:06:02] Sock 9.Parse request [12:06:02]Sock 9.Check first char [12:06:02]Sock 9.First char is OK [12:06:02]request: POST /json_proto HTTP/1.0 [12:06:02]Method: POST [12:06:02]URL: /json_proto [12:06:02]Method is POST - this is cgi request [12:06:02]url: /json_proto [12:06:02]query_string will be loaded in cgi processing [12:06:02]execute_cgi json_proto POST (null) [12:06:02]execute_cgi path=json_proto method=POST [12:06:02]POST find Content-Length [12:06:02]Host: 172.17.33.3:8080 [12:06:02]Content-Length: 678 [12:06:02]Content-Type: application/json [12:06:02] [12:06:02]POST finish read [12:06:02]Found Content-Length = 678 [12:06:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.890, "sum" : 700.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:02]execute_script... [12:06: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)347260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.890, "sum" : 700.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:02]POST & json_proto [12:06:02]process_json_proto [12:06:02]json parsed OK: [12:06:02]protocol is kg_v1.0 [12:06:02]action value=close_receipt [12:06:02]process_action close_receipt [12:06:02]cmd_close_receipt [12:06:02]MH_GetDate [12:06:02]Write to MH i2c: F0 00 00 DA 37 00 [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: F0 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: F0 09 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: F0 09 00 DA 37 00 2E 75 1A 66 23 5B 8F 65 9E [12:06:02]GetLastDocTimeStamp 1713009904 [12:06:02]current date 1713009966 [12:06:02]FM_GetShiftState [12:06:02]SAM_PROTO_GetShiftState [12:06:02]wFMCommunicate request_size=4 [12:06:02]MH_SAM_APDU [12:06:02]CAPDU: 80 13 01 00 [12:06:02]Write to MH i2c: E2 08 00 DB 37 80 13 01 00 00 00 00 00 8F [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:02]Read from MH i2c: E2 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 0E 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 0E 00 DB 37 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A8 [12:06:02]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:06:02]wFMCommunicate OK [12:06:02]SAM_PROTO_GetShiftState done [12:06:02]FM_GetShiftState done [12:06:02]opened in 1712967615 [12:06:02]opened+sec_in_day 1713054015 [12:06:02]quantity*price = 70022 [12:06:02]sum+1 = 70024 [12:06:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 113 13.04.2024 12:06 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28906 ФПД: 272530962941939 1/tax-web-control/client/api/v1/ticket?date=20240413T120606&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28906&fm=272530962941939&tin=02508201610067®Number=0000138879044617&sum=70000 [12:06:03]StoreToDocumentArchive [12:06:03]shift 115 fd 28906 [12:06:03]save to /storage/0115/doc_00028906 [12:06:03]save last doc name /storage/0115/doc_00028906 to /storage/kkm_last_doc_name [12:06:03]save OK [12:06:03]Clear old archive folders... [12:06:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:06:03]tlvbuf is 01294AB0 [12:06:03]SAM_PROTO_ClearQueue [12:06:03]wFMCommunicate request_size=4 [12:06:03]MH_SAM_APDU [12:06:03]CAPDU: 80 09 00 00 [12:06:03]Write to MH i2c: E2 08 00 E8 37 80 09 00 00 00 00 00 00 91 [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:03]Read from MH i2c: E2 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 03 00 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 03 00 E8 37 00 90 00 93 [12:06:03]RAPDU: 90 00 [12:06:03]wFMCommunicate OK [12:06:03]SAM_PROTO_ClearQueue done [12:06:03]KKMCreateOFDPacket [12:06:03]OFDProtocolAddRootSTLVToBuf [12:06:03]FM_MakeSignedData [12:06:03]FM_MakeSignedData [12:06:03]SAM_PROTO_SignData [12:06:03]wFMCommunicate request_size=4 [12:06:03]MH_SAM_APDU [12:06:03]CAPDU: 80 0D 01 02 [12:06:03]Write to MH i2c: E2 08 00 E9 37 80 0D 01 02 00 00 00 00 99 [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:03]Read from MH i2c: E2 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 03 00 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 03 00 E9 37 00 90 00 94 [12:06:03]RAPDU: 90 00 [12:06:03]wFMCommunicate OK [12:06:03]wFMCommunicate request_size=255 [12:06:03]MH_SAM_APDU [12:06: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 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 71 00 00 00 F4 03 04 00 2E 75 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EA 70 00 00 35 04 06 00 F7 [12:06:03]Write to MH i2c: E2 02 01 EA 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 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 71 00 00 00 F4 03 04 00 2E 75 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EA 70 00 00 35 04 06 00 F7 00 00 37 [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:03]Read from MH i2c: E2 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 03 00 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 03 00 EA 37 00 90 00 95 [12:06:03]RAPDU: 90 00 [12:06:03]wFMCommunicate OK [12:06:03]wFMCommunicate request_size=10 [12:06:03]MH_SAM_APDU [12:06:03]CAPDU: 80 0D 02 02 05 DD 8F 3C 87 F3 [12:06:03]Write to MH i2c: E2 0D 00 EB 37 80 0D 02 02 05 00 DD 8F 3C 87 F3 00 00 C8 [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:03]Read from MH i2c: E2 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 03 00 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 03 00 EB 37 00 90 00 96 [12:06:03]RAPDU: 90 00 [12:06:03]wFMCommunicate OK [12:06:03]wFMCommunicate request_size=4 [12:06:03]MH_SAM_APDU [12:06:03]CAPDU: 80 0D 03 02 [12:06:03]Write to MH i2c: E2 08 00 EC 37 80 0D 03 02 00 00 00 00 9E [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:03]Read from MH i2c: E2 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 0B 00 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 0B 00 EC 37 00 84 DC CA A3 7F 1F 46 7A 90 00 CA [12:06:03]RAPDU: 84 DC CA A3 7F 1F 46 7A 90 00 [12:06:03]wFMCommunicate OK [12:06:03]SAM_PROTO_SignData done [12:06:03]FM_MakeSignedData done [12:06:03]CreateOFDProtocolMessage [12:06:03]wFMCommunicate request_size=4 [12:06:03]MH_SAM_APDU [12:06:03]CAPDU: 80 11 00 00 [12:06:03]Write to MH i2c: E2 08 00 ED 37 80 11 00 00 00 00 00 00 9E [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:03]Read from MH i2c: E2 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 17 00 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 17 00 ED 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 ED [12:06:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:06:03]wFMCommunicate OK [12:06:03]CreateOFDProtocolMessage done [12:06:03]OFDSenderStorePacket 28906 [12:06:03]StoreOFDPacket docnum=28906 [12:06:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9A 48 07 01 99 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 71 00 00 00 F4 03 04 00 2E 75 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EA 70 00 00 35 04 06 00 F7 DD 8F 3C 87 F3 84 DC CA A3 7F 1F 46 7A [12:06:03]CheckFolder [12:06:03]dirname=/storage/ofd_packets [12:06:03]CheckFolder done [12:06:03]ProducePacketName [12:06:03]name=ofd_packets/00028906 [12:06:03]NVStorageSaveData ofd_packets/00028906 [12:06:03]File name is /storage/ofd_packets/00028906 [12:06:03]Write 301 bytes [12:06:03]NVStorageSaveData done [12:06:03]OFDSenderStorePacket done [12:06:03]KKMCreateOFDPacket done [12:06:03]NVStorageSaveData kkm_last_timestamp [12:06:03]File name is /storage/kkm_last_timestamp [12:06:03]Write 4 bytes [12:06:03]NVStorageSaveData done [12:06:03]ExternCall_PrintAddStr [12:06:03]wPrintStart [12:06:03]Write to MH i2c: 01 00 00 EE 37 25 [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: 01 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: 01 07 00 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: 01 07 00 EE 37 00 00 00 00 00 FF 0F 3A [12:06:03]RasterBufferAndPrint [12:06:03]line Счет N : (1)347260 [12:06:03]line ИНН: 02508201610067 [12:06:03]line Контрольно-Кассовый Чек [12:06:03]line ПРОДАЖА [12:06:03]line ТРК (МРК, ГНК) : 13 [12:06:03]line Товар: 2710124130 [12:06:03]line Аи-92-К-5 [12:06:04]line 10.890 * 64.30 [12:06:04]line = 700.23 [12:06:04]line НДС 12% НСП 1% [12:06:04]line > о реализуемом товаре [12:06:04]line ОКРУГЛЕНИЕ: -0.23 [12:06:04]line ИТОГО: 700.00 [12:06:04]line Внесено: 700.00 [12:06:04]line СДАЧА: 0.00 [12:06:04]line НСП 1% : 6.20 [12:06:04]line НДС 12% : 74.36 [12:06:04]line Наличными: 700.00 [12:06:04]line Безнал.: 0.00 [12:06:04]line Место: АЗС № 108 "Партнер Нефть" [12:06:04]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:06:04]line СНО: Общий режим [12:06:04]line Чек 113 13.04.2024 12:06 [12:06:04]line Смена: 115 ФФД: 1.0 [12:06:04]line ЗНМ: 0300000027 [12:06:04]line РНМ: 0000138879044617 [12:06:04]line Версия ККМ: 001 [12:06:04]line ФМ: 0000000000963154 [12:06:04]line ФД: 28906 [12:06:04]line ФПД: 272530962941939 [12:06:04]line 1/tax-web-control/client/api/v1/ticket?date=20240413T120606&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28906&fm=272530962941939&tin=02508201610067®Number=0000138879044617&sum=70000 [12:06:04]OFD Sender: Processing packet 28906 [packets to send 8, broken 7] [12:06:04]ProducePacketName [12:06:04]name=ofd_packets/00028906 [12:06:04]OFD Sender: To server: pG, [12:06:04]CommunicateWithHost lk.salyk.kg:30040 [12:06:04]ConnectInit lk.salyk.kg [12:06:04]written 0, free lines is 4095 [12:06:04]Connected sock=10 [12:06: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 31 35 34 0F 01 00 00 9A 48 07 01 99 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 71 00 00 00 F4 03 04 00 2E 75 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EA 70 00 00 35 04 06 00 F7 DD 8F 3C 87 F3 84 DC CA A3 7F 1F 46 7A [12:06:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E7 2B 47 00 68 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 31 35 34 10 04 04 00 EA 70 00 00 F4 03 04 00 D6 1F 1A 66 B6 04 01 00 00 A2 0F 5C 07 2B B0 F8 BB [12:06:04]CommunicateWithHost err = 0 [12:06:04]CheckOFDResponse [12:06:04]1017 (14) - 77093643461234 [12:06:04]1041 (16) - 0000000000963154 [12:06:04]1040 (4) - 28906 [12:06:04]1012 (4) - 13.04.2024 06:01 [12:06:04]1206 (1) - 0 [12:06:04]OFD Sender: Remove packet 28906 [12:06:04]ProducePacketName [12:06:04]name=ofd_packets/00028906 [12:06:04]NVStorageDeleteData [12:06:04]Write to MH i2c: 01 00 00 18 38 50 [12:06:04]Write i2c OK [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: 01 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: 01 07 00 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: 01 07 00 18 38 00 00 00 00 00 D1 0C 34 [12:06:04]RasterBufferAndPrint [12:06:04]line [12:06:04]line [12:06:04]line [12:06:04]line [12:06:04]line [12:06:04]written 0, free lines is 3287 [12:06:04]MH_Cut [12:06:04]Write to MH i2c: D1 01 00 1F 38 01 29 [12:06:04]Write i2c OK [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: D1 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: D1 01 00 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: D1 01 00 1F 38 00 28 [12:06:04]Write to MH i2c: 01 00 00 20 38 58 [12:06:04]Write i2c OK [12:06:04]MH_I2C_Read... [12:06:05]OFD Sender: No OFD packet to send [12:06:05]*** Cut start [12:06:05]*** Partial cut [12:06:05]*** CUTSNS_PIN = 1 [12:06:05]*** CUTSNS_PIN = 0 [12:06:05]*** Brake cut motor [12:06:06]Read from MH i2c: 01 [12:06:06]MH_I2C_Read... [12:06:06]*** Stop cut motor [12:06:06]*** Cut end [12:06:06]Read from MH i2c: 01 07 00 [12:06:06]MH_I2C_Read... [12:06:06]Read from MH i2c: 01 07 00 20 38 00 00 00 00 00 FF 0F 6D [12:06:06]process_action close_receipt done [12:06:06]requested_data is exist [12:06:06]produce_requested_data [12:06:06]requested_item fm.sn is exist - process it [12:06:06]wFMCommunicate request_size=4 [12:06:06]MH_SAM_APDU [12:06:06]CAPDU: 80 11 00 00 [12:06:06]Write to MH i2c: E2 08 00 21 38 80 11 00 00 00 00 00 00 D3 [12:06:06]Write i2c OK [12:06:06]MH_I2C_Read... [12:06:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:06]Read from MH i2c: E2 [12:06:06]MH_I2C_Read... [12:06:06]Read from MH i2c: E2 17 00 [12:06:06]MH_I2C_Read... [12:06:06]Read from MH i2c: E2 17 00 21 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 22 [12:06:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:06:06]wFMCommunicate OK [12:06:06]requested_item fd.num is exist - process it [12:06:06]SAM_PROTO_GetFieldsCounters [12:06:06]wFMCommunicate request_size=4 [12:06:06]MH_SAM_APDU [12:06:06]CAPDU: 80 13 00 00 [12:06:06]Write to MH i2c: E2 08 00 22 38 80 13 00 00 00 00 00 00 D6 [12:06:06]Write i2c OK [12:06:06]MH_I2C_Read... [12:06:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:06]Read from MH i2c: E2 [12:06:06]MH_I2C_Read... [12:06:06]Read from MH i2c: E2 62 00 [12:06:06]MH_I2C_Read... [12:06:06]Read from MH i2c: E2 62 00 22 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EA 70 00 00 0E 04 04 00 73 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 34 [12:06: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EA 70 00 00 0E 04 04 00 73 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 [12:06:06]wFMCommunicate OK [12:06:06]SAM_PROTO_GetFieldsCounters done [12:06:06]requested_item shift.num is exist - process it [12:06:06]requested_item shift.opened is exist - process it [12:06:06]req_shift_opened [12:06:06]FM_GetShiftState [12:06:06]SAM_PROTO_GetShiftState [12:06:06]wFMCommunicate request_size=4 [12:06:06]MH_SAM_APDU [12:06:06]CAPDU: 80 13 01 00 [12:06:06]Write to MH i2c: E2 08 00 23 38 80 13 01 00 00 00 00 00 D8 [12:06:06]Write i2c OK [12:06:06]MH_I2C_Read... [12:06:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:06]Read from MH i2c: E2 [12:06:06]MH_I2C_Read... [12:06:06]Read from MH i2c: E2 0E 00 [12:06:06]MH_I2C_Read... [12:06:06]Read from MH i2c: E2 0E 00 23 38 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F1 [12:06:06]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:06:06]wFMCommunicate OK [12:06:06]SAM_PROTO_GetShiftState done [12:06:06]FM_GetShiftState done [12:06:06]req_shift_opened done [12:06:06]requested_item shift.open_date is exist - process it [12:06:06]req_shift_open_date [12:06:06]req_shift_open_date done [12:06:06]produce_requested_data done [12:06:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28906,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [12:06:06]process_action_free close_receipt [12:06:06]json_value_free [12:06:06]json_value_free done [12:06:06]process_json_proto returns [12:06:06]Send response to host [12:06:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28906,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [12:06:06]free response buf [12:06:06]execute_script done [12:06:06]execute_script returns [12:06:06]free content buf [12:06:06]Sock 9.Close socket [12:06:06]Sock 9.Thread stoped [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:50]OFD Sender: No OFD packet to send [12:06:55]OFD Sender: No OFD packet to send [12:07:00]OFD Sender: No OFD packet to send [12:07:05]OFD Sender: No OFD packet to send [12:07:10]OFD Sender: No OFD packet to send [12:07:15]OFD Sender: No OFD packet to send [12:07:20]OFD Sender: No OFD packet to send [12:07:25]OFD Sender: No OFD packet to send [12:07:30]OFD Sender: No OFD packet to send [12:07:35]OFD Sender: No OFD packet to send [12:07:40]OFD Sender: No OFD packet to send [12:07:45]OFD Sender: No OFD packet to send [12:07:50]OFD Sender: No OFD packet to send [12:07:55]OFD Sender: No OFD packet to send [12:08:00]OFD Sender: No OFD packet to send [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:20]OFD Sender: No OFD packet to send [12:08:25]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:40]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:50]OFD Sender: No OFD packet to send [12:08:55]OFD Sender: No OFD packet to send [12:09:00]OFD Sender: No OFD packet to send [12:09:05]OFD Sender: No OFD packet to send [12:09:10]OFD Sender: No OFD packet to send [12:09:15]OFD Sender: No OFD packet to send [12:09:19]accept exits with 7 [12:09:19]New connection [12:09:19]New thread 3066928484 created [12:09:19]Thread 3066785124 joined [12:09:19]Waiting for new connection... [12:09:19] Sock 7.Parse request [12:09:19]Sock 7.Check first char [12:09:19]Sock 7.First char is OK [12:09:19]request: POST /json_proto HTTP/1.0 [12:09:19]Method: POST [12:09:19]URL: /json_proto [12:09:19]Method is POST - this is cgi request [12:09:19]url: /json_proto [12:09:19]query_string will be loaded in cgi processing [12:09:19]execute_cgi json_proto POST (null) [12:09:19]execute_cgi path=json_proto method=POST [12:09:19]POST find Content-Length [12:09:19]Host: 172.17.33.3:8080 [12:09:19]Content-Length: 681 [12:09:19]Content-Type: application/json [12:09:19] [12:09:19]POST finish read [12:09:19]Found Content-Length = 681 [12:09:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 12.770, "sum" : 420.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:19]execute_script... [12:09: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)347261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 12.770, "sum" : 420.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:19]POST & json_proto [12:09:19]process_json_proto [12:09:19]json parsed OK: [12:09:19]protocol is kg_v1.0 [12:09:19]action value=close_receipt [12:09:19]process_action close_receipt [12:09:19]cmd_close_receipt [12:09:19]MH_GetDate [12:09:19]Write to MH i2c: F0 00 00 24 38 4B [12:09:19]Write i2c OK [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: F0 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: F0 09 00 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: F0 09 00 24 38 00 F4 75 1A 66 23 5B 8F 65 AF [12:09:19]GetLastDocTimeStamp 1713009966 [12:09:19]current date 1713010164 [12:09:19]FM_GetShiftState [12:09:19]SAM_PROTO_GetShiftState [12:09:19]wFMCommunicate request_size=4 [12:09:19]MH_SAM_APDU [12:09:19]CAPDU: 80 13 01 00 [12:09:19]Write to MH i2c: E2 08 00 25 38 80 13 01 00 00 00 00 00 DA [12:09:19]Write i2c OK [12:09:19]MH_I2C_Read... [12:09:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:19]Read from MH i2c: E2 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: E2 0E 00 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: E2 0E 00 25 38 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F3 [12:09:19]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:09:19]wFMCommunicate OK [12:09:19]SAM_PROTO_GetShiftState done [12:09:19]FM_GetShiftState done [12:09:19]opened in 1712967615 [12:09:19]opened+sec_in_day 1713054015 [12:09:19]quantity*price = 42013 [12:09:19]sum+1 = 42014 [12:09:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 420.00 Внесено: 420.00 СДАЧА: 0.00 НСП 1% : 3.72 НДС 12% : 44.62 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 114 13.04.2024 12:09 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28907 ФПД: 197553560454097 1/tax-web-control/client/api/v1/ticket?date=20240413T120924&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28907&fm=197553560454097&tin=02508201610067®Number=0000138879044617&sum=42000 [12:09:20]StoreToDocumentArchive [12:09:20]shift 115 fd 28907 [12:09:20]save to /storage/0115/doc_00028907 [12:09:20]save last doc name /storage/0115/doc_00028907 to /storage/kkm_last_doc_name [12:09:20]save OK [12:09:20]Clear old archive folders... [12:09:20]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:09:20]tlvbuf is 0121C160 [12:09:20]SAM_PROTO_ClearQueue [12:09:20]wFMCommunicate request_size=4 [12:09:20]MH_SAM_APDU [12:09:20]CAPDU: 80 09 00 00 [12:09:20]Write to MH i2c: E2 08 00 32 38 80 09 00 00 00 00 00 00 DC [12:09:20]Write i2c OK [12:09:20]MH_I2C_Read... [12:09:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:20]Read from MH i2c: E2 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: E2 03 00 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: E2 03 00 32 38 00 90 00 DE [12:09:20]RAPDU: 90 00 [12:09:20]wFMCommunicate OK [12:09:20]SAM_PROTO_ClearQueue done [12:09:20]KKMCreateOFDPacket [12:09:20]OFDProtocolAddRootSTLVToBuf [12:09:20]FM_MakeSignedData [12:09:20]FM_MakeSignedData [12:09:20]SAM_PROTO_SignData [12:09:20]wFMCommunicate request_size=4 [12:09:20]MH_SAM_APDU [12:09:20]CAPDU: 80 0D 01 02 [12:09:20]Write to MH i2c: E2 08 00 33 38 80 0D 01 02 00 00 00 00 E4 [12:09:20]Write i2c OK [12:09:20]MH_I2C_Read... [12:09:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:20]Read from MH i2c: E2 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: E2 03 00 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: E2 03 00 33 38 00 90 00 DF [12:09:20]RAPDU: 90 00 [12:09:20]wFMCommunicate OK [12:09:20]wFMCommunicate request_size=255 [12:09:20]MH_SAM_APDU [12:09: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 35 FF 03 08 00 03 E2 31 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 F4 75 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EB 70 00 00 35 04 06 00 B3 AC [12:09:20]Write to MH i2c: E2 02 01 34 38 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E2 31 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 F4 75 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EB 70 00 00 35 04 06 00 B3 AC 00 00 59 [12:09:20]Write i2c OK [12:09:20]MH_I2C_Read... [12:09:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:21]Read from MH i2c: E2 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 03 00 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 03 00 34 38 00 90 00 E0 [12:09:21]RAPDU: 90 00 [12:09:21]wFMCommunicate OK [12:09:21]wFMCommunicate request_size=9 [12:09:21]MH_SAM_APDU [12:09:21]CAPDU: 80 0D 02 02 04 85 CB 83 D1 [12:09:21]Write to MH i2c: E2 0C 00 35 38 80 0D 02 02 04 00 85 CB 83 D1 00 00 93 [12:09:21]Write i2c OK [12:09:21]MH_I2C_Read... [12:09:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:21]Read from MH i2c: E2 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 03 00 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 03 00 35 38 00 90 00 E1 [12:09:21]RAPDU: 90 00 [12:09:21]wFMCommunicate OK [12:09:21]wFMCommunicate request_size=4 [12:09:21]MH_SAM_APDU [12:09:21]CAPDU: 80 0D 03 02 [12:09:21]Write to MH i2c: E2 08 00 36 38 80 0D 03 02 00 00 00 00 E9 [12:09:21]Write i2c OK [12:09:21]MH_I2C_Read... [12:09:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:21]Read from MH i2c: E2 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 0B 00 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 0B 00 36 38 00 75 11 15 46 F7 10 F6 D7 90 00 9F [12:09:21]RAPDU: 75 11 15 46 F7 10 F6 D7 90 00 [12:09:21]wFMCommunicate OK [12:09:21]SAM_PROTO_SignData done [12:09:21]FM_MakeSignedData done [12:09:21]CreateOFDProtocolMessage [12:09:21]wFMCommunicate request_size=4 [12:09:21]MH_SAM_APDU [12:09:21]CAPDU: 80 11 00 00 [12:09:21]Write to MH i2c: E2 08 00 37 38 80 11 00 00 00 00 00 00 E9 [12:09:21]Write i2c OK [12:09:21]MH_I2C_Read... [12:09:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:21]Read from MH i2c: E2 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 17 00 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 17 00 37 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 38 [12:09:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:09:21]wFMCommunicate OK [12:09:21]CreateOFDProtocolMessage done [12:09:21]OFDSenderStorePacket 28907 [12:09:21]StoreOFDPacket docnum=28907 [12:09:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 91 CF 06 01 DF 34 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E2 31 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 F4 75 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EB 70 00 00 35 04 06 00 B3 AC 85 CB 83 D1 75 11 15 46 F7 10 F6 D7 [12:09:21]CheckFolder [12:09:21]dirname=/storage/ofd_packets [12:09:21]CheckFolder done [12:09:21]ProducePacketName [12:09:21]name=ofd_packets/00028907 [12:09:21]NVStorageSaveData ofd_packets/00028907 [12:09:21]File name is /storage/ofd_packets/00028907 [12:09:21]Write 300 bytes [12:09:21]NVStorageSaveData done [12:09:21]OFDSenderStorePacket done [12:09:21]KKMCreateOFDPacket done [12:09:21]NVStorageSaveData kkm_last_timestamp [12:09:21]File name is /storage/kkm_last_timestamp [12:09:21]Write 4 bytes [12:09:21]NVStorageSaveData done [12:09:21]ExternCall_PrintAddStr [12:09:21]wPrintStart [12:09:21]Write to MH i2c: 01 00 00 38 38 70 [12:09:21]Write i2c OK [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: 01 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: 01 07 00 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: 01 07 00 38 38 00 00 00 00 00 FF 0F 85 [12:09:21]RasterBufferAndPrint [12:09:21]line Счет N : (1)347261 [12:09:21]line ИНН: 02508201610067 [12:09:21]line Контрольно-Кассовый Чек [12:09:21]line ПРОДАЖА [12:09:21]line ТРК (МРК, ГНК) : 71 [12:09:21]line Товар: 2711129700 [12:09:21]line ГАЗ-К-5 [12:09:21]line 12.770 * 32.90 [12:09:21]line = 420.13 [12:09:21]line НДС 12% НСП 1% [12:09:21]line > о реализуемом товаре [12:09:21]line ОКРУГЛЕНИЕ: -0.13 [12:09:21]line ИТОГО: 420.00 [12:09:21]line Внесено: 420.00 [12:09:21]line СДАЧА: 0.00 [12:09:21]line НСП 1% : 3.72 [12:09:21]line НДС 12% : 44.62 [12:09:21]line Наличными: 420.00 [12:09:21]line Безнал.: 0.00 [12:09:21]line Место: АЗС № 108 "Партнер Нефть" [12:09:21]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:09:21]line СНО: Общий режим [12:09:21]line Чек 114 13.04.2024 12:09 [12:09:21]line Смена: 115 ФФД: 1.0 [12:09:21]line ЗНМ: 0300000027 [12:09:21]line РНМ: 0000138879044617 [12:09:21]line Версия ККМ: 001 [12:09:21]line ФМ: 0000000000963154 [12:09:21]line ФД: 28907 [12:09:21]line ФПД: 197553560454097 [12:09:21]line 1/tax-web-control/client/api/v1/ticket?date=20240413T120924&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28907&fm=197553560454097&tin=02508201610067®Number=0000138879044617&sum=42000 [12:09:21]OFD Sender: Processing packet 28907 [packets to send 8, broken 7] [12:09:21]ProducePacketName [12:09:21]name=ofd_packets/00028907 [12:09:21]OFD Sender: To server: pG, [12:09:21]CommunicateWithHost lk.salyk.kg:30040 [12:09:21]ConnectInit lk.salyk.kg [12:09:21]written 0, free lines is 4095 [12:09:21]Connected sock=10 [12:09: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 31 35 34 0E 01 00 00 91 CF 06 01 DF 34 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E2 31 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 F4 75 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EB 70 00 00 35 04 06 00 B3 AC 85 CB 83 D1 75 11 15 46 F7 10 F6 D7 [12:09:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4F 2F 47 00 9A 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 31 35 34 10 04 04 00 EB 70 00 00 F4 03 04 00 9B 20 1A 66 B6 04 01 00 00 5C 61 DC B4 34 DF AA 88 [12:09:21]CommunicateWithHost err = 0 [12:09:21]CheckOFDResponse [12:09:21]1017 (14) - 77093643461234 [12:09:21]1041 (16) - 0000000000963154 [12:09:21]1040 (4) - 28907 [12:09:21]1012 (4) - 13.04.2024 06:05 [12:09:21]1206 (1) - 0 [12:09:21]OFD Sender: Remove packet 28907 [12:09:21]ProducePacketName [12:09:21]name=ofd_packets/00028907 [12:09:21]NVStorageDeleteData [12:09:22]Write to MH i2c: 01 00 00 62 38 9A [12:09:22]Write i2c OK [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: 01 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: 01 07 00 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: 01 07 00 62 38 00 00 00 00 00 C7 0C 74 [12:09:22]RasterBufferAndPrint [12:09:22]line [12:09:22]line [12:09:22]line [12:09:22]line [12:09:22]line [12:09:22]written 0, free lines is 3276 [12:09:22]MH_Cut [12:09:22]Write to MH i2c: D1 01 00 69 38 01 73 [12:09:22]Write i2c OK [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: D1 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: D1 01 00 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: D1 01 00 69 38 00 72 [12:09:22]Write to MH i2c: 01 00 00 6A 38 A2 [12:09:22]Write i2c OK [12:09:22]MH_I2C_Read... [12:09:22]OFD Sender: No OFD packet to send [12:09:22]*** Cut start [12:09:22]*** Partial cut [12:09:22]*** CUTSNS_PIN = 1 [12:09:23]*** CUTSNS_PIN = 0 [12:09:23]*** Brake cut motor [12:09:23]Read from MH i2c: 01 [12:09:23]MH_I2C_Read... [12:09:23]*** Stop cut motor [12:09:23]*** Cut end [12:09:23]Read from MH i2c: 01 07 00 [12:09:23]MH_I2C_Read... [12:09:23]Read from MH i2c: 01 07 00 6A 38 00 00 00 00 00 FF 0F B7 [12:09:23]process_action close_receipt done [12:09:23]requested_data is exist [12:09:23]produce_requested_data [12:09:23]requested_item fm.sn is exist - process it [12:09:23]wFMCommunicate request_size=4 [12:09:23]MH_SAM_APDU [12:09:23]CAPDU: 80 11 00 00 [12:09:23]Write to MH i2c: E2 08 00 6B 38 80 11 00 00 00 00 00 00 1D [12:09:23]Write i2c OK [12:09:23]MH_I2C_Read... [12:09:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:23]Read from MH i2c: E2 [12:09:23]MH_I2C_Read... [12:09:23]Read from MH i2c: E2 17 00 [12:09:23]MH_I2C_Read... [12:09:23]Read from MH i2c: E2 17 00 6B 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6C [12:09:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:09:23]wFMCommunicate OK [12:09:23]requested_item fd.num is exist - process it [12:09:23]SAM_PROTO_GetFieldsCounters [12:09:23]wFMCommunicate request_size=4 [12:09:23]MH_SAM_APDU [12:09:23]CAPDU: 80 13 00 00 [12:09:23]Write to MH i2c: E2 08 00 6C 38 80 13 00 00 00 00 00 00 20 [12:09:23]Write i2c OK [12:09:23]MH_I2C_Read... [12:09:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:23]Read from MH i2c: E2 [12:09:23]MH_I2C_Read... [12:09:23]Read from MH i2c: E2 62 00 [12:09:23]MH_I2C_Read... [12:09:23]Read from MH i2c: E2 62 00 6C 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EB 70 00 00 0E 04 04 00 73 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 82 [12:09: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EB 70 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:23]wFMCommunicate OK [12:09:23]SAM_PROTO_GetFieldsCounters done [12:09:23]requested_item shift.num is exist - process it [12:09:23]requested_item shift.opened is exist - process it [12:09:23]req_shift_opened [12:09:23]FM_GetShiftState [12:09:23]SAM_PROTO_GetShiftState [12:09:23]wFMCommunicate request_size=4 [12:09:23]MH_SAM_APDU [12:09:23]CAPDU: 80 13 01 00 [12:09:23]Write to MH i2c: E2 08 00 6D 38 80 13 01 00 00 00 00 00 22 [12:09:23]Write i2c OK [12:09:23]MH_I2C_Read... [12:09:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:23]Read from MH i2c: E2 [12:09:23]MH_I2C_Read... [12:09:23]Read from MH i2c: E2 0E 00 [12:09:23]MH_I2C_Read... [12:09:23]Read from MH i2c: E2 0E 00 6D 38 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 3B [12:09:23]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:09:23]wFMCommunicate OK [12:09:23]SAM_PROTO_GetShiftState done [12:09:23]FM_GetShiftState done [12:09:23]req_shift_opened done [12:09:23]requested_item shift.open_date is exist - process it [12:09:23]req_shift_open_date [12:09:23]req_shift_open_date done [12:09:23]produce_requested_data done [12:09:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28907,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [12:09:23]process_action_free close_receipt [12:09:23]json_value_free [12:09:23]json_value_free done [12:09:23]process_json_proto returns [12:09:23]Send response to host [12:09:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28907,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [12:09:23]free response buf [12:09:23]execute_script done [12:09:23]execute_script returns [12:09:23]free content buf [12:09:23]Sock 7.Close socket [12:09:23]Sock 7.Thread stoped [12:09:27]OFD Sender: No OFD packet to send [12:09:32]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:22]OFD Sender: No OFD packet to send [12:10:27]OFD Sender: No OFD packet to send [12:10:32]OFD Sender: No OFD packet to send [12:10:37]OFD Sender: No OFD packet to send [12:10:42]OFD Sender: No OFD packet to send [12:10:47]OFD Sender: No OFD packet to send [12:10:52]OFD Sender: No OFD packet to send [12:10:57]OFD Sender: No OFD packet to send [12:11:02]OFD Sender: No OFD packet to send [12:11:07]OFD Sender: No OFD packet to send [12:11:12]OFD Sender: No OFD packet to send [12:11:17]OFD Sender: No OFD packet to send [12:11:22]OFD Sender: No OFD packet to send [12:11:27]OFD Sender: No OFD packet to send [12:11:32]OFD Sender: No OFD packet to send [12:11:37]OFD Sender: No OFD packet to send [12:11:42]OFD Sender: No OFD packet to send [12:11:47]OFD Sender: No OFD packet to send [12:11:52]OFD Sender: No OFD packet to send [12:11:57]OFD Sender: No OFD packet to send [12:12:02]OFD Sender: No OFD packet to send [12:12:07]OFD Sender: No OFD packet to send [12:12:12]OFD Sender: No OFD packet to send [12:12:17]OFD Sender: No OFD packet to send [12:12:22]OFD Sender: No OFD packet to send [12:12:27]OFD Sender: No OFD packet to send [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:42]accept exits with 9 [12:12:42]New connection [12:12:42]New thread 3066785124 created [12:12:42]Thread 3066928484 joined [12:12:42]Waiting for new connection... [12:12:42] Sock 9.Parse request [12:12:42]Sock 9.Check first char [12:12:42]Sock 9.First char is OK [12:12:42]request: POST /json_proto HTTP/1.0 [12:12:42]Method: POST [12:12:42]URL: /json_proto [12:12:42]Method is POST - this is cgi request [12:12:42]url: /json_proto [12:12:42]query_string will be loaded in cgi processing [12:12:42]execute_cgi json_proto POST (null) [12:12:42]execute_cgi path=json_proto method=POST [12:12:42]POST find Content-Length [12:12:42]Host: 172.17.33.3:8080 [12:12:42]Content-Length: 682 [12:12:42]Content-Type: application/json [12:12:42] [12:12:42]POST finish read [12:12:42]Found Content-Length = 682 [12:12:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347262", "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" : 64.30, "quantity" : 15.560, "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:42]execute_script... [12:12:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347262", "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" : 64.30, "quantity" : 15.560, "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:42]POST & json_proto [12:12:42]process_json_proto [12:12:42]json parsed OK: [12:12:42]protocol is kg_v1.0 [12:12:42]action value=close_receipt [12:12:42]process_action close_receipt [12:12:42]cmd_close_receipt [12:12:42]MH_GetDate [12:12:42]Write to MH i2c: F0 00 00 6E 38 95 [12:12:42]Write i2c OK [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: F0 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: F0 09 00 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: F0 09 00 6E 38 00 BF 76 1A 66 23 5B 8F 65 C5 [12:12:42]GetLastDocTimeStamp 1713010164 [12:12:42]current date 1713010367 [12:12:42]FM_GetShiftState [12:12:42]SAM_PROTO_GetShiftState [12:12:42]wFMCommunicate request_size=4 [12:12:42]MH_SAM_APDU [12:12:42]CAPDU: 80 13 01 00 [12:12:42]Write to MH i2c: E2 08 00 6F 38 80 13 01 00 00 00 00 00 24 [12:12:42]Write i2c OK [12:12:42]MH_I2C_Read... [12:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:42]Read from MH i2c: E2 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: E2 0E 00 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: E2 0E 00 6F 38 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 3D [12:12:42]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:12:42]wFMCommunicate OK [12:12:42]SAM_PROTO_GetShiftState done [12:12:42]FM_GetShiftState done [12:12:42]opened in 1712967615 [12:12:42]opened+sec_in_day 1713054015 [12:12:42]quantity*price = 100050 [12:12:42]sum+1 = 100052 [12:12:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 115 13.04.2024 12:12 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28908 ФПД: 134597729221293 1/tax-web-control/client/api/v1/ticket?date=20240413T121247&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28908&fm=134597729221293&tin=02508201610067®Number=0000138879044617&sum=100000 [12:12:43]StoreToDocumentArchive [12:12:43]shift 115 fd 28908 [12:12:43]save to /storage/0115/doc_00028908 [12:12:43]save last doc name /storage/0115/doc_00028908 to /storage/kkm_last_doc_name [12:12:43]save OK [12:12:43]Clear old archive folders... [12:12:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:12:43]tlvbuf is 01232E30 [12:12:43]SAM_PROTO_ClearQueue [12:12:43]wFMCommunicate request_size=4 [12:12:43]MH_SAM_APDU [12:12:43]CAPDU: 80 09 00 00 [12:12:43]Write to MH i2c: E2 08 00 7C 38 80 09 00 00 00 00 00 00 26 [12:12:43]Write i2c OK [12:12:43]MH_I2C_Read... [12:12:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:43]Read from MH i2c: E2 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 03 00 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 03 00 7C 38 00 90 00 28 [12:12:43]RAPDU: 90 00 [12:12:43]wFMCommunicate OK [12:12:43]SAM_PROTO_ClearQueue done [12:12:43]KKMCreateOFDPacket [12:12:43]OFDProtocolAddRootSTLVToBuf [12:12:43]FM_MakeSignedData [12:12:43]FM_MakeSignedData [12:12:43]SAM_PROTO_SignData [12:12:43]wFMCommunicate request_size=4 [12:12:43]MH_SAM_APDU [12:12:43]CAPDU: 80 0D 01 02 [12:12:43]Write to MH i2c: E2 08 00 7D 38 80 0D 01 02 00 00 00 00 2E [12:12:43]Write i2c OK [12:12:43]MH_I2C_Read... [12:12:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:43]Read from MH i2c: E2 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 03 00 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 03 00 7D 38 00 90 00 29 [12:12:43]RAPDU: 90 00 [12:12:43]wFMCommunicate OK [12:12:43]wFMCommunicate request_size=255 [12:12:43]MH_SAM_APDU [12:12: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 73 00 00 00 F4 03 04 00 BF 76 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EC 70 00 00 35 04 06 00 7A [12:12:43]Write to MH i2c: E2 02 01 7E 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 73 00 00 00 F4 03 04 00 BF 76 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EC 70 00 00 35 04 06 00 7A 00 00 CB [12:12:43]Write i2c OK [12:12:43]MH_I2C_Read... [12:12:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:44]Read from MH i2c: E2 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: E2 03 00 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: E2 03 00 7E 38 00 90 00 2A [12:12:44]RAPDU: 90 00 [12:12:44]wFMCommunicate OK [12:12:44]wFMCommunicate request_size=10 [12:12:44]MH_SAM_APDU [12:12:44]CAPDU: 80 0D 02 02 05 6A 79 D6 7A AD [12:12:44]Write to MH i2c: E2 0D 00 7F 38 80 0D 02 02 05 00 6A 79 D6 7A AD 00 00 1B [12:12:44]Write i2c OK [12:12:44]MH_I2C_Read... [12:12:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:44]Read from MH i2c: E2 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: E2 03 00 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: E2 03 00 7F 38 00 90 00 2B [12:12:44]RAPDU: 90 00 [12:12:44]wFMCommunicate OK [12:12:44]wFMCommunicate request_size=4 [12:12:44]MH_SAM_APDU [12:12:44]CAPDU: 80 0D 03 02 [12:12:44]Write to MH i2c: E2 08 00 80 38 80 0D 03 02 00 00 00 00 33 [12:12:44]Write i2c OK [12:12:44]MH_I2C_Read... [12:12:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:44]Read from MH i2c: E2 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: E2 0B 00 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: E2 0B 00 80 38 00 8F EA 8D 0B 40 87 97 DA 90 00 7D [12:12:44]RAPDU: 8F EA 8D 0B 40 87 97 DA 90 00 [12:12:44]wFMCommunicate OK [12:12:44]SAM_PROTO_SignData done [12:12:44]FM_MakeSignedData done [12:12:44]CreateOFDProtocolMessage [12:12:44]wFMCommunicate request_size=4 [12:12:44]MH_SAM_APDU [12:12:44]CAPDU: 80 11 00 00 [12:12:44]Write to MH i2c: E2 08 00 81 38 80 11 00 00 00 00 00 00 33 [12:12:44]Write i2c OK [12:12:44]MH_I2C_Read... [12:12:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:44]Read from MH i2c: E2 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: E2 17 00 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: E2 17 00 81 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 82 [12:12:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:12:44]wFMCommunicate OK [12:12:44]CreateOFDProtocolMessage done [12:12:44]OFDSenderStorePacket 28908 [12:12:44]StoreOFDPacket docnum=28908 [12:12:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 01 64 07 01 E0 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 73 00 00 00 F4 03 04 00 BF 76 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EC 70 00 00 35 04 06 00 7A 6A 79 D6 7A AD 8F EA 8D 0B 40 87 97 DA [12:12:44]CheckFolder [12:12:44]dirname=/storage/ofd_packets [12:12:44]CheckFolder done [12:12:44]ProducePacketName [12:12:44]name=ofd_packets/00028908 [12:12:44]NVStorageSaveData ofd_packets/00028908 [12:12:44]File name is /storage/ofd_packets/00028908 [12:12:44]Write 301 bytes [12:12:44]NVStorageSaveData done [12:12:44]OFDSenderStorePacket done [12:12:44]KKMCreateOFDPacket done [12:12:44]NVStorageSaveData kkm_last_timestamp [12:12:44]File name is /storage/kkm_last_timestamp [12:12:44]Write 4 bytes [12:12:44]NVStorageSaveData done [12:12:44]ExternCall_PrintAddStr [12:12:44]wPrintStart [12:12:44]Write to MH i2c: 01 00 00 82 38 BA [12:12:44]Write i2c OK [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: 01 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: 01 07 00 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: 01 07 00 82 38 00 00 00 00 00 FF 0F CF [12:12:44]RasterBufferAndPrint [12:12:44]line Счет N : (1)347262 [12:12:44]line ИНН: 02508201610067 [12:12:44]line Контрольно-Кассовый Чек [12:12:44]line ПРОДАЖА [12:12:44]line ТРК (МРК, ГНК) : 42 [12:12:44]line Товар: 2710124130 [12:12:44]line Аи-92-К-5 [12:12:44]line 15.560 * 64.30 [12:12:44]line = 1000.51 [12:12:44]line НДС 12% НСП 1% [12:12:44]line > о реализуемом товаре [12:12:44]line ОКРУГЛЕНИЕ: -0.51 [12:12:44]line ИТОГО: 1000.00 [12:12:44]line Внесено: 1000.00 [12:12:44]line СДАЧА: 0.00 [12:12:44]line НСП 1% : 8.85 [12:12:44]line НДС 12% : 106.25 [12:12:44]line Наличными: 1000.00 [12:12:44]line Безнал.: 0.00 [12:12:44]line Место: АЗС № 108 "Партнер Нефть" [12:12:44]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:12:44]line СНО: Общий режим [12:12:44]line Чек 115 13.04.2024 12:12 [12:12:44]line Смена: 115 ФФД: 1.0 [12:12:44]line ЗНМ: 0300000027 [12:12:44]line РНМ: 0000138879044617 [12:12:44]line Версия ККМ: 001 [12:12:44]line ФМ: 0000000000963154 [12:12:44]line ФД: 28908 [12:12:44]line ФПД: 134597729221293 [12:12:44]line 1/tax-web-control/client/api/v1/ticket?date=20240413T121247&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28908&fm=134597729221293&tin=02508201610067®Number=0000138879044617&sum=100000 [12:12:44]written 0, free lines is 4095 [12:12:44]OFD Sender: Processing packet 28908 [packets to send 8, broken 7] [12:12:44]ProducePacketName [12:12:44]name=ofd_packets/00028908 [12:12:44]OFD Sender: To server: pG, [12:12:44]CommunicateWithHost lk.salyk.kg:30040 [12:12:44]ConnectInit lk.salyk.kg [12:12:44]Write to MH i2c: 01 00 00 AC 38 E4 [12:12:44]Write i2c OK [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: 01 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: 01 07 00 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: 01 07 00 AC 38 00 00 00 00 00 C2 0C B9 [12:12:44]RasterBufferAndPrint [12:12:44]line [12:12:44]line [12:12:44]line [12:12:44]line [12:12:44]line [12:12:44]written 0, free lines is 3270 [12:12:44]MH_Cut [12:12:44]Write to MH i2c: D1 01 00 B3 38 01 BD [12:12:44]Write i2c OK [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: D1 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: D1 01 00 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: D1 01 00 B3 38 00 BC [12:12:44]Write to MH i2c: 01 00 00 B4 38 EC [12:12:44]Write i2c OK [12:12:44]MH_I2C_Read... [12:12:45]*** Cut start [12:12:45]*** Partial cut [12:12:45]*** CUTSNS_PIN = 1 [12:12:45]*** CUTSNS_PIN = 0 [12:12:45]*** Brake cut motor [12:12:46]Read from MH i2c: 01 [12:12:46]MH_I2C_Read... [12:12:46]*** Stop cut motor [12:12:46]*** Cut end [12:12:46]Read from MH i2c: 01 07 00 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: 01 07 00 B4 38 00 00 00 00 00 FF 0F 01 [12:12:46]process_action close_receipt done [12:12:46]requested_data is exist [12:12:46]produce_requested_data [12:12:46]requested_item fm.sn is exist - process it [12:12:46]wFMCommunicate request_size=4 [12:12:46]MH_SAM_APDU [12:12:46]CAPDU: 80 11 00 00 [12:12:46]Write to MH i2c: E2 08 00 B5 38 80 11 00 00 00 00 00 00 67 [12:12:46]Write i2c OK [12:12:46]MH_I2C_Read... [12:12:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:46]Read from MH i2c: E2 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: E2 17 00 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: E2 17 00 B5 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B6 [12:12:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:12:46]wFMCommunicate OK [12:12:46]requested_item fd.num is exist - process it [12:12:46]SAM_PROTO_GetFieldsCounters [12:12:46]wFMCommunicate request_size=4 [12:12:46]MH_SAM_APDU [12:12:46]CAPDU: 80 13 00 00 [12:12:46]Write to MH i2c: E2 08 00 B6 38 80 13 00 00 00 00 00 00 6A [12:12:46]Write i2c OK [12:12:46]MH_I2C_Read... [12:12:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:46]Read from MH i2c: E2 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: E2 62 00 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: E2 62 00 B6 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EC 70 00 00 0E 04 04 00 73 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 D0 [12:12: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EC 70 00 00 0E 04 04 00 73 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 [12:12:46]wFMCommunicate OK [12:12:46]SAM_PROTO_GetFieldsCounters done [12:12:46]requested_item shift.num is exist - process it [12:12:46]requested_item shift.opened is exist - process it [12:12:46]req_shift_opened [12:12:46]FM_GetShiftState [12:12:46]SAM_PROTO_GetShiftState [12:12:46]wFMCommunicate request_size=4 [12:12:46]MH_SAM_APDU [12:12:46]CAPDU: 80 13 01 00 [12:12:46]Write to MH i2c: E2 08 00 B7 38 80 13 01 00 00 00 00 00 6C [12:12:46]Write i2c OK [12:12:46]MH_I2C_Read... [12:12:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:46]Read from MH i2c: E2 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: E2 0E 00 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: E2 0E 00 B7 38 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 85 [12:12:46]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:12:46]wFMCommunicate OK [12:12:46]SAM_PROTO_GetShiftState done [12:12:46]FM_GetShiftState done [12:12:46]req_shift_opened done [12:12:46]requested_item shift.open_date is exist - process it [12:12:46]req_shift_open_date [12:12:46]req_shift_open_date done [12:12:46]produce_requested_data done [12:12:46]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28908,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [12:12:46]process_action_free close_receipt [12:12:46]json_value_free [12:12:46]json_value_free done [12:12:46]process_json_proto returns [12:12:46]Send response to host [12:12:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28908,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [12:12:46]free response buf [12:12:46]execute_script done [12:12:46]execute_script returns [12:12:46]free content buf [12:12:46]Sock 9.Close socket [12:12:46]Sock 9.Thread stoped [12:13:27]accept exits with 7 [12:13:27]New connection [12:13:27]New thread 3066928484 created [12:13:27]Thread 3066785124 joined [12:13:27]Waiting for new connection... [12:13:27] Sock 7.Parse request [12:13:27]Sock 7.Check first char [12:13:27]Sock 7.First char is OK [12:13:27]request: POST /json_proto HTTP/1.0 [12:13:27]Method: POST [12:13:27]URL: /json_proto [12:13:27]Method is POST - this is cgi request [12:13:27]url: /json_proto [12:13:27]query_string will be loaded in cgi processing [12:13:27]execute_cgi json_proto POST (null) [12:13:27]execute_cgi path=json_proto method=POST [12:13:27]POST find Content-Length [12:13:27]Host: 172.17.33.3:8080 [12:13:27]Content-Length: 661 [12:13:27]Content-Type: application/json [12:13:27] [12:13:27]POST finish read [12:13:27]Found Content-Length = 661 [12:13:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347263", "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" : 64.30, "quantity" : 10.000, "sum" : 643.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:27]execute_script... [12:13: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)347263", "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" : 64.30, "quantity" : 10.000, "sum" : 643.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:27]POST & json_proto [12:13:27]process_json_proto [12:13:27]json parsed OK: [12:13:27]protocol is kg_v1.0 [12:13:27]action value=close_receipt [12:13:27]process_action close_receipt [12:13:27]cmd_close_receipt [12:13:27]MH_GetDate [12:13:27]Write to MH i2c: F0 00 00 B8 38 DF [12:13:27]Write i2c OK [12:13:27]MH_I2C_Read... [12:13:27]Read from MH i2c: F0 [12:13:27]MH_I2C_Read... [12:13:27]Read from MH i2c: F0 09 00 [12:13:27]MH_I2C_Read... [12:13:27]Read from MH i2c: F0 09 00 B8 38 00 EC 76 1A 66 23 5B 8F 65 3C [12:13:27]GetLastDocTimeStamp 1713010367 [12:13:27]current date 1713010412 [12:13:27]FM_GetShiftState [12:13:27]SAM_PROTO_GetShiftState [12:13:27]wFMCommunicate request_size=4 [12:13:27]MH_SAM_APDU [12:13:27]CAPDU: 80 13 01 00 [12:13:27]Write to MH i2c: E2 08 00 B9 38 80 13 01 00 00 00 00 00 6E [12:13:27]Write i2c OK [12:13:27]MH_I2C_Read... [12:13:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:27]Read from MH i2c: E2 [12:13:27]MH_I2C_Read... [12:13:27]Read from MH i2c: E2 0E 00 [12:13:27]MH_I2C_Read... [12:13:27]Read from MH i2c: E2 0E 00 B9 38 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 87 [12:13:27]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:13:27]wFMCommunicate OK [12:13:27]SAM_PROTO_GetShiftState done [12:13:27]FM_GetShiftState done [12:13:27]opened in 1712967615 [12:13:27]opened+sec_in_day 1713054015 [12:13:27]quantity*price = 64300 [12:13:27]sum+1 = 64301 [12:13:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 643.00 Внесено: 1000.00 СДАЧА: 357.00 НСП 1% : 5.69 НДС 12% : 68.28 Наличными: 643.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 116 13.04.2024 12:13 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28909 ФПД: 28804776269201 1/tax-web-control/client/api/v1/ticket?date=20240413T121332&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28909&fm=28804776269201&tin=02508201610067®Number=0000138879044617&sum=64300 [12:13:28]StoreToDocumentArchive [12:13:28]shift 115 fd 28909 [12:13:28]save to /storage/0115/doc_00028909 [12:13:28]save last doc name /storage/0115/doc_00028909 to /storage/kkm_last_doc_name [12:13:28]save OK [12:13:28]Clear old archive folders... [12:13:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:13:28]tlvbuf is 012861E0 [12:13:28]SAM_PROTO_ClearQueue [12:13:28]wFMCommunicate request_size=4 [12:13:28]MH_SAM_APDU [12:13:28]CAPDU: 80 09 00 00 [12:13:28]Write to MH i2c: E2 08 00 C6 38 80 09 00 00 00 00 00 00 70 [12:13:28]Write i2c OK [12:13:28]MH_I2C_Read... [12:13:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:28]Read from MH i2c: E2 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 03 00 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 03 00 C6 38 00 90 00 72 [12:13:28]RAPDU: 90 00 [12:13:28]wFMCommunicate OK [12:13:28]SAM_PROTO_ClearQueue done [12:13:28]KKMCreateOFDPacket [12:13:28]OFDProtocolAddRootSTLVToBuf [12:13:28]FM_MakeSignedData [12:13:28]FM_MakeSignedData [12:13:28]SAM_PROTO_SignData [12:13:28]wFMCommunicate request_size=4 [12:13:28]MH_SAM_APDU [12:13:28]CAPDU: 80 0D 01 02 [12:13:28]Write to MH i2c: E2 08 00 C7 38 80 0D 01 02 00 00 00 00 78 [12:13:28]Write i2c OK [12:13:28]MH_I2C_Read... [12:13:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:28]Read from MH i2c: E2 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 03 00 [12:13:28]MH_I2C_Read... [12:13:28]Read from MH i2c: E2 03 00 C7 38 00 90 00 73 [12:13:28]RAPDU: 90 00 [12:13:28]wFMCommunicate OK [12:13:28]wFMCommunicate request_size=255 [12:13:28]MH_SAM_APDU [12:13:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 EC 76 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 ED 70 00 00 35 04 06 00 1A [12:13:28]Write to MH i2c: E2 02 01 C8 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 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 EC 76 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 ED 70 00 00 35 04 06 00 1A 00 00 C3 [12:13:28]Write i2c OK [12:13:28]MH_I2C_Read... [12:13:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:29]Read from MH i2c: E2 [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: E2 03 00 [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: E2 03 00 C8 38 00 90 00 74 [12:13:29]RAPDU: 90 00 [12:13:29]wFMCommunicate OK [12:13:29]wFMCommunicate request_size=10 [12:13:29]MH_SAM_APDU [12:13:29]CAPDU: 80 0D 02 02 05 32 A2 75 15 91 [12:13:29]Write to MH i2c: E2 0D 00 C9 38 80 0D 02 02 05 00 32 A2 75 15 91 00 00 74 [12:13:29]Write i2c OK [12:13:29]MH_I2C_Read... [12:13:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:29]Read from MH i2c: E2 [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: E2 03 00 [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: E2 03 00 C9 38 00 90 00 75 [12:13:29]RAPDU: 90 00 [12:13:29]wFMCommunicate OK [12:13:29]wFMCommunicate request_size=4 [12:13:29]MH_SAM_APDU [12:13:29]CAPDU: 80 0D 03 02 [12:13:29]Write to MH i2c: E2 08 00 CA 38 80 0D 03 02 00 00 00 00 7D [12:13:29]Write i2c OK [12:13:29]MH_I2C_Read... [12:13:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:29]Read from MH i2c: E2 [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: E2 0B 00 [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: E2 0B 00 CA 38 00 D5 33 D3 9E BA 84 DD E3 90 00 F5 [12:13:29]RAPDU: D5 33 D3 9E BA 84 DD E3 90 00 [12:13:29]wFMCommunicate OK [12:13:29]SAM_PROTO_SignData done [12:13:29]FM_MakeSignedData done [12:13:29]CreateOFDProtocolMessage [12:13:29]wFMCommunicate request_size=4 [12:13:29]MH_SAM_APDU [12:13:29]CAPDU: 80 11 00 00 [12:13:29]Write to MH i2c: E2 08 00 CB 38 80 11 00 00 00 00 00 00 7D [12:13:29]Write i2c OK [12:13:29]MH_I2C_Read... [12:13:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:29]Read from MH i2c: E2 [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: E2 17 00 [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: E2 17 00 CB 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CC [12:13:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:13:29]wFMCommunicate OK [12:13:29]CreateOFDProtocolMessage done [12:13:29]OFDSenderStorePacket 28909 [12:13:29]StoreOFDPacket docnum=28909 [12:13:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E1 72 07 01 A3 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 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 EC 76 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 ED 70 00 00 35 04 06 00 1A 32 A2 75 15 91 D5 33 D3 9E BA 84 DD E3 [12:13:29]CheckFolder [12:13:29]dirname=/storage/ofd_packets [12:13:29]CheckFolder done [12:13:29]ProducePacketName [12:13:29]name=ofd_packets/00028909 [12:13:29]NVStorageSaveData ofd_packets/00028909 [12:13:29]File name is /storage/ofd_packets/00028909 [12:13:29]Write 301 bytes [12:13:29]NVStorageSaveData done [12:13:29]OFDSenderStorePacket done [12:13:29]KKMCreateOFDPacket done [12:13:29]NVStorageSaveData kkm_last_timestamp [12:13:29]File name is /storage/kkm_last_timestamp [12:13:29]Write 4 bytes [12:13:29]NVStorageSaveData done [12:13:29]ExternCall_PrintAddStr [12:13:29]wPrintStart [12:13:29]Write to MH i2c: 01 00 00 CC 38 04 [12:13:29]Write i2c OK [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: 01 [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: 01 07 00 [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: 01 07 00 CC 38 00 00 00 00 00 FF 0F 19 [12:13:29]RasterBufferAndPrint [12:13:29]line Счет N : (1)347263 [12:13:29]line ИНН: 02508201610067 [12:13:29]line Контрольно-Кассовый Чек [12:13:29]line ПРОДАЖА [12:13:29]line ТРК (МРК, ГНК) : 32 [12:13:29]line Товар: 2710124130 [12:13:29]line Аи-92-К-5 [12:13:29]line 10.000 * 64.30 [12:13:29]line = 643.00 [12:13:29]line НДС 12% НСП 1% [12:13:29]line > о реализуемом товаре [12:13:29]line ИТОГО: 643.00 [12:13:29]line Внесено: 1000.00 [12:13:29]line СДАЧА: 357.00 [12:13:29]line НСП 1% : 5.69 [12:13:29]line НДС 12% : 68.28 [12:13:29]line Наличными: 643.00 [12:13:29]line Безнал.: 0.00 [12:13:29]line Место: АЗС № 108 "Партнер Нефть" [12:13:29]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:13:29]line СНО: Общий режим [12:13:29]line Чек 116 13.04.2024 12:13 [12:13:29]line Смена: 115 ФФД: 1.0 [12:13:29]line ЗНМ: 0300000027 [12:13:29]line РНМ: 0000138879044617 [12:13:29]line Версия ККМ: 001 [12:13:29]line ФМ: 0000000000963154 [12:13:29]line ФД: 28909 [12:13:29]line ФПД: 28804776269201 [12:13:29]line 1/tax-web-control/client/api/v1/ticket?date=20240413T121332&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28909&fm=28804776269201&tin=02508201610067®Number=0000138879044617&sum=64300 [12:13:29]written 0, free lines is 4095 [12:13:30]Write to MH i2c: 01 00 00 F5 38 2D [12:13:30]Write i2c OK [12:13:30]MH_I2C_Read... [12:13:30]Read from MH i2c: 01 [12:13:30]MH_I2C_Read... [12:13:30]Read from MH i2c: 01 07 00 [12:13:30]MH_I2C_Read... [12:13:30]Read from MH i2c: 01 07 00 F5 38 00 00 00 00 00 D7 0C 17 [12:13:30]RasterBufferAndPrint [12:13:30]line [12:13:30]line [12:13:30]line [12:13:30]line [12:13:30]line [12:13:30]written 0, free lines is 3290 [12:13:30]MH_Cut [12:13:30]Write to MH i2c: D1 01 00 FC 38 01 06 [12:13:30]Write i2c OK [12:13:30]MH_I2C_Read... [12:13:30]Read from MH i2c: D1 [12:13:30]MH_I2C_Read... [12:13:30]Read from MH i2c: D1 01 00 [12:13:30]MH_I2C_Read... [12:13:30]Read from MH i2c: D1 01 00 FC 38 00 05 [12:13:30]Write to MH i2c: 01 00 00 FD 38 35 [12:13:30]Write i2c OK [12:13:30]MH_I2C_Read... [12:13:30]*** Cut start [12:13:30]*** Partial cut [12:13:30]*** CUTSNS_PIN = 1 [12:13:30]*** CUTSNS_PIN = 0 [12:13:31]*** Brake cut motor [12:13:31]Read from MH i2c: 01 [12:13:31]MH_I2C_Read... [12:13:31]*** Stop cut motor [12:13:31]*** Cut end [12:13:31]Read from MH i2c: 01 07 00 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: 01 07 00 FD 38 00 00 00 00 00 FF 0F 4A [12:13:31]process_action close_receipt done [12:13:31]requested_data is exist [12:13:31]produce_requested_data [12:13:31]requested_item fm.sn is exist - process it [12:13:31]wFMCommunicate request_size=4 [12:13:31]MH_SAM_APDU [12:13:31]CAPDU: 80 11 00 00 [12:13:31]Write to MH i2c: E2 08 00 FE 38 80 11 00 00 00 00 00 00 B0 [12:13:31]Write i2c OK [12:13:31]MH_I2C_Read... [12:13:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:31]Read from MH i2c: E2 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 17 00 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 17 00 FE 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FF [12:13:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:13:31]wFMCommunicate OK [12:13:31]requested_item fd.num is exist - process it [12:13:31]SAM_PROTO_GetFieldsCounters [12:13:31]wFMCommunicate request_size=4 [12:13:31]MH_SAM_APDU [12:13:31]CAPDU: 80 13 00 00 [12:13:31]Write to MH i2c: E2 08 00 FF 38 80 13 00 00 00 00 00 00 B3 [12:13:31]Write i2c OK [12:13:31]MH_I2C_Read... [12:13:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:31]Read from MH i2c: E2 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 62 00 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 62 00 FF 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 ED 70 00 00 0E 04 04 00 73 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 1D [12:13: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 ED 70 00 00 0E 04 04 00 73 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 [12:13:31]wFMCommunicate OK [12:13:31]SAM_PROTO_GetFieldsCounters done [12:13:31]requested_item shift.num is exist - process it [12:13:31]requested_item shift.opened is exist - process it [12:13:31]req_shift_opened [12:13:31]FM_GetShiftState [12:13:31]SAM_PROTO_GetShiftState [12:13:31]wFMCommunicate request_size=4 [12:13:31]MH_SAM_APDU [12:13:31]CAPDU: 80 13 01 00 [12:13:31]Write to MH i2c: E2 08 00 00 39 80 13 01 00 00 00 00 00 B6 [12:13:31]Write i2c OK [12:13:31]MH_I2C_Read... [12:13:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:31]Read from MH i2c: E2 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 0E 00 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 0E 00 00 39 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 CF [12:13:31]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:13:31]wFMCommunicate OK [12:13:31]SAM_PROTO_GetShiftState done [12:13:31]FM_GetShiftState done [12:13:31]req_shift_opened done [12:13:31]requested_item shift.open_date is exist - process it [12:13:31]req_shift_open_date [12:13:31]req_shift_open_date done [12:13:31]produce_requested_data done [12:13:31]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28909,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [12:13:31]process_action_free close_receipt [12:13:31]json_value_free [12:13:31]json_value_free done [12:13:31]process_json_proto returns [12:13:31]Send response to host [12:13:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28909,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [12:13:31]free response buf [12:13:31]execute_script done [12:13:31]execute_script returns [12:13:31]free content buf [12:13:31]Sock 7.Close socket [12:13:31]Sock 7.Thread stoped [12:14:26]accept exits with 9 [12:14:26]New connection [12:14:26]New thread 3066785124 created [12:14:26]Thread 3066928484 joined [12:14:26]Waiting for new connection... [12:14:26] Sock 9.Parse request [12:14:26]Sock 9.Check first char [12:14:26]Sock 9.First char is OK [12:14:26]request: POST /json_proto HTTP/1.0 [12:14:26]Method: POST [12:14:26]URL: /json_proto [12:14:26]Method is POST - this is cgi request [12:14:26]url: /json_proto [12:14:26]query_string will be loaded in cgi processing [12:14:26]execute_cgi json_proto POST (null) [12:14:26]execute_cgi path=json_proto method=POST [12:14:26]POST find Content-Length [12:14:26]Host: 172.17.33.3:8080 [12:14:26]Content-Length: 677 [12:14:26]Content-Type: application/json [12:14:26] [12:14:26]POST finish read [12:14:26]Found Content-Length = 677 [12:14:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.230, "sum" : 400.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:26]execute_script... [12:14: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)347264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.230, "sum" : 400.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:26]POST & json_proto [12:14:26]process_json_proto [12:14:26]json parsed OK: [12:14:26]protocol is kg_v1.0 [12:14:26]action value=close_receipt [12:14:26]process_action close_receipt [12:14:26]cmd_close_receipt [12:14:26]MH_GetDate [12:14:26]Write to MH i2c: F0 00 00 01 39 29 [12:14:26]Write i2c OK [12:14:26]MH_I2C_Read... [12:14:26]Read from MH i2c: F0 [12:14:26]MH_I2C_Read... [12:14:26]Read from MH i2c: F0 09 00 [12:14:26]MH_I2C_Read... [12:14:26]Read from MH i2c: F0 09 00 01 39 00 26 77 1A 66 23 5B 8F 65 C1 [12:14:26]GetLastDocTimeStamp 1713010412 [12:14:26]current date 1713010470 [12:14:26]FM_GetShiftState [12:14:26]SAM_PROTO_GetShiftState [12:14:26]wFMCommunicate request_size=4 [12:14:26]MH_SAM_APDU [12:14:26]CAPDU: 80 13 01 00 [12:14:26]Write to MH i2c: E2 08 00 02 39 80 13 01 00 00 00 00 00 B8 [12:14:26]Write i2c OK [12:14:26]MH_I2C_Read... [12:14:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:26]Read from MH i2c: E2 [12:14:26]MH_I2C_Read... [12:14:26]Read from MH i2c: E2 0E 00 [12:14:26]MH_I2C_Read... [12:14:26]Read from MH i2c: E2 0E 00 02 39 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D1 [12:14:26]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:14:26]wFMCommunicate OK [12:14:26]SAM_PROTO_GetShiftState done [12:14:26]FM_GetShiftState done [12:14:26]opened in 1712967615 [12:14:26]opened+sec_in_day 1713054015 [12:14:26]quantity*price = 40058 [12:14:26]sum+1 = 40060 [12:14:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 117 13.04.2024 12:14 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28910 ФПД: 11801191813477 1/tax-web-control/client/api/v1/ticket?date=20240413T121430&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28910&fm=11801191813477&tin=02508201610067®Number=0000138879044617&sum=40000 [12:14:27]StoreToDocumentArchive [12:14:27]shift 115 fd 28910 [12:14:27]save to /storage/0115/doc_00028910 [12:14:27]save last doc name /storage/0115/doc_00028910 to /storage/kkm_last_doc_name [12:14:27]save OK [12:14:27]Clear old archive folders... [12:14:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:14:27]tlvbuf is 0121FCE0 [12:14:27]SAM_PROTO_ClearQueue [12:14:27]wFMCommunicate request_size=4 [12:14:27]MH_SAM_APDU [12:14:27]CAPDU: 80 09 00 00 [12:14:27]Write to MH i2c: E2 08 00 0F 39 80 09 00 00 00 00 00 00 BA [12:14:27]Write i2c OK [12:14:27]MH_I2C_Read... [12:14:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:27]Read from MH i2c: E2 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: E2 03 00 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: E2 03 00 0F 39 00 90 00 BC [12:14:27]RAPDU: 90 00 [12:14:27]wFMCommunicate OK [12:14:27]SAM_PROTO_ClearQueue done [12:14:27]KKMCreateOFDPacket [12:14:27]OFDProtocolAddRootSTLVToBuf [12:14:27]FM_MakeSignedData [12:14:27]FM_MakeSignedData [12:14:27]SAM_PROTO_SignData [12:14:27]wFMCommunicate request_size=4 [12:14:27]MH_SAM_APDU [12:14:27]CAPDU: 80 0D 01 02 [12:14:27]Write to MH i2c: E2 08 00 10 39 80 0D 01 02 00 00 00 00 C2 [12:14:27]Write i2c OK [12:14:27]MH_I2C_Read... [12:14:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:27]Read from MH i2c: E2 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: E2 03 00 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: E2 03 00 10 39 00 90 00 BD [12:14:27]RAPDU: 90 00 [12:14:27]wFMCommunicate OK [12:14:27]wFMCommunicate request_size=255 [12:14:27]MH_SAM_APDU [12:14: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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 75 00 00 00 F4 03 04 00 26 77 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EE 70 00 00 35 04 06 00 0A [12:14:27]Write to MH i2c: E2 02 01 11 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 75 00 00 00 F4 03 04 00 26 77 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EE 70 00 00 35 04 06 00 0A 00 00 DB [12:14:27]Write i2c OK [12:14:27]MH_I2C_Read... [12:14:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:27]Read from MH i2c: E2 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: E2 03 00 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: E2 03 00 11 39 00 90 00 BE [12:14:27]RAPDU: 90 00 [12:14:27]wFMCommunicate OK [12:14:27]wFMCommunicate request_size=10 [12:14:27]MH_SAM_APDU [12:14:27]CAPDU: 80 0D 02 02 05 BB AD D8 91 65 [12:14:27]Write to MH i2c: E2 0D 00 12 39 80 0D 02 02 05 00 BB AD D8 91 65 00 00 05 [12:14:27]Write i2c OK [12:14:27]MH_I2C_Read... [12:14:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:27]Read from MH i2c: E2 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: E2 03 00 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: E2 03 00 12 39 00 90 00 BF [12:14:27]RAPDU: 90 00 [12:14:27]wFMCommunicate OK [12:14:27]wFMCommunicate request_size=4 [12:14:27]MH_SAM_APDU [12:14:27]CAPDU: 80 0D 03 02 [12:14:27]Write to MH i2c: E2 08 00 13 39 80 0D 03 02 00 00 00 00 C7 [12:14:27]Write i2c OK [12:14:27]MH_I2C_Read... [12:14:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:27]Read from MH i2c: E2 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: E2 0B 00 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: E2 0B 00 13 39 00 24 9E D3 FA 68 38 4C 55 90 00 98 [12:14:27]RAPDU: 24 9E D3 FA 68 38 4C 55 90 00 [12:14:27]wFMCommunicate OK [12:14:27]SAM_PROTO_SignData done [12:14:27]FM_MakeSignedData done [12:14:27]CreateOFDProtocolMessage [12:14:27]wFMCommunicate request_size=4 [12:14:27]MH_SAM_APDU [12:14:27]CAPDU: 80 11 00 00 [12:14:27]Write to MH i2c: E2 08 00 14 39 80 11 00 00 00 00 00 00 C7 [12:14:27]Write i2c OK [12:14:27]MH_I2C_Read... [12:14:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:27]Read from MH i2c: E2 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: E2 17 00 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: E2 17 00 14 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 16 [12:14:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:14:27]wFMCommunicate OK [12:14:27]CreateOFDProtocolMessage done [12:14:27]OFDSenderStorePacket 28910 [12:14:27]StoreOFDPacket docnum=28910 [12:14:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D4 21 07 01 45 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 75 00 00 00 F4 03 04 00 26 77 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EE 70 00 00 35 04 06 00 0A BB AD D8 91 65 24 9E D3 FA 68 38 4C 55 [12:14:27]CheckFolder [12:14:27]dirname=/storage/ofd_packets [12:14:27]CheckFolder done [12:14:27]ProducePacketName [12:14:27]name=ofd_packets/00028910 [12:14:27]NVStorageSaveData ofd_packets/00028910 [12:14:27]File name is /storage/ofd_packets/00028910 [12:14:27]Write 301 bytes [12:14:27]NVStorageSaveData done [12:14:27]OFDSenderStorePacket done [12:14:27]KKMCreateOFDPacket done [12:14:27]NVStorageSaveData kkm_last_timestamp [12:14:27]File name is /storage/kkm_last_timestamp [12:14:27]Write 4 bytes [12:14:27]NVStorageSaveData done [12:14:27]ExternCall_PrintAddStr [12:14:27]wPrintStart [12:14:27]Write to MH i2c: 01 00 00 15 39 4E [12:14:27]Write i2c OK [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: 01 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: 01 07 00 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: 01 07 00 15 39 00 00 00 00 00 FF 0F 63 [12:14:27]RasterBufferAndPrint [12:14:27]line Счет N : (1)347264 [12:14:27]line ИНН: 02508201610067 [12:14:27]line Контрольно-Кассовый Чек [12:14:27]line ПРОДАЖА [12:14:27]line ТРК (МРК, ГНК) : 13 [12:14:27]line Товар: 2710124130 [12:14:27]line Аи-92-К-5 [12:14:27]line 6.230 * 64.30 [12:14:27]line = 400.59 [12:14:27]line НДС 12% НСП 1% [12:14:27]line > о реализуемом товаре [12:14:27]line ОКРУГЛЕНИЕ: -0.59 [12:14:27]line ИТОГО: 400.00 [12:14:27]line Внесено: 400.00 [12:14:27]line СДАЧА: 0.00 [12:14:27]line НСП 1% : 3.54 [12:14:27]line НДС 12% : 42.54 [12:14:27]line Наличными: 400.00 [12:14:27]line Безнал.: 0.00 [12:14:27]line Место: АЗС № 108 "Партнер Нефть" [12:14:27]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:14:27]line СНО: Общий режим [12:14:27]line Чек 117 13.04.2024 12:14 [12:14:27]line Смена: 115 ФФД: 1.0 [12:14:27]line ЗНМ: 0300000027 [12:14:27]line РНМ: 0000138879044617 [12:14:27]line Версия ККМ: 001 [12:14:27]line ФМ: 0000000000963154 [12:14:27]line ФД: 28910 [12:14:27]line ФПД: 11801191813477 [12:14:27]line 1/tax-web-control/client/api/v1/ticket?date=20240413T121430&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28910&fm=11801191813477&tin=02508201610067®Number=0000138879044617&sum=40000 [12:14:28]written 0, free lines is 4095 [12:14:28]Write to MH i2c: 01 00 00 3F 39 78 [12:14:28]Write i2c OK [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: 01 [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: 01 07 00 [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: 01 07 00 3F 39 00 00 00 00 00 BC 0C 47 [12:14:28]RasterBufferAndPrint [12:14:28]line [12:14:28]line [12:14:28]line [12:14:28]line [12:14:28]line [12:14:28]written 0, free lines is 3265 [12:14:28]MH_Cut [12:14:28]Write to MH i2c: D1 01 00 46 39 01 51 [12:14:28]Write i2c OK [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: D1 [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: D1 01 00 [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: D1 01 00 46 39 00 50 [12:14:28]Write to MH i2c: 01 00 00 47 39 80 [12:14:28]Write i2c OK [12:14:28]MH_I2C_Read... [12:14:29]*** Cut start [12:14:29]*** Partial cut [12:14:29]*** CUTSNS_PIN = 1 [12:14:29]*** CUTSNS_PIN = 0 [12:14:29]*** Brake cut motor [12:14:29]Read from MH i2c: 01 [12:14:29]MH_I2C_Read... [12:14:29]*** Stop cut motor [12:14:29]*** Cut end [12:14:29]Read from MH i2c: 01 07 00 [12:14:29]MH_I2C_Read... [12:14:29]Read from MH i2c: 01 07 00 47 39 00 00 00 00 00 FF 0F 95 [12:14:29]process_action close_receipt done [12:14:29]requested_data is exist [12:14:29]produce_requested_data [12:14:29]requested_item fm.sn is exist - process it [12:14:29]wFMCommunicate request_size=4 [12:14:29]MH_SAM_APDU [12:14:29]CAPDU: 80 11 00 00 [12:14:29]Write to MH i2c: E2 08 00 48 39 80 11 00 00 00 00 00 00 FB [12:14:29]Write i2c OK [12:14:29]MH_I2C_Read... [12:14:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:30]Read from MH i2c: E2 [12:14:30]MH_I2C_Read... [12:14:30]Read from MH i2c: E2 17 00 [12:14:30]MH_I2C_Read... [12:14:30]Read from MH i2c: E2 17 00 48 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4A [12:14:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:14:30]wFMCommunicate OK [12:14:30]requested_item fd.num is exist - process it [12:14:30]SAM_PROTO_GetFieldsCounters [12:14:30]wFMCommunicate request_size=4 [12:14:30]MH_SAM_APDU [12:14:30]CAPDU: 80 13 00 00 [12:14:30]Write to MH i2c: E2 08 00 49 39 80 13 00 00 00 00 00 00 FE [12:14:30]Write i2c OK [12:14:30]MH_I2C_Read... [12:14:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:30]Read from MH i2c: E2 [12:14:30]MH_I2C_Read... [12:14:30]Read from MH i2c: E2 62 00 [12:14:30]MH_I2C_Read... [12:14:30]Read from MH i2c: E2 62 00 49 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EE 70 00 00 0E 04 04 00 73 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 6C [12:14: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EE 70 00 00 0E 04 04 00 73 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 [12:14:30]wFMCommunicate OK [12:14:30]SAM_PROTO_GetFieldsCounters done [12:14:30]requested_item shift.num is exist - process it [12:14:30]requested_item shift.opened is exist - process it [12:14:30]req_shift_opened [12:14:30]FM_GetShiftState [12:14:30]SAM_PROTO_GetShiftState [12:14:30]wFMCommunicate request_size=4 [12:14:30]MH_SAM_APDU [12:14:30]CAPDU: 80 13 01 00 [12:14:30]Write to MH i2c: E2 08 00 4A 39 80 13 01 00 00 00 00 00 00 [12:14:30]Write i2c OK [12:14:30]MH_I2C_Read... [12:14:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:30]Read from MH i2c: E2 [12:14:30]MH_I2C_Read... [12:14:30]Read from MH i2c: E2 0E 00 [12:14:30]MH_I2C_Read... [12:14:30]Read from MH i2c: E2 0E 00 4A 39 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 19 [12:14:30]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:14:30]wFMCommunicate OK [12:14:30]SAM_PROTO_GetShiftState done [12:14:30]FM_GetShiftState done [12:14:30]req_shift_opened done [12:14:30]requested_item shift.open_date is exist - process it [12:14:30]req_shift_open_date [12:14:30]req_shift_open_date done [12:14:30]produce_requested_data done [12:14:30]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28910,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [12:14:30]process_action_free close_receipt [12:14:30]json_value_free [12:14:30]json_value_free done [12:14:30]process_json_proto returns [12:14:30]Send response to host [12:14:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28910,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [12:14:30]free response buf [12:14:30]execute_script done [12:14:30]execute_script returns [12:14:30]free content buf [12:14:30]Sock 9.Close socket [12:14:30]Sock 9.Thread stoped [12:14:56]ConnectInit Can't connect to host [12:14:56]CommunicateWithHost connect error [12:14:56]CommunicateWithHost err = -1 [12:14:56]OFD Sender: Server communicate error [12:14:57]OFD Sender: Processing packet 28908 [packets to send 10, broken 7] [12:14:57]ProducePacketName [12:14:57]name=ofd_packets/00028908 [12:14:57]OFD Sender: To server: pG, [12:14:57]CommunicateWithHost lk.salyk.kg:30040 [12:14:57]ConnectInit lk.salyk.kg [12:14:57]Connected sock=9 [12:14:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 01 64 07 01 E0 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 73 00 00 00 F4 03 04 00 BF 76 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EC 70 00 00 35 04 06 00 7A 6A 79 D6 7A AD 8F EA 8D 0B 40 87 97 DA [12:14:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0E 9D 47 00 25 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 31 35 34 10 04 04 00 EC 70 00 00 F4 03 04 00 EA 21 1A 66 B6 04 01 00 00 69 AC EF 3B F9 75 5F AA [12:14:57]CommunicateWithHost err = 0 [12:14:57]CheckOFDResponse [12:14:57]1017 (14) - 77093643461234 [12:14:57]1041 (16) - 0000000000963154 [12:14:57]1040 (4) - 28908 [12:14:57]1012 (4) - 13.04.2024 06:10 [12:14:57]1206 (1) - 0 [12:14:57]OFD Sender: Remove packet 28908 [12:14:57]ProducePacketName [12:14:57]name=ofd_packets/00028908 [12:14:57]NVStorageDeleteData [12:14:57]OFD Sender: Processing packet 28909 [packets to send 9, broken 7] [12:14:57]ProducePacketName [12:14:57]name=ofd_packets/00028909 [12:14:57]OFD Sender: To server: pG, [12:14:57]CommunicateWithHost lk.salyk.kg:30040 [12:14:57]ConnectInit lk.salyk.kg [12:14:57]Connected sock=9 [12:14:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E1 72 07 01 A3 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 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 EC 76 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 ED 70 00 00 35 04 06 00 1A 32 A2 75 15 91 D5 33 D3 9E BA 84 DD E3 [12:14:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4C 2F 47 00 78 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 31 35 34 10 04 04 00 ED 70 00 00 F4 03 04 00 EB 21 1A 66 B6 04 01 00 00 7D 17 8E D8 7E 0C 71 6C [12:14:58]CommunicateWithHost err = 0 [12:14:58]CheckOFDResponse [12:14:58]1017 (14) - 77093643461234 [12:14:58]1041 (16) - 0000000000963154 [12:14:58]1040 (4) - 28909 [12:14:58]1012 (4) - 13.04.2024 06:10 [12:14:58]1206 (1) - 0 [12:14:58]OFD Sender: Remove packet 28909 [12:14:58]ProducePacketName [12:14:58]name=ofd_packets/00028909 [12:14:58]NVStorageDeleteData [12:14:58]OFD Sender: Processing packet 28910 [packets to send 8, broken 7] [12:14:58]ProducePacketName [12:14:58]name=ofd_packets/00028910 [12:14:58]OFD Sender: To server: pG, [12:14:58]CommunicateWithHost lk.salyk.kg:30040 [12:14:58]ConnectInit lk.salyk.kg [12:14:58]Connected sock=9 [12:14: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 31 35 34 0F 01 00 00 D4 21 07 01 45 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 75 00 00 00 F4 03 04 00 26 77 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EE 70 00 00 35 04 06 00 0A BB AD D8 91 65 24 9E D3 FA 68 38 4C 55 [12:14:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8D EB 47 00 BC 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 31 35 34 10 04 04 00 EE 70 00 00 F4 03 04 00 EC 21 1A 66 B6 04 01 00 00 0D A9 D7 DB 76 67 4B 2D [12:14:58]CommunicateWithHost err = 0 [12:14:58]CheckOFDResponse [12:14:58]1017 (14) - 77093643461234 [12:14:58]1041 (16) - 0000000000963154 [12:14:58]1040 (4) - 28910 [12:14:58]1012 (4) - 13.04.2024 06:10 [12:14:58]1206 (1) - 0 [12:14:58]OFD Sender: Remove packet 28910 [12:14:58]ProducePacketName [12:14:58]name=ofd_packets/00028910 [12:14:58]NVStorageDeleteData [12:14:59]OFD Sender: No OFD packet to send [12:15:04]OFD Sender: No OFD packet to send [12:15:05]accept exits with 7 [12:15:05]New connection [12:15:05]New thread 3066928484 created [12:15:05]Thread 3066785124 joined [12:15:05]Waiting for new connection... [12:15:05] Sock 7.Parse request [12:15:05]Sock 7.Check first char [12:15:05]Sock 7.First char is OK [12:15:05]request: POST /json_proto HTTP/1.0 [12:15:05]Method: POST [12:15:05]URL: /json_proto [12:15:05]Method is POST - this is cgi request [12:15:05]url: /json_proto [12:15:05]query_string will be loaded in cgi processing [12:15:05]execute_cgi json_proto POST (null) [12:15:05]execute_cgi path=json_proto method=POST [12:15:05]POST find Content-Length [12:15:05]Host: 172.17.33.3:8080 [12:15:05]Content-Length: 682 [12:15:05]Content-Type: application/json [12:15:05] [12:15:05]POST finish read [12:15:05]Found Content-Length = 682 [12:15:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347265", "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" : 64.30, "quantity" : 15.560, "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:15:05]execute_script... [12:15: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)347265", "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" : 64.30, "quantity" : 15.560, "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:15:05]POST & json_proto [12:15:05]process_json_proto [12:15:05]json parsed OK: [12:15:05]protocol is kg_v1.0 [12:15:05]action value=close_receipt [12:15:05]process_action close_receipt [12:15:05]cmd_close_receipt [12:15:05]MH_GetDate [12:15:05]Write to MH i2c: F0 00 00 4B 39 73 [12:15:05]Write i2c OK [12:15:05]MH_I2C_Read... [12:15:05]Read from MH i2c: F0 [12:15:05]MH_I2C_Read... [12:15:05]Read from MH i2c: F0 09 00 [12:15:05]MH_I2C_Read... [12:15:05]Read from MH i2c: F0 09 00 4B 39 00 4D 77 1A 66 23 5B 8F 65 32 [12:15:05]GetLastDocTimeStamp 1713010470 [12:15:05]current date 1713010509 [12:15:05]FM_GetShiftState [12:15:05]SAM_PROTO_GetShiftState [12:15:05]wFMCommunicate request_size=4 [12:15:05]MH_SAM_APDU [12:15:05]CAPDU: 80 13 01 00 [12:15:05]Write to MH i2c: E2 08 00 4C 39 80 13 01 00 00 00 00 00 02 [12:15:05]Write i2c OK [12:15:05]MH_I2C_Read... [12:15:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:05]Read from MH i2c: E2 [12:15:05]MH_I2C_Read... [12:15:05]Read from MH i2c: E2 0E 00 [12:15:05]MH_I2C_Read... [12:15:05]Read from MH i2c: E2 0E 00 4C 39 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 1B [12:15:05]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:15:05]wFMCommunicate OK [12:15:05]SAM_PROTO_GetShiftState done [12:15:05]FM_GetShiftState done [12:15:05]opened in 1712967615 [12:15:05]opened+sec_in_day 1713054015 [12:15:05]quantity*price = 100050 [12:15:05]sum+1 = 100052 [12:15:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 118 13.04.2024 12:15 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28911 ФПД: 136624384491681 1/tax-web-control/client/api/v1/ticket?date=20240413T121509&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28911&fm=136624384491681&tin=02508201610067®Number=0000138879044617&sum=100000 [12:15:06]StoreToDocumentArchive [12:15:06]shift 115 fd 28911 [12:15:06]save to /storage/0115/doc_00028911 [12:15:06]save last doc name /storage/0115/doc_00028911 to /storage/kkm_last_doc_name [12:15:06]save OK [12:15:06]Clear old archive folders... [12:15:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:15:06]tlvbuf is 01233120 [12:15:06]SAM_PROTO_ClearQueue [12:15:06]wFMCommunicate request_size=4 [12:15:06]MH_SAM_APDU [12:15:06]CAPDU: 80 09 00 00 [12:15:06]Write to MH i2c: E2 08 00 59 39 80 09 00 00 00 00 00 00 04 [12:15:06]Write i2c OK [12:15:06]MH_I2C_Read... [12:15:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:06]Read from MH i2c: E2 [12:15:06]MH_I2C_Read... [12:15:06]Read from MH i2c: E2 03 00 [12:15:06]MH_I2C_Read... [12:15:06]Read from MH i2c: E2 03 00 59 39 00 90 00 06 [12:15:06]RAPDU: 90 00 [12:15:06]wFMCommunicate OK [12:15:06]SAM_PROTO_ClearQueue done [12:15:06]KKMCreateOFDPacket [12:15:06]OFDProtocolAddRootSTLVToBuf [12:15:06]FM_MakeSignedData [12:15:06]FM_MakeSignedData [12:15:06]SAM_PROTO_SignData [12:15:06]wFMCommunicate request_size=4 [12:15:06]MH_SAM_APDU [12:15:06]CAPDU: 80 0D 01 02 [12:15:06]Write to MH i2c: E2 08 00 5A 39 80 0D 01 02 00 00 00 00 0C [12:15:06]Write i2c OK [12:15:06]MH_I2C_Read... [12:15:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:06]Read from MH i2c: E2 [12:15:06]MH_I2C_Read... [12:15:06]Read from MH i2c: E2 03 00 [12:15:06]MH_I2C_Read... [12:15:06]Read from MH i2c: E2 03 00 5A 39 00 90 00 07 [12:15:06]RAPDU: 90 00 [12:15:06]wFMCommunicate OK [12:15:06]wFMCommunicate request_size=255 [12:15:06]MH_SAM_APDU [12:15: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 4D 77 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EF 70 00 00 35 04 06 00 7C [12:15:06]Write to MH i2c: E2 02 01 5B 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 4D 77 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EF 70 00 00 35 04 06 00 7C 00 00 40 [12:15:06]Write i2c OK [12:15:06]MH_I2C_Read... [12:15:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:06]Read from MH i2c: E2 [12:15:06]MH_I2C_Read... [12:15:06]Read from MH i2c: E2 03 00 [12:15:06]MH_I2C_Read... [12:15:06]Read from MH i2c: E2 03 00 5B 39 00 90 00 08 [12:15:06]RAPDU: 90 00 [12:15:06]wFMCommunicate OK [12:15:06]wFMCommunicate request_size=10 [12:15:06]MH_SAM_APDU [12:15:06]CAPDU: 80 0D 02 02 05 42 57 E7 C0 A1 [12:15:06]Write to MH i2c: E2 0D 00 5C 39 80 0D 02 02 05 00 42 57 E7 C0 A1 00 00 FA [12:15:06]Write i2c OK [12:15:06]MH_I2C_Read... [12:15:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:06]Read from MH i2c: E2 [12:15:06]MH_I2C_Read... [12:15:06]Read from MH i2c: E2 03 00 [12:15:06]MH_I2C_Read... [12:15:06]Read from MH i2c: E2 03 00 5C 39 00 90 00 09 [12:15:06]RAPDU: 90 00 [12:15:06]wFMCommunicate OK [12:15:06]wFMCommunicate request_size=4 [12:15:06]MH_SAM_APDU [12:15:06]CAPDU: 80 0D 03 02 [12:15:06]Write to MH i2c: E2 08 00 5D 39 80 0D 03 02 00 00 00 00 11 [12:15:06]Write i2c OK [12:15:06]MH_I2C_Read... [12:15:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:06]Read from MH i2c: E2 [12:15:06]MH_I2C_Read... [12:15:06]Read from MH i2c: E2 0B 00 [12:15:06]MH_I2C_Read... [12:15:06]Read from MH i2c: E2 0B 00 5D 39 00 FC BC 48 4B 6F FA 1F 7F 90 00 64 [12:15:06]RAPDU: FC BC 48 4B 6F FA 1F 7F 90 00 [12:15:06]wFMCommunicate OK [12:15:06]SAM_PROTO_SignData done [12:15:06]FM_MakeSignedData done [12:15:06]CreateOFDProtocolMessage [12:15:06]wFMCommunicate request_size=4 [12:15:06]MH_SAM_APDU [12:15:06]CAPDU: 80 11 00 00 [12:15:06]Write to MH i2c: E2 08 00 5E 39 80 11 00 00 00 00 00 00 11 [12:15:06]Write i2c OK [12:15:06]MH_I2C_Read... [12:15:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:06]Read from MH i2c: E2 [12:15:06]MH_I2C_Read... [12:15:06]Read from MH i2c: E2 17 00 [12:15:06]MH_I2C_Read... [12:15:07]Read from MH i2c: E2 17 00 5E 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 60 [12:15:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:15:07]wFMCommunicate OK [12:15:07]CreateOFDProtocolMessage done [12:15:07]OFDSenderStorePacket 28911 [12:15:07]StoreOFDPacket docnum=28911 [12:15:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A9 4E 07 01 98 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 4D 77 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EF 70 00 00 35 04 06 00 7C 42 57 E7 C0 A1 FC BC 48 4B 6F FA 1F 7F [12:15:07]CheckFolder [12:15:07]dirname=/storage/ofd_packets [12:15:07]CheckFolder done [12:15:07]ProducePacketName [12:15:07]name=ofd_packets/00028911 [12:15:07]NVStorageSaveData ofd_packets/00028911 [12:15:07]File name is /storage/ofd_packets/00028911 [12:15:07]Write 301 bytes [12:15:07]NVStorageSaveData done [12:15:07]OFDSenderStorePacket done [12:15:07]KKMCreateOFDPacket done [12:15:07]NVStorageSaveData kkm_last_timestamp [12:15:07]File name is /storage/kkm_last_timestamp [12:15:07]Write 4 bytes [12:15:07]NVStorageSaveData done [12:15:07]ExternCall_PrintAddStr [12:15:07]wPrintStart [12:15:07]Write to MH i2c: 01 00 00 5F 39 98 [12:15:07]Write i2c OK [12:15:07]MH_I2C_Read... [12:15:07]Read from MH i2c: 01 [12:15:07]MH_I2C_Read... [12:15:07]Read from MH i2c: 01 07 00 [12:15:07]MH_I2C_Read... [12:15:07]Read from MH i2c: 01 07 00 5F 39 00 00 00 00 00 FF 0F AD [12:15:07]RasterBufferAndPrint [12:15:07]line Счет N : (1)347265 [12:15:07]line ИНН: 02508201610067 [12:15:07]line Контрольно-Кассовый Чек [12:15:07]line ПРОДАЖА [12:15:07]line ТРК (МРК, ГНК) : 32 [12:15:07]line Товар: 2710124130 [12:15:07]line Аи-92-К-5 [12:15:07]line 15.560 * 64.30 [12:15:07]line = 1000.51 [12:15:07]line НДС 12% НСП 1% [12:15:07]line > о реализуемом товаре [12:15:07]line ОКРУГЛЕНИЕ: -0.51 [12:15:07]line ИТОГО: 1000.00 [12:15:07]line Внесено: 1000.00 [12:15:07]line СДАЧА: 0.00 [12:15:07]line НСП 1% : 8.85 [12:15:07]line НДС 12% : 106.25 [12:15:07]line Наличными: 1000.00 [12:15:07]line Безнал.: 0.00 [12:15:07]line Место: АЗС № 108 "Партнер Нефть" [12:15:07]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:15:07]line СНО: Общий режим [12:15:07]line Чек 118 13.04.2024 12:15 [12:15:07]line Смена: 115 ФФД: 1.0 [12:15:07]line ЗНМ: 0300000027 [12:15:07]line РНМ: 0000138879044617 [12:15:07]line Версия ККМ: 001 [12:15:07]line ФМ: 0000000000963154 [12:15:07]line ФД: 28911 [12:15:07]line ФПД: 136624384491681 [12:15:07]line 1/tax-web-control/client/api/v1/ticket?date=20240413T121509&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28911&fm=136624384491681&tin=02508201610067®Number=0000138879044617&sum=100000 [12:15:07]written 0, free lines is 4095 [12:15:07]OFD Sender: Processing packet 28911 [packets to send 8, broken 7] [12:15:07]ProducePacketName [12:15:07]name=ofd_packets/00028911 [12:15:07]OFD Sender: To server: pG, [12:15:07]CommunicateWithHost lk.salyk.kg:30040 [12:15:07]ConnectInit lk.salyk.kg [12:15:07]Connected sock=10 [12:15: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 31 35 34 0F 01 00 00 A9 4E 07 01 98 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 4D 77 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 EF 70 00 00 35 04 06 00 7C 42 57 E7 C0 A1 FC BC 48 4B 6F FA 1F 7F [12:15:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 14 FF 47 00 11 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 31 35 34 10 04 04 00 EF 70 00 00 F4 03 04 00 F4 21 1A 66 B6 04 01 00 00 3E 01 A8 5C A1 40 E6 A7 [12:15:07]CommunicateWithHost err = 0 [12:15:07]CheckOFDResponse [12:15:07]1017 (14) - 77093643461234 [12:15:07]1041 (16) - 0000000000963154 [12:15:07]1040 (4) - 28911 [12:15:07]1012 (4) - 13.04.2024 06:11 [12:15:07]1206 (1) - 0 [12:15:07]OFD Sender: Remove packet 28911 [12:15:07]ProducePacketName [12:15:07]name=ofd_packets/00028911 [12:15:07]NVStorageDeleteData [12:15:07]Write to MH i2c: 01 00 00 89 39 C2 [12:15:07]Write i2c OK [12:15:07]MH_I2C_Read... [12:15:07]Read from MH i2c: 01 [12:15:07]MH_I2C_Read... [12:15:07]Read from MH i2c: 01 07 00 [12:15:07]MH_I2C_Read... [12:15:07]Read from MH i2c: 01 07 00 89 39 00 00 00 00 00 D8 0C AD [12:15:07]RasterBufferAndPrint [12:15:07]line [12:15:07]line [12:15:07]line [12:15:07]line [12:15:07]line [12:15:07]written 0, free lines is 3294 [12:15:07]MH_Cut [12:15:07]Write to MH i2c: D1 01 00 90 39 01 9B [12:15:07]Write i2c OK [12:15:07]MH_I2C_Read... [12:15:07]Read from MH i2c: D1 [12:15:07]MH_I2C_Read... [12:15:07]Read from MH i2c: D1 01 00 [12:15:07]MH_I2C_Read... [12:15:07]Read from MH i2c: D1 01 00 90 39 00 9A [12:15:07]Write to MH i2c: 01 00 00 91 39 CA [12:15:07]Write i2c OK [12:15:07]MH_I2C_Read... [12:15:07]OFD Sender: No OFD packet to send [12:15:08]*** Cut start [12:15:08]*** Partial cut [12:15:08]*** CUTSNS_PIN = 1 [12:15:08]*** CUTSNS_PIN = 0 [12:15:08]*** Brake cut motor [12:15:08]Read from MH i2c: 01 [12:15:08]MH_I2C_Read... [12:15:08]*** Stop cut motor [12:15:08]*** Cut end [12:15:08]Read from MH i2c: 01 07 00 [12:15:08]MH_I2C_Read... [12:15:08]Read from MH i2c: 01 07 00 91 39 00 00 00 00 00 FF 0F DF [12:15:08]process_action close_receipt done [12:15:08]requested_data is exist [12:15:08]produce_requested_data [12:15:08]requested_item fm.sn is exist - process it [12:15:08]wFMCommunicate request_size=4 [12:15:08]MH_SAM_APDU [12:15:08]CAPDU: 80 11 00 00 [12:15:08]Write to MH i2c: E2 08 00 92 39 80 11 00 00 00 00 00 00 45 [12:15:08]Write i2c OK [12:15:08]MH_I2C_Read... [12:15:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:08]Read from MH i2c: E2 [12:15:08]MH_I2C_Read... [12:15:08]Read from MH i2c: E2 17 00 [12:15:08]MH_I2C_Read... [12:15:08]Read from MH i2c: E2 17 00 92 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 94 [12:15:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:15:08]wFMCommunicate OK [12:15:08]requested_item fd.num is exist - process it [12:15:08]SAM_PROTO_GetFieldsCounters [12:15:08]wFMCommunicate request_size=4 [12:15:08]MH_SAM_APDU [12:15:08]CAPDU: 80 13 00 00 [12:15:08]Write to MH i2c: E2 08 00 93 39 80 13 00 00 00 00 00 00 48 [12:15:08]Write i2c OK [12:15:08]MH_I2C_Read... [12:15:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:09]Read from MH i2c: E2 [12:15:09]MH_I2C_Read... [12:15:09]Read from MH i2c: E2 62 00 [12:15:09]MH_I2C_Read... [12:15:09]Read from MH i2c: E2 62 00 93 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EF 70 00 00 0E 04 04 00 73 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 BA [12:15: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 EF 70 00 00 0E 04 04 00 73 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:15:09]wFMCommunicate OK [12:15:09]SAM_PROTO_GetFieldsCounters done [12:15:09]requested_item shift.num is exist - process it [12:15:09]requested_item shift.opened is exist - process it [12:15:09]req_shift_opened [12:15:09]FM_GetShiftState [12:15:09]SAM_PROTO_GetShiftState [12:15:09]wFMCommunicate request_size=4 [12:15:09]MH_SAM_APDU [12:15:09]CAPDU: 80 13 01 00 [12:15:09]Write to MH i2c: E2 08 00 94 39 80 13 01 00 00 00 00 00 4A [12:15:09]Write i2c OK [12:15:09]MH_I2C_Read... [12:15:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:09]Read from MH i2c: E2 [12:15:09]MH_I2C_Read... [12:15:09]Read from MH i2c: E2 0E 00 [12:15:09]MH_I2C_Read... [12:15:09]Read from MH i2c: E2 0E 00 94 39 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 63 [12:15:09]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:15:09]wFMCommunicate OK [12:15:09]SAM_PROTO_GetShiftState done [12:15:09]FM_GetShiftState done [12:15:09]req_shift_opened done [12:15:09]requested_item shift.open_date is exist - process it [12:15:09]req_shift_open_date [12:15:09]req_shift_open_date done [12:15:09]produce_requested_data done [12:15:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28911,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [12:15:09]process_action_free close_receipt [12:15:09]json_value_free [12:15:09]json_value_free done [12:15:09]process_json_proto returns [12:15:09]Send response to host [12:15:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28911,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [12:15:09]free response buf [12:15:09]execute_script done [12:15:09]execute_script returns [12:15:09]free content buf [12:15:09]Sock 7.Close socket [12:15:09]Sock 7.Thread stoped [12:15:12]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:47]OFD Sender: No OFD packet to send [12:15:52]OFD Sender: No OFD packet to send [12:15:57]OFD Sender: No OFD packet to send [12:16:02]OFD Sender: No OFD packet to send [12:16:07]OFD Sender: No OFD packet to send [12:16:12]OFD Sender: No OFD packet to send [12:16:17]OFD Sender: No OFD packet to send [12:16:22]OFD Sender: No OFD packet to send [12:16:27]OFD Sender: No OFD packet to send [12:16:32]OFD Sender: No OFD packet to send [12:16:37]OFD Sender: No OFD packet to send [12:16:42]OFD Sender: No OFD packet to send [12:16:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:12]OFD Sender: No OFD packet to send [12:17:17]OFD Sender: No OFD packet to send [12:17:22]OFD Sender: No OFD packet to send [12:17:27]OFD Sender: No OFD packet to send [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:28]OFD Sender: No OFD packet to send [12:18:33]OFD Sender: No OFD packet to send [12:18:38]OFD Sender: No OFD packet to send [12:18:43]OFD Sender: No OFD packet to send [12:18:48]OFD Sender: No OFD packet to send [12:18:53]OFD Sender: No OFD packet to send [12:18:58]OFD Sender: No OFD packet to send [12:19:03]OFD Sender: No OFD packet to send [12:19:08]OFD Sender: No OFD packet to send [12:19:13]OFD Sender: No OFD packet to send [12:19:18]OFD Sender: No OFD packet to send [12:19:23]OFD Sender: No OFD packet to send [12:19:28]OFD Sender: No OFD packet to send [12:19:33]OFD Sender: No OFD packet to send [12:19:38]OFD Sender: No OFD packet to send [12:19:43]OFD Sender: No OFD packet to send [12:19:48]OFD Sender: No OFD packet to send [12:19:49]accept exits with 9 [12:19:49]New connection [12:19:49]New thread 3066785124 created [12:19:49]Thread 3066928484 joined [12:19:49]Waiting for new connection... [12:19:49] Sock 9.Parse request [12:19:49]Sock 9.Check first char [12:19:49]Sock 9.First char is OK [12:19:49]request: POST /json_proto HTTP/1.0 [12:19:49]Method: POST [12:19:49]URL: /json_proto [12:19:49]Method is POST - this is cgi request [12:19:49]url: /json_proto [12:19:49]query_string will be loaded in cgi processing [12:19:49]execute_cgi json_proto POST (null) [12:19:49]execute_cgi path=json_proto method=POST [12:19:49]POST find Content-Length [12:19:49]Host: 172.17.33.3:8080 [12:19:49]Content-Length: 674 [12:19:49]Content-Type: application/json [12:19:49] [12:19:49]POST finish read [12:19:49]Found Content-Length = 674 [12:19:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 6.910, "sum" : 500.28, "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:19:49]execute_script... [12:19: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)347266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 6.910, "sum" : 500.28, "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:19:49]POST & json_proto [12:19:49]process_json_proto [12:19:49]json parsed OK: [12:19:49]protocol is kg_v1.0 [12:19:49]action value=close_receipt [12:19:49]process_action close_receipt [12:19:49]cmd_close_receipt [12:19:49]MH_GetDate [12:19:49]Write to MH i2c: F0 00 00 95 39 BD [12:19:49]Write i2c OK [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: F0 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: F0 09 00 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: F0 09 00 95 39 00 6A 78 1A 66 23 5B 8F 65 9A [12:19:49]GetLastDocTimeStamp 1713010509 [12:19:49]current date 1713010794 [12:19:49]FM_GetShiftState [12:19:49]SAM_PROTO_GetShiftState [12:19:49]wFMCommunicate request_size=4 [12:19:49]MH_SAM_APDU [12:19:49]CAPDU: 80 13 01 00 [12:19:49]Write to MH i2c: E2 08 00 96 39 80 13 01 00 00 00 00 00 4C [12:19:49]Write i2c OK [12:19:49]MH_I2C_Read... [12:19:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:49]Read from MH i2c: E2 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 0E 00 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 0E 00 96 39 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 65 [12:19:49]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:19:49]wFMCommunicate OK [12:19:49]SAM_PROTO_GetShiftState done [12:19:49]FM_GetShiftState done [12:19:49]opened in 1712967615 [12:19:49]opened+sec_in_day 1713054015 [12:19:49]quantity*price = 50028 [12:19:49]sum+1 = 50029 [12:19:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 119 13.04.2024 12:19 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28912 ФПД: 38023721085753 1/tax-web-control/client/api/v1/ticket?date=20240413T121954&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28912&fm=38023721085753&tin=02508201610067®Number=0000138879044617&sum=50000 [12:19:50]StoreToDocumentArchive [12:19:50]shift 115 fd 28912 [12:19:50]save to /storage/0115/doc_00028912 [12:19:50]save last doc name /storage/0115/doc_00028912 to /storage/kkm_last_doc_name [12:19:50]save OK [12:19:50]Clear old archive folders... [12:19:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:19:50]tlvbuf is 01284500 [12:19:50]SAM_PROTO_ClearQueue [12:19:50]wFMCommunicate request_size=4 [12:19:50]MH_SAM_APDU [12:19:50]CAPDU: 80 09 00 00 [12:19:50]Write to MH i2c: E2 08 00 A3 39 80 09 00 00 00 00 00 00 4E [12:19:50]Write i2c OK [12:19:50]MH_I2C_Read... [12:19:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:50]Read from MH i2c: E2 [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: E2 03 00 [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: E2 03 00 A3 39 00 90 00 50 [12:19:50]RAPDU: 90 00 [12:19:50]wFMCommunicate OK [12:19:50]SAM_PROTO_ClearQueue done [12:19:50]KKMCreateOFDPacket [12:19:50]OFDProtocolAddRootSTLVToBuf [12:19:50]FM_MakeSignedData [12:19:50]FM_MakeSignedData [12:19:50]SAM_PROTO_SignData [12:19:50]wFMCommunicate request_size=4 [12:19:50]MH_SAM_APDU [12:19:50]CAPDU: 80 0D 01 02 [12:19:50]Write to MH i2c: E2 08 00 A4 39 80 0D 01 02 00 00 00 00 56 [12:19:50]Write i2c OK [12:19:50]MH_I2C_Read... [12:19:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:50]Read from MH i2c: E2 [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: E2 03 00 [12:19:50]MH_I2C_Read... [12:19:50]Read from MH i2c: E2 03 00 A4 39 00 90 00 51 [12:19:50]RAPDU: 90 00 [12:19:50]wFMCommunicate OK [12:19:50]wFMCommunicate request_size=255 [12:19:50]MH_SAM_APDU [12:19: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 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 6A 78 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F0 70 00 00 35 04 06 00 22 95 16 63 [12:19:50]Write to MH i2c: E2 02 01 A5 39 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 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 6A 78 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F0 70 00 00 35 04 06 00 22 95 16 63 00 00 0E [12:19:50]Write i2c OK [12:19:50]MH_I2C_Read... [12:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:51]Read from MH i2c: E2 [12:19:51]MH_I2C_Read... [12:19:51]Read from MH i2c: E2 03 00 [12:19:51]MH_I2C_Read... [12:19:51]Read from MH i2c: E2 03 00 A5 39 00 90 00 52 [12:19:51]RAPDU: 90 00 [12:19:51]wFMCommunicate OK [12:19:51]wFMCommunicate request_size=7 [12:19:51]MH_SAM_APDU [12:19:51]CAPDU: 80 0D 02 02 02 6B 39 [12:19:51]Write to MH i2c: E2 0A 00 A6 39 80 0D 02 02 02 00 6B 39 00 00 01 [12:19:51]Write i2c OK [12:19:51]MH_I2C_Read... [12:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:51]Read from MH i2c: E2 [12:19:51]MH_I2C_Read... [12:19:51]Read from MH i2c: E2 03 00 [12:19:51]MH_I2C_Read... [12:19:51]Read from MH i2c: E2 03 00 A6 39 00 90 00 53 [12:19:51]RAPDU: 90 00 [12:19:51]wFMCommunicate OK [12:19:51]wFMCommunicate request_size=4 [12:19:51]MH_SAM_APDU [12:19:51]CAPDU: 80 0D 03 02 [12:19:51]Write to MH i2c: E2 08 00 A7 39 80 0D 03 02 00 00 00 00 5B [12:19:51]Write i2c OK [12:19:51]MH_I2C_Read... [12:19:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:51]Read from MH i2c: E2 [12:19:51]MH_I2C_Read... [12:19:51]Read from MH i2c: E2 0B 00 [12:19:51]MH_I2C_Read... [12:19:51]Read from MH i2c: E2 0B 00 A7 39 00 90 A4 1A 61 80 9F A5 5D 90 00 2C [12:19:51]RAPDU: 90 A4 1A 61 80 9F A5 5D 90 00 [12:19:51]wFMCommunicate OK [12:19:51]SAM_PROTO_SignData done [12:19:51]FM_MakeSignedData done [12:19:51]CreateOFDProtocolMessage [12:19:51]wFMCommunicate request_size=4 [12:19:51]MH_SAM_APDU [12:19:51]CAPDU: 80 11 00 00 [12:19:51]Write to MH i2c: E2 08 00 A8 39 80 11 00 00 00 00 00 00 5B [12:19:51]Write i2c OK [12:19:51]MH_I2C_Read... [12:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:51]Read from MH i2c: E2 [12:19:51]MH_I2C_Read... [12:19:51]Read from MH i2c: E2 17 00 [12:19:51]MH_I2C_Read... [12:19:51]Read from MH i2c: E2 17 00 A8 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AA [12:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:19:51]wFMCommunicate OK [12:19:51]CreateOFDProtocolMessage done [12:19:51]OFDSenderStorePacket 28912 [12:19:51]StoreOFDPacket docnum=28912 [12:19:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 3C B2 04 01 43 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 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 6A 78 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F0 70 00 00 35 04 06 00 22 95 16 63 6B 39 90 A4 1A 61 80 9F A5 5D [12:19:51]CheckFolder [12:19:51]dirname=/storage/ofd_packets [12:19:51]CheckFolder done [12:19:51]ProducePacketName [12:19:51]name=ofd_packets/00028912 [12:19:51]NVStorageSaveData ofd_packets/00028912 [12:19:51]File name is /storage/ofd_packets/00028912 [12:19:51]Write 298 bytes [12:19:51]NVStorageSaveData done [12:19:51]OFDSenderStorePacket done [12:19:51]KKMCreateOFDPacket done [12:19:51]NVStorageSaveData kkm_last_timestamp [12:19:51]File name is /storage/kkm_last_timestamp [12:19:51]Write 4 bytes [12:19:51]NVStorageSaveData done [12:19:51]ExternCall_PrintAddStr [12:19:51]wPrintStart [12:19:51]Write to MH i2c: 01 00 00 A9 39 E2 [12:19:51]Write i2c OK [12:19:51]MH_I2C_Read... [12:19:51]Read from MH i2c: 01 [12:19:51]MH_I2C_Read... [12:19:51]Read from MH i2c: 01 07 00 [12:19:51]MH_I2C_Read... [12:19:51]Read from MH i2c: 01 07 00 A9 39 00 00 00 00 00 FF 0F F7 [12:19:51]RasterBufferAndPrint [12:19:51]line Счет N : (1)347266 [12:19:51]line ИНН: 02508201610067 [12:19:51]line Контрольно-Кассовый Чек [12:19:51]line ПРОДАЖА [12:19:51]line ТРК (МРК, ГНК) : 11 [12:19:51]line Товар: 2710194210 [12:19:51]line ДТ-К-5 [12:19:51]line 6.910 * 72.40 [12:19:51]line = 500.28 [12:19:51]line НДС 12% НСП 1% [12:19:51]line > о реализуемом товаре [12:19:51]line ОКРУГЛЕНИЕ: -0.28 [12:19:51]line ИТОГО: 500.00 [12:19:51]line Внесено: 500.00 [12:19:51]line СДАЧА: 0.00 [12:19:51]line НСП 1% : 4.43 [12:19:51]line НДС 12% : 53.13 [12:19:51]line Наличными: 500.00 [12:19:51]line Безнал.: 0.00 [12:19:51]line Место: АЗС № 108 "Партнер Нефть" [12:19:51]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:19:51]line СНО: Общий режим [12:19:51]line Чек 119 13.04.2024 12:19 [12:19:51]line Смена: 115 ФФД: 1.0 [12:19:51]line ЗНМ: 0300000027 [12:19:51]line РНМ: 0000138879044617 [12:19:51]line Версия ККМ: 001 [12:19:51]line ФМ: 0000000000963154 [12:19:51]line ФД: 28912 [12:19:51]line ФПД: 38023721085753 [12:19:51]line 1/tax-web-control/client/api/v1/ticket?date=20240413T121954&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28912&fm=38023721085753&tin=02508201610067®Number=0000138879044617&sum=50000 [12:19:51]OFD Sender: Processing packet 28912 [packets to send 8, broken 7] [12:19:51]ProducePacketName [12:19:51]name=ofd_packets/00028912 [12:19:51]OFD Sender: To server: pG, [12:19:51]CommunicateWithHost lk.salyk.kg:30040 [12:19:51]ConnectInit lk.salyk.kg [12:19:51]written 0, free lines is 4095 [12:19:51]Connected sock=10 [12:19: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 31 35 34 0C 01 00 00 3C B2 04 01 43 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 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 6A 78 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F0 70 00 00 35 04 06 00 22 95 16 63 6B 39 90 A4 1A 61 80 9F A5 5D [12:19:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 16 6B 47 00 DB 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 31 35 34 10 04 04 00 F0 70 00 00 F4 03 04 00 11 23 1A 66 B6 04 01 00 00 BE D1 5E 23 AE 04 84 25 [12:19:51]CommunicateWithHost err = 0 [12:19:51]CheckOFDResponse [12:19:51]1017 (14) - 77093643461234 [12:19:51]1041 (16) - 0000000000963154 [12:19:51]1040 (4) - 28912 [12:19:51]1012 (4) - 13.04.2024 06:15 [12:19:51]1206 (1) - 0 [12:19:51]OFD Sender: Remove packet 28912 [12:19:51]ProducePacketName [12:19:51]name=ofd_packets/00028912 [12:19:51]NVStorageDeleteData [12:19:52]Write to MH i2c: 01 00 00 D3 39 0C [12:19:52]Write i2c OK [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: 01 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: 01 07 00 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: 01 07 00 D3 39 00 00 00 00 00 CA 0C E9 [12:19:52]RasterBufferAndPrint [12:19:52]line [12:19:52]line [12:19:52]line [12:19:52]line [12:19:52]line [12:19:52]written 0, free lines is 3280 [12:19:52]MH_Cut [12:19:52]Write to MH i2c: D1 01 00 DA 39 01 E5 [12:19:52]Write i2c OK [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: D1 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: D1 01 00 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: D1 01 00 DA 39 00 E4 [12:19:52]Write to MH i2c: 01 00 00 DB 39 14 [12:19:52]Write i2c OK [12:19:52]MH_I2C_Read... [12:19:52]OFD Sender: No OFD packet to send [12:19:52]*** Cut start [12:19:52]*** Partial cut [12:19:52]*** CUTSNS_PIN = 1 [12:19:52]*** CUTSNS_PIN = 0 [12:19:53]*** Brake cut motor [12:19:53]Read from MH i2c: 01 [12:19:53]MH_I2C_Read... [12:19:53]*** Stop cut motor [12:19:53]*** Cut end [12:19:53]Read from MH i2c: 01 07 00 [12:19:53]MH_I2C_Read... [12:19:53]Read from MH i2c: 01 07 00 DB 39 00 00 00 00 00 FF 0F 29 [12:19:53]process_action close_receipt done [12:19:53]requested_data is exist [12:19:53]produce_requested_data [12:19:53]requested_item fm.sn is exist - process it [12:19:53]wFMCommunicate request_size=4 [12:19:53]MH_SAM_APDU [12:19:53]CAPDU: 80 11 00 00 [12:19:53]Write to MH i2c: E2 08 00 DC 39 80 11 00 00 00 00 00 00 8F [12:19:53]Write i2c OK [12:19:53]MH_I2C_Read... [12:19:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:53]Read from MH i2c: E2 [12:19:53]MH_I2C_Read... [12:19:53]Read from MH i2c: E2 17 00 [12:19:53]MH_I2C_Read... [12:19:53]Read from MH i2c: E2 17 00 DC 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DE [12:19:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:19:53]wFMCommunicate OK [12:19:53]requested_item fd.num is exist - process it [12:19:53]SAM_PROTO_GetFieldsCounters [12:19:53]wFMCommunicate request_size=4 [12:19:53]MH_SAM_APDU [12:19:53]CAPDU: 80 13 00 00 [12:19:53]Write to MH i2c: E2 08 00 DD 39 80 13 00 00 00 00 00 00 92 [12:19:53]Write i2c OK [12:19:53]MH_I2C_Read... [12:19:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:53]Read from MH i2c: E2 [12:19:53]MH_I2C_Read... [12:19:53]Read from MH i2c: E2 62 00 [12:19:53]MH_I2C_Read... [12:19:53]Read from MH i2c: E2 62 00 DD 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F0 70 00 00 0E 04 04 00 73 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 08 [12:19: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F0 70 00 00 0E 04 04 00 73 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:19:53]wFMCommunicate OK [12:19:53]SAM_PROTO_GetFieldsCounters done [12:19:53]requested_item shift.num is exist - process it [12:19:53]requested_item shift.opened is exist - process it [12:19:53]req_shift_opened [12:19:53]FM_GetShiftState [12:19:53]SAM_PROTO_GetShiftState [12:19:53]wFMCommunicate request_size=4 [12:19:53]MH_SAM_APDU [12:19:53]CAPDU: 80 13 01 00 [12:19:53]Write to MH i2c: E2 08 00 DE 39 80 13 01 00 00 00 00 00 94 [12:19:53]Write i2c OK [12:19:53]MH_I2C_Read... [12:19:53]Read from MH i2c: E2 [12:19:53]MH_I2C_Read... [12:19:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:53]Read from MH i2c: E2 0E 00 [12:19:53]MH_I2C_Read... [12:19:53]Read from MH i2c: E2 0E 00 DE 39 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 AD [12:19:53]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:19:53]wFMCommunicate OK [12:19:53]SAM_PROTO_GetShiftState done [12:19:53]FM_GetShiftState done [12:19:53]req_shift_opened done [12:19:53]requested_item shift.open_date is exist - process it [12:19:53]req_shift_open_date [12:19:53]req_shift_open_date done [12:19:53]produce_requested_data done [12:19:53]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28912,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [12:19:53]process_action_free close_receipt [12:19:53]json_value_free [12:19:53]json_value_free done [12:19:53]process_json_proto returns [12:19:53]Send response to host [12:19:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28912,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [12:19:53]free response buf [12:19:53]execute_script done [12:19:53]execute_script returns [12:19:53]free content buf [12:19:53]Sock 9.Close socket [12:19:53]Sock 9.Thread stoped [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:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [12:20:27]OFD Sender: No OFD packet to send [12:20:32]OFD Sender: No OFD packet to send [12:20:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]OFD Sender: No OFD packet to send [12:22:57]OFD Sender: No OFD packet to send [12:23:02]OFD Sender: No OFD packet to send [12:23:07]OFD Sender: No OFD packet to send [12:23:12]OFD Sender: No OFD packet to send [12:23:17]OFD Sender: No OFD packet to send [12:23:22]OFD Sender: No OFD packet to send [12:23:27]OFD Sender: No OFD packet to send [12:23:32]OFD Sender: No OFD packet to send [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:50]accept exits with 7 [12:23:50]New connection [12:23:50]New thread 3066928484 created [12:23:50]Thread 3066785124 joined [12:23:50]Waiting for new connection... [12:23:50] Sock 7.Parse request [12:23:50]Sock 7.Check first char [12:23:50]Sock 7.First char is OK [12:23:50]request: POST /json_proto HTTP/1.0 [12:23:50]Method: POST [12:23:50]URL: /json_proto [12:23:50]Method is POST - this is cgi request [12:23:50]url: /json_proto [12:23:50]query_string will be loaded in cgi processing [12:23:50]execute_cgi json_proto POST (null) [12:23:50]execute_cgi path=json_proto method=POST [12:23:50]POST find Content-Length [12:23:50]Host: 172.17.33.3:8080 [12:23:50]Content-Length: 671 [12:23:50]Content-Type: application/json [12:23:50] [12:23:50]POST finish read [12:23:50]Found Content-Length = 671 [12:23:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 10.720, "sum" : 700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:50]execute_script... [12:23: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)347268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 10.720, "sum" : 700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:50]POST & json_proto [12:23:50]process_json_proto [12:23:50]json parsed OK: [12:23:50]protocol is kg_v1.0 [12:23:50]action value=close_receipt [12:23:50]process_action close_receipt [12:23:50]cmd_close_receipt [12:23:50]MH_GetDate [12:23:50]Write to MH i2c: F0 00 00 DF 39 07 [12:23:50]Write i2c OK [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: F0 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: F0 09 00 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: F0 09 00 DF 39 00 5B 79 1A 66 23 5B 8F 65 D6 [12:23:50]GetLastDocTimeStamp 1713010794 [12:23:50]current date 1713011035 [12:23:50]FM_GetShiftState [12:23:50]SAM_PROTO_GetShiftState [12:23:50]wFMCommunicate request_size=4 [12:23:50]MH_SAM_APDU [12:23:50]CAPDU: 80 13 01 00 [12:23:50]Write to MH i2c: E2 08 00 E0 39 80 13 01 00 00 00 00 00 96 [12:23:50]Write i2c OK [12:23:50]MH_I2C_Read... [12:23:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:50]Read from MH i2c: E2 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: E2 0E 00 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: E2 0E 00 E0 39 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 AF [12:23:50]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:23:50]wFMCommunicate OK [12:23:50]SAM_PROTO_GetShiftState done [12:23:50]FM_GetShiftState done [12:23:50]opened in 1712967615 [12:23:50]opened+sec_in_day 1713054015 [12:23:50]quantity*price = 70001 [12:23:50]sum+1 = 70003 [12:23:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 120 13.04.2024 12:23 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28913 ФПД: 27176220780231 1/tax-web-control/client/api/v1/ticket?date=20240413T122355&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28913&fm=27176220780231&tin=02508201610067®Number=0000138879044617&sum=70000 [12:23:51]StoreToDocumentArchive [12:23:51]shift 115 fd 28913 [12:23:51]save to /storage/0115/doc_00028913 [12:23:51]save last doc name /storage/0115/doc_00028913 to /storage/kkm_last_doc_name [12:23:51]save OK [12:23:51]Clear old archive folders... [12:23:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:23:51]tlvbuf is 011CB140 [12:23:51]SAM_PROTO_ClearQueue [12:23:51]wFMCommunicate request_size=4 [12:23:51]MH_SAM_APDU [12:23:51]CAPDU: 80 09 00 00 [12:23:51]Write to MH i2c: E2 08 00 ED 39 80 09 00 00 00 00 00 00 98 [12:23:51]Write i2c OK [12:23:51]MH_I2C_Read... [12:23:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:51]Read from MH i2c: E2 [12:23:51]MH_I2C_Read... [12:23:51]Read from MH i2c: E2 03 00 [12:23:51]MH_I2C_Read... [12:23:51]Read from MH i2c: E2 03 00 ED 39 00 90 00 9A [12:23:51]RAPDU: 90 00 [12:23:51]wFMCommunicate OK [12:23:51]SAM_PROTO_ClearQueue done [12:23:51]KKMCreateOFDPacket [12:23:51]OFDProtocolAddRootSTLVToBuf [12:23:51]FM_MakeSignedData [12:23:51]FM_MakeSignedData [12:23:51]SAM_PROTO_SignData [12:23:51]wFMCommunicate request_size=4 [12:23:51]MH_SAM_APDU [12:23:51]CAPDU: 80 0D 01 02 [12:23:51]Write to MH i2c: E2 08 00 EE 39 80 0D 01 02 00 00 00 00 A0 [12:23:51]Write i2c OK [12:23:51]MH_I2C_Read... [12:23:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:51]Read from MH i2c: E2 [12:23:51]MH_I2C_Read... [12:23:51]Read from MH i2c: E2 03 00 [12:23:51]MH_I2C_Read... [12:23:51]Read from MH i2c: E2 03 00 EE 39 00 90 00 9B [12:23:51]RAPDU: 90 00 [12:23:51]wFMCommunicate OK [12:23:51]wFMCommunicate request_size=255 [12:23:51]MH_SAM_APDU [12:23:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 5B 79 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F1 70 00 00 35 04 06 00 [12:23:51]Write to MH i2c: E2 02 01 EF 39 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 5B 79 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F1 70 00 00 35 04 06 00 00 00 D1 [12:23:51]Write i2c OK [12:23:51]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 [12:23:52]MH_I2C_Read... [12:23:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:52]Read from MH i2c: E2 03 00 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 03 00 EF 39 00 90 00 9C [12:23:52]RAPDU: 90 00 [12:23:52]wFMCommunicate OK [12:23:52]wFMCommunicate request_size=11 [12:23:52]MH_SAM_APDU [12:23:52]CAPDU: 80 0D 02 02 06 18 B7 74 FC 66 C7 [12:23:52]Write to MH i2c: E2 0E 00 F0 39 80 0D 02 02 06 00 18 B7 74 FC 66 C7 00 00 1B [12:23:52]Write i2c OK [12:23:52]MH_I2C_Read... [12:23:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:52]Read from MH i2c: E2 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 03 00 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 03 00 F0 39 00 90 00 9D [12:23:52]RAPDU: 90 00 [12:23:52]wFMCommunicate OK [12:23:52]wFMCommunicate request_size=4 [12:23:52]MH_SAM_APDU [12:23:52]CAPDU: 80 0D 03 02 [12:23:52]Write to MH i2c: E2 08 00 F1 39 80 0D 03 02 00 00 00 00 A5 [12:23:52]Write i2c OK [12:23:52]MH_I2C_Read... [12:23:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:52]Read from MH i2c: E2 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 0B 00 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 0B 00 F1 39 00 1E 87 7F 6D 29 43 69 33 90 00 3F [12:23:52]RAPDU: 1E 87 7F 6D 29 43 69 33 90 00 [12:23:52]wFMCommunicate OK [12:23:52]SAM_PROTO_SignData done [12:23:52]FM_MakeSignedData done [12:23:52]CreateOFDProtocolMessage [12:23:52]wFMCommunicate request_size=4 [12:23:52]MH_SAM_APDU [12:23:52]CAPDU: 80 11 00 00 [12:23:52]Write to MH i2c: E2 08 00 F2 39 80 11 00 00 00 00 00 00 A5 [12:23:52]Write i2c OK [12:23:52]MH_I2C_Read... [12:23:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:52]Read from MH i2c: E2 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 17 00 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 17 00 F2 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F4 [12:23:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:23:52]wFMCommunicate OK [12:23:52]CreateOFDProtocolMessage done [12:23:52]OFDSenderStorePacket 28913 [12:23:52]StoreOFDPacket docnum=28913 [12:23:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 8F 82 08 01 4D CE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 5B 79 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F1 70 00 00 35 04 06 00 18 B7 74 FC 66 C7 1E 87 7F 6D 29 43 69 33 [12:23:52]CheckFolder [12:23:52]dirname=/storage/ofd_packets [12:23:52]CheckFolder done [12:23:52]ProducePacketName [12:23:52]name=ofd_packets/00028913 [12:23:52]NVStorageSaveData ofd_packets/00028913 [12:23:52]File name is /storage/ofd_packets/00028913 [12:23:52]Write 302 bytes [12:23:52]NVStorageSaveData done [12:23:52]OFDSenderStorePacket done [12:23:52]KKMCreateOFDPacket done [12:23:52]NVStorageSaveData kkm_last_timestamp [12:23:52]File name is /storage/kkm_last_timestamp [12:23:52]Write 4 bytes [12:23:52]NVStorageSaveData done [12:23:52]ExternCall_PrintAddStr [12:23:52]wPrintStart [12:23:52]Write to MH i2c: 01 00 00 F3 39 2C [12:23:52]Write i2c OK [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: 01 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: 01 07 00 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: 01 07 00 F3 39 00 00 00 00 00 FF 0F 41 [12:23:52]RasterBufferAndPrint [12:23:52]line Счет N : (1)347268 [12:23:52]line ИНН: 02508201610067 [12:23:52]line Контрольно-Кассовый Чек [12:23:52]line ПРОДАЖА [12:23:52]line ТРК (МРК, ГНК) : 31 [12:23:52]line Товар: 2710124130 [12:23:52]line SUPER-92-К-5 [12:23:52]line 10.720 * 65.30 [12:23:52]line = 700.02 [12:23:52]line НДС 12% НСП 1% [12:23:52]line > о реализуемом товаре [12:23:52]line ОКРУГЛЕНИЕ: -0.02 [12:23:52]line ИТОГО: 700.00 [12:23:52]line Внесено: 700.00 [12:23:52]line СДАЧА: 0.00 [12:23:52]line НСП 1% : 6.19 [12:23:52]line НДС 12% : 74.34 [12:23:52]line Наличными: 700.00 [12:23:52]line Безнал.: 0.00 [12:23:52]line Место: АЗС № 108 "Партнер Нефть" [12:23:52]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:23:52]line СНО: Общий режим [12:23:52]line Чек 120 13.04.2024 12:23 [12:23:52]line Смена: 115 ФФД: 1.0 [12:23:52]line ЗНМ: 0300000027 [12:23:52]line РНМ: 0000138879044617 [12:23:52]line Версия ККМ: 001 [12:23:52]line ФМ: 0000000000963154 [12:23:52]line ФД: 28913 [12:23:52]line ФПД: 27176220780231 [12:23:52]line 1/tax-web-control/client/api/v1/ticket?date=20240413T122355&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28913&fm=27176220780231&tin=02508201610067®Number=0000138879044617&sum=70000 [12:23:52]OFD Sender: Processing packet 28913 [packets to send 8, broken 7] [12:23:52]ProducePacketName [12:23:52]name=ofd_packets/00028913 [12:23:52]OFD Sender: To server: pG, [12:23:52]CommunicateWithHost lk.salyk.kg:30040 [12:23:52]ConnectInit lk.salyk.kg [12:23:52]written 0, free lines is 4095 [12:23:52]Connected sock=10 [12:23: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 31 35 34 10 01 00 00 8F 82 08 01 4D CE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 5B 79 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F1 70 00 00 35 04 06 00 18 B7 74 FC 66 C7 1E 87 7F 6D 29 43 69 33 [12:23:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 12 C6 47 00 11 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 31 35 34 10 04 04 00 F1 70 00 00 F4 03 04 00 02 24 1A 66 B6 04 01 00 00 17 FF 93 65 67 D0 70 ED [12:23:52]CommunicateWithHost err = 0 [12:23:52]CheckOFDResponse [12:23:52]1017 (14) - 77093643461234 [12:23:52]1041 (16) - 0000000000963154 [12:23:52]1040 (4) - 28913 [12:23:52]1012 (4) - 13.04.2024 06:19 [12:23:52]1206 (1) - 0 [12:23:52]OFD Sender: Remove packet 28913 [12:23:52]ProducePacketName [12:23:52]name=ofd_packets/00028913 [12:23:52]NVStorageDeleteData [12:23:53]Write to MH i2c: 01 00 00 1D 3A 57 [12:23:53]Write i2c OK [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: 01 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: 01 07 00 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: 01 07 00 1D 3A 00 00 00 00 00 C8 0C 32 [12:23:53]RasterBufferAndPrint [12:23:53]line [12:23:53]line [12:23:53]line [12:23:53]line [12:23:53]line [12:23:53]written 0, free lines is 3276 [12:23:53]MH_Cut [12:23:53]Write to MH i2c: D1 01 00 24 3A 01 30 [12:23:53]Write i2c OK [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: D1 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: D1 01 00 [12:23:53]MH_I2C_Read... [12:23:53]Read from MH i2c: D1 01 00 24 3A 00 2F [12:23:53]Write to MH i2c: 01 00 00 25 3A 5F [12:23:53]Write i2c OK [12:23:53]MH_I2C_Read... [12:23:53]OFD Sender: No OFD packet to send [12:23:53]*** Cut start [12:23:53]*** Partial cut [12:23:53]*** CUTSNS_PIN = 1 [12:23:53]*** CUTSNS_PIN = 0 [12:23:54]*** Brake cut motor [12:23:54]Read from MH i2c: 01 [12:23:54]MH_I2C_Read... [12:23:54]*** Stop cut motor [12:23:54]*** Cut end [12:23:54]Read from MH i2c: 01 07 00 [12:23:54]MH_I2C_Read... [12:23:54]Read from MH i2c: 01 07 00 25 3A 00 00 00 00 00 FF 0F 74 [12:23:54]process_action close_receipt done [12:23:54]requested_data is exist [12:23:54]produce_requested_data [12:23:54]requested_item fm.sn is exist - process it [12:23:54]wFMCommunicate request_size=4 [12:23:54]MH_SAM_APDU [12:23:54]CAPDU: 80 11 00 00 [12:23:54]Write to MH i2c: E2 08 00 26 3A 80 11 00 00 00 00 00 00 DA [12:23:54]Write i2c OK [12:23:54]MH_I2C_Read... [12:23:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:54]Read from MH i2c: E2 [12:23:54]MH_I2C_Read... [12:23:54]Read from MH i2c: E2 17 00 [12:23:54]MH_I2C_Read... [12:23:54]Read from MH i2c: E2 17 00 26 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 29 [12:23:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:23:54]wFMCommunicate OK [12:23:54]requested_item fd.num is exist - process it [12:23:54]SAM_PROTO_GetFieldsCounters [12:23:54]wFMCommunicate request_size=4 [12:23:54]MH_SAM_APDU [12:23:54]CAPDU: 80 13 00 00 [12:23:54]Write to MH i2c: E2 08 00 27 3A 80 13 00 00 00 00 00 00 DD [12:23:54]Write i2c OK [12:23:54]MH_I2C_Read... [12:23:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:54]Read from MH i2c: E2 [12:23:54]MH_I2C_Read... [12:23:54]Read from MH i2c: E2 62 00 [12:23:54]MH_I2C_Read... [12:23:54]Read from MH i2c: E2 62 00 27 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F1 70 00 00 0E 04 04 00 73 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 57 [12:23: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F1 70 00 00 0E 04 04 00 73 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:23:54]wFMCommunicate OK [12:23:54]SAM_PROTO_GetFieldsCounters done [12:23:54]requested_item shift.num is exist - process it [12:23:54]requested_item shift.opened is exist - process it [12:23:54]req_shift_opened [12:23:54]FM_GetShiftState [12:23:54]SAM_PROTO_GetShiftState [12:23:54]wFMCommunicate request_size=4 [12:23:54]MH_SAM_APDU [12:23:54]CAPDU: 80 13 01 00 [12:23:54]Write to MH i2c: E2 08 00 28 3A 80 13 01 00 00 00 00 00 DF [12:23:54]Write i2c OK [12:23:54]MH_I2C_Read... [12:23:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:54]Read from MH i2c: E2 [12:23:54]MH_I2C_Read... [12:23:54]Read from MH i2c: E2 0E 00 [12:23:54]MH_I2C_Read... [12:23:54]Read from MH i2c: E2 0E 00 28 3A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F8 [12:23:54]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:23:54]wFMCommunicate OK [12:23:54]SAM_PROTO_GetShiftState done [12:23:54]FM_GetShiftState done [12:23:54]req_shift_opened done [12:23:54]requested_item shift.open_date is exist - process it [12:23:54]req_shift_open_date [12:23:54]req_shift_open_date done [12:23:54]produce_requested_data done [12:23:54]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28913,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [12:23:54]process_action_free close_receipt [12:23:54]json_value_free [12:23:54]json_value_free done [12:23:54]process_json_proto returns [12:23:54]Send response to host [12:23:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28913,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [12:23:54]free response buf [12:23:54]execute_script done [12:23:54]execute_script returns [12:23:54]free content buf [12:23:54]Sock 7.Close socket [12:23:54]Sock 7.Thread stoped [12:23:58]OFD Sender: No OFD packet to send [12:24:03]OFD Sender: No OFD packet to send [12:24:08]OFD Sender: No OFD packet to send [12:24:13]OFD Sender: No OFD packet to send [12:24:15]accept exits with 9 [12:24:15]New connection [12:24:15]New thread 3066785124 created [12:24:15]Thread 3066928484 joined [12:24:15]Waiting for new connection... [12:24:15] Sock 9.Parse request [12:24:15]Sock 9.Check first char [12:24:15]Sock 9.First char is OK [12:24:15]request: POST /json_proto HTTP/1.0 [12:24:15]Method: POST [12:24:15]URL: /json_proto [12:24:15]Method is POST - this is cgi request [12:24:15]url: /json_proto [12:24:15]query_string will be loaded in cgi processing [12:24:15]execute_cgi json_proto POST (null) [12:24:15]execute_cgi path=json_proto method=POST [12:24:15]POST find Content-Length [12:24:15]Host: 172.17.33.3:8080 [12:24:15]Content-Length: 682 [12:24:15]Content-Type: application/json [12:24:15] [12:24:15]POST finish read [12:24:15]Found Content-Length = 682 [12:24:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 26.160, "sum" : 860.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 860.00, "payments": [ { "type": 0, "sum" : 860.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:15]execute_script... [12:24: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)347267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 26.160, "sum" : 860.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 860.00, "payments": [ { "type": 0, "sum" : 860.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:15]POST & json_proto [12:24:15]process_json_proto [12:24:15]json parsed OK: [12:24:15]protocol is kg_v1.0 [12:24:15]action value=close_receipt [12:24:15]process_action close_receipt [12:24:15]cmd_close_receipt [12:24:15]MH_GetDate [12:24:15]Write to MH i2c: F0 00 00 29 3A 52 [12:24:15]Write i2c OK [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: F0 [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: F0 09 00 [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: F0 09 00 29 3A 00 73 79 1A 66 23 5B 8F 65 39 [12:24:15]GetLastDocTimeStamp 1713011035 [12:24:15]current date 1713011059 [12:24:15]FM_GetShiftState [12:24:15]SAM_PROTO_GetShiftState [12:24:15]wFMCommunicate request_size=4 [12:24:15]MH_SAM_APDU [12:24:15]CAPDU: 80 13 01 00 [12:24:15]Write to MH i2c: E2 08 00 2A 3A 80 13 01 00 00 00 00 00 E1 [12:24:15]Write i2c OK [12:24:15]MH_I2C_Read... [12:24:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:15]Read from MH i2c: E2 [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: E2 0E 00 [12:24:15]MH_I2C_Read... [12:24:15]Read from MH i2c: E2 0E 00 2A 3A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 FA [12:24:15]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:24:15]wFMCommunicate OK [12:24:15]SAM_PROTO_GetShiftState done [12:24:15]FM_GetShiftState done [12:24:15]opened in 1712967615 [12:24:15]opened+sec_in_day 1713054015 [12:24:15]quantity*price = 86066 [12:24:15]sum+1 = 86067 [12:24:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 860.00 Внесено: 3000.00 СДАЧА: 2140.00 НСП 1% : 7.62 НДС 12% : 91.40 Наличными: 860.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 121 13.04.2024 12:24 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28914 ФПД: 54489169227993 1/tax-web-control/client/api/v1/ticket?date=20240413T122419&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28914&fm=54489169227993&tin=02508201610067®Number=0000138879044617&sum=86000 [12:24:16]StoreToDocumentArchive [12:24:16]shift 115 fd 28914 [12:24:16]save to /storage/0115/doc_00028914 [12:24:16]save last doc name /storage/0115/doc_00028914 to /storage/kkm_last_doc_name [12:24:16]save OK [12:24:16]Clear old archive folders... [12:24:16]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:24:16]tlvbuf is 01294B00 [12:24:16]SAM_PROTO_ClearQueue [12:24:16]wFMCommunicate request_size=4 [12:24:16]MH_SAM_APDU [12:24:16]CAPDU: 80 09 00 00 [12:24:16]Write to MH i2c: E2 08 00 37 3A 80 09 00 00 00 00 00 00 E3 [12:24:16]Write i2c OK [12:24:16]MH_I2C_Read... [12:24:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:16]Read from MH i2c: E2 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 03 00 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 03 00 37 3A 00 90 00 E5 [12:24:16]RAPDU: 90 00 [12:24:16]wFMCommunicate OK [12:24:16]SAM_PROTO_ClearQueue done [12:24:16]KKMCreateOFDPacket [12:24:16]OFDProtocolAddRootSTLVToBuf [12:24:16]FM_MakeSignedData [12:24:16]FM_MakeSignedData [12:24:16]SAM_PROTO_SignData [12:24:16]wFMCommunicate request_size=4 [12:24:16]MH_SAM_APDU [12:24:16]CAPDU: 80 0D 01 02 [12:24:16]Write to MH i2c: E2 08 00 38 3A 80 0D 01 02 00 00 00 00 EB [12:24:16]Write i2c OK [12:24:16]MH_I2C_Read... [12:24:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:16]Read from MH i2c: E2 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 03 00 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 03 00 38 3A 00 90 00 E6 [12:24:16]RAPDU: 90 00 [12:24:16]wFMCommunicate OK [12:24:16]wFMCommunicate request_size=255 [12:24:16]MH_SAM_APDU [12:24:16]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 30 66 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 32 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 23 00 00 00 00 07 04 06 00 F0 4F 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 73 79 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F2 70 00 00 35 04 06 00 31 8E [12:24:16]Write to MH i2c: E2 02 01 39 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 35 FF 03 08 00 03 30 66 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 32 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 23 00 00 00 00 07 04 06 00 F0 4F 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 73 79 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F2 70 00 00 35 04 06 00 31 8E 00 00 8D [12:24:16]Write i2c OK [12:24:16]MH_I2C_Read... [12:24:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:16]Read from MH i2c: E2 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 03 00 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 03 00 39 3A 00 90 00 E7 [12:24:16]RAPDU: 90 00 [12:24:16]wFMCommunicate OK [12:24:16]wFMCommunicate request_size=9 [12:24:16]MH_SAM_APDU [12:24:16]CAPDU: 80 0D 02 02 04 BF 93 70 D9 [12:24:16]Write to MH i2c: E2 0C 00 3A 3A 80 0D 02 02 04 00 BF 93 70 D9 00 00 91 [12:24:16]Write i2c OK [12:24:16]MH_I2C_Read... [12:24:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:16]Read from MH i2c: E2 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 03 00 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 03 00 3A 3A 00 90 00 E8 [12:24:16]RAPDU: 90 00 [12:24:16]wFMCommunicate OK [12:24:16]wFMCommunicate request_size=4 [12:24:16]MH_SAM_APDU [12:24:16]CAPDU: 80 0D 03 02 [12:24:16]Write to MH i2c: E2 08 00 3B 3A 80 0D 03 02 00 00 00 00 F0 [12:24:16]Write i2c OK [12:24:16]MH_I2C_Read... [12:24:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:16]Read from MH i2c: E2 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 0B 00 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 0B 00 3B 3A 00 7B 84 E1 E7 6E 54 63 32 90 00 0F [12:24:16]RAPDU: 7B 84 E1 E7 6E 54 63 32 90 00 [12:24:16]wFMCommunicate OK [12:24:16]SAM_PROTO_SignData done [12:24:16]FM_MakeSignedData done [12:24:16]CreateOFDProtocolMessage [12:24:16]wFMCommunicate request_size=4 [12:24:16]MH_SAM_APDU [12:24:16]CAPDU: 80 11 00 00 [12:24:16]Write to MH i2c: E2 08 00 3C 3A 80 11 00 00 00 00 00 00 F0 [12:24:16]Write i2c OK [12:24:16]MH_I2C_Read... [12:24:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:16]Read from MH i2c: E2 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 17 00 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: E2 17 00 3C 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3F [12:24:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:24:16]wFMCommunicate OK [12:24:16]CreateOFDProtocolMessage done [12:24:16]OFDSenderStorePacket 28914 [12:24:16]StoreOFDPacket docnum=28914 [12:24:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 B7 16 06 01 BD 0C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 30 66 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 32 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 23 00 00 00 00 07 04 06 00 F0 4F 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 73 79 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F2 70 00 00 35 04 06 00 31 8E BF 93 70 D9 7B 84 E1 E7 6E 54 63 32 [12:24:16]CheckFolder [12:24:16]dirname=/storage/ofd_packets [12:24:16]CheckFolder done [12:24:16]ProducePacketName [12:24:16]name=ofd_packets/00028914 [12:24:16]NVStorageSaveData ofd_packets/00028914 [12:24:16]File name is /storage/ofd_packets/00028914 [12:24:16]Write 300 bytes [12:24:16]NVStorageSaveData done [12:24:16]OFDSenderStorePacket done [12:24:16]KKMCreateOFDPacket done [12:24:16]NVStorageSaveData kkm_last_timestamp [12:24:16]File name is /storage/kkm_last_timestamp [12:24:16]Write 4 bytes [12:24:16]NVStorageSaveData done [12:24:16]ExternCall_PrintAddStr [12:24:16]wPrintStart [12:24:16]Write to MH i2c: 01 00 00 3D 3A 77 [12:24:16]Write i2c OK [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: 01 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: 01 07 00 [12:24:16]MH_I2C_Read... [12:24:16]Read from MH i2c: 01 07 00 3D 3A 00 00 00 00 00 FF 0F 8C [12:24:16]RasterBufferAndPrint [12:24:16]line Счет N : (1)347267 [12:24:16]line ИНН: 02508201610067 [12:24:16]line Контрольно-Кассовый Чек [12:24:16]line ПРОДАЖА [12:24:16]line ТРК (МРК, ГНК) : 71 [12:24:16]line Товар: 2711129700 [12:24:16]line ГАЗ-К-5 [12:24:16]line 26.160 * 32.90 [12:24:16]line = 860.66 [12:24:16]line НДС 12% НСП 1% [12:24:16]line > о реализуемом товаре [12:24:16]line ОКРУГЛЕНИЕ: -0.66 [12:24:16]line ИТОГО: 860.00 [12:24:16]line Внесено: 3000.00 [12:24:16]line СДАЧА: 2140.00 [12:24:16]line НСП 1% : 7.62 [12:24:16]line НДС 12% : 91.40 [12:24:16]line Наличными: 860.00 [12:24:16]line Безнал.: 0.00 [12:24:16]line Место: АЗС № 108 "Партнер Нефть" [12:24:16]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:24:16]line СНО: Общий режим [12:24:16]line Чек 121 13.04.2024 12:24 [12:24:16]line Смена: 115 ФФД: 1.0 [12:24:16]line ЗНМ: 0300000027 [12:24:16]line РНМ: 0000138879044617 [12:24:16]line Версия ККМ: 001 [12:24:16]line ФМ: 0000000000963154 [12:24:16]line ФД: 28914 [12:24:16]line ФПД: 54489169227993 [12:24:16]line 1/tax-web-control/client/api/v1/ticket?date=20240413T122419&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28914&fm=54489169227993&tin=02508201610067®Number=0000138879044617&sum=86000 [12:24:17]OFD Sender: Processing packet 28914 [packets to send 8, broken 7] [12:24:17]ProducePacketName [12:24:17]name=ofd_packets/00028914 [12:24:17]OFD Sender: To server: pG, [12:24:17]CommunicateWithHost lk.salyk.kg:30040 [12:24:17]ConnectInit lk.salyk.kg [12:24:17]written 0, free lines is 4095 [12:24:17]Connected sock=10 [12:24:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 B7 16 06 01 BD 0C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 30 66 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 32 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 23 00 00 00 00 07 04 06 00 F0 4F 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 73 79 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F2 70 00 00 35 04 06 00 31 8E BF 93 70 D9 7B 84 E1 E7 6E 54 63 32 [12:24:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E6 BF 47 00 40 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 31 35 34 10 04 04 00 F2 70 00 00 F4 03 04 00 1A 24 1A 66 B6 04 01 00 00 0F 43 D6 9B E1 A5 37 ED [12:24:17]CommunicateWithHost err = 0 [12:24:17]CheckOFDResponse [12:24:17]1017 (14) - 77093643461234 [12:24:17]1041 (16) - 0000000000963154 [12:24:17]1040 (4) - 28914 [12:24:17]1012 (4) - 13.04.2024 06:20 [12:24:17]1206 (1) - 0 [12:24:17]OFD Sender: Remove packet 28914 [12:24:17]ProducePacketName [12:24:17]name=ofd_packets/00028914 [12:24:17]NVStorageDeleteData [12:24:17]Write to MH i2c: 01 00 00 67 3A A1 [12:24:17]Write i2c OK [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: 01 [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: 01 07 00 [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: 01 07 00 67 3A 00 00 00 00 00 C6 0C 7A [12:24:17]RasterBufferAndPrint [12:24:17]line [12:24:17]line [12:24:17]line [12:24:17]line [12:24:17]line [12:24:17]written 0, free lines is 3276 [12:24:17]MH_Cut [12:24:17]Write to MH i2c: D1 01 00 6E 3A 01 7A [12:24:17]Write i2c OK [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: D1 [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: D1 01 00 [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: D1 01 00 6E 3A 00 79 [12:24:17]Write to MH i2c: 01 00 00 6F 3A A9 [12:24:17]Write i2c OK [12:24:17]MH_I2C_Read... [12:24:17]OFD Sender: No OFD packet to send [12:24:18]*** Cut start [12:24:18]*** Partial cut [12:24:18]*** CUTSNS_PIN = 1 [12:24:18]*** CUTSNS_PIN = 0 [12:24:18]*** Brake cut motor [12:24:18]Read from MH i2c: 01 [12:24:18]MH_I2C_Read... [12:24:18]*** Stop cut motor [12:24:18]*** Cut end [12:24:18]Read from MH i2c: 01 07 00 [12:24:18]MH_I2C_Read... [12:24:18]Read from MH i2c: 01 07 00 6F 3A 00 00 00 00 00 FF 0F BE [12:24:18]process_action close_receipt done [12:24:18]requested_data is exist [12:24:18]produce_requested_data [12:24:18]requested_item fm.sn is exist - process it [12:24:18]wFMCommunicate request_size=4 [12:24:18]MH_SAM_APDU [12:24:18]CAPDU: 80 11 00 00 [12:24:18]Write to MH i2c: E2 08 00 70 3A 80 11 00 00 00 00 00 00 24 [12:24:18]Write i2c OK [12:24:18]MH_I2C_Read... [12:24:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:19]Read from MH i2c: E2 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 17 00 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 17 00 70 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 73 [12:24:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:24:19]wFMCommunicate OK [12:24:19]requested_item fd.num is exist - process it [12:24:19]SAM_PROTO_GetFieldsCounters [12:24:19]wFMCommunicate request_size=4 [12:24:19]MH_SAM_APDU [12:24:19]CAPDU: 80 13 00 00 [12:24:19]Write to MH i2c: E2 08 00 71 3A 80 13 00 00 00 00 00 00 27 [12:24:19]Write i2c OK [12:24:19]MH_I2C_Read... [12:24:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:19]Read from MH i2c: E2 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 62 00 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 62 00 71 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F2 70 00 00 0E 04 04 00 73 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 A5 [12:24:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F2 70 00 00 0E 04 04 00 73 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:24:19]wFMCommunicate OK [12:24:19]SAM_PROTO_GetFieldsCounters done [12:24:19]requested_item shift.num is exist - process it [12:24:19]requested_item shift.opened is exist - process it [12:24:19]req_shift_opened [12:24:19]FM_GetShiftState [12:24:19]SAM_PROTO_GetShiftState [12:24:19]wFMCommunicate request_size=4 [12:24:19]MH_SAM_APDU [12:24:19]CAPDU: 80 13 01 00 [12:24:19]Write to MH i2c: E2 08 00 72 3A 80 13 01 00 00 00 00 00 29 [12:24:19]Write i2c OK [12:24:19]MH_I2C_Read... [12:24:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:19]Read from MH i2c: E2 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 0E 00 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 0E 00 72 3A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 42 [12:24:19]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:24:19]wFMCommunicate OK [12:24:19]SAM_PROTO_GetShiftState done [12:24:19]FM_GetShiftState done [12:24:19]req_shift_opened done [12:24:19]requested_item shift.open_date is exist - process it [12:24:19]req_shift_open_date [12:24:19]req_shift_open_date done [12:24:19]produce_requested_data done [12:24:19]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28914,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [12:24:19]process_action_free close_receipt [12:24:19]json_value_free [12:24:19]json_value_free done [12:24:19]process_json_proto returns [12:24:19]Send response to host [12:24:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28914,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [12:24:19]free response buf [12:24:19]execute_script done [12:24:19]execute_script returns [12:24:19]free content buf [12:24:19]Sock 9.Close socket [12:24:19]Sock 9.Thread stoped [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:32]OFD Sender: No OFD packet to send [12:24:37]OFD Sender: No OFD packet to send [12:24:42]OFD Sender: No OFD packet to send [12:24:47]OFD Sender: No OFD packet to send [12:24:52]OFD Sender: No OFD packet to send [12:24:57]OFD Sender: No OFD packet to send [12:25:02]OFD Sender: No OFD packet to send [12:25:07]OFD Sender: No OFD packet to send [12:25:12]OFD Sender: No OFD packet to send [12:25:17]OFD Sender: No OFD packet to send [12:25:22]OFD Sender: No OFD packet to send [12:25:27]OFD Sender: No OFD packet to send [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:57]OFD Sender: No OFD packet to send [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:52]OFD Sender: No OFD packet to send [12:26:57]OFD Sender: No OFD packet to send [12:27:02]OFD Sender: No OFD packet to send [12:27:07]OFD Sender: No OFD packet to send [12:27:12]OFD Sender: No OFD packet to send [12:27:17]OFD Sender: No OFD packet to send [12:27:22]OFD Sender: No OFD packet to send [12:27:27]OFD Sender: No OFD packet to send [12:27:30]accept exits with 7 [12:27:30]New connection [12:27:30]New thread 3066928484 created [12:27:30]Thread 3066785124 joined [12:27:30]Waiting for new connection... [12:27:30] Sock 7.Parse request [12:27:30]Sock 7.Check first char [12:27:30]Sock 7.First char is OK [12:27:30]request: POST /json_proto HTTP/1.0 [12:27:30]Method: POST [12:27:30]URL: /json_proto [12:27:30]Method is POST - this is cgi request [12:27:30]url: /json_proto [12:27:30]query_string will be loaded in cgi processing [12:27:30]execute_cgi json_proto POST (null) [12:27:30]execute_cgi path=json_proto method=POST [12:27:30]POST find Content-Length [12:27:30]Host: 172.17.33.3:8080 [12:27:30]Content-Length: 843 [12:27:30]Content-Type: application/json [12:27:30] [12:27:30]POST finish read [12:27:30]Found Content-Length = 843 [12:27:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 23.330, "sum" : 1500.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:30]execute_script... [12:27: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)347270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 23.330, "sum" : 1500.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:30]POST & json_proto [12:27:30]process_json_proto [12:27:30]json parsed OK: [12:27:30]protocol is kg_v1.0 [12:27:30]action value=close_receipt [12:27:30]process_action close_receipt [12:27:30]cmd_close_receipt [12:27:30]MH_GetDate [12:27:30]Write to MH i2c: F0 00 00 73 3A 9C [12:27:30]Write i2c OK [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: F0 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: F0 09 00 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: F0 09 00 73 3A 00 37 7A 1A 66 23 5B 8F 65 48 [12:27:30]GetLastDocTimeStamp 1713011059 [12:27:30]current date 1713011255 [12:27:30]FM_GetShiftState [12:27:30]SAM_PROTO_GetShiftState [12:27:30]wFMCommunicate request_size=4 [12:27:30]MH_SAM_APDU [12:27:30]CAPDU: 80 13 01 00 [12:27:30]Write to MH i2c: E2 08 00 74 3A 80 13 01 00 00 00 00 00 2B [12:27:30]Write i2c OK [12:27:30]MH_I2C_Read... [12:27:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:30]Read from MH i2c: E2 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 0E 00 [12:27:30]MH_I2C_Read... [12:27:30]Read from MH i2c: E2 0E 00 74 3A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 44 [12:27:30]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:27:30]wFMCommunicate OK [12:27:30]SAM_PROTO_GetShiftState done [12:27:30]FM_GetShiftState done [12:27:30]opened in 1712967615 [12:27:30]opened+sec_in_day 1713054015 [12:27:30]quantity*price = 150011 [12:27:30]sum+1 = 150013 [12:27:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.12 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 0.00 Безнал.: 1500.12 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 122 13.04.2024 12:27 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28915 ФПД: 252794446886207 1/tax-web-control/client/api/v1/ticket?date=20240413T122735&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28915&fm=252794446886207&tin=02508201610067®Number=0000138879044617&sum=150012 [12:27:31]StoreToDocumentArchive [12:27:31]shift 115 fd 28915 [12:27:31]save to /storage/0115/doc_00028915 [12:27:31]save last doc name /storage/0115/doc_00028915 to /storage/kkm_last_doc_name [12:27:31]save OK [12:27:31]Clear old archive folders... [12:27:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:27:31]tlvbuf is 0121C140 [12:27:31]SAM_PROTO_ClearQueue [12:27:31]wFMCommunicate request_size=4 [12:27:31]MH_SAM_APDU [12:27:31]CAPDU: 80 09 00 00 [12:27:31]Write to MH i2c: E2 08 00 81 3A 80 09 00 00 00 00 00 00 2D [12:27:31]Write i2c OK [12:27:31]MH_I2C_Read... [12:27:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:31]Read from MH i2c: E2 [12:27:31]MH_I2C_Read... [12:27:31]Read from MH i2c: E2 03 00 [12:27:31]MH_I2C_Read... [12:27:31]Read from MH i2c: E2 03 00 81 3A 00 90 00 2F [12:27:31]RAPDU: 90 00 [12:27:31]wFMCommunicate OK [12:27:31]SAM_PROTO_ClearQueue done [12:27:31]KKMCreateOFDPacket [12:27:31]OFDProtocolAddRootSTLVToBuf [12:27:31]FM_MakeSignedData [12:27:31]FM_MakeSignedData [12:27:31]SAM_PROTO_SignData [12:27:31]wFMCommunicate request_size=4 [12:27:31]MH_SAM_APDU [12:27:31]CAPDU: 80 0D 01 02 [12:27:31]Write to MH i2c: E2 08 00 82 3A 80 0D 01 02 00 00 00 00 35 [12:27:31]Write i2c OK [12:27:31]MH_I2C_Read... [12:27:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:31]Read from MH i2c: E2 [12:27:31]MH_I2C_Read... [12:27:31]Read from MH i2c: E2 03 00 [12:27:31]MH_I2C_Read... [12:27:31]Read from MH i2c: E2 03 00 82 3A 00 90 00 30 [12:27:31]RAPDU: 90 00 [12:27:31]wFMCommunicate OK [12:27:31]wFMCommunicate request_size=255 [12:27:31]MH_SAM_APDU [12:27: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 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 37 7A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F3 70 00 00 35 04 06 00 E5 [12:27:31]Write to MH i2c: E2 02 01 83 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 37 7A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F3 70 00 00 35 04 06 00 E5 00 00 F7 [12:27:31]Write i2c OK [12:27:31]MH_I2C_Read... [12:27:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:32]Read from MH i2c: E2 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: E2 03 00 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: E2 03 00 83 3A 00 90 00 31 [12:27:32]RAPDU: 90 00 [12:27:32]wFMCommunicate OK [12:27:32]wFMCommunicate request_size=10 [12:27:32]MH_SAM_APDU [12:27:32]CAPDU: 80 0D 02 02 05 EA 4B 35 35 3F [12:27:32]Write to MH i2c: E2 0D 00 84 3A 80 0D 02 02 05 00 EA 4B 35 35 3F 00 00 20 [12:27:32]Write i2c OK [12:27:32]MH_I2C_Read... [12:27:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:32]Read from MH i2c: E2 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: E2 03 00 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: E2 03 00 84 3A 00 90 00 32 [12:27:32]RAPDU: 90 00 [12:27:32]wFMCommunicate OK [12:27:32]wFMCommunicate request_size=4 [12:27:32]MH_SAM_APDU [12:27:32]CAPDU: 80 0D 03 02 [12:27:32]Write to MH i2c: E2 08 00 85 3A 80 0D 03 02 00 00 00 00 3A [12:27:32]Write i2c OK [12:27:32]MH_I2C_Read... [12:27:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:32]Read from MH i2c: E2 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: E2 0B 00 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: E2 0B 00 85 3A 00 C5 5B 93 71 64 3D 7F F9 90 00 78 [12:27:32]RAPDU: C5 5B 93 71 64 3D 7F F9 90 00 [12:27:32]wFMCommunicate OK [12:27:32]SAM_PROTO_SignData done [12:27:32]FM_MakeSignedData done [12:27:32]CreateOFDProtocolMessage [12:27:32]wFMCommunicate request_size=4 [12:27:32]MH_SAM_APDU [12:27:32]CAPDU: 80 11 00 00 [12:27:32]Write to MH i2c: E2 08 00 86 3A 80 11 00 00 00 00 00 00 3A [12:27:32]Write i2c OK [12:27:32]MH_I2C_Read... [12:27:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:32]Read from MH i2c: E2 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: E2 17 00 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: E2 17 00 86 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 89 [12:27:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:27:32]wFMCommunicate OK [12:27:32]CreateOFDProtocolMessage done [12:27:32]OFDSenderStorePacket 28915 [12:27:32]StoreOFDPacket docnum=28915 [12:27:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 48 9C 07 01 71 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 37 7A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F3 70 00 00 35 04 06 00 E5 EA 4B 35 35 3F C5 5B 93 71 64 3D 7F F9 [12:27:32]CheckFolder [12:27:32]dirname=/storage/ofd_packets [12:27:32]CheckFolder done [12:27:32]ProducePacketName [12:27:32]name=ofd_packets/00028915 [12:27:32]NVStorageSaveData ofd_packets/00028915 [12:27:32]File name is /storage/ofd_packets/00028915 [12:27:32]Write 301 bytes [12:27:32]NVStorageSaveData done [12:27:32]OFDSenderStorePacket done [12:27:32]KKMCreateOFDPacket done [12:27:32]NVStorageSaveData kkm_last_timestamp [12:27:32]File name is /storage/kkm_last_timestamp [12:27:32]Write 4 bytes [12:27:32]NVStorageSaveData done [12:27:32]ExternCall_PrintAddStr [12:27:32]wPrintStart [12:27:32]Write to MH i2c: 01 00 00 87 3A C1 [12:27:32]Write i2c OK [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: 01 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: 01 07 00 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: 01 07 00 87 3A 00 00 00 00 00 FF 0F D6 [12:27:32]RasterBufferAndPrint [12:27:32]line Счет N : (1)347270 [12:27:32]line ИНН: 02508201610067 [12:27:32]line Контрольно-Кассовый Чек [12:27:32]line ПРОДАЖА [12:27:32]line ТРК (МРК, ГНК) : 13 [12:27:32]line Товар: 2710124130 [12:27:32]line Аи-92-К-5 [12:27:32]line 23.330 * 64.30 [12:27:32]line = 1500.12 [12:27:32]line НДС 12% НСП 1% [12:27:32]line > о реализуемом товаре [12:27:32]line ИТОГО: 1500.12 [12:27:32]line НСП 1% : 13.27 [12:27:32]line НДС 12% : 159.30 [12:27:32]line Наличными: 0.00 [12:27:32]line Безнал.: 1500.12 [12:27:32]line Место: АЗС № 108 "Партнер Нефть" [12:27:32]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:27:32]line СНО: Общий режим [12:27:32]line Чек 122 13.04.2024 12:27 [12:27:32]line Смена: 115 ФФД: 1.0 [12:27:32]line ЗНМ: 0300000027 [12:27:32]line РНМ: 0000138879044617 [12:27:32]line Версия ККМ: 001 [12:27:32]line Платежная система: АКБ Кыргызстан [12:27:32]line ФМ: 0000000000963154 [12:27:32]line ФД: 28915 [12:27:32]line ФПД: 252794446886207 [12:27:32]line 1/tax-web-control/client/api/v1/ticket?date=20240413T122735&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28915&fm=252794446886207&tin=02508201610067®Number=0000138879044617&sum=150012 [12:27:32]OFD Sender: Processing packet 28915 [packets to send 8, broken 7] [12:27:32]ProducePacketName [12:27:32]name=ofd_packets/00028915 [12:27:32]OFD Sender: To server: pG, [12:27:32]CommunicateWithHost lk.salyk.kg:30040 [12:27:32]ConnectInit lk.salyk.kg [12:27:32]written 0, free lines is 4095 [12:27:32]Connected sock=10 [12:27: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 31 35 34 0F 01 00 00 48 9C 07 01 71 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 37 7A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F3 70 00 00 35 04 06 00 E5 EA 4B 35 35 3F C5 5B 93 71 64 3D 7F F9 [12:27:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EB FF 47 00 22 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F3 70 00 00 F4 03 04 00 DE 24 1A 66 B6 04 01 00 00 D2 38 5E 51 8E 49 26 C8 [12:27:32]CommunicateWithHost err = 0 [12:27:32]CheckOFDResponse [12:27:32]1017 (14) - 77093643461234 [12:27:32]1041 (16) - 0000000000963154 [12:27:32]1040 (4) - 28915 [12:27:32]1012 (4) - 13.04.2024 06:23 [12:27:32]1206 (1) - 0 [12:27:32]OFD Sender: Remove packet 28915 [12:27:32]ProducePacketName [12:27:32]name=ofd_packets/00028915 [12:27:32]NVStorageDeleteData [12:27:32]Write to MH i2c: 01 00 00 B0 3A EA [12:27:32]Write i2c OK [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: 01 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: 01 07 00 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: 01 07 00 B0 3A 00 00 00 00 00 D5 0C D2 [12:27:32]RasterBufferAndPrint [12:27:32]line [12:27:32]line [12:27:32]line [12:27:32]line [12:27:32]line [12:27:32]written 0, free lines is 3289 [12:27:32]MH_Cut [12:27:32]Write to MH i2c: D1 01 00 B7 3A 01 C3 [12:27:32]Write i2c OK [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: D1 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: D1 01 00 [12:27:32]MH_I2C_Read... [12:27:32]Read from MH i2c: D1 01 00 B7 3A 00 C2 [12:27:32]Write to MH i2c: 01 00 00 B8 3A F2 [12:27:32]Write i2c OK [12:27:32]MH_I2C_Read... [12:27:33]OFD Sender: No OFD packet to send [12:27:33]*** Cut start [12:27:33]*** Partial cut [12:27:33]*** CUTSNS_PIN = 1 [12:27:33]*** CUTSNS_PIN = 0 [12:27:34]*** Brake cut motor [12:27:34]Read from MH i2c: 01 [12:27:34]MH_I2C_Read... [12:27:34]*** Stop cut motor [12:27:34]*** Cut end [12:27:34]Read from MH i2c: 01 07 00 [12:27:34]MH_I2C_Read... [12:27:34]Read from MH i2c: 01 07 00 B8 3A 00 00 00 00 00 FF 0F 07 [12:27:34]process_action close_receipt done [12:27:34]requested_data is exist [12:27:34]produce_requested_data [12:27:34]requested_item fm.sn is exist - process it [12:27:34]wFMCommunicate request_size=4 [12:27:34]MH_SAM_APDU [12:27:34]CAPDU: 80 11 00 00 [12:27:34]Write to MH i2c: E2 08 00 B9 3A 80 11 00 00 00 00 00 00 6D [12:27:34]Write i2c OK [12:27:34]MH_I2C_Read... [12:27:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:34]Read from MH i2c: E2 [12:27:34]MH_I2C_Read... [12:27:34]Read from MH i2c: E2 17 00 [12:27:34]MH_I2C_Read... [12:27:34]Read from MH i2c: E2 17 00 B9 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BC [12:27:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:27:34]wFMCommunicate OK [12:27:34]requested_item fd.num is exist - process it [12:27:34]SAM_PROTO_GetFieldsCounters [12:27:34]wFMCommunicate request_size=4 [12:27:34]MH_SAM_APDU [12:27:34]CAPDU: 80 13 00 00 [12:27:34]Write to MH i2c: E2 08 00 BA 3A 80 13 00 00 00 00 00 00 70 [12:27:34]Write i2c OK [12:27:34]MH_I2C_Read... [12:27:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:34]Read from MH i2c: E2 [12:27:34]MH_I2C_Read... [12:27:34]Read from MH i2c: E2 62 00 [12:27:34]MH_I2C_Read... [12:27:34]Read from MH i2c: E2 62 00 BA 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F3 70 00 00 0E 04 04 00 73 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 F2 [12:27: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F3 70 00 00 0E 04 04 00 73 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:27:34]wFMCommunicate OK [12:27:34]SAM_PROTO_GetFieldsCounters done [12:27:34]requested_item shift.num is exist - process it [12:27:34]requested_item shift.opened is exist - process it [12:27:34]req_shift_opened [12:27:34]FM_GetShiftState [12:27:34]SAM_PROTO_GetShiftState [12:27:34]wFMCommunicate request_size=4 [12:27:34]MH_SAM_APDU [12:27:34]CAPDU: 80 13 01 00 [12:27:34]Write to MH i2c: E2 08 00 BB 3A 80 13 01 00 00 00 00 00 72 [12:27:34]Write i2c OK [12:27:34]MH_I2C_Read... [12:27:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:34]Read from MH i2c: E2 [12:27:34]MH_I2C_Read... [12:27:34]Read from MH i2c: E2 0E 00 [12:27:34]MH_I2C_Read... [12:27:34]Read from MH i2c: E2 0E 00 BB 3A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 8B [12:27:34]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:27:34]wFMCommunicate OK [12:27:34]SAM_PROTO_GetShiftState done [12:27:34]FM_GetShiftState done [12:27:34]req_shift_opened done [12:27:34]requested_item shift.open_date is exist - process it [12:27:34]req_shift_open_date [12:27:34]req_shift_open_date done [12:27:34]produce_requested_data done [12:27:34]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28915,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [12:27:34]process_action_free close_receipt [12:27:34]json_value_free [12:27:34]json_value_free done [12:27:34]process_json_proto returns [12:27:34]Send response to host [12:27:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28915,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [12:27:34]free response buf [12:27:34]execute_script done [12:27:34]execute_script returns [12:27:34]free content buf [12:27:34]Sock 7.Close socket [12:27:34]Sock 7.Thread stoped [12:27:34]accept exits with 9 [12:27:34]New connection [12:27:34]New thread 3066785124 created [12:27:34]Thread 3066928484 joined [12:27:34]Waiting for new connection... [12:27:34] Sock 9.Parse request [12:27:34]Sock 9.Check first char [12:27:34]Sock 9.First char is OK [12:27:34]request: POST /json_proto HTTP/1.0 [12:27:34]Method: POST [12:27:34]URL: /json_proto [12:27:34]Method is POST - this is cgi request [12:27:34]url: /json_proto [12:27:34]query_string will be loaded in cgi processing [12:27:34]execute_cgi json_proto POST (null) [12:27:34]execute_cgi path=json_proto method=POST [12:27:34]POST find Content-Length [12:27:34]Host: 172.17.33.3:8080 [12:27:34]Content-Length: 677 [12:27:34]Content-Type: application/json [12:27:34] [12:27:34]POST finish read [12:27:34]Found Content-Length = 677 [12:27:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347271", "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" : 64.30, "quantity" : 7.780, "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" ] } } [12:27:34]execute_script... [12:27: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)347271", "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" : 64.30, "quantity" : 7.780, "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" ] } } [12:27:34]POST & json_proto [12:27:34]process_json_proto [12:27:34]json parsed OK: [12:27:34]protocol is kg_v1.0 [12:27:34]action value=close_receipt [12:27:34]process_action close_receipt [12:27:34]cmd_close_receipt [12:27:34]MH_GetDate [12:27:34]Write to MH i2c: F0 00 00 BC 3A E5 [12:27:34]Write i2c OK [12:27:34]MH_I2C_Read... [12:27:34]Read from MH i2c: F0 [12:27:34]MH_I2C_Read... [12:27:34]Read from MH i2c: F0 09 00 [12:27:34]MH_I2C_Read... [12:27:34]Read from MH i2c: F0 09 00 BC 3A 00 3B 7A 1A 66 23 5B 8F 65 95 [12:27:34]GetLastDocTimeStamp 1713011255 [12:27:34]current date 1713011259 [12:27:34]FM_GetShiftState [12:27:34]SAM_PROTO_GetShiftState [12:27:34]wFMCommunicate request_size=4 [12:27:34]MH_SAM_APDU [12:27:34]CAPDU: 80 13 01 00 [12:27:34]Write to MH i2c: E2 08 00 BD 3A 80 13 01 00 00 00 00 00 74 [12:27:34]Write i2c OK [12:27:34]MH_I2C_Read... [12:27:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:34]Read from MH i2c: E2 [12:27:34]MH_I2C_Read... [12:27:34]Read from MH i2c: E2 0E 00 [12:27:34]MH_I2C_Read... [12:27:34]Read from MH i2c: E2 0E 00 BD 3A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 8D [12:27:34]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:27:34]wFMCommunicate OK [12:27:34]SAM_PROTO_GetShiftState done [12:27:34]FM_GetShiftState done [12:27:34]opened in 1712967615 [12:27:34]opened+sec_in_day 1713054015 [12:27:34]quantity*price = 50025 [12:27:34]sum+1 = 50026 [12:27:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 123 13.04.2024 12:27 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28916 ФПД: 2583462759995 1/tax-web-control/client/api/v1/ticket?date=20240413T122739&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28916&fm=2583462759995&tin=02508201610067®Number=0000138879044617&sum=50000 [12:27:36]StoreToDocumentArchive [12:27:36]shift 115 fd 28916 [12:27:36]save to /storage/0115/doc_00028916 [12:27:36]save last doc name /storage/0115/doc_00028916 to /storage/kkm_last_doc_name [12:27:36]save OK [12:27:36]Clear old archive folders... [12:27:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:27:36]tlvbuf is 012ADF00 [12:27:36]SAM_PROTO_ClearQueue [12:27:36]wFMCommunicate request_size=4 [12:27:36]MH_SAM_APDU [12:27:36]CAPDU: 80 09 00 00 [12:27:36]Write to MH i2c: E2 08 00 CA 3A 80 09 00 00 00 00 00 00 76 [12:27:36]Write i2c OK [12:27:36]MH_I2C_Read... [12:27:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:36]Read from MH i2c: E2 [12:27:36]MH_I2C_Read... [12:27:36]Read from MH i2c: E2 03 00 [12:27:36]MH_I2C_Read... [12:27:36]Read from MH i2c: E2 03 00 CA 3A 00 90 00 78 [12:27:36]RAPDU: 90 00 [12:27:36]wFMCommunicate OK [12:27:36]SAM_PROTO_ClearQueue done [12:27:36]KKMCreateOFDPacket [12:27:36]OFDProtocolAddRootSTLVToBuf [12:27:36]FM_MakeSignedData [12:27:36]FM_MakeSignedData [12:27:36]SAM_PROTO_SignData [12:27:36]wFMCommunicate request_size=4 [12:27:36]MH_SAM_APDU [12:27:36]CAPDU: 80 0D 01 02 [12:27:36]Write to MH i2c: E2 08 00 CB 3A 80 0D 01 02 00 00 00 00 7E [12:27:36]Write i2c OK [12:27:36]MH_I2C_Read... [12:27:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:36]Read from MH i2c: E2 [12:27:36]MH_I2C_Read... [12:27:36]Read from MH i2c: E2 03 00 [12:27:36]MH_I2C_Read... [12:27:36]Read from MH i2c: E2 03 00 CB 3A 00 90 00 79 [12:27:36]RAPDU: 90 00 [12:27:36]wFMCommunicate OK [12:27:36]wFMCommunicate request_size=255 [12:27:36]MH_SAM_APDU [12:27: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 7B 00 00 00 F4 03 04 00 3B 7A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F4 70 00 00 35 04 06 00 02 [12:27:36]Write to MH i2c: E2 02 01 CC 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 7B 00 00 00 F4 03 04 00 3B 7A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F4 70 00 00 35 04 06 00 02 00 00 C9 [12:27:36]Write i2c OK [12:27:36]MH_I2C_Read... [12:27:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:36]Read from MH i2c: E2 [12:27:36]MH_I2C_Read... [12:27:36]Read from MH i2c: E2 03 00 [12:27:36]MH_I2C_Read... [12:27:36]Read from MH i2c: E2 03 00 CC 3A 00 90 00 7A [12:27:36]RAPDU: 90 00 [12:27:36]wFMCommunicate OK [12:27:36]wFMCommunicate request_size=10 [12:27:36]MH_SAM_APDU [12:27:36]CAPDU: 80 0D 02 02 05 59 82 61 4E 3B [12:27:36]Write to MH i2c: E2 0D 00 CD 3A 80 0D 02 02 05 00 59 82 61 4E 3B 00 00 50 [12:27:36]Write i2c OK [12:27:36]MH_I2C_Read... [12:27:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:36]Read from MH i2c: E2 [12:27:36]MH_I2C_Read... [12:27:36]Read from MH i2c: E2 03 00 [12:27:36]MH_I2C_Read... [12:27:36]Read from MH i2c: E2 03 00 CD 3A 00 90 00 7B [12:27:36]RAPDU: 90 00 [12:27:36]wFMCommunicate OK [12:27:36]wFMCommunicate request_size=4 [12:27:36]MH_SAM_APDU [12:27:36]CAPDU: 80 0D 03 02 [12:27:36]Write to MH i2c: E2 08 00 CE 3A 80 0D 03 02 00 00 00 00 83 [12:27:36]Write i2c OK [12:27:36]MH_I2C_Read... [12:27:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:36]Read from MH i2c: E2 [12:27:36]MH_I2C_Read... [12:27:36]Read from MH i2c: E2 0B 00 [12:27:36]MH_I2C_Read... [12:27:36]Read from MH i2c: E2 0B 00 CE 3A 00 60 E1 88 AC C0 57 C0 E9 90 00 B9 [12:27:36]RAPDU: 60 E1 88 AC C0 57 C0 E9 90 00 [12:27:36]wFMCommunicate OK [12:27:36]SAM_PROTO_SignData done [12:27:36]FM_MakeSignedData done [12:27:36]CreateOFDProtocolMessage [12:27:36]wFMCommunicate request_size=4 [12:27:36]MH_SAM_APDU [12:27:36]CAPDU: 80 11 00 00 [12:27:36]Write to MH i2c: E2 08 00 CF 3A 80 11 00 00 00 00 00 00 83 [12:27:36]Write i2c OK [12:27:36]MH_I2C_Read... [12:27:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:36]Read from MH i2c: E2 [12:27:36]MH_I2C_Read... [12:27:36]Read from MH i2c: E2 17 00 [12:27:36]MH_I2C_Read... [12:27:36]Read from MH i2c: E2 17 00 CF 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D2 [12:27:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:27:36]wFMCommunicate OK [12:27:36]CreateOFDProtocolMessage done [12:27:36]OFDSenderStorePacket 28916 [12:27:36]StoreOFDPacket docnum=28916 [12:27:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 31 23 07 01 7E 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 7B 00 00 00 F4 03 04 00 3B 7A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F4 70 00 00 35 04 06 00 02 59 82 61 4E 3B 60 E1 88 AC C0 57 C0 E9 [12:27:36]CheckFolder [12:27:36]dirname=/storage/ofd_packets [12:27:36]CheckFolder done [12:27:36]ProducePacketName [12:27:36]name=ofd_packets/00028916 [12:27:36]NVStorageSaveData ofd_packets/00028916 [12:27:37]File name is /storage/ofd_packets/00028916 [12:27:37]Write 301 bytes [12:27:37]NVStorageSaveData done [12:27:37]OFDSenderStorePacket done [12:27:37]KKMCreateOFDPacket done [12:27:37]NVStorageSaveData kkm_last_timestamp [12:27:37]File name is /storage/kkm_last_timestamp [12:27:37]Write 4 bytes [12:27:37]NVStorageSaveData done [12:27:37]ExternCall_PrintAddStr [12:27:37]wPrintStart [12:27:37]Write to MH i2c: 01 00 00 D0 3A 0A [12:27:37]Write i2c OK [12:27:37]MH_I2C_Read... [12:27:37]Read from MH i2c: 01 [12:27:37]MH_I2C_Read... [12:27:37]Read from MH i2c: 01 07 00 [12:27:37]MH_I2C_Read... [12:27:37]Read from MH i2c: 01 07 00 D0 3A 00 00 00 00 00 FF 0F 1F [12:27:37]RasterBufferAndPrint [12:27:37]line Счет N : (1)347271 [12:27:37]line ИНН: 02508201610067 [12:27:37]line Контрольно-Кассовый Чек [12:27:37]line ПРОДАЖА [12:27:37]line ТРК (МРК, ГНК) : 32 [12:27:37]line Товар: 2710124130 [12:27:37]line Аи-92-К-5 [12:27:37]line 7.780 * 64.30 [12:27:37]line = 500.25 [12:27:37]line НДС 12% НСП 1% [12:27:37]line > о реализуемом товаре [12:27:37]line ОКРУГЛЕНИЕ: -0.25 [12:27:37]line ИТОГО: 500.00 [12:27:37]line Внесено: 500.00 [12:27:37]line СДАЧА: 0.00 [12:27:37]line НСП 1% : 4.43 [12:27:37]line НДС 12% : 53.12 [12:27:37]line Наличными: 500.00 [12:27:37]line Безнал.: 0.00 [12:27:37]OFD Sender: Processing packet 28916 [packets to send 8, broken 7] [12:27:37]ProducePacketName [12:27:37]name=ofd_packets/00028916 [12:27:37]OFD Sender: To server: pG, [12:27:37]CommunicateWithHost lk.salyk.kg:30040 [12:27:37]ConnectInit lk.salyk.kg [12:27:37]line Место: АЗС № 108 "Партнер Нефть" [12:27:37]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:27:37]line СНО: Общий режим [12:27:37]line Чек 123 13.04.2024 12:27 [12:27:37]line Смена: 115 ФФД: 1.0 [12:27:37]line ЗНМ: 0300000027 [12:27:37]line РНМ: 0000138879044617 [12:27:37]line Версия ККМ: 001 [12:27:37]line ФМ: 0000000000963154 [12:27:37]line ФД: 28916 [12:27:37]line ФПД: 2583462759995 [12:27:37]line 1/tax-web-control/client/api/v1/ticket?date=20240413T122739&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28916&fm=2583462759995&tin=02508201610067®Number=0000138879044617&sum=50000 [12:27:37]written 0, free lines is 4095 [12:27:37]Connected sock=10 [12:27: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 31 35 34 0F 01 00 00 31 23 07 01 7E 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 7B 00 00 00 F4 03 04 00 3B 7A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F4 70 00 00 35 04 06 00 02 59 82 61 4E 3B 60 E1 88 AC C0 57 C0 E9 [12:27:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7B 6A 47 00 81 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 31 35 34 10 04 04 00 F4 70 00 00 F4 03 04 00 E3 24 1A 66 B6 04 01 00 00 0E 7B C7 1D AC B9 F8 17 [12:27:37]CommunicateWithHost err = 0 [12:27:37]CheckOFDResponse [12:27:37]1017 (14) - 77093643461234 [12:27:37]1041 (16) - 0000000000963154 [12:27:37]1040 (4) - 28916 [12:27:37]1012 (4) - 13.04.2024 06:23 [12:27:37]1206 (1) - 0 [12:27:37]OFD Sender: Remove packet 28916 [12:27:37]ProducePacketName [12:27:37]name=ofd_packets/00028916 [12:27:37]NVStorageDeleteData [12:27:37]Write to MH i2c: 01 00 00 FA 3A 34 [12:27:37]Write i2c OK [12:27:37]MH_I2C_Read... [12:27:37]Read from MH i2c: 01 [12:27:37]MH_I2C_Read... [12:27:37]Read from MH i2c: 01 07 00 [12:27:37]MH_I2C_Read... [12:27:37]Read from MH i2c: 01 07 00 FA 3A 00 00 00 00 00 BC 0C 03 [12:27:37]RasterBufferAndPrint [12:27:37]line [12:27:37]line [12:27:37]line [12:27:37]line [12:27:37]line [12:27:37]written 0, free lines is 3269 [12:27:37]MH_Cut [12:27:37]Write to MH i2c: D1 01 00 01 3B 01 0E [12:27:37]Write i2c OK [12:27:37]MH_I2C_Read... [12:27:37]Read from MH i2c: D1 [12:27:37]MH_I2C_Read... [12:27:37]Read from MH i2c: D1 01 00 [12:27:37]MH_I2C_Read... [12:27:37]Read from MH i2c: D1 01 00 01 3B 00 0D [12:27:37]Write to MH i2c: 01 00 00 02 3B 3D [12:27:37]Write i2c OK [12:27:37]MH_I2C_Read... [12:27:38]OFD Sender: No OFD packet to send [12:27:38]*** Cut start [12:27:38]*** Partial cut [12:27:38]*** CUTSNS_PIN = 1 [12:27:38]*** CUTSNS_PIN = 0 [12:27:38]*** Brake cut motor [12:27:39]Read from MH i2c: 01 [12:27:39]MH_I2C_Read... [12:27:39]*** Stop cut motor [12:27:39]*** Cut end [12:27:39]Read from MH i2c: 01 07 00 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: 01 07 00 02 3B 00 00 00 00 00 FF 0F 52 [12:27:39]process_action close_receipt done [12:27:39]requested_data is exist [12:27:39]produce_requested_data [12:27:39]requested_item fm.sn is exist - process it [12:27:39]wFMCommunicate request_size=4 [12:27:39]MH_SAM_APDU [12:27:39]CAPDU: 80 11 00 00 [12:27:39]Write to MH i2c: E2 08 00 03 3B 80 11 00 00 00 00 00 00 B8 [12:27:39]Write i2c OK [12:27:39]MH_I2C_Read... [12:27:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:39]Read from MH i2c: E2 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 17 00 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 17 00 03 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 07 [12:27:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:27:39]wFMCommunicate OK [12:27:39]requested_item fd.num is exist - process it [12:27:39]SAM_PROTO_GetFieldsCounters [12:27:39]wFMCommunicate request_size=4 [12:27:39]MH_SAM_APDU [12:27:39]CAPDU: 80 13 00 00 [12:27:39]Write to MH i2c: E2 08 00 04 3B 80 13 00 00 00 00 00 00 BB [12:27:39]Write i2c OK [12:27:39]MH_I2C_Read... [12:27:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:39]Read from MH i2c: E2 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 62 00 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 62 00 04 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F4 70 00 00 0E 04 04 00 73 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 41 [12:27: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F4 70 00 00 0E 04 04 00 73 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:27:39]wFMCommunicate OK [12:27:39]SAM_PROTO_GetFieldsCounters done [12:27:39]requested_item shift.num is exist - process it [12:27:39]requested_item shift.opened is exist - process it [12:27:39]req_shift_opened [12:27:39]FM_GetShiftState [12:27:39]SAM_PROTO_GetShiftState [12:27:39]wFMCommunicate request_size=4 [12:27:39]MH_SAM_APDU [12:27:39]CAPDU: 80 13 01 00 [12:27:39]Write to MH i2c: E2 08 00 05 3B 80 13 01 00 00 00 00 00 BD [12:27:39]Write i2c OK [12:27:39]MH_I2C_Read... [12:27:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:39]Read from MH i2c: E2 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 0E 00 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 0E 00 05 3B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D6 [12:27:39]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:27:39]wFMCommunicate OK [12:27:39]SAM_PROTO_GetShiftState done [12:27:39]FM_GetShiftState done [12:27:39]req_shift_opened done [12:27:39]requested_item shift.open_date is exist - process it [12:27:39]req_shift_open_date [12:27:39]req_shift_open_date done [12:27:39]produce_requested_data done [12:27:39]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28916,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [12:27:39]process_action_free close_receipt [12:27:39]json_value_free [12:27:39]json_value_free done [12:27:39]process_json_proto returns [12:27:39]Send response to host [12:27:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28916,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [12:27:39]free response buf [12:27:39]execute_script done [12:27:39]execute_script returns [12:27:39]free content buf [12:27:39]Sock 9.Close socket [12:27:39]Sock 9.Thread stoped [12:27:43]OFD Sender: No OFD packet to send [12:27:48]OFD Sender: No OFD packet to send [12:27:53]OFD Sender: No OFD packet to send [12:27:58]OFD Sender: No OFD packet to send [12:28:03]OFD Sender: No OFD packet to send [12:28:04]accept exits with 7 [12:28:04]New connection [12:28:04]New thread 3066928484 created [12:28:04]Thread 3066785124 joined [12:28:04]Waiting for new connection... [12:28:04] Sock 7.Parse request [12:28:04]Sock 7.Check first char [12:28:04]Sock 7.First char is OK [12:28:04]request: POST /json_proto HTTP/1.0 [12:28:04]Method: POST [12:28:04]URL: /json_proto [12:28:04]Method is POST - this is cgi request [12:28:04]url: /json_proto [12:28:04]query_string will be loaded in cgi processing [12:28:04]execute_cgi json_proto POST (null) [12:28:04]execute_cgi path=json_proto method=POST [12:28:04]POST find Content-Length [12:28:04]Host: 172.17.33.3:8080 [12:28:04]Content-Length: 1207 [12:28:04]Content-Type: application/json [12:28:04] [12:28:04]POST finish read [12:28:04]Found Content-Length = 1207 [12:28:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347269\u000A13.04.2024 12:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 40.030 x 72.50\u000A\u0418\u0422\u041E\u0413: 2902.18\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01860\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:04]execute_script... [12:28:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347269\u000A13.04.2024 12:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 40.030 x 72.50\u000A\u0418\u0422\u041E\u0413: 2902.18\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01860\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:04]POST & json_proto [12:28:04]process_json_proto [12:28:04]json parsed OK: [12:28:04]protocol is kg_v1.0 [12:28:04]action value=print_text [12:28:04]process_action print_text [12:28:04]cmd_print_text [12:28:04]ExternCall_PrintAddStr [12:28:04]wPrintStart [12:28:04]Write to MH i2c: 01 00 00 06 3B 41 [12:28:04]Write i2c OK [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: 01 [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: 01 07 00 [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: 01 07 00 06 3B 00 00 00 00 00 FF 0F 56 [12:28:04]RasterBufferAndPrint [12:28:04]line *****ТОВАРНЫЙ ЧЕК***** [12:28:04]line АЗС 108 [12:28:04]line Партнер нефть [12:28:04]line 02508201610067 [12:28:04]line Кассир : Шадыканова Ж. [12:28:04]line Счет N : (1)347269 [12:28:04]line 13.04.2024 12:09 [12:28:04]line ПРОДАЖА [12:28:04]line ТРК (МРК, ГНК): 43 [12:28:04]line Вид ГСМ : 2710124500 [12:28:04]line Аи-95-К-5 [12:28:04]line 40.030 x 72.50 [12:28:04]line ИТОГ: 2902.18 [12:28:04]line Тип оплаты: Талоны: Топливная Карта [12:28:04]line 01860 [12:28:04]line ______________________ [12:28:04]line (подпись) [12:28:04]written 0, free lines is 4095 [12:28:04]Write to MH i2c: 01 00 00 1B 3B 56 [12:28:04]Write i2c OK [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: 01 [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: 01 07 00 [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: 01 07 00 1B 3B 00 00 00 00 00 F7 0D 61 [12:28:04]RasterBufferAndPrint [12:28:04]line [12:28:04]line [12:28:04]line [12:28:04]line [12:28:04]line [12:28:04]written 0, free lines is 3576 [12:28:04]MH_Cut [12:28:04]Write to MH i2c: D1 01 00 22 3B 01 2F [12:28:04]Write i2c OK [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: D1 [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: D1 01 00 [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: D1 01 00 22 3B 00 2E [12:28:04]Write to MH i2c: 01 00 00 23 3B 5E [12:28:04]Write i2c OK [12:28:04]MH_I2C_Read... [12:28:05]*** Cut start [12:28:05]*** Partial cut [12:28:05]*** CUTSNS_PIN = 1 [12:28:05]*** CUTSNS_PIN = 0 [12:28:05]*** Brake cut motor [12:28:06]Read from MH i2c: 01 [12:28:06]MH_I2C_Read... [12:28:06]*** Stop cut motor [12:28:06]*** Cut end [12:28:06]Read from MH i2c: 01 07 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: 01 07 00 23 3B 00 00 00 00 00 FF 0F 73 [12:28:06]process_action print_text done [12:28:06]requested_data is exist [12:28:06]produce_requested_data [12:28:06]requested_item fm.sn is exist - process it [12:28:06]wFMCommunicate request_size=4 [12:28:06]MH_SAM_APDU [12:28:06]CAPDU: 80 11 00 00 [12:28:06]Write to MH i2c: E2 08 00 24 3B 80 11 00 00 00 00 00 00 D9 [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:06]Read from MH i2c: E2 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 17 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 17 00 24 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 28 [12:28:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:28:06]wFMCommunicate OK [12:28:06]requested_item fd.num is exist - process it [12:28:06]SAM_PROTO_GetFieldsCounters [12:28:06]wFMCommunicate request_size=4 [12:28:06]MH_SAM_APDU [12:28:06]CAPDU: 80 13 00 00 [12:28:06]Write to MH i2c: E2 08 00 25 3B 80 13 00 00 00 00 00 00 DC [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:06]Read from MH i2c: E2 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 62 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 62 00 25 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F4 70 00 00 0E 04 04 00 73 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 62 [12:28: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F4 70 00 00 0E 04 04 00 73 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:28:06]wFMCommunicate OK [12:28:06]SAM_PROTO_GetFieldsCounters done [12:28:06]requested_item shift.num is exist - process it [12:28:06]requested_item shift.opened is exist - process it [12:28:06]req_shift_opened [12:28:06]FM_GetShiftState [12:28:06]SAM_PROTO_GetShiftState [12:28:06]wFMCommunicate request_size=4 [12:28:06]MH_SAM_APDU [12:28:06]CAPDU: 80 13 01 00 [12:28:06]Write to MH i2c: E2 08 00 26 3B 80 13 01 00 00 00 00 00 DE [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:06]Read from MH i2c: E2 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 0E 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 0E 00 26 3B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F7 [12:28:06]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:28:06]wFMCommunicate OK [12:28:06]SAM_PROTO_GetShiftState done [12:28:06]FM_GetShiftState done [12:28:06]req_shift_opened done [12:28:06]requested_item shift.open_date is exist - process it [12:28:06]req_shift_open_date [12:28:06]req_shift_open_date done [12:28:06]produce_requested_data done [12:28:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28916,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [12:28:06]process_action_free print_text [12:28:06]json_value_free [12:28:06]json_value_free done [12:28:06]process_json_proto returns [12:28:06]Send response to host [12:28:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28916,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [12:28:06]free response buf [12:28:06]execute_script done [12:28:06]execute_script returns [12:28:06]free content buf [12:28:06]Sock 7.Close socket [12:28:06]Sock 7.Thread stoped [12:28:08]OFD Sender: No OFD packet to send [12:28:13]OFD Sender: No OFD packet to send [12:28:18]OFD Sender: No OFD packet to send [12:28:23]OFD Sender: No OFD packet to send [12:28:28]OFD Sender: No OFD packet to send [12:28:33]OFD Sender: No OFD packet to send [12:28:38]OFD Sender: No OFD packet to send [12:28:43]OFD Sender: No OFD packet to send [12:28:48]OFD Sender: No OFD packet to send [12:28:53]OFD Sender: No OFD packet to send [12:28:58]OFD Sender: No OFD packet to send [12:29:03]OFD Sender: No OFD packet to send [12:29:08]OFD Sender: No OFD packet to send [12:29:13]OFD Sender: No OFD packet to send [12:29:18]OFD Sender: No OFD packet to send [12:29:23]OFD Sender: No OFD packet to send [12:29:28]OFD Sender: No OFD packet to send [12:29:28]accept exits with 9 [12:29:28]New connection [12:29:28]New thread 3066785124 created [12:29:28]Thread 3066928484 joined [12:29:28]Waiting for new connection... [12:29:28] Sock 9.Parse request [12:29:28]Sock 9.Check first char [12:29:28]Sock 9.First char is OK [12:29:28]request: POST /json_proto HTTP/1.0 [12:29:28]Method: POST [12:29:28]URL: /json_proto [12:29:28]Method is POST - this is cgi request [12:29:28]url: /json_proto [12:29:28]query_string will be loaded in cgi processing [12:29:28]execute_cgi json_proto POST (null) [12:29:28]execute_cgi path=json_proto method=POST [12:29:28]POST find Content-Length [12:29:28]Host: 172.17.33.3:8080 [12:29:28]Content-Length: 843 [12:29:28]Content-Type: application/json [12:29:28] [12:29:28]POST finish read [12:29:28]Found Content-Length = 843 [12:29:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:28]execute_script... [12:29: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)347272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:28]POST & json_proto [12:29:28]process_json_proto [12:29:28]json parsed OK: [12:29:28]protocol is kg_v1.0 [12:29:28]action value=close_receipt [12:29:28]process_action close_receipt [12:29:28]cmd_close_receipt [12:29:28]MH_GetDate [12:29:28]Write to MH i2c: F0 00 00 27 3B 51 [12:29:28]Write i2c OK [12:29:28]MH_I2C_Read... [12:29:28]Read from MH i2c: F0 [12:29:28]MH_I2C_Read... [12:29:28]Read from MH i2c: F0 09 00 [12:29:28]MH_I2C_Read... [12:29:28]Read from MH i2c: F0 09 00 27 3B 00 AC 7A 1A 66 23 5B 8F 65 72 [12:29:28]GetLastDocTimeStamp 1713011259 [12:29:28]current date 1713011372 [12:29:28]FM_GetShiftState [12:29:28]SAM_PROTO_GetShiftState [12:29:28]wFMCommunicate request_size=4 [12:29:28]MH_SAM_APDU [12:29:28]CAPDU: 80 13 01 00 [12:29:28]Write to MH i2c: E2 08 00 28 3B 80 13 01 00 00 00 00 00 E0 [12:29:28]Write i2c OK [12:29:28]MH_I2C_Read... [12:29:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:28]Read from MH i2c: E2 [12:29:28]MH_I2C_Read... [12:29:28]Read from MH i2c: E2 0E 00 [12:29:28]MH_I2C_Read... [12:29:28]Read from MH i2c: E2 0E 00 28 3B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F9 [12:29:28]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:29:28]wFMCommunicate OK [12:29:28]SAM_PROTO_GetShiftState done [12:29:28]FM_GetShiftState done [12:29:28]opened in 1712967615 [12:29:28]opened+sec_in_day 1713054015 [12:29:28]quantity*price = 100050 [12:29:28]sum+1 = 100052 [12:29:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 124 13.04.2024 12:29 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28917 ФПД: 178288953430404 1/tax-web-control/client/api/v1/ticket?date=20240413T122933&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28917&fm=178288953430404&tin=02508201610067®Number=0000138879044617&sum=100051 [12:29:29]StoreToDocumentArchive [12:29:29]shift 115 fd 28917 [12:29:29]save to /storage/0115/doc_00028917 [12:29:29]save last doc name /storage/0115/doc_00028917 to /storage/kkm_last_doc_name [12:29:29]save OK [12:29:29]Clear old archive folders... [12:29:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:29:29]tlvbuf is 012845D0 [12:29:29]SAM_PROTO_ClearQueue [12:29:29]wFMCommunicate request_size=4 [12:29:29]MH_SAM_APDU [12:29:29]CAPDU: 80 09 00 00 [12:29:29]Write to MH i2c: E2 08 00 35 3B 80 09 00 00 00 00 00 00 E2 [12:29:29]Write i2c OK [12:29:29]MH_I2C_Read... [12:29:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:29]Read from MH i2c: E2 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 03 00 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 03 00 35 3B 00 90 00 E4 [12:29:29]RAPDU: 90 00 [12:29:29]wFMCommunicate OK [12:29:29]SAM_PROTO_ClearQueue done [12:29:29]KKMCreateOFDPacket [12:29:29]OFDProtocolAddRootSTLVToBuf [12:29:29]FM_MakeSignedData [12:29:29]FM_MakeSignedData [12:29:29]SAM_PROTO_SignData [12:29:29]wFMCommunicate request_size=4 [12:29:29]MH_SAM_APDU [12:29:29]CAPDU: 80 0D 01 02 [12:29:29]Write to MH i2c: E2 08 00 36 3B 80 0D 01 02 00 00 00 00 EA [12:29:29]Write i2c OK [12:29:29]MH_I2C_Read... [12:29:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:29]Read from MH i2c: E2 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 03 00 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 03 00 36 3B 00 90 00 E5 [12:29:29]RAPDU: 90 00 [12:29:29]wFMCommunicate OK [12:29:29]wFMCommunicate request_size=255 [12:29:29]MH_SAM_APDU [12:29: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 7C 00 00 00 F4 03 04 00 AD 7A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F5 70 00 00 35 04 06 00 A2 [12:29:29]Write to MH i2c: E2 02 01 37 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 7C 00 00 00 F4 03 04 00 AD 7A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F5 70 00 00 35 04 06 00 A2 00 00 19 [12:29:29]Write i2c OK [12:29:29]MH_I2C_Read... [12:29:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:29]Read from MH i2c: E2 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 03 00 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 03 00 37 3B 00 90 00 E6 [12:29:29]RAPDU: 90 00 [12:29:29]wFMCommunicate OK [12:29:29]wFMCommunicate request_size=10 [12:29:29]MH_SAM_APDU [12:29:29]CAPDU: 80 0D 02 02 05 27 21 BC 91 84 [12:29:29]Write to MH i2c: E2 0D 00 38 3B 80 0D 02 02 05 00 27 21 BC 91 84 00 00 10 [12:29:29]Write i2c OK [12:29:29]MH_I2C_Read... [12:29:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:29]Read from MH i2c: E2 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 03 00 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 03 00 38 3B 00 90 00 E7 [12:29:29]RAPDU: 90 00 [12:29:29]wFMCommunicate OK [12:29:29]wFMCommunicate request_size=4 [12:29:29]MH_SAM_APDU [12:29:29]CAPDU: 80 0D 03 02 [12:29:29]Write to MH i2c: E2 08 00 39 3B 80 0D 03 02 00 00 00 00 EF [12:29:29]Write i2c OK [12:29:29]MH_I2C_Read... [12:29:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:29]Read from MH i2c: E2 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 0B 00 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 0B 00 39 3B 00 73 00 93 04 A1 39 1D BF 90 00 B0 [12:29:29]RAPDU: 73 00 93 04 A1 39 1D BF 90 00 [12:29:29]wFMCommunicate OK [12:29:29]SAM_PROTO_SignData done [12:29:29]FM_MakeSignedData done [12:29:29]CreateOFDProtocolMessage [12:29:29]wFMCommunicate request_size=4 [12:29:29]MH_SAM_APDU [12:29:29]CAPDU: 80 11 00 00 [12:29:29]Write to MH i2c: E2 08 00 3A 3B 80 11 00 00 00 00 00 00 EF [12:29:29]Write i2c OK [12:29:29]MH_I2C_Read... [12:29:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:30]Read from MH i2c: E2 [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: E2 17 00 [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: E2 17 00 3A 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3E [12:29:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:29:30]wFMCommunicate OK [12:29:30]CreateOFDProtocolMessage done [12:29:30]OFDSenderStorePacket 28917 [12:29:30]StoreOFDPacket docnum=28917 [12:29:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D7 96 07 01 A1 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 7C 00 00 00 F4 03 04 00 AD 7A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F5 70 00 00 35 04 06 00 A2 27 21 BC 91 84 73 00 93 04 A1 39 1D BF [12:29:30]CheckFolder [12:29:30]dirname=/storage/ofd_packets [12:29:30]CheckFolder done [12:29:30]ProducePacketName [12:29:30]name=ofd_packets/00028917 [12:29:30]NVStorageSaveData ofd_packets/00028917 [12:29:30]File name is /storage/ofd_packets/00028917 [12:29:30]Write 301 bytes [12:29:30]NVStorageSaveData done [12:29:30]OFDSenderStorePacket done [12:29:30]KKMCreateOFDPacket done [12:29:30]NVStorageSaveData kkm_last_timestamp [12:29:30]File name is /storage/kkm_last_timestamp [12:29:30]Write 4 bytes [12:29:30]NVStorageSaveData done [12:29:30]ExternCall_PrintAddStr [12:29:30]wPrintStart [12:29:30]Write to MH i2c: 01 00 00 3B 3B 76 [12:29:30]Write i2c OK [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: 01 [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: 01 07 00 [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: 01 07 00 3B 3B 00 00 00 00 00 FF 0F 8B [12:29:30]RasterBufferAndPrint [12:29:30]line Счет N : (1)347272 [12:29:30]line ИНН: 02508201610067 [12:29:30]line Контрольно-Кассовый Чек [12:29:30]line ПРОДАЖА [12:29:30]line ТРК (МРК, ГНК) : 53 [12:29:30]line Товар: 2710124130 [12:29:30]line Аи-92-К-5 [12:29:30]line 15.560 * 64.30 [12:29:30]line = 1000.51 [12:29:30]line НДС 12% НСП 1% [12:29:30]line > о реализуемом товаре [12:29:30]line ИТОГО: 1000.51 [12:29:30]line НСП 1% : 8.85 [12:29:30]line НДС 12% : 106.25 [12:29:30]line Наличными: 0.00 [12:29:30]line Безнал.: 1000.51 [12:29:30]line Место: АЗС № 108 "Партнер Нефть" [12:29:30]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:29:30]line СНО: Общий режим [12:29:30]line Чек 124 13.04.2024 12:29 [12:29:30]line Смена: 115 ФФД: 1.0 [12:29:30]line ЗНМ: 0300000027 [12:29:30]line РНМ: 0000138879044617 [12:29:30]line Версия ККМ: 001 [12:29:30]line Платежная система: АКБ Кыргызстан [12:29:30]line ФМ: 0000000000963154 [12:29:30]line ФД: 28917 [12:29:30]line ФПД: 178288953430404 [12:29:30]line 1/tax-web-control/client/api/v1/ticket?date=20240413T122933&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28917&fm=178288953430404&tin=02508201610067®Number=0000138879044617&sum=100051 [12:29:30]OFD Sender: Processing packet 28917 [packets to send 8, broken 7] [12:29:30]ProducePacketName [12:29:30]name=ofd_packets/00028917 [12:29:30]OFD Sender: To server: pG, [12:29:30]CommunicateWithHost lk.salyk.kg:30040 [12:29:30]ConnectInit lk.salyk.kg [12:29:30]written 0, free lines is 4095 [12:29:30]Connected sock=10 [12:29: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 31 35 34 0F 01 00 00 D7 96 07 01 A1 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 7C 00 00 00 F4 03 04 00 AD 7A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F5 70 00 00 35 04 06 00 A2 27 21 BC 91 84 73 00 93 04 A1 39 1D BF [12:29:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C9 CA 47 00 1F 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F5 70 00 00 F4 03 04 00 54 25 1A 66 B6 04 01 00 00 19 59 9F 02 A2 B8 AC AA [12:29:30]CommunicateWithHost err = 0 [12:29:30]CheckOFDResponse [12:29:30]1017 (14) - 77093643461234 [12:29:30]1041 (16) - 0000000000963154 [12:29:30]1040 (4) - 28917 [12:29:30]1012 (4) - 13.04.2024 06:25 [12:29:30]1206 (1) - 0 [12:29:30]OFD Sender: Remove packet 28917 [12:29:30]ProducePacketName [12:29:30]name=ofd_packets/00028917 [12:29:30]NVStorageDeleteData [12:29:30]Write to MH i2c: 01 00 00 64 3B 9F [12:29:30]Write i2c OK [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: 01 [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: 01 07 00 [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: 01 07 00 64 3B 00 00 00 00 00 D6 0C 88 [12:29:30]RasterBufferAndPrint [12:29:30]line [12:29:30]line [12:29:30]line [12:29:30]line [12:29:30]line [12:29:30]written 0, free lines is 3292 [12:29:30]MH_Cut [12:29:30]Write to MH i2c: D1 01 00 6B 3B 01 78 [12:29:30]Write i2c OK [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: D1 [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: D1 01 00 [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: D1 01 00 6B 3B 00 77 [12:29:30]Write to MH i2c: 01 00 00 6C 3B A7 [12:29:30]Write i2c OK [12:29:30]MH_I2C_Read... [12:29:31]OFD Sender: No OFD packet to send [12:29:31]*** Cut start [12:29:31]*** Partial cut [12:29:31]*** CUTSNS_PIN = 1 [12:29:31]*** CUTSNS_PIN = 0 [12:29:31]*** Brake cut motor [12:29:32]Read from MH i2c: 01 [12:29:32]MH_I2C_Read... [12:29:32]*** Stop cut motor [12:29:32]*** Cut end [12:29:32]Read from MH i2c: 01 07 00 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: 01 07 00 6C 3B 00 00 00 00 00 FF 0F BC [12:29:32]process_action close_receipt done [12:29:32]requested_data is exist [12:29:32]produce_requested_data [12:29:32]requested_item fm.sn is exist - process it [12:29:32]wFMCommunicate request_size=4 [12:29:32]MH_SAM_APDU [12:29:32]CAPDU: 80 11 00 00 [12:29:32]Write to MH i2c: E2 08 00 6D 3B 80 11 00 00 00 00 00 00 22 [12:29:32]Write i2c OK [12:29:32]MH_I2C_Read... [12:29:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:32]Read from MH i2c: E2 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: E2 17 00 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: E2 17 00 6D 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 71 [12:29:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:29:32]wFMCommunicate OK [12:29:32]requested_item fd.num is exist - process it [12:29:32]SAM_PROTO_GetFieldsCounters [12:29:32]wFMCommunicate request_size=4 [12:29:32]MH_SAM_APDU [12:29:32]CAPDU: 80 13 00 00 [12:29:32]Write to MH i2c: E2 08 00 6E 3B 80 13 00 00 00 00 00 00 25 [12:29:32]Write i2c OK [12:29:32]MH_I2C_Read... [12:29:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:32]Read from MH i2c: E2 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: E2 62 00 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: E2 62 00 6E 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F5 70 00 00 0E 04 04 00 73 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 AF [12:29: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F5 70 00 00 0E 04 04 00 73 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:29:32]wFMCommunicate OK [12:29:32]SAM_PROTO_GetFieldsCounters done [12:29:32]requested_item shift.num is exist - process it [12:29:32]requested_item shift.opened is exist - process it [12:29:32]req_shift_opened [12:29:32]FM_GetShiftState [12:29:32]SAM_PROTO_GetShiftState [12:29:32]wFMCommunicate request_size=4 [12:29:32]MH_SAM_APDU [12:29:32]CAPDU: 80 13 01 00 [12:29:32]Write to MH i2c: E2 08 00 6F 3B 80 13 01 00 00 00 00 00 27 [12:29:32]Write i2c OK [12:29:32]MH_I2C_Read... [12:29:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:32]Read from MH i2c: E2 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: E2 0E 00 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: E2 0E 00 6F 3B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 40 [12:29:32]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:29:32]wFMCommunicate OK [12:29:32]SAM_PROTO_GetShiftState done [12:29:32]FM_GetShiftState done [12:29:32]req_shift_opened done [12:29:32]requested_item shift.open_date is exist - process it [12:29:32]req_shift_open_date [12:29:32]req_shift_open_date done [12:29:32]produce_requested_data done [12:29:32]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28917,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [12:29:32]process_action_free close_receipt [12:29:32]json_value_free [12:29:32]json_value_free done [12:29:32]process_json_proto returns [12:29:32]Send response to host [12:29:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28917,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [12:29:32]free response buf [12:29:32]execute_script done [12:29:32]execute_script returns [12:29:32]free content buf [12:29:32]Sock 9.Close socket [12:29:32]Sock 9.Thread stoped [12:29:36]OFD Sender: No OFD packet to send [12:29:41]OFD Sender: No OFD packet to send [12:29:46]OFD Sender: No OFD packet to send [12:29:51]OFD Sender: No OFD packet to send [12:29:56]OFD Sender: No OFD packet to send [12:30:01]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:21]OFD Sender: No OFD packet to send [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:51]OFD Sender: No OFD packet to send [12:31:56]OFD Sender: No OFD packet to send [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:39]accept exits with 7 [12:33:39]New connection [12:33:39]New thread 3066928484 created [12:33:39]Thread 3066785124 joined [12:33:39]Waiting for new connection... [12:33:39] Sock 7.Parse request [12:33:39]Sock 7.Check first char [12:33:39]Sock 7.First char is OK [12:33:39]request: POST /json_proto HTTP/1.0 [12:33:39]Method: POST [12:33:39]URL: /json_proto [12:33:39]Method is POST - this is cgi request [12:33:39]url: /json_proto [12:33:39]query_string will be loaded in cgi processing [12:33:39]execute_cgi json_proto POST (null) [12:33:39]execute_cgi path=json_proto method=POST [12:33:39]POST find Content-Length [12:33:39]Host: 172.17.33.3:8080 [12:33:39]Content-Length: 801 [12:33:39]Content-Type: application/json [12:33:39] [12:33:39]POST finish read [12:33:39]Found Content-Length = 801 [12:33:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 30.630, "sum" : 2000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:39]execute_script... [12:33: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)347273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 30.630, "sum" : 2000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:39]POST & json_proto [12:33:39]process_json_proto [12:33:39]json parsed OK: [12:33:39]protocol is kg_v1.0 [12:33:39]action value=close_receipt [12:33:39]process_action close_receipt [12:33:39]cmd_close_receipt [12:33:39]MH_GetDate [12:33:39]Write to MH i2c: F0 00 00 70 3B 9A [12:33:39]Write i2c OK [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: F0 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: F0 09 00 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: F0 09 00 70 3B 00 A8 7B 1A 66 23 5B 8F 65 B8 [12:33:39]GetLastDocTimeStamp 1713011373 [12:33:39]current date 1713011624 [12:33:39]FM_GetShiftState [12:33:39]SAM_PROTO_GetShiftState [12:33:39]wFMCommunicate request_size=4 [12:33:39]MH_SAM_APDU [12:33:39]CAPDU: 80 13 01 00 [12:33:39]Write to MH i2c: E2 08 00 71 3B 80 13 01 00 00 00 00 00 29 [12:33:39]Write i2c OK [12:33:39]MH_I2C_Read... [12:33:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:39]Read from MH i2c: E2 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 0E 00 [12:33:39]MH_I2C_Read... [12:33:39]Read from MH i2c: E2 0E 00 71 3B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 42 [12:33:39]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:33:39]wFMCommunicate OK [12:33:39]SAM_PROTO_GetShiftState done [12:33:39]FM_GetShiftState done [12:33:39]opened in 1712967615 [12:33:39]opened+sec_in_day 1713054015 [12:33:39]quantity*price = 200013 [12:33:39]sum+1 = 200015 [12:33:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.14 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.14 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 125 13.04.2024 12:33 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28918 ФПД: 252975367747739 1/tax-web-control/client/api/v1/ticket?date=20240413T123344&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28918&fm=252975367747739&tin=02508201610067®Number=0000138879044617&sum=200014 [12:33:40]StoreToDocumentArchive [12:33:40]shift 115 fd 28918 [12:33:40]save to /storage/0115/doc_00028918 [12:33:40]save last doc name /storage/0115/doc_00028918 to /storage/kkm_last_doc_name [12:33:40]save OK [12:33:40]Clear old archive folders... [12:33:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:33:40]tlvbuf is 0121C090 [12:33:40]SAM_PROTO_ClearQueue [12:33:40]wFMCommunicate request_size=4 [12:33:40]MH_SAM_APDU [12:33:40]CAPDU: 80 09 00 00 [12:33:40]Write to MH i2c: E2 08 00 7E 3B 80 09 00 00 00 00 00 00 2B [12:33:40]Write i2c OK [12:33:40]MH_I2C_Read... [12:33:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:40]Read from MH i2c: E2 [12:33:40]MH_I2C_Read... [12:33:40]Read from MH i2c: E2 03 00 [12:33:40]MH_I2C_Read... [12:33:40]Read from MH i2c: E2 03 00 7E 3B 00 90 00 2D [12:33:40]RAPDU: 90 00 [12:33:40]wFMCommunicate OK [12:33:40]SAM_PROTO_ClearQueue done [12:33:40]KKMCreateOFDPacket [12:33:40]OFDProtocolAddRootSTLVToBuf [12:33:40]FM_MakeSignedData [12:33:40]FM_MakeSignedData [12:33:40]SAM_PROTO_SignData [12:33:40]wFMCommunicate request_size=4 [12:33:40]MH_SAM_APDU [12:33:40]CAPDU: 80 0D 01 02 [12:33:40]Write to MH i2c: E2 08 00 7F 3B 80 0D 01 02 00 00 00 00 33 [12:33:40]Write i2c OK [12:33:40]MH_I2C_Read... [12:33:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:40]Read from MH i2c: E2 [12:33:40]MH_I2C_Read... [12:33:40]Read from MH i2c: E2 03 00 [12:33:40]MH_I2C_Read... [12:33:40]Read from MH i2c: E2 03 00 7F 3B 00 90 00 2E [12:33:40]RAPDU: 90 00 [12:33:40]wFMCommunicate OK [12:33:40]wFMCommunicate request_size=255 [12:33:40]MH_SAM_APDU [12:33:40]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 A8 7B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F6 70 00 00 35 04 06 00 [12:33:40]Write to MH i2c: E2 02 01 80 3B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 A8 7B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F6 70 00 00 35 04 06 00 00 00 09 [12:33:40]Write i2c OK [12:33:40]MH_I2C_Read... [12:33:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:41]Read from MH i2c: E2 [12:33:41]MH_I2C_Read... [12:33:41]Read from MH i2c: E2 03 00 [12:33:41]MH_I2C_Read... [12:33:41]Read from MH i2c: E2 03 00 80 3B 00 90 00 2F [12:33:41]RAPDU: 90 00 [12:33:41]wFMCommunicate OK [12:33:41]wFMCommunicate request_size=11 [12:33:41]MH_SAM_APDU [12:33:41]CAPDU: 80 0D 02 02 06 E6 14 6A EE 78 9B [12:33:41]Write to MH i2c: E2 0E 00 81 3B 80 0D 02 02 06 00 E6 14 6A EE 78 9B 00 00 A7 [12:33:41]Write i2c OK [12:33:41]MH_I2C_Read... [12:33:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:41]Read from MH i2c: E2 [12:33:41]MH_I2C_Read... [12:33:41]Read from MH i2c: E2 03 00 [12:33:41]MH_I2C_Read... [12:33:41]Read from MH i2c: E2 03 00 81 3B 00 90 00 30 [12:33:41]RAPDU: 90 00 [12:33:41]wFMCommunicate OK [12:33:41]wFMCommunicate request_size=4 [12:33:41]MH_SAM_APDU [12:33:41]CAPDU: 80 0D 03 02 [12:33:41]Write to MH i2c: E2 08 00 82 3B 80 0D 03 02 00 00 00 00 38 [12:33:41]Write i2c OK [12:33:41]MH_I2C_Read... [12:33:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:41]Read from MH i2c: E2 [12:33:41]MH_I2C_Read... [12:33:41]Read from MH i2c: E2 0B 00 [12:33:41]MH_I2C_Read... [12:33:41]Read from MH i2c: E2 0B 00 82 3B 00 D6 D0 F3 66 B8 3D FC 6D 90 00 96 [12:33:41]RAPDU: D6 D0 F3 66 B8 3D FC 6D 90 00 [12:33:41]wFMCommunicate OK [12:33:41]SAM_PROTO_SignData done [12:33:41]FM_MakeSignedData done [12:33:41]CreateOFDProtocolMessage [12:33:41]wFMCommunicate request_size=4 [12:33:41]MH_SAM_APDU [12:33:41]CAPDU: 80 11 00 00 [12:33:41]Write to MH i2c: E2 08 00 83 3B 80 11 00 00 00 00 00 00 38 [12:33:41]Write i2c OK [12:33:41]MH_I2C_Read... [12:33:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:41]Read from MH i2c: E2 [12:33:41]MH_I2C_Read... [12:33:41]Read from MH i2c: E2 17 00 [12:33:41]MH_I2C_Read... [12:33:41]Read from MH i2c: E2 17 00 83 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 87 [12:33:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:33:41]wFMCommunicate OK [12:33:41]CreateOFDProtocolMessage done [12:33:41]OFDSenderStorePacket 28918 [12:33:41]StoreOFDPacket docnum=28918 [12:33:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 2B 79 08 01 4C 4E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 A8 7B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F6 70 00 00 35 04 06 00 E6 14 6A EE 78 9B D6 D0 F3 66 B8 3D FC 6D [12:33:41]CheckFolder [12:33:41]dirname=/storage/ofd_packets [12:33:41]CheckFolder done [12:33:41]ProducePacketName [12:33:41]name=ofd_packets/00028918 [12:33:41]NVStorageSaveData ofd_packets/00028918 [12:33:41]File name is /storage/ofd_packets/00028918 [12:33:41]Write 302 bytes [12:33:41]NVStorageSaveData done [12:33:41]OFDSenderStorePacket done [12:33:41]KKMCreateOFDPacket done [12:33:41]NVStorageSaveData kkm_last_timestamp [12:33:41]File name is /storage/kkm_last_timestamp [12:33:41]Write 4 bytes [12:33:41]NVStorageSaveData done [12:33:41]OFD Sender: Processing packet 28918 [packets to send 8, broken 7] [12:33:41]ProducePacketName [12:33:41]name=ofd_packets/00028918 [12:33:41]OFD Sender: To server: pG, [12:33:41]CommunicateWithHost lk.salyk.kg:30040 [12:33:41]ConnectInit lk.salyk.kg [12:33:41]ExternCall_PrintAddStr [12:33:41]wPrintStart [12:33:41]Write to MH i2c: 01 00 00 84 3B BF [12:33:41]Write i2c OK [12:33:41]MH_I2C_Read... [12:33:41]Read from MH i2c: 01 [12:33:41]MH_I2C_Read... [12:33:41]Read from MH i2c: 01 07 00 [12:33:41]MH_I2C_Read... [12:33:41]Read from MH i2c: 01 07 00 84 3B 00 00 00 00 00 FF 0F D4 [12:33:41]RasterBufferAndPrint [12:33:41]line Счет N : (1)347273 [12:33:41]line ИНН: 02508201610067 [12:33:41]line Контрольно-Кассовый Чек [12:33:41]line ПРОДАЖА [12:33:41]line ТРК (МРК, ГНК) : 12 [12:33:41]line Товар: 2710124130 [12:33:41]line SUPER-92-К-5 [12:33:41]line 30.630 * 65.30 [12:33:41]line = 2000.14 [12:33:41]line НДС 12% НСП 1% [12:33:41]line > о реализуемом товаре [12:33:41]line ИТОГО: 2000.14 [12:33:41]line НСП 1% : 17.70 [12:33:41]line НДС 12% : 212.40 [12:33:41]line Наличными: 0.00 [12:33:41]line Безнал.: 2000.14 [12:33:41]line Место: АЗС № 108 "Партнер Нефть" [12:33:41]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:33:41]line СНО: Общий режим [12:33:41]line Чек 125 13.04.2024 12:33 [12:33:41]line Смена: 115 ФФД: 1.0 [12:33:41]line ЗНМ: 0300000027 [12:33:41]line РНМ: 0000138879044617 [12:33:41]line Версия ККМ: 001 [12:33:41]line Платежная система: О! деньги [12:33:41]line ФМ: 0000000000963154 [12:33:41]line ФД: 28918 [12:33:41]line ФПД: 252975367747739 [12:33:41]line 1/tax-web-control/client/api/v1/ticket?date=20240413T123344&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28918&fm=252975367747739&tin=02508201610067®Number=0000138879044617&sum=200014 [12:33:41]Connected sock=11 [12:33: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 31 35 34 10 01 00 00 2B 79 08 01 4C 4E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 A8 7B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F6 70 00 00 35 04 06 00 E6 14 6A EE 78 9B D6 D0 F3 66 B8 3D FC 6D [12:33:41]written 0, free lines is 4095 [12:33:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 70 64 47 00 A4 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F6 70 00 00 F4 03 04 00 4F 26 1A 66 B6 04 01 00 00 01 4E 68 AD 4B ED 80 26 [12:33:41]CommunicateWithHost err = 0 [12:33:41]CheckOFDResponse [12:33:41]1017 (14) - 77093643461234 [12:33:41]1041 (16) - 0000000000963154 [12:33:41]1040 (4) - 28918 [12:33:41]1012 (4) - 13.04.2024 06:29 [12:33:41]1206 (1) - 0 [12:33:41]OFD Sender: Remove packet 28918 [12:33:41]ProducePacketName [12:33:41]name=ofd_packets/00028918 [12:33:41]NVStorageDeleteData [12:33:42]Write to MH i2c: 01 00 00 AD 3B E8 [12:33:42]Write i2c OK [12:33:42]MH_I2C_Read... [12:33:42]Read from MH i2c: 01 [12:33:42]MH_I2C_Read... [12:33:42]Read from MH i2c: 01 07 00 [12:33:42]MH_I2C_Read... [12:33:42]Read from MH i2c: 01 07 00 AD 3B 00 00 00 00 00 E4 0C DF [12:33:42]RasterBufferAndPrint [12:33:42]line [12:33:42]line [12:33:42]line [12:33:42]line [12:33:42]line [12:33:42]written 0, free lines is 3306 [12:33:42]MH_Cut [12:33:42]Write to MH i2c: D1 01 00 B4 3B 01 C1 [12:33:42]Write i2c OK [12:33:42]MH_I2C_Read... [12:33:42]Read from MH i2c: D1 [12:33:42]MH_I2C_Read... [12:33:42]Read from MH i2c: D1 01 00 [12:33:42]MH_I2C_Read... [12:33:42]Read from MH i2c: D1 01 00 B4 3B 00 C0 [12:33:42]Write to MH i2c: 01 00 00 B5 3B F0 [12:33:42]Write i2c OK [12:33:42]MH_I2C_Read... [12:33:42]OFD Sender: No OFD packet to send [12:33:42]*** Cut start [12:33:42]*** Partial cut [12:33:42]*** CUTSNS_PIN = 1 [12:33:43]*** CUTSNS_PIN = 0 [12:33:43]*** Brake cut motor [12:33:43]Read from MH i2c: 01 [12:33:43]MH_I2C_Read... [12:33:43]*** Stop cut motor [12:33:43]*** Cut end [12:33:43]Read from MH i2c: 01 07 00 [12:33:43]MH_I2C_Read... [12:33:43]Read from MH i2c: 01 07 00 B5 3B 00 00 00 00 00 FF 0F 05 [12:33:43]process_action close_receipt done [12:33:43]requested_data is exist [12:33:43]produce_requested_data [12:33:43]requested_item fm.sn is exist - process it [12:33:43]wFMCommunicate request_size=4 [12:33:43]MH_SAM_APDU [12:33:43]CAPDU: 80 11 00 00 [12:33:43]Write to MH i2c: E2 08 00 B6 3B 80 11 00 00 00 00 00 00 6B [12:33:43]Write i2c OK [12:33:43]MH_I2C_Read... [12:33:43]Read from MH i2c: E2 [12:33:43]MH_I2C_Read... [12:33:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:43]Read from MH i2c: E2 17 00 [12:33:43]MH_I2C_Read... [12:33:43]Read from MH i2c: E2 17 00 B6 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BA [12:33:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:33:43]wFMCommunicate OK [12:33:43]requested_item fd.num is exist - process it [12:33:43]SAM_PROTO_GetFieldsCounters [12:33:43]wFMCommunicate request_size=4 [12:33:43]MH_SAM_APDU [12:33:43]CAPDU: 80 13 00 00 [12:33:43]Write to MH i2c: E2 08 00 B7 3B 80 13 00 00 00 00 00 00 6E [12:33:43]Write i2c OK [12:33:43]MH_I2C_Read... [12:33:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:43]Read from MH i2c: E2 [12:33:43]MH_I2C_Read... [12:33:43]Read from MH i2c: E2 62 00 [12:33:43]MH_I2C_Read... [12:33:43]Read from MH i2c: E2 62 00 B7 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F6 70 00 00 0E 04 04 00 73 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 FC [12:33: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F6 70 00 00 0E 04 04 00 73 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:33:43]wFMCommunicate OK [12:33:43]SAM_PROTO_GetFieldsCounters done [12:33:43]requested_item shift.num is exist - process it [12:33:43]requested_item shift.opened is exist - process it [12:33:43]req_shift_opened [12:33:43]FM_GetShiftState [12:33:43]SAM_PROTO_GetShiftState [12:33:43]wFMCommunicate request_size=4 [12:33:43]MH_SAM_APDU [12:33:43]CAPDU: 80 13 01 00 [12:33:43]Write to MH i2c: E2 08 00 B8 3B 80 13 01 00 00 00 00 00 70 [12:33:43]Write i2c OK [12:33:43]MH_I2C_Read... [12:33:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:43]Read from MH i2c: E2 [12:33:43]MH_I2C_Read... [12:33:43]Read from MH i2c: E2 0E 00 [12:33:43]MH_I2C_Read... [12:33:43]Read from MH i2c: E2 0E 00 B8 3B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 89 [12:33:43]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:33:43]wFMCommunicate OK [12:33:43]SAM_PROTO_GetShiftState done [12:33:43]FM_GetShiftState done [12:33:43]req_shift_opened done [12:33:43]requested_item shift.open_date is exist - process it [12:33:43]req_shift_open_date [12:33:43]req_shift_open_date done [12:33:43]produce_requested_data done [12:33:43]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28918,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [12:33:43]process_action_free close_receipt [12:33:43]json_value_free [12:33:43]json_value_free done [12:33:43]process_json_proto returns [12:33:43]Send response to host [12:33:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28918,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [12:33:43]free response buf [12:33:43]execute_script done [12:33:43]execute_script returns [12:33:43]free content buf [12:33:43]Sock 7.Close socket [12:33:43]Sock 7.Thread stoped [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:22]OFD Sender: No OFD packet to send [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:37]OFD Sender: No OFD packet to send [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:12]OFD Sender: No OFD packet to send [12:35:17]OFD Sender: No OFD packet to send [12:35:22]OFD Sender: No OFD packet to send [12:35:27]OFD Sender: No OFD packet to send [12:35:32]OFD Sender: No OFD packet to send [12:35:37]OFD Sender: No OFD packet to send [12:35:42]OFD Sender: No OFD packet to send [12:35:47]OFD Sender: No OFD packet to send [12:35:52]OFD Sender: No OFD packet to send [12:35:57]OFD Sender: No OFD packet to send [12:36:02]OFD Sender: No OFD packet to send [12:36:07]OFD Sender: No OFD packet to send [12:36:12]OFD Sender: No OFD packet to send [12:36:17]OFD Sender: No OFD packet to send [12:36:22]OFD Sender: No OFD packet to send [12:36:27]OFD Sender: No OFD packet to send [12:36:32]OFD Sender: No OFD packet to send [12:36:37]OFD Sender: No OFD packet to send [12:36:42]OFD Sender: No OFD packet to send [12:36:47]OFD Sender: No OFD packet to send [12:36:52]OFD Sender: No OFD packet to send [12:36:57]OFD Sender: No OFD packet to send [12:37:02]OFD Sender: No OFD packet to send [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:17]OFD Sender: No OFD packet to send [12:37:22]OFD Sender: No OFD packet to send [12:37:27]OFD Sender: No OFD packet to send [12:37:32]OFD Sender: No OFD packet to send [12:37:37]OFD Sender: No OFD packet to send [12:37:42]OFD Sender: No OFD packet to send [12:37:47]OFD Sender: No OFD packet to send [12:37:52]OFD Sender: No OFD packet to send [12:37:57]OFD Sender: No OFD packet to send [12:38:02]OFD Sender: No OFD packet to send [12:38:07]OFD Sender: No OFD packet to send [12:38:12]OFD Sender: No OFD packet to send [12:38:17]OFD Sender: No OFD packet to send [12:38:22]OFD Sender: No OFD packet to send [12:38:27]OFD Sender: No OFD packet to send [12:38:32]OFD Sender: No OFD packet to send [12:38:37]OFD Sender: No OFD packet to send [12:38:42]OFD Sender: No OFD packet to send [12:38:47]OFD Sender: No OFD packet to send [12:38:52]OFD Sender: No OFD packet to send [12:38:57]OFD Sender: No OFD packet to send [12:39:02]OFD Sender: No OFD packet to send [12:39:07]OFD Sender: No OFD packet to send [12:39:12]OFD Sender: No OFD packet to send [12:39:17]OFD Sender: No OFD packet to send [12:39:22]OFD Sender: No OFD packet to send [12:39:27]OFD Sender: No OFD packet to send [12:39:32]OFD Sender: No OFD packet to send [12:39:37]OFD Sender: No OFD packet to send [12:39:42]OFD Sender: No OFD packet to send [12:39:47]OFD Sender: No OFD packet to send [12:39:52]OFD Sender: No OFD packet to send [12:39:57]OFD Sender: No OFD packet to send [12:40:02]OFD Sender: No OFD packet to send [12:40:07]OFD Sender: No OFD packet to send [12:40:12]OFD Sender: No OFD packet to send [12:40:17]OFD Sender: No OFD packet to send [12:40:22]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [12:42:29]accept exits with 9 [12:42:29]New connection [12:42:29]New thread 3066785124 created [12:42:29]Thread 3066928484 joined [12:42:29]Waiting for new connection... [12:42:29] Sock 9.Parse request [12:42:29]Sock 9.Check first char [12:42:29]Sock 9.First char is OK [12:42:29]request: POST /json_proto HTTP/1.0 [12:42:29]Method: POST [12:42:29]URL: /json_proto [12:42:29]Method is POST - this is cgi request [12:42:29]url: /json_proto [12:42:29]query_string will be loaded in cgi processing [12:42:29]execute_cgi json_proto POST (null) [12:42:29]execute_cgi path=json_proto method=POST [12:42:29]POST find Content-Length [12:42:29]Host: 172.17.33.3:8080 [12:42:29]Content-Length: 677 [12:42:29]Content-Type: application/json [12:42:29] [12:42:29]POST finish read [12:42:29]Found Content-Length = 677 [12:42:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.800, "sum" : 630.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 630.00, "total" : 630.00, "payments": [ { "type": 0, "sum" : 630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:29]execute_script... [12:42: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)347274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.800, "sum" : 630.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 630.00, "total" : 630.00, "payments": [ { "type": 0, "sum" : 630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:29]POST & json_proto [12:42:29]process_json_proto [12:42:29]json parsed OK: [12:42:29]protocol is kg_v1.0 [12:42:29]action value=close_receipt [12:42:29]process_action close_receipt [12:42:29]cmd_close_receipt [12:42:29]MH_GetDate [12:42:29]Write to MH i2c: F0 00 00 B9 3B E3 [12:42:29]Write i2c OK [12:42:29]MH_I2C_Read... [12:42:29]Read from MH i2c: F0 [12:42:29]MH_I2C_Read... [12:42:29]Read from MH i2c: F0 09 00 [12:42:29]MH_I2C_Read... [12:42:29]Read from MH i2c: F0 09 00 B9 3B 00 BA 7D 1A 66 23 5B 8F 65 15 [12:42:29]GetLastDocTimeStamp 1713011624 [12:42:29]current date 1713012154 [12:42:29]FM_GetShiftState [12:42:29]SAM_PROTO_GetShiftState [12:42:29]wFMCommunicate request_size=4 [12:42:29]MH_SAM_APDU [12:42:29]CAPDU: 80 13 01 00 [12:42:29]Write to MH i2c: E2 08 00 BA 3B 80 13 01 00 00 00 00 00 72 [12:42:29]Write i2c OK [12:42:29]MH_I2C_Read... [12:42:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:29]Read from MH i2c: E2 [12:42:29]MH_I2C_Read... [12:42:29]Read from MH i2c: E2 0E 00 [12:42:29]MH_I2C_Read... [12:42:29]Read from MH i2c: E2 0E 00 BA 3B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 8B [12:42:29]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:42:29]wFMCommunicate OK [12:42:29]SAM_PROTO_GetShiftState done [12:42:29]FM_GetShiftState done [12:42:29]opened in 1712967615 [12:42:29]opened+sec_in_day 1713054015 [12:42:29]quantity*price = 63014 [12:42:29]sum+1 = 63015 [12:42:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 630.00 Внесено: 630.00 СДАЧА: 0.00 НСП 1% : 5.58 НДС 12% : 66.92 Наличными: 630.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 126 13.04.2024 12:42 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28919 ФПД: 200620204939376 1/tax-web-control/client/api/v1/ticket?date=20240413T124234&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28919&fm=200620204939376&tin=02508201610067®Number=0000138879044617&sum=63000 [12:42:31]StoreToDocumentArchive [12:42:31]shift 115 fd 28919 [12:42:31]save to /storage/0115/doc_00028919 [12:42:31]save last doc name /storage/0115/doc_00028919 to /storage/kkm_last_doc_name [12:42:31]save OK [12:42:31]Clear old archive folders... [12:42:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:31]tlvbuf is 012087A0 [12:42:31]SAM_PROTO_ClearQueue [12:42:31]wFMCommunicate request_size=4 [12:42:31]MH_SAM_APDU [12:42:31]CAPDU: 80 09 00 00 [12:42:31]Write to MH i2c: E2 08 00 C7 3B 80 09 00 00 00 00 00 00 74 [12:42:31]Write i2c OK [12:42:31]MH_I2C_Read... [12:42:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:31]Read from MH i2c: E2 [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: E2 03 00 [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: E2 03 00 C7 3B 00 90 00 76 [12:42:31]RAPDU: 90 00 [12:42:31]wFMCommunicate OK [12:42:31]SAM_PROTO_ClearQueue done [12:42:31]KKMCreateOFDPacket [12:42:31]OFDProtocolAddRootSTLVToBuf [12:42:31]FM_MakeSignedData [12:42:31]FM_MakeSignedData [12:42:31]SAM_PROTO_SignData [12:42:31]wFMCommunicate request_size=4 [12:42:31]MH_SAM_APDU [12:42:31]CAPDU: 80 0D 01 02 [12:42:31]Write to MH i2c: E2 08 00 C8 3B 80 0D 01 02 00 00 00 00 7C [12:42:31]Write i2c OK [12:42:31]MH_I2C_Read... [12:42:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:31]Read from MH i2c: E2 [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: E2 03 00 [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: E2 03 00 C8 3B 00 90 00 77 [12:42:31]RAPDU: 90 00 [12:42:31]wFMCommunicate OK [12:42:31]wFMCommunicate request_size=255 [12:42:31]MH_SAM_APDU [12:42: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 48 26 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 26 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 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 BA 7D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F7 70 00 00 35 04 06 00 B6 [12:42:31]Write to MH i2c: E2 02 01 C9 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 48 26 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 26 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 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 BA 7D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F7 70 00 00 35 04 06 00 B6 00 00 B3 [12:42:31]Write i2c OK [12:42:31]MH_I2C_Read... [12:42:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:31]Read from MH i2c: E2 [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: E2 03 00 [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: E2 03 00 C9 3B 00 90 00 78 [12:42:31]RAPDU: 90 00 [12:42:31]wFMCommunicate OK [12:42:31]wFMCommunicate request_size=10 [12:42:31]MH_SAM_APDU [12:42:31]CAPDU: 80 0D 02 02 05 76 88 0C D8 70 [12:42:31]Write to MH i2c: E2 0D 00 CA 3B 80 0D 02 02 05 00 76 88 0C D8 70 00 00 DB [12:42:31]Write i2c OK [12:42:31]MH_I2C_Read... [12:42:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:31]Read from MH i2c: E2 [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: E2 03 00 [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: E2 03 00 CA 3B 00 90 00 79 [12:42:31]RAPDU: 90 00 [12:42:31]wFMCommunicate OK [12:42:31]wFMCommunicate request_size=4 [12:42:31]MH_SAM_APDU [12:42:31]CAPDU: 80 0D 03 02 [12:42:31]Write to MH i2c: E2 08 00 CB 3B 80 0D 03 02 00 00 00 00 81 [12:42:31]Write i2c OK [12:42:31]MH_I2C_Read... [12:42:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:31]Read from MH i2c: E2 [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: E2 0B 00 [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: E2 0B 00 CB 3B 00 AE 44 F0 C4 71 AA 04 49 90 00 90 [12:42:31]RAPDU: AE 44 F0 C4 71 AA 04 49 90 00 [12:42:31]wFMCommunicate OK [12:42:31]SAM_PROTO_SignData done [12:42:31]FM_MakeSignedData done [12:42:31]CreateOFDProtocolMessage [12:42:31]wFMCommunicate request_size=4 [12:42:31]MH_SAM_APDU [12:42:31]CAPDU: 80 11 00 00 [12:42:31]Write to MH i2c: E2 08 00 CC 3B 80 11 00 00 00 00 00 00 81 [12:42:31]Write i2c OK [12:42:31]MH_I2C_Read... [12:42:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:31]Read from MH i2c: E2 [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: E2 17 00 [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: E2 17 00 CC 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D0 [12:42:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:42:31]wFMCommunicate OK [12:42:31]CreateOFDProtocolMessage done [12:42:31]OFDSenderStorePacket 28919 [12:42:31]StoreOFDPacket docnum=28919 [12:42:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 1B B4 07 01 BF EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 26 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 26 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 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 BA 7D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F7 70 00 00 35 04 06 00 B6 76 88 0C D8 70 AE 44 F0 C4 71 AA 04 49 [12:42:31]CheckFolder [12:42:31]dirname=/storage/ofd_packets [12:42:31]CheckFolder done [12:42:31]ProducePacketName [12:42:31]name=ofd_packets/00028919 [12:42:31]NVStorageSaveData ofd_packets/00028919 [12:42:31]File name is /storage/ofd_packets/00028919 [12:42:31]Write 301 bytes [12:42:31]NVStorageSaveData done [12:42:31]OFDSenderStorePacket done [12:42:31]KKMCreateOFDPacket done [12:42:31]NVStorageSaveData kkm_last_timestamp [12:42:31]File name is /storage/kkm_last_timestamp [12:42:31]Write 4 bytes [12:42:31]NVStorageSaveData done [12:42:31]ExternCall_PrintAddStr [12:42:31]wPrintStart [12:42:31]Write to MH i2c: 01 00 00 CD 3B 08 [12:42:31]Write i2c OK [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: 01 [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: 01 07 00 [12:42:31]MH_I2C_Read... [12:42:31]Read from MH i2c: 01 07 00 CD 3B 00 00 00 00 00 FF 0F 1D [12:42:31]RasterBufferAndPrint [12:42:31]line Счет N : (1)347274 [12:42:31]line ИНН: 02508201610067 [12:42:31]line Контрольно-Кассовый Чек [12:42:31]line ПРОДАЖА [12:42:31]line ТРК (МРК, ГНК) : 23 [12:42:31]line Товар: 2710124130 [12:42:31]line Аи-92-К-5 [12:42:31]line 9.800 * 64.30 [12:42:31]line = 630.14 [12:42:31]line НДС 12% НСП 1% [12:42:31]line > о реализуемом товаре [12:42:31]line ОКРУГЛЕНИЕ: -0.14 [12:42:31]line ИТОГО: 630.00 [12:42:31]line Внесено: 630.00 [12:42:31]line СДАЧА: 0.00 [12:42:31]line НСП 1% : 5.58 [12:42:31]line НДС 12% : 66.92 [12:42:31]line Наличными: 630.00 [12:42:31]line Безнал.: 0.00 [12:42:31]line Место: АЗС № 108 "Партнер Нефть" [12:42:31]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:42:31]line СНО: Общий режим [12:42:31]line Чек 126 13.04.2024 12:42 [12:42:31]line Смена: 115 ФФД: 1.0 [12:42:31]line ЗНМ: 0300000027 [12:42:31]line РНМ: 0000138879044617 [12:42:31]line Версия ККМ: 001 [12:42:31]line ФМ: 0000000000963154 [12:42:31]line ФД: 28919 [12:42:31]line ФПД: 200620204939376 [12:42:31]line 1/tax-web-control/client/api/v1/ticket?date=20240413T124234&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28919&fm=200620204939376&tin=02508201610067®Number=0000138879044617&sum=63000 [12:42:31]OFD Sender: Processing packet 28919 [packets to send 8, broken 7] [12:42:31]ProducePacketName [12:42:31]name=ofd_packets/00028919 [12:42:31]OFD Sender: To server: pG, [12:42:31]CommunicateWithHost lk.salyk.kg:30040 [12:42:31]ConnectInit lk.salyk.kg [12:42:31]written 0, free lines is 4095 [12:42:31]Connected sock=10 [12:42: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 31 35 34 0F 01 00 00 1B B4 07 01 BF EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 26 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 26 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 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 BA 7D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F7 70 00 00 35 04 06 00 B6 76 88 0C D8 70 AE 44 F0 C4 71 AA 04 49 [12:42:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C5 84 47 00 81 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 31 35 34 10 04 04 00 F7 70 00 00 F4 03 04 00 61 28 1A 66 B6 04 01 00 00 2B 7F 27 51 DC 03 BB E0 [12:42:32]CommunicateWithHost err = 0 [12:42:32]CheckOFDResponse [12:42:32]1017 (14) - 77093643461234 [12:42:32]1041 (16) - 0000000000963154 [12:42:32]1040 (4) - 28919 [12:42:32]1012 (4) - 13.04.2024 06:38 [12:42:32]1206 (1) - 0 [12:42:32]OFD Sender: Remove packet 28919 [12:42:32]ProducePacketName [12:42:32]name=ofd_packets/00028919 [12:42:32]NVStorageDeleteData [12:42:32]Write to MH i2c: 01 00 00 F7 3B 32 [12:42:32]Write i2c OK [12:42:32]MH_I2C_Read... [12:42:32]Read from MH i2c: 01 [12:42:32]MH_I2C_Read... [12:42:32]Read from MH i2c: 01 07 00 [12:42:32]MH_I2C_Read... [12:42:32]Read from MH i2c: 01 07 00 F7 3B 00 00 00 00 00 C1 0C 06 [12:42:32]RasterBufferAndPrint [12:42:32]line [12:42:32]line [12:42:32]line [12:42:32]line [12:42:32]line [12:42:32]written 0, free lines is 3271 [12:42:32]MH_Cut [12:42:32]Write to MH i2c: D1 01 00 FE 3B 01 0B [12:42:32]Write i2c OK [12:42:32]MH_I2C_Read... [12:42:32]Read from MH i2c: D1 [12:42:32]MH_I2C_Read... [12:42:32]Read from MH i2c: D1 01 00 [12:42:32]MH_I2C_Read... [12:42:32]Read from MH i2c: D1 01 00 FE 3B 00 0A [12:42:32]Write to MH i2c: 01 00 00 FF 3B 3A [12:42:32]Write i2c OK [12:42:32]MH_I2C_Read... [12:42:32]OFD Sender: No OFD packet to send [12:42:33]*** Cut start [12:42:33]*** Partial cut [12:42:33]*** CUTSNS_PIN = 1 [12:42:33]*** CUTSNS_PIN = 0 [12:42:33]*** Brake cut motor [12:42:33]Read from MH i2c: 01 [12:42:33]MH_I2C_Read... [12:42:33]*** Stop cut motor [12:42:33]*** Cut end [12:42:33]Read from MH i2c: 01 07 00 [12:42:33]MH_I2C_Read... [12:42:33]Read from MH i2c: 01 07 00 FF 3B 00 00 00 00 00 FF 0F 4F [12:42:33]process_action close_receipt done [12:42:33]requested_data is exist [12:42:33]produce_requested_data [12:42:33]requested_item fm.sn is exist - process it [12:42:33]wFMCommunicate request_size=4 [12:42:33]MH_SAM_APDU [12:42:33]CAPDU: 80 11 00 00 [12:42:33]Write to MH i2c: E2 08 00 00 3C 80 11 00 00 00 00 00 00 B6 [12:42:33]Write i2c OK [12:42:33]MH_I2C_Read... [12:42:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:33]Read from MH i2c: E2 [12:42:33]MH_I2C_Read... [12:42:33]Read from MH i2c: E2 17 00 [12:42:33]MH_I2C_Read... [12:42:33]Read from MH i2c: E2 17 00 00 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 05 [12:42:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:42:33]wFMCommunicate OK [12:42:33]requested_item fd.num is exist - process it [12:42:33]SAM_PROTO_GetFieldsCounters [12:42:33]wFMCommunicate request_size=4 [12:42:33]MH_SAM_APDU [12:42:33]CAPDU: 80 13 00 00 [12:42:33]Write to MH i2c: E2 08 00 01 3C 80 13 00 00 00 00 00 00 B9 [12:42:33]Write i2c OK [12:42:33]MH_I2C_Read... [12:42:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:33]Read from MH i2c: E2 [12:42:33]MH_I2C_Read... [12:42:33]Read from MH i2c: E2 62 00 [12:42:33]MH_I2C_Read... [12:42:33]Read from MH i2c: E2 62 00 01 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F7 70 00 00 0E 04 04 00 73 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 4B [12:42: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F7 70 00 00 0E 04 04 00 73 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:42:33]wFMCommunicate OK [12:42:33]SAM_PROTO_GetFieldsCounters done [12:42:33]requested_item shift.num is exist - process it [12:42:33]requested_item shift.opened is exist - process it [12:42:33]req_shift_opened [12:42:33]FM_GetShiftState [12:42:33]SAM_PROTO_GetShiftState [12:42:33]wFMCommunicate request_size=4 [12:42:33]MH_SAM_APDU [12:42:33]CAPDU: 80 13 01 00 [12:42:33]Write to MH i2c: E2 08 00 02 3C 80 13 01 00 00 00 00 00 BB [12:42:33]Write i2c OK [12:42:33]MH_I2C_Read... [12:42:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:34]Read from MH i2c: E2 [12:42:34]MH_I2C_Read... [12:42:34]Read from MH i2c: E2 0E 00 [12:42:34]MH_I2C_Read... [12:42:34]Read from MH i2c: E2 0E 00 02 3C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D4 [12:42:34]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:42:34]wFMCommunicate OK [12:42:34]SAM_PROTO_GetShiftState done [12:42:34]FM_GetShiftState done [12:42:34]req_shift_opened done [12:42:34]requested_item shift.open_date is exist - process it [12:42:34]req_shift_open_date [12:42:34]req_shift_open_date done [12:42:34]produce_requested_data done [12:42:34]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28919,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [12:42:34]process_action_free close_receipt [12:42:34]json_value_free [12:42:34]json_value_free done [12:42:34]process_json_proto returns [12:42:34]Send response to host [12:42:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28919,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [12:42:34]free response buf [12:42:34]execute_script done [12:42:34]execute_script returns [12:42:34]free content buf [12:42:34]Sock 9.Close socket [12:42:34]Sock 9.Thread stoped [12:42:37]OFD Sender: No OFD packet to send [12:42:42]OFD Sender: No OFD packet to send [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:37]OFD Sender: No OFD packet to send [12:43:42]OFD Sender: No OFD packet to send [12:43:47]OFD Sender: No OFD packet to send [12:43:52]OFD Sender: No OFD packet to send [12:43:57]OFD Sender: No OFD packet to send [12:44:02]OFD Sender: No OFD packet to send [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:17]OFD Sender: No OFD packet to send [12:44:22]OFD Sender: No OFD packet to send [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:37]OFD Sender: No OFD packet to send [12:44:42]OFD Sender: No OFD packet to send [12:44:47]OFD Sender: No OFD packet to send [12:44:52]OFD Sender: No OFD packet to send [12:44:57]OFD Sender: No OFD packet to send [12:45:02]OFD Sender: No OFD packet to send [12:45:07]OFD Sender: No OFD packet to send [12:45:12]OFD Sender: No OFD packet to send [12:45:17]OFD Sender: No OFD packet to send [12:45:22]OFD Sender: No OFD packet to send [12:45:27]OFD Sender: No OFD packet to send [12:45:32]OFD Sender: No OFD packet to send [12:45:34]accept exits with 7 [12:45:34]New connection [12:45:34]New thread 3066928484 created [12:45:34]Thread 3066785124 joined [12:45:34]Waiting for new connection... [12:45:34] Sock 7.Parse request [12:45:34]Sock 7.Check first char [12:45:34]Sock 7.First char is OK [12:45:34]request: POST /json_proto HTTP/1.0 [12:45:34]Method: POST [12:45:34]URL: /json_proto [12:45:34]Method is POST - this is cgi request [12:45:34]url: /json_proto [12:45:34]query_string will be loaded in cgi processing [12:45:34]execute_cgi json_proto POST (null) [12:45:34]execute_cgi path=json_proto method=POST [12:45:34]POST find Content-Length [12:45:34]Host: 172.17.33.3:8080 [12:45:34]Content-Length: 677 [12:45:34]Content-Type: application/json [12:45:34] [12:45:34]POST finish read [12:45:34]Found Content-Length = 677 [12:45:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347276", "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" : 72.50, "quantity" : 6.900, "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" ] } } [12:45:34]execute_script... [12:45: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)347276", "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" : 72.50, "quantity" : 6.900, "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" ] } } [12:45:34]POST & json_proto [12:45:34]process_json_proto [12:45:34]json parsed OK: [12:45:34]protocol is kg_v1.0 [12:45:34]action value=close_receipt [12:45:34]process_action close_receipt [12:45:34]cmd_close_receipt [12:45:34]MH_GetDate [12:45:34]Write to MH i2c: F0 00 00 03 3C 2E [12:45:34]Write i2c OK [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: F0 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: F0 09 00 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: F0 09 00 03 3C 00 72 7E 1A 66 23 5B 8F 65 19 [12:45:34]GetLastDocTimeStamp 1713012154 [12:45:34]current date 1713012338 [12:45:34]FM_GetShiftState [12:45:34]SAM_PROTO_GetShiftState [12:45:34]wFMCommunicate request_size=4 [12:45:34]MH_SAM_APDU [12:45:34]CAPDU: 80 13 01 00 [12:45:34]Write to MH i2c: E2 08 00 04 3C 80 13 01 00 00 00 00 00 BD [12:45:34]Write i2c OK [12:45:34]MH_I2C_Read... [12:45:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:34]Read from MH i2c: E2 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 0E 00 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 0E 00 04 3C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D6 [12:45:34]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:45:34]wFMCommunicate OK [12:45:34]SAM_PROTO_GetShiftState done [12:45:34]FM_GetShiftState done [12:45:34]opened in 1712967615 [12:45:34]opened+sec_in_day 1713054015 [12:45:34]quantity*price = 50025 [12:45:34]sum+1 = 50026 [12:45:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 127 13.04.2024 12:45 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28920 ФПД: 189590612737279 1/tax-web-control/client/api/v1/ticket?date=20240413T124538&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28920&fm=189590612737279&tin=02508201610067®Number=0000138879044617&sum=50000 [12:45:35]StoreToDocumentArchive [12:45:35]shift 115 fd 28920 [12:45:35]save to /storage/0115/doc_00028920 [12:45:35]save last doc name /storage/0115/doc_00028920 to /storage/kkm_last_doc_name [12:45:35]save OK [12:45:35]Clear old archive folders... [12:45:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:45:35]tlvbuf is 012337C0 [12:45:35]SAM_PROTO_ClearQueue [12:45:35]wFMCommunicate request_size=4 [12:45:35]MH_SAM_APDU [12:45:35]CAPDU: 80 09 00 00 [12:45:35]Write to MH i2c: E2 08 00 11 3C 80 09 00 00 00 00 00 00 BF [12:45:35]Write i2c OK [12:45:35]MH_I2C_Read... [12:45:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:35]Read from MH i2c: E2 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: E2 03 00 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: E2 03 00 11 3C 00 90 00 C1 [12:45:35]RAPDU: 90 00 [12:45:35]wFMCommunicate OK [12:45:35]SAM_PROTO_ClearQueue done [12:45:35]KKMCreateOFDPacket [12:45:35]OFDProtocolAddRootSTLVToBuf [12:45:35]FM_MakeSignedData [12:45:35]FM_MakeSignedData [12:45:35]SAM_PROTO_SignData [12:45:35]wFMCommunicate request_size=4 [12:45:35]MH_SAM_APDU [12:45:35]CAPDU: 80 0D 01 02 [12:45:35]Write to MH i2c: E2 08 00 12 3C 80 0D 01 02 00 00 00 00 C7 [12:45:35]Write i2c OK [12:45:35]MH_I2C_Read... [12:45:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:35]Read from MH i2c: E2 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: E2 03 00 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: E2 03 00 12 3C 00 90 00 C2 [12:45:35]RAPDU: 90 00 [12:45:35]wFMCommunicate OK [12:45:35]wFMCommunicate request_size=255 [12:45:35]MH_SAM_APDU [12:45:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 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 7F 00 00 00 F4 03 04 00 72 7E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F8 70 00 00 35 04 06 00 AC [12:45:35]Write to MH i2c: E2 02 01 13 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 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 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 7F 00 00 00 F4 03 04 00 72 7E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F8 70 00 00 35 04 06 00 AC 00 00 C6 [12:45:35]Write i2c OK [12:45:35]MH_I2C_Read... [12:45:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:35]Read from MH i2c: E2 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: E2 03 00 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: E2 03 00 13 3C 00 90 00 C3 [12:45:35]RAPDU: 90 00 [12:45:35]wFMCommunicate OK [12:45:35]wFMCommunicate request_size=10 [12:45:35]MH_SAM_APDU [12:45:35]CAPDU: 80 0D 02 02 05 6E 81 1F FC FF [12:45:35]Write to MH i2c: E2 0D 00 14 3C 80 0D 02 02 05 00 6E 81 1F FC FF 00 00 DD [12:45:35]Write i2c OK [12:45:35]MH_I2C_Read... [12:45:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:35]Read from MH i2c: E2 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: E2 03 00 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: E2 03 00 14 3C 00 90 00 C4 [12:45:35]RAPDU: 90 00 [12:45:35]wFMCommunicate OK [12:45:35]wFMCommunicate request_size=4 [12:45:35]MH_SAM_APDU [12:45:35]CAPDU: 80 0D 03 02 [12:45:35]Write to MH i2c: E2 08 00 15 3C 80 0D 03 02 00 00 00 00 CC [12:45:35]Write i2c OK [12:45:35]MH_I2C_Read... [12:45:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:35]Read from MH i2c: E2 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: E2 0B 00 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: E2 0B 00 15 3C 00 B8 DF E5 C5 A1 4D EA D9 90 00 BF [12:45:35]RAPDU: B8 DF E5 C5 A1 4D EA D9 90 00 [12:45:35]wFMCommunicate OK [12:45:35]SAM_PROTO_SignData done [12:45:35]FM_MakeSignedData done [12:45:35]CreateOFDProtocolMessage [12:45:35]wFMCommunicate request_size=4 [12:45:35]MH_SAM_APDU [12:45:35]CAPDU: 80 11 00 00 [12:45:35]Write to MH i2c: E2 08 00 16 3C 80 11 00 00 00 00 00 00 CC [12:45:35]Write i2c OK [12:45:35]MH_I2C_Read... [12:45:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:35]Read from MH i2c: E2 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: E2 17 00 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: E2 17 00 16 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1B [12:45:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:45:35]wFMCommunicate OK [12:45:35]CreateOFDProtocolMessage done [12:45:35]OFDSenderStorePacket 28920 [12:45:35]StoreOFDPacket docnum=28920 [12:45:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 85 20 07 01 90 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 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 7F 00 00 00 F4 03 04 00 72 7E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F8 70 00 00 35 04 06 00 AC 6E 81 1F FC FF B8 DF E5 C5 A1 4D EA D9 [12:45:35]CheckFolder [12:45:35]dirname=/storage/ofd_packets [12:45:35]CheckFolder done [12:45:35]ProducePacketName [12:45:35]name=ofd_packets/00028920 [12:45:35]NVStorageSaveData ofd_packets/00028920 [12:45:35]File name is /storage/ofd_packets/00028920 [12:45:35]Write 301 bytes [12:45:35]NVStorageSaveData done [12:45:35]OFDSenderStorePacket done [12:45:35]KKMCreateOFDPacket done [12:45:35]NVStorageSaveData kkm_last_timestamp [12:45:35]File name is /storage/kkm_last_timestamp [12:45:35]Write 4 bytes [12:45:35]NVStorageSaveData done [12:45:35]ExternCall_PrintAddStr [12:45:35]wPrintStart [12:45:35]Write to MH i2c: 01 00 00 17 3C 53 [12:45:35]Write i2c OK [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: 01 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: 01 07 00 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: 01 07 00 17 3C 00 00 00 00 00 FF 0F 68 [12:45:35]RasterBufferAndPrint [12:45:35]line Счет N : (1)347276 [12:45:35]line ИНН: 02508201610067 [12:45:35]line Контрольно-Кассовый Чек [12:45:35]line ПРОДАЖА [12:45:35]line ТРК (МРК, ГНК) : 33 [12:45:35]line Товар: 2710124500 [12:45:35]line Аи-95-К-5 [12:45:35]line 6.900 * 72.50 [12:45:35]line = 500.25 [12:45:35]line НДС 12% НСП 1% [12:45:35]line > о реализуемом товаре [12:45:35]line ОКРУГЛЕНИЕ: -0.25 [12:45:35]line ИТОГО: 500.00 [12:45:35]line Внесено: 500.00 [12:45:35]line СДАЧА: 0.00 [12:45:35]line НСП 1% : 4.43 [12:45:35]line НДС 12% : 53.12 [12:45:35]line Наличными: 500.00 [12:45:35]line Безнал.: 0.00 [12:45:35]line Место: АЗС № 108 "Партнер Нефть" [12:45:35]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:45:35]line СНО: Общий режим [12:45:35]line Чек 127 13.04.2024 12:45 [12:45:35]line Смена: 115 ФФД: 1.0 [12:45:35]line ЗНМ: 0300000027 [12:45:35]line РНМ: 0000138879044617 [12:45:35]line Версия ККМ: 001 [12:45:35]line ФМ: 0000000000963154 [12:45:35]line ФД: 28920 [12:45:35]line ФПД: 189590612737279 [12:45:35]line 1/tax-web-control/client/api/v1/ticket?date=20240413T124538&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28920&fm=189590612737279&tin=02508201610067®Number=0000138879044617&sum=50000 [12:45:36]OFD Sender: Processing packet 28920 [packets to send 8, broken 7] [12:45:36]ProducePacketName [12:45:36]name=ofd_packets/00028920 [12:45:36]OFD Sender: To server: pG, [12:45:36]CommunicateWithHost lk.salyk.kg:30040 [12:45:36]ConnectInit lk.salyk.kg [12:45:36]written 0, free lines is 4095 [12:45:36]Connected sock=10 [12:45: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 31 35 34 0F 01 00 00 85 20 07 01 90 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 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 7F 00 00 00 F4 03 04 00 72 7E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F8 70 00 00 35 04 06 00 AC 6E 81 1F FC FF B8 DF E5 C5 A1 4D EA D9 [12:45:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E1 90 47 00 EF 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 31 35 34 10 04 04 00 F8 70 00 00 F4 03 04 00 19 29 1A 66 B6 04 01 00 00 BB 37 F7 AD 79 3C B6 B1 [12:45:36]CommunicateWithHost err = 0 [12:45:36]CheckOFDResponse [12:45:36]1017 (14) - 77093643461234 [12:45:36]1041 (16) - 0000000000963154 [12:45:36]1040 (4) - 28920 [12:45:36]1012 (4) - 13.04.2024 06:41 [12:45:36]1206 (1) - 0 [12:45:36]OFD Sender: Remove packet 28920 [12:45:36]ProducePacketName [12:45:36]name=ofd_packets/00028920 [12:45:36]NVStorageDeleteData [12:45:36]Write to MH i2c: 01 00 00 41 3C 7D [12:45:36]Write i2c OK [12:45:36]MH_I2C_Read... [12:45:36]Read from MH i2c: 01 [12:45:36]MH_I2C_Read... [12:45:36]Read from MH i2c: 01 07 00 [12:45:36]MH_I2C_Read... [12:45:36]Read from MH i2c: 01 07 00 41 3C 00 00 00 00 00 D9 0C 69 [12:45:36]RasterBufferAndPrint [12:45:36]line [12:45:36]line [12:45:36]line [12:45:36]line [12:45:36]line [12:45:36]written 0, free lines is 3296 [12:45:36]MH_Cut [12:45:36]Write to MH i2c: D1 01 00 48 3C 01 56 [12:45:36]Write i2c OK [12:45:36]MH_I2C_Read... [12:45:36]Read from MH i2c: D1 [12:45:36]MH_I2C_Read... [12:45:36]Read from MH i2c: D1 01 00 [12:45:36]MH_I2C_Read... [12:45:36]Read from MH i2c: D1 01 00 48 3C 00 55 [12:45:36]Write to MH i2c: 01 00 00 49 3C 85 [12:45:36]Write i2c OK [12:45:36]MH_I2C_Read... [12:45:36]OFD Sender: No OFD packet to send [12:45:37]*** Cut start [12:45:37]*** Partial cut [12:45:37]*** CUTSNS_PIN = 1 [12:45:37]*** CUTSNS_PIN = 0 [12:45:37]*** Brake cut motor [12:45:37]Read from MH i2c: 01 [12:45:37]MH_I2C_Read... [12:45:37]*** Stop cut motor [12:45:37]*** Cut end [12:45:37]Read from MH i2c: 01 07 00 [12:45:37]MH_I2C_Read... [12:45:37]Read from MH i2c: 01 07 00 49 3C 00 00 00 00 00 FF 0F 9A [12:45:37]process_action close_receipt done [12:45:37]requested_data is exist [12:45:37]produce_requested_data [12:45:37]requested_item fm.sn is exist - process it [12:45:37]wFMCommunicate request_size=4 [12:45:37]MH_SAM_APDU [12:45:37]CAPDU: 80 11 00 00 [12:45:37]Write to MH i2c: E2 08 00 4A 3C 80 11 00 00 00 00 00 00 00 [12:45:37]Write i2c OK [12:45:37]MH_I2C_Read... [12:45:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:37]Read from MH i2c: E2 [12:45:37]MH_I2C_Read... [12:45:37]Read from MH i2c: E2 17 00 [12:45:37]MH_I2C_Read... [12:45:37]Read from MH i2c: E2 17 00 4A 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4F [12:45:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:45:37]wFMCommunicate OK [12:45:37]requested_item fd.num is exist - process it [12:45:37]SAM_PROTO_GetFieldsCounters [12:45:37]wFMCommunicate request_size=4 [12:45:37]MH_SAM_APDU [12:45:37]CAPDU: 80 13 00 00 [12:45:37]Write to MH i2c: E2 08 00 4B 3C 80 13 00 00 00 00 00 00 03 [12:45:37]Write i2c OK [12:45:37]MH_I2C_Read... [12:45:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:38]Read from MH i2c: E2 [12:45:38]MH_I2C_Read... [12:45:38]Read from MH i2c: E2 62 00 [12:45:38]MH_I2C_Read... [12:45:38]Read from MH i2c: E2 62 00 4B 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F8 70 00 00 0E 04 04 00 73 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 99 [12:45: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F8 70 00 00 0E 04 04 00 73 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:45:38]wFMCommunicate OK [12:45:38]SAM_PROTO_GetFieldsCounters done [12:45:38]requested_item shift.num is exist - process it [12:45:38]requested_item shift.opened is exist - process it [12:45:38]req_shift_opened [12:45:38]FM_GetShiftState [12:45:38]SAM_PROTO_GetShiftState [12:45:38]wFMCommunicate request_size=4 [12:45:38]MH_SAM_APDU [12:45:38]CAPDU: 80 13 01 00 [12:45:38]Write to MH i2c: E2 08 00 4C 3C 80 13 01 00 00 00 00 00 05 [12:45:38]Write i2c OK [12:45:38]MH_I2C_Read... [12:45:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:38]Read from MH i2c: E2 [12:45:38]MH_I2C_Read... [12:45:38]Read from MH i2c: E2 0E 00 [12:45:38]MH_I2C_Read... [12:45:38]Read from MH i2c: E2 0E 00 4C 3C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 1E [12:45:38]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:45:38]wFMCommunicate OK [12:45:38]SAM_PROTO_GetShiftState done [12:45:38]FM_GetShiftState done [12:45:38]req_shift_opened done [12:45:38]requested_item shift.open_date is exist - process it [12:45:38]req_shift_open_date [12:45:38]req_shift_open_date done [12:45:38]produce_requested_data done [12:45:38]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28920,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [12:45:38]process_action_free close_receipt [12:45:38]json_value_free [12:45:38]json_value_free done [12:45:38]process_json_proto returns [12:45:38]Send response to host [12:45:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28920,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [12:45:38]free response buf [12:45:38]execute_script done [12:45:38]execute_script returns [12:45:38]free content buf [12:45:38]Sock 7.Close socket [12:45:38]Sock 7.Thread stoped [12:45:41]OFD Sender: No OFD packet to send [12:45:46]OFD Sender: No OFD packet to send [12:45:51]OFD Sender: No OFD packet to send [12:45:56]OFD Sender: No OFD packet to send [12:46:01]OFD Sender: No OFD packet to send [12:46:06]OFD Sender: No OFD packet to send [12:46:11]OFD Sender: No OFD packet to send [12:46:16]accept exits with 9 [12:46:16]New connection [12:46:16]New thread 3066785124 created [12:46:16]Thread 3066928484 joined [12:46:16]Waiting for new connection... [12:46:16] Sock 9.Parse request [12:46:16]Sock 9.Check first char [12:46:16]Sock 9.First char is OK [12:46:16]request: POST /json_proto HTTP/1.0 [12:46:16]Method: POST [12:46:16]URL: /json_proto [12:46:16]Method is POST - this is cgi request [12:46:16]url: /json_proto [12:46:16]query_string will be loaded in cgi processing [12:46:16]execute_cgi json_proto POST (null) [12:46:16]execute_cgi path=json_proto method=POST [12:46:16]POST find Content-Length [12:46:16]Host: 172.17.33.3:8080 [12:46:16]Content-Length: 674 [12:46:16]Content-Type: application/json [12:46:16] [12:46:16]POST finish read [12:46:16]Found Content-Length = 674 [12:46:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 6.910, "sum" : 500.28, "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:46:16]execute_script... [12:46:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 6.910, "sum" : 500.28, "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:46:16]POST & json_proto [12:46:16]process_json_proto [12:46:16]json parsed OK: [12:46:16]protocol is kg_v1.0 [12:46:16]action value=close_receipt [12:46:16]process_action close_receipt [12:46:16]cmd_close_receipt [12:46:16]MH_GetDate [12:46:16]Write to MH i2c: F0 00 00 4D 3C 78 [12:46:16]Write i2c OK [12:46:16]MH_I2C_Read... [12:46:16]Read from MH i2c: F0 [12:46:16]MH_I2C_Read... [12:46:16]Read from MH i2c: F0 09 00 [12:46:16]MH_I2C_Read... [12:46:16]Read from MH i2c: F0 09 00 4D 3C 00 9D 7E 1A 66 23 5B 8F 65 8E [12:46:16]GetLastDocTimeStamp 1713012338 [12:46:16]current date 1713012381 [12:46:16]FM_GetShiftState [12:46:16]SAM_PROTO_GetShiftState [12:46:16]wFMCommunicate request_size=4 [12:46:16]MH_SAM_APDU [12:46:16]CAPDU: 80 13 01 00 [12:46:16]Write to MH i2c: E2 08 00 4E 3C 80 13 01 00 00 00 00 00 07 [12:46:16]Write i2c OK [12:46:16]MH_I2C_Read... [12:46:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:16]Read from MH i2c: E2 [12:46:16]MH_I2C_Read... [12:46:16]Read from MH i2c: E2 0E 00 [12:46:16]MH_I2C_Read... [12:46:16]Read from MH i2c: E2 0E 00 4E 3C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 20 [12:46:16]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:46:16]wFMCommunicate OK [12:46:16]SAM_PROTO_GetShiftState done [12:46:16]FM_GetShiftState done [12:46:16]opened in 1712967615 [12:46:16]opened+sec_in_day 1713054015 [12:46:16]quantity*price = 50028 [12:46:16]sum+1 = 50029 [12:46:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 128 13.04.2024 12:46 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28921 ФПД: 167774701974801 1/tax-web-control/client/api/v1/ticket?date=20240413T124621&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28921&fm=167774701974801&tin=02508201610067®Number=0000138879044617&sum=50000 [12:46:17]StoreToDocumentArchive [12:46:17]shift 115 fd 28921 [12:46:17]save to /storage/0115/doc_00028921 [12:46:17]save last doc name /storage/0115/doc_00028921 to /storage/kkm_last_doc_name [12:46:17]save OK [12:46:17]Clear old archive folders... [12:46:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:46:17]tlvbuf is 011F8390 [12:46:17]SAM_PROTO_ClearQueue [12:46:17]wFMCommunicate request_size=4 [12:46:17]MH_SAM_APDU [12:46:17]CAPDU: 80 09 00 00 [12:46:17]Write to MH i2c: E2 08 00 5B 3C 80 09 00 00 00 00 00 00 09 [12:46:17]Write i2c OK [12:46:17]MH_I2C_Read... [12:46:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:17]Read from MH i2c: E2 [12:46:17]MH_I2C_Read... [12:46:17]Read from MH i2c: E2 03 00 [12:46:17]MH_I2C_Read... [12:46:17]Read from MH i2c: E2 03 00 5B 3C 00 90 00 0B [12:46:17]RAPDU: 90 00 [12:46:17]wFMCommunicate OK [12:46:17]SAM_PROTO_ClearQueue done [12:46:17]KKMCreateOFDPacket [12:46:17]OFDProtocolAddRootSTLVToBuf [12:46:17]FM_MakeSignedData [12:46:17]FM_MakeSignedData [12:46:17]SAM_PROTO_SignData [12:46:17]wFMCommunicate request_size=4 [12:46:17]MH_SAM_APDU [12:46:17]CAPDU: 80 0D 01 02 [12:46:17]Write to MH i2c: E2 08 00 5C 3C 80 0D 01 02 00 00 00 00 11 [12:46:17]Write i2c OK [12:46:17]MH_I2C_Read... [12:46:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:17]Read from MH i2c: E2 [12:46:17]MH_I2C_Read... [12:46:17]Read from MH i2c: E2 03 00 [12:46:17]MH_I2C_Read... [12:46:17]Read from MH i2c: E2 03 00 5C 3C 00 90 00 0C [12:46:17]RAPDU: 90 00 [12:46:17]wFMCommunicate OK [12:46:17]wFMCommunicate request_size=255 [12:46:17]MH_SAM_APDU [12:46: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 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 9D 7E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F9 70 00 00 35 04 06 00 98 97 17 83 [12:46:17]Write to MH i2c: E2 02 01 5D 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 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 9D 7E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F9 70 00 00 35 04 06 00 98 97 17 83 00 00 AD [12:46:17]Write i2c OK [12:46:17]MH_I2C_Read... [12:46:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:18]Read from MH i2c: E2 [12:46:18]MH_I2C_Read... [12:46:18]Read from MH i2c: E2 03 00 [12:46:18]MH_I2C_Read... [12:46:18]Read from MH i2c: E2 03 00 5D 3C 00 90 00 0D [12:46:18]RAPDU: 90 00 [12:46:18]wFMCommunicate OK [12:46:18]wFMCommunicate request_size=7 [12:46:18]MH_SAM_APDU [12:46:18]CAPDU: 80 0D 02 02 02 75 11 [12:46:18]Write to MH i2c: E2 0A 00 5E 3C 80 0D 02 02 02 00 75 11 00 00 9E [12:46:18]Write i2c OK [12:46:18]MH_I2C_Read... [12:46:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:18]Read from MH i2c: E2 [12:46:18]MH_I2C_Read... [12:46:18]Read from MH i2c: E2 03 00 [12:46:18]MH_I2C_Read... [12:46:18]Read from MH i2c: E2 03 00 5E 3C 00 90 00 0E [12:46:18]RAPDU: 90 00 [12:46:18]wFMCommunicate OK [12:46:18]wFMCommunicate request_size=4 [12:46:18]MH_SAM_APDU [12:46:18]CAPDU: 80 0D 03 02 [12:46:18]Write to MH i2c: E2 08 00 5F 3C 80 0D 03 02 00 00 00 00 16 [12:46:18]Write i2c OK [12:46:18]MH_I2C_Read... [12:46:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:18]Read from MH i2c: E2 [12:46:18]MH_I2C_Read... [12:46:18]Read from MH i2c: E2 0B 00 [12:46:18]MH_I2C_Read... [12:46:18]Read from MH i2c: E2 0B 00 5F 3C 00 CC 3A 5E 1B 42 53 05 C2 90 00 F2 [12:46:18]RAPDU: CC 3A 5E 1B 42 53 05 C2 90 00 [12:46:18]wFMCommunicate OK [12:46:18]SAM_PROTO_SignData done [12:46:18]FM_MakeSignedData done [12:46:18]CreateOFDProtocolMessage [12:46:18]wFMCommunicate request_size=4 [12:46:18]MH_SAM_APDU [12:46:18]CAPDU: 80 11 00 00 [12:46:18]Write to MH i2c: E2 08 00 60 3C 80 11 00 00 00 00 00 00 16 [12:46:18]Write i2c OK [12:46:18]MH_I2C_Read... [12:46:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:18]Read from MH i2c: E2 [12:46:18]MH_I2C_Read... [12:46:18]Read from MH i2c: E2 17 00 [12:46:18]MH_I2C_Read... [12:46:18]Read from MH i2c: E2 17 00 60 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 65 [12:46:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:46:18]wFMCommunicate OK [12:46:18]CreateOFDProtocolMessage done [12:46:18]OFDSenderStorePacket 28921 [12:46:18]StoreOFDPacket docnum=28921 [12:46:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 7E D2 04 01 C9 9F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 9D 7E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F9 70 00 00 35 04 06 00 98 97 17 83 75 11 CC 3A 5E 1B 42 53 05 C2 [12:46:18]CheckFolder [12:46:18]dirname=/storage/ofd_packets [12:46:18]CheckFolder done [12:46:18]ProducePacketName [12:46:18]name=ofd_packets/00028921 [12:46:18]NVStorageSaveData ofd_packets/00028921 [12:46:18]File name is /storage/ofd_packets/00028921 [12:46:18]Write 298 bytes [12:46:18]NVStorageSaveData done [12:46:18]OFDSenderStorePacket done [12:46:18]KKMCreateOFDPacket done [12:46:18]NVStorageSaveData kkm_last_timestamp [12:46:18]File name is /storage/kkm_last_timestamp [12:46:18]Write 4 bytes [12:46:18]NVStorageSaveData done [12:46:18]ExternCall_PrintAddStr [12:46:18]wPrintStart [12:46:18]Write to MH i2c: 01 00 00 61 3C 9D [12:46:18]Write i2c OK [12:46:18]MH_I2C_Read... [12:46:18]Read from MH i2c: 01 [12:46:18]MH_I2C_Read... [12:46:18]Read from MH i2c: 01 07 00 [12:46:18]MH_I2C_Read... [12:46:18]Read from MH i2c: 01 07 00 61 3C 00 00 00 00 00 FF 0F B2 [12:46:18]RasterBufferAndPrint [12:46:18]line Счет N : (1)347277 [12:46:18]line ИНН: 02508201610067 [12:46:18]line Контрольно-Кассовый Чек [12:46:18]line ПРОДАЖА [12:46:18]line ТРК (МРК, ГНК) : 21 [12:46:18]line Товар: 2710194210 [12:46:18]line ДТ-К-5 [12:46:18]line 6.910 * 72.40 [12:46:18]line = 500.28 [12:46:18]line НДС 12% НСП 1% [12:46:18]line > о реализуемом товаре [12:46:18]line ОКРУГЛЕНИЕ: -0.28 [12:46:18]line ИТОГО: 500.00 [12:46:18]line Внесено: 500.00 [12:46:18]line СДАЧА: 0.00 [12:46:18]line НСП 1% : 4.43 [12:46:18]line НДС 12% : 53.13 [12:46:18]line Наличными: 500.00 [12:46:18]line Безнал.: 0.00 [12:46:18]line Место: АЗС № 108 "Партнер Нефть" [12:46:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:46:18]line СНО: Общий режим [12:46:18]line Чек 128 13.04.2024 12:46 [12:46:18]line Смена: 115 ФФД: 1.0 [12:46:18]line ЗНМ: 0300000027 [12:46:18]line РНМ: 0000138879044617 [12:46:18]line Версия ККМ: 001 [12:46:18]line ФМ: 0000000000963154 [12:46:18]line ФД: 28921 [12:46:18]line ФПД: 167774701974801 [12:46:18]line 1/tax-web-control/client/api/v1/ticket?date=20240413T124621&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28921&fm=167774701974801&tin=02508201610067®Number=0000138879044617&sum=50000 [12:46:18]OFD Sender: Processing packet 28921 [packets to send 8, broken 7] [12:46:18]ProducePacketName [12:46:18]name=ofd_packets/00028921 [12:46:18]OFD Sender: To server: pG, [12:46:18]CommunicateWithHost lk.salyk.kg:30040 [12:46:18]ConnectInit lk.salyk.kg [12:46:18]written 0, free lines is 4095 [12:46:18]Connected sock=10 [12:46:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 7E D2 04 01 C9 9F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 9D 7E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 F9 70 00 00 35 04 06 00 98 97 17 83 75 11 CC 3A 5E 1B 42 53 05 C2 [12:46:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B9 57 47 00 5F 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 31 35 34 10 04 04 00 F9 70 00 00 F4 03 04 00 44 29 1A 66 B6 04 01 00 00 8E A6 73 F3 D0 42 85 72 [12:46:18]CommunicateWithHost err = 0 [12:46:18]CheckOFDResponse [12:46:18]1017 (14) - 77093643461234 [12:46:18]1041 (16) - 0000000000963154 [12:46:18]1040 (4) - 28921 [12:46:18]1012 (4) - 13.04.2024 06:42 [12:46:18]1206 (1) - 0 [12:46:18]OFD Sender: Remove packet 28921 [12:46:18]ProducePacketName [12:46:18]name=ofd_packets/00028921 [12:46:18]NVStorageDeleteData [12:46:19]Write to MH i2c: 01 00 00 8B 3C C7 [12:46:19]Write i2c OK [12:46:19]MH_I2C_Read... [12:46:19]Read from MH i2c: 01 [12:46:19]MH_I2C_Read... [12:46:19]Read from MH i2c: 01 07 00 [12:46:19]MH_I2C_Read... [12:46:19]Read from MH i2c: 01 07 00 8B 3C 00 00 00 00 00 BA 0C 94 [12:46:19]RasterBufferAndPrint [12:46:19]line [12:46:19]line [12:46:19]line [12:46:19]line [12:46:19]line [12:46:19]written 0, free lines is 3264 [12:46:19]MH_Cut [12:46:19]Write to MH i2c: D1 01 00 92 3C 01 A0 [12:46:19]Write i2c OK [12:46:19]MH_I2C_Read... [12:46:19]Read from MH i2c: D1 [12:46:19]MH_I2C_Read... [12:46:19]Read from MH i2c: D1 01 00 [12:46:19]MH_I2C_Read... [12:46:19]Read from MH i2c: D1 01 00 92 3C 00 9F [12:46:19]Write to MH i2c: 01 00 00 93 3C CF [12:46:19]Write i2c OK [12:46:19]MH_I2C_Read... [12:46:19]OFD Sender: No OFD packet to send [12:46:19]*** Cut start [12:46:19]*** Partial cut [12:46:19]*** CUTSNS_PIN = 1 [12:46:19]*** CUTSNS_PIN = 0 [12:46:20]*** Brake cut motor [12:46:20]Read from MH i2c: 01 [12:46:20]MH_I2C_Read... [12:46:20]*** Stop cut motor [12:46:20]*** Cut end [12:46:20]Read from MH i2c: 01 07 00 [12:46:20]MH_I2C_Read... [12:46:20]Read from MH i2c: 01 07 00 93 3C 00 00 00 00 00 FF 0F E4 [12:46:20]process_action close_receipt done [12:46:20]requested_data is exist [12:46:20]produce_requested_data [12:46:20]requested_item fm.sn is exist - process it [12:46:20]wFMCommunicate request_size=4 [12:46:20]MH_SAM_APDU [12:46:20]CAPDU: 80 11 00 00 [12:46:20]Write to MH i2c: E2 08 00 94 3C 80 11 00 00 00 00 00 00 4A [12:46:20]Write i2c OK [12:46:20]MH_I2C_Read... [12:46:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:20]Read from MH i2c: E2 [12:46:20]MH_I2C_Read... [12:46:20]Read from MH i2c: E2 17 00 [12:46:20]MH_I2C_Read... [12:46:20]Read from MH i2c: E2 17 00 94 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 99 [12:46:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:46:20]wFMCommunicate OK [12:46:20]requested_item fd.num is exist - process it [12:46:20]SAM_PROTO_GetFieldsCounters [12:46:20]wFMCommunicate request_size=4 [12:46:20]MH_SAM_APDU [12:46:20]CAPDU: 80 13 00 00 [12:46:20]Write to MH i2c: E2 08 00 95 3C 80 13 00 00 00 00 00 00 4D [12:46:20]Write i2c OK [12:46:20]MH_I2C_Read... [12:46:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:20]Read from MH i2c: E2 [12:46:20]MH_I2C_Read... [12:46:20]Read from MH i2c: E2 62 00 [12:46:20]MH_I2C_Read... [12:46:20]Read from MH i2c: E2 62 00 95 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F9 70 00 00 0E 04 04 00 73 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 E7 [12:46:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 F9 70 00 00 0E 04 04 00 73 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:46:20]wFMCommunicate OK [12:46:20]SAM_PROTO_GetFieldsCounters done [12:46:20]requested_item shift.num is exist - process it [12:46:20]requested_item shift.opened is exist - process it [12:46:20]req_shift_opened [12:46:20]FM_GetShiftState [12:46:20]SAM_PROTO_GetShiftState [12:46:20]wFMCommunicate request_size=4 [12:46:20]MH_SAM_APDU [12:46:20]CAPDU: 80 13 01 00 [12:46:20]Write to MH i2c: E2 08 00 96 3C 80 13 01 00 00 00 00 00 4F [12:46:20]Write i2c OK [12:46:20]MH_I2C_Read... [12:46:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:20]Read from MH i2c: E2 [12:46:20]MH_I2C_Read... [12:46:20]Read from MH i2c: E2 0E 00 [12:46:20]MH_I2C_Read... [12:46:20]Read from MH i2c: E2 0E 00 96 3C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 68 [12:46:20]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:46:20]wFMCommunicate OK [12:46:20]SAM_PROTO_GetShiftState done [12:46:20]FM_GetShiftState done [12:46:20]req_shift_opened done [12:46:20]requested_item shift.open_date is exist - process it [12:46:20]req_shift_open_date [12:46:20]req_shift_open_date done [12:46:20]produce_requested_data done [12:46:20]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28921,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [12:46:20]process_action_free close_receipt [12:46:20]json_value_free [12:46:20]json_value_free done [12:46:20]process_json_proto returns [12:46:20]Send response to host [12:46:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28921,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [12:46:20]free response buf [12:46:20]execute_script done [12:46:20]execute_script returns [12:46:20]free content buf [12:46:20]Sock 9.Close socket [12:46:20]Sock 9.Thread stoped [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:54]OFD Sender: No OFD packet to send [12:46:59]OFD Sender: No OFD packet to send [12:47:04]OFD Sender: No OFD packet to send [12:47:09]OFD Sender: No OFD packet to send [12:47:14]OFD Sender: No OFD packet to send [12:47:19]OFD Sender: No OFD packet to send [12:47:24]OFD Sender: No OFD packet to send [12:47:29]OFD Sender: No OFD packet to send [12:47:34]OFD Sender: No OFD packet to send [12:47:39]OFD Sender: No OFD packet to send [12:47:44]OFD Sender: No OFD packet to send [12:47:49]OFD Sender: No OFD packet to send [12:47:54]OFD Sender: No OFD packet to send [12:47:59]OFD Sender: No OFD packet to send [12:48:04]OFD Sender: No OFD packet to send [12:48:09]OFD Sender: No OFD packet to send [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:24]OFD Sender: No OFD packet to send [12:48:29]OFD Sender: No OFD packet to send [12:48:33]accept exits with 7 [12:48:33]New connection [12:48:33]New thread 3066928484 created [12:48:33]Thread 3066785124 joined [12:48:33]Waiting for new connection... [12:48:33] Sock 7.Parse request [12:48:33]Sock 7.Check first char [12:48:33]Sock 7.First char is OK [12:48:33]request: POST /json_proto HTTP/1.0 [12:48:33]Method: POST [12:48:33]URL: /json_proto [12:48:33]Method is POST - this is cgi request [12:48:33]url: /json_proto [12:48:33]query_string will be loaded in cgi processing [12:48:33]execute_cgi json_proto POST (null) [12:48:33]execute_cgi path=json_proto method=POST [12:48:33]POST find Content-Length [12:48:33]Host: 172.17.33.3:8080 [12:48:33]Content-Length: 685 [12:48:33]Content-Type: application/json [12:48:33] [12:48:33]POST finish read [12:48:33]Found Content-Length = 685 [12:48:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 39.930, "sum" : 1313.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1313.00, "payments": [ { "type": 0, "sum" : 1313.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:33]execute_script... [12:48: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)347275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 39.930, "sum" : 1313.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1313.00, "payments": [ { "type": 0, "sum" : 1313.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:33]POST & json_proto [12:48:33]process_json_proto [12:48:33]json parsed OK: [12:48:33]protocol is kg_v1.0 [12:48:33]action value=close_receipt [12:48:33]process_action close_receipt [12:48:33]cmd_close_receipt [12:48:33]MH_GetDate [12:48:33]Write to MH i2c: F0 00 00 97 3C C2 [12:48:33]Write i2c OK [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: F0 [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: F0 09 00 [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: F0 09 00 97 3C 00 25 7F 1A 66 23 5B 8F 65 61 [12:48:33]GetLastDocTimeStamp 1713012381 [12:48:33]current date 1713012517 [12:48:33]FM_GetShiftState [12:48:33]SAM_PROTO_GetShiftState [12:48:33]wFMCommunicate request_size=4 [12:48:33]MH_SAM_APDU [12:48:33]CAPDU: 80 13 01 00 [12:48:33]Write to MH i2c: E2 08 00 98 3C 80 13 01 00 00 00 00 00 51 [12:48:33]Write i2c OK [12:48:33]MH_I2C_Read... [12:48:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:33]Read from MH i2c: E2 [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: E2 0E 00 [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: E2 0E 00 98 3C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 6A [12:48:33]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:48:33]wFMCommunicate OK [12:48:33]SAM_PROTO_GetShiftState done [12:48:33]FM_GetShiftState done [12:48:33]opened in 1712967615 [12:48:33]opened+sec_in_day 1713054015 [12:48:33]quantity*price = 131369 [12:48:33]sum+1 = 131371 [12:48:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 1313.00 Внесено: 1500.00 СДАЧА: 187.00 НСП 1% : 11.63 НДС 12% : 139.51 Наличными: 1313.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 129 13.04.2024 12:48 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28922 ФПД: 235760694219265 1/tax-web-control/client/api/v1/ticket?date=20240413T124837&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28922&fm=235760694219265&tin=02508201610067®Number=0000138879044617&sum=131300 [12:48:34]StoreToDocumentArchive [12:48:34]shift 115 fd 28922 [12:48:34]save to /storage/0115/doc_00028922 [12:48:34]save last doc name /storage/0115/doc_00028922 to /storage/kkm_last_doc_name [12:48:34]save OK [12:48:34]Clear old archive folders... [12:48:34]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:48:34]tlvbuf is 011CB270 [12:48:34]SAM_PROTO_ClearQueue [12:48:34]wFMCommunicate request_size=4 [12:48:34]MH_SAM_APDU [12:48:34]CAPDU: 80 09 00 00 [12:48:34]Write to MH i2c: E2 08 00 A5 3C 80 09 00 00 00 00 00 00 53 [12:48:34]Write i2c OK [12:48:34]MH_I2C_Read... [12:48:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:34]Read from MH i2c: E2 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 03 00 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 03 00 A5 3C 00 90 00 55 [12:48:34]RAPDU: 90 00 [12:48:34]wFMCommunicate OK [12:48:34]SAM_PROTO_ClearQueue done [12:48:34]KKMCreateOFDPacket [12:48:34]OFDProtocolAddRootSTLVToBuf [12:48:34]FM_MakeSignedData [12:48:34]FM_MakeSignedData [12:48:34]SAM_PROTO_SignData [12:48:34]wFMCommunicate request_size=4 [12:48:34]MH_SAM_APDU [12:48:34]CAPDU: 80 0D 01 02 [12:48:34]Write to MH i2c: E2 08 00 A6 3C 80 0D 01 02 00 00 00 00 5B [12:48:34]Write i2c OK [12:48:34]MH_I2C_Read... [12:48:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:34]Read from MH i2c: E2 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 03 00 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 03 00 A6 3C 00 90 00 56 [12:48:34]RAPDU: 90 00 [12:48:34]wFMCommunicate OK [12:48:34]wFMCommunicate request_size=255 [12:48:34]MH_SAM_APDU [12:48:34]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FA 9B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 2A 01 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 00 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 36 00 00 00 00 07 04 06 00 E4 00 02 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 25 7F 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FA 70 00 00 35 04 06 00 D6 6C [12:48:34]Write to MH i2c: E2 02 01 A7 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 35 FF 03 08 00 03 FA 9B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 2A 01 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 00 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 36 00 00 00 00 07 04 06 00 E4 00 02 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 25 7F 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FA 70 00 00 35 04 06 00 D6 6C 00 00 AE [12:48:34]Write i2c OK [12:48:34]MH_I2C_Read... [12:48:34]OFD Sender: No OFD packet to send [12:48:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:34]Read from MH i2c: E2 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 03 00 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 03 00 A7 3C 00 90 00 57 [12:48:34]RAPDU: 90 00 [12:48:34]wFMCommunicate OK [12:48:34]wFMCommunicate request_size=9 [12:48:34]MH_SAM_APDU [12:48:34]CAPDU: 80 0D 02 02 04 50 6E 52 01 [12:48:34]Write to MH i2c: E2 0C 00 A8 3C 80 0D 02 02 04 00 50 6E 52 01 00 00 77 [12:48:34]Write i2c OK [12:48:34]MH_I2C_Read... [12:48:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:34]Read from MH i2c: E2 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 03 00 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 03 00 A8 3C 00 90 00 58 [12:48:34]RAPDU: 90 00 [12:48:34]wFMCommunicate OK [12:48:34]wFMCommunicate request_size=4 [12:48:34]MH_SAM_APDU [12:48:34]CAPDU: 80 0D 03 02 [12:48:34]Write to MH i2c: E2 08 00 A9 3C 80 0D 03 02 00 00 00 00 60 [12:48:34]Write i2c OK [12:48:34]MH_I2C_Read... [12:48:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:34]Read from MH i2c: E2 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 0B 00 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 0B 00 A9 3C 00 49 E5 70 90 29 EB D4 A8 90 00 1F [12:48:34]RAPDU: 49 E5 70 90 29 EB D4 A8 90 00 [12:48:34]wFMCommunicate OK [12:48:34]SAM_PROTO_SignData done [12:48:34]FM_MakeSignedData done [12:48:34]CreateOFDProtocolMessage [12:48:34]wFMCommunicate request_size=4 [12:48:34]MH_SAM_APDU [12:48:34]CAPDU: 80 11 00 00 [12:48:34]Write to MH i2c: E2 08 00 AA 3C 80 11 00 00 00 00 00 00 60 [12:48:34]Write i2c OK [12:48:34]MH_I2C_Read... [12:48:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:34]Read from MH i2c: E2 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 17 00 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 17 00 AA 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AF [12:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:48:34]wFMCommunicate OK [12:48:34]CreateOFDProtocolMessage done [12:48:34]OFDSenderStorePacket 28922 [12:48:34]StoreOFDPacket docnum=28922 [12:48:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 41 92 06 01 2B 6A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FA 9B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 2A 01 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 00 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 36 00 00 00 00 07 04 06 00 E4 00 02 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 25 7F 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FA 70 00 00 35 04 06 00 D6 6C 50 6E 52 01 49 E5 70 90 29 EB D4 A8 [12:48:34]CheckFolder [12:48:34]dirname=/storage/ofd_packets [12:48:34]CheckFolder done [12:48:34]ProducePacketName [12:48:34]name=ofd_packets/00028922 [12:48:34]NVStorageSaveData ofd_packets/00028922 [12:48:34]File name is /storage/ofd_packets/00028922 [12:48:34]Write 300 bytes [12:48:34]NVStorageSaveData done [12:48:34]OFDSenderStorePacket done [12:48:34]KKMCreateOFDPacket done [12:48:34]NVStorageSaveData kkm_last_timestamp [12:48:34]File name is /storage/kkm_last_timestamp [12:48:34]Write 4 bytes [12:48:34]NVStorageSaveData done [12:48:34]ExternCall_PrintAddStr [12:48:34]wPrintStart [12:48:34]Write to MH i2c: 01 00 00 AB 3C E7 [12:48:34]Write i2c OK [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: 01 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: 01 07 00 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: 01 07 00 AB 3C 00 00 00 00 00 FF 0F FC [12:48:34]RasterBufferAndPrint [12:48:34]line Счет N : (1)347275 [12:48:34]line ИНН: 02508201610067 [12:48:34]line Контрольно-Кассовый Чек [12:48:34]line ПРОДАЖА [12:48:34]line ТРК (МРК, ГНК) : 71 [12:48:34]line Товар: 2711129700 [12:48:34]line ГАЗ-К-5 [12:48:34]line 39.930 * 32.90 [12:48:34]line = 1313.70 [12:48:34]line НДС 12% НСП 1% [12:48:34]line > о реализуемом товаре [12:48:34]line ОКРУГЛЕНИЕ: -0.70 [12:48:34]line ИТОГО: 1313.00 [12:48:34]line Внесено: 1500.00 [12:48:34]line СДАЧА: 187.00 [12:48:34]line НСП 1% : 11.63 [12:48:34]line НДС 12% : 139.51 [12:48:34]line Наличными: 1313.00 [12:48:34]line Безнал.: 0.00 [12:48:34]line Место: АЗС № 108 "Партнер Нефть" [12:48:34]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:48:34]line СНО: Общий режим [12:48:34]line Чек 129 13.04.2024 12:48 [12:48:34]line Смена: 115 ФФД: 1.0 [12:48:34]line ЗНМ: 0300000027 [12:48:34]line РНМ: 0000138879044617 [12:48:34]line Версия ККМ: 001 [12:48:34]line ФМ: 0000000000963154 [12:48:34]line ФД: 28922 [12:48:34]line ФПД: 235760694219265 [12:48:35]line 1/tax-web-control/client/api/v1/ticket?date=20240413T124837&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28922&fm=235760694219265&tin=02508201610067®Number=0000138879044617&sum=131300 [12:48:35]OFD Sender: Processing packet 28922 [packets to send 8, broken 7] [12:48:35]ProducePacketName [12:48:35]name=ofd_packets/00028922 [12:48:35]OFD Sender: To server: pG, [12:48:35]CommunicateWithHost lk.salyk.kg:30040 [12:48:35]ConnectInit lk.salyk.kg [12:48:35]written 0, free lines is 4095 [12:48:35]Write to MH i2c: 01 00 00 D5 3C 11 [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: 01 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: 01 07 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: 01 07 00 D5 3C 00 00 00 00 00 BE 0C E2 [12:48:35]RasterBufferAndPrint [12:48:35]line [12:48:35]line [12:48:35]line [12:48:35]line [12:48:35]line [12:48:35]written 0, free lines is 3266 [12:48:35]MH_Cut [12:48:35]Write to MH i2c: D1 01 00 DC 3C 01 EA [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: D1 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: D1 01 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: D1 01 00 DC 3C 00 E9 [12:48:35]Write to MH i2c: 01 00 00 DD 3C 19 [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:36]*** Cut start [12:48:36]*** Partial cut [12:48:36]*** CUTSNS_PIN = 1 [12:48:36]*** CUTSNS_PIN = 0 [12:48:36]*** Brake cut motor [12:48:37]Read from MH i2c: 01 [12:48:37]MH_I2C_Read... [12:48:37]*** Stop cut motor [12:48:37]Read from MH i2c: 01 07 00 [12:48:37]MH_I2C_Read... [12:48:37]*** Cut end [12:48:37]Read from MH i2c: 01 07 00 DD 3C 00 00 00 00 00 FF 0F 2E [12:48:37]process_action close_receipt done [12:48:37]requested_data is exist [12:48:37]produce_requested_data [12:48:37]requested_item fm.sn is exist - process it [12:48:37]wFMCommunicate request_size=4 [12:48:37]MH_SAM_APDU [12:48:37]CAPDU: 80 11 00 00 [12:48:37]Write to MH i2c: E2 08 00 DE 3C 80 11 00 00 00 00 00 00 94 [12:48:37]Write i2c OK [12:48:37]MH_I2C_Read... [12:48:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:37]Read from MH i2c: E2 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: E2 17 00 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: E2 17 00 DE 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E3 [12:48:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:48:37]wFMCommunicate OK [12:48:37]requested_item fd.num is exist - process it [12:48:37]SAM_PROTO_GetFieldsCounters [12:48:37]wFMCommunicate request_size=4 [12:48:37]MH_SAM_APDU [12:48:37]CAPDU: 80 13 00 00 [12:48:37]Write to MH i2c: E2 08 00 DF 3C 80 13 00 00 00 00 00 00 97 [12:48:37]Write i2c OK [12:48:37]MH_I2C_Read... [12:48:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:37]Read from MH i2c: E2 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: E2 62 00 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: E2 62 00 DF 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FA 70 00 00 0E 04 04 00 73 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 35 [12:48: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FA 70 00 00 0E 04 04 00 73 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:48:37]wFMCommunicate OK [12:48:37]SAM_PROTO_GetFieldsCounters done [12:48:37]requested_item shift.num is exist - process it [12:48:37]requested_item shift.opened is exist - process it [12:48:37]req_shift_opened [12:48:37]FM_GetShiftState [12:48:37]SAM_PROTO_GetShiftState [12:48:37]wFMCommunicate request_size=4 [12:48:37]MH_SAM_APDU [12:48:37]CAPDU: 80 13 01 00 [12:48:37]Write to MH i2c: E2 08 00 E0 3C 80 13 01 00 00 00 00 00 99 [12:48:37]Write i2c OK [12:48:37]MH_I2C_Read... [12:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:37]Read from MH i2c: E2 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: E2 0E 00 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: E2 0E 00 E0 3C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 B2 [12:48:37]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:48:37]wFMCommunicate OK [12:48:37]SAM_PROTO_GetShiftState done [12:48:37]FM_GetShiftState done [12:48:37]req_shift_opened done [12:48:37]requested_item shift.open_date is exist - process it [12:48:37]req_shift_open_date [12:48:37]req_shift_open_date done [12:48:37]produce_requested_data done [12:48:37]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28922,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [12:48:37]process_action_free close_receipt [12:48:37]json_value_free [12:48:37]json_value_free done [12:48:37]process_json_proto returns [12:48:37]Send response to host [12:48:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28922,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [12:48:37]free response buf [12:48:37]execute_script done [12:48:37]execute_script returns [12:48:37]free content buf [12:48:37]Sock 7.Close socket [12:48:37]Sock 7.Thread stoped [12:50:47]ConnectInit Can't connect to host [12:50:47]CommunicateWithHost connect error [12:50:47]CommunicateWithHost err = -1 [12:50:47]OFD Sender: Server communicate error [12:50:52]OFD Sender: Processing packet 28922 [packets to send 8, broken 7] [12:50:52]ProducePacketName [12:50:52]name=ofd_packets/00028922 [12:50:52]OFD Sender: To server: pG, [12:50:52]CommunicateWithHost lk.salyk.kg:30040 [12:50:52]ConnectInit lk.salyk.kg [12:50:52]Connected sock=7 [12:50: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 31 35 34 0E 01 00 00 41 92 06 01 2B 6A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FA 9B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 2A 01 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 00 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 36 00 00 00 00 07 04 06 00 E4 00 02 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 25 7F 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FA 70 00 00 35 04 06 00 D6 6C 50 6E 52 01 49 E5 70 90 29 EB D4 A8 [12:50:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D2 7B 47 00 28 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 31 35 34 10 04 04 00 FA 70 00 00 F4 03 04 00 56 2A 1A 66 B6 04 01 00 00 AA 81 89 B7 55 CE 74 CB [12:50:52]CommunicateWithHost err = 0 [12:50:52]CheckOFDResponse [12:50:52]1017 (14) - 77093643461234 [12:50:52]1041 (16) - 0000000000963154 [12:50:52]1040 (4) - 28922 [12:50:52]1012 (4) - 13.04.2024 06:46 [12:50:52]1206 (1) - 0 [12:50:52]OFD Sender: Remove packet 28922 [12:50:52]ProducePacketName [12:50:52]name=ofd_packets/00028922 [12:50:52]NVStorageDeleteData [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:43]OFD Sender: No OFD packet to send [12:52:48]OFD Sender: No OFD packet to send [12:52:53]OFD Sender: No OFD packet to send [12:52:58]OFD Sender: No OFD packet to send [12:53:03]OFD Sender: No OFD packet to send [12:53:08]OFD Sender: No OFD packet to send [12:53:13]OFD Sender: No OFD packet to send [12:53:18]OFD Sender: No OFD packet to send [12:53:23]OFD Sender: No OFD packet to send [12:53:28]OFD Sender: No OFD packet to send [12:53:33]OFD Sender: No OFD packet to send [12:53:38]OFD Sender: No OFD packet to send [12:53:43]OFD Sender: No OFD packet to send [12:53:48]OFD Sender: No OFD packet to send [12:53:53]OFD Sender: No OFD packet to send [12:53:58]OFD Sender: No OFD packet to send [12:54:03]OFD Sender: No OFD packet to send [12:54:08]OFD Sender: No OFD packet to send [12:54:13]OFD Sender: No OFD packet to send [12:54:18]OFD Sender: No OFD packet to send [12:54:20]accept exits with 9 [12:54:20]New connection [12:54:20]New thread 3066785124 created [12:54:20]Thread 3066928484 joined [12:54:20]Waiting for new connection... [12:54:20] Sock 9.Parse request [12:54:20]Sock 9.Check first char [12:54:20]Sock 9.First char is OK [12:54:20]request: POST /json_proto HTTP/1.0 [12:54:20]Method: POST [12:54:20]URL: /json_proto [12:54:20]Method is POST - this is cgi request [12:54:20]url: /json_proto [12:54:20]query_string will be loaded in cgi processing [12:54:20]execute_cgi json_proto POST (null) [12:54:20]execute_cgi path=json_proto method=POST [12:54:20]POST find Content-Length [12:54:20]Host: 172.17.33.3:8080 [12:54:20]Content-Length: 682 [12:54:20]Content-Type: application/json [12:54:20] [12:54:20]POST finish read [12:54:20]Found Content-Length = 682 [12:54:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347278", "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" : 64.30, "quantity" : 24.890, "sum" : 1600.43, "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" ] } } [12:54:20]execute_script... [12:54: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)347278", "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" : 64.30, "quantity" : 24.890, "sum" : 1600.43, "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" ] } } [12:54:20]POST & json_proto [12:54:20]process_json_proto [12:54:20]json parsed OK: [12:54:20]protocol is kg_v1.0 [12:54:20]action value=close_receipt [12:54:20]process_action close_receipt [12:54:20]cmd_close_receipt [12:54:20]MH_GetDate [12:54:20]Write to MH i2c: F0 00 00 E1 3C 0C [12:54:20]Write i2c OK [12:54:20]MH_I2C_Read... [12:54:20]Read from MH i2c: F0 [12:54:20]MH_I2C_Read... [12:54:20]Read from MH i2c: F0 09 00 [12:54:20]MH_I2C_Read... [12:54:20]Read from MH i2c: F0 09 00 E1 3C 00 81 80 1A 66 23 5B 8F 65 08 [12:54:20]GetLastDocTimeStamp 1713012517 [12:54:20]current date 1713012865 [12:54:20]FM_GetShiftState [12:54:20]SAM_PROTO_GetShiftState [12:54:20]wFMCommunicate request_size=4 [12:54:20]MH_SAM_APDU [12:54:20]CAPDU: 80 13 01 00 [12:54:20]Write to MH i2c: E2 08 00 E2 3C 80 13 01 00 00 00 00 00 9B [12:54:20]Write i2c OK [12:54:20]MH_I2C_Read... [12:54:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:20]Read from MH i2c: E2 [12:54:20]MH_I2C_Read... [12:54:20]Read from MH i2c: E2 0E 00 [12:54:20]MH_I2C_Read... [12:54:20]Read from MH i2c: E2 0E 00 E2 3C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 B4 [12:54:20]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:54:20]wFMCommunicate OK [12:54:20]SAM_PROTO_GetShiftState done [12:54:20]FM_GetShiftState done [12:54:20]opened in 1712967615 [12:54:20]opened+sec_in_day 1713054015 [12:54:20]quantity*price = 160042 [12:54:20]sum+1 = 160044 [12:54:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.96 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 130 13.04.2024 12:54 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28923 ФПД: 66430412676297 1/tax-web-control/client/api/v1/ticket?date=20240413T125425&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28923&fm=66430412676297&tin=02508201610067®Number=0000138879044617&sum=160000 [12:54:21]StoreToDocumentArchive [12:54:21]shift 115 fd 28923 [12:54:21]save to /storage/0115/doc_00028923 [12:54:21]save last doc name /storage/0115/doc_00028923 to /storage/kkm_last_doc_name [12:54:21]save OK [12:54:21]Clear old archive folders... [12:54:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:54:21]tlvbuf is 011EB0F0 [12:54:21]SAM_PROTO_ClearQueue [12:54:21]wFMCommunicate request_size=4 [12:54:21]MH_SAM_APDU [12:54:21]CAPDU: 80 09 00 00 [12:54:21]Write to MH i2c: E2 08 00 EF 3C 80 09 00 00 00 00 00 00 9D [12:54:21]Write i2c OK [12:54:21]MH_I2C_Read... [12:54:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:21]Read from MH i2c: E2 [12:54:21]MH_I2C_Read... [12:54:21]Read from MH i2c: E2 03 00 [12:54:21]MH_I2C_Read... [12:54:21]Read from MH i2c: E2 03 00 EF 3C 00 90 00 9F [12:54:21]RAPDU: 90 00 [12:54:21]wFMCommunicate OK [12:54:21]SAM_PROTO_ClearQueue done [12:54:21]KKMCreateOFDPacket [12:54:21]OFDProtocolAddRootSTLVToBuf [12:54:21]FM_MakeSignedData [12:54:21]FM_MakeSignedData [12:54:21]SAM_PROTO_SignData [12:54:21]wFMCommunicate request_size=4 [12:54:21]MH_SAM_APDU [12:54:21]CAPDU: 80 0D 01 02 [12:54:21]Write to MH i2c: E2 08 00 F0 3C 80 0D 01 02 00 00 00 00 A5 [12:54:21]Write i2c OK [12:54:21]MH_I2C_Read... [12:54:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:21]Read from MH i2c: E2 [12:54:21]MH_I2C_Read... [12:54:21]Read from MH i2c: E2 03 00 [12:54:21]MH_I2C_Read... [12:54:21]Read from MH i2c: E2 03 00 F0 3C 00 90 00 A0 [12:54:21]RAPDU: 90 00 [12:54:21]wFMCommunicate OK [12:54:21]wFMCommunicate request_size=255 [12:54:21]MH_SAM_APDU [12:54: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 3A 61 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2B 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 64 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 82 00 00 00 F4 03 04 00 81 80 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FB 70 00 00 35 04 06 00 3C [12:54:21]Write to MH i2c: E2 02 01 F1 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 3A 61 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2B 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 64 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 82 00 00 00 F4 03 04 00 81 80 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FB 70 00 00 35 04 06 00 3C 00 00 72 [12:54:21]Write i2c OK [12:54:21]MH_I2C_Read... [12:54:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:21]Read from MH i2c: E2 [12:54:21]MH_I2C_Read... [12:54:21]Read from MH i2c: E2 03 00 [12:54:21]MH_I2C_Read... [12:54:21]Read from MH i2c: E2 03 00 F1 3C 00 90 00 A1 [12:54:21]RAPDU: 90 00 [12:54:21]wFMCommunicate OK [12:54:21]wFMCommunicate request_size=10 [12:54:21]MH_SAM_APDU [12:54:21]CAPDU: 80 0D 02 02 05 6B 09 26 5C C9 [12:54:21]Write to MH i2c: E2 0D 00 F2 3C 80 0D 02 02 05 00 6B 09 26 5C C9 00 00 71 [12:54:21]Write i2c OK [12:54:21]MH_I2C_Read... [12:54:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:22]Read from MH i2c: E2 [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: E2 03 00 [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: E2 03 00 F2 3C 00 90 00 A2 [12:54:22]RAPDU: 90 00 [12:54:22]wFMCommunicate OK [12:54:22]wFMCommunicate request_size=4 [12:54:22]MH_SAM_APDU [12:54:22]CAPDU: 80 0D 03 02 [12:54:22]Write to MH i2c: E2 08 00 F3 3C 80 0D 03 02 00 00 00 00 AA [12:54:22]Write i2c OK [12:54:22]MH_I2C_Read... [12:54:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:22]Read from MH i2c: E2 [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: E2 0B 00 [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: E2 0B 00 F3 3C 00 92 9F 92 61 79 CD 75 15 90 00 9F [12:54:22]RAPDU: 92 9F 92 61 79 CD 75 15 90 00 [12:54:22]wFMCommunicate OK [12:54:22]SAM_PROTO_SignData done [12:54:22]FM_MakeSignedData done [12:54:22]CreateOFDProtocolMessage [12:54:22]wFMCommunicate request_size=4 [12:54:22]MH_SAM_APDU [12:54:22]CAPDU: 80 11 00 00 [12:54:22]Write to MH i2c: E2 08 00 F4 3C 80 11 00 00 00 00 00 00 AA [12:54:22]Write i2c OK [12:54:22]MH_I2C_Read... [12:54:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:22]Read from MH i2c: E2 [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: E2 17 00 [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: E2 17 00 F4 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F9 [12:54:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:54:22]wFMCommunicate OK [12:54:22]CreateOFDProtocolMessage done [12:54:22]OFDSenderStorePacket 28923 [12:54:22]StoreOFDPacket docnum=28923 [12:54:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 30 5F 07 01 81 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 3A 61 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2B 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 64 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 82 00 00 00 F4 03 04 00 81 80 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FB 70 00 00 35 04 06 00 3C 6B 09 26 5C C9 92 9F 92 61 79 CD 75 15 [12:54:22]CheckFolder [12:54:22]dirname=/storage/ofd_packets [12:54:22]CheckFolder done [12:54:22]ProducePacketName [12:54:22]name=ofd_packets/00028923 [12:54:22]NVStorageSaveData ofd_packets/00028923 [12:54:22]File name is /storage/ofd_packets/00028923 [12:54:22]Write 301 bytes [12:54:22]NVStorageSaveData done [12:54:22]OFDSenderStorePacket done [12:54:22]KKMCreateOFDPacket done [12:54:22]NVStorageSaveData kkm_last_timestamp [12:54:22]File name is /storage/kkm_last_timestamp [12:54:22]Write 4 bytes [12:54:22]NVStorageSaveData done [12:54:22]ExternCall_PrintAddStr [12:54:22]wPrintStart [12:54:22]Write to MH i2c: 01 00 00 F5 3C 31 [12:54:22]Write i2c OK [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: 01 [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: 01 07 00 [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: 01 07 00 F5 3C 00 00 00 00 00 FF 0F 46 [12:54:22]RasterBufferAndPrint [12:54:22]line Счет N : (1)347278 [12:54:22]line ИНН: 02508201610067 [12:54:22]line Контрольно-Кассовый Чек [12:54:22]line ПРОДАЖА [12:54:22]line ТРК (МРК, ГНК) : 42 [12:54:22]line Товар: 2710124130 [12:54:22]line Аи-92-К-5 [12:54:22]line 24.890 * 64.30 [12:54:22]line = 1600.43 [12:54:22]line НДС 12% НСП 1% [12:54:22]line > о реализуемом товаре [12:54:22]line ОКРУГЛЕНИЕ: -0.43 [12:54:22]line ИТОГО: 1600.00 [12:54:22]line Внесено: 1600.00 [12:54:22]line СДАЧА: 0.00 [12:54:22]line НСП 1% : 14.16 [12:54:22]line НДС 12% : 169.96 [12:54:22]line Наличными: 1600.00 [12:54:22]line Безнал.: 0.00 [12:54:22]line Место: АЗС № 108 "Партнер Нефть" [12:54:22]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:54:22]line СНО: Общий режим [12:54:22]line Чек 130 13.04.2024 12:54 [12:54:22]line Смена: 115 ФФД: 1.0 [12:54:22]line ЗНМ: 0300000027 [12:54:22]line РНМ: 0000138879044617 [12:54:22]line Версия ККМ: 001 [12:54:22]line ФМ: 0000000000963154 [12:54:22]line ФД: 28923 [12:54:22]line ФПД: 66430412676297 [12:54:22]line 1/tax-web-control/client/api/v1/ticket?date=20240413T125425&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28923&fm=66430412676297&tin=02508201610067®Number=0000138879044617&sum=160000 [12:54:22]OFD Sender: Processing packet 28923 [packets to send 8, broken 7] [12:54:22]ProducePacketName [12:54:22]name=ofd_packets/00028923 [12:54:22]OFD Sender: To server: pG, [12:54:22]CommunicateWithHost lk.salyk.kg:30040 [12:54:22]ConnectInit lk.salyk.kg [12:54:22]written 0, free lines is 4095 [12:54:22]Connected sock=10 [12:54: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 31 35 34 0F 01 00 00 30 5F 07 01 81 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 3A 61 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2B 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 64 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 82 00 00 00 F4 03 04 00 81 80 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FB 70 00 00 35 04 06 00 3C 6B 09 26 5C C9 92 9F 92 61 79 CD 75 15 [12:54:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 27 EE 47 00 DA 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FB 70 00 00 F4 03 04 00 28 2B 1A 66 B6 04 01 00 00 83 12 DF 50 6A 3E 34 29 [12:54:22]CommunicateWithHost err = 0 [12:54:22]CheckOFDResponse [12:54:22]1017 (14) - 77093643461234 [12:54:22]1041 (16) - 0000000000963154 [12:54:22]1040 (4) - 28923 [12:54:22]1012 (4) - 13.04.2024 06:50 [12:54:22]1206 (1) - 0 [12:54:22]OFD Sender: Remove packet 28923 [12:54:22]ProducePacketName [12:54:22]name=ofd_packets/00028923 [12:54:22]NVStorageDeleteData [12:54:22]Write to MH i2c: 01 00 00 1F 3D 5C [12:54:22]Write i2c OK [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: 01 [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: 01 07 00 [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: 01 07 00 1F 3D 00 00 00 00 00 BF 0C 2E [12:54:22]RasterBufferAndPrint [12:54:22]line [12:54:22]line [12:54:22]line [12:54:22]line [12:54:22]line [12:54:22]written 0, free lines is 3269 [12:54:22]MH_Cut [12:54:22]Write to MH i2c: D1 01 00 26 3D 01 35 [12:54:22]Write i2c OK [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: D1 [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: D1 01 00 [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: D1 01 00 26 3D 00 34 [12:54:22]Write to MH i2c: 01 00 00 27 3D 64 [12:54:22]Write i2c OK [12:54:22]MH_I2C_Read... [12:54:23]OFD Sender: No OFD packet to send [12:54:23]*** Cut start [12:54:23]*** Partial cut [12:54:23]*** CUTSNS_PIN = 1 [12:54:23]*** CUTSNS_PIN = 0 [12:54:24]*** Brake cut motor [12:54:24]Read from MH i2c: 01 [12:54:24]MH_I2C_Read... [12:54:24]*** Stop cut motor [12:54:24]*** Cut end [12:54:24]Read from MH i2c: 01 07 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: 01 07 00 27 3D 00 00 00 00 00 FF 0F 79 [12:54:24]process_action close_receipt done [12:54:24]requested_data is exist [12:54:24]produce_requested_data [12:54:24]requested_item fm.sn is exist - process it [12:54:24]wFMCommunicate request_size=4 [12:54:24]MH_SAM_APDU [12:54:24]CAPDU: 80 11 00 00 [12:54:24]Write to MH i2c: E2 08 00 28 3D 80 11 00 00 00 00 00 00 DF [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:24]Read from MH i2c: E2 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 17 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 17 00 28 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2E [12:54:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:54:24]wFMCommunicate OK [12:54:24]requested_item fd.num is exist - process it [12:54:24]SAM_PROTO_GetFieldsCounters [12:54:24]wFMCommunicate request_size=4 [12:54:24]MH_SAM_APDU [12:54:24]CAPDU: 80 13 00 00 [12:54:24]Write to MH i2c: E2 08 00 29 3D 80 13 00 00 00 00 00 00 E2 [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:24]Read from MH i2c: E2 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 62 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 62 00 29 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FB 70 00 00 0E 04 04 00 73 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 84 [12:54: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FB 70 00 00 0E 04 04 00 73 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:54:24]wFMCommunicate OK [12:54:24]SAM_PROTO_GetFieldsCounters done [12:54:24]requested_item shift.num is exist - process it [12:54:24]requested_item shift.opened is exist - process it [12:54:24]req_shift_opened [12:54:24]FM_GetShiftState [12:54:24]SAM_PROTO_GetShiftState [12:54:24]wFMCommunicate request_size=4 [12:54:24]MH_SAM_APDU [12:54:24]CAPDU: 80 13 01 00 [12:54:24]Write to MH i2c: E2 08 00 2A 3D 80 13 01 00 00 00 00 00 E4 [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:24]Read from MH i2c: E2 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 0E 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: E2 0E 00 2A 3D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 FD [12:54:24]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:54:24]wFMCommunicate OK [12:54:24]SAM_PROTO_GetShiftState done [12:54:24]FM_GetShiftState done [12:54:24]req_shift_opened done [12:54:24]requested_item shift.open_date is exist - process it [12:54:24]req_shift_open_date [12:54:24]req_shift_open_date done [12:54:24]produce_requested_data done [12:54:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28923,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [12:54:24]process_action_free close_receipt [12:54:24]json_value_free [12:54:24]json_value_free done [12:54:24]process_json_proto returns [12:54:24]Send response to host [12:54:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28923,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [12:54:24]free response buf [12:54:24]execute_script done [12:54:24]execute_script returns [12:54:24]free content buf [12:54:24]Sock 9.Close socket [12:54:24]Sock 9.Thread stoped [12:54:28]OFD Sender: No OFD packet to send [12:54:33]OFD Sender: No OFD packet to send [12:54:38]OFD Sender: No OFD packet to send [12:54:43]OFD Sender: No OFD packet to send [12:54:48]OFD Sender: No OFD packet to send [12:54:53]OFD Sender: No OFD packet to send [12:54:58]OFD Sender: No OFD packet to send [12:55:03]OFD Sender: No OFD packet to send [12:55:08]OFD Sender: No OFD packet to send [12:55:13]OFD Sender: No OFD packet to send [12:55:18]OFD Sender: No OFD packet to send [12:55:23]OFD Sender: No OFD packet to send [12:55:28]OFD Sender: No OFD packet to send [12:55:33]OFD Sender: No OFD packet to send [12:55:38]OFD Sender: No OFD packet to send [12:55:43]OFD Sender: No OFD packet to send [12:55:48]OFD Sender: No OFD packet to send [12:55:53]OFD Sender: No OFD packet to send [12:55:58]OFD Sender: No OFD packet to send [12:56:03]OFD Sender: No OFD packet to send [12:56:08]OFD Sender: No OFD packet to send [12:56:10]accept exits with 7 [12:56:10]New connection [12:56:10]New thread 3066928484 created [12:56:10]Thread 3066785124 joined [12:56:10]Waiting for new connection... [12:56:10] Sock 7.Parse request [12:56:10]Sock 7.Check first char [12:56:10]Sock 7.First char is OK [12:56:10]request: POST /json_proto HTTP/1.0 [12:56:10]Method: POST [12:56:10]URL: /json_proto [12:56:10]Method is POST - this is cgi request [12:56:10]url: /json_proto [12:56:10]query_string will be loaded in cgi processing [12:56:10]execute_cgi json_proto POST (null) [12:56:10]execute_cgi path=json_proto method=POST [12:56:10]POST find Content-Length [12:56:10]Host: 172.17.33.3:8080 [12:56:10]Content-Length: 677 [12:56:10]Content-Type: application/json [12:56:10] [12:56:10]POST finish read [12:56:10]Found Content-Length = 677 [12:56:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "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" ] } } [12:56:10]execute_script... [12:56: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)347279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "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" ] } } [12:56:10]POST & json_proto [12:56:10]process_json_proto [12:56:10]json parsed OK: [12:56:10]protocol is kg_v1.0 [12:56:10]action value=close_receipt [12:56:10]process_action close_receipt [12:56:10]cmd_close_receipt [12:56:10]MH_GetDate [12:56:10]Write to MH i2c: F0 00 00 2B 3D 57 [12:56:10]Write i2c OK [12:56:10]MH_I2C_Read... [12:56:10]Read from MH i2c: F0 [12:56:10]MH_I2C_Read... [12:56:10]Read from MH i2c: F0 09 00 [12:56:10]MH_I2C_Read... [12:56:10]Read from MH i2c: F0 09 00 2B 3D 00 EF 80 1A 66 23 5B 8F 65 C1 [12:56:10]GetLastDocTimeStamp 1713012865 [12:56:10]current date 1713012975 [12:56:10]FM_GetShiftState [12:56:10]SAM_PROTO_GetShiftState [12:56:10]wFMCommunicate request_size=4 [12:56:10]MH_SAM_APDU [12:56:10]CAPDU: 80 13 01 00 [12:56:10]Write to MH i2c: E2 08 00 2C 3D 80 13 01 00 00 00 00 00 E6 [12:56:10]Write i2c OK [12:56:10]MH_I2C_Read... [12:56:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:10]Read from MH i2c: E2 [12:56:10]MH_I2C_Read... [12:56:10]Read from MH i2c: E2 0E 00 [12:56:10]MH_I2C_Read... [12:56:10]Read from MH i2c: E2 0E 00 2C 3D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 FF [12:56:10]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:56:10]wFMCommunicate OK [12:56:10]SAM_PROTO_GetShiftState done [12:56:10]FM_GetShiftState done [12:56:10]opened in 1712967615 [12:56:10]opened+sec_in_day 1713054015 [12:56:10]quantity*price = 50025 [12:56:10]sum+1 = 50026 [12:56:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 131 13.04.2024 12:56 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28924 ФПД: 46610184207209 1/tax-web-control/client/api/v1/ticket?date=20240413T125615&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28924&fm=46610184207209&tin=02508201610067®Number=0000138879044617&sum=50000 [12:56:11]StoreToDocumentArchive [12:56:11]shift 115 fd 28924 [12:56:11]save to /storage/0115/doc_00028924 [12:56:11]save last doc name /storage/0115/doc_00028924 to /storage/kkm_last_doc_name [12:56:11]save OK [12:56:11]Clear old archive folders... [12:56:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:56:11]tlvbuf is 011EADE0 [12:56:11]SAM_PROTO_ClearQueue [12:56:11]wFMCommunicate request_size=4 [12:56:11]MH_SAM_APDU [12:56:11]CAPDU: 80 09 00 00 [12:56:11]Write to MH i2c: E2 08 00 39 3D 80 09 00 00 00 00 00 00 E8 [12:56:11]Write i2c OK [12:56:11]MH_I2C_Read... [12:56:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:11]Read from MH i2c: E2 [12:56:11]MH_I2C_Read... [12:56:11]Read from MH i2c: E2 03 00 [12:56:11]MH_I2C_Read... [12:56:11]Read from MH i2c: E2 03 00 39 3D 00 90 00 EA [12:56:11]RAPDU: 90 00 [12:56:11]wFMCommunicate OK [12:56:11]SAM_PROTO_ClearQueue done [12:56:11]KKMCreateOFDPacket [12:56:11]OFDProtocolAddRootSTLVToBuf [12:56:11]FM_MakeSignedData [12:56:11]FM_MakeSignedData [12:56:11]SAM_PROTO_SignData [12:56:11]wFMCommunicate request_size=4 [12:56:11]MH_SAM_APDU [12:56:11]CAPDU: 80 0D 01 02 [12:56:11]Write to MH i2c: E2 08 00 3A 3D 80 0D 01 02 00 00 00 00 F0 [12:56:11]Write i2c OK [12:56:11]MH_I2C_Read... [12:56:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:11]Read from MH i2c: E2 [12:56:11]MH_I2C_Read... [12:56:11]Read from MH i2c: E2 03 00 [12:56:11]MH_I2C_Read... [12:56:11]Read from MH i2c: E2 03 00 3A 3D 00 90 00 EB [12:56:11]RAPDU: 90 00 [12:56:11]wFMCommunicate OK [12:56:11]wFMCommunicate request_size=255 [12:56:11]MH_SAM_APDU [12:56: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 83 00 00 00 F4 03 04 00 EF 80 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FC 70 00 00 35 04 06 00 2A [12:56:11]Write to MH i2c: E2 02 01 3B 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 83 00 00 00 F4 03 04 00 EF 80 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FC 70 00 00 35 04 06 00 2A 00 00 2D [12:56:11]Write i2c OK [12:56:11]MH_I2C_Read... [12:56:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:12]Read from MH i2c: E2 [12:56:12]MH_I2C_Read... [12:56:12]Read from MH i2c: E2 03 00 [12:56:12]MH_I2C_Read... [12:56:12]Read from MH i2c: E2 03 00 3B 3D 00 90 00 EC [12:56:12]RAPDU: 90 00 [12:56:12]wFMCommunicate OK [12:56:12]wFMCommunicate request_size=10 [12:56:12]MH_SAM_APDU [12:56:12]CAPDU: 80 0D 02 02 05 64 47 78 FB 69 [12:56:12]Write to MH i2c: E2 0D 00 3C 3D 80 0D 02 02 05 00 64 47 78 FB 69 00 00 84 [12:56:12]Write i2c OK [12:56:12]MH_I2C_Read... [12:56:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:12]Read from MH i2c: E2 [12:56:12]MH_I2C_Read... [12:56:12]Read from MH i2c: E2 03 00 [12:56:12]MH_I2C_Read... [12:56:12]Read from MH i2c: E2 03 00 3C 3D 00 90 00 ED [12:56:12]RAPDU: 90 00 [12:56:12]wFMCommunicate OK [12:56:12]wFMCommunicate request_size=4 [12:56:12]MH_SAM_APDU [12:56:12]CAPDU: 80 0D 03 02 [12:56:12]Write to MH i2c: E2 08 00 3D 3D 80 0D 03 02 00 00 00 00 F5 [12:56:12]Write i2c OK [12:56:12]MH_I2C_Read... [12:56:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:12]Read from MH i2c: E2 [12:56:12]MH_I2C_Read... [12:56:12]Read from MH i2c: E2 0B 00 [12:56:12]MH_I2C_Read... [12:56:12]Read from MH i2c: E2 0B 00 3D 3D 00 D3 A1 AB 2D EC 32 BD 49 90 00 66 [12:56:12]RAPDU: D3 A1 AB 2D EC 32 BD 49 90 00 [12:56:12]wFMCommunicate OK [12:56:12]SAM_PROTO_SignData done [12:56:12]FM_MakeSignedData done [12:56:12]CreateOFDProtocolMessage [12:56:12]wFMCommunicate request_size=4 [12:56:12]MH_SAM_APDU [12:56:12]CAPDU: 80 11 00 00 [12:56:12]Write to MH i2c: E2 08 00 3E 3D 80 11 00 00 00 00 00 00 F5 [12:56:12]Write i2c OK [12:56:12]MH_I2C_Read... [12:56:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:12]Read from MH i2c: E2 [12:56:12]MH_I2C_Read... [12:56:12]Read from MH i2c: E2 17 00 [12:56:12]MH_I2C_Read... [12:56:12]Read from MH i2c: E2 17 00 3E 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 44 [12:56:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:56:12]wFMCommunicate OK [12:56:12]CreateOFDProtocolMessage done [12:56:12]OFDSenderStorePacket 28924 [12:56:12]StoreOFDPacket docnum=28924 [12:56:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 21 B4 07 01 7F 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 83 00 00 00 F4 03 04 00 EF 80 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FC 70 00 00 35 04 06 00 2A 64 47 78 FB 69 D3 A1 AB 2D EC 32 BD 49 [12:56:12]CheckFolder [12:56:12]dirname=/storage/ofd_packets [12:56:12]CheckFolder done [12:56:12]ProducePacketName [12:56:12]name=ofd_packets/00028924 [12:56:12]NVStorageSaveData ofd_packets/00028924 [12:56:12]File name is /storage/ofd_packets/00028924 [12:56:12]Write 301 bytes [12:56:12]NVStorageSaveData done [12:56:12]OFDSenderStorePacket done [12:56:12]KKMCreateOFDPacket done [12:56:12]NVStorageSaveData kkm_last_timestamp [12:56:12]File name is /storage/kkm_last_timestamp [12:56:12]Write 4 bytes [12:56:12]NVStorageSaveData done [12:56:12]ExternCall_PrintAddStr [12:56:12]wPrintStart [12:56:12]Write to MH i2c: 01 00 00 3F 3D 7C [12:56:12]Write i2c OK [12:56:12]MH_I2C_Read... [12:56:12]Read from MH i2c: 01 [12:56:12]MH_I2C_Read... [12:56:12]Read from MH i2c: 01 07 00 [12:56:12]MH_I2C_Read... [12:56:12]Read from MH i2c: 01 07 00 3F 3D 00 00 00 00 00 FF 0F 91 [12:56:12]RasterBufferAndPrint [12:56:12]line Счет N : (1)347279 [12:56:12]line ИНН: 02508201610067 [12:56:12]line Контрольно-Кассовый Чек [12:56:12]line ПРОДАЖА [12:56:12]line ТРК (МРК, ГНК) : 23 [12:56:12]line Товар: 2710124130 [12:56:12]line Аи-92-К-5 [12:56:12]line 7.780 * 64.30 [12:56:12]line = 500.25 [12:56:12]line НДС 12% НСП 1% [12:56:12]line > о реализуемом товаре [12:56:12]line ОКРУГЛЕНИЕ: -0.25 [12:56:12]line ИТОГО: 500.00 [12:56:12]line Внесено: 500.00 [12:56:12]line СДАЧА: 0.00 [12:56:12]line НСП 1% : 4.43 [12:56:12]line НДС 12% : 53.12 [12:56:12]line Наличными: 500.00 [12:56:12]line Безнал.: 0.00 [12:56:12]line Место: АЗС № 108 "Партнер Нефть" [12:56:12]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [12:56:12]line СНО: Общий режим [12:56:12]line Чек 131 13.04.2024 12:56 [12:56:12]line Смена: 115 ФФД: 1.0 [12:56:12]line ЗНМ: 0300000027 [12:56:12]line РНМ: 0000138879044617 [12:56:12]line Версия ККМ: 001 [12:56:12]line ФМ: 0000000000963154 [12:56:12]line ФД: 28924 [12:56:12]line ФПД: 46610184207209 [12:56:12]line 1/tax-web-control/client/api/v1/ticket?date=20240413T125615&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28924&fm=46610184207209&tin=02508201610067®Number=0000138879044617&sum=50000 [12:56:12]OFD Sender: Processing packet 28924 [packets to send 8, broken 7] [12:56:12]ProducePacketName [12:56:12]name=ofd_packets/00028924 [12:56:12]OFD Sender: To server: pG, [12:56:12]CommunicateWithHost lk.salyk.kg:30040 [12:56:12]ConnectInit lk.salyk.kg [12:56:12]written 0, free lines is 4095 [12:56:12]Connected sock=10 [12:56: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 31 35 34 0F 01 00 00 21 B4 07 01 7F 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 83 00 00 00 F4 03 04 00 EF 80 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FC 70 00 00 35 04 06 00 2A 64 47 78 FB 69 D3 A1 AB 2D EC 32 BD 49 [12:56:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 48 60 47 00 CE 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 31 35 34 10 04 04 00 FC 70 00 00 F4 03 04 00 96 2B 1A 66 B6 04 01 00 00 35 B6 8D B1 54 9C 8F 29 [12:56:12]CommunicateWithHost err = 0 [12:56:12]CheckOFDResponse [12:56:12]1017 (14) - 77093643461234 [12:56:12]1041 (16) - 0000000000963154 [12:56:12]1040 (4) - 28924 [12:56:12]1012 (4) - 13.04.2024 06:52 [12:56:12]1206 (1) - 0 [12:56:12]OFD Sender: Remove packet 28924 [12:56:12]ProducePacketName [12:56:12]name=ofd_packets/00028924 [12:56:12]NVStorageDeleteData [12:56:12]Write to MH i2c: 01 00 00 69 3D A6 [12:56:12]Write i2c OK [12:56:12]MH_I2C_Read... [12:56:12]Read from MH i2c: 01 [12:56:12]MH_I2C_Read... [12:56:12]Read from MH i2c: 01 07 00 [12:56:12]MH_I2C_Read... [12:56:12]Read from MH i2c: 01 07 00 69 3D 00 00 00 00 00 BB 0C 74 [12:56:12]RasterBufferAndPrint [12:56:12]line [12:56:12]line [12:56:12]line [12:56:12]line [12:56:12]line [12:56:12]written 0, free lines is 3265 [12:56:12]MH_Cut [12:56:12]Write to MH i2c: D1 01 00 70 3D 01 7F [12:56:12]Write i2c OK [12:56:12]MH_I2C_Read... [12:56:12]Read from MH i2c: D1 [12:56:12]MH_I2C_Read... [12:56:12]Read from MH i2c: D1 01 00 [12:56:12]MH_I2C_Read... [12:56:12]Read from MH i2c: D1 01 00 70 3D 00 7E [12:56:12]Write to MH i2c: 01 00 00 71 3D AE [12:56:12]Write i2c OK [12:56:12]MH_I2C_Read... [12:56:13]OFD Sender: No OFD packet to send [12:56:13]*** Cut start [12:56:13]*** Partial cut [12:56:13]*** CUTSNS_PIN = 1 [12:56:13]*** CUTSNS_PIN = 0 [12:56:14]*** Brake cut motor [12:56:14]Read from MH i2c: 01 [12:56:14]MH_I2C_Read... [12:56:14]*** Stop cut motor [12:56:14]*** Cut end [12:56:14]Read from MH i2c: 01 07 00 [12:56:14]MH_I2C_Read... [12:56:14]Read from MH i2c: 01 07 00 71 3D 00 00 00 00 00 FF 0F C3 [12:56:14]process_action close_receipt done [12:56:14]requested_data is exist [12:56:14]produce_requested_data [12:56:14]requested_item fm.sn is exist - process it [12:56:14]wFMCommunicate request_size=4 [12:56:14]MH_SAM_APDU [12:56:14]CAPDU: 80 11 00 00 [12:56:14]Write to MH i2c: E2 08 00 72 3D 80 11 00 00 00 00 00 00 29 [12:56:14]Write i2c OK [12:56:14]MH_I2C_Read... [12:56:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:14]Read from MH i2c: E2 [12:56:14]MH_I2C_Read... [12:56:14]Read from MH i2c: E2 17 00 [12:56:14]MH_I2C_Read... [12:56:14]Read from MH i2c: E2 17 00 72 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 78 [12:56:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [12:56:14]wFMCommunicate OK [12:56:14]requested_item fd.num is exist - process it [12:56:14]SAM_PROTO_GetFieldsCounters [12:56:14]wFMCommunicate request_size=4 [12:56:14]MH_SAM_APDU [12:56:14]CAPDU: 80 13 00 00 [12:56:14]Write to MH i2c: E2 08 00 73 3D 80 13 00 00 00 00 00 00 2C [12:56:14]Write i2c OK [12:56:14]MH_I2C_Read... [12:56:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:14]Read from MH i2c: E2 [12:56:14]MH_I2C_Read... [12:56:14]Read from MH i2c: E2 62 00 [12:56:14]MH_I2C_Read... [12:56:14]Read from MH i2c: E2 62 00 73 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FC 70 00 00 0E 04 04 00 73 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 D2 [12:56: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FC 70 00 00 0E 04 04 00 73 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:56:14]wFMCommunicate OK [12:56:14]SAM_PROTO_GetFieldsCounters done [12:56:14]requested_item shift.num is exist - process it [12:56:14]requested_item shift.opened is exist - process it [12:56:14]req_shift_opened [12:56:14]FM_GetShiftState [12:56:14]SAM_PROTO_GetShiftState [12:56:14]wFMCommunicate request_size=4 [12:56:14]MH_SAM_APDU [12:56:14]CAPDU: 80 13 01 00 [12:56:14]Write to MH i2c: E2 08 00 74 3D 80 13 01 00 00 00 00 00 2E [12:56:14]Write i2c OK [12:56:14]MH_I2C_Read... [12:56:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:14]Read from MH i2c: E2 [12:56:14]MH_I2C_Read... [12:56:14]Read from MH i2c: E2 0E 00 [12:56:14]MH_I2C_Read... [12:56:14]Read from MH i2c: E2 0E 00 74 3D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 47 [12:56:14]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [12:56:14]wFMCommunicate OK [12:56:14]SAM_PROTO_GetShiftState done [12:56:14]FM_GetShiftState done [12:56:14]req_shift_opened done [12:56:14]requested_item shift.open_date is exist - process it [12:56:14]req_shift_open_date [12:56:14]req_shift_open_date done [12:56:14]produce_requested_data done [12:56:14]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28924,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [12:56:14]process_action_free close_receipt [12:56:14]json_value_free [12:56:14]json_value_free done [12:56:14]process_json_proto returns [12:56:14]Send response to host [12:56:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28924,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [12:56:14]free response buf [12:56:14]execute_script done [12:56:14]execute_script returns [12:56:14]free content buf [12:56:14]Sock 7.Close socket [12:56:14]Sock 7.Thread stoped [12:56:18]OFD Sender: No OFD packet to send [12:56:23]OFD Sender: No OFD packet to send [12:56:28]OFD Sender: No OFD packet to send [12:56:33]OFD Sender: No OFD packet to send [12:56:38]OFD Sender: No OFD packet to send [12:56:43]OFD Sender: No OFD packet to send [12:56:48]OFD Sender: No OFD packet to send [12:56:53]OFD Sender: No OFD packet to send [12:56:58]OFD Sender: No OFD packet to send [12:57:03]OFD Sender: No OFD packet to send [12:57:08]OFD Sender: No OFD packet to send [12:57:13]OFD Sender: No OFD packet to send [12:57:18]OFD Sender: No OFD packet to send [12:57:23]OFD Sender: No OFD packet to send [12:57:28]OFD Sender: No OFD packet to send [12:57:33]OFD Sender: No OFD packet to send [12:57:38]OFD Sender: No OFD packet to send [12:57:43]OFD Sender: No OFD packet to send [12:57:48]OFD Sender: No OFD packet to send [12:57:53]OFD Sender: No OFD packet to send [12:57:58]OFD Sender: No OFD packet to send [12:58:03]OFD Sender: No OFD packet to send [12:58:08]OFD Sender: No OFD packet to send [12:58:13]OFD Sender: No OFD packet to send [12:58:18]OFD Sender: No OFD packet to send [12:58:23]OFD Sender: No OFD packet to send [12:58:28]OFD Sender: No OFD packet to send [12:58:33]OFD Sender: No OFD packet to send [12:58:38]OFD Sender: No OFD packet to send [12:58:43]OFD Sender: No OFD packet to send [12:58:48]OFD Sender: No OFD packet to send [12:58:53]OFD Sender: No OFD packet to send [12:58:58]OFD Sender: No OFD packet to send [12:59:03]OFD Sender: No OFD packet to send [12:59:08]OFD Sender: No OFD packet to send [12:59:13]OFD Sender: No OFD packet to send [12:59:18]OFD Sender: No OFD packet to send [12:59:23]OFD Sender: No OFD packet to send [12:59:28]OFD Sender: No OFD packet to send [12:59:33]OFD Sender: No OFD packet to send [12:59:38]OFD Sender: No OFD packet to send [12:59:43]OFD Sender: No OFD packet to send [12:59:48]OFD Sender: No OFD packet to send [12:59:53]OFD Sender: No OFD packet to send [12:59:58]OFD Sender: No OFD packet to send [13:00:03]OFD Sender: No OFD packet to send [13:00:06]accept exits with 9 [13:00:06]New connection [13:00:06]New thread 3066785124 created [13:00:06]Thread 3066928484 joined [13:00:06]Waiting for new connection... [13:00:06] Sock 9.Parse request [13:00:06]Sock 9.Check first char [13:00:06]Sock 9.First char is OK [13:00:06]request: POST /json_proto HTTP/1.0 [13:00:06]Method: POST [13:00:06]URL: /json_proto [13:00:06]Method is POST - this is cgi request [13:00:06]url: /json_proto [13:00:06]query_string will be loaded in cgi processing [13:00:06]execute_cgi json_proto POST (null) [13:00:06]execute_cgi path=json_proto method=POST [13:00:06]POST find Content-Length [13:00:06]Host: 172.17.33.3:8080 [13:00:06]Content-Length: 677 [13:00:06]Content-Type: application/json [13:00:06] [13:00:06]POST finish read [13:00:06]Found Content-Length = 677 [13:00:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347280", "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" : 64.30, "quantity" : 3.120, "sum" : 200.62, "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:00:06]execute_script... [13:00:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347280", "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" : 64.30, "quantity" : 3.120, "sum" : 200.62, "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:00:06]POST & json_proto [13:00:06]process_json_proto [13:00:06]json parsed OK: [13:00:06]protocol is kg_v1.0 [13:00:06]action value=close_receipt [13:00:06]process_action close_receipt [13:00:06]cmd_close_receipt [13:00:06]MH_GetDate [13:00:06]Write to MH i2c: F0 00 00 75 3D A1 [13:00:06]Write i2c OK [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: F0 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: F0 09 00 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: F0 09 00 75 3D 00 DA 81 1A 66 23 5B 8F 65 F7 [13:00:06]GetLastDocTimeStamp 1713012975 [13:00:06]current date 1713013210 [13:00:06]FM_GetShiftState [13:00:06]SAM_PROTO_GetShiftState [13:00:06]wFMCommunicate request_size=4 [13:00:06]MH_SAM_APDU [13:00:06]CAPDU: 80 13 01 00 [13:00:06]Write to MH i2c: E2 08 00 76 3D 80 13 01 00 00 00 00 00 30 [13:00:06]Write i2c OK [13:00:06]MH_I2C_Read... [13:00:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:06]Read from MH i2c: E2 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: E2 0E 00 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: E2 0E 00 76 3D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 49 [13:00:06]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:00:06]wFMCommunicate OK [13:00:06]SAM_PROTO_GetShiftState done [13:00:06]FM_GetShiftState done [13:00:06]opened in 1712967615 [13:00:06]opened+sec_in_day 1713054015 [13:00:06]quantity*price = 20061 [13:00:06]sum+1 = 20063 [13:00:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 132 13.04.2024 13:00 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28925 ФПД: 89564930474814 1/tax-web-control/client/api/v1/ticket?date=20240413T130010&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28925&fm=89564930474814&tin=02508201610067®Number=0000138879044617&sum=20000 [13:00:07]StoreToDocumentArchive [13:00:07]shift 115 fd 28925 [13:00:07]save to /storage/0115/doc_00028925 [13:00:07]save last doc name /storage/0115/doc_00028925 to /storage/kkm_last_doc_name [13:00:07]save OK [13:00:07]Clear old archive folders... [13:00:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:07]tlvbuf is 011DABE0 [13:00:07]SAM_PROTO_ClearQueue [13:00:07]wFMCommunicate request_size=4 [13:00:07]MH_SAM_APDU [13:00:07]CAPDU: 80 09 00 00 [13:00:07]Write to MH i2c: E2 08 00 83 3D 80 09 00 00 00 00 00 00 32 [13:00:07]Write i2c OK [13:00:07]MH_I2C_Read... [13:00:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:07]Read from MH i2c: E2 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 03 00 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 03 00 83 3D 00 90 00 34 [13:00:07]RAPDU: 90 00 [13:00:07]wFMCommunicate OK [13:00:07]SAM_PROTO_ClearQueue done [13:00:07]KKMCreateOFDPacket [13:00:07]OFDProtocolAddRootSTLVToBuf [13:00:07]FM_MakeSignedData [13:00:07]FM_MakeSignedData [13:00:07]SAM_PROTO_SignData [13:00:07]wFMCommunicate request_size=4 [13:00:07]MH_SAM_APDU [13:00:07]CAPDU: 80 0D 01 02 [13:00:07]Write to MH i2c: E2 08 00 84 3D 80 0D 01 02 00 00 00 00 3A [13:00:07]Write i2c OK [13:00:07]MH_I2C_Read... [13:00:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:07]Read from MH i2c: E2 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 03 00 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 03 00 84 3D 00 90 00 35 [13:00:07]RAPDU: 90 00 [13:00:07]wFMCommunicate OK [13:00:07]wFMCommunicate request_size=255 [13:00:07]MH_SAM_APDU [13:00:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 84 00 00 00 F4 03 04 00 DA 81 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FD 70 00 00 35 04 06 00 51 [13:00:07]Write to MH i2c: E2 02 01 85 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 84 00 00 00 F4 03 04 00 DA 81 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FD 70 00 00 35 04 06 00 51 00 00 F7 [13:00:07]Write i2c OK [13:00:07]MH_I2C_Read... [13:00:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:07]Read from MH i2c: E2 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 03 00 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 03 00 85 3D 00 90 00 36 [13:00:07]RAPDU: 90 00 [13:00:07]wFMCommunicate OK [13:00:07]wFMCommunicate request_size=10 [13:00:07]MH_SAM_APDU [13:00:07]CAPDU: 80 0D 02 02 05 75 75 DD 83 3E [13:00:07]Write to MH i2c: E2 0D 00 86 3D 80 0D 02 02 05 00 75 75 DD 83 3E 00 00 CF [13:00:07]Write i2c OK [13:00:07]MH_I2C_Read... [13:00:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:07]Read from MH i2c: E2 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 03 00 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 03 00 86 3D 00 90 00 37 [13:00:07]RAPDU: 90 00 [13:00:07]wFMCommunicate OK [13:00:07]wFMCommunicate request_size=4 [13:00:07]MH_SAM_APDU [13:00:07]CAPDU: 80 0D 03 02 [13:00:07]Write to MH i2c: E2 08 00 87 3D 80 0D 03 02 00 00 00 00 3F [13:00:07]Write i2c OK [13:00:07]MH_I2C_Read... [13:00:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:07]Read from MH i2c: E2 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 0B 00 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 0B 00 87 3D 00 49 3D 0A DE 6C 80 FF B7 90 00 50 [13:00:07]RAPDU: 49 3D 0A DE 6C 80 FF B7 90 00 [13:00:07]wFMCommunicate OK [13:00:07]SAM_PROTO_SignData done [13:00:07]FM_MakeSignedData done [13:00:07]CreateOFDProtocolMessage [13:00:07]wFMCommunicate request_size=4 [13:00:07]MH_SAM_APDU [13:00:07]CAPDU: 80 11 00 00 [13:00:07]Write to MH i2c: E2 08 00 88 3D 80 11 00 00 00 00 00 00 3F [13:00:07]Write i2c OK [13:00:07]MH_I2C_Read... [13:00:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:07]Read from MH i2c: E2 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 17 00 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 17 00 88 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8E [13:00:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:00:07]wFMCommunicate OK [13:00:07]CreateOFDProtocolMessage done [13:00:07]OFDSenderStorePacket 28925 [13:00:07]StoreOFDPacket docnum=28925 [13:00:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6B CD 07 01 44 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 84 00 00 00 F4 03 04 00 DA 81 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FD 70 00 00 35 04 06 00 51 75 75 DD 83 3E 49 3D 0A DE 6C 80 FF B7 [13:00:07]CheckFolder [13:00:07]dirname=/storage/ofd_packets [13:00:07]CheckFolder done [13:00:07]ProducePacketName [13:00:07]name=ofd_packets/00028925 [13:00:07]NVStorageSaveData ofd_packets/00028925 [13:00:07]File name is /storage/ofd_packets/00028925 [13:00:07]Write 301 bytes [13:00:07]NVStorageSaveData done [13:00:07]OFDSenderStorePacket done [13:00:07]KKMCreateOFDPacket done [13:00:07]NVStorageSaveData kkm_last_timestamp [13:00:07]File name is /storage/kkm_last_timestamp [13:00:07]Write 4 bytes [13:00:07]NVStorageSaveData done [13:00:07]ExternCall_PrintAddStr [13:00:07]wPrintStart [13:00:07]Write to MH i2c: 01 00 00 89 3D C6 [13:00:07]Write i2c OK [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: 01 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: 01 07 00 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: 01 07 00 89 3D 00 00 00 00 00 FF 0F DB [13:00:07]RasterBufferAndPrint [13:00:07]line Счет N : (1)347280 [13:00:07]line ИНН: 02508201610067 [13:00:07]line Контрольно-Кассовый Чек [13:00:07]line ПРОДАЖА [13:00:07]line ТРК (МРК, ГНК) : 32 [13:00:07]line Товар: 2710124130 [13:00:07]line Аи-92-К-5 [13:00:07]line 3.120 * 64.30 [13:00:07]line = 200.62 [13:00:07]line НДС 12% НСП 1% [13:00:07]line > о реализуемом товаре [13:00:07]line ОКРУГЛЕНИЕ: -0.62 [13:00:07]line ИТОГО: 200.00 [13:00:07]line Внесено: 200.00 [13:00:07]line СДАЧА: 0.00 [13:00:07]line НСП 1% : 1.77 [13:00:07]line НДС 12% : 21.30 [13:00:07]line Наличными: 200.00 [13:00:07]line Безнал.: 0.00 [13:00:07]line Место: АЗС № 108 "Партнер Нефть" [13:00:07]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:00:07]line СНО: Общий режим [13:00:07]line Чек 132 13.04.2024 13:00 [13:00:07]line Смена: 115 ФФД: 1.0 [13:00:07]line ЗНМ: 0300000027 [13:00:07]line РНМ: 0000138879044617 [13:00:07]line Версия ККМ: 001 [13:00:07]line ФМ: 0000000000963154 [13:00:07]line ФД: 28925 [13:00:07]line ФПД: 89564930474814 [13:00:08]line 1/tax-web-control/client/api/v1/ticket?date=20240413T130010&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28925&fm=89564930474814&tin=02508201610067®Number=0000138879044617&sum=20000 [13:00:08]OFD Sender: Processing packet 28925 [packets to send 8, broken 7] [13:00:08]ProducePacketName [13:00:08]name=ofd_packets/00028925 [13:00:08]OFD Sender: To server: pG, [13:00:08]CommunicateWithHost lk.salyk.kg:30040 [13:00:08]ConnectInit lk.salyk.kg [13:00:08]written 0, free lines is 4095 [13:00:08]Connected sock=10 [13:00: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 31 35 34 0F 01 00 00 6B CD 07 01 44 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 84 00 00 00 F4 03 04 00 DA 81 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FD 70 00 00 35 04 06 00 51 75 75 DD 83 3E 49 3D 0A DE 6C 80 FF B7 [13:00:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 26 DF 47 00 E3 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 31 35 34 10 04 04 00 FD 70 00 00 F4 03 04 00 81 2C 1A 66 B6 04 01 00 00 65 E8 91 45 6F 40 C3 84 [13:00:08]CommunicateWithHost err = 0 [13:00:08]CheckOFDResponse [13:00:08]1017 (14) - 77093643461234 [13:00:08]1041 (16) - 0000000000963154 [13:00:08]1040 (4) - 28925 [13:00:08]1012 (4) - 13.04.2024 06:56 [13:00:08]1206 (1) - 0 [13:00:08]OFD Sender: Remove packet 28925 [13:00:08]ProducePacketName [13:00:08]name=ofd_packets/00028925 [13:00:08]NVStorageDeleteData [13:00:08]Write to MH i2c: 01 00 00 B3 3D F0 [13:00:08]Write i2c OK [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: 01 [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: 01 07 00 [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: 01 07 00 B3 3D 00 00 00 00 00 C1 0C C4 [13:00:08]RasterBufferAndPrint [13:00:08]line [13:00:08]line [13:00:08]line [13:00:08]line [13:00:08]line [13:00:08]written 0, free lines is 3271 [13:00:08]MH_Cut [13:00:08]Write to MH i2c: D1 01 00 BA 3D 01 C9 [13:00:08]Write i2c OK [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: D1 [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: D1 01 00 [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: D1 01 00 BA 3D 00 C8 [13:00:08]Write to MH i2c: 01 00 00 BB 3D F8 [13:00:08]Write i2c OK [13:00:08]MH_I2C_Read... [13:00:08]OFD Sender: No OFD packet to send [13:00:09]*** Cut start [13:00:09]*** Partial cut [13:00:09]*** CUTSNS_PIN = 1 [13:00:09]*** CUTSNS_PIN = 0 [13:00:09]*** Brake cut motor [13:00:09]Read from MH i2c: 01 [13:00:09]MH_I2C_Read... [13:00:09]*** Stop cut motor [13:00:09]*** Cut end [13:00:09]Read from MH i2c: 01 07 00 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: 01 07 00 BB 3D 00 00 00 00 00 FF 0F 0D [13:00:09]process_action close_receipt done [13:00:09]requested_data is exist [13:00:09]produce_requested_data [13:00:09]requested_item fm.sn is exist - process it [13:00:09]wFMCommunicate request_size=4 [13:00:09]MH_SAM_APDU [13:00:09]CAPDU: 80 11 00 00 [13:00:09]Write to MH i2c: E2 08 00 BC 3D 80 11 00 00 00 00 00 00 73 [13:00:09]Write i2c OK [13:00:09]MH_I2C_Read... [13:00:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:10]Read from MH i2c: E2 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 17 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 17 00 BC 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C2 [13:00:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:00:10]wFMCommunicate OK [13:00:10]requested_item fd.num is exist - process it [13:00:10]SAM_PROTO_GetFieldsCounters [13:00:10]wFMCommunicate request_size=4 [13:00:10]MH_SAM_APDU [13:00:10]CAPDU: 80 13 00 00 [13:00:10]Write to MH i2c: E2 08 00 BD 3D 80 13 00 00 00 00 00 00 76 [13:00:10]Write i2c OK [13:00:10]MH_I2C_Read... [13:00:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:10]Read from MH i2c: E2 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 62 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 62 00 BD 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FD 70 00 00 0E 04 04 00 73 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 20 [13:00: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FD 70 00 00 0E 04 04 00 73 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 [13:00:10]wFMCommunicate OK [13:00:10]SAM_PROTO_GetFieldsCounters done [13:00:10]requested_item shift.num is exist - process it [13:00:10]requested_item shift.opened is exist - process it [13:00:10]req_shift_opened [13:00:10]FM_GetShiftState [13:00:10]SAM_PROTO_GetShiftState [13:00:10]wFMCommunicate request_size=4 [13:00:10]MH_SAM_APDU [13:00:10]CAPDU: 80 13 01 00 [13:00:10]Write to MH i2c: E2 08 00 BE 3D 80 13 01 00 00 00 00 00 78 [13:00:10]Write i2c OK [13:00:10]MH_I2C_Read... [13:00:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:10]Read from MH i2c: E2 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 0E 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 0E 00 BE 3D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 91 [13:00:10]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:00:10]wFMCommunicate OK [13:00:10]SAM_PROTO_GetShiftState done [13:00:10]FM_GetShiftState done [13:00:10]req_shift_opened done [13:00:10]requested_item shift.open_date is exist - process it [13:00:10]req_shift_open_date [13:00:10]req_shift_open_date done [13:00:10]produce_requested_data done [13:00:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28925,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [13:00:10]process_action_free close_receipt [13:00:10]json_value_free [13:00:10]json_value_free done [13:00:10]process_json_proto returns [13:00:10]Send response to host [13:00:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28925,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [13:00:10]free response buf [13:00:10]execute_script done [13:00:10]execute_script returns [13:00:10]free content buf [13:00:10]Sock 9.Close socket [13:00:10]Sock 9.Thread stoped [13:00:13]OFD Sender: No OFD packet to send [13:00:18]OFD Sender: No OFD packet to send [13:00:23]OFD Sender: No OFD packet to send [13:00:28]OFD Sender: No OFD packet to send [13:00:33]OFD Sender: No OFD packet to send [13:00:38]OFD Sender: No OFD packet to send [13:00:43]OFD Sender: No OFD packet to send [13:00:48]OFD Sender: No OFD packet to send [13:00:53]OFD Sender: No OFD packet to send [13:00:58]OFD Sender: No OFD packet to send [13:01:03]OFD Sender: No OFD packet to send [13:01:08]OFD Sender: No OFD packet to send [13:01:13]OFD Sender: No OFD packet to send [13:01:18]OFD Sender: No OFD packet to send [13:01:22]accept exits with 7 [13:01:22]New connection [13:01:22]New thread 3066928484 created [13:01:22]Thread 3066785124 joined [13:01:22]Waiting for new connection... [13:01:22] Sock 7.Parse request [13:01:22]Sock 7.Check first char [13:01:22]Sock 7.First char is OK [13:01:22]request: POST /json_proto HTTP/1.0 [13:01:22]Method: POST [13:01:22]URL: /json_proto [13:01:22]Method is POST - this is cgi request [13:01:22]url: /json_proto [13:01:22]query_string will be loaded in cgi processing [13:01:22]execute_cgi json_proto POST (null) [13:01:22]execute_cgi path=json_proto method=POST [13:01:22]POST find Content-Length [13:01:22]Host: 172.17.33.3:8080 [13:01:22]Content-Length: 1193 [13:01:22]Content-Type: application/json [13:01:22] [13:01:22]POST finish read [13:01:22]Found Content-Length = 1193 [13:01:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347282\u000A13.04.2024 12:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 724.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3698503\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:22]execute_script... [13:01:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347282\u000A13.04.2024 12:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 724.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3698503\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:22]POST & json_proto [13:01:22]process_json_proto [13:01:22]json parsed OK: [13:01:22]protocol is kg_v1.0 [13:01:22]action value=print_text [13:01:22]process_action print_text [13:01:22]cmd_print_text [13:01:22]ExternCall_PrintAddStr [13:01:22]wPrintStart [13:01:22]Write to MH i2c: 01 00 00 BF 3D FC [13:01:22]Write i2c OK [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: 01 [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: 01 07 00 [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: 01 07 00 BF 3D 00 00 00 00 00 FF 0F 11 [13:01:22]RasterBufferAndPrint [13:01:22]line *****ТОВАРНЫЙ ЧЕК***** [13:01:22]line АЗС 108 [13:01:22]line Партнер нефть [13:01:22]line 02508201610067 [13:01:22]line Кассир : Шадыканова Ж. [13:01:22]line Счет N : (1)347282 [13:01:22]line 13.04.2024 12:43 [13:01:22]line ПРОДАЖА [13:01:22]line ТРК (МРК, ГНК): 51 [13:01:22]line Вид ГСМ : 2710194210 [13:01:22]line ДТ-К-5 [13:01:22]line 10.000 x 72.40 [13:01:22]line ИТОГ: 724.00 [13:01:22]line Тип оплаты: Талоны: Партнер нефть [13:01:22]line 3698503 [13:01:22]line ______________________ [13:01:22]line (подпись) [13:01:22]written 0, free lines is 4095 [13:01:22]Write to MH i2c: 01 00 00 D4 3D 11 [13:01:22]Write i2c OK [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: 01 [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: 01 07 00 [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: 01 07 00 D4 3D 00 00 00 00 00 F4 0D 19 [13:01:22]RasterBufferAndPrint [13:01:22]line [13:01:22]line [13:01:22]line [13:01:22]line [13:01:22]line [13:01:22]written 0, free lines is 3574 [13:01:22]MH_Cut [13:01:22]Write to MH i2c: D1 01 00 DB 3D 01 EA [13:01:22]Write i2c OK [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: D1 [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: D1 01 00 [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: D1 01 00 DB 3D 00 E9 [13:01:22]Write to MH i2c: 01 00 00 DC 3D 19 [13:01:22]Write i2c OK [13:01:22]MH_I2C_Read... [13:01:22]*** Cut start [13:01:22]*** Partial cut [13:01:22]*** CUTSNS_PIN = 1 [13:01:22]*** CUTSNS_PIN = 0 [13:01:23]*** Brake cut motor [13:01:23]Read from MH i2c: 01 [13:01:23]MH_I2C_Read... [13:01:23]*** Stop cut motor [13:01:23]*** Cut end [13:01:23]Read from MH i2c: 01 07 00 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: 01 07 00 DC 3D 00 00 00 00 00 FF 0F 2E [13:01:23]process_action print_text done [13:01:23]requested_data is exist [13:01:23]produce_requested_data [13:01:23]requested_item fm.sn is exist - process it [13:01:23]wFMCommunicate request_size=4 [13:01:23]MH_SAM_APDU [13:01:23]CAPDU: 80 11 00 00 [13:01:23]Write to MH i2c: E2 08 00 DD 3D 80 11 00 00 00 00 00 00 94 [13:01:23]Write i2c OK [13:01:23]MH_I2C_Read... [13:01:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:23]Read from MH i2c: E2 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: E2 17 00 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: E2 17 00 DD 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E3 [13:01:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:01:23]wFMCommunicate OK [13:01:23]requested_item fd.num is exist - process it [13:01:23]SAM_PROTO_GetFieldsCounters [13:01:23]wFMCommunicate request_size=4 [13:01:23]MH_SAM_APDU [13:01:23]CAPDU: 80 13 00 00 [13:01:23]Write to MH i2c: E2 08 00 DE 3D 80 13 00 00 00 00 00 00 97 [13:01:23]Write i2c OK [13:01:23]MH_I2C_Read... [13:01:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:23]Read from MH i2c: E2 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: E2 62 00 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: E2 62 00 DE 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FD 70 00 00 0E 04 04 00 73 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 41 [13:01: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FD 70 00 00 0E 04 04 00 73 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 [13:01:23]wFMCommunicate OK [13:01:23]SAM_PROTO_GetFieldsCounters done [13:01:23]requested_item shift.num is exist - process it [13:01:23]requested_item shift.opened is exist - process it [13:01:23]req_shift_opened [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 DF 3D 80 13 01 00 00 00 00 00 99 [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 DF 3D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 B2 [13:01:23]RAPDU: 09 00 01 BF CF 19 66 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]req_shift_opened done [13:01:23]requested_item shift.open_date is exist - process it [13:01:23]req_shift_open_date [13:01:23]req_shift_open_date done [13:01:23]produce_requested_data done [13:01:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28925,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [13:01:23]process_action_free print_text [13:01:23]json_value_free [13:01:23]json_value_free done [13:01:23]process_json_proto returns [13:01:23]Send response to host [13:01:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28925,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [13:01:23]free response buf [13:01:23]execute_script done [13:01:23]execute_script returns [13:01:23]free content buf [13:01:23]Sock 7.Close socket [13:01:23]Sock 7.Thread stoped [13:01:23]OFD Sender: No OFD packet to send [13:01:28]OFD Sender: No OFD packet to send [13:01:33]OFD Sender: No OFD packet to send [13:01:38]OFD Sender: No OFD packet to send [13:01:43]OFD Sender: No OFD packet to send [13:01:48]OFD Sender: No OFD packet to send [13:01:53]OFD Sender: No OFD packet to send [13:01:58]OFD Sender: No OFD packet to send [13:02:03]OFD Sender: No OFD packet to send [13:02:08]OFD Sender: No OFD packet to send [13:02:13]OFD Sender: No OFD packet to send [13:02:18]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:28]OFD Sender: No OFD packet to send [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [13:02:53]OFD Sender: No OFD packet to send [13:02:55]accept exits with 9 [13:02:55]New connection [13:02:55]New thread 3066785124 created [13:02:55]Thread 3066928484 joined [13:02:55]Waiting for new connection... [13:02:55] Sock 9.Parse request [13:02:55]Sock 9.Check first char [13:02:55]Sock 9.First char is OK [13:02:55]request: POST /json_proto HTTP/1.0 [13:02:55]Method: POST [13:02:55]URL: /json_proto [13:02:55]Method is POST - this is cgi request [13:02:55]url: /json_proto [13:02:55]query_string will be loaded in cgi processing [13:02:55]execute_cgi json_proto POST (null) [13:02:55]execute_cgi path=json_proto method=POST [13:02:55]POST find Content-Length [13:02:55]Host: 172.17.33.3:8080 [13:02:55]Content-Length: 680 [13:02:55]Content-Type: application/json [13:02:55] [13:02:55]POST finish read [13:02:55]Found Content-Length = 680 [13:02:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 6.080, "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:02:55]execute_script... [13: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)347281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 6.080, "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:02:55]POST & json_proto [13:02:55]process_json_proto [13:02:55]json parsed OK: [13:02:55]protocol is kg_v1.0 [13:02:55]action value=close_receipt [13:02:55]process_action close_receipt [13:02:55]cmd_close_receipt [13:02:55]MH_GetDate [13:02:55]Write to MH i2c: F0 00 00 E0 3D 0C [13:02:55]Write i2c OK [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: F0 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: F0 09 00 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: F0 09 00 E0 3D 00 84 82 1A 66 23 5B 8F 65 0D [13:02:55]GetLastDocTimeStamp 1713013210 [13:02:55]current date 1713013380 [13:02:55]FM_GetShiftState [13:02:55]SAM_PROTO_GetShiftState [13:02:55]wFMCommunicate request_size=4 [13:02:55]MH_SAM_APDU [13:02:55]CAPDU: 80 13 01 00 [13:02:55]Write to MH i2c: E2 08 00 E1 3D 80 13 01 00 00 00 00 00 9B [13:02:55]Write i2c OK [13:02:55]MH_I2C_Read... [13:02:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:55]Read from MH i2c: E2 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 0E 00 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 0E 00 E1 3D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 B4 [13:02:55]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:02:55]wFMCommunicate OK [13:02:55]SAM_PROTO_GetShiftState done [13:02:55]FM_GetShiftState done [13:02:55]opened in 1712967615 [13:02:55]opened+sec_in_day 1713054015 [13:02:55]quantity*price = 20003 [13:02:55]sum+1 = 20004 [13:02:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 133 13.04.2024 13:03 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28926 ФПД: 114765171638867 1/tax-web-control/client/api/v1/ticket?date=20240413T130300&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28926&fm=114765171638867&tin=02508201610067®Number=0000138879044617&sum=20000 [13:02:56]StoreToDocumentArchive [13:02:56]shift 115 fd 28926 [13:02:56]save to /storage/0115/doc_00028926 [13:02:56]save last doc name /storage/0115/doc_00028926 to /storage/kkm_last_doc_name [13:02:56]save OK [13:02:56]Clear old archive folders... [13:02:56]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:02:56]tlvbuf is 011DA670 [13:02:56]SAM_PROTO_ClearQueue [13:02:56]wFMCommunicate request_size=4 [13:02:56]MH_SAM_APDU [13:02:56]CAPDU: 80 09 00 00 [13:02:56]Write to MH i2c: E2 08 00 EE 3D 80 09 00 00 00 00 00 00 9D [13:02:56]Write i2c OK [13:02:56]MH_I2C_Read... [13:02:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:56]Read from MH i2c: E2 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: E2 03 00 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: E2 03 00 EE 3D 00 90 00 9F [13:02:56]RAPDU: 90 00 [13:02:56]wFMCommunicate OK [13:02:56]SAM_PROTO_ClearQueue done [13:02:56]KKMCreateOFDPacket [13:02:56]OFDProtocolAddRootSTLVToBuf [13:02:56]FM_MakeSignedData [13:02:56]FM_MakeSignedData [13:02:56]SAM_PROTO_SignData [13:02:56]wFMCommunicate request_size=4 [13:02:56]MH_SAM_APDU [13:02:56]CAPDU: 80 0D 01 02 [13:02:56]Write to MH i2c: E2 08 00 EF 3D 80 0D 01 02 00 00 00 00 A5 [13:02:56]Write i2c OK [13:02:56]MH_I2C_Read... [13:02:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:56]Read from MH i2c: E2 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: E2 03 00 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: E2 03 00 EF 3D 00 90 00 A0 [13:02:56]RAPDU: 90 00 [13:02:56]wFMCommunicate OK [13:02:56]wFMCommunicate request_size=255 [13:02:56]MH_SAM_APDU [13:02:56]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 DA 0C 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 85 00 00 00 F4 03 04 00 84 82 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FE 70 00 00 35 04 06 00 68 60 [13:02:56]Write to MH i2c: E2 02 01 F0 3D 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 DA 0C 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 85 00 00 00 F4 03 04 00 84 82 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FE 70 00 00 35 04 06 00 68 60 00 00 3F [13:02:56]Write i2c OK [13:02:56]MH_I2C_Read... [13:02:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:57]Read from MH i2c: E2 [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: E2 03 00 [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: E2 03 00 F0 3D 00 90 00 A1 [13:02:57]RAPDU: 90 00 [13:02:57]wFMCommunicate OK [13:02:57]wFMCommunicate request_size=9 [13:02:57]MH_SAM_APDU [13:02:57]CAPDU: 80 0D 02 02 04 D9 49 C2 53 [13:02:57]Write to MH i2c: E2 0C 00 F1 3D 80 0D 02 02 04 00 D9 49 C2 53 00 00 E7 [13:02:57]Write i2c OK [13:02:57]MH_I2C_Read... [13:02:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:57]Read from MH i2c: E2 [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: E2 03 00 [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: E2 03 00 F1 3D 00 90 00 A2 [13:02:57]RAPDU: 90 00 [13:02:57]wFMCommunicate OK [13:02:57]wFMCommunicate request_size=4 [13:02:57]MH_SAM_APDU [13:02:57]CAPDU: 80 0D 03 02 [13:02:57]Write to MH i2c: E2 08 00 F2 3D 80 0D 03 02 00 00 00 00 AA [13:02:57]Write i2c OK [13:02:57]MH_I2C_Read... [13:02:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:57]Read from MH i2c: E2 [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: E2 0B 00 [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: E2 0B 00 F2 3D 00 10 4B E0 18 35 F7 D4 11 90 00 0F [13:02:57]RAPDU: 10 4B E0 18 35 F7 D4 11 90 00 [13:02:57]wFMCommunicate OK [13:02:57]SAM_PROTO_SignData done [13:02:57]FM_MakeSignedData done [13:02:57]CreateOFDProtocolMessage [13:02:57]wFMCommunicate request_size=4 [13:02:57]MH_SAM_APDU [13:02:57]CAPDU: 80 11 00 00 [13:02:57]Write to MH i2c: E2 08 00 F3 3D 80 11 00 00 00 00 00 00 AA [13:02:57]Write i2c OK [13:02:57]MH_I2C_Read... [13:02:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:57]Read from MH i2c: E2 [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: E2 17 00 [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: E2 17 00 F3 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F9 [13:02:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:02:57]wFMCommunicate OK [13:02:57]CreateOFDProtocolMessage done [13:02:57]OFDSenderStorePacket 28926 [13:02:57]StoreOFDPacket docnum=28926 [13:02:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 0B 74 06 01 FB 90 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 DA 0C 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 85 00 00 00 F4 03 04 00 84 82 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FE 70 00 00 35 04 06 00 68 60 D9 49 C2 53 10 4B E0 18 35 F7 D4 11 [13:02:57]CheckFolder [13:02:57]dirname=/storage/ofd_packets [13:02:57]CheckFolder done [13:02:57]ProducePacketName [13:02:57]name=ofd_packets/00028926 [13:02:57]NVStorageSaveData ofd_packets/00028926 [13:02:57]File name is /storage/ofd_packets/00028926 [13:02:57]Write 300 bytes [13:02:57]NVStorageSaveData done [13:02:57]OFDSenderStorePacket done [13:02:57]KKMCreateOFDPacket done [13:02:57]NVStorageSaveData kkm_last_timestamp [13:02:57]File name is /storage/kkm_last_timestamp [13:02:57]Write 4 bytes [13:02:57]NVStorageSaveData done [13:02:57]ExternCall_PrintAddStr [13:02:57]wPrintStart [13:02:57]Write to MH i2c: 01 00 00 F4 3D 31 [13:02:57]Write i2c OK [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: 01 [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: 01 07 00 [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: 01 07 00 F4 3D 00 00 00 00 00 FF 0F 46 [13:02:57]RasterBufferAndPrint [13:02:57]line Счет N : (1)347281 [13:02:57]line ИНН: 02508201610067 [13:02:57]line Контрольно-Кассовый Чек [13:02:57]line ПРОДАЖА [13:02:57]line ТРК (МРК, ГНК) : 71 [13:02:57]line Товар: 2711129700 [13:02:57]line ГАЗ-К-5 [13:02:57]line 6.080 * 32.90 [13:02:57]line = 200.03 [13:02:57]line НДС 12% НСП 1% [13:02:57]line > о реализуемом товаре [13:02:57]line ОКРУГЛЕНИЕ: -0.03 [13:02:57]line ИТОГО: 200.00 [13:02:57]line Внесено: 200.00 [13:02:57]line СДАЧА: 0.00 [13:02:57]line НСП 1% : 1.77 [13:02:57]line НДС 12% : 21.24 [13:02:57]line Наличными: 200.00 [13:02:57]line Безнал.: 0.00 [13:02:57]line Место: АЗС № 108 "Партнер Нефть" [13:02:57]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:02:57]line СНО: Общий режим [13:02:57]line Чек 133 13.04.2024 13:03 [13:02:57]line Смена: 115 ФФД: 1.0 [13:02:57]line ЗНМ: 0300000027 [13:02:57]line РНМ: 0000138879044617 [13:02:57]line Версия ККМ: 001 [13:02:57]line ФМ: 0000000000963154 [13:02:57]line ФД: 28926 [13:02:57]line ФПД: 114765171638867 [13:02:57]line 1/tax-web-control/client/api/v1/ticket?date=20240413T130300&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28926&fm=114765171638867&tin=02508201610067®Number=0000138879044617&sum=20000 [13:02:57]OFD Sender: Processing packet 28926 [packets to send 8, broken 7] [13:02:57]ProducePacketName [13:02:57]name=ofd_packets/00028926 [13:02:57]OFD Sender: To server: pG, [13:02:57]CommunicateWithHost lk.salyk.kg:30040 [13:02:57]ConnectInit lk.salyk.kg [13:02:57]written 0, free lines is 4095 [13:02:57]Connected sock=10 [13: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 31 35 34 0E 01 00 00 0B 74 06 01 FB 90 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 DA 0C 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 85 00 00 00 F4 03 04 00 84 82 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FE 70 00 00 35 04 06 00 68 60 D9 49 C2 53 10 4B E0 18 35 F7 D4 11 [13:02:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6E 51 47 00 33 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FE 70 00 00 F4 03 04 00 2B 2D 1A 66 B6 04 01 00 00 CF 5C 47 51 E7 D9 1F 6B [13:02:57]CommunicateWithHost err = 0 [13:02:57]CheckOFDResponse [13:02:57]1017 (14) - 77093643461234 [13:02:57]1041 (16) - 0000000000963154 [13:02:57]1040 (4) - 28926 [13:02:57]1012 (4) - 13.04.2024 06:58 [13:02:57]1206 (1) - 0 [13:02:57]OFD Sender: Remove packet 28926 [13:02:57]ProducePacketName [13:02:57]name=ofd_packets/00028926 [13:02:57]NVStorageDeleteData [13:02:57]Write to MH i2c: 01 00 00 1E 3E 5C [13:02:57]Write i2c OK [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: 01 [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: 01 07 00 [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: 01 07 00 1E 3E 00 00 00 00 00 B5 0C 24 [13:02:57]RasterBufferAndPrint [13:02:57]line [13:02:57]line [13:02:57]line [13:02:57]line [13:02:57]line [13:02:57]written 0, free lines is 3259 [13:02:57]MH_Cut [13:02:57]Write to MH i2c: D1 01 00 25 3E 01 35 [13:02:57]Write i2c OK [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: D1 [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: D1 01 00 [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: D1 01 00 25 3E 00 34 [13:02:57]Write to MH i2c: 01 00 00 26 3E 64 [13:02:58]Write i2c OK [13:02:58]MH_I2C_Read... [13:02:58]OFD Sender: No OFD packet to send [13:02:58]*** Cut start [13:02:58]*** Partial cut [13:02:58]*** CUTSNS_PIN = 1 [13:02:58]*** CUTSNS_PIN = 0 [13:02:59]*** Brake cut motor [13:02:59]Read from MH i2c: 01 [13:02:59]MH_I2C_Read... [13:02:59]*** Stop cut motor [13:02:59]*** Cut end [13:02:59]Read from MH i2c: 01 07 00 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: 01 07 00 26 3E 00 00 00 00 00 FF 0F 79 [13:02:59]process_action close_receipt done [13:02:59]requested_data is exist [13:02:59]produce_requested_data [13:02:59]requested_item fm.sn is exist - process it [13:02:59]wFMCommunicate request_size=4 [13:02:59]MH_SAM_APDU [13:02:59]CAPDU: 80 11 00 00 [13:02:59]Write to MH i2c: E2 08 00 27 3E 80 11 00 00 00 00 00 00 DF [13:02:59]Write i2c OK [13:02:59]MH_I2C_Read... [13:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:59]Read from MH i2c: E2 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 17 00 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 17 00 27 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2E [13:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:02:59]wFMCommunicate OK [13:02:59]requested_item fd.num is exist - process it [13:02:59]SAM_PROTO_GetFieldsCounters [13:02:59]wFMCommunicate request_size=4 [13:02:59]MH_SAM_APDU [13:02:59]CAPDU: 80 13 00 00 [13:02:59]Write to MH i2c: E2 08 00 28 3E 80 13 00 00 00 00 00 00 E2 [13:02:59]Write i2c OK [13:02:59]MH_I2C_Read... [13:02:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:59]Read from MH i2c: E2 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 62 00 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 62 00 28 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FE 70 00 00 0E 04 04 00 73 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 90 [13: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FE 70 00 00 0E 04 04 00 73 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 [13:02:59]wFMCommunicate OK [13:02:59]SAM_PROTO_GetFieldsCounters done [13:02:59]requested_item shift.num is exist - process it [13:02:59]requested_item shift.opened is exist - process it [13:02:59]req_shift_opened [13:02:59]FM_GetShiftState [13:02:59]SAM_PROTO_GetShiftState [13:02:59]wFMCommunicate request_size=4 [13:02:59]MH_SAM_APDU [13:02:59]CAPDU: 80 13 01 00 [13:02:59]Write to MH i2c: E2 08 00 29 3E 80 13 01 00 00 00 00 00 E4 [13:02:59]Write i2c OK [13:02:59]MH_I2C_Read... [13:02:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:59]Read from MH i2c: E2 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 0E 00 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 0E 00 29 3E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 FD [13:02:59]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:02:59]wFMCommunicate OK [13:02:59]SAM_PROTO_GetShiftState done [13:02:59]FM_GetShiftState done [13:02:59]req_shift_opened done [13:02:59]requested_item shift.open_date is exist - process it [13:02:59]req_shift_open_date [13:02:59]req_shift_open_date done [13:02:59]produce_requested_data done [13:02:59]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28926,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [13:02:59]process_action_free close_receipt [13:02:59]json_value_free [13:02:59]json_value_free done [13:02:59]process_json_proto returns [13:02:59]Send response to host [13:02:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28926,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [13:02:59]free response buf [13:02:59]execute_script done [13:02:59]execute_script returns [13:02:59]free content buf [13:02:59]Sock 9.Close socket [13:02:59]Sock 9.Thread stoped [13:03:03]OFD Sender: No OFD packet to send [13:03:08]OFD Sender: No OFD packet to send [13:03:13]OFD Sender: No OFD packet to send [13:03:17]accept exits with 7 [13:03:17]New connection [13:03:17]New thread 3066928484 created [13:03:17]Thread 3066785124 joined [13:03:17]Waiting for new connection... [13:03:17] Sock 7.Parse request [13:03:17]Sock 7.Check first char [13:03:17]Sock 7.First char is OK [13:03:17]request: POST /json_proto HTTP/1.0 [13:03:17]Method: POST [13:03:17]URL: /json_proto [13:03:17]Method is POST - this is cgi request [13:03:17]url: /json_proto [13:03:17]query_string will be loaded in cgi processing [13:03:17]execute_cgi json_proto POST (null) [13:03:17]execute_cgi path=json_proto method=POST [13:03:17]POST find Content-Length [13:03:17]Host: 172.17.33.3:8080 [13:03:17]Content-Length: 670 [13:03:17]Content-Type: application/json [13:03:17] [13:03:17]POST finish read [13:03:17]Found Content-Length = 670 [13:03:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 3.830, "sum" : 250.10, "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" ] } } [13:03:17]execute_script... [13:03:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 3.830, "sum" : 250.10, "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" ] } } [13:03:17]POST & json_proto [13:03:17]process_json_proto [13:03:17]json parsed OK: [13:03:17]protocol is kg_v1.0 [13:03:17]action value=close_receipt [13:03:17]process_action close_receipt [13:03:17]cmd_close_receipt [13:03:17]MH_GetDate [13:03:17]Write to MH i2c: F0 00 00 2A 3E 57 [13:03:17]Write i2c OK [13:03:17]MH_I2C_Read... [13:03:17]Read from MH i2c: F0 [13:03:17]MH_I2C_Read... [13:03:17]Read from MH i2c: F0 09 00 [13:03:17]MH_I2C_Read... [13:03:17]Read from MH i2c: F0 09 00 2A 3E 00 9A 82 1A 66 23 5B 8F 65 6E [13:03:17]GetLastDocTimeStamp 1713013380 [13:03:17]current date 1713013402 [13:03:17]FM_GetShiftState [13:03:17]SAM_PROTO_GetShiftState [13:03:17]wFMCommunicate request_size=4 [13:03:17]MH_SAM_APDU [13:03:17]CAPDU: 80 13 01 00 [13:03:17]Write to MH i2c: E2 08 00 2B 3E 80 13 01 00 00 00 00 00 E6 [13:03:17]Write i2c OK [13:03:17]MH_I2C_Read... [13:03:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:17]Read from MH i2c: E2 [13:03:17]MH_I2C_Read... [13:03:17]Read from MH i2c: E2 0E 00 [13:03:17]MH_I2C_Read... [13:03:17]Read from MH i2c: E2 0E 00 2B 3E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 FF [13:03:17]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:03:17]wFMCommunicate OK [13:03:17]SAM_PROTO_GetShiftState done [13:03:17]FM_GetShiftState done [13:03:17]opened in 1712967615 [13:03:17]opened+sec_in_day 1713054015 [13:03:17]quantity*price = 25009 [13:03:17]sum+1 = 25011 [13:03:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.56 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 134 13.04.2024 13:03 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28927 ФПД: 206821732252071 1/tax-web-control/client/api/v1/ticket?date=20240413T130322&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28927&fm=206821732252071&tin=02508201610067®Number=0000138879044617&sum=25000 [13:03:18]StoreToDocumentArchive [13:03:18]shift 115 fd 28927 [13:03:18]save to /storage/0115/doc_00028927 [13:03:18]save last doc name /storage/0115/doc_00028927 to /storage/kkm_last_doc_name [13:03:18]save OK [13:03:18]Clear old archive folders... [13:03:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:03:18]tlvbuf is 01233760 [13:03:18]SAM_PROTO_ClearQueue [13:03:18]wFMCommunicate request_size=4 [13:03:18]MH_SAM_APDU [13:03:18]CAPDU: 80 09 00 00 [13:03:18]Write to MH i2c: E2 08 00 38 3E 80 09 00 00 00 00 00 00 E8 [13:03:18]Write i2c OK [13:03:18]MH_I2C_Read... [13:03:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:18]Read from MH i2c: E2 [13:03:18]MH_I2C_Read... [13:03:18]Read from MH i2c: E2 03 00 [13:03:18]MH_I2C_Read... [13:03:18]Read from MH i2c: E2 03 00 38 3E 00 90 00 EA [13:03:18]RAPDU: 90 00 [13:03:18]wFMCommunicate OK [13:03:18]SAM_PROTO_ClearQueue done [13:03:18]KKMCreateOFDPacket [13:03:18]OFDProtocolAddRootSTLVToBuf [13:03:18]FM_MakeSignedData [13:03:18]FM_MakeSignedData [13:03:18]SAM_PROTO_SignData [13:03:18]wFMCommunicate request_size=4 [13:03:18]MH_SAM_APDU [13:03:18]CAPDU: 80 0D 01 02 [13:03:18]Write to MH i2c: E2 08 00 39 3E 80 0D 01 02 00 00 00 00 F0 [13:03:18]Write i2c OK [13:03:18]MH_I2C_Read... [13:03:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:18]Read from MH i2c: E2 [13:03:18]MH_I2C_Read... [13:03:18]Read from MH i2c: E2 03 00 [13:03:18]MH_I2C_Read... [13:03:18]Read from MH i2c: E2 03 00 39 3E 00 90 00 EB [13:03:18]RAPDU: 90 00 [13:03:18]wFMCommunicate OK [13:03:18]wFMCommunicate request_size=255 [13:03:18]MH_SAM_APDU [13:03:18]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 0E 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 B2 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 9A 82 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FF 70 00 00 35 04 06 00 [13:03:18]Write to MH i2c: E2 02 01 3A 3E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 0E 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 B2 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 9A 82 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FF 70 00 00 35 04 06 00 00 00 D0 [13:03:18]Write i2c OK [13:03:18]MH_I2C_Read... [13:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:19]Read from MH i2c: E2 [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: E2 03 00 [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: E2 03 00 3A 3E 00 90 00 EC [13:03:19]RAPDU: 90 00 [13:03:19]wFMCommunicate OK [13:03:19]wFMCommunicate request_size=11 [13:03:19]MH_SAM_APDU [13:03:19]CAPDU: 80 0D 02 02 06 BC 1A 6F E1 F9 A7 [13:03:19]Write to MH i2c: E2 0E 00 3B 3E 80 0D 02 02 06 00 BC 1A 6F E1 F9 A7 00 00 C5 [13:03:19]Write i2c OK [13:03:19]MH_I2C_Read... [13:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:19]Read from MH i2c: E2 [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: E2 03 00 [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: E2 03 00 3B 3E 00 90 00 ED [13:03:19]RAPDU: 90 00 [13:03:19]wFMCommunicate OK [13:03:19]wFMCommunicate request_size=4 [13:03:19]MH_SAM_APDU [13:03:19]CAPDU: 80 0D 03 02 [13:03:19]Write to MH i2c: E2 08 00 3C 3E 80 0D 03 02 00 00 00 00 F5 [13:03:19]Write i2c OK [13:03:19]MH_I2C_Read... [13:03:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:19]Read from MH i2c: E2 [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: E2 0B 00 [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: E2 0B 00 3C 3E 00 22 38 9B D5 4A 5B AE F0 90 00 03 [13:03:19]RAPDU: 22 38 9B D5 4A 5B AE F0 90 00 [13:03:19]wFMCommunicate OK [13:03:19]SAM_PROTO_SignData done [13:03:19]FM_MakeSignedData done [13:03:19]CreateOFDProtocolMessage [13:03:19]wFMCommunicate request_size=4 [13:03:19]MH_SAM_APDU [13:03:19]CAPDU: 80 11 00 00 [13:03:19]Write to MH i2c: E2 08 00 3D 3E 80 11 00 00 00 00 00 00 F5 [13:03:19]Write i2c OK [13:03:19]MH_I2C_Read... [13:03:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:19]Read from MH i2c: E2 [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: E2 17 00 [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: E2 17 00 3D 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 44 [13:03:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:03:19]wFMCommunicate OK [13:03:19]CreateOFDProtocolMessage done [13:03:19]OFDSenderStorePacket 28927 [13:03:19]StoreOFDPacket docnum=28927 [13:03:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 C1 65 08 01 0B EA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 0E 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 B2 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 9A 82 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FF 70 00 00 35 04 06 00 BC 1A 6F E1 F9 A7 22 38 9B D5 4A 5B AE F0 [13:03:19]CheckFolder [13:03:19]dirname=/storage/ofd_packets [13:03:19]CheckFolder done [13:03:19]ProducePacketName [13:03:19]name=ofd_packets/00028927 [13:03:19]NVStorageSaveData ofd_packets/00028927 [13:03:19]File name is /storage/ofd_packets/00028927 [13:03:19]Write 302 bytes [13:03:19]NVStorageSaveData done [13:03:19]OFDSenderStorePacket done [13:03:19]KKMCreateOFDPacket done [13:03:19]NVStorageSaveData kkm_last_timestamp [13:03:19]File name is /storage/kkm_last_timestamp [13:03:19]Write 4 bytes [13:03:19]NVStorageSaveData done [13:03:19]ExternCall_PrintAddStr [13:03:19]wPrintStart [13:03:19]Write to MH i2c: 01 00 00 3E 3E 7C [13:03:19]Write i2c OK [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: 01 [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: 01 07 00 [13:03:19]MH_I2C_Read... [13:03:19]Read from MH i2c: 01 07 00 3E 3E 00 00 00 00 00 FF 0F 91 [13:03:19]RasterBufferAndPrint [13:03:19]line Счет N : (1)347283 [13:03:19]line ИНН: 02508201610067 [13:03:19]line Контрольно-Кассовый Чек [13:03:19]line ПРОДАЖА [13:03:19]line ТРК (МРК, ГНК) : 41 [13:03:19]line Товар: 2710124130 [13:03:19]line SUPER-92-К-5 [13:03:19]line 3.830 * 65.30 [13:03:19]line = 250.10 [13:03:19]line НДС 12% НСП 1% [13:03:19]line > о реализуемом товаре [13:03:19]line ОКРУГЛЕНИЕ: -0.10 [13:03:19]line ИТОГО: 250.00 [13:03:19]line Внесено: 250.00 [13:03:19]line СДАЧА: 0.00 [13:03:19]line НСП 1% : 2.21 [13:03:19]line НДС 12% : 26.56 [13:03:19]line Наличными: 250.00 [13:03:19]line Безнал.: 0.00 [13:03:19]line Место: АЗС № 108 "Партнер Нефть" [13:03:19]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:03:19]line СНО: Общий режим [13:03:19]line Чек 134 13.04.2024 13:03 [13:03:19]line Смена: 115 ФФД: 1.0 [13:03:19]line ЗНМ: 0300000027 [13:03:19]line РНМ: 0000138879044617 [13:03:19]line Версия ККМ: 001 [13:03:19]line ФМ: 0000000000963154 [13:03:19]line ФД: 28927 [13:03:19]line ФПД: 206821732252071 [13:03:19]line 1/tax-web-control/client/api/v1/ticket?date=20240413T130322&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28927&fm=206821732252071&tin=02508201610067®Number=0000138879044617&sum=25000 [13:03:19]OFD Sender: Processing packet 28927 [packets to send 8, broken 7] [13:03:19]ProducePacketName [13:03:19]name=ofd_packets/00028927 [13:03:19]OFD Sender: To server: pG, [13:03:19]CommunicateWithHost lk.salyk.kg:30040 [13:03:19]ConnectInit lk.salyk.kg [13:03:19]written 0, free lines is 4095 [13:03:19]Connected sock=10 [13:03:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 C1 65 08 01 0B EA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 0E 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 B2 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 9A 82 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FF 70 00 00 35 04 06 00 BC 1A 6F E1 F9 A7 22 38 9B D5 4A 5B AE F0 [13:03:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B1 1D 47 00 47 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 FF 70 00 00 F4 03 04 00 41 2D 1A 66 B6 04 01 00 00 FC CD 4F 5A 7C D5 DB 7E [13:03:19]CommunicateWithHost err = 0 [13:03:19]CheckOFDResponse [13:03:19]1017 (14) - 77093643461234 [13:03:19]1041 (16) - 0000000000963154 [13:03:19]1040 (4) - 28927 [13:03:19]1012 (4) - 13.04.2024 06:59 [13:03:19]1206 (1) - 0 [13:03:19]OFD Sender: Remove packet 28927 [13:03:19]ProducePacketName [13:03:19]name=ofd_packets/00028927 [13:03:19]NVStorageDeleteData [13:03:20]Write to MH i2c: 01 00 00 68 3E A6 [13:03:20]Write i2c OK [13:03:20]MH_I2C_Read... [13:03:20]Read from MH i2c: 01 [13:03:20]MH_I2C_Read... [13:03:20]Read from MH i2c: 01 07 00 [13:03:20]MH_I2C_Read... [13:03:20]Read from MH i2c: 01 07 00 68 3E 00 00 00 00 00 BC 0C 75 [13:03:20]RasterBufferAndPrint [13:03:20]line [13:03:20]line [13:03:20]line [13:03:20]line [13:03:20]line [13:03:20]written 0, free lines is 3265 [13:03:20]MH_Cut [13:03:20]Write to MH i2c: D1 01 00 6F 3E 01 7F [13:03:20]Write i2c OK [13:03:20]MH_I2C_Read... [13:03:20]Read from MH i2c: D1 [13:03:20]MH_I2C_Read... [13:03:20]Read from MH i2c: D1 01 00 [13:03:20]MH_I2C_Read... [13:03:20]Read from MH i2c: D1 01 00 6F 3E 00 7E [13:03:20]Write to MH i2c: 01 00 00 70 3E AE [13:03:20]Write i2c OK [13:03:20]MH_I2C_Read... [13:03:20]OFD Sender: No OFD packet to send [13:03:20]*** Cut start [13:03:20]*** Partial cut [13:03:20]*** CUTSNS_PIN = 1 [13:03:20]*** CUTSNS_PIN = 0 [13:03:21]*** Brake cut motor [13:03:21]Read from MH i2c: 01 [13:03:21]MH_I2C_Read... [13:03:21]*** Stop cut motor [13:03:21]*** Cut end [13:03:21]Read from MH i2c: 01 07 00 [13:03:21]MH_I2C_Read... [13:03:21]Read from MH i2c: 01 07 00 70 3E 00 00 00 00 00 FF 0F C3 [13:03:21]process_action close_receipt done [13:03:21]requested_data is exist [13:03:21]produce_requested_data [13:03:21]requested_item fm.sn is exist - process it [13:03:21]wFMCommunicate request_size=4 [13:03:21]MH_SAM_APDU [13:03:21]CAPDU: 80 11 00 00 [13:03:21]Write to MH i2c: E2 08 00 71 3E 80 11 00 00 00 00 00 00 29 [13:03:21]Write i2c OK [13:03:21]MH_I2C_Read... [13:03:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:21]Read from MH i2c: E2 [13:03:21]MH_I2C_Read... [13:03:21]Read from MH i2c: E2 17 00 [13:03:21]MH_I2C_Read... [13:03:21]Read from MH i2c: E2 17 00 71 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 78 [13:03:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:03:21]wFMCommunicate OK [13:03:21]requested_item fd.num is exist - process it [13:03:21]SAM_PROTO_GetFieldsCounters [13:03:21]wFMCommunicate request_size=4 [13:03:21]MH_SAM_APDU [13:03:21]CAPDU: 80 13 00 00 [13:03:21]Write to MH i2c: E2 08 00 72 3E 80 13 00 00 00 00 00 00 2C [13:03:21]Write i2c OK [13:03:21]MH_I2C_Read... [13:03:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:21]Read from MH i2c: E2 [13:03:21]MH_I2C_Read... [13:03:21]Read from MH i2c: E2 62 00 [13:03:21]MH_I2C_Read... [13:03:21]Read from MH i2c: E2 62 00 72 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FF 70 00 00 0E 04 04 00 73 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 DE [13:03:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 FF 70 00 00 0E 04 04 00 73 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 [13:03:21]wFMCommunicate OK [13:03:21]SAM_PROTO_GetFieldsCounters done [13:03:21]requested_item shift.num is exist - process it [13:03:21]requested_item shift.opened is exist - process it [13:03:21]req_shift_opened [13:03:21]FM_GetShiftState [13:03:21]SAM_PROTO_GetShiftState [13:03:21]wFMCommunicate request_size=4 [13:03:21]MH_SAM_APDU [13:03:21]CAPDU: 80 13 01 00 [13:03:21]Write to MH i2c: E2 08 00 73 3E 80 13 01 00 00 00 00 00 2E [13:03:21]Write i2c OK [13:03:21]MH_I2C_Read... [13:03:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:21]Read from MH i2c: E2 [13:03:21]MH_I2C_Read... [13:03:21]Read from MH i2c: E2 0E 00 [13:03:21]MH_I2C_Read... [13:03:21]Read from MH i2c: E2 0E 00 73 3E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 47 [13:03:21]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:03:21]wFMCommunicate OK [13:03:21]SAM_PROTO_GetShiftState done [13:03:21]FM_GetShiftState done [13:03:21]req_shift_opened done [13:03:21]requested_item shift.open_date is exist - process it [13:03:21]req_shift_open_date [13:03:21]req_shift_open_date done [13:03:21]produce_requested_data done [13:03:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28927,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [13:03:21]process_action_free close_receipt [13:03:21]json_value_free [13:03:21]json_value_free done [13:03:21]process_json_proto returns [13:03:21]Send response to host [13:03:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28927,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [13:03:21]free response buf [13:03:21]execute_script done [13:03:21]execute_script returns [13:03:21]free content buf [13:03:21]Sock 7.Close socket [13:03:21]Sock 7.Thread stoped [13:03:25]OFD Sender: No OFD packet to send [13:03:30]OFD Sender: No OFD packet to send [13:03:35]OFD Sender: No OFD packet to send [13:03:40]OFD Sender: No OFD packet to send [13:03:45]OFD Sender: No OFD packet to send [13:03:50]OFD Sender: No OFD packet to send [13:03:55]OFD Sender: No OFD packet to send [13:04:00]OFD Sender: No OFD packet to send [13:04:05]OFD Sender: No OFD packet to send [13:04:10]OFD Sender: No OFD packet to send [13:04:15]OFD Sender: No OFD packet to send [13:04:20]OFD Sender: No OFD packet to send [13:04:25]OFD Sender: No OFD packet to send [13:04:30]OFD Sender: No OFD packet to send [13:04:35]OFD Sender: No OFD packet to send [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]OFD Sender: No OFD packet to send [13:05:30]OFD Sender: No OFD packet to send [13:05:35]OFD Sender: No OFD packet to send [13:05:40]OFD Sender: No OFD packet to send [13:05:45]OFD Sender: No OFD packet to send [13:05:50]OFD Sender: No OFD packet to send [13:05:55]OFD Sender: No OFD packet to send [13:06:00]OFD Sender: No OFD packet to send [13:06:05]OFD Sender: No OFD packet to send [13:06:10]OFD Sender: No OFD packet to send [13:06:15]OFD Sender: No OFD packet to send [13:06:20]OFD Sender: No OFD packet to send [13:06:25]OFD Sender: No OFD packet to send [13:06:30]OFD Sender: No OFD packet to send [13:06:35]OFD Sender: No OFD packet to send [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [13:06:50]OFD Sender: No OFD packet to send [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:05]OFD Sender: No OFD packet to send [13:07:10]OFD Sender: No OFD packet to send [13:07:15]OFD Sender: No OFD packet to send [13:07:20]OFD Sender: No OFD packet to send [13:07:25]OFD Sender: No OFD packet to send [13:07:30]OFD Sender: No OFD packet to send [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:45]OFD Sender: No OFD packet to send [13:07:50]OFD Sender: No OFD packet to send [13:07:55]OFD Sender: No OFD packet to send [13:08:00]OFD Sender: No OFD packet to send [13:08:05]OFD Sender: No OFD packet to send [13:08:10]OFD Sender: No OFD packet to send [13:08:15]OFD Sender: No OFD packet to send [13:08:20]OFD Sender: No OFD packet to send [13:08:25]OFD Sender: No OFD packet to send [13:08:30]OFD Sender: No OFD packet to send [13:08:35]OFD Sender: No OFD packet to send [13:08:40]OFD Sender: No OFD packet to send [13:08:45]OFD Sender: No OFD packet to send [13:08:50]OFD Sender: No OFD packet to send [13:08:52]accept exits with 9 [13:08:52]New connection [13:08:52]New thread 3066785124 created [13:08:52]Thread 3066928484 joined [13:08:52]Waiting for new connection... [13:08:52] Sock 9.Parse request [13:08:52]Sock 9.Check first char [13:08:52]Sock 9.First char is OK [13:08:52]request: POST /json_proto HTTP/1.0 [13:08:52]Method: POST [13:08:52]URL: /json_proto [13:08:52]Method is POST - this is cgi request [13:08:52]url: /json_proto [13:08:52]query_string will be loaded in cgi processing [13:08:52]execute_cgi json_proto POST (null) [13:08:52]execute_cgi path=json_proto method=POST [13:08:52]POST find Content-Length [13:08:52]Host: 172.17.33.3:8080 [13:08:52]Content-Length: 674 [13:08:52]Content-Type: application/json [13:08:52] [13:08:52]POST finish read [13:08:52]Found Content-Length = 674 [13:08:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 6.910, "sum" : 500.28, "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:08:52]execute_script... [13:08: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)347284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 6.910, "sum" : 500.28, "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:08:52]POST & json_proto [13:08:52]process_json_proto [13:08:52]json parsed OK: [13:08:52]protocol is kg_v1.0 [13:08:52]action value=close_receipt [13:08:52]process_action close_receipt [13:08:52]cmd_close_receipt [13:08:52]MH_GetDate [13:08:52]Write to MH i2c: F0 00 00 74 3E A1 [13:08:52]Write i2c OK [13:08:52]MH_I2C_Read... [13:08:52]Read from MH i2c: F0 [13:08:52]MH_I2C_Read... [13:08:52]Read from MH i2c: F0 09 00 [13:08:52]MH_I2C_Read... [13:08:52]Read from MH i2c: F0 09 00 74 3E 00 E9 83 1A 66 23 5B 8F 65 08 [13:08:52]GetLastDocTimeStamp 1713013402 [13:08:52]current date 1713013737 [13:08:52]FM_GetShiftState [13:08:52]SAM_PROTO_GetShiftState [13:08:52]wFMCommunicate request_size=4 [13:08:52]MH_SAM_APDU [13:08:52]CAPDU: 80 13 01 00 [13:08:52]Write to MH i2c: E2 08 00 75 3E 80 13 01 00 00 00 00 00 30 [13:08:52]Write i2c OK [13:08:52]MH_I2C_Read... [13:08:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:52]Read from MH i2c: E2 [13:08:52]MH_I2C_Read... [13:08:52]Read from MH i2c: E2 0E 00 [13:08:52]MH_I2C_Read... [13:08:52]Read from MH i2c: E2 0E 00 75 3E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 49 [13:08:52]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:08:52]wFMCommunicate OK [13:08:52]SAM_PROTO_GetShiftState done [13:08:52]FM_GetShiftState done [13:08:52]opened in 1712967615 [13:08:52]opened+sec_in_day 1713054015 [13:08:52]quantity*price = 50028 [13:08:52]sum+1 = 50029 [13:08:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 135 13.04.2024 13:08 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28928 ФПД: 257819521519157 1/tax-web-control/client/api/v1/ticket?date=20240413T130857&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28928&fm=257819521519157&tin=02508201610067®Number=0000138879044617&sum=50000 [13:08:53]StoreToDocumentArchive [13:08:53]shift 115 fd 28928 [13:08:53]save to /storage/0115/doc_00028928 [13:08:53]save last doc name /storage/0115/doc_00028928 to /storage/kkm_last_doc_name [13:08:53]save OK [13:08:53]Clear old archive folders... [13:08:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:08:53]tlvbuf is 01295120 [13:08:53]SAM_PROTO_ClearQueue [13:08:53]wFMCommunicate request_size=4 [13:08:53]MH_SAM_APDU [13:08:53]CAPDU: 80 09 00 00 [13:08:53]Write to MH i2c: E2 08 00 82 3E 80 09 00 00 00 00 00 00 32 [13:08:53]Write i2c OK [13:08:53]MH_I2C_Read... [13:08:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:53]Read from MH i2c: E2 [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: E2 03 00 [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: E2 03 00 82 3E 00 90 00 34 [13:08:53]RAPDU: 90 00 [13:08:53]wFMCommunicate OK [13:08:53]SAM_PROTO_ClearQueue done [13:08:53]KKMCreateOFDPacket [13:08:53]OFDProtocolAddRootSTLVToBuf [13:08:53]FM_MakeSignedData [13:08:53]FM_MakeSignedData [13:08:53]SAM_PROTO_SignData [13:08:53]wFMCommunicate request_size=4 [13:08:53]MH_SAM_APDU [13:08:53]CAPDU: 80 0D 01 02 [13:08:53]Write to MH i2c: E2 08 00 83 3E 80 0D 01 02 00 00 00 00 3A [13:08:53]Write i2c OK [13:08:53]MH_I2C_Read... [13:08:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:53]Read from MH i2c: E2 [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: E2 03 00 [13:08:53]MH_I2C_Read... [13:08:53]Read from MH i2c: E2 03 00 83 3E 00 90 00 35 [13:08:53]RAPDU: 90 00 [13:08:53]wFMCommunicate OK [13:08:53]wFMCommunicate request_size=255 [13:08:53]MH_SAM_APDU [13:08:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 E9 83 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 00 71 00 00 35 04 06 00 EA 7C 48 FF [13:08:53]Write to MH i2c: E2 02 01 84 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 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 E9 83 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 00 71 00 00 35 04 06 00 EA 7C 48 FF 00 00 1A [13:08:53]Write i2c OK [13:08:53]MH_I2C_Read... [13:08:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:54]Read from MH i2c: E2 [13:08:54]MH_I2C_Read... [13:08:54]Read from MH i2c: E2 03 00 [13:08:54]MH_I2C_Read... [13:08:54]Read from MH i2c: E2 03 00 84 3E 00 90 00 36 [13:08:54]RAPDU: 90 00 [13:08:54]wFMCommunicate OK [13:08:54]wFMCommunicate request_size=7 [13:08:54]MH_SAM_APDU [13:08:54]CAPDU: 80 0D 02 02 02 0E 35 [13:08:54]Write to MH i2c: E2 0A 00 85 3E 80 0D 02 02 02 00 0E 35 00 00 84 [13:08:54]Write i2c OK [13:08:54]MH_I2C_Read... [13:08:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:54]Read from MH i2c: E2 [13:08:54]MH_I2C_Read... [13:08:54]Read from MH i2c: E2 03 00 [13:08:54]MH_I2C_Read... [13:08:54]Read from MH i2c: E2 03 00 85 3E 00 90 00 37 [13:08:54]RAPDU: 90 00 [13:08:54]wFMCommunicate OK [13:08:54]wFMCommunicate request_size=4 [13:08:54]MH_SAM_APDU [13:08:54]CAPDU: 80 0D 03 02 [13:08:54]Write to MH i2c: E2 08 00 86 3E 80 0D 03 02 00 00 00 00 3F [13:08:54]Write i2c OK [13:08:54]MH_I2C_Read... [13:08:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:54]Read from MH i2c: E2 [13:08:54]MH_I2C_Read... [13:08:54]Read from MH i2c: E2 0B 00 [13:08:54]MH_I2C_Read... [13:08:54]Read from MH i2c: E2 0B 00 86 3E 00 79 0B 40 D1 18 4C FC 0C 90 00 41 [13:08:54]RAPDU: 79 0B 40 D1 18 4C FC 0C 90 00 [13:08:54]wFMCommunicate OK [13:08:54]SAM_PROTO_SignData done [13:08:54]FM_MakeSignedData done [13:08:54]CreateOFDProtocolMessage [13:08:54]wFMCommunicate request_size=4 [13:08:54]MH_SAM_APDU [13:08:54]CAPDU: 80 11 00 00 [13:08:54]Write to MH i2c: E2 08 00 87 3E 80 11 00 00 00 00 00 00 3F [13:08:54]Write i2c OK [13:08:54]MH_I2C_Read... [13:08:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:54]Read from MH i2c: E2 [13:08:54]MH_I2C_Read... [13:08:54]Read from MH i2c: E2 17 00 [13:08:54]MH_I2C_Read... [13:08:54]Read from MH i2c: E2 17 00 87 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8E [13:08:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:08:54]wFMCommunicate OK [13:08:54]CreateOFDProtocolMessage done [13:08:54]OFDSenderStorePacket 28928 [13:08:54]StoreOFDPacket docnum=28928 [13:08:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 FD E0 04 01 7D 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 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 E9 83 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 00 71 00 00 35 04 06 00 EA 7C 48 FF 0E 35 79 0B 40 D1 18 4C FC 0C [13:08:54]CheckFolder [13:08:54]dirname=/storage/ofd_packets [13:08:54]CheckFolder done [13:08:54]ProducePacketName [13:08:54]name=ofd_packets/00028928 [13:08:54]NVStorageSaveData ofd_packets/00028928 [13:08:54]File name is /storage/ofd_packets/00028928 [13:08:54]Write 298 bytes [13:08:54]NVStorageSaveData done [13:08:54]OFDSenderStorePacket done [13:08:54]KKMCreateOFDPacket done [13:08:54]NVStorageSaveData kkm_last_timestamp [13:08:54]File name is /storage/kkm_last_timestamp [13:08:54]Write 4 bytes [13:08:54]NVStorageSaveData done [13:08:54]ExternCall_PrintAddStr [13:08:54]wPrintStart [13:08:54]Write to MH i2c: 01 00 00 88 3E C6 [13:08:54]Write i2c OK [13:08:54]MH_I2C_Read... [13:08:54]Read from MH i2c: 01 [13:08:54]MH_I2C_Read... [13:08:54]Read from MH i2c: 01 07 00 [13:08:54]MH_I2C_Read... [13:08:54]Read from MH i2c: 01 07 00 88 3E 00 00 00 00 00 FF 0F DB [13:08:54]RasterBufferAndPrint [13:08:54]line Счет N : (1)347284 [13:08:54]line ИНН: 02508201610067 [13:08:54]line Контрольно-Кассовый Чек [13:08:54]line ПРОДАЖА [13:08:54]line ТРК (МРК, ГНК) : 11 [13:08:54]line Товар: 2710194210 [13:08:54]line ДТ-К-5 [13:08:54]line 6.910 * 72.40 [13:08:54]line = 500.28 [13:08:54]line НДС 12% НСП 1% [13:08:54]line > о реализуемом товаре [13:08:54]line ОКРУГЛЕНИЕ: -0.28 [13:08:54]line ИТОГО: 500.00 [13:08:54]line Внесено: 500.00 [13:08:54]line СДАЧА: 0.00 [13:08:54]line НСП 1% : 4.43 [13:08:54]line НДС 12% : 53.13 [13:08:54]line Наличными: 500.00 [13:08:54]line Безнал.: 0.00 [13:08:54]line Место: АЗС № 108 "Партнер Нефть" [13:08:54]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:08:54]line СНО: Общий режим [13:08:54]line Чек 135 13.04.2024 13:08 [13:08:54]line Смена: 115 ФФД: 1.0 [13:08:54]line ЗНМ: 0300000027 [13:08:54]line РНМ: 0000138879044617 [13:08:54]line Версия ККМ: 001 [13:08:54]line ФМ: 0000000000963154 [13:08:54]line ФД: 28928 [13:08:54]line ФПД: 257819521519157 [13:08:54]line 1/tax-web-control/client/api/v1/ticket?date=20240413T130857&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28928&fm=257819521519157&tin=02508201610067®Number=0000138879044617&sum=50000 [13:08:54]OFD Sender: Processing packet 28928 [packets to send 8, broken 7] [13:08:54]ProducePacketName [13:08:54]name=ofd_packets/00028928 [13:08:54]OFD Sender: To server: pG, [13:08:54]CommunicateWithHost lk.salyk.kg:30040 [13:08:54]ConnectInit lk.salyk.kg [13:08:54]written 0, free lines is 4095 [13:08:54]Connected sock=10 [13:08: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 31 35 34 0C 01 00 00 FD E0 04 01 7D 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 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 E9 83 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 00 71 00 00 35 04 06 00 EA 7C 48 FF 0E 35 79 0B 40 D1 18 4C FC 0C [13:08:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 49 A8 47 00 2C C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 00 71 00 00 F4 03 04 00 90 2E 1A 66 B6 04 01 00 00 28 A3 97 89 6E 0D 33 B6 [13:08:54]CommunicateWithHost err = 0 [13:08:54]CheckOFDResponse [13:08:54]1017 (14) - 77093643461234 [13:08:54]1041 (16) - 0000000000963154 [13:08:54]1040 (4) - 28928 [13:08:54]1012 (4) - 13.04.2024 07:04 [13:08:54]1206 (1) - 0 [13:08:54]OFD Sender: Remove packet 28928 [13:08:54]ProducePacketName [13:08:54]name=ofd_packets/00028928 [13:08:54]NVStorageDeleteData [13:08:54]Write to MH i2c: 01 00 00 B2 3E F0 [13:08:54]Write i2c OK [13:08:54]MH_I2C_Read... [13:08:54]Read from MH i2c: 01 [13:08:54]MH_I2C_Read... [13:08:54]Read from MH i2c: 01 07 00 [13:08:54]MH_I2C_Read... [13:08:54]Read from MH i2c: 01 07 00 B2 3E 00 00 00 00 00 B9 0C BC [13:08:54]RasterBufferAndPrint [13:08:54]line [13:08:54]line [13:08:54]line [13:08:54]line [13:08:54]line [13:08:54]written 0, free lines is 3263 [13:08:54]MH_Cut [13:08:54]Write to MH i2c: D1 01 00 B9 3E 01 C9 [13:08:54]Write i2c OK [13:08:54]MH_I2C_Read... [13:08:54]Read from MH i2c: D1 [13:08:54]MH_I2C_Read... [13:08:54]Read from MH i2c: D1 01 00 [13:08:54]MH_I2C_Read... [13:08:54]Read from MH i2c: D1 01 00 B9 3E 00 C8 [13:08:54]Write to MH i2c: 01 00 00 BA 3E F8 [13:08:54]Write i2c OK [13:08:54]MH_I2C_Read... [13:08:55]OFD Sender: No OFD packet to send [13:08:55]*** Cut start [13:08:55]*** Partial cut [13:08:55]*** CUTSNS_PIN = 1 [13:08:55]*** CUTSNS_PIN = 0 [13:08:56]*** Brake cut motor [13:08:56]Read from MH i2c: 01 [13:08:56]MH_I2C_Read... [13:08:56]*** Stop cut motor [13:08:56]*** Cut end [13:08:56]Read from MH i2c: 01 07 00 [13:08:56]MH_I2C_Read... [13:08:56]Read from MH i2c: 01 07 00 BA 3E 00 00 00 00 00 FF 0F 0D [13:08:56]process_action close_receipt done [13:08:56]requested_data is exist [13:08:56]produce_requested_data [13:08:56]requested_item fm.sn is exist - process it [13:08:56]wFMCommunicate request_size=4 [13:08:56]MH_SAM_APDU [13:08:56]CAPDU: 80 11 00 00 [13:08:56]Write to MH i2c: E2 08 00 BB 3E 80 11 00 00 00 00 00 00 73 [13:08:56]Write i2c OK [13:08:56]MH_I2C_Read... [13:08:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:56]Read from MH i2c: E2 [13:08:56]MH_I2C_Read... [13:08:56]Read from MH i2c: E2 17 00 [13:08:56]MH_I2C_Read... [13:08:56]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 31 35 34 90 00 C2 [13:08:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:08:56]wFMCommunicate OK [13:08:56]requested_item fd.num is exist - process it [13:08:56]SAM_PROTO_GetFieldsCounters [13:08:56]wFMCommunicate request_size=4 [13:08:56]MH_SAM_APDU [13:08:56]CAPDU: 80 13 00 00 [13:08:56]Write to MH i2c: E2 08 00 BC 3E 80 13 00 00 00 00 00 00 76 [13:08:56]Write i2c OK [13:08:56]MH_I2C_Read... [13:08:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:56]Read from MH i2c: E2 [13:08:56]MH_I2C_Read... [13:08:56]Read from MH i2c: E2 62 00 [13:08:56]MH_I2C_Read... [13:08:56]Read from MH i2c: E2 62 00 BC 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 00 71 00 00 0E 04 04 00 73 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 2D [13:08: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 00 71 00 00 0E 04 04 00 73 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 [13:08:56]wFMCommunicate OK [13:08:56]SAM_PROTO_GetFieldsCounters done [13:08:56]requested_item shift.num is exist - process it [13:08:56]requested_item shift.opened is exist - process it [13:08:56]req_shift_opened [13:08:56]FM_GetShiftState [13:08:56]SAM_PROTO_GetShiftState [13:08:56]wFMCommunicate request_size=4 [13:08:56]MH_SAM_APDU [13:08:56]CAPDU: 80 13 01 00 [13:08:56]Write to MH i2c: E2 08 00 BD 3E 80 13 01 00 00 00 00 00 78 [13:08:56]Write i2c OK [13:08:56]MH_I2C_Read... [13:08:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:56]Read from MH i2c: E2 [13:08:56]MH_I2C_Read... [13:08:56]Read from MH i2c: E2 0E 00 [13:08:56]MH_I2C_Read... [13:08:56]Read from MH i2c: E2 0E 00 BD 3E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 91 [13:08:56]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:08:56]wFMCommunicate OK [13:08:56]SAM_PROTO_GetShiftState done [13:08:56]FM_GetShiftState done [13:08:56]req_shift_opened done [13:08:56]requested_item shift.open_date is exist - process it [13:08:56]req_shift_open_date [13:08:56]req_shift_open_date done [13:08:56]produce_requested_data done [13:08:56]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28928,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [13:08:56]process_action_free close_receipt [13:08:56]json_value_free [13:08:56]json_value_free done [13:08:56]process_json_proto returns [13:08:56]Send response to host [13:08:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28928,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [13:08:56]free response buf [13:08:56]execute_script done [13:08:56]execute_script returns [13:08:56]free content buf [13:08:56]Sock 9.Close socket [13:08:56]Sock 9.Thread stoped [13:09:00]OFD Sender: No OFD packet to send [13:09:05]OFD Sender: No OFD packet to send [13:09:10]OFD Sender: No OFD packet to send [13:09:15]OFD Sender: No OFD packet to send [13:09:20]OFD Sender: No OFD packet to send [13:09:25]OFD Sender: No OFD packet to send [13:09:29]accept exits with 7 [13:09:29]New connection [13:09:29]New thread 3066928484 created [13:09:29]Thread 3066785124 joined [13:09:29]Waiting for new connection... [13:09:29] Sock 7.Parse request [13:09:29]Sock 7.Check first char [13:09:29]Sock 7.First char is OK [13:09:29]request: POST /json_proto HTTP/1.0 [13:09:29]Method: POST [13:09:29]URL: /json_proto [13:09:29]Method is POST - this is cgi request [13:09:29]url: /json_proto [13:09:29]query_string will be loaded in cgi processing [13:09:29]execute_cgi json_proto POST (null) [13:09:29]execute_cgi path=json_proto method=POST [13:09:29]POST find Content-Length [13:09:29]Host: 172.17.33.3:8080 [13:09:29]Content-Length: 836 [13:09:29]Content-Type: application/json [13:09:29] [13:09:29]POST finish read [13:09:29]Found Content-Length = 836 [13:09:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:29]execute_script... [13:09: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)347285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:29]POST & json_proto [13:09:29]process_json_proto [13:09:29]json parsed OK: [13:09:29]protocol is kg_v1.0 [13:09:29]action value=close_receipt [13:09:29]process_action close_receipt [13:09:29]cmd_close_receipt [13:09:29]MH_GetDate [13:09:29]Write to MH i2c: F0 00 00 BE 3E EB [13:09:29]Write i2c OK [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: F0 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: F0 09 00 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: F0 09 00 BE 3E 00 0E 84 1A 66 23 5B 8F 65 78 [13:09:29]GetLastDocTimeStamp 1713013737 [13:09:29]current date 1713013774 [13:09:29]FM_GetShiftState [13:09:29]SAM_PROTO_GetShiftState [13:09:29]wFMCommunicate request_size=4 [13:09:29]MH_SAM_APDU [13:09:29]CAPDU: 80 13 01 00 [13:09:29]Write to MH i2c: E2 08 00 BF 3E 80 13 01 00 00 00 00 00 7A [13:09:29]Write i2c OK [13:09:29]MH_I2C_Read... [13:09:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:29]Read from MH i2c: E2 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: E2 0E 00 [13:09:29]MH_I2C_Read... [13:09:29]Read from MH i2c: E2 0E 00 BF 3E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 93 [13:09:29]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:09:29]wFMCommunicate OK [13:09:29]SAM_PROTO_GetShiftState done [13:09:29]FM_GetShiftState done [13:09:29]opened in 1712967615 [13:09:29]opened+sec_in_day 1713054015 [13:09:29]quantity*price = 100039 [13:09:29]sum+1 = 100041 [13:09:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.40 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.40 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 136 13.04.2024 13:09 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28929 ФПД: 125155227413726 1/tax-web-control/client/api/v1/ticket?date=20240413T130934&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28929&fm=125155227413726&tin=02508201610067®Number=0000138879044617&sum=100040 [13:09:30]StoreToDocumentArchive [13:09:30]shift 115 fd 28929 [13:09:30]save to /storage/0115/doc_00028929 [13:09:30]save last doc name /storage/0115/doc_00028929 to /storage/kkm_last_doc_name [13:09:30]save OK [13:09:30]Clear old archive folders... [13:09:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:09:30]tlvbuf is 0121F890 [13:09:30]SAM_PROTO_ClearQueue [13:09:30]wFMCommunicate request_size=4 [13:09:30]MH_SAM_APDU [13:09:30]CAPDU: 80 09 00 00 [13:09:30]Write to MH i2c: E2 08 00 CC 3E 80 09 00 00 00 00 00 00 7C [13:09:30]Write i2c OK [13:09:30]MH_I2C_Read... [13:09:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:30]Read from MH i2c: E2 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 03 00 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 03 00 CC 3E 00 90 00 7E [13:09:30]RAPDU: 90 00 [13:09:30]wFMCommunicate OK [13:09:30]SAM_PROTO_ClearQueue done [13:09:30]KKMCreateOFDPacket [13:09:30]OFDProtocolAddRootSTLVToBuf [13:09:30]FM_MakeSignedData [13:09:30]FM_MakeSignedData [13:09:30]SAM_PROTO_SignData [13:09:30]wFMCommunicate request_size=4 [13:09:30]MH_SAM_APDU [13:09:30]CAPDU: 80 0D 01 02 [13:09:30]Write to MH i2c: E2 08 00 CD 3E 80 0D 01 02 00 00 00 00 84 [13:09:30]Write i2c OK [13:09:30]MH_I2C_Read... [13:09:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:30]Read from MH i2c: E2 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 03 00 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 03 00 CD 3E 00 90 00 7F [13:09:30]RAPDU: 90 00 [13:09:30]wFMCommunicate OK [13:09:30]wFMCommunicate request_size=255 [13:09:30]MH_SAM_APDU [13:09:30]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 0E 84 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 01 71 00 00 35 04 06 00 [13:09:30]Write to MH i2c: E2 02 01 CE 3E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 0E 84 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 01 71 00 00 35 04 06 00 00 00 90 [13:09:30]Write i2c OK [13:09:30]MH_I2C_Read... [13:09:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:30]Read from MH i2c: E2 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 03 00 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 03 00 CE 3E 00 90 00 80 [13:09:30]RAPDU: 90 00 [13:09:30]wFMCommunicate OK [13:09:30]wFMCommunicate request_size=11 [13:09:30]MH_SAM_APDU [13:09:30]CAPDU: 80 0D 02 02 06 71 D3 F8 DF 2C DE [13:09:30]Write to MH i2c: E2 0E 00 CF 3E 80 0D 02 02 06 00 71 D3 F8 DF 2C DE 00 00 B8 [13:09:30]Write i2c OK [13:09:30]MH_I2C_Read... [13:09:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:30]Read from MH i2c: E2 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 03 00 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 03 00 CF 3E 00 90 00 81 [13:09:30]RAPDU: 90 00 [13:09:30]wFMCommunicate OK [13:09:30]wFMCommunicate request_size=4 [13:09:30]MH_SAM_APDU [13:09:30]CAPDU: 80 0D 03 02 [13:09:30]Write to MH i2c: E2 08 00 D0 3E 80 0D 03 02 00 00 00 00 89 [13:09:30]Write i2c OK [13:09:30]MH_I2C_Read... [13:09:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:30]Read from MH i2c: E2 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 0B 00 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 0B 00 D0 3E 00 C4 F0 AF 02 74 07 6B 62 90 00 37 [13:09:30]RAPDU: C4 F0 AF 02 74 07 6B 62 90 00 [13:09:30]wFMCommunicate OK [13:09:30]SAM_PROTO_SignData done [13:09:30]FM_MakeSignedData done [13:09:30]CreateOFDProtocolMessage [13:09:30]wFMCommunicate request_size=4 [13:09:30]MH_SAM_APDU [13:09:30]CAPDU: 80 11 00 00 [13:09:30]Write to MH i2c: E2 08 00 D1 3E 80 11 00 00 00 00 00 00 89 [13:09:30]Write i2c OK [13:09:30]MH_I2C_Read... [13:09:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:30]Read from MH i2c: E2 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 17 00 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: E2 17 00 D1 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D8 [13:09:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:09:30]wFMCommunicate OK [13:09:30]CreateOFDProtocolMessage done [13:09:30]OFDSenderStorePacket 28929 [13:09:30]StoreOFDPacket docnum=28929 [13:09:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 62 1E 08 01 67 66 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 0E 84 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 01 71 00 00 35 04 06 00 71 D3 F8 DF 2C DE C4 F0 AF 02 74 07 6B 62 [13:09:30]CheckFolder [13:09:30]dirname=/storage/ofd_packets [13:09:30]CheckFolder done [13:09:30]ProducePacketName [13:09:30]name=ofd_packets/00028929 [13:09:30]NVStorageSaveData ofd_packets/00028929 [13:09:30]File name is /storage/ofd_packets/00028929 [13:09:30]Write 302 bytes [13:09:30]NVStorageSaveData done [13:09:30]OFDSenderStorePacket done [13:09:30]KKMCreateOFDPacket done [13:09:30]NVStorageSaveData kkm_last_timestamp [13:09:30]File name is /storage/kkm_last_timestamp [13:09:30]Write 4 bytes [13:09:30]NVStorageSaveData done [13:09:30]ExternCall_PrintAddStr [13:09:30]wPrintStart [13:09:30]Write to MH i2c: 01 00 00 D2 3E 10 [13:09:30]Write i2c OK [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: 01 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: 01 07 00 [13:09:30]MH_I2C_Read... [13:09:30]Read from MH i2c: 01 07 00 D2 3E 00 00 00 00 00 FF 0F 25 [13:09:30]RasterBufferAndPrint [13:09:30]line Счет N : (1)347285 [13:09:30]line ИНН: 02508201610067 [13:09:30]line Контрольно-Кассовый Чек [13:09:30]line ПРОДАЖА [13:09:30]line ТРК (МРК, ГНК) : 41 [13:09:30]line Товар: 2710124130 [13:09:30]line SUPER-92-К-5 [13:09:30]line 15.320 * 65.30 [13:09:30]line = 1000.40 [13:09:30]line НДС 12% НСП 1% [13:09:30]line > о реализуемом товаре [13:09:30]line ИТОГО: 1000.40 [13:09:30]line НСП 1% : 8.85 [13:09:30]line НДС 12% : 106.24 [13:09:30]line Наличными: 0.00 [13:09:30]line Безнал.: 1000.40 [13:09:30]line Место: АЗС № 108 "Партнер Нефть" [13:09:30]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:09:30]line СНО: Общий режим [13:09:30]line Чек 136 13.04.2024 13:09 [13:09:30]line Смена: 115 ФФД: 1.0 [13:09:30]line ЗНМ: 0300000027 [13:09:30]line РНМ: 0000138879044617 [13:09:30]line Версия ККМ: 001 [13:09:30]line Платежная система: АКБ Кыргызстан [13:09:30]line ФМ: 0000000000963154 [13:09:30]line ФД: 28929 [13:09:30]line ФПД: 125155227413726 [13:09:30]line 1/tax-web-control/client/api/v1/ticket?date=20240413T130934&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28929&fm=125155227413726&tin=02508201610067®Number=0000138879044617&sum=100040 [13:09:31]written 0, free lines is 4095 [13:09:31]OFD Sender: Processing packet 28929 [packets to send 8, broken 7] [13:09:31]ProducePacketName [13:09:31]name=ofd_packets/00028929 [13:09:31]OFD Sender: To server: pG, [13:09:31]CommunicateWithHost lk.salyk.kg:30040 [13:09:31]ConnectInit lk.salyk.kg [13:09:31]Connected sock=10 [13:09: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 31 35 34 10 01 00 00 62 1E 08 01 67 66 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 0E 84 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 01 71 00 00 35 04 06 00 71 D3 F8 DF 2C DE C4 F0 AF 02 74 07 6B 62 [13:09:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6C DE 47 00 7D 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 01 71 00 00 F4 03 04 00 B5 2E 1A 66 B6 04 01 00 00 4C A8 D6 40 B1 15 7A C9 [13:09:31]CommunicateWithHost err = 0 [13:09:31]CheckOFDResponse [13:09:31]1017 (14) - 77093643461234 [13:09:31]1041 (16) - 0000000000963154 [13:09:31]1040 (4) - 28929 [13:09:31]1012 (4) - 13.04.2024 07:05 [13:09:31]1206 (1) - 0 [13:09:31]OFD Sender: Remove packet 28929 [13:09:31]ProducePacketName [13:09:31]name=ofd_packets/00028929 [13:09:31]NVStorageDeleteData [13:09:31]Write to MH i2c: 01 00 00 FB 3E 39 [13:09:31]Write i2c OK [13:09:31]MH_I2C_Read... [13:09:31]Read from MH i2c: 01 [13:09:31]MH_I2C_Read... [13:09:31]Read from MH i2c: 01 07 00 [13:09:31]MH_I2C_Read... [13:09:31]Read from MH i2c: 01 07 00 FB 3E 00 00 00 00 00 DE 0C 2A [13:09:31]RasterBufferAndPrint [13:09:31]line [13:09:31]line [13:09:31]line [13:09:31]line [13:09:31]line [13:09:31]written 0, free lines is 3300 [13:09:31]MH_Cut [13:09:31]Write to MH i2c: D1 01 00 02 3F 01 13 [13:09:31]Write i2c OK [13:09:31]MH_I2C_Read... [13:09:31]Read from MH i2c: D1 [13:09:31]MH_I2C_Read... [13:09:31]Read from MH i2c: D1 01 00 [13:09:31]MH_I2C_Read... [13:09:31]Read from MH i2c: D1 01 00 02 3F 00 12 [13:09:31]Write to MH i2c: 01 00 00 03 3F 42 [13:09:31]Write i2c OK [13:09:31]MH_I2C_Read... [13:09:32]OFD Sender: No OFD packet to send [13:09:32]*** Cut start [13:09:32]*** Partial cut [13:09:32]*** CUTSNS_PIN = 1 [13:09:32]*** CUTSNS_PIN = 0 [13:09:32]*** Brake cut motor [13:09:33]Read from MH i2c: 01 [13:09:33]MH_I2C_Read... [13:09:33]*** Stop cut motor [13:09:33]*** Cut end [13:09:33]Read from MH i2c: 01 07 00 [13:09:33]MH_I2C_Read... [13:09:33]Read from MH i2c: 01 07 00 03 3F 00 00 00 00 00 FF 0F 57 [13:09:33]process_action close_receipt done [13:09:33]requested_data is exist [13:09:33]produce_requested_data [13:09:33]requested_item fm.sn is exist - process it [13:09:33]wFMCommunicate request_size=4 [13:09:33]MH_SAM_APDU [13:09:33]CAPDU: 80 11 00 00 [13:09:33]Write to MH i2c: E2 08 00 04 3F 80 11 00 00 00 00 00 00 BD [13:09:33]Write i2c OK [13:09:33]MH_I2C_Read... [13:09:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:33]Read from MH i2c: E2 [13:09:33]MH_I2C_Read... [13:09:33]Read from MH i2c: E2 17 00 [13:09:33]MH_I2C_Read... [13:09:33]Read from MH i2c: E2 17 00 04 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0C [13:09:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:09:33]wFMCommunicate OK [13:09:33]requested_item fd.num is exist - process it [13:09:33]SAM_PROTO_GetFieldsCounters [13:09:33]wFMCommunicate request_size=4 [13:09:33]MH_SAM_APDU [13:09:33]CAPDU: 80 13 00 00 [13:09:33]Write to MH i2c: E2 08 00 05 3F 80 13 00 00 00 00 00 00 C0 [13:09:33]Write i2c OK [13:09:33]MH_I2C_Read... [13:09:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:33]Read from MH i2c: E2 [13:09:33]MH_I2C_Read... [13:09:33]Read from MH i2c: E2 62 00 [13:09:33]MH_I2C_Read... [13:09:33]Read from MH i2c: E2 62 00 05 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 01 71 00 00 0E 04 04 00 73 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 7B [13:09: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 01 71 00 00 0E 04 04 00 73 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 [13:09:33]wFMCommunicate OK [13:09:33]SAM_PROTO_GetFieldsCounters done [13:09:33]requested_item shift.num is exist - process it [13:09:33]requested_item shift.opened is exist - process it [13:09:33]req_shift_opened [13:09:33]FM_GetShiftState [13:09:33]SAM_PROTO_GetShiftState [13:09:33]wFMCommunicate request_size=4 [13:09:33]MH_SAM_APDU [13:09:33]CAPDU: 80 13 01 00 [13:09:33]Write to MH i2c: E2 08 00 06 3F 80 13 01 00 00 00 00 00 C2 [13:09:33]Write i2c OK [13:09:33]MH_I2C_Read... [13:09:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:33]Read from MH i2c: E2 [13:09:33]MH_I2C_Read... [13:09:33]Read from MH i2c: E2 0E 00 [13:09:33]MH_I2C_Read... [13:09:33]Read from MH i2c: E2 0E 00 06 3F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 DB [13:09:33]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:09:33]wFMCommunicate OK [13:09:33]SAM_PROTO_GetShiftState done [13:09:33]FM_GetShiftState done [13:09:33]req_shift_opened done [13:09:33]requested_item shift.open_date is exist - process it [13:09:33]req_shift_open_date [13:09:33]req_shift_open_date done [13:09:33]produce_requested_data done [13:09:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28929,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [13:09:33]process_action_free close_receipt [13:09:33]json_value_free [13:09:33]json_value_free done [13:09:33]process_json_proto returns [13:09:33]Send response to host [13:09:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28929,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [13:09:33]free response buf [13:09:33]execute_script done [13:09:33]execute_script returns [13:09:33]free content buf [13:09:33]Sock 7.Close socket [13:09:33]Sock 7.Thread stoped [13:09:37]OFD Sender: No OFD packet to send [13:09:38]accept exits with 9 [13:09:38]New connection [13:09:38]New thread 3066785124 created [13:09:38]Thread 3066928484 joined [13:09:38]Waiting for new connection... [13:09:38] Sock 9.Parse request [13:09:38]Sock 9.Check first char [13:09:38]Sock 9.First char is OK [13:09:38]request: POST /json_proto HTTP/1.0 [13:09:38]Method: POST [13:09:38]URL: /json_proto [13:09:38]Method is POST - this is cgi request [13:09:38]url: /json_proto [13:09:38]query_string will be loaded in cgi processing [13:09:38]execute_cgi json_proto POST (null) [13:09:38]execute_cgi path=json_proto method=POST [13:09:38]POST find Content-Length [13:09:38]Host: 172.17.33.3:8080 [13:09:38]Content-Length: 843 [13:09:38]Content-Type: application/json [13:09:38] [13:09:38]POST finish read [13:09:38]Found Content-Length = 843 [13:09:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:38]execute_script... [13:09:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:38]POST & json_proto [13:09:38]process_json_proto [13:09:38]json parsed OK: [13:09:38]protocol is kg_v1.0 [13:09:38]action value=close_receipt [13:09:38]process_action close_receipt [13:09:38]cmd_close_receipt [13:09:38]MH_GetDate [13:09:38]Write to MH i2c: F0 00 00 07 3F 35 [13:09:38]Write i2c OK [13:09:38]MH_I2C_Read... [13:09:38]Read from MH i2c: F0 [13:09:38]MH_I2C_Read... [13:09:38]Read from MH i2c: F0 09 00 [13:09:38]MH_I2C_Read... [13:09:38]Read from MH i2c: F0 09 00 07 3F 00 17 84 1A 66 23 5B 8F 65 CB [13:09:38]GetLastDocTimeStamp 1713013774 [13:09:38]current date 1713013783 [13:09:38]FM_GetShiftState [13:09:38]SAM_PROTO_GetShiftState [13:09:38]wFMCommunicate request_size=4 [13:09:38]MH_SAM_APDU [13:09:38]CAPDU: 80 13 01 00 [13:09:38]Write to MH i2c: E2 08 00 08 3F 80 13 01 00 00 00 00 00 C4 [13:09:38]Write i2c OK [13:09:38]MH_I2C_Read... [13:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:38]Read from MH i2c: E2 [13:09:38]MH_I2C_Read... [13:09:38]Read from MH i2c: E2 0E 00 [13:09:38]MH_I2C_Read... [13:09:38]Read from MH i2c: E2 0E 00 08 3F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 DD [13:09:38]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:09:38]wFMCommunicate OK [13:09:38]SAM_PROTO_GetShiftState done [13:09:38]FM_GetShiftState done [13:09:38]opened in 1712967615 [13:09:38]opened+sec_in_day 1713054015 [13:09:38]quantity*price = 100050 [13:09:38]sum+1 = 100052 [13:09:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 137 13.04.2024 13:09 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28930 ФПД: 24915642122681 1/tax-web-control/client/api/v1/ticket?date=20240413T130943&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28930&fm=24915642122681&tin=02508201610067®Number=0000138879044617&sum=100051 [13:09:39]StoreToDocumentArchive [13:09:39]shift 115 fd 28930 [13:09:39]save to /storage/0115/doc_00028930 [13:09:39]save last doc name /storage/0115/doc_00028930 to /storage/kkm_last_doc_name [13:09:39]save OK [13:09:39]Clear old archive folders... [13:09:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:09:39]tlvbuf is B6DA2010 [13:09:39]SAM_PROTO_ClearQueue [13:09:39]wFMCommunicate request_size=4 [13:09:39]MH_SAM_APDU [13:09:39]CAPDU: 80 09 00 00 [13:09:39]Write to MH i2c: E2 08 00 15 3F 80 09 00 00 00 00 00 00 C6 [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:39]Read from MH i2c: E2 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 15 3F 00 90 00 C8 [13:09:39]RAPDU: 90 00 [13:09:39]wFMCommunicate OK [13:09:39]SAM_PROTO_ClearQueue done [13:09:39]KKMCreateOFDPacket [13:09:39]OFDProtocolAddRootSTLVToBuf [13:09:39]FM_MakeSignedData [13:09:39]FM_MakeSignedData [13:09:39]SAM_PROTO_SignData [13:09:39]wFMCommunicate request_size=4 [13:09:39]MH_SAM_APDU [13:09:39]CAPDU: 80 0D 01 02 [13:09:39]Write to MH i2c: E2 08 00 16 3F 80 0D 01 02 00 00 00 00 CE [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:39]Read from MH i2c: E2 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 16 3F 00 90 00 C9 [13:09:39]RAPDU: 90 00 [13:09:39]wFMCommunicate OK [13:09:39]wFMCommunicate request_size=255 [13:09:39]MH_SAM_APDU [13:09:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 89 00 00 00 F4 03 04 00 17 84 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 02 71 00 00 35 04 06 00 16 [13:09:39]Write to MH i2c: E2 02 01 17 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 89 00 00 00 F4 03 04 00 17 84 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 02 71 00 00 35 04 06 00 16 00 00 00 [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:40]Read from MH i2c: E2 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: E2 03 00 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: E2 03 00 17 3F 00 90 00 CA [13:09:40]RAPDU: 90 00 [13:09:40]wFMCommunicate OK [13:09:40]wFMCommunicate request_size=10 [13:09:40]MH_SAM_APDU [13:09:40]CAPDU: 80 0D 02 02 05 A9 1F FF 81 B9 [13:09:40]Write to MH i2c: E2 0D 00 18 3F 80 0D 02 02 05 00 A9 1F FF 81 B9 00 00 DC [13:09:40]Write i2c OK [13:09:40]MH_I2C_Read... [13:09:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:40]Read from MH i2c: E2 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: E2 03 00 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: E2 03 00 18 3F 00 90 00 CB [13:09:40]RAPDU: 90 00 [13:09:40]wFMCommunicate OK [13:09:40]wFMCommunicate request_size=4 [13:09:40]MH_SAM_APDU [13:09:40]CAPDU: 80 0D 03 02 [13:09:40]Write to MH i2c: E2 08 00 19 3F 80 0D 03 02 00 00 00 00 D3 [13:09:40]Write i2c OK [13:09:40]MH_I2C_Read... [13:09:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:40]Read from MH i2c: E2 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: E2 0B 00 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: E2 0B 00 19 3F 00 89 49 7D BF 6B 42 90 19 90 00 38 [13:09:40]RAPDU: 89 49 7D BF 6B 42 90 19 90 00 [13:09:40]wFMCommunicate OK [13:09:40]SAM_PROTO_SignData done [13:09:40]FM_MakeSignedData done [13:09:40]CreateOFDProtocolMessage [13:09:40]wFMCommunicate request_size=4 [13:09:40]MH_SAM_APDU [13:09:40]CAPDU: 80 11 00 00 [13:09:40]Write to MH i2c: E2 08 00 1A 3F 80 11 00 00 00 00 00 00 D3 [13:09:40]Write i2c OK [13:09:40]MH_I2C_Read... [13:09:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:40]Read from MH i2c: E2 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: E2 17 00 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: E2 17 00 1A 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 22 [13:09:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:09:40]wFMCommunicate OK [13:09:40]CreateOFDProtocolMessage done [13:09:40]OFDSenderStorePacket 28930 [13:09:40]StoreOFDPacket docnum=28930 [13:09:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 88 96 07 01 CC 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 89 00 00 00 F4 03 04 00 17 84 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 02 71 00 00 35 04 06 00 16 A9 1F FF 81 B9 89 49 7D BF 6B 42 90 19 [13:09:40]CheckFolder [13:09:40]dirname=/storage/ofd_packets [13:09:40]CheckFolder done [13:09:40]ProducePacketName [13:09:40]name=ofd_packets/00028930 [13:09:40]NVStorageSaveData ofd_packets/00028930 [13:09:40]File name is /storage/ofd_packets/00028930 [13:09:40]Write 301 bytes [13:09:40]NVStorageSaveData done [13:09:40]OFDSenderStorePacket done [13:09:40]KKMCreateOFDPacket done [13:09:40]NVStorageSaveData kkm_last_timestamp [13:09:40]File name is /storage/kkm_last_timestamp [13:09:40]Write 4 bytes [13:09:40]NVStorageSaveData done [13:09:40]ExternCall_PrintAddStr [13:09:40]wPrintStart [13:09:40]Write to MH i2c: 01 00 00 1B 3F 5A [13:09:40]Write i2c OK [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: 01 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: 01 07 00 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: 01 07 00 1B 3F 00 00 00 00 00 FF 0F 6F [13:09:40]RasterBufferAndPrint [13:09:40]line Счет N : (1)347286 [13:09:40]line ИНН: 02508201610067 [13:09:40]line Контрольно-Кассовый Чек [13:09:40]line ПРОДАЖА [13:09:40]line ТРК (МРК, ГНК) : 23 [13:09:40]line Товар: 2710124130 [13:09:40]line Аи-92-К-5 [13:09:40]line 15.560 * 64.30 [13:09:40]line = 1000.51 [13:09:40]line НДС 12% НСП 1% [13:09:40]line > о реализуемом товаре [13:09:40]line ИТОГО: 1000.51 [13:09:40]line НСП 1% : 8.85 [13:09:40]line НДС 12% : 106.25 [13:09:40]line Наличными: 0.00 [13:09:40]line Безнал.: 1000.51 [13:09:40]line Место: АЗС № 108 "Партнер Нефть" [13:09:40]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:09:40]line СНО: Общий режим [13:09:40]line Чек 137 13.04.2024 13:09 [13:09:40]line Смена: 115 ФФД: 1.0 [13:09:40]line ЗНМ: 0300000027 [13:09:40]line РНМ: 0000138879044617 [13:09:40]line Версия ККМ: 001 [13:09:40]line Платежная система: АКБ Кыргызстан [13:09:40]line ФМ: 0000000000963154 [13:09:40]line ФД: 28930 [13:09:40]line ФПД: 24915642122681 [13:09:40]line 1/tax-web-control/client/api/v1/ticket?date=20240413T130943&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28930&fm=24915642122681&tin=02508201610067®Number=0000138879044617&sum=100051 [13:09:40]OFD Sender: Processing packet 28930 [packets to send 8, broken 7] [13:09:40]ProducePacketName [13:09:40]name=ofd_packets/00028930 [13:09:40]OFD Sender: To server: pG, [13:09:40]CommunicateWithHost lk.salyk.kg:30040 [13:09:40]ConnectInit lk.salyk.kg [13:09:40]written 0, free lines is 4095 [13:09:40]Connected sock=10 [13:09:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 88 96 07 01 CC 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 89 00 00 00 F4 03 04 00 17 84 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 02 71 00 00 35 04 06 00 16 A9 1F FF 81 B9 89 49 7D BF 6B 42 90 19 [13:09:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AC 81 47 00 5D 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 31 35 34 10 04 04 00 02 71 00 00 F4 03 04 00 BD 2E 1A 66 B6 04 01 00 00 9D 48 3D 12 C2 63 A1 C7 [13:09:40]CommunicateWithHost err = 0 [13:09:40]CheckOFDResponse [13:09:40]1017 (14) - 77093643461234 [13:09:40]1041 (16) - 0000000000963154 [13:09:40]1040 (4) - 28930 [13:09:40]1012 (4) - 13.04.2024 07:05 [13:09:40]1206 (1) - 0 [13:09:40]OFD Sender: Remove packet 28930 [13:09:40]ProducePacketName [13:09:40]name=ofd_packets/00028930 [13:09:40]NVStorageDeleteData [13:09:40]Write to MH i2c: 01 00 00 44 3F 83 [13:09:40]Write i2c OK [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: 01 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: 01 07 00 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: 01 07 00 44 3F 00 00 00 00 00 E6 0C 7C [13:09:40]RasterBufferAndPrint [13:09:40]line [13:09:40]line [13:09:40]line [13:09:40]line [13:09:40]line [13:09:40]written 0, free lines is 3314 [13:09:40]MH_Cut [13:09:40]Write to MH i2c: D1 01 00 4B 3F 01 5C [13:09:40]Write i2c OK [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: D1 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: D1 01 00 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: D1 01 00 4B 3F 00 5B [13:09:40]Write to MH i2c: 01 00 00 4C 3F 8B [13:09:40]Write i2c OK [13:09:40]MH_I2C_Read... [13:09:40]OFD Sender: No OFD packet to send [13:09:41]*** Cut start [13:09:41]*** Partial cut [13:09:41]*** CUTSNS_PIN = 1 [13:09:41]*** CUTSNS_PIN = 0 [13:09:41]*** Brake cut motor [13:09:42]Read from MH i2c: 01 [13:09:42]MH_I2C_Read... [13:09:42]*** Stop cut motor [13:09:42]*** Cut end [13:09:42]Read from MH i2c: 01 07 00 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: 01 07 00 4C 3F 00 00 00 00 00 FF 0F A0 [13:09:42]process_action close_receipt done [13:09:42]requested_data is exist [13:09:42]produce_requested_data [13:09:42]requested_item fm.sn is exist - process it [13:09:42]wFMCommunicate request_size=4 [13:09:42]MH_SAM_APDU [13:09:42]CAPDU: 80 11 00 00 [13:09:42]Write to MH i2c: E2 08 00 4D 3F 80 11 00 00 00 00 00 00 06 [13:09:42]Write i2c OK [13:09:42]MH_I2C_Read... [13:09:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:42]Read from MH i2c: E2 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 17 00 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 17 00 4D 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 55 [13:09:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:09:42]wFMCommunicate OK [13:09:42]requested_item fd.num is exist - process it [13:09:42]SAM_PROTO_GetFieldsCounters [13:09:42]wFMCommunicate request_size=4 [13:09:42]MH_SAM_APDU [13:09:42]CAPDU: 80 13 00 00 [13:09:42]Write to MH i2c: E2 08 00 4E 3F 80 13 00 00 00 00 00 00 09 [13:09:42]Write i2c OK [13:09:42]MH_I2C_Read... [13:09:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:42]Read from MH i2c: E2 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 62 00 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 62 00 4E 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 02 71 00 00 0E 04 04 00 73 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 C8 [13:09:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 02 71 00 00 0E 04 04 00 73 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 [13:09:42]wFMCommunicate OK [13:09:42]SAM_PROTO_GetFieldsCounters done [13:09:42]requested_item shift.num is exist - process it [13:09:42]requested_item shift.opened is exist - process it [13:09:42]req_shift_opened [13:09:42]FM_GetShiftState [13:09:42]SAM_PROTO_GetShiftState [13:09:42]wFMCommunicate request_size=4 [13:09:42]MH_SAM_APDU [13:09:42]CAPDU: 80 13 01 00 [13:09:42]Write to MH i2c: E2 08 00 4F 3F 80 13 01 00 00 00 00 00 0B [13:09:42]Write i2c OK [13:09:42]MH_I2C_Read... [13:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:42]Read from MH i2c: E2 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 0E 00 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 0E 00 4F 3F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 24 [13:09:42]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:09:42]wFMCommunicate OK [13:09:42]SAM_PROTO_GetShiftState done [13:09:42]FM_GetShiftState done [13:09:42]req_shift_opened done [13:09:42]requested_item shift.open_date is exist - process it [13:09:42]req_shift_open_date [13:09:42]req_shift_open_date done [13:09:42]produce_requested_data done [13:09:42]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28930,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [13:09:42]process_action_free close_receipt [13:09:42]json_value_free [13:09:42]json_value_free done [13:09:42]process_json_proto returns [13:09:42]Send response to host [13:09:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28930,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [13:09:42]free response buf [13:09:42]execute_script done [13:09:42]execute_script returns [13:09:42]free content buf [13:09:42]Sock 9.Close socket [13:09:42]Sock 9.Thread stoped [13:09:45]OFD Sender: No OFD packet to send [13:09:50]OFD Sender: No OFD packet to send [13:09:55]OFD Sender: No OFD packet to send [13:10:01]OFD Sender: No OFD packet to send [13:10:06]OFD Sender: No OFD packet to send [13:10:11]OFD Sender: No OFD packet to send [13:10:16]OFD Sender: No OFD packet to send [13:10:21]OFD Sender: No OFD packet to send [13:10:26]OFD Sender: No OFD packet to send [13:10:31]OFD Sender: No OFD packet to send [13:10:36]OFD Sender: No OFD packet to send [13:10:41]OFD Sender: No OFD packet to send [13:10:46]OFD Sender: No OFD packet to send [13:10:51]OFD Sender: No OFD packet to send [13:10:56]OFD Sender: No OFD packet to send [13:11:01]OFD Sender: No OFD packet to send [13:11:06]OFD Sender: No OFD packet to send [13:11:11]OFD Sender: No OFD packet to send [13:11:16]OFD Sender: No OFD packet to send [13:11:21]OFD Sender: No OFD packet to send [13:11:26]OFD Sender: No OFD packet to send [13:11:31]OFD Sender: No OFD packet to send [13:11:36]OFD Sender: No OFD packet to send [13:11:41]OFD Sender: No OFD packet to send [13:11:46]OFD Sender: No OFD packet to send [13:11:51]OFD Sender: No OFD packet to send [13:11:56]OFD Sender: No OFD packet to send [13:12:01]OFD Sender: No OFD packet to send [13:12:06]OFD Sender: No OFD packet to send [13:12:11]OFD Sender: No OFD packet to send [13:12:16]OFD Sender: No OFD packet to send [13:12:21]OFD Sender: No OFD packet to send [13:12:26]OFD Sender: No OFD packet to send [13:12:31]OFD Sender: No OFD packet to send [13:12:36]OFD Sender: No OFD packet to send [13:12:41]OFD Sender: No OFD packet to send [13:12:46]OFD Sender: No OFD packet to send [13:12:51]OFD Sender: No OFD packet to send [13:12:56]OFD Sender: No OFD packet to send [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:15]accept exits with 7 [13:14:15]New connection [13:14:15]New thread 3066928484 created [13:14:15]Thread 3066785124 joined [13:14:15]Waiting for new connection... [13:14:15] Sock 7.Parse request [13:14:15]Sock 7.Check first char [13:14:15]Sock 7.First char is OK [13:14:15]request: POST /json_proto HTTP/1.0 [13:14:15]Method: POST [13:14:15]URL: /json_proto [13:14:15]Method is POST - this is cgi request [13:14:15]url: /json_proto [13:14:15]query_string will be loaded in cgi processing [13:14:15]execute_cgi json_proto POST (null) [13:14:15]execute_cgi path=json_proto method=POST [13:14:15]POST find Content-Length [13:14:15]Host: 172.17.33.3:8080 [13:14:15]Content-Length: 674 [13:14:15]Content-Type: application/json [13:14:15] [13:14:15]POST finish read [13:14:15]Found Content-Length = 674 [13:14:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 6.910, "sum" : 500.28, "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:14:15]execute_script... [13:14: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)347287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 6.910, "sum" : 500.28, "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:14:15]POST & json_proto [13:14:15]process_json_proto [13:14:15]json parsed OK: [13:14:15]protocol is kg_v1.0 [13:14:15]action value=close_receipt [13:14:15]process_action close_receipt [13:14:15]cmd_close_receipt [13:14:15]MH_GetDate [13:14:15]Write to MH i2c: F0 00 00 50 3F 7E [13:14:15]Write i2c OK [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: F0 [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: F0 09 00 [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: F0 09 00 50 3F 00 2C 85 1A 66 23 5B 8F 65 2A [13:14:15]GetLastDocTimeStamp 1713013783 [13:14:15]current date 1713014060 [13:14:15]FM_GetShiftState [13:14:15]SAM_PROTO_GetShiftState [13:14:15]wFMCommunicate request_size=4 [13:14:15]MH_SAM_APDU [13:14:15]CAPDU: 80 13 01 00 [13:14:15]Write to MH i2c: E2 08 00 51 3F 80 13 01 00 00 00 00 00 0D [13:14:15]Write i2c OK [13:14:15]MH_I2C_Read... [13:14:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:15]Read from MH i2c: E2 [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: E2 0E 00 [13:14:15]MH_I2C_Read... [13:14:15]Read from MH i2c: E2 0E 00 51 3F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 26 [13:14:15]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:14:15]wFMCommunicate OK [13:14:15]SAM_PROTO_GetShiftState done [13:14:15]FM_GetShiftState done [13:14:15]opened in 1712967615 [13:14:15]opened+sec_in_day 1713054015 [13:14:15]quantity*price = 50028 [13:14:15]sum+1 = 50029 [13:14:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 138 13.04.2024 13:14 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28931 ФПД: 180521432011315 1/tax-web-control/client/api/v1/ticket?date=20240413T131420&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28931&fm=180521432011315&tin=02508201610067®Number=0000138879044617&sum=50000 [13:14:16]StoreToDocumentArchive [13:14:16]shift 115 fd 28931 [13:14:16]save to /storage/0115/doc_00028931 [13:14:16]save last doc name /storage/0115/doc_00028931 to /storage/kkm_last_doc_name [13:14:16]save OK [13:14:16]Clear old archive folders... [13:14:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:14:16]tlvbuf is 011E32A0 [13:14:16]SAM_PROTO_ClearQueue [13:14:16]wFMCommunicate request_size=4 [13:14:16]MH_SAM_APDU [13:14:16]CAPDU: 80 09 00 00 [13:14:16]Write to MH i2c: E2 08 00 5E 3F 80 09 00 00 00 00 00 00 0F [13:14:16]Write i2c OK [13:14:16]MH_I2C_Read... [13:14:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:16]Read from MH i2c: E2 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: E2 03 00 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: E2 03 00 5E 3F 00 90 00 11 [13:14:16]RAPDU: 90 00 [13:14:16]wFMCommunicate OK [13:14:16]SAM_PROTO_ClearQueue done [13:14:16]KKMCreateOFDPacket [13:14:16]OFDProtocolAddRootSTLVToBuf [13:14:16]FM_MakeSignedData [13:14:16]FM_MakeSignedData [13:14:16]SAM_PROTO_SignData [13:14:16]wFMCommunicate request_size=4 [13:14:16]MH_SAM_APDU [13:14:16]CAPDU: 80 0D 01 02 [13:14:16]Write to MH i2c: E2 08 00 5F 3F 80 0D 01 02 00 00 00 00 17 [13:14:16]Write i2c OK [13:14:16]MH_I2C_Read... [13:14:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:16]Read from MH i2c: E2 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: E2 03 00 [13:14:16]MH_I2C_Read... [13:14:16]Read from MH i2c: E2 03 00 5F 3F 00 90 00 12 [13:14:16]RAPDU: 90 00 [13:14:16]wFMCommunicate OK [13:14:16]wFMCommunicate request_size=255 [13:14:16]MH_SAM_APDU [13:14:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 2C 85 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 03 71 00 00 35 04 06 00 A4 2E EB D4 [13:14:16]Write to MH i2c: E2 02 01 60 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 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 2C 85 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 03 71 00 00 35 04 06 00 A4 2E EB D4 00 00 26 [13:14:16]Write i2c OK [13:14:16]MH_I2C_Read... [13:14:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:17]Read from MH i2c: E2 [13:14:17]MH_I2C_Read... [13:14:17]Read from MH i2c: E2 03 00 [13:14:17]MH_I2C_Read... [13:14:17]Read from MH i2c: E2 03 00 60 3F 00 90 00 13 [13:14:17]RAPDU: 90 00 [13:14:17]wFMCommunicate OK [13:14:17]wFMCommunicate request_size=7 [13:14:17]MH_SAM_APDU [13:14:17]CAPDU: 80 0D 02 02 02 52 33 [13:14:17]Write to MH i2c: E2 0A 00 61 3F 80 0D 02 02 02 00 52 33 00 00 A3 [13:14:17]Write i2c OK [13:14:17]MH_I2C_Read... [13:14:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:17]Read from MH i2c: E2 [13:14:17]MH_I2C_Read... [13:14:17]Read from MH i2c: E2 03 00 [13:14:17]MH_I2C_Read... [13:14:17]Read from MH i2c: E2 03 00 61 3F 00 90 00 14 [13:14:17]RAPDU: 90 00 [13:14:17]wFMCommunicate OK [13:14:17]wFMCommunicate request_size=4 [13:14:17]MH_SAM_APDU [13:14:17]CAPDU: 80 0D 03 02 [13:14:17]Write to MH i2c: E2 08 00 62 3F 80 0D 03 02 00 00 00 00 1C [13:14:17]Write i2c OK [13:14:17]MH_I2C_Read... [13:14:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:17]Read from MH i2c: E2 [13:14:17]MH_I2C_Read... [13:14:17]Read from MH i2c: E2 0B 00 [13:14:17]MH_I2C_Read... [13:14:17]Read from MH i2c: E2 0B 00 62 3F 00 FB 98 C3 2D B9 BC C9 C8 90 00 A6 [13:14:17]RAPDU: FB 98 C3 2D B9 BC C9 C8 90 00 [13:14:17]wFMCommunicate OK [13:14:17]SAM_PROTO_SignData done [13:14:17]FM_MakeSignedData done [13:14:17]CreateOFDProtocolMessage [13:14:17]wFMCommunicate request_size=4 [13:14:17]MH_SAM_APDU [13:14:17]CAPDU: 80 11 00 00 [13:14:17]Write to MH i2c: E2 08 00 63 3F 80 11 00 00 00 00 00 00 1C [13:14:17]Write i2c OK [13:14:17]MH_I2C_Read... [13:14:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:17]Read from MH i2c: E2 [13:14:17]MH_I2C_Read... [13:14:17]Read from MH i2c: E2 17 00 [13:14:17]MH_I2C_Read... [13:14:17]Read from MH i2c: E2 17 00 63 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6B [13:14:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:14:17]wFMCommunicate OK [13:14:17]CreateOFDProtocolMessage done [13:14:17]OFDSenderStorePacket 28931 [13:14:17]StoreOFDPacket docnum=28931 [13:14:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 5B C2 04 01 92 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 2C 85 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 03 71 00 00 35 04 06 00 A4 2E EB D4 52 33 FB 98 C3 2D B9 BC C9 C8 [13:14:17]CheckFolder [13:14:17]dirname=/storage/ofd_packets [13:14:17]CheckFolder done [13:14:17]ProducePacketName [13:14:17]name=ofd_packets/00028931 [13:14:17]NVStorageSaveData ofd_packets/00028931 [13:14:17]File name is /storage/ofd_packets/00028931 [13:14:17]Write 298 bytes [13:14:17]NVStorageSaveData done [13:14:17]OFDSenderStorePacket done [13:14:17]KKMCreateOFDPacket done [13:14:17]NVStorageSaveData kkm_last_timestamp [13:14:17]File name is /storage/kkm_last_timestamp [13:14:17]Write 4 bytes [13:14:17]NVStorageSaveData done [13:14:17]ExternCall_PrintAddStr [13:14:17]wPrintStart [13:14:17]Write to MH i2c: 01 00 00 64 3F A3 [13:14:17]OFD Sender: Processing packet 28931 [packets to send 8, broken 7] [13:14:17]ProducePacketName [13:14:17]name=ofd_packets/00028931 [13:14:17]OFD Sender: To server: pG, [13:14:17]CommunicateWithHost lk.salyk.kg:30040 [13:14:17]ConnectInit lk.salyk.kg [13:14:17]Write i2c OK [13:14:17]MH_I2C_Read... [13:14:17]Read from MH i2c: 01 [13:14:17]MH_I2C_Read... [13:14:17]Read from MH i2c: 01 07 00 [13:14:17]MH_I2C_Read... [13:14:17]Read from MH i2c: 01 07 00 64 3F 00 00 00 00 00 FF 0F B8 [13:14:17]RasterBufferAndPrint [13:14:17]line Счет N : (1)347287 [13:14:17]line ИНН: 02508201610067 [13:14:17]line Контрольно-Кассовый Чек [13:14:17]line ПРОДАЖА [13:14:17]line ТРК (МРК, ГНК) : 11 [13:14:17]line Товар: 2710194210 [13:14:17]line ДТ-К-5 [13:14:17]line 6.910 * 72.40 [13:14:17]line = 500.28 [13:14:17]line НДС 12% НСП 1% [13:14:17]line > о реализуемом товаре [13:14:17]line ОКРУГЛЕНИЕ: -0.28 [13:14:17]line ИТОГО: 500.00 [13:14:17]line Внесено: 500.00 [13:14:17]line СДАЧА: 0.00 [13:14:17]line НСП 1% : 4.43 [13:14:17]line НДС 12% : 53.13 [13:14:17]line Наличными: 500.00 [13:14:17]line Безнал.: 0.00 [13:14:17]line Место: АЗС № 108 "Партнер Нефть" [13:14:17]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:14:17]line СНО: Общий режим [13:14:17]line Чек 138 13.04.2024 13:14 [13:14:17]line Смена: 115 ФФД: 1.0 [13:14:17]line ЗНМ: 0300000027 [13:14:17]line РНМ: 0000138879044617 [13:14:17]line Версия ККМ: 001 [13:14:17]line ФМ: 0000000000963154 [13:14:17]line ФД: 28931 [13:14:17]line ФПД: 180521432011315 [13:14:17]line 1/tax-web-control/client/api/v1/ticket?date=20240413T131420&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28931&fm=180521432011315&tin=02508201610067®Number=0000138879044617&sum=50000 [13:14:17]Connected sock=10 [13:14: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 31 35 34 0C 01 00 00 5B C2 04 01 92 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 2C 85 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 03 71 00 00 35 04 06 00 A4 2E EB D4 52 33 FB 98 C3 2D B9 BC C9 C8 [13:14:17]written 0, free lines is 4095 [13:14:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 94 08 47 00 19 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 31 35 34 10 04 04 00 03 71 00 00 F4 03 04 00 D3 2F 1A 66 B6 04 01 00 00 CA 66 97 23 2A 1D C6 C3 [13:14:17]CommunicateWithHost err = 0 [13:14:17]CheckOFDResponse [13:14:17]1017 (14) - 77093643461234 [13:14:17]1041 (16) - 0000000000963154 [13:14:17]1040 (4) - 28931 [13:14:17]1012 (4) - 13.04.2024 07:10 [13:14:17]1206 (1) - 0 [13:14:17]OFD Sender: Remove packet 28931 [13:14:17]ProducePacketName [13:14:17]name=ofd_packets/00028931 [13:14:17]NVStorageDeleteData [13:14:18]Write to MH i2c: 01 00 00 8E 3F CD [13:14:18]Write i2c OK [13:14:18]MH_I2C_Read... [13:14:18]Read from MH i2c: 01 [13:14:18]MH_I2C_Read... [13:14:18]Read from MH i2c: 01 07 00 [13:14:18]MH_I2C_Read... [13:14:18]Read from MH i2c: 01 07 00 8E 3F 00 00 00 00 00 B9 0C 99 [13:14:18]RasterBufferAndPrint [13:14:18]line [13:14:18]line [13:14:18]line [13:14:18]line [13:14:18]line [13:14:18]written 0, free lines is 3261 [13:14:18]MH_Cut [13:14:18]Write to MH i2c: D1 01 00 95 3F 01 A6 [13:14:18]Write i2c OK [13:14:18]MH_I2C_Read... [13:14:18]Read from MH i2c: D1 [13:14:18]MH_I2C_Read... [13:14:18]Read from MH i2c: D1 01 00 [13:14:18]MH_I2C_Read... [13:14:18]Read from MH i2c: D1 01 00 95 3F 00 A5 [13:14:18]Write to MH i2c: 01 00 00 96 3F D5 [13:14:18]Write i2c OK [13:14:18]MH_I2C_Read... [13:14:18]OFD Sender: No OFD packet to send [13:14:18]*** Cut start [13:14:18]*** Partial cut [13:14:18]*** CUTSNS_PIN = 1 [13:14:18]*** CUTSNS_PIN = 0 [13:14:19]*** Brake cut motor [13:14:19]Read from MH i2c: 01 [13:14:19]MH_I2C_Read... [13:14:19]*** Stop cut motor [13:14:19]*** Cut end [13:14:19]Read from MH i2c: 01 07 00 [13:14:19]MH_I2C_Read... [13:14:19]Read from MH i2c: 01 07 00 96 3F 00 00 00 00 00 FF 0F EA [13:14:19]process_action close_receipt done [13:14:19]requested_data is exist [13:14:19]produce_requested_data [13:14:19]requested_item fm.sn is exist - process it [13:14:19]wFMCommunicate request_size=4 [13:14:19]MH_SAM_APDU [13:14:19]CAPDU: 80 11 00 00 [13:14:19]Write to MH i2c: E2 08 00 97 3F 80 11 00 00 00 00 00 00 50 [13:14:19]Write i2c OK [13:14:19]MH_I2C_Read... [13:14:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:19]Read from MH i2c: E2 [13:14:19]MH_I2C_Read... [13:14:19]Read from MH i2c: E2 17 00 [13:14:19]MH_I2C_Read... [13:14:19]Read from MH i2c: E2 17 00 97 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9F [13:14:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:14:19]wFMCommunicate OK [13:14:19]requested_item fd.num is exist - process it [13:14:19]SAM_PROTO_GetFieldsCounters [13:14:19]wFMCommunicate request_size=4 [13:14:19]MH_SAM_APDU [13:14:19]CAPDU: 80 13 00 00 [13:14:19]Write to MH i2c: E2 08 00 98 3F 80 13 00 00 00 00 00 00 53 [13:14:19]Write i2c OK [13:14:19]MH_I2C_Read... [13:14:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:19]Read from MH i2c: E2 [13:14:19]MH_I2C_Read... [13:14:19]Read from MH i2c: E2 62 00 [13:14:19]MH_I2C_Read... [13:14:19]Read from MH i2c: E2 62 00 98 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 03 71 00 00 0E 04 04 00 73 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 16 [13:14: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 03 71 00 00 0E 04 04 00 73 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 [13:14:19]wFMCommunicate OK [13:14:19]SAM_PROTO_GetFieldsCounters done [13:14:19]requested_item shift.num is exist - process it [13:14:19]requested_item shift.opened is exist - process it [13:14:19]req_shift_opened [13:14:19]FM_GetShiftState [13:14:19]SAM_PROTO_GetShiftState [13:14:19]wFMCommunicate request_size=4 [13:14:19]MH_SAM_APDU [13:14:19]CAPDU: 80 13 01 00 [13:14:19]Write to MH i2c: E2 08 00 99 3F 80 13 01 00 00 00 00 00 55 [13:14:19]Write i2c OK [13:14:19]MH_I2C_Read... [13:14:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:19]Read from MH i2c: E2 [13:14:19]MH_I2C_Read... [13:14:19]Read from MH i2c: E2 0E 00 [13:14:19]MH_I2C_Read... [13:14:19]Read from MH i2c: E2 0E 00 99 3F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 6E [13:14:19]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:14:19]wFMCommunicate OK [13:14:19]SAM_PROTO_GetShiftState done [13:14:19]FM_GetShiftState done [13:14:19]req_shift_opened done [13:14:19]requested_item shift.open_date is exist - process it [13:14:19]req_shift_open_date [13:14:19]req_shift_open_date done [13:14:19]produce_requested_data done [13:14:19]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28931,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [13:14:19]process_action_free close_receipt [13:14:19]json_value_free [13:14:19]json_value_free done [13:14:19]process_json_proto returns [13:14:19]Send response to host [13:14:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28931,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [13:14:19]free response buf [13:14:19]execute_script done [13:14:19]execute_script returns [13:14:19]free content buf [13:14:19]Sock 7.Close socket [13:14:19]Sock 7.Thread stoped [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:33]OFD Sender: No OFD packet to send [13:15:33]accept exits with 9 [13:15:33]New connection [13:15:33]New thread 3066785124 created [13:15:33]Thread 3066928484 joined [13:15:33]Waiting for new connection... [13:15:33] Sock 9.Parse request [13:15:33]Sock 9.Check first char [13:15:33]Sock 9.First char is OK [13:15:33]request: POST /json_proto HTTP/1.0 [13:15:33]Method: POST [13:15:33]URL: /json_proto [13:15:33]Method is POST - this is cgi request [13:15:33]url: /json_proto [13:15:33]query_string will be loaded in cgi processing [13:15:33]execute_cgi json_proto POST (null) [13:15:33]execute_cgi path=json_proto method=POST [13:15:33]POST find Content-Length [13:15:33]Host: 172.17.33.3:8080 [13:15:33]Content-Length: 836 [13:15:33]Content-Type: application/json [13:15:33] [13:15:33]POST finish read [13:15:33]Found Content-Length = 836 [13:15:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:33]execute_script... [13:15: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)347288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:33]POST & json_proto [13:15:33]process_json_proto [13:15:33]json parsed OK: [13:15:33]protocol is kg_v1.0 [13:15:33]action value=close_receipt [13:15:33]process_action close_receipt [13:15:33]cmd_close_receipt [13:15:33]MH_GetDate [13:15:33]Write to MH i2c: F0 00 00 9A 3F C8 [13:15:33]Write i2c OK [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: F0 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: F0 09 00 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: F0 09 00 9A 3F 00 7A 85 1A 66 23 5B 8F 65 C2 [13:15:33]GetLastDocTimeStamp 1713014060 [13:15:33]current date 1713014138 [13:15:33]FM_GetShiftState [13:15:33]SAM_PROTO_GetShiftState [13:15:33]wFMCommunicate request_size=4 [13:15:33]MH_SAM_APDU [13:15:33]CAPDU: 80 13 01 00 [13:15:33]Write to MH i2c: E2 08 00 9B 3F 80 13 01 00 00 00 00 00 57 [13:15:33]Write i2c OK [13:15:33]MH_I2C_Read... [13:15:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:33]Read from MH i2c: E2 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: E2 0E 00 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: E2 0E 00 9B 3F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 70 [13:15:33]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:15:33]wFMCommunicate OK [13:15:33]SAM_PROTO_GetShiftState done [13:15:33]FM_GetShiftState done [13:15:33]opened in 1712967615 [13:15:33]opened+sec_in_day 1713054015 [13:15:33]quantity*price = 100039 [13:15:33]sum+1 = 100041 [13:15:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.40 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.40 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 139 13.04.2024 13:15 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28932 ФПД: 223455770622903 1/tax-web-control/client/api/v1/ticket?date=20240413T131538&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28932&fm=223455770622903&tin=02508201610067®Number=0000138879044617&sum=100040 [13:15:34]StoreToDocumentArchive [13:15:34]shift 115 fd 28932 [13:15:34]save to /storage/0115/doc_00028932 [13:15:34]save last doc name /storage/0115/doc_00028932 to /storage/kkm_last_doc_name [13:15:34]save OK [13:15:34]Clear old archive folders... [13:15:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:15:34]tlvbuf is 011F0180 [13:15:34]SAM_PROTO_ClearQueue [13:15:34]wFMCommunicate request_size=4 [13:15:34]MH_SAM_APDU [13:15:34]CAPDU: 80 09 00 00 [13:15:34]Write to MH i2c: E2 08 00 A8 3F 80 09 00 00 00 00 00 00 59 [13:15:34]Write i2c OK [13:15:34]MH_I2C_Read... [13:15:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:34]Read from MH i2c: E2 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 03 00 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 03 00 A8 3F 00 90 00 5B [13:15:34]RAPDU: 90 00 [13:15:34]wFMCommunicate OK [13:15:34]SAM_PROTO_ClearQueue done [13:15:34]KKMCreateOFDPacket [13:15:34]OFDProtocolAddRootSTLVToBuf [13:15:34]FM_MakeSignedData [13:15:34]FM_MakeSignedData [13:15:34]SAM_PROTO_SignData [13:15:34]wFMCommunicate request_size=4 [13:15:34]MH_SAM_APDU [13:15:34]CAPDU: 80 0D 01 02 [13:15:34]Write to MH i2c: E2 08 00 A9 3F 80 0D 01 02 00 00 00 00 61 [13:15:34]Write i2c OK [13:15:34]MH_I2C_Read... [13:15:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:34]Read from MH i2c: E2 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 03 00 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 03 00 A9 3F 00 90 00 5C [13:15:34]RAPDU: 90 00 [13:15:34]wFMCommunicate OK [13:15:34]wFMCommunicate request_size=255 [13:15:34]MH_SAM_APDU [13:15:34]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 7A 85 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 04 71 00 00 35 04 06 00 [13:15:34]Write to MH i2c: E2 02 01 AA 3F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 7A 85 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 04 71 00 00 35 04 06 00 00 00 E0 [13:15:34]Write i2c OK [13:15:34]MH_I2C_Read... [13:15:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:35]Read from MH i2c: E2 [13:15:35]MH_I2C_Read... [13:15:35]Read from MH i2c: E2 03 00 [13:15:35]MH_I2C_Read... [13:15:35]Read from MH i2c: E2 03 00 AA 3F 00 90 00 5D [13:15:35]RAPDU: 90 00 [13:15:35]wFMCommunicate OK [13:15:35]wFMCommunicate request_size=11 [13:15:35]MH_SAM_APDU [13:15:35]CAPDU: 80 0D 02 02 06 CB 3B 59 D4 BB B7 [13:15:35]Write to MH i2c: E2 0E 00 AB 3F 80 0D 02 02 06 00 CB 3B 59 D4 BB B7 00 00 15 [13:15:35]Write i2c OK [13:15:35]MH_I2C_Read... [13:15:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:35]Read from MH i2c: E2 [13:15:35]MH_I2C_Read... [13:15:35]Read from MH i2c: E2 03 00 [13:15:35]MH_I2C_Read... [13:15:35]Read from MH i2c: E2 03 00 AB 3F 00 90 00 5E [13:15:35]RAPDU: 90 00 [13:15:35]wFMCommunicate OK [13:15:35]wFMCommunicate request_size=4 [13:15:35]MH_SAM_APDU [13:15:35]CAPDU: 80 0D 03 02 [13:15:35]Write to MH i2c: E2 08 00 AC 3F 80 0D 03 02 00 00 00 00 66 [13:15:35]Write i2c OK [13:15:35]MH_I2C_Read... [13:15:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:35]Read from MH i2c: E2 [13:15:35]MH_I2C_Read... [13:15:35]Read from MH i2c: E2 0B 00 [13:15:35]MH_I2C_Read... [13:15:35]Read from MH i2c: E2 0B 00 AC 3F 00 AE 0C 54 DE 02 2F 07 E9 90 00 74 [13:15:35]RAPDU: AE 0C 54 DE 02 2F 07 E9 90 00 [13:15:35]wFMCommunicate OK [13:15:35]SAM_PROTO_SignData done [13:15:35]FM_MakeSignedData done [13:15:35]CreateOFDProtocolMessage [13:15:35]wFMCommunicate request_size=4 [13:15:35]MH_SAM_APDU [13:15:35]CAPDU: 80 11 00 00 [13:15:35]Write to MH i2c: E2 08 00 AD 3F 80 11 00 00 00 00 00 00 66 [13:15:35]Write i2c OK [13:15:35]MH_I2C_Read... [13:15:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:35]Read from MH i2c: E2 [13:15:35]MH_I2C_Read... [13:15:35]Read from MH i2c: E2 17 00 [13:15:35]MH_I2C_Read... [13:15:35]Read from MH i2c: E2 17 00 AD 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B5 [13:15:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:15:35]wFMCommunicate OK [13:15:35]CreateOFDProtocolMessage done [13:15:35]OFDSenderStorePacket 28932 [13:15:35]StoreOFDPacket docnum=28932 [13:15:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 A5 B5 08 01 0B 11 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 7A 85 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 04 71 00 00 35 04 06 00 CB 3B 59 D4 BB B7 AE 0C 54 DE 02 2F 07 E9 [13:15:35]CheckFolder [13:15:35]dirname=/storage/ofd_packets [13:15:35]CheckFolder done [13:15:35]ProducePacketName [13:15:35]name=ofd_packets/00028932 [13:15:35]NVStorageSaveData ofd_packets/00028932 [13:15:35]File name is /storage/ofd_packets/00028932 [13:15:35]Write 302 bytes [13:15:35]NVStorageSaveData done [13:15:35]OFDSenderStorePacket done [13:15:35]KKMCreateOFDPacket done [13:15:35]NVStorageSaveData kkm_last_timestamp [13:15:35]File name is /storage/kkm_last_timestamp [13:15:35]Write 4 bytes [13:15:35]NVStorageSaveData done [13:15:35]ExternCall_PrintAddStr [13:15:35]wPrintStart [13:15:35]Write to MH i2c: 01 00 00 AE 3F ED [13:15:35]Write i2c OK [13:15:35]MH_I2C_Read... [13:15:35]Read from MH i2c: 01 [13:15:35]MH_I2C_Read... [13:15:35]Read from MH i2c: 01 07 00 [13:15:35]MH_I2C_Read... [13:15:35]Read from MH i2c: 01 07 00 AE 3F 00 00 00 00 00 FF 0F 02 [13:15:35]RasterBufferAndPrint [13:15:35]line Счет N : (1)347288 [13:15:35]line ИНН: 02508201610067 [13:15:35]line Контрольно-Кассовый Чек [13:15:35]line ПРОДАЖА [13:15:35]line ТРК (МРК, ГНК) : 31 [13:15:35]line Товар: 2710124130 [13:15:35]line SUPER-92-К-5 [13:15:35]line 15.320 * 65.30 [13:15:35]line = 1000.40 [13:15:35]line НДС 12% НСП 1% [13:15:35]line > о реализуемом товаре [13:15:35]line ИТОГО: 1000.40 [13:15:35]line НСП 1% : 8.85 [13:15:35]line НДС 12% : 106.24 [13:15:35]line Наличными: 0.00 [13:15:35]line Безнал.: 1000.40 [13:15:35]line Место: АЗС № 108 "Партнер Нефть" [13:15:35]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:15:35]line СНО: Общий режим [13:15:35]line Чек 139 13.04.2024 13:15 [13:15:35]line Смена: 115 ФФД: 1.0 [13:15:35]line ЗНМ: 0300000027 [13:15:35]line РНМ: 0000138879044617 [13:15:35]line Версия ККМ: 001 [13:15:35]line Платежная система: АКБ Кыргызстан [13:15:35]line ФМ: 0000000000963154 [13:15:35]line ФД: 28932 [13:15:35]line ФПД: 223455770622903 [13:15:35]line 1/tax-web-control/client/api/v1/ticket?date=20240413T131538&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28932&fm=223455770622903&tin=02508201610067®Number=0000138879044617&sum=100040 [13:15:35]OFD Sender: Processing packet 28932 [packets to send 8, broken 7] [13:15:35]ProducePacketName [13:15:35]name=ofd_packets/00028932 [13:15:35]OFD Sender: To server: pG, [13:15:35]CommunicateWithHost lk.salyk.kg:30040 [13:15:35]ConnectInit lk.salyk.kg [13:15:35]written 0, free lines is 4095 [13:15:35]Connected sock=10 [13:15: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 31 35 34 10 01 00 00 A5 B5 08 01 0B 11 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 7A 85 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 04 71 00 00 35 04 06 00 CB 3B 59 D4 BB B7 AE 0C 54 DE 02 2F 07 E9 [13:15:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A6 18 47 00 87 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 31 35 34 10 04 04 00 04 71 00 00 F4 03 04 00 21 30 1A 66 B6 04 01 00 00 21 90 80 EB CD 71 5C FE [13:15:35]CommunicateWithHost err = 0 [13:15:35]CheckOFDResponse [13:15:35]1017 (14) - 77093643461234 [13:15:35]1041 (16) - 0000000000963154 [13:15:35]1040 (4) - 28932 [13:15:35]1012 (4) - 13.04.2024 07:11 [13:15:35]1206 (1) - 0 [13:15:35]OFD Sender: Remove packet 28932 [13:15:35]ProducePacketName [13:15:35]name=ofd_packets/00028932 [13:15:35]NVStorageDeleteData [13:15:35]Write to MH i2c: 01 00 00 D7 3F 16 [13:15:35]Write i2c OK [13:15:35]MH_I2C_Read... [13:15:35]Read from MH i2c: 01 [13:15:35]MH_I2C_Read... [13:15:35]Read from MH i2c: 01 07 00 [13:15:35]MH_I2C_Read... [13:15:35]Read from MH i2c: 01 07 00 D7 3F 00 00 00 00 00 EC 0C 15 [13:15:35]RasterBufferAndPrint [13:15:35]line [13:15:35]line [13:15:35]line [13:15:35]line [13:15:35]line [13:15:35]written 0, free lines is 3313 [13:15:36]MH_Cut [13:15:36]Write to MH i2c: D1 01 00 DE 3F 01 EF [13:15:36]Write i2c OK [13:15:36]MH_I2C_Read... [13:15:36]Read from MH i2c: D1 [13:15:36]MH_I2C_Read... [13:15:36]Read from MH i2c: D1 01 00 [13:15:36]MH_I2C_Read... [13:15:36]Read from MH i2c: D1 01 00 DE 3F 00 EE [13:15:36]Write to MH i2c: 01 00 00 DF 3F 1E [13:15:36]Write i2c OK [13:15:36]MH_I2C_Read... [13:15:36]OFD Sender: No OFD packet to send [13:15:36]*** Cut start [13:15:36]*** Partial cut [13:15:36]*** CUTSNS_PIN = 1 [13:15:36]*** CUTSNS_PIN = 0 [13:15:37]*** Brake cut motor [13:15:37]Read from MH i2c: 01 [13:15:37]MH_I2C_Read... [13:15:37]*** Stop cut motor [13:15:37]*** Cut end [13:15:37]Read from MH i2c: 01 07 00 [13:15:37]MH_I2C_Read... [13:15:37]Read from MH i2c: 01 07 00 DF 3F 00 00 00 00 00 FF 0F 33 [13:15:37]process_action close_receipt done [13:15:37]requested_data is exist [13:15:37]produce_requested_data [13:15:37]requested_item fm.sn is exist - process it [13:15:37]wFMCommunicate request_size=4 [13:15:37]MH_SAM_APDU [13:15:37]CAPDU: 80 11 00 00 [13:15:37]Write to MH i2c: E2 08 00 E0 3F 80 11 00 00 00 00 00 00 99 [13:15:37]Write i2c OK [13:15:37]MH_I2C_Read... [13:15:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:37]Read from MH i2c: E2 [13:15:37]MH_I2C_Read... [13:15:37]Read from MH i2c: E2 17 00 [13:15:37]MH_I2C_Read... [13:15:37]Read from MH i2c: E2 17 00 E0 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E8 [13:15:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:15:37]wFMCommunicate OK [13:15:37]requested_item fd.num is exist - process it [13:15:37]SAM_PROTO_GetFieldsCounters [13:15:37]wFMCommunicate request_size=4 [13:15:37]MH_SAM_APDU [13:15:37]CAPDU: 80 13 00 00 [13:15:37]Write to MH i2c: E2 08 00 E1 3F 80 13 00 00 00 00 00 00 9C [13:15:37]Write i2c OK [13:15:37]MH_I2C_Read... [13:15:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:37]Read from MH i2c: E2 [13:15:37]MH_I2C_Read... [13:15:37]Read from MH i2c: E2 62 00 [13:15:37]MH_I2C_Read... [13:15:37]Read from MH i2c: E2 62 00 E1 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 04 71 00 00 0E 04 04 00 73 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 63 [13:15: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 04 71 00 00 0E 04 04 00 73 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:15:37]wFMCommunicate OK [13:15:37]SAM_PROTO_GetFieldsCounters done [13:15:37]requested_item shift.num is exist - process it [13:15:37]requested_item shift.opened is exist - process it [13:15:37]req_shift_opened [13:15:37]FM_GetShiftState [13:15:37]SAM_PROTO_GetShiftState [13:15:37]wFMCommunicate request_size=4 [13:15:37]MH_SAM_APDU [13:15:37]CAPDU: 80 13 01 00 [13:15:37]Write to MH i2c: E2 08 00 E2 3F 80 13 01 00 00 00 00 00 9E [13:15:37]Write i2c OK [13:15:37]MH_I2C_Read... [13:15:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:37]Read from MH i2c: E2 [13:15:37]MH_I2C_Read... [13:15:37]Read from MH i2c: E2 0E 00 [13:15:37]MH_I2C_Read... [13:15:37]Read from MH i2c: E2 0E 00 E2 3F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 B7 [13:15:37]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:15:37]wFMCommunicate OK [13:15:37]SAM_PROTO_GetShiftState done [13:15:37]FM_GetShiftState done [13:15:37]req_shift_opened done [13:15:37]requested_item shift.open_date is exist - process it [13:15:37]req_shift_open_date [13:15:37]req_shift_open_date done [13:15:37]produce_requested_data done [13:15:37]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28932,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [13:15:37]process_action_free close_receipt [13:15:37]json_value_free [13:15:37]json_value_free done [13:15:37]process_json_proto returns [13:15:37]Send response to host [13:15:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28932,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [13:15:37]free response buf [13:15:37]execute_script done [13:15:37]execute_script returns [13:15:37]free content buf [13:15:37]Sock 9.Close socket [13:15:37]Sock 9.Thread stoped [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:10]int [13:16:10]Write to MH i2c: 01 00 00 E3 3F 22 [13:16:10]*** FLAG_PRN_PAP1 set [13:16:10]Write i2c OK [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: 01 [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: 01 07 00 [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: 01 07 00 E3 3F 00 01 00 00 00 FF 0F 38 [13:16:10]state=0 [13:16:10]No paper [13:16:10]int [13:16:10]Write to MH i2c: 01 00 00 E4 3F 23 [13:16:10]*** FLAG_PRN_PAP2 set [13:16:10]Write i2c OK [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: 01 [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: 01 07 00 [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: 01 07 00 E4 3F 00 03 00 00 00 FF 0F 3B [13:16:10]state=0 [13:16:10]No paper [13:16:10]Cover opened [13:16:11]OFD Sender: No OFD packet to send [13:16:15]Write to MH i2c: 01 00 00 E5 3F 24 [13:16:15]Write i2c OK [13:16:15]MH_I2C_Read... [13:16:15]Read from MH i2c: 01 [13:16:15]MH_I2C_Read... [13:16:15]Read from MH i2c: 01 07 00 [13:16:15]MH_I2C_Read... [13:16:15]Read from MH i2c: 01 07 00 E5 3F 00 03 00 00 00 FF 0F 3C [13:16:15]state=3 [13:16:15]No paper [13:16:15]Cover opened [13:16:16]int [13:16:16]Write to MH i2c: 01 00 00 E6 3F 25 [13:16:16]*** FLAG_PRN_PAP2 reset [13:16:16]Write i2c OK [13:16:16]MH_I2C_Read... [13:16:16]Read from MH i2c: 01 [13:16:16]MH_I2C_Read... [13:16:16]Read from MH i2c: 01 07 00 [13:16:16]MH_I2C_Read... [13:16:16]Read from MH i2c: 01 07 00 E6 3F 00 01 00 00 00 FF 0F 3B [13:16:16]state=3 [13:16:16]No paper [13:16:16]Cover closed [13:16:16]int [13:16:16]Write to MH i2c: 01 00 00 E7 3F 26 [13:16:16]*** FLAG_PRN_PAP2 set [13:16:16]Write i2c OK [13:16:16]MH_I2C_Read... [13:16:16]Read from MH i2c: 01 [13:16:16]MH_I2C_Read... [13:16:16]Read from MH i2c: 01 07 00 [13:16:16]MH_I2C_Read... [13:16:16]Read from MH i2c: 01 07 00 E7 3F 00 03 00 00 00 FF 0F 3E [13:16:16]state=0 [13:16:16]No paper [13:16:16]Cover opened [13:16:16]OFD Sender: No OFD packet to send [13:16:21]Write to MH i2c: 01 00 00 E8 3F 27 [13:16:21]Write i2c OK [13:16:21]MH_I2C_Read... [13:16:21]Read from MH i2c: 01 [13:16:21]MH_I2C_Read... [13:16:21]Read from MH i2c: 01 07 00 [13:16:21]MH_I2C_Read... [13:16:21]Read from MH i2c: 01 07 00 E8 3F 00 03 00 00 00 FF 0F 3F [13:16:21]state=3 [13:16:21]No paper [13:16:21]Cover opened [13:16:21]OFD Sender: No OFD packet to send [13:16:26]Write to MH i2c: 01 00 00 E9 3F 28 [13:16:26]Write i2c OK [13:16:26]MH_I2C_Read... [13:16:26]Read from MH i2c: 01 [13:16:26]MH_I2C_Read... [13:16:26]Read from MH i2c: 01 07 00 [13:16:26]MH_I2C_Read... [13:16:26]Read from MH i2c: 01 07 00 E9 3F 00 03 00 00 00 FF 0F 40 [13:16:26]state=3 [13:16:26]No paper [13:16:26]Cover opened [13:16:26]OFD Sender: No OFD packet to send [13:16:31]Write to MH i2c: 01 00 00 EA 3F 29 [13:16:31]Write i2c OK [13:16:31]MH_I2C_Read... [13:16:31]Read from MH i2c: 01 [13:16:31]MH_I2C_Read... [13:16:31]Read from MH i2c: 01 07 00 [13:16:31]MH_I2C_Read... [13:16:31]Read from MH i2c: 01 07 00 EA 3F 00 03 00 00 00 FF 0F 41 [13:16:31]state=3 [13:16:31]No paper [13:16:31]Cover opened [13:16:31]int [13:16:31]Write to MH i2c: 01 00 00 EB 3F 2A [13:16:31]*** FLAG_PRN_PAP2 reset [13:16:31]Write i2c OK [13:16:31]MH_I2C_Read... [13:16:31]Read from MH i2c: 01 [13:16:31]MH_I2C_Read... [13:16:31]Read from MH i2c: 01 07 00 [13:16:31]MH_I2C_Read... [13:16:31]Read from MH i2c: 01 07 00 EB 3F 00 01 00 00 00 FF 0F 40 [13:16:31]state=3 [13:16:31]No paper [13:16:31]Cover closed [13:16:31]int [13:16:31]Write to MH i2c: 01 00 00 EC 3F 2B [13:16:31]*** FLAG_PRN_PAP1 reset [13:16:31]Write i2c OK [13:16:31]MH_I2C_Read... [13:16:31]Read from MH i2c: 01 [13:16:31]MH_I2C_Read... [13:16:31]Read from MH i2c: 01 07 00 [13:16:31]MH_I2C_Read... [13:16:31]Read from MH i2c: 01 07 00 EC 3F 00 00 00 00 00 FF 0F 40 [13:16:31]state=0 [13:16:31]OFD Sender: No OFD packet to send [13:16:36]OFD Sender: No OFD packet to send [13:16:41]OFD Sender: No OFD packet to send [13:16:46]OFD Sender: No OFD packet to send [13:16:51]OFD Sender: No OFD packet to send [13:16:51]accept exits with 7 [13:16:51]New connection [13:16:51]New thread 3066928484 created [13:16:51]Thread 3066785124 joined [13:16:51]Waiting for new connection... [13:16:51] Sock 7.Parse request [13:16:51]Sock 7.Check first char [13:16:51]Sock 7.First char is OK [13:16:51]request: POST /json_proto HTTP/1.0 [13:16:51]Method: POST [13:16:51]URL: /json_proto [13:16:51]Method is POST - this is cgi request [13:16:51]url: /json_proto [13:16:51]query_string will be loaded in cgi processing [13:16:51]execute_cgi json_proto POST (null) [13:16:51]execute_cgi path=json_proto method=POST [13:16:51]POST find Content-Length [13:16:51]Host: 172.17.33.3:8080 [13:16:51]Content-Length: 677 [13:16:51]Content-Type: application/json [13:16:51] [13:16:51]POST finish read [13:16:51]Found Content-Length = 677 [13:16:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.120, "sum" : 200.62, "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:16:51]execute_script... [13:16: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)347289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.120, "sum" : 200.62, "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:16:51]POST & json_proto [13:16:51]process_json_proto [13:16:51]json parsed OK: [13:16:51]protocol is kg_v1.0 [13:16:51]action value=close_receipt [13:16:51]process_action close_receipt [13:16:51]cmd_close_receipt [13:16:51]MH_GetDate [13:16:51]Write to MH i2c: F0 00 00 ED 3F 1B [13:16:51]Write i2c OK [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: F0 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: F0 09 00 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: F0 09 00 ED 3F 00 C8 85 1A 66 23 5B 8F 65 63 [13:16:51]GetLastDocTimeStamp 1713014138 [13:16:51]current date 1713014216 [13:16:51]FM_GetShiftState [13:16:51]SAM_PROTO_GetShiftState [13:16:51]wFMCommunicate request_size=4 [13:16:51]MH_SAM_APDU [13:16:51]CAPDU: 80 13 01 00 [13:16:51]Write to MH i2c: E2 08 00 EE 3F 80 13 01 00 00 00 00 00 AA [13:16:51]Write i2c OK [13:16:51]MH_I2C_Read... [13:16:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:51]Read from MH i2c: E2 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 0E 00 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 0E 00 EE 3F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 C3 [13:16:51]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:16:51]wFMCommunicate OK [13:16:51]SAM_PROTO_GetShiftState done [13:16:51]FM_GetShiftState done [13:16:51]opened in 1712967615 [13:16:51]opened+sec_in_day 1713054015 [13:16:51]quantity*price = 20061 [13:16:51]sum+1 = 20063 [13:16:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 140 13.04.2024 13:16 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28933 ФПД: 73434506739347 1/tax-web-control/client/api/v1/ticket?date=20240413T131656&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28933&fm=73434506739347&tin=02508201610067®Number=0000138879044617&sum=20000 [13:16:52]StoreToDocumentArchive [13:16:52]shift 115 fd 28933 [13:16:52]save to /storage/0115/doc_00028933 [13:16:52]save last doc name /storage/0115/doc_00028933 to /storage/kkm_last_doc_name [13:16:52]save OK [13:16:52]Clear old archive folders... [13:16:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:16:52]tlvbuf is 0121C210 [13:16:52]SAM_PROTO_ClearQueue [13:16:52]wFMCommunicate request_size=4 [13:16:52]MH_SAM_APDU [13:16:52]CAPDU: 80 09 00 00 [13:16:52]Write to MH i2c: E2 08 00 FB 3F 80 09 00 00 00 00 00 00 AC [13:16:52]Write i2c OK [13:16:52]MH_I2C_Read... [13:16:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:52]Read from MH i2c: E2 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 03 00 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 03 00 FB 3F 00 90 00 AE [13:16:52]RAPDU: 90 00 [13:16:52]wFMCommunicate OK [13:16:52]SAM_PROTO_ClearQueue done [13:16:52]KKMCreateOFDPacket [13:16:52]OFDProtocolAddRootSTLVToBuf [13:16:52]FM_MakeSignedData [13:16:52]FM_MakeSignedData [13:16:52]SAM_PROTO_SignData [13:16:52]wFMCommunicate request_size=4 [13:16:52]MH_SAM_APDU [13:16:52]CAPDU: 80 0D 01 02 [13:16:52]Write to MH i2c: E2 08 00 FC 3F 80 0D 01 02 00 00 00 00 B4 [13:16:52]Write i2c OK [13:16:52]MH_I2C_Read... [13:16:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:52]Read from MH i2c: E2 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 03 00 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 03 00 FC 3F 00 90 00 AF [13:16:52]RAPDU: 90 00 [13:16:52]wFMCommunicate OK [13:16:52]wFMCommunicate request_size=255 [13:16:52]MH_SAM_APDU [13:16:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 8C 00 00 00 F4 03 04 00 C8 85 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 05 71 00 00 35 04 06 00 42 [13:16:52]Write to MH i2c: E2 02 01 FD 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 8C 00 00 00 F4 03 04 00 C8 85 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 05 71 00 00 35 04 06 00 42 00 00 65 [13:16:52]Write i2c OK [13:16:52]MH_I2C_Read... [13:16:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:53]Read from MH i2c: E2 [13:16:53]MH_I2C_Read... [13:16:53]Read from MH i2c: E2 03 00 [13:16:53]MH_I2C_Read... [13:16:53]Read from MH i2c: E2 03 00 FD 3F 00 90 00 B0 [13:16:53]RAPDU: 90 00 [13:16:53]wFMCommunicate OK [13:16:53]wFMCommunicate request_size=10 [13:16:53]MH_SAM_APDU [13:16:53]CAPDU: 80 0D 02 02 05 C9 CD B0 3E 93 [13:16:53]Write to MH i2c: E2 0D 00 FE 3F 80 0D 02 02 05 00 C9 CD B0 3E 93 00 00 D8 [13:16:53]Write i2c OK [13:16:53]MH_I2C_Read... [13:16:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:53]Read from MH i2c: E2 [13:16:53]MH_I2C_Read... [13:16:53]Read from MH i2c: E2 03 00 [13:16:53]MH_I2C_Read... [13:16:53]Read from MH i2c: E2 03 00 FE 3F 00 90 00 B1 [13:16:53]RAPDU: 90 00 [13:16:53]wFMCommunicate OK [13:16:53]wFMCommunicate request_size=4 [13:16:53]MH_SAM_APDU [13:16:53]CAPDU: 80 0D 03 02 [13:16:53]Write to MH i2c: E2 08 00 FF 3F 80 0D 03 02 00 00 00 00 B9 [13:16:53]Write i2c OK [13:16:53]MH_I2C_Read... [13:16:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:53]Read from MH i2c: E2 [13:16:53]MH_I2C_Read... [13:16:53]Read from MH i2c: E2 0B 00 [13:16:53]MH_I2C_Read... [13:16:53]Read from MH i2c: E2 0B 00 FF 3F 00 2D D0 A8 6E 66 11 74 BF 90 00 77 [13:16:53]RAPDU: 2D D0 A8 6E 66 11 74 BF 90 00 [13:16:53]wFMCommunicate OK [13:16:53]SAM_PROTO_SignData done [13:16:53]FM_MakeSignedData done [13:16:53]CreateOFDProtocolMessage [13:16:53]wFMCommunicate request_size=4 [13:16:53]MH_SAM_APDU [13:16:53]CAPDU: 80 11 00 00 [13:16:53]Write to MH i2c: E2 08 00 00 40 80 11 00 00 00 00 00 00 BA [13:16:53]Write i2c OK [13:16:53]MH_I2C_Read... [13:16:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:53]Read from MH i2c: E2 [13:16:53]MH_I2C_Read... [13:16:53]Read from MH i2c: E2 17 00 [13:16:53]MH_I2C_Read... [13:16:53]Read from MH i2c: E2 17 00 00 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 09 [13:16:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:16:53]wFMCommunicate OK [13:16:53]CreateOFDProtocolMessage done [13:16:53]OFDSenderStorePacket 28933 [13:16:53]StoreOFDPacket docnum=28933 [13:16:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 78 28 07 01 B6 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 8C 00 00 00 F4 03 04 00 C8 85 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 05 71 00 00 35 04 06 00 42 C9 CD B0 3E 93 2D D0 A8 6E 66 11 74 BF [13:16:53]CheckFolder [13:16:53]dirname=/storage/ofd_packets [13:16:53]CheckFolder done [13:16:53]ProducePacketName [13:16:53]name=ofd_packets/00028933 [13:16:53]NVStorageSaveData ofd_packets/00028933 [13:16:53]File name is /storage/ofd_packets/00028933 [13:16:53]Write 301 bytes [13:16:53]NVStorageSaveData done [13:16:53]OFDSenderStorePacket done [13:16:53]KKMCreateOFDPacket done [13:16:53]NVStorageSaveData kkm_last_timestamp [13:16:53]File name is /storage/kkm_last_timestamp [13:16:53]Write 4 bytes [13:16:53]NVStorageSaveData done [13:16:53]ExternCall_PrintAddStr [13:16:53]wPrintStart [13:16:53]Write to MH i2c: 01 00 00 01 40 41 [13:16:53]Write i2c OK [13:16:53]MH_I2C_Read... [13:16:53]Read from MH i2c: 01 [13:16:53]MH_I2C_Read... [13:16:53]Read from MH i2c: 01 07 00 [13:16:53]MH_I2C_Read... [13:16:53]Read from MH i2c: 01 07 00 01 40 00 00 00 00 00 FF 0F 56 [13:16:53]RasterBufferAndPrint [13:16:53]line Счет N : (1)347289 [13:16:53]line ИНН: 02508201610067 [13:16:53]line Контрольно-Кассовый Чек [13:16:53]line ПРОДАЖА [13:16:53]line ТРК (МРК, ГНК) : 13 [13:16:53]line Товар: 2710124130 [13:16:53]line Аи-92-К-5 [13:16:53]line 3.120 * 64.30 [13:16:53]line = 200.62 [13:16:53]line НДС 12% НСП 1% [13:16:53]line > о реализуемом товаре [13:16:53]line ОКРУГЛЕНИЕ: -0.62 [13:16:53]line ИТОГО: 200.00 [13:16:53]line Внесено: 200.00 [13:16:53]line СДАЧА: 0.00 [13:16:53]line НСП 1% : 1.77 [13:16:53]line НДС 12% : 21.30 [13:16:53]line Наличными: 200.00 [13:16:53]line Безнал.: 0.00 [13:16:53]line Место: АЗС № 108 "Партнер Нефть" [13:16:53]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:16:53]line СНО: Общий режим [13:16:53]line Чек 140 13.04.2024 13:16 [13:16:53]line Смена: 115 ФФД: 1.0 [13:16:53]line ЗНМ: 0300000027 [13:16:53]line РНМ: 0000138879044617 [13:16:53]line Версия ККМ: 001 [13:16:53]line ФМ: 0000000000963154 [13:16:53]line ФД: 28933 [13:16:53]line ФПД: 73434506739347 [13:16:53]line 1/tax-web-control/client/api/v1/ticket?date=20240413T131656&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28933&fm=73434506739347&tin=02508201610067®Number=0000138879044617&sum=20000 [13:16:53]OFD Sender: Processing packet 28933 [packets to send 8, broken 7] [13:16:53]ProducePacketName [13:16:53]name=ofd_packets/00028933 [13:16:53]OFD Sender: To server: pG, [13:16:53]CommunicateWithHost lk.salyk.kg:30040 [13:16:53]ConnectInit lk.salyk.kg [13:16:53]written 0, free lines is 4095 [13:16:53]Connected sock=10 [13:16: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 31 35 34 0F 01 00 00 78 28 07 01 B6 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 8C 00 00 00 F4 03 04 00 C8 85 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 05 71 00 00 35 04 06 00 42 C9 CD B0 3E 93 2D D0 A8 6E 66 11 74 BF [13:16:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 86 13 47 00 8E 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 31 35 34 10 04 04 00 05 71 00 00 F4 03 04 00 6F 30 1A 66 B6 04 01 00 00 D6 B7 BC 14 48 F4 21 23 [13:16:53]CommunicateWithHost err = 0 [13:16:53]CheckOFDResponse [13:16:53]1017 (14) - 77093643461234 [13:16:53]1041 (16) - 0000000000963154 [13:16:53]1040 (4) - 28933 [13:16:53]1012 (4) - 13.04.2024 07:12 [13:16:53]1206 (1) - 0 [13:16:53]OFD Sender: Remove packet 28933 [13:16:53]ProducePacketName [13:16:53]name=ofd_packets/00028933 [13:16:53]NVStorageDeleteData [13:16:54]Write to MH i2c: 01 00 00 2B 40 6B [13:16:54]Write i2c OK [13:16:54]MH_I2C_Read... [13:16:54]Read from MH i2c: 01 [13:16:54]MH_I2C_Read... [13:16:54]Read from MH i2c: 01 07 00 [13:16:54]MH_I2C_Read... [13:16:54]Read from MH i2c: 01 07 00 2B 40 00 00 00 00 00 BB 0C 39 [13:16:54]RasterBufferAndPrint [13:16:54]line [13:16:54]line [13:16:54]line [13:16:54]line [13:16:54]line [13:16:54]written 0, free lines is 3263 [13:16:54]MH_Cut [13:16:54]Write to MH i2c: D1 01 00 32 40 01 44 [13:16:54]Write i2c OK [13:16:54]MH_I2C_Read... [13:16:54]Read from MH i2c: D1 [13:16:54]MH_I2C_Read... [13:16:54]Read from MH i2c: D1 01 00 [13:16:54]MH_I2C_Read... [13:16:54]Read from MH i2c: D1 01 00 32 40 00 43 [13:16:54]Write to MH i2c: 01 00 00 33 40 73 [13:16:54]Write i2c OK [13:16:54]MH_I2C_Read... [13:16:54]OFD Sender: No OFD packet to send [13:16:54]*** Cut start [13:16:54]*** Partial cut [13:16:54]*** CUTSNS_PIN = 1 [13:16:54]*** CUTSNS_PIN = 0 [13:16:55]*** Brake cut motor [13:16:55]Read from MH i2c: 01 [13:16:55]MH_I2C_Read... [13:16:55]*** Stop cut motor [13:16:55]*** Cut end [13:16:55]Read from MH i2c: 01 07 00 [13:16:55]MH_I2C_Read... [13:16:55]Read from MH i2c: 01 07 00 33 40 00 00 00 00 00 FF 0F 88 [13:16:55]process_action close_receipt done [13:16:55]requested_data is exist [13:16:55]produce_requested_data [13:16:55]requested_item fm.sn is exist - process it [13:16:55]wFMCommunicate request_size=4 [13:16:55]MH_SAM_APDU [13:16:55]CAPDU: 80 11 00 00 [13:16:55]Write to MH i2c: E2 08 00 34 40 80 11 00 00 00 00 00 00 EE [13:16:55]Write i2c OK [13:16:55]MH_I2C_Read... [13:16:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:55]Read from MH i2c: E2 [13:16:55]MH_I2C_Read... [13:16:55]Read from MH i2c: E2 17 00 [13:16:55]MH_I2C_Read... [13:16:55]Read from MH i2c: E2 17 00 34 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3D [13:16:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:16:55]wFMCommunicate OK [13:16:55]requested_item fd.num is exist - process it [13:16:55]SAM_PROTO_GetFieldsCounters [13:16:55]wFMCommunicate request_size=4 [13:16:55]MH_SAM_APDU [13:16:55]CAPDU: 80 13 00 00 [13:16:55]Write to MH i2c: E2 08 00 35 40 80 13 00 00 00 00 00 00 F1 [13:16:55]Write i2c OK [13:16:55]MH_I2C_Read... [13:16:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:55]Read from MH i2c: E2 [13:16:55]MH_I2C_Read... [13:16:55]Read from MH i2c: E2 62 00 [13:16:55]MH_I2C_Read... [13:16:55]Read from MH i2c: E2 62 00 35 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 05 71 00 00 0E 04 04 00 73 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 BC [13:16: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 05 71 00 00 0E 04 04 00 73 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:16:55]wFMCommunicate OK [13:16:55]SAM_PROTO_GetFieldsCounters done [13:16:55]requested_item shift.num is exist - process it [13:16:55]requested_item shift.opened is exist - process it [13:16:55]req_shift_opened [13:16:55]FM_GetShiftState [13:16:55]SAM_PROTO_GetShiftState [13:16:55]wFMCommunicate request_size=4 [13:16:55]MH_SAM_APDU [13:16:55]CAPDU: 80 13 01 00 [13:16:55]Write to MH i2c: E2 08 00 36 40 80 13 01 00 00 00 00 00 F3 [13:16:55]Write i2c OK [13:16:55]MH_I2C_Read... [13:16:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:55]Read from MH i2c: E2 [13:16:55]MH_I2C_Read... [13:16:55]Read from MH i2c: E2 0E 00 [13:16:55]MH_I2C_Read... [13:16:55]Read from MH i2c: E2 0E 00 36 40 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 0C [13:16:55]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:16:55]wFMCommunicate OK [13:16:55]SAM_PROTO_GetShiftState done [13:16:55]FM_GetShiftState done [13:16:55]req_shift_opened done [13:16:55]requested_item shift.open_date is exist - process it [13:16:55]req_shift_open_date [13:16:55]req_shift_open_date done [13:16:55]produce_requested_data done [13:16:55]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28933,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [13:16:55]process_action_free close_receipt [13:16:55]json_value_free [13:16:55]json_value_free done [13:16:55]process_json_proto returns [13:16:55]Send response to host [13:16:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28933,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [13:16:55]free response buf [13:16:55]execute_script done [13:16:55]execute_script returns [13:16:55]free content buf [13:16:55]Sock 7.Close socket [13:16:55]Sock 7.Thread stoped [13:16:59]OFD Sender: No OFD packet to send [13:17:04]OFD Sender: No OFD packet to send [13:17:09]OFD Sender: No OFD packet to send [13:17:14]OFD Sender: No OFD packet to send [13:17:19]OFD Sender: No OFD packet to send [13:17:23]accept exits with 9 [13:17:23]New connection [13:17:23]New thread 3066785124 created [13:17:23]Thread 3066928484 joined [13:17:23]Waiting for new connection... [13:17:23] Sock 9.Parse request [13:17:23]Sock 9.Check first char [13:17:23]Sock 9.First char is OK [13:17:23]request: POST /json_proto HTTP/1.0 [13:17:23]Method: POST [13:17:23]URL: /json_proto [13:17:23]Method is POST - this is cgi request [13:17:23]url: /json_proto [13:17:23]query_string will be loaded in cgi processing [13:17:23]execute_cgi json_proto POST (null) [13:17:23]execute_cgi path=json_proto method=POST [13:17:23]POST find Content-Length [13:17:23]Host: 172.17.33.3:8080 [13:17:23]Content-Length: 677 [13:17:23]Content-Type: application/json [13:17:23] [13:17:23]POST finish read [13:17:23]Found Content-Length = 677 [13:17:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347290", "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" : 64.30, "quantity" : 7.780, "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" ] } } [13:17:23]execute_script... [13:17: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)347290", "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" : 64.30, "quantity" : 7.780, "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" ] } } [13:17:23]POST & json_proto [13:17:23]process_json_proto [13:17:23]json parsed OK: [13:17:23]protocol is kg_v1.0 [13:17:23]action value=close_receipt [13:17:23]process_action close_receipt [13:17:23]cmd_close_receipt [13:17:23]MH_GetDate [13:17:23]Write to MH i2c: F0 00 00 37 40 66 [13:17:23]Write i2c OK [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: F0 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: F0 09 00 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: F0 09 00 37 40 00 E8 85 1A 66 23 5B 8F 65 CE [13:17:23]GetLastDocTimeStamp 1713014216 [13:17:23]current date 1713014248 [13:17:23]FM_GetShiftState [13:17:23]SAM_PROTO_GetShiftState [13:17:23]wFMCommunicate request_size=4 [13:17:23]MH_SAM_APDU [13:17:23]CAPDU: 80 13 01 00 [13:17:23]Write to MH i2c: E2 08 00 38 40 80 13 01 00 00 00 00 00 F5 [13:17:23]Write i2c OK [13:17:23]MH_I2C_Read... [13:17:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:23]Read from MH i2c: E2 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: E2 0E 00 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: E2 0E 00 38 40 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 0E [13:17:23]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:17:23]wFMCommunicate OK [13:17:23]SAM_PROTO_GetShiftState done [13:17:23]FM_GetShiftState done [13:17:23]opened in 1712967615 [13:17:23]opened+sec_in_day 1713054015 [13:17:23]quantity*price = 50025 [13:17:23]sum+1 = 50026 [13:17:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 141 13.04.2024 13:17 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28934 ФПД: 201957547002886 1/tax-web-control/client/api/v1/ticket?date=20240413T131728&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28934&fm=201957547002886&tin=02508201610067®Number=0000138879044617&sum=50000 [13:17:24]StoreToDocumentArchive [13:17:24]shift 115 fd 28934 [13:17:24]save to /storage/0115/doc_00028934 [13:17:24]save last doc name /storage/0115/doc_00028934 to /storage/kkm_last_doc_name [13:17:24]save OK [13:17:24]Clear old archive folders... [13:17:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:17:24]tlvbuf is 0120BAC0 [13:17:24]SAM_PROTO_ClearQueue [13:17:24]wFMCommunicate request_size=4 [13:17:24]MH_SAM_APDU [13:17:24]CAPDU: 80 09 00 00 [13:17:24]Write to MH i2c: E2 08 00 45 40 80 09 00 00 00 00 00 00 F7 [13:17:24]Write i2c OK [13:17:24]MH_I2C_Read... [13:17:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:24]Read from MH i2c: E2 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: E2 03 00 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: E2 03 00 45 40 00 90 00 F9 [13:17:24]RAPDU: 90 00 [13:17:24]wFMCommunicate OK [13:17:24]SAM_PROTO_ClearQueue done [13:17:24]KKMCreateOFDPacket [13:17:24]OFDProtocolAddRootSTLVToBuf [13:17:24]FM_MakeSignedData [13:17:24]FM_MakeSignedData [13:17:24]SAM_PROTO_SignData [13:17:24]wFMCommunicate request_size=4 [13:17:24]MH_SAM_APDU [13:17:24]CAPDU: 80 0D 01 02 [13:17:24]Write to MH i2c: E2 08 00 46 40 80 0D 01 02 00 00 00 00 FF [13:17:24]Write i2c OK [13:17:24]MH_I2C_Read... [13:17:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:24]Read from MH i2c: E2 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: E2 03 00 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: E2 03 00 46 40 00 90 00 FA [13:17:24]RAPDU: 90 00 [13:17:24]wFMCommunicate OK [13:17:24]wFMCommunicate request_size=255 [13:17:24]MH_SAM_APDU [13:17: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 8D 00 00 00 F4 03 04 00 E8 85 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 06 71 00 00 35 04 06 00 B7 [13:17:24]Write to MH i2c: E2 02 01 47 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 8D 00 00 00 F4 03 04 00 E8 85 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 06 71 00 00 35 04 06 00 B7 00 00 DC [13:17:24]Write i2c OK [13:17:24]MH_I2C_Read... [13:17:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:25]Read from MH i2c: E2 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 03 00 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 03 00 47 40 00 90 00 FB [13:17:25]RAPDU: 90 00 [13:17:25]wFMCommunicate OK [13:17:25]wFMCommunicate request_size=10 [13:17:25]MH_SAM_APDU [13:17:25]CAPDU: 80 0D 02 02 05 AD E7 D9 4C 06 [13:17:25]Write to MH i2c: E2 0D 00 48 40 80 0D 02 02 05 00 AD E7 D9 4C 06 00 00 CB [13:17:25]Write i2c OK [13:17:25]MH_I2C_Read... [13:17:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:25]Read from MH i2c: E2 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 03 00 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 03 00 48 40 00 90 00 FC [13:17:25]RAPDU: 90 00 [13:17:25]wFMCommunicate OK [13:17:25]wFMCommunicate request_size=4 [13:17:25]MH_SAM_APDU [13:17:25]CAPDU: 80 0D 03 02 [13:17:25]Write to MH i2c: E2 08 00 49 40 80 0D 03 02 00 00 00 00 04 [13:17:25]Write i2c OK [13:17:25]MH_I2C_Read... [13:17:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:25]Read from MH i2c: E2 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 0B 00 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 0B 00 49 40 00 DF 8E B0 23 66 88 93 AD 90 00 73 [13:17:25]RAPDU: DF 8E B0 23 66 88 93 AD 90 00 [13:17:25]wFMCommunicate OK [13:17:25]SAM_PROTO_SignData done [13:17:25]FM_MakeSignedData done [13:17:25]CreateOFDProtocolMessage [13:17:25]wFMCommunicate request_size=4 [13:17:25]MH_SAM_APDU [13:17:25]CAPDU: 80 11 00 00 [13:17:25]Write to MH i2c: E2 08 00 4A 40 80 11 00 00 00 00 00 00 04 [13:17:25]Write i2c OK [13:17:25]MH_I2C_Read... [13:17:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:25]Read from MH i2c: E2 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 17 00 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 17 00 4A 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 53 [13:17:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:17:25]wFMCommunicate OK [13:17:25]CreateOFDProtocolMessage done [13:17:25]OFDSenderStorePacket 28934 [13:17:25]StoreOFDPacket docnum=28934 [13:17:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 1E DB 07 01 B9 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 8D 00 00 00 F4 03 04 00 E8 85 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 06 71 00 00 35 04 06 00 B7 AD E7 D9 4C 06 DF 8E B0 23 66 88 93 AD [13:17:25]CheckFolder [13:17:25]dirname=/storage/ofd_packets [13:17:25]CheckFolder done [13:17:25]ProducePacketName [13:17:25]name=ofd_packets/00028934 [13:17:25]NVStorageSaveData ofd_packets/00028934 [13:17:25]File name is /storage/ofd_packets/00028934 [13:17:25]Write 301 bytes [13:17:25]NVStorageSaveData done [13:17:25]OFDSenderStorePacket done [13:17:25]KKMCreateOFDPacket done [13:17:25]NVStorageSaveData kkm_last_timestamp [13:17:25]File name is /storage/kkm_last_timestamp [13:17:25]Write 4 bytes [13:17:25]NVStorageSaveData done [13:17:25]ExternCall_PrintAddStr [13:17:25]wPrintStart [13:17:25]Write to MH i2c: 01 00 00 4B 40 8B [13:17:25]Write i2c OK [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: 01 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: 01 07 00 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: 01 07 00 4B 40 00 00 00 00 00 FF 0F A0 [13:17:25]RasterBufferAndPrint [13:17:25]line Счет N : (1)347290 [13:17:25]line ИНН: 02508201610067 [13:17:25]line Контрольно-Кассовый Чек [13:17:25]line ПРОДАЖА [13:17:25]line ТРК (МРК, ГНК) : 42 [13:17:25]line Товар: 2710124130 [13:17:25]line Аи-92-К-5 [13:17:25]line 7.780 * 64.30 [13:17:25]line = 500.25 [13:17:25]line НДС 12% НСП 1% [13:17:25]line > о реализуемом товаре [13:17:25]line ОКРУГЛЕНИЕ: -0.25 [13:17:25]line ИТОГО: 500.00 [13:17:25]line Внесено: 500.00 [13:17:25]line СДАЧА: 0.00 [13:17:25]line НСП 1% : 4.43 [13:17:25]line НДС 12% : 53.12 [13:17:25]line Наличными: 500.00 [13:17:25]line Безнал.: 0.00 [13:17:25]line Место: АЗС № 108 "Партнер Нефть" [13:17:25]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:17:25]line СНО: Общий режим [13:17:25]line Чек 141 13.04.2024 13:17 [13:17:25]line Смена: 115 ФФД: 1.0 [13:17:25]line ЗНМ: 0300000027 [13:17:25]line РНМ: 0000138879044617 [13:17:25]line Версия ККМ: 001 [13:17:25]line ФМ: 0000000000963154 [13:17:25]line ФД: 28934 [13:17:25]line ФПД: 201957547002886 [13:17:25]line 1/tax-web-control/client/api/v1/ticket?date=20240413T131728&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28934&fm=201957547002886&tin=02508201610067®Number=0000138879044617&sum=50000 [13:17:25]OFD Sender: Processing packet 28934 [packets to send 8, broken 7] [13:17:25]ProducePacketName [13:17:25]name=ofd_packets/00028934 [13:17:25]OFD Sender: To server: pG, [13:17:25]CommunicateWithHost lk.salyk.kg:30040 [13:17:25]ConnectInit lk.salyk.kg [13:17:25]written 0, free lines is 4095 [13:17:25]Connected sock=10 [13:17: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 31 35 34 0F 01 00 00 1E DB 07 01 B9 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 8D 00 00 00 F4 03 04 00 E8 85 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 06 71 00 00 35 04 06 00 B7 AD E7 D9 4C 06 DF 8E B0 23 66 88 93 AD [13:17:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1C E6 47 00 49 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 31 35 34 10 04 04 00 06 71 00 00 F4 03 04 00 8F 30 1A 66 B6 04 01 00 00 64 2C 27 70 16 E3 05 E0 [13:17:25]CommunicateWithHost err = 0 [13:17:25]CheckOFDResponse [13:17:25]1017 (14) - 77093643461234 [13:17:25]1041 (16) - 0000000000963154 [13:17:25]1040 (4) - 28934 [13:17:25]1012 (4) - 13.04.2024 07:13 [13:17:25]1206 (1) - 0 [13:17:25]OFD Sender: Remove packet 28934 [13:17:25]ProducePacketName [13:17:25]name=ofd_packets/00028934 [13:17:25]NVStorageDeleteData [13:17:25]Write to MH i2c: 01 00 00 75 40 B5 [13:17:25]Write i2c OK [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: 01 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: 01 07 00 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: 01 07 00 75 40 00 00 00 00 00 BD 0C 85 [13:17:25]RasterBufferAndPrint [13:17:25]line [13:17:25]line [13:17:25]line [13:17:25]line [13:17:25]line [13:17:25]written 0, free lines is 3266 [13:17:26]MH_Cut [13:17:26]Write to MH i2c: D1 01 00 7C 40 01 8E [13:17:26]Write i2c OK [13:17:26]MH_I2C_Read... [13:17:26]Read from MH i2c: D1 [13:17:26]MH_I2C_Read... [13:17:26]Read from MH i2c: D1 01 00 [13:17:26]MH_I2C_Read... [13:17:26]Read from MH i2c: D1 01 00 7C 40 00 8D [13:17:26]Write to MH i2c: 01 00 00 7D 40 BD [13:17:26]Write i2c OK [13:17:26]MH_I2C_Read... [13:17:26]OFD Sender: No OFD packet to send [13:17:26]*** Cut start [13:17:26]*** Partial cut [13:17:26]*** CUTSNS_PIN = 1 [13:17:26]*** CUTSNS_PIN = 0 [13:17:27]*** Brake cut motor [13:17:27]Read from MH i2c: 01 [13:17:27]MH_I2C_Read... [13:17:27]*** Stop cut motor [13:17:27]*** Cut end [13:17:27]Read from MH i2c: 01 07 00 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: 01 07 00 7D 40 00 00 00 00 00 FF 0F D2 [13:17:27]process_action close_receipt done [13:17:27]requested_data is exist [13:17:27]produce_requested_data [13:17:27]requested_item fm.sn is exist - process it [13:17:27]wFMCommunicate request_size=4 [13:17:27]MH_SAM_APDU [13:17:27]CAPDU: 80 11 00 00 [13:17:27]Write to MH i2c: E2 08 00 7E 40 80 11 00 00 00 00 00 00 38 [13:17:27]Write i2c OK [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 [13:17:27]MH_I2C_Read... [13:17:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:27]Read from MH i2c: E2 17 00 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 17 00 7E 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 87 [13:17:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:17:27]wFMCommunicate OK [13:17:27]requested_item fd.num is exist - process it [13:17:27]SAM_PROTO_GetFieldsCounters [13:17:27]wFMCommunicate request_size=4 [13:17:27]MH_SAM_APDU [13:17:27]CAPDU: 80 13 00 00 [13:17:27]Write to MH i2c: E2 08 00 7F 40 80 13 00 00 00 00 00 00 3B [13:17:27]Write i2c OK [13:17:27]MH_I2C_Read... [13:17:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:27]Read from MH i2c: E2 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 62 00 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 62 00 7F 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 06 71 00 00 0E 04 04 00 73 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 0A [13:17: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 06 71 00 00 0E 04 04 00 73 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:17:27]wFMCommunicate OK [13:17:27]SAM_PROTO_GetFieldsCounters done [13:17:27]requested_item shift.num is exist - process it [13:17:27]requested_item shift.opened is exist - process it [13:17:27]req_shift_opened [13:17:27]FM_GetShiftState [13:17:27]SAM_PROTO_GetShiftState [13:17:27]wFMCommunicate request_size=4 [13:17:27]MH_SAM_APDU [13:17:27]CAPDU: 80 13 01 00 [13:17:27]Write to MH i2c: E2 08 00 80 40 80 13 01 00 00 00 00 00 3D [13:17:27]Write i2c OK [13:17:27]MH_I2C_Read... [13:17:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:27]Read from MH i2c: E2 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 0E 00 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 0E 00 80 40 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 56 [13:17:27]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:17:27]wFMCommunicate OK [13:17:27]SAM_PROTO_GetShiftState done [13:17:27]FM_GetShiftState done [13:17:27]req_shift_opened done [13:17:27]requested_item shift.open_date is exist - process it [13:17:27]req_shift_open_date [13:17:27]req_shift_open_date done [13:17:27]produce_requested_data done [13:17:27]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28934,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [13:17:27]process_action_free close_receipt [13:17:27]json_value_free [13:17:27]json_value_free done [13:17:27]process_json_proto returns [13:17:27]Send response to host [13:17:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28934,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [13:17:27]free response buf [13:17:27]execute_script done [13:17:27]execute_script returns [13:17:27]free content buf [13:17:27]Sock 9.Close socket [13:17:27]Sock 9.Thread stoped [13:17:31]OFD Sender: No OFD packet to send [13:17:36]OFD Sender: No OFD packet to send [13:17:41]OFD Sender: No OFD packet to send [13:17:46]OFD Sender: No OFD packet to send [13:17:51]OFD Sender: No OFD packet to send [13:17:56]OFD Sender: No OFD packet to send [13:18:01]OFD Sender: No OFD packet to send [13:18:06]OFD Sender: No OFD packet to send [13:18:11]OFD Sender: No OFD packet to send [13:18:16]OFD Sender: No OFD packet to send [13:18:21]OFD Sender: No OFD packet to send [13:18:26]OFD Sender: No OFD packet to send [13:18:31]OFD Sender: No OFD packet to send [13:18:31]accept exits with 7 [13:18:31]New connection [13:18:31]New thread 3066928484 created [13:18:31]Thread 3066785124 joined [13:18:31]Waiting for new connection... [13:18:31] Sock 7.Parse request [13:18:31]Sock 7.Check first char [13:18:31]Sock 7.First char is OK [13:18:31]request: POST /json_proto HTTP/1.0 [13:18:31]Method: POST [13:18:31]URL: /json_proto [13:18:31]Method is POST - this is cgi request [13:18:31]url: /json_proto [13:18:31]query_string will be loaded in cgi processing [13:18:31]execute_cgi json_proto POST (null) [13:18:31]execute_cgi path=json_proto method=POST [13:18:31]POST find Content-Length [13:18:31]Host: 172.17.33.3:8080 [13:18:31]Content-Length: 1199 [13:18:31]Content-Type: application/json [13:18:31] [13:18:31]POST finish read [13:18:31]Found Content-Length = 1199 [13:18:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347291\u000A13.04.2024 13:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 71\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2711129700\u000A\u0413\u0410\u0417-\u041A-5\u000A 10.000 x 32.90\u000A\u0418\u0422\u041E\u0413: 329.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A1783629\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:31]execute_script... [13:18:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347291\u000A13.04.2024 13:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 71\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2711129700\u000A\u0413\u0410\u0417-\u041A-5\u000A 10.000 x 32.90\u000A\u0418\u0422\u041E\u0413: 329.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A1783629\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:31]POST & json_proto [13:18:31]process_json_proto [13:18:31]json parsed OK: [13:18:31]protocol is kg_v1.0 [13:18:31]action value=print_text [13:18:31]process_action print_text [13:18:31]cmd_print_text [13:18:31]ExternCall_PrintAddStr [13:18:31]wPrintStart [13:18:31]Write to MH i2c: 01 00 00 81 40 C1 [13:18:31]Write i2c OK [13:18:31]MH_I2C_Read... [13:18:31]Read from MH i2c: 01 [13:18:31]MH_I2C_Read... [13:18:31]Read from MH i2c: 01 07 00 [13:18:31]MH_I2C_Read... [13:18:31]Read from MH i2c: 01 07 00 81 40 00 00 00 00 00 FF 0F D6 [13:18:31]RasterBufferAndPrint [13:18:31]line *****ТОВАРНЫЙ ЧЕК***** [13:18:31]line АЗС 108 [13:18:31]line Партнер нефть [13:18:31]line 02508201610067 [13:18:31]line Кассир : Шадыканова Ж. [13:18:31]line Счет N : (1)347291 [13:18:31]line 13.04.2024 13:00 [13:18:31]line ПРОДАЖА [13:18:31]line ТРК (МРК, ГНК): 71 [13:18:31]line Вид ГСМ : 2711129700 [13:18:31]line ГАЗ-К-5 [13:18:31]line 10.000 x 32.90 [13:18:31]line ИТОГ: 329.00 [13:18:31]line Тип оплаты: Талоны: Партнер нефть [13:18:31]line 1783629 [13:18:31]line ______________________ [13:18:31]line (подпись) [13:18:31]written 0, free lines is 4095 [13:18:32]Write to MH i2c: 01 00 00 96 40 D6 [13:18:32]Write i2c OK [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: 01 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: 01 07 00 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: 01 07 00 96 40 00 00 00 00 00 F4 0D DE [13:18:32]RasterBufferAndPrint [13:18:32]line [13:18:32]line [13:18:32]line [13:18:32]line [13:18:32]line [13:18:32]written 0, free lines is 3573 [13:18:32]MH_Cut [13:18:32]Write to MH i2c: D1 01 00 9D 40 01 AF [13:18:32]Write i2c OK [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: D1 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: D1 01 00 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: D1 01 00 9D 40 00 AE [13:18:32]Write to MH i2c: 01 00 00 9E 40 DE [13:18:32]Write i2c OK [13:18:32]MH_I2C_Read... [13:18:32]*** Cut start [13:18:32]*** Partial cut [13:18:32]*** CUTSNS_PIN = 1 [13:18:32]*** CUTSNS_PIN = 0 [13:18:32]*** Brake cut motor [13:18:33]Read from MH i2c: 01 [13:18:33]MH_I2C_Read... [13:18:33]*** Stop cut motor [13:18:33]*** Cut end [13:18:33]Read from MH i2c: 01 07 00 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: 01 07 00 9E 40 00 00 00 00 00 FF 0F F3 [13:18:33]process_action print_text done [13:18:33]requested_data is exist [13:18:33]produce_requested_data [13:18:33]requested_item fm.sn is exist - process it [13:18:33]wFMCommunicate request_size=4 [13:18:33]MH_SAM_APDU [13:18:33]CAPDU: 80 11 00 00 [13:18:33]Write to MH i2c: E2 08 00 9F 40 80 11 00 00 00 00 00 00 59 [13:18:33]Write i2c OK [13:18:33]MH_I2C_Read... [13:18:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:33]Read from MH i2c: E2 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: E2 17 00 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: E2 17 00 9F 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A8 [13:18:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:18:33]wFMCommunicate OK [13:18:33]requested_item fd.num is exist - process it [13:18:33]SAM_PROTO_GetFieldsCounters [13:18:33]wFMCommunicate request_size=4 [13:18:33]MH_SAM_APDU [13:18:33]CAPDU: 80 13 00 00 [13:18:33]Write to MH i2c: E2 08 00 A0 40 80 13 00 00 00 00 00 00 5C [13:18:33]Write i2c OK [13:18:33]MH_I2C_Read... [13:18:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:33]Read from MH i2c: E2 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: E2 62 00 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: E2 62 00 A0 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 06 71 00 00 0E 04 04 00 73 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 2B [13:18: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 06 71 00 00 0E 04 04 00 73 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:18:33]wFMCommunicate OK [13:18:33]SAM_PROTO_GetFieldsCounters done [13:18:33]requested_item shift.num is exist - process it [13:18:33]requested_item shift.opened is exist - process it [13:18:33]req_shift_opened [13:18:33]FM_GetShiftState [13:18:33]SAM_PROTO_GetShiftState [13:18:33]wFMCommunicate request_size=4 [13:18:33]MH_SAM_APDU [13:18:33]CAPDU: 80 13 01 00 [13:18:33]Write to MH i2c: E2 08 00 A1 40 80 13 01 00 00 00 00 00 5E [13:18:33]Write i2c OK [13:18:33]MH_I2C_Read... [13:18:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:33]Read from MH i2c: E2 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: E2 0E 00 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: E2 0E 00 A1 40 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 77 [13:18:33]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:18:33]wFMCommunicate OK [13:18:33]SAM_PROTO_GetShiftState done [13:18:33]FM_GetShiftState done [13:18:33]req_shift_opened done [13:18:33]requested_item shift.open_date is exist - process it [13:18:33]req_shift_open_date [13:18:33]req_shift_open_date done [13:18:33]produce_requested_data done [13:18:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28934,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [13:18:33]process_action_free print_text [13:18:33]json_value_free [13:18:33]json_value_free done [13:18:33]process_json_proto returns [13:18:33]Send response to host [13:18:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28934,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [13:18:33]free response buf [13:18:33]execute_script done [13:18:33]execute_script returns [13:18:33]free content buf [13:18:33]Sock 7.Close socket [13:18:33]Sock 7.Thread stoped [13:18:36]OFD Sender: No OFD packet to send [13:18:41]OFD Sender: No OFD packet to send [13:18:46]OFD Sender: No OFD packet to send [13:18:51]OFD Sender: No OFD packet to send [13:18:56]OFD Sender: No OFD packet to send [13:19:01]OFD Sender: No OFD packet to send [13:19:06]OFD Sender: No OFD packet to send [13:19:11]OFD Sender: No OFD packet to send [13:19:16]OFD Sender: No OFD packet to send [13:19:21]OFD Sender: No OFD packet to send [13:19:26]OFD Sender: No OFD packet to send [13:19:31]OFD Sender: No OFD packet to send [13:19:36]OFD Sender: No OFD packet to send [13:19:41]OFD Sender: No OFD packet to send [13:19:46]OFD Sender: No OFD packet to send [13:19:51]OFD Sender: No OFD packet to send [13:19:56]OFD Sender: No OFD packet to send [13:20:01]OFD Sender: No OFD packet to send [13:20:06]OFD Sender: No OFD packet to send [13:20:11]OFD Sender: No OFD packet to send [13:20:16]OFD Sender: No OFD packet to send [13:20:21]OFD Sender: No OFD packet to send [13:20:26]OFD Sender: No OFD packet to send [13:20:31]OFD Sender: No OFD packet to send [13:20:36]OFD Sender: No OFD packet to send [13:20:41]OFD Sender: No OFD packet to send [13:20:46]OFD Sender: No OFD packet to send [13:20:51]OFD Sender: No OFD packet to send [13:20:56]OFD Sender: No OFD packet to send [13:21:01]OFD Sender: No OFD packet to send [13:21:06]OFD Sender: No OFD packet to send [13:21:11]OFD Sender: No OFD packet to send [13:21:16]OFD Sender: No OFD packet to send [13:21:21]OFD Sender: No OFD packet to send [13:21:26]OFD Sender: No OFD packet to send [13:21:31]OFD Sender: No OFD packet to send [13:21:36]OFD Sender: No OFD packet to send [13:21:41]OFD Sender: No OFD packet to send [13:21:46]OFD Sender: No OFD packet to send [13:21:51]OFD Sender: No OFD packet to send [13:21:56]OFD Sender: No OFD packet to send [13:21:57]accept exits with 9 [13:21:57]New connection [13:21:57]New thread 3066785124 created [13:21:57]Thread 3066928484 joined [13:21:57]Waiting for new connection... [13:21:57] Sock 9.Parse request [13:21:57]Sock 9.Check first char [13:21:57]Sock 9.First char is OK [13:21:57]request: POST /json_proto HTTP/1.0 [13:21:57]Method: POST [13:21:57]URL: /json_proto [13:21:57]Method is POST - this is cgi request [13:21:57]url: /json_proto [13:21:57]query_string will be loaded in cgi processing [13:21:57]execute_cgi json_proto POST (null) [13:21:57]execute_cgi path=json_proto method=POST [13:21:57]POST find Content-Length [13:21:57]Host: 172.17.33.3:8080 [13:21:57]Content-Length: 681 [13:21:57]Content-Type: application/json [13:21:57] [13:21:57]POST finish read [13:21:57]Found Content-Length = 681 [13:21:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 18.240, "sum" : 600.10, "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" ] } } [13:21:57]execute_script... [13:21:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 18.240, "sum" : 600.10, "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" ] } } [13:21:57]POST & json_proto [13:21:57]process_json_proto [13:21:57]json parsed OK: [13:21:57]protocol is kg_v1.0 [13:21:57]action value=close_receipt [13:21:57]process_action close_receipt [13:21:57]cmd_close_receipt [13:21:57]MH_GetDate [13:21:57]Write to MH i2c: F0 00 00 A2 40 D1 [13:21:57]Write i2c OK [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: F0 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: F0 09 00 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: F0 09 00 A2 40 00 FA 86 1A 66 23 5B 8F 65 4C [13:21:57]GetLastDocTimeStamp 1713014248 [13:21:57]current date 1713014522 [13:21:57]FM_GetShiftState [13:21:57]SAM_PROTO_GetShiftState [13:21:57]wFMCommunicate request_size=4 [13:21:57]MH_SAM_APDU [13:21:57]CAPDU: 80 13 01 00 [13:21:57]Write to MH i2c: E2 08 00 A3 40 80 13 01 00 00 00 00 00 60 [13:21:57]Write i2c OK [13:21:57]MH_I2C_Read... [13:21:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:57]Read from MH i2c: E2 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: E2 0E 00 [13:21:57]MH_I2C_Read... [13:21:57]Read from MH i2c: E2 0E 00 A3 40 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 79 [13:21:57]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:21:57]wFMCommunicate OK [13:21:57]SAM_PROTO_GetShiftState done [13:21:57]FM_GetShiftState done [13:21:57]opened in 1712967615 [13:21:57]opened+sec_in_day 1713054015 [13:21:57]quantity*price = 60009 [13:21:57]sum+1 = 60011 [13:21:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 142 13.04.2024 13:22 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28935 ФПД: 208353771998087 1/tax-web-control/client/api/v1/ticket?date=20240413T132202&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28935&fm=208353771998087&tin=02508201610067®Number=0000138879044617&sum=60000 [13:21:58]StoreToDocumentArchive [13:21:58]shift 115 fd 28935 [13:21:58]save to /storage/0115/doc_00028935 [13:21:58]save last doc name /storage/0115/doc_00028935 to /storage/kkm_last_doc_name [13:21:58]save OK [13:21:58]Clear old archive folders... [13:21:58]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:21:58]tlvbuf is 01284550 [13:21:58]SAM_PROTO_ClearQueue [13:21:58]wFMCommunicate request_size=4 [13:21:58]MH_SAM_APDU [13:21:58]CAPDU: 80 09 00 00 [13:21:58]Write to MH i2c: E2 08 00 B0 40 80 09 00 00 00 00 00 00 62 [13:21:58]Write i2c OK [13:21:58]MH_I2C_Read... [13:21:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:58]Read from MH i2c: E2 [13:21:58]MH_I2C_Read... [13:21:58]Read from MH i2c: E2 03 00 [13:21:58]MH_I2C_Read... [13:21:58]Read from MH i2c: E2 03 00 B0 40 00 90 00 64 [13:21:58]RAPDU: 90 00 [13:21:58]wFMCommunicate OK [13:21:58]SAM_PROTO_ClearQueue done [13:21:58]KKMCreateOFDPacket [13:21:58]OFDProtocolAddRootSTLVToBuf [13:21:58]FM_MakeSignedData [13:21:58]FM_MakeSignedData [13:21:58]SAM_PROTO_SignData [13:21:58]wFMCommunicate request_size=4 [13:21:58]MH_SAM_APDU [13:21:58]CAPDU: 80 0D 01 02 [13:21:58]Write to MH i2c: E2 08 00 B1 40 80 0D 01 02 00 00 00 00 6A [13:21:58]Write i2c OK [13:21:58]MH_I2C_Read... [13:21:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:58]Read from MH i2c: E2 [13:21:58]MH_I2C_Read... [13:21:58]Read from MH i2c: E2 03 00 [13:21:58]MH_I2C_Read... [13:21:58]Read from MH i2c: E2 03 00 B1 40 00 90 00 65 [13:21:58]RAPDU: 90 00 [13:21:58]wFMCommunicate OK [13:21:58]wFMCommunicate request_size=255 [13:21:58]MH_SAM_APDU [13:21:58]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 40 47 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 6A 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 8E 00 00 00 F4 03 04 00 FA 86 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 07 71 00 00 35 04 06 00 BD 7F [13:21:58]Write to MH i2c: E2 02 01 B2 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 35 FF 03 08 00 03 40 47 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 6A 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 8E 00 00 00 F4 03 04 00 FA 86 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 07 71 00 00 35 04 06 00 BD 7F 00 00 5D [13:21:58]Write i2c OK [13:21:58]MH_I2C_Read... [13:21:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:58]Read from MH i2c: E2 [13:21:58]MH_I2C_Read... [13:21:58]Read from MH i2c: E2 03 00 [13:21:58]MH_I2C_Read... [13:21:58]Read from MH i2c: E2 03 00 B2 40 00 90 00 66 [13:21:58]RAPDU: 90 00 [13:21:58]wFMCommunicate OK [13:21:58]wFMCommunicate request_size=9 [13:21:58]MH_SAM_APDU [13:21:58]CAPDU: 80 0D 02 02 04 24 91 4B 87 [13:21:58]Write to MH i2c: E2 0C 00 B3 40 80 0D 02 02 04 00 24 91 4B 87 00 00 FC [13:21:58]Write i2c OK [13:21:58]MH_I2C_Read... [13:21:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:58]Read from MH i2c: E2 [13:21:58]MH_I2C_Read... [13:21:58]Read from MH i2c: E2 03 00 [13:21:58]MH_I2C_Read... [13:21:58]Read from MH i2c: E2 03 00 B3 40 00 90 00 67 [13:21:58]RAPDU: 90 00 [13:21:58]wFMCommunicate OK [13:21:58]wFMCommunicate request_size=4 [13:21:58]MH_SAM_APDU [13:21:58]CAPDU: 80 0D 03 02 [13:21:58]Write to MH i2c: E2 08 00 B4 40 80 0D 03 02 00 00 00 00 6F [13:21:58]Write i2c OK [13:21:58]MH_I2C_Read... [13:21:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:59]Read from MH i2c: E2 [13:21:59]MH_I2C_Read... [13:21:59]Read from MH i2c: E2 0B 00 [13:21:59]MH_I2C_Read... [13:21:59]Read from MH i2c: E2 0B 00 B4 40 00 15 DF D2 2D FD ED 36 0D 90 00 90 [13:21:59]RAPDU: 15 DF D2 2D FD ED 36 0D 90 00 [13:21:59]wFMCommunicate OK [13:21:59]SAM_PROTO_SignData done [13:21:59]FM_MakeSignedData done [13:21:59]CreateOFDProtocolMessage [13:21:59]wFMCommunicate request_size=4 [13:21:59]MH_SAM_APDU [13:21:59]CAPDU: 80 11 00 00 [13:21:59]Write to MH i2c: E2 08 00 B5 40 80 11 00 00 00 00 00 00 6F [13:21:59]Write i2c OK [13:21:59]MH_I2C_Read... [13:21:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:59]Read from MH i2c: E2 [13:21:59]MH_I2C_Read... [13:21:59]Read from MH i2c: E2 17 00 [13:21:59]MH_I2C_Read... [13:21:59]Read from MH i2c: E2 17 00 B5 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BE [13:21:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:21:59]wFMCommunicate OK [13:21:59]CreateOFDProtocolMessage done [13:21:59]OFDSenderStorePacket 28935 [13:21:59]StoreOFDPacket docnum=28935 [13:21:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 FB 0A 06 01 7A 3F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 40 47 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 6A 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 8E 00 00 00 F4 03 04 00 FA 86 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 07 71 00 00 35 04 06 00 BD 7F 24 91 4B 87 15 DF D2 2D FD ED 36 0D [13:21:59]CheckFolder [13:21:59]dirname=/storage/ofd_packets [13:21:59]CheckFolder done [13:21:59]ProducePacketName [13:21:59]name=ofd_packets/00028935 [13:21:59]NVStorageSaveData ofd_packets/00028935 [13:21:59]File name is /storage/ofd_packets/00028935 [13:21:59]Write 300 bytes [13:21:59]NVStorageSaveData done [13:21:59]OFDSenderStorePacket done [13:21:59]KKMCreateOFDPacket done [13:21:59]NVStorageSaveData kkm_last_timestamp [13:21:59]File name is /storage/kkm_last_timestamp [13:21:59]Write 4 bytes [13:21:59]NVStorageSaveData done [13:21:59]ExternCall_PrintAddStr [13:21:59]wPrintStart [13:21:59]Write to MH i2c: 01 00 00 B6 40 F6 [13:21:59]Write i2c OK [13:21:59]MH_I2C_Read... [13:21:59]Read from MH i2c: 01 [13:21:59]MH_I2C_Read... [13:21:59]Read from MH i2c: 01 07 00 [13:21:59]MH_I2C_Read... [13:21:59]Read from MH i2c: 01 07 00 B6 40 00 00 00 00 00 FF 0F 0B [13:21:59]RasterBufferAndPrint [13:21:59]line Счет N : (1)347292 [13:21:59]line ИНН: 02508201610067 [13:21:59]line Контрольно-Кассовый Чек [13:21:59]line ПРОДАЖА [13:21:59]line ТРК (МРК, ГНК) : 71 [13:21:59]line Товар: 2711129700 [13:21:59]line ГАЗ-К-5 [13:21:59]line 18.240 * 32.90 [13:21:59]line = 600.10 [13:21:59]line НДС 12% НСП 1% [13:21:59]line > о реализуемом товаре [13:21:59]line ОКРУГЛЕНИЕ: -0.10 [13:21:59]line ИТОГО: 600.00 [13:21:59]line Внесено: 600.00 [13:21:59]line СДАЧА: 0.00 [13:21:59]line НСП 1% : 5.31 [13:21:59]line НДС 12% : 63.73 [13:21:59]line Наличными: 600.00 [13:21:59]line Безнал.: 0.00 [13:21:59]line Место: АЗС № 108 "Партнер Нефть" [13:21:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:21:59]line СНО: Общий режим [13:21:59]line Чек 142 13.04.2024 13:22 [13:21:59]line Смена: 115 ФФД: 1.0 [13:21:59]line ЗНМ: 0300000027 [13:21:59]line РНМ: 0000138879044617 [13:21:59]line Версия ККМ: 001 [13:21:59]line ФМ: 0000000000963154 [13:21:59]line ФД: 28935 [13:21:59]line ФПД: 208353771998087 [13:21:59]line 1/tax-web-control/client/api/v1/ticket?date=20240413T132202&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28935&fm=208353771998087&tin=02508201610067®Number=0000138879044617&sum=60000 [13:21:59]OFD Sender: Processing packet 28935 [packets to send 8, broken 7] [13:21:59]ProducePacketName [13:21:59]name=ofd_packets/00028935 [13:21:59]OFD Sender: To server: pG, [13:21:59]CommunicateWithHost lk.salyk.kg:30040 [13:21:59]ConnectInit lk.salyk.kg [13:21:59]written 0, free lines is 4095 [13:21:59]Connected sock=7 [13:21: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 31 35 34 0E 01 00 00 FB 0A 06 01 7A 3F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 40 47 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 6A 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 8E 00 00 00 F4 03 04 00 FA 86 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 07 71 00 00 35 04 06 00 BD 7F 24 91 4B 87 15 DF D2 2D FD ED 36 0D [13:21:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 17 71 47 00 29 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 31 35 34 10 04 04 00 07 71 00 00 F4 03 04 00 A1 31 1A 66 B6 04 01 00 00 43 0C D4 47 56 82 7D BC [13:21:59]CommunicateWithHost err = 0 [13:21:59]CheckOFDResponse [13:21:59]1017 (14) - 77093643461234 [13:21:59]1041 (16) - 0000000000963154 [13:21:59]1040 (4) - 28935 [13:21:59]1012 (4) - 13.04.2024 07:17 [13:21:59]1206 (1) - 0 [13:21:59]OFD Sender: Remove packet 28935 [13:21:59]ProducePacketName [13:21:59]name=ofd_packets/00028935 [13:21:59]NVStorageDeleteData [13:21:59]Write to MH i2c: 01 00 00 E0 40 20 [13:21:59]Write i2c OK [13:21:59]MH_I2C_Read... [13:21:59]Read from MH i2c: 01 [13:21:59]MH_I2C_Read... [13:21:59]Read from MH i2c: 01 07 00 [13:21:59]MH_I2C_Read... [13:21:59]Read from MH i2c: 01 07 00 E0 40 00 00 00 00 00 B7 0C EA [13:21:59]RasterBufferAndPrint [13:21:59]line [13:21:59]line [13:21:59]line [13:21:59]line [13:21:59]line [13:21:59]written 0, free lines is 3259 [13:21:59]MH_Cut [13:21:59]Write to MH i2c: D1 01 00 E7 40 01 F9 [13:21:59]Write i2c OK [13:21:59]MH_I2C_Read... [13:21:59]Read from MH i2c: D1 [13:21:59]MH_I2C_Read... [13:21:59]Read from MH i2c: D1 01 00 [13:21:59]MH_I2C_Read... [13:21:59]Read from MH i2c: D1 01 00 E7 40 00 F8 [13:21:59]Write to MH i2c: 01 00 00 E8 40 28 [13:21:59]Write i2c OK [13:21:59]MH_I2C_Read... [13:22:00]OFD Sender: No OFD packet to send [13:22:00]*** Cut start [13:22:00]*** Partial cut [13:22:00]*** CUTSNS_PIN = 1 [13:22:00]*** CUTSNS_PIN = 0 [13:22:00]*** Brake cut motor [13:22:01]Read from MH i2c: 01 [13:22:01]MH_I2C_Read... [13:22:01]*** Stop cut motor [13:22:01]*** Cut end [13:22:01]Read from MH i2c: 01 07 00 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: 01 07 00 E8 40 00 00 00 00 00 FF 0F 3D [13:22:01]process_action close_receipt done [13:22:01]requested_data is exist [13:22:01]produce_requested_data [13:22:01]requested_item fm.sn is exist - process it [13:22:01]wFMCommunicate request_size=4 [13:22:01]MH_SAM_APDU [13:22:01]CAPDU: 80 11 00 00 [13:22:01]Write to MH i2c: E2 08 00 E9 40 80 11 00 00 00 00 00 00 A3 [13:22:01]Write i2c OK [13:22:01]MH_I2C_Read... [13:22:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:01]Read from MH i2c: E2 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: E2 17 00 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: E2 17 00 E9 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F2 [13:22:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:22:01]wFMCommunicate OK [13:22:01]requested_item fd.num is exist - process it [13:22:01]SAM_PROTO_GetFieldsCounters [13:22:01]wFMCommunicate request_size=4 [13:22:01]MH_SAM_APDU [13:22:01]CAPDU: 80 13 00 00 [13:22:01]Write to MH i2c: E2 08 00 EA 40 80 13 00 00 00 00 00 00 A6 [13:22:01]Write i2c OK [13:22:01]MH_I2C_Read... [13:22:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:01]Read from MH i2c: E2 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: E2 62 00 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: E2 62 00 EA 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 07 71 00 00 0E 04 04 00 73 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 79 [13:22: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 07 71 00 00 0E 04 04 00 73 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:22:01]wFMCommunicate OK [13:22:01]SAM_PROTO_GetFieldsCounters done [13:22:01]requested_item shift.num is exist - process it [13:22:01]requested_item shift.opened is exist - process it [13:22:01]req_shift_opened [13:22:01]FM_GetShiftState [13:22:01]SAM_PROTO_GetShiftState [13:22:01]wFMCommunicate request_size=4 [13:22:01]MH_SAM_APDU [13:22:01]CAPDU: 80 13 01 00 [13:22:01]Write to MH i2c: E2 08 00 EB 40 80 13 01 00 00 00 00 00 A8 [13:22:01]Write i2c OK [13:22:01]MH_I2C_Read... [13:22:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:01]Read from MH i2c: E2 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: E2 0E 00 [13:22:01]MH_I2C_Read... [13:22:01]Read from MH i2c: E2 0E 00 EB 40 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 C1 [13:22:01]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:22:01]wFMCommunicate OK [13:22:01]SAM_PROTO_GetShiftState done [13:22:01]FM_GetShiftState done [13:22:01]req_shift_opened done [13:22:01]requested_item shift.open_date is exist - process it [13:22:01]req_shift_open_date [13:22:01]req_shift_open_date done [13:22:01]produce_requested_data done [13:22:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28935,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [13:22:01]process_action_free close_receipt [13:22:01]json_value_free [13:22:01]json_value_free done [13:22:01]process_json_proto returns [13:22:01]Send response to host [13:22:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28935,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [13:22:01]free response buf [13:22:01]execute_script done [13:22:01]execute_script returns [13:22:01]free content buf [13:22:01]Sock 9.Close socket [13:22:01]Sock 9.Thread stoped [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:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:23:57]accept exits with 10 [13:23:57]New connection [13:23:57]New thread 3066928484 created [13:23:57]Thread 3066785124 joined [13:23:57]Waiting for new connection... [13:23:57] Sock 10.Parse request [13:23:57]Sock 10.Check first char [13:23:57]Sock 10.First char is OK [13:23:57]request: POST /json_proto HTTP/1.0 [13:23:57]Method: POST [13:23:57]URL: /json_proto [13:23:57]Method is POST - this is cgi request [13:23:57]url: /json_proto [13:23:57]query_string will be loaded in cgi processing [13:23:57]execute_cgi json_proto POST (null) [13:23:57]execute_cgi path=json_proto method=POST [13:23:57]POST find Content-Length [13:23:57]Host: 172.17.33.3:8080 [13:23:57]Content-Length: 817 [13:23:57]Content-Type: application/json [13:23:57] [13:23:57]POST finish read [13:23:57]Found Content-Length = 817 [13:23:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347293", "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" : 72.50, "quantity" : 10.000, "sum" : 725.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 725.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:57]execute_script... [13:23: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)347293", "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" : 72.50, "quantity" : 10.000, "sum" : 725.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 725.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:57]POST & json_proto [13:23:57]process_json_proto [13:23:57]json parsed OK: [13:23:57]protocol is kg_v1.0 [13:23:57]action value=close_receipt [13:23:57]process_action close_receipt [13:23:57]cmd_close_receipt [13:23:57]MH_GetDate [13:23:57]Write to MH i2c: F0 00 00 EC 40 1B [13:23:57]Write i2c OK [13:23:57]MH_I2C_Read... [13:23:57]Read from MH i2c: F0 [13:23:57]MH_I2C_Read... [13:23:57]Read from MH i2c: F0 09 00 [13:23:57]MH_I2C_Read... [13:23:57]Read from MH i2c: F0 09 00 EC 40 00 72 87 1A 66 23 5B 8F 65 0F [13:23:57]GetLastDocTimeStamp 1713014522 [13:23:57]current date 1713014642 [13:23:57]FM_GetShiftState [13:23:57]SAM_PROTO_GetShiftState [13:23:57]wFMCommunicate request_size=4 [13:23:57]MH_SAM_APDU [13:23:57]CAPDU: 80 13 01 00 [13:23:57]Write to MH i2c: E2 08 00 ED 40 80 13 01 00 00 00 00 00 AA [13:23:57]Write i2c OK [13:23:57]MH_I2C_Read... [13:23:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:57]Read from MH i2c: E2 [13:23:57]MH_I2C_Read... [13:23:57]Read from MH i2c: E2 0E 00 [13:23:57]MH_I2C_Read... [13:23:57]Read from MH i2c: E2 0E 00 ED 40 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 C3 [13:23:57]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:23:57]wFMCommunicate OK [13:23:57]SAM_PROTO_GetShiftState done [13:23:57]FM_GetShiftState done [13:23:57]opened in 1712967615 [13:23:57]opened+sec_in_day 1713054015 [13:23:57]quantity*price = 72500 [13:23:57]sum+1 = 72501 [13:23:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 725.00 НСП 1% : 6.42 НДС 12% : 76.99 Наличными: 0.00 Безнал.: 725.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 143 13.04.2024 13:24 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 28936 ФПД: 193672993972903 1/tax-web-control/client/api/v1/ticket?date=20240413T132402&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28936&fm=193672993972903&tin=02508201610067®Number=0000138879044617&sum=72500 [13:23:58]StoreToDocumentArchive [13:23:58]shift 115 fd 28936 [13:23:58]save to /storage/0115/doc_00028936 [13:23:58]save last doc name /storage/0115/doc_00028936 to /storage/kkm_last_doc_name [13:23:58]save OK [13:23:58]Clear old archive folders... [13:23:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:23:58]tlvbuf is 0121DEA0 [13:23:58]SAM_PROTO_ClearQueue [13:23:58]wFMCommunicate request_size=4 [13:23:58]MH_SAM_APDU [13:23:58]CAPDU: 80 09 00 00 [13:23:58]Write to MH i2c: E2 08 00 FA 40 80 09 00 00 00 00 00 00 AC [13:23:58]Write i2c OK [13:23:58]MH_I2C_Read... [13:23:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:58]Read from MH i2c: E2 [13:23:58]MH_I2C_Read... [13:23:58]Read from MH i2c: E2 03 00 [13:23:58]MH_I2C_Read... [13:23:58]Read from MH i2c: E2 03 00 FA 40 00 90 00 AE [13:23:58]RAPDU: 90 00 [13:23:58]wFMCommunicate OK [13:23:58]SAM_PROTO_ClearQueue done [13:23:58]KKMCreateOFDPacket [13:23:58]OFDProtocolAddRootSTLVToBuf [13:23:58]FM_MakeSignedData [13:23:58]FM_MakeSignedData [13:23:58]SAM_PROTO_SignData [13:23:58]wFMCommunicate request_size=4 [13:23:58]MH_SAM_APDU [13:23:58]CAPDU: 80 0D 01 02 [13:23:58]Write to MH i2c: E2 08 00 FB 40 80 0D 01 02 00 00 00 00 B4 [13:23:58]Write i2c OK [13:23:58]MH_I2C_Read... [13:23:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:58]Read from MH i2c: E2 [13:23:58]MH_I2C_Read... [13:23:58]Read from MH i2c: E2 03 00 [13:23:58]MH_I2C_Read... [13:23:58]Read from MH i2c: E2 03 00 FB 40 00 90 00 AF [13:23:58]RAPDU: 90 00 [13:23:58]wFMCommunicate OK [13:23:58]wFMCommunicate request_size=255 [13:23:58]MH_SAM_APDU [13:23: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 10 27 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 34 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 1B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 72 87 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 08 71 00 00 35 04 06 00 B0 [13:23:58]Write to MH i2c: E2 02 01 FC 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 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 52 1C 00 00 00 00 13 04 06 00 34 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 1B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 72 87 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 08 71 00 00 35 04 06 00 B0 00 00 CD [13:23:58]Write i2c OK [13:23:58]MH_I2C_Read... [13:23:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:59]Read from MH i2c: E2 [13:23:59]MH_I2C_Read... [13:23:59]Read from MH i2c: E2 03 00 [13:23:59]MH_I2C_Read... [13:23:59]Read from MH i2c: E2 03 00 FC 40 00 90 00 B0 [13:23:59]RAPDU: 90 00 [13:23:59]wFMCommunicate OK [13:23:59]wFMCommunicate request_size=10 [13:23:59]MH_SAM_APDU [13:23:59]CAPDU: 80 0D 02 02 05 25 02 02 22 A7 [13:23:59]Write to MH i2c: E2 0D 00 FD 40 80 0D 02 02 05 00 25 02 02 22 A7 00 00 B3 [13:23:59]Write i2c OK [13:23:59]MH_I2C_Read... [13:23:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:59]Read from MH i2c: E2 [13:23:59]MH_I2C_Read... [13:23:59]Read from MH i2c: E2 03 00 [13:23:59]MH_I2C_Read... [13:23:59]Read from MH i2c: E2 03 00 FD 40 00 90 00 B1 [13:23:59]RAPDU: 90 00 [13:23:59]wFMCommunicate OK [13:23:59]wFMCommunicate request_size=4 [13:23:59]MH_SAM_APDU [13:23:59]CAPDU: 80 0D 03 02 [13:23:59]Write to MH i2c: E2 08 00 FE 40 80 0D 03 02 00 00 00 00 B9 [13:23:59]Write i2c OK [13:23:59]MH_I2C_Read... [13:23:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:59]Read from MH i2c: E2 [13:23:59]MH_I2C_Read... [13:23:59]Read from MH i2c: E2 0B 00 [13:23:59]MH_I2C_Read... [13:23:59]Read from MH i2c: E2 0B 00 FE 40 00 BE E1 2B 95 95 5C FF 9C 90 00 A5 [13:23:59]RAPDU: BE E1 2B 95 95 5C FF 9C 90 00 [13:23:59]wFMCommunicate OK [13:23:59]SAM_PROTO_SignData done [13:23:59]FM_MakeSignedData done [13:23:59]CreateOFDProtocolMessage [13:23:59]wFMCommunicate request_size=4 [13:23:59]MH_SAM_APDU [13:23:59]CAPDU: 80 11 00 00 [13:23:59]Write to MH i2c: E2 08 00 FF 40 80 11 00 00 00 00 00 00 B9 [13:23:59]Write i2c OK [13:23:59]MH_I2C_Read... [13:23:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:59]Read from MH i2c: E2 [13:23:59]MH_I2C_Read... [13:23:59]Read from MH i2c: E2 17 00 [13:23:59]MH_I2C_Read... [13:23:59]Read from MH i2c: E2 17 00 FF 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 08 [13:23:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:23:59]wFMCommunicate OK [13:23:59]CreateOFDProtocolMessage done [13:23:59]OFDSenderStorePacket 28936 [13:23:59]StoreOFDPacket docnum=28936 [13:23:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A9 D7 07 01 E6 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 10 27 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 34 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 1B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 72 87 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 08 71 00 00 35 04 06 00 B0 25 02 02 22 A7 BE E1 2B 95 95 5C FF 9C [13:23:59]CheckFolder [13:23:59]dirname=/storage/ofd_packets [13:23:59]CheckFolder done [13:23:59]ProducePacketName [13:23:59]name=ofd_packets/00028936 [13:23:59]NVStorageSaveData ofd_packets/00028936 [13:23:59]File name is /storage/ofd_packets/00028936 [13:23:59]Write 301 bytes [13:23:59]NVStorageSaveData done [13:23:59]OFDSenderStorePacket done [13:23:59]KKMCreateOFDPacket done [13:23:59]NVStorageSaveData kkm_last_timestamp [13:23:59]File name is /storage/kkm_last_timestamp [13:23:59]Write 4 bytes [13:23:59]NVStorageSaveData done [13:23:59]ExternCall_PrintAddStr [13:23:59]wPrintStart [13:23:59]Write to MH i2c: 01 00 00 00 41 41 [13:23:59]Write i2c OK [13:23:59]MH_I2C_Read... [13:23:59]Read from MH i2c: 01 [13:23:59]MH_I2C_Read... [13:23:59]Read from MH i2c: 01 07 00 [13:23:59]MH_I2C_Read... [13:23:59]Read from MH i2c: 01 07 00 00 41 00 00 00 00 00 FF 0F 56 [13:23:59]RasterBufferAndPrint [13:23:59]line Счет N : (1)347293 [13:23:59]line ИНН: 02508201610067 [13:23:59]line Контрольно-Кассовый Чек [13:23:59]line ПРОДАЖА [13:23:59]line ТРК (МРК, ГНК) : 33 [13:23:59]line Товар: 2710124500 [13:23:59]line Аи-95-К-5 [13:23:59]line 10.000 * 72.50 [13:23:59]line = 725.00 [13:23:59]line НДС 12% НСП 1% [13:23:59]line > о реализуемом товаре [13:23:59]line ИТОГО: 725.00 [13:23:59]line НСП 1% : 6.42 [13:23:59]line НДС 12% : 76.99 [13:23:59]line Наличными: 0.00 [13:23:59]line Безнал.: 725.00 [13:23:59]line Место: АЗС № 108 "Партнер Нефть" [13:23:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:23:59]line СНО: Общий режим [13:23:59]line Чек 143 13.04.2024 13:24 [13:23:59]line Смена: 115 ФФД: 1.0 [13:23:59]line ЗНМ: 0300000027 [13:23:59]line РНМ: 0000138879044617 [13:23:59]line Версия ККМ: 001 [13:23:59]line Платежная система: Бакай Банк [13:23:59]line ФМ: 0000000000963154 [13:23:59]line ФД: 28936 [13:23:59]line ФПД: 193672993972903 [13:23:59]line 1/tax-web-control/client/api/v1/ticket?date=20240413T132402&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28936&fm=193672993972903&tin=02508201610067®Number=0000138879044617&sum=72500 [13:23:59]OFD Sender: Processing packet 28936 [packets to send 8, broken 7] [13:23:59]ProducePacketName [13:23:59]name=ofd_packets/00028936 [13:23:59]OFD Sender: To server: pG, [13:23:59]CommunicateWithHost lk.salyk.kg:30040 [13:23:59]ConnectInit lk.salyk.kg [13:23:59]written 0, free lines is 4095 [13:23:59]Connected sock=9 [13:23: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 31 35 34 0F 01 00 00 A9 D7 07 01 E6 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 10 27 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 34 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 1B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 72 87 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 08 71 00 00 35 04 06 00 B0 25 02 02 22 A7 BE E1 2B 95 95 5C FF 9C [13:23:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 33 2E 47 00 31 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 08 71 00 00 F4 03 04 00 19 32 1A 66 B6 04 01 00 00 19 6E F2 EF 69 3A 5B 4A [13:23:59]CommunicateWithHost err = 0 [13:23:59]CheckOFDResponse [13:23:59]1017 (14) - 77093643461234 [13:23:59]1041 (16) - 0000000000963154 [13:23:59]1040 (4) - 28936 [13:23:59]1012 (4) - 13.04.2024 07:19 [13:23:59]1206 (1) - 0 [13:23:59]OFD Sender: Remove packet 28936 [13:23:59]ProducePacketName [13:23:59]name=ofd_packets/00028936 [13:23:59]NVStorageDeleteData [13:24:00]Write to MH i2c: 01 00 00 29 41 6A [13:24:00]Write i2c OK [13:24:00]MH_I2C_Read... [13:24:00]Read from MH i2c: 01 [13:24:00]MH_I2C_Read... [13:24:00]Read from MH i2c: 01 07 00 [13:24:00]MH_I2C_Read... [13:24:00]Read from MH i2c: 01 07 00 29 41 00 00 00 00 00 D9 0C 56 [13:24:00]RasterBufferAndPrint [13:24:00]line [13:24:00]line [13:24:00]line [13:24:00]line [13:24:00]line [13:24:00]written 0, free lines is 3295 [13:24:00]MH_Cut [13:24:00]Write to MH i2c: D1 01 00 30 41 01 43 [13:24:00]Write i2c OK [13:24:00]MH_I2C_Read... [13:24:00]Read from MH i2c: D1 [13:24:00]MH_I2C_Read... [13:24:00]Read from MH i2c: D1 01 00 [13:24:00]MH_I2C_Read... [13:24:00]Read from MH i2c: D1 01 00 30 41 00 42 [13:24:00]Write to MH i2c: 01 00 00 31 41 72 [13:24:00]Write i2c OK [13:24:00]MH_I2C_Read... [13:24:00]OFD Sender: No OFD packet to send [13:24:00]*** Cut start [13:24:00]*** Partial cut [13:24:00]*** CUTSNS_PIN = 1 [13:24:01]*** CUTSNS_PIN = 0 [13:24:01]*** Brake cut motor [13:24:01]Read from MH i2c: 01 [13:24:01]MH_I2C_Read... [13:24:01]*** Stop cut motor [13:24:01]*** Cut end [13:24:01]Read from MH i2c: 01 07 00 [13:24:01]MH_I2C_Read... [13:24:01]Read from MH i2c: 01 07 00 31 41 00 00 00 00 00 FF 0F 87 [13:24:01]process_action close_receipt done [13:24:01]requested_data is exist [13:24:01]produce_requested_data [13:24:01]requested_item fm.sn is exist - process it [13:24:01]wFMCommunicate request_size=4 [13:24:01]MH_SAM_APDU [13:24:01]CAPDU: 80 11 00 00 [13:24:01]Write to MH i2c: E2 08 00 32 41 80 11 00 00 00 00 00 00 ED [13:24:01]Write i2c OK [13:24:01]MH_I2C_Read... [13:24:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:01]Read from MH i2c: E2 [13:24:01]MH_I2C_Read... [13:24:01]Read from MH i2c: E2 17 00 [13:24:01]MH_I2C_Read... [13:24:01]Read from MH i2c: E2 17 00 32 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3C [13:24:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:24:01]wFMCommunicate OK [13:24:01]requested_item fd.num is exist - process it [13:24:01]SAM_PROTO_GetFieldsCounters [13:24:01]wFMCommunicate request_size=4 [13:24:01]MH_SAM_APDU [13:24:01]CAPDU: 80 13 00 00 [13:24:01]Write to MH i2c: E2 08 00 33 41 80 13 00 00 00 00 00 00 F0 [13:24:01]Write i2c OK [13:24:01]MH_I2C_Read... [13:24:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:01]Read from MH i2c: E2 [13:24:01]MH_I2C_Read... [13:24:01]Read from MH i2c: E2 62 00 [13:24:01]MH_I2C_Read... [13:24:01]Read from MH i2c: E2 62 00 33 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 08 71 00 00 0E 04 04 00 73 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 C7 [13:24: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 08 71 00 00 0E 04 04 00 73 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:24:01]wFMCommunicate OK [13:24:01]SAM_PROTO_GetFieldsCounters done [13:24:01]requested_item shift.num is exist - process it [13:24:01]requested_item shift.opened is exist - process it [13:24:01]req_shift_opened [13:24:01]FM_GetShiftState [13:24:01]SAM_PROTO_GetShiftState [13:24:01]wFMCommunicate request_size=4 [13:24:01]MH_SAM_APDU [13:24:01]CAPDU: 80 13 01 00 [13:24:01]Write to MH i2c: E2 08 00 34 41 80 13 01 00 00 00 00 00 F2 [13:24:01]Write i2c OK [13:24:01]MH_I2C_Read... [13:24:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:01]Read from MH i2c: E2 [13:24:01]MH_I2C_Read... [13:24:01]Read from MH i2c: E2 0E 00 [13:24:01]MH_I2C_Read... [13:24:01]Read from MH i2c: E2 0E 00 34 41 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 0B [13:24:01]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:24:01]wFMCommunicate OK [13:24:01]SAM_PROTO_GetShiftState done [13:24:01]FM_GetShiftState done [13:24:01]req_shift_opened done [13:24:01]requested_item shift.open_date is exist - process it [13:24:01]req_shift_open_date [13:24:01]req_shift_open_date done [13:24:01]produce_requested_data done [13:24:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28936,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [13:24:01]process_action_free close_receipt [13:24:01]json_value_free [13:24:01]json_value_free done [13:24:01]process_json_proto returns [13:24:01]Send response to host [13:24:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28936,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [13:24:01]free response buf [13:24:01]execute_script done [13:24:01]execute_script returns [13:24:01]free content buf [13:24:01]Sock 10.Close socket [13:24:01]Sock 10.Thread stoped [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]accept exits with 7 [13:26:20]New connection [13:26:20]New thread 3066785124 created [13:26:20]Thread 3066928484 joined [13:26:20]Waiting for new connection... [13:26:20] Sock 7.Parse request [13:26:20]Sock 7.Check first char [13:26:20]Sock 7.First char is OK [13:26:20]request: POST /json_proto HTTP/1.0 [13:26:20]Method: POST [13:26:20]URL: /json_proto [13:26:20]Method is POST - this is cgi request [13:26:20]url: /json_proto [13:26:20]query_string will be loaded in cgi processing [13:26:20]execute_cgi json_proto POST (null) [13:26:20]execute_cgi path=json_proto method=POST [13:26:20]POST find Content-Length [13:26:20]Host: 172.17.33.3:8080 [13:26:20]Content-Length: 1204 [13:26:20]Content-Type: application/json [13:26:20] [13:26:20]POST finish read [13:26:20]Found Content-Length = 1204 [13:26:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347294\u000A13.04.2024 13:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.720 x 72.40\u000A\u0418\u0422\u041E\u0413: 1500.13\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65563\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:20]execute_script... [13:26:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347294\u000A13.04.2024 13:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.720 x 72.40\u000A\u0418\u0422\u041E\u0413: 1500.13\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65563\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:20]POST & json_proto [13:26:20]process_json_proto [13:26:20]json parsed OK: [13:26:20]protocol is kg_v1.0 [13:26:20]action value=print_text [13:26:20]process_action print_text [13:26:20]cmd_print_text [13:26:20]ExternCall_PrintAddStr [13:26:20]wPrintStart [13:26:20]Write to MH i2c: 01 00 00 35 41 76 [13:26:20]Write i2c OK [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: 01 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: 01 07 00 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: 01 07 00 35 41 00 00 00 00 00 FF 0F 8B [13:26:20]RasterBufferAndPrint [13:26:20]line *****ТОВАРНЫЙ ЧЕК***** [13:26:20]line АЗС 108 [13:26:20]line Партнер нефть [13:26:20]line 02508201610067 [13:26:20]line Кассир : Шадыканова Ж. [13:26:20]line Счет N : (1)347294 [13:26:20]line 13.04.2024 13:08 [13:26:20]line ПРОДАЖА [13:26:20]line ТРК (МРК, ГНК): 51 [13:26:20]line Вид ГСМ : 2710194210 [13:26:20]line ДТ-К-5 [13:26:20]line 20.720 x 72.40 [13:26:20]line ИТОГ: 1500.13 [13:26:20]line Тип оплаты: Талоны: Топливная Карта [13:26:20]line 65563 [13:26:20]line ______________________ [13:26:20]line (подпись) [13:26:20]written 0, free lines is 4095 [13:26:20]Write to MH i2c: 01 00 00 4A 41 8B [13:26:20]Write i2c OK [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: 01 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: 01 07 00 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: 01 07 00 4A 41 00 00 00 00 00 F3 0D 92 [13:26:20]RasterBufferAndPrint [13:26:20]line [13:26:20]line [13:26:20]line [13:26:20]line [13:26:20]line [13:26:20]written 0, free lines is 3572 [13:26:20]MH_Cut [13:26:20]Write to MH i2c: D1 01 00 51 41 01 64 [13:26:20]Write i2c OK [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: D1 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: D1 01 00 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: D1 01 00 51 41 00 63 [13:26:20]Write to MH i2c: 01 00 00 52 41 93 [13:26:20]Write i2c OK [13:26:20]MH_I2C_Read... [13:26:20]OFD Sender: No OFD packet to send [13:26:20]*** Cut start [13:26:20]*** Partial cut [13:26:20]*** CUTSNS_PIN = 1 [13:26:20]*** CUTSNS_PIN = 0 [13:26:21]*** Brake cut motor [13:26:21]Read from MH i2c: 01 [13:26:21]MH_I2C_Read... [13:26:21]*** Stop cut motor [13:26:21]*** Cut end [13:26:21]Read from MH i2c: 01 07 00 [13:26:21]MH_I2C_Read... [13:26:21]Read from MH i2c: 01 07 00 52 41 00 00 00 00 00 FF 0F A8 [13:26:21]process_action print_text done [13:26:21]requested_data is exist [13:26:21]produce_requested_data [13:26:21]requested_item fm.sn is exist - process it [13:26:21]wFMCommunicate request_size=4 [13:26:21]MH_SAM_APDU [13:26:21]CAPDU: 80 11 00 00 [13:26:21]Write to MH i2c: E2 08 00 53 41 80 11 00 00 00 00 00 00 0E [13:26:21]Write i2c OK [13:26:21]MH_I2C_Read... [13:26:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:21]Read from MH i2c: E2 [13:26:21]MH_I2C_Read... [13:26:21]Read from MH i2c: E2 17 00 [13:26:21]MH_I2C_Read... [13:26:21]Read from MH i2c: E2 17 00 53 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5D [13:26:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:26:21]wFMCommunicate OK [13:26:21]requested_item fd.num is exist - process it [13:26:21]SAM_PROTO_GetFieldsCounters [13:26:21]wFMCommunicate request_size=4 [13:26:21]MH_SAM_APDU [13:26:21]CAPDU: 80 13 00 00 [13:26:21]Write to MH i2c: E2 08 00 54 41 80 13 00 00 00 00 00 00 11 [13:26:21]Write i2c OK [13:26:21]MH_I2C_Read... [13:26:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:21]Read from MH i2c: E2 [13:26:21]MH_I2C_Read... [13:26:21]Read from MH i2c: E2 62 00 [13:26:21]MH_I2C_Read... [13:26:21]Read from MH i2c: E2 62 00 54 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 08 71 00 00 0E 04 04 00 73 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 E8 [13: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 08 71 00 00 0E 04 04 00 73 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:26:21]wFMCommunicate OK [13:26:21]SAM_PROTO_GetFieldsCounters done [13:26:21]requested_item shift.num is exist - process it [13:26:21]requested_item shift.opened is exist - process it [13:26:21]req_shift_opened [13:26:21]FM_GetShiftState [13:26:21]SAM_PROTO_GetShiftState [13:26:21]wFMCommunicate request_size=4 [13:26:21]MH_SAM_APDU [13:26:21]CAPDU: 80 13 01 00 [13:26:21]Write to MH i2c: E2 08 00 55 41 80 13 01 00 00 00 00 00 13 [13:26:21]Write i2c OK [13:26:21]MH_I2C_Read... [13:26:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:21]Read from MH i2c: E2 [13:26:21]MH_I2C_Read... [13:26:21]Read from MH i2c: E2 0E 00 [13:26:21]MH_I2C_Read... [13:26:21]Read from MH i2c: E2 0E 00 55 41 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 2C [13:26:21]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:26:21]wFMCommunicate OK [13:26:21]SAM_PROTO_GetShiftState done [13:26:21]FM_GetShiftState done [13:26:21]req_shift_opened done [13:26:21]requested_item shift.open_date is exist - process it [13:26:21]req_shift_open_date [13:26:21]req_shift_open_date done [13:26:21]produce_requested_data done [13:26:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28936,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [13:26:21]process_action_free print_text [13:26:21]json_value_free [13:26:21]json_value_free done [13:26:21]process_json_proto returns [13:26:21]Send response to host [13:26:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28936,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [13:26:21]free response buf [13:26:21]execute_script done [13:26:21]execute_script returns [13:26:21]free content buf [13:26:21]Sock 7.Close socket [13:26:21]Sock 7.Thread stoped [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:55]OFD Sender: No OFD packet to send [13:27:00]OFD Sender: No OFD packet to send [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:35]OFD Sender: No OFD packet to send [13:27:40]OFD Sender: No OFD packet to send [13:27:45]OFD Sender: No OFD packet to send [13:27:50]OFD Sender: No OFD packet to send [13:27:55]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:30]OFD Sender: No OFD packet to send [13:28:35]OFD Sender: No OFD packet to send [13:28:40]OFD Sender: No OFD packet to send [13:28:45]OFD Sender: No OFD packet to send [13:28:50]OFD Sender: No OFD packet to send [13:28:55]OFD Sender: No OFD packet to send [13:29:00]OFD Sender: No OFD packet to send [13:29:05]OFD Sender: No OFD packet to send [13:29:09]accept exits with 9 [13:29:09]New connection [13:29:09]New thread 3066928484 created [13:29:09]Thread 3066785124 joined [13:29:09]Waiting for new connection... [13:29:09] Sock 9.Parse request [13:29:09]Sock 9.Check first char [13:29:09]Sock 9.First char is OK [13:29:09]request: POST /json_proto HTTP/1.0 [13:29:09]Method: POST [13:29:09]URL: /json_proto [13:29:09]Method is POST - this is cgi request [13:29:09]url: /json_proto [13:29:09]query_string will be loaded in cgi processing [13:29:09]execute_cgi json_proto POST (null) [13:29:09]execute_cgi path=json_proto method=POST [13:29:09]POST find Content-Length [13:29:09]Host: 172.17.33.3:8080 [13:29:09]Content-Length: 685 [13:29:09]Content-Type: application/json [13:29:09] [13:29:09]POST finish read [13:29:09]Found Content-Length = 685 [13:29:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "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:29:09]execute_script... [13:29: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)347295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "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:29:09]POST & json_proto [13:29:09]process_json_proto [13:29:09]json parsed OK: [13:29:09]protocol is kg_v1.0 [13:29:09]action value=close_receipt [13:29:09]process_action close_receipt [13:29:09]cmd_close_receipt [13:29:09]MH_GetDate [13:29:09]Write to MH i2c: F0 00 00 56 41 86 [13:29:09]Write i2c OK [13:29:09]MH_I2C_Read... [13:29:09]Read from MH i2c: F0 [13:29:09]MH_I2C_Read... [13:29:09]Read from MH i2c: F0 09 00 [13:29:09]MH_I2C_Read... [13:29:09]Read from MH i2c: F0 09 00 56 41 00 A9 88 1A 66 23 5B 8F 65 B2 [13:29:09]GetLastDocTimeStamp 1713014642 [13:29:09]current date 1713014953 [13:29:09]FM_GetShiftState [13:29:09]SAM_PROTO_GetShiftState [13:29:09]wFMCommunicate request_size=4 [13:29:09]MH_SAM_APDU [13:29:09]CAPDU: 80 13 01 00 [13:29:09]Write to MH i2c: E2 08 00 57 41 80 13 01 00 00 00 00 00 15 [13:29:09]Write i2c OK [13:29:09]MH_I2C_Read... [13:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:09]Read from MH i2c: E2 [13:29:09]MH_I2C_Read... [13:29:09]Read from MH i2c: E2 0E 00 [13:29:09]MH_I2C_Read... [13:29:09]Read from MH i2c: E2 0E 00 57 41 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 2E [13:29:09]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:29:09]wFMCommunicate OK [13:29:09]SAM_PROTO_GetShiftState done [13:29:09]FM_GetShiftState done [13:29:09]opened in 1712967615 [13:29:09]opened+sec_in_day 1713054015 [13:29:09]quantity*price = 100016 [13:29:09]sum+1 = 100017 [13:29:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 144 13.04.2024 13:29 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28937 ФПД: 120804396440485 1/tax-web-control/client/api/v1/ticket?date=20240413T132914&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28937&fm=120804396440485&tin=02508201610067®Number=0000138879044617&sum=100000 [13:29:10]StoreToDocumentArchive [13:29:10]shift 115 fd 28937 [13:29:10]save to /storage/0115/doc_00028937 [13:29:10]save last doc name /storage/0115/doc_00028937 to /storage/kkm_last_doc_name [13:29:10]save OK [13:29:10]Clear old archive folders... [13:29:10]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:29:10]tlvbuf is 011ECC80 [13:29:10]SAM_PROTO_ClearQueue [13:29:10]wFMCommunicate request_size=4 [13:29:10]MH_SAM_APDU [13:29:10]CAPDU: 80 09 00 00 [13:29:10]Write to MH i2c: E2 08 00 64 41 80 09 00 00 00 00 00 00 17 [13:29:10]Write i2c OK [13:29:10]MH_I2C_Read... [13:29:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:10]Read from MH i2c: E2 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: E2 03 00 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: E2 03 00 64 41 00 90 00 19 [13:29:10]RAPDU: 90 00 [13:29:10]wFMCommunicate OK [13:29:10]SAM_PROTO_ClearQueue done [13:29:10]KKMCreateOFDPacket [13:29:10]OFDProtocolAddRootSTLVToBuf [13:29:10]FM_MakeSignedData [13:29:10]FM_MakeSignedData [13:29:10]SAM_PROTO_SignData [13:29:10]wFMCommunicate request_size=4 [13:29:10]MH_SAM_APDU [13:29:10]CAPDU: 80 0D 01 02 [13:29:10]Write to MH i2c: E2 08 00 65 41 80 0D 01 02 00 00 00 00 1F [13:29:10]Write i2c OK [13:29:10]MH_I2C_Read... [13:29:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:10]Read from MH i2c: E2 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: E2 03 00 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: E2 03 00 65 41 00 90 00 1A [13:29:10]RAPDU: 90 00 [13:29:10]wFMCommunicate OK [13:29:10]wFMCommunicate request_size=255 [13:29:10]MH_SAM_APDU [13: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 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 AA 88 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 09 71 00 00 35 04 06 00 6D DE [13:29:10]Write to MH i2c: E2 02 01 66 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 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 AA 88 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 09 71 00 00 35 04 06 00 6D DE 00 00 2F [13:29:10]Write i2c OK [13:29:10]MH_I2C_Read... [13:29:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:10]Read from MH i2c: E2 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: E2 03 00 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: E2 03 00 66 41 00 90 00 1B [13:29:10]RAPDU: 90 00 [13:29:10]wFMCommunicate OK [13:29:10]wFMCommunicate request_size=9 [13:29:10]MH_SAM_APDU [13:29:10]CAPDU: 80 0D 02 02 04 F7 23 1B A5 [13:29:10]Write to MH i2c: E2 0C 00 67 41 80 0D 02 02 04 00 F7 23 1B A5 00 00 04 [13:29:10]Write i2c OK [13:29:10]MH_I2C_Read... [13:29:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:10]Read from MH i2c: E2 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: E2 03 00 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: E2 03 00 67 41 00 90 00 1C [13:29:10]RAPDU: 90 00 [13:29:10]wFMCommunicate OK [13:29:10]wFMCommunicate request_size=4 [13:29:10]MH_SAM_APDU [13:29:10]CAPDU: 80 0D 03 02 [13:29:10]Write to MH i2c: E2 08 00 68 41 80 0D 03 02 00 00 00 00 24 [13:29:10]Write i2c OK [13:29:10]MH_I2C_Read... [13:29:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:10]Read from MH i2c: E2 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: E2 0B 00 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: E2 0B 00 68 41 00 74 E2 5E E7 64 41 BA 2A 90 00 49 [13:29:10]RAPDU: 74 E2 5E E7 64 41 BA 2A 90 00 [13:29:10]wFMCommunicate OK [13:29:10]SAM_PROTO_SignData done [13:29:10]FM_MakeSignedData done [13:29:10]CreateOFDProtocolMessage [13:29:10]wFMCommunicate request_size=4 [13:29:10]MH_SAM_APDU [13:29:10]CAPDU: 80 11 00 00 [13:29:10]Write to MH i2c: E2 08 00 69 41 80 11 00 00 00 00 00 00 24 [13:29:10]Write i2c OK [13:29:10]MH_I2C_Read... [13:29:10]OFD Sender: No OFD packet to send [13:29:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:10]Read from MH i2c: E2 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: E2 17 00 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: E2 17 00 69 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 73 [13:29:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:29:10]wFMCommunicate OK [13:29:10]CreateOFDProtocolMessage done [13:29:10]OFDSenderStorePacket 28937 [13:29:10]StoreOFDPacket docnum=28937 [13:29:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 D9 4E 06 01 E7 DA 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 AA 88 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 09 71 00 00 35 04 06 00 6D DE F7 23 1B A5 74 E2 5E E7 64 41 BA 2A [13:29:10]CheckFolder [13:29:10]dirname=/storage/ofd_packets [13:29:10]CheckFolder done [13:29:10]ProducePacketName [13:29:10]name=ofd_packets/00028937 [13:29:10]NVStorageSaveData ofd_packets/00028937 [13:29:10]File name is /storage/ofd_packets/00028937 [13:29:10]Write 300 bytes [13:29:10]NVStorageSaveData done [13:29:10]OFDSenderStorePacket done [13:29:10]KKMCreateOFDPacket done [13:29:10]NVStorageSaveData kkm_last_timestamp [13:29:10]File name is /storage/kkm_last_timestamp [13:29:10]Write 4 bytes [13:29:10]NVStorageSaveData done [13:29:10]ExternCall_PrintAddStr [13:29:10]wPrintStart [13:29:10]Write to MH i2c: 01 00 00 6A 41 AB [13:29:10]Write i2c OK [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: 01 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: 01 07 00 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: 01 07 00 6A 41 00 00 00 00 00 FF 0F C0 [13:29:10]RasterBufferAndPrint [13:29:10]line Счет N : (1)347295 [13:29:10]line ИНН: 02508201610067 [13:29:10]line Контрольно-Кассовый Чек [13:29:10]line ПРОДАЖА [13:29:10]line ТРК (МРК, ГНК) : 71 [13:29:10]line Товар: 2711129700 [13:29:10]line ГАЗ-К-5 [13:29:10]line 30.400 * 32.90 [13:29:10]line = 1000.16 [13:29:10]line НДС 12% НСП 1% [13:29:10]line > о реализуемом товаре [13:29:10]line ОКРУГЛЕНИЕ: -0.16 [13:29:10]line ИТОГО: 1000.00 [13:29:10]line Внесено: 1000.00 [13:29:10]line СДАЧА: 0.00 [13:29:10]line НСП 1% : 8.85 [13:29:10]line НДС 12% : 106.21 [13:29:10]line Наличными: 1000.00 [13:29:10]line Безнал.: 0.00 [13:29:10]line Место: АЗС № 108 "Партнер Нефть" [13:29:10]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:29:10]line СНО: Общий режим [13:29:10]line Чек 144 13.04.2024 13:29 [13:29:10]line Смена: 115 ФФД: 1.0 [13:29:10]line ЗНМ: 0300000027 [13:29:10]line РНМ: 0000138879044617 [13:29:10]line Версия ККМ: 001 [13:29:10]line ФМ: 0000000000963154 [13:29:10]line ФД: 28937 [13:29:10]line ФПД: 120804396440485 [13:29:11]line 1/tax-web-control/client/api/v1/ticket?date=20240413T132914&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28937&fm=120804396440485&tin=02508201610067®Number=0000138879044617&sum=100000 [13:29:11]OFD Sender: Processing packet 28937 [packets to send 8, broken 7] [13:29:11]ProducePacketName [13:29:11]name=ofd_packets/00028937 [13:29:11]OFD Sender: To server: pG, [13:29:11]CommunicateWithHost lk.salyk.kg:30040 [13:29:11]ConnectInit lk.salyk.kg [13:29:11]written 0, free lines is 4095 [13:29:11]Connected sock=10 [13: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 31 35 34 0E 01 00 00 D9 4E 06 01 E7 DA 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 AA 88 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 09 71 00 00 35 04 06 00 6D DE F7 23 1B A5 74 E2 5E E7 64 41 BA 2A [13: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 31 35 34 4F 00 00 00 5D 34 47 00 2E 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 31 35 34 10 04 04 00 09 71 00 00 F4 03 04 00 51 33 1A 66 B6 04 01 00 00 22 99 DE 08 67 3E 88 8F [13:29:11]CommunicateWithHost err = 0 [13:29:11]CheckOFDResponse [13:29:11]1017 (14) - 77093643461234 [13:29:11]1041 (16) - 0000000000963154 [13:29:11]1040 (4) - 28937 [13:29:11]1012 (4) - 13.04.2024 07:25 [13:29:11]1206 (1) - 0 [13:29:11]OFD Sender: Remove packet 28937 [13:29:11]ProducePacketName [13:29:11]name=ofd_packets/00028937 [13:29:11]NVStorageDeleteData [13:29:11]Write to MH i2c: 01 00 00 94 41 D5 [13:29:11]Write i2c OK [13:29:11]MH_I2C_Read... [13:29:11]Read from MH i2c: 01 [13:29:11]MH_I2C_Read... [13:29:11]Read from MH i2c: 01 07 00 [13:29:11]MH_I2C_Read... [13:29:11]Read from MH i2c: 01 07 00 94 41 00 00 00 00 00 BC 0C A4 [13:29:11]RasterBufferAndPrint [13:29:11]line [13:29:11]line [13:29:11]line [13:29:11]line [13:29:11]line [13:29:11]written 0, free lines is 3265 [13:29:11]MH_Cut [13:29:11]Write to MH i2c: D1 01 00 9B 41 01 AE [13:29:11]Write i2c OK [13:29:11]MH_I2C_Read... [13:29:11]Read from MH i2c: D1 [13:29:11]MH_I2C_Read... [13:29:11]Read from MH i2c: D1 01 00 [13:29:11]MH_I2C_Read... [13:29:11]Read from MH i2c: D1 01 00 9B 41 00 AD [13:29:11]Write to MH i2c: 01 00 00 9C 41 DD [13:29:11]Write i2c OK [13:29:11]MH_I2C_Read... [13:29:11]OFD Sender: No OFD packet to send [13:29:12]*** Cut start [13:29:12]*** Partial cut [13:29:12]*** CUTSNS_PIN = 1 [13:29:12]*** CUTSNS_PIN = 0 [13:29:12]*** Brake cut motor [13:29:13]Read from MH i2c: 01 [13:29:13]MH_I2C_Read... [13:29:13]*** Stop cut motor [13:29:13]*** Cut end [13:29:13]Read from MH i2c: 01 07 00 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: 01 07 00 9C 41 00 00 00 00 00 FF 0F F2 [13:29:13]process_action close_receipt done [13:29:13]requested_data is exist [13:29:13]produce_requested_data [13:29:13]requested_item fm.sn is exist - process it [13:29:13]wFMCommunicate request_size=4 [13:29:13]MH_SAM_APDU [13:29:13]CAPDU: 80 11 00 00 [13:29:13]Write to MH i2c: E2 08 00 9D 41 80 11 00 00 00 00 00 00 58 [13:29:13]Write i2c OK [13:29:13]MH_I2C_Read... [13:29:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:13]Read from MH i2c: E2 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 17 00 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 17 00 9D 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A7 [13:29:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:29:13]wFMCommunicate OK [13:29:13]requested_item fd.num is exist - process it [13:29:13]SAM_PROTO_GetFieldsCounters [13:29:13]wFMCommunicate request_size=4 [13:29:13]MH_SAM_APDU [13:29:13]CAPDU: 80 13 00 00 [13:29:13]Write to MH i2c: E2 08 00 9E 41 80 13 00 00 00 00 00 00 5B [13:29:13]Write i2c OK [13:29:13]MH_I2C_Read... [13:29:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:13]Read from MH i2c: E2 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 62 00 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 62 00 9E 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 09 71 00 00 0E 04 04 00 73 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 36 [13:29: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 09 71 00 00 0E 04 04 00 73 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:29:13]wFMCommunicate OK [13:29:13]SAM_PROTO_GetFieldsCounters done [13:29:13]requested_item shift.num is exist - process it [13:29:13]requested_item shift.opened is exist - process it [13:29:13]req_shift_opened [13:29:13]FM_GetShiftState [13:29:13]SAM_PROTO_GetShiftState [13:29:13]wFMCommunicate request_size=4 [13:29:13]MH_SAM_APDU [13:29:13]CAPDU: 80 13 01 00 [13:29:13]Write to MH i2c: E2 08 00 9F 41 80 13 01 00 00 00 00 00 5D [13:29:13]Write i2c OK [13:29:13]MH_I2C_Read... [13:29:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:13]Read from MH i2c: E2 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 0E 00 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 0E 00 9F 41 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 76 [13:29:13]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:29:13]wFMCommunicate OK [13:29:13]SAM_PROTO_GetShiftState done [13:29:13]FM_GetShiftState done [13:29:13]req_shift_opened done [13:29:13]requested_item shift.open_date is exist - process it [13:29:13]req_shift_open_date [13:29:13]req_shift_open_date done [13:29:13]produce_requested_data done [13:29:13]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28937,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [13:29:13]process_action_free close_receipt [13:29:13]json_value_free [13:29:13]json_value_free done [13:29:13]process_json_proto returns [13:29:13]Send response to host [13:29:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28937,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [13:29:13]free response buf [13:29:13]execute_script done [13:29:13]execute_script returns [13:29:13]free content buf [13:29:13]Sock 9.Close socket [13:29:13]Sock 9.Thread stoped [13:29:16]OFD Sender: No OFD packet to send [13:29:21]OFD Sender: No OFD packet to send [13:29:26]OFD Sender: No OFD packet to send [13:29:31]OFD Sender: No OFD packet to send [13:29:36]OFD Sender: No OFD packet to send [13:29:41]OFD Sender: No OFD packet to send [13:29:46]OFD Sender: No OFD packet to send [13:29:51]OFD Sender: No OFD packet to send [13:29: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:07]accept exits with 7 [13:32:07]New connection [13:32:07]New thread 3066785124 created [13:32:07]Thread 3066928484 joined [13:32:07]Waiting for new connection... [13:32:07] Sock 7.Parse request [13:32:07]Sock 7.Check first char [13:32:07]Sock 7.First char is OK [13:32:07]request: POST /json_proto HTTP/1.0 [13:32:07]Method: POST [13:32:07]URL: /json_proto [13:32:07]Method is POST - this is cgi request [13:32:07]url: /json_proto [13:32:07]query_string will be loaded in cgi processing [13:32:07]execute_cgi json_proto POST (null) [13:32:07]execute_cgi path=json_proto method=POST [13:32:07]POST find Content-Length [13:32:07]Host: 172.17.33.3:8080 [13:32:07]Content-Length: 677 [13:32:07]Content-Type: application/json [13:32:07] [13:32:07]POST finish read [13:32:07]Found Content-Length = 677 [13:32:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347296", "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" : 64.30, "quantity" : 5.140, "sum" : 330.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:07]execute_script... [13:32: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)347296", "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" : 64.30, "quantity" : 5.140, "sum" : 330.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:07]POST & json_proto [13:32:07]process_json_proto [13:32:07]json parsed OK: [13:32:07]protocol is kg_v1.0 [13:32:07]action value=close_receipt [13:32:07]process_action close_receipt [13:32:07]cmd_close_receipt [13:32:07]MH_GetDate [13:32:07]Write to MH i2c: F0 00 00 A0 41 D0 [13:32:07]Write i2c OK [13:32:07]MH_I2C_Read... [13:32:07]Read from MH i2c: F0 [13:32:07]MH_I2C_Read... [13:32:07]Read from MH i2c: F0 09 00 [13:32:07]MH_I2C_Read... [13:32:07]Read from MH i2c: F0 09 00 A0 41 00 5C 89 1A 66 23 5B 8F 65 B0 [13:32:07]GetLastDocTimeStamp 1713014954 [13:32:07]current date 1713015132 [13:32:07]FM_GetShiftState [13:32:07]SAM_PROTO_GetShiftState [13:32:07]wFMCommunicate request_size=4 [13:32:07]MH_SAM_APDU [13:32:07]CAPDU: 80 13 01 00 [13:32:07]Write to MH i2c: E2 08 00 A1 41 80 13 01 00 00 00 00 00 5F [13:32:07]Write i2c OK [13:32:07]MH_I2C_Read... [13:32:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:07]Read from MH i2c: E2 [13:32:07]MH_I2C_Read... [13:32:07]Read from MH i2c: E2 0E 00 [13:32:07]MH_I2C_Read... [13:32:07]Read from MH i2c: E2 0E 00 A1 41 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 78 [13:32:07]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:32:07]wFMCommunicate OK [13:32:07]SAM_PROTO_GetShiftState done [13:32:07]FM_GetShiftState done [13:32:07]opened in 1712967615 [13:32:07]opened+sec_in_day 1713054015 [13:32:07]quantity*price = 33050 [13:32:07]sum+1 = 33051 [13:32:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.92 НДС 12% : 35.10 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 145 13.04.2024 13:32 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28938 ФПД: 183214170026184 1/tax-web-control/client/api/v1/ticket?date=20240413T133212&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28938&fm=183214170026184&tin=02508201610067®Number=0000138879044617&sum=33000 [13:32:08]StoreToDocumentArchive [13:32:08]shift 115 fd 28938 [13:32:08]save to /storage/0115/doc_00028938 [13:32:08]save last doc name /storage/0115/doc_00028938 to /storage/kkm_last_doc_name [13:32:08]save OK [13:32:08]Clear old archive folders... [13:32:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:32:08]tlvbuf is 0121FC60 [13:32:08]SAM_PROTO_ClearQueue [13:32:08]wFMCommunicate request_size=4 [13:32:08]MH_SAM_APDU [13:32:08]CAPDU: 80 09 00 00 [13:32:08]Write to MH i2c: E2 08 00 AE 41 80 09 00 00 00 00 00 00 61 [13:32:08]Write i2c OK [13:32:08]MH_I2C_Read... [13:32:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:08]Read from MH i2c: E2 [13:32:08]MH_I2C_Read... [13:32:08]Read from MH i2c: E2 03 00 [13:32:08]MH_I2C_Read... [13:32:08]Read from MH i2c: E2 03 00 AE 41 00 90 00 63 [13:32:08]RAPDU: 90 00 [13:32:08]wFMCommunicate OK [13:32:08]SAM_PROTO_ClearQueue done [13:32:08]KKMCreateOFDPacket [13:32:08]OFDProtocolAddRootSTLVToBuf [13:32:08]FM_MakeSignedData [13:32:08]FM_MakeSignedData [13:32:08]SAM_PROTO_SignData [13:32:08]wFMCommunicate request_size=4 [13:32:08]MH_SAM_APDU [13:32:08]CAPDU: 80 0D 01 02 [13:32:08]Write to MH i2c: E2 08 00 AF 41 80 0D 01 02 00 00 00 00 69 [13:32:08]Write i2c OK [13:32:08]MH_I2C_Read... [13:32:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:08]Read from MH i2c: E2 [13:32:08]MH_I2C_Read... [13:32:08]Read from MH i2c: E2 03 00 [13:32:08]MH_I2C_Read... [13:32:08]Read from MH i2c: E2 03 00 AF 41 00 90 00 64 [13:32:08]RAPDU: 90 00 [13:32:08]wFMCommunicate OK [13:32:08]wFMCommunicate request_size=255 [13:32:08]MH_SAM_APDU [13:32: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 14 14 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 1A 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 5C 89 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0A 71 00 00 35 04 06 00 A6 [13:32:08]Write to MH i2c: E2 02 01 B0 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 14 14 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 1A 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 5C 89 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0A 71 00 00 35 04 06 00 A6 00 00 CC [13:32:08]Write i2c OK [13:32:08]MH_I2C_Read... [13:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:09]Read from MH i2c: E2 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: E2 03 00 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: E2 03 00 B0 41 00 90 00 65 [13:32:09]RAPDU: 90 00 [13:32:09]wFMCommunicate OK [13:32:09]wFMCommunicate request_size=10 [13:32:09]MH_SAM_APDU [13:32:09]CAPDU: 80 0D 02 02 05 A1 DF 85 B0 C8 [13:32:09]Write to MH i2c: E2 0D 00 B1 41 80 0D 02 02 05 00 A1 DF 85 B0 C8 00 00 F3 [13:32:09]Write i2c OK [13:32:09]MH_I2C_Read... [13:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:09]Read from MH i2c: E2 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: E2 03 00 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: E2 03 00 B1 41 00 90 00 66 [13:32:09]RAPDU: 90 00 [13:32:09]wFMCommunicate OK [13:32:09]wFMCommunicate request_size=4 [13:32:09]MH_SAM_APDU [13:32:09]CAPDU: 80 0D 03 02 [13:32:09]Write to MH i2c: E2 08 00 B2 41 80 0D 03 02 00 00 00 00 6E [13:32:09]Write i2c OK [13:32:09]MH_I2C_Read... [13:32:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:09]Read from MH i2c: E2 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: E2 0B 00 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: E2 0B 00 B2 41 00 59 0A 1B 19 16 D8 80 E1 90 00 55 [13:32:09]RAPDU: 59 0A 1B 19 16 D8 80 E1 90 00 [13:32:09]wFMCommunicate OK [13:32:09]SAM_PROTO_SignData done [13:32:09]FM_MakeSignedData done [13:32:09]CreateOFDProtocolMessage [13:32:09]wFMCommunicate request_size=4 [13:32:09]MH_SAM_APDU [13:32:09]CAPDU: 80 11 00 00 [13:32:09]Write to MH i2c: E2 08 00 B3 41 80 11 00 00 00 00 00 00 6E [13:32:09]Write i2c OK [13:32:09]MH_I2C_Read... [13:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:09]Read from MH i2c: E2 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: E2 17 00 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: E2 17 00 B3 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BD [13:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:32:09]wFMCommunicate OK [13:32:09]CreateOFDProtocolMessage done [13:32:09]OFDSenderStorePacket 28938 [13:32:09]StoreOFDPacket docnum=28938 [13:32:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EE 5A 07 01 7C E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 14 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 1A 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 5C 89 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0A 71 00 00 35 04 06 00 A6 A1 DF 85 B0 C8 59 0A 1B 19 16 D8 80 E1 [13:32:09]CheckFolder [13:32:09]dirname=/storage/ofd_packets [13:32:09]CheckFolder done [13:32:09]ProducePacketName [13:32:09]name=ofd_packets/00028938 [13:32:09]NVStorageSaveData ofd_packets/00028938 [13:32:09]File name is /storage/ofd_packets/00028938 [13:32:09]Write 301 bytes [13:32:09]NVStorageSaveData done [13:32:09]OFDSenderStorePacket done [13:32:09]KKMCreateOFDPacket done [13:32:09]NVStorageSaveData kkm_last_timestamp [13:32:09]File name is /storage/kkm_last_timestamp [13:32:09]Write 4 bytes [13:32:09]NVStorageSaveData done [13:32:09]ExternCall_PrintAddStr [13:32:09]wPrintStart [13:32:09]Write to MH i2c: 01 00 00 B4 41 F5 [13:32:09]Write i2c OK [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: 01 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: 01 07 00 [13:32:09]MH_I2C_Read... [13:32:09]Read from MH i2c: 01 07 00 B4 41 00 00 00 00 00 FF 0F 0A [13:32:09]RasterBufferAndPrint [13:32:09]line Счет N : (1)347296 [13:32:09]line ИНН: 02508201610067 [13:32:09]line Контрольно-Кассовый Чек [13:32:09]line ПРОДАЖА [13:32:09]line ТРК (МРК, ГНК) : 42 [13:32:09]line Товар: 2710124130 [13:32:09]line Аи-92-К-5 [13:32:09]line 5.140 * 64.30 [13:32:09]line = 330.50 [13:32:09]line НДС 12% НСП 1% [13:32:09]line > о реализуемом товаре [13:32:09]line ОКРУГЛЕНИЕ: -0.50 [13:32:09]line ИТОГО: 330.00 [13:32:09]line Внесено: 330.00 [13:32:09]line СДАЧА: 0.00 [13:32:09]line НСП 1% : 2.92 [13:32:09]line НДС 12% : 35.10 [13:32:09]line Наличными: 330.00 [13:32:09]line Безнал.: 0.00 [13:32:09]line Место: АЗС № 108 "Партнер Нефть" [13:32:09]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:32:09]line СНО: Общий режим [13:32:09]line Чек 145 13.04.2024 13:32 [13:32:09]line Смена: 115 ФФД: 1.0 [13:32:09]line ЗНМ: 0300000027 [13:32:09]line РНМ: 0000138879044617 [13:32:09]line Версия ККМ: 001 [13:32:09]line ФМ: 0000000000963154 [13:32:09]line ФД: 28938 [13:32:09]line ФПД: 183214170026184 [13:32:09]line 1/tax-web-control/client/api/v1/ticket?date=20240413T133212&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28938&fm=183214170026184&tin=02508201610067®Number=0000138879044617&sum=33000 [13:32:09]OFD Sender: Processing packet 28938 [packets to send 8, broken 7] [13:32:09]ProducePacketName [13:32:09]name=ofd_packets/00028938 [13:32:09]OFD Sender: To server: pG, [13:32:09]CommunicateWithHost lk.salyk.kg:30040 [13:32:09]ConnectInit lk.salyk.kg [13:32:09]written 0, free lines is 4095 [13:32:09]Connected sock=10 [13:32: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 31 35 34 0F 01 00 00 EE 5A 07 01 7C E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 14 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 1A 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 5C 89 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0A 71 00 00 35 04 06 00 A6 A1 DF 85 B0 C8 59 0A 1B 19 16 D8 80 E1 [13:32:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 27 47 47 00 B5 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0A 71 00 00 F4 03 04 00 03 34 1A 66 B6 04 01 00 00 B2 40 1E B9 A7 7C 48 E5 [13:32:09]CommunicateWithHost err = 0 [13:32:09]CheckOFDResponse [13:32:09]1017 (14) - 77093643461234 [13:32:09]1041 (16) - 0000000000963154 [13:32:09]1040 (4) - 28938 [13:32:09]1012 (4) - 13.04.2024 07:28 [13:32:09]1206 (1) - 0 [13:32:09]OFD Sender: Remove packet 28938 [13:32:09]ProducePacketName [13:32:09]name=ofd_packets/00028938 [13:32:09]NVStorageDeleteData [13:32:10]Write to MH i2c: 01 00 00 DE 41 1F [13:32:10]Write i2c OK [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: 01 [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: 01 07 00 [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: 01 07 00 DE 41 00 00 00 00 00 BA 0C EC [13:32:10]RasterBufferAndPrint [13:32:10]line [13:32:10]line [13:32:10]line [13:32:10]line [13:32:10]line [13:32:10]written 0, free lines is 3263 [13:32:10]MH_Cut [13:32:10]Write to MH i2c: D1 01 00 E5 41 01 F8 [13:32:10]Write i2c OK [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: D1 [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: D1 01 00 [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: D1 01 00 E5 41 00 F7 [13:32:10]Write to MH i2c: 01 00 00 E6 41 27 [13:32:10]Write i2c OK [13:32:10]MH_I2C_Read... [13:32:10]OFD Sender: No OFD packet to send [13:32:10]*** Cut start [13:32:10]*** Partial cut [13:32:10]*** CUTSNS_PIN = 1 [13:32:10]*** CUTSNS_PIN = 0 [13:32:11]*** Brake cut motor [13:32:11]Read from MH i2c: 01 [13:32:11]MH_I2C_Read... [13:32:11]*** Stop cut motor [13:32:11]*** Cut end [13:32:11]Read from MH i2c: 01 07 00 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: 01 07 00 E6 41 00 00 00 00 00 FF 0F 3C [13:32:11]process_action close_receipt done [13:32:11]requested_data is exist [13:32:11]produce_requested_data [13:32:11]requested_item fm.sn is exist - process it [13:32:11]wFMCommunicate request_size=4 [13:32:11]MH_SAM_APDU [13:32:11]CAPDU: 80 11 00 00 [13:32:11]Write to MH i2c: E2 08 00 E7 41 80 11 00 00 00 00 00 00 A2 [13:32:11]Write i2c OK [13:32:11]MH_I2C_Read... [13:32:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:11]Read from MH i2c: E2 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 17 00 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 17 00 E7 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F1 [13:32:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:32:11]wFMCommunicate OK [13:32:11]requested_item fd.num is exist - process it [13:32:11]SAM_PROTO_GetFieldsCounters [13:32:11]wFMCommunicate request_size=4 [13:32:11]MH_SAM_APDU [13:32:11]CAPDU: 80 13 00 00 [13:32:11]Write to MH i2c: E2 08 00 E8 41 80 13 00 00 00 00 00 00 A5 [13:32:11]Write i2c OK [13:32:11]MH_I2C_Read... [13:32:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:11]Read from MH i2c: E2 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 62 00 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 62 00 E8 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0A 71 00 00 0E 04 04 00 73 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 84 [13:32: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0A 71 00 00 0E 04 04 00 73 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:32:11]wFMCommunicate OK [13:32:11]SAM_PROTO_GetFieldsCounters done [13:32:11]requested_item shift.num is exist - process it [13:32:11]requested_item shift.opened is exist - process it [13:32:11]req_shift_opened [13:32:11]FM_GetShiftState [13:32:11]SAM_PROTO_GetShiftState [13:32:11]wFMCommunicate request_size=4 [13:32:11]MH_SAM_APDU [13:32:11]CAPDU: 80 13 01 00 [13:32:11]Write to MH i2c: E2 08 00 E9 41 80 13 01 00 00 00 00 00 A7 [13:32:11]Write i2c OK [13:32:11]MH_I2C_Read... [13:32:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:11]Read from MH i2c: E2 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 0E 00 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 0E 00 E9 41 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 C0 [13:32:11]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:32:11]wFMCommunicate OK [13:32:11]SAM_PROTO_GetShiftState done [13:32:11]FM_GetShiftState done [13:32:11]req_shift_opened done [13:32:11]requested_item shift.open_date is exist - process it [13:32:11]req_shift_open_date [13:32:11]req_shift_open_date done [13:32:11]produce_requested_data done [13:32:11]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28938,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [13:32:11]process_action_free close_receipt [13:32:11]json_value_free [13:32:11]json_value_free done [13:32:11]process_json_proto returns [13:32:11]Send response to host [13:32:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28938,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [13:32:11]free response buf [13:32:11]execute_script done [13:32:11]execute_script returns [13:32:11]free content buf [13:32:11]Sock 7.Close socket [13:32:11]Sock 7.Thread stoped [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]accept exits with 9 [13:32:50]New connection [13:32:50]New thread 3066928484 created [13:32:50]Thread 3066785124 joined [13:32:50]Waiting for new connection... [13:32:50] Sock 9.Parse request [13:32:50]Sock 9.Check first char [13:32:50]Sock 9.First char is OK [13:32:50]request: POST /json_proto HTTP/1.0 [13:32:50]Method: POST [13:32:50]URL: /json_proto [13:32:50]Method is POST - this is cgi request [13:32:50]url: /json_proto [13:32:50]query_string will be loaded in cgi processing [13:32:50]execute_cgi json_proto POST (null) [13:32:50]execute_cgi path=json_proto method=POST [13:32:50]POST find Content-Length [13:32:50]Host: 172.17.33.3:8080 [13:32:50]Content-Length: 679 [13:32:50]Content-Type: application/json [13:32:50] [13:32:50]POST finish read [13:32:50]Found Content-Length = 679 [13:32:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 41.440, "sum" : 3000.26, "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:32:50]execute_script... [13:32: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)347297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 41.440, "sum" : 3000.26, "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:32:50]POST & json_proto [13:32:50]process_json_proto [13:32:50]json parsed OK: [13:32:50]protocol is kg_v1.0 [13:32:50]action value=close_receipt [13:32:50]process_action close_receipt [13:32:50]cmd_close_receipt [13:32:50]MH_GetDate [13:32:50]Write to MH i2c: F0 00 00 EA 41 1A [13:32:50]Write i2c OK [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: F0 [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: F0 09 00 [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: F0 09 00 EA 41 00 87 89 1A 66 23 5B 8F 65 25 [13:32:50]GetLastDocTimeStamp 1713015132 [13:32:50]current date 1713015175 [13:32:50]FM_GetShiftState [13:32:50]SAM_PROTO_GetShiftState [13:32:50]wFMCommunicate request_size=4 [13:32:50]MH_SAM_APDU [13:32:50]CAPDU: 80 13 01 00 [13:32:50]Write to MH i2c: E2 08 00 EB 41 80 13 01 00 00 00 00 00 A9 [13:32:50]Write i2c OK [13:32:50]MH_I2C_Read... [13:32:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:50]Read from MH i2c: E2 [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: E2 0E 00 [13:32:50]MH_I2C_Read... [13:32:50]Read from MH i2c: E2 0E 00 EB 41 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 C2 [13:32:50]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:32:50]wFMCommunicate OK [13:32:50]SAM_PROTO_GetShiftState done [13:32:50]FM_GetShiftState done [13:32:50]opened in 1712967615 [13:32:50]opened+sec_in_day 1713054015 [13:32:50]quantity*price = 300025 [13:32:50]sum+1 = 300027 [13:32:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.61 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 146 13.04.2024 13:32 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28939 ФПД: 122270744716817 1/tax-web-control/client/api/v1/ticket?date=20240413T133255&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28939&fm=122270744716817&tin=02508201610067®Number=0000138879044617&sum=300000 [13:32:51]StoreToDocumentArchive [13:32:51]shift 115 fd 28939 [13:32:51]save to /storage/0115/doc_00028939 [13:32:51]save last doc name /storage/0115/doc_00028939 to /storage/kkm_last_doc_name [13:32:51]save OK [13:32:51]Clear old archive folders... [13:32:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:32:51]tlvbuf is 01233310 [13:32:51]SAM_PROTO_ClearQueue [13:32:51]wFMCommunicate request_size=4 [13:32:51]MH_SAM_APDU [13:32:51]CAPDU: 80 09 00 00 [13:32:51]Write to MH i2c: E2 08 00 F8 41 80 09 00 00 00 00 00 00 AB [13:32:51]Write i2c OK [13:32:51]MH_I2C_Read... [13:32:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:51]Read from MH i2c: E2 [13:32:51]MH_I2C_Read... [13:32:51]Read from MH i2c: E2 03 00 [13:32:51]MH_I2C_Read... [13:32:51]Read from MH i2c: E2 03 00 F8 41 00 90 00 AD [13:32:51]RAPDU: 90 00 [13:32:51]wFMCommunicate OK [13:32:51]SAM_PROTO_ClearQueue done [13:32:51]KKMCreateOFDPacket [13:32:51]OFDProtocolAddRootSTLVToBuf [13:32:51]FM_MakeSignedData [13:32:51]FM_MakeSignedData [13:32:51]SAM_PROTO_SignData [13:32:51]wFMCommunicate request_size=4 [13:32:51]MH_SAM_APDU [13:32:51]CAPDU: 80 0D 01 02 [13:32:51]Write to MH i2c: E2 08 00 F9 41 80 0D 01 02 00 00 00 00 B3 [13:32:51]Write i2c OK [13:32:51]MH_I2C_Read... [13:32:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:51]Read from MH i2c: E2 [13:32:51]MH_I2C_Read... [13:32:51]Read from MH i2c: E2 03 00 [13:32:51]MH_I2C_Read... [13:32:51]Read from MH i2c: E2 03 00 F9 41 00 90 00 AE [13:32:51]RAPDU: 90 00 [13:32:51]wFMCommunicate OK [13:32:51]wFMCommunicate request_size=255 [13:32:51]MH_SAM_APDU [13:32:51]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 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 92 00 00 00 F4 03 04 00 87 89 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0B 71 00 00 35 04 06 00 6F 34 60 4E [13:32:51]Write to MH i2c: E2 02 01 FA 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 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 92 00 00 00 F4 03 04 00 87 89 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0B 71 00 00 35 04 06 00 6F 34 60 4E 00 00 4D [13:32:51]Write i2c OK [13:32:51]MH_I2C_Read... [13:32:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:51]Read from MH i2c: E2 [13:32:51]MH_I2C_Read... [13:32:51]Read from MH i2c: E2 03 00 [13:32:51]MH_I2C_Read... [13:32:51]Read from MH i2c: E2 03 00 FA 41 00 90 00 AF [13:32:51]RAPDU: 90 00 [13:32:51]wFMCommunicate OK [13:32:51]wFMCommunicate request_size=7 [13:32:51]MH_SAM_APDU [13:32:51]CAPDU: 80 0D 02 02 02 26 11 [13:32:51]Write to MH i2c: E2 0A 00 FB 41 80 0D 02 02 02 00 26 11 00 00 F1 [13:32:51]Write i2c OK [13:32:51]MH_I2C_Read... [13:32:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:51]Read from MH i2c: E2 [13:32:51]MH_I2C_Read... [13:32:51]Read from MH i2c: E2 03 00 [13:32:51]MH_I2C_Read... [13:32:51]Read from MH i2c: E2 03 00 FB 41 00 90 00 B0 [13:32:51]RAPDU: 90 00 [13:32:51]wFMCommunicate OK [13:32:51]wFMCommunicate request_size=4 [13:32:51]MH_SAM_APDU [13:32:51]CAPDU: 80 0D 03 02 [13:32:51]Write to MH i2c: E2 08 00 FC 41 80 0D 03 02 00 00 00 00 B8 [13:32:51]Write i2c OK [13:32:51]MH_I2C_Read... [13:32:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:51]Read from MH i2c: E2 [13:32:51]MH_I2C_Read... [13:32:51]Read from MH i2c: E2 0B 00 [13:32:51]MH_I2C_Read... [13:32:51]Read from MH i2c: E2 0B 00 FC 41 00 08 13 05 FE 52 9A 82 3B 90 00 80 [13:32:51]RAPDU: 08 13 05 FE 52 9A 82 3B 90 00 [13:32:51]wFMCommunicate OK [13:32:51]SAM_PROTO_SignData done [13:32:51]FM_MakeSignedData done [13:32:51]CreateOFDProtocolMessage [13:32:51]wFMCommunicate request_size=4 [13:32:51]MH_SAM_APDU [13:32:51]CAPDU: 80 11 00 00 [13:32:51]Write to MH i2c: E2 08 00 FD 41 80 11 00 00 00 00 00 00 B8 [13:32:51]Write i2c OK [13:32:51]MH_I2C_Read... [13:32:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:51]Read from MH i2c: E2 [13:32:51]MH_I2C_Read... [13:32:51]Read from MH i2c: E2 17 00 [13:32:51]MH_I2C_Read... [13:32:51]Read from MH i2c: E2 17 00 FD 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 07 [13:32:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:32:51]wFMCommunicate OK [13:32:51]CreateOFDProtocolMessage done [13:32:51]OFDSenderStorePacket 28939 [13:32:51]StoreOFDPacket docnum=28939 [13:32:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 3A 8B 04 01 9A CA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 92 00 00 00 F4 03 04 00 87 89 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0B 71 00 00 35 04 06 00 6F 34 60 4E 26 11 08 13 05 FE 52 9A 82 3B [13:32:51]CheckFolder [13:32:51]dirname=/storage/ofd_packets [13:32:51]CheckFolder done [13:32:51]ProducePacketName [13:32:51]name=ofd_packets/00028939 [13:32:51]NVStorageSaveData ofd_packets/00028939 [13:32:51]File name is /storage/ofd_packets/00028939 [13:32:51]Write 298 bytes [13:32:51]NVStorageSaveData done [13:32:51]OFDSenderStorePacket done [13:32:51]KKMCreateOFDPacket done [13:32:51]NVStorageSaveData kkm_last_timestamp [13:32:51]File name is /storage/kkm_last_timestamp [13:32:51]Write 4 bytes [13:32:51]NVStorageSaveData done [13:32:51]ExternCall_PrintAddStr [13:32:51]wPrintStart [13:32:51]Write to MH i2c: 01 00 00 FE 41 3F [13:32:51]Write i2c OK [13:32:51]MH_I2C_Read... [13:32:51]Read from MH i2c: 01 [13:32:51]MH_I2C_Read... [13:32:51]Read from MH i2c: 01 07 00 [13:32:51]MH_I2C_Read... [13:32:51]Read from MH i2c: 01 07 00 FE 41 00 00 00 00 00 FF 0F 54 [13:32:51]RasterBufferAndPrint [13:32:51]line Счет N : (1)347297 [13:32:51]line ИНН: 02508201610067 [13:32:51]line Контрольно-Кассовый Чек [13:32:51]line ПРОДАЖА [13:32:51]line ТРК (МРК, ГНК) : 21 [13:32:51]line Товар: 2710194210 [13:32:51]line ДТ-К-5 [13:32:51]line 41.440 * 72.40 [13:32:51]line = 3000.26 [13:32:51]line НДС 12% НСП 1% [13:32:51]line > о реализуемом товаре [13:32:51]line ОКРУГЛЕНИЕ: -0.26 [13:32:51]line ИТОГО: 3000.00 [13:32:51]line Внесено: 3000.00 [13:32:51]line СДАЧА: 0.00 [13:32:51]line НСП 1% : 26.55 [13:32:51]line НДС 12% : 318.61 [13:32:51]line Наличными: 3000.00 [13:32:51]line Безнал.: 0.00 [13:32:51]line Место: АЗС № 108 "Партнер Нефть" [13:32:51]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:32:51]line СНО: Общий режим [13:32:51]line Чек 146 13.04.2024 13:32 [13:32:51]line Смена: 115 ФФД: 1.0 [13:32:51]line ЗНМ: 0300000027 [13:32:51]line РНМ: 0000138879044617 [13:32:51]line Версия ККМ: 001 [13:32:51]line ФМ: 0000000000963154 [13:32:51]line ФД: 28939 [13:32:51]line ФПД: 122270744716817 [13:32:52]line 1/tax-web-control/client/api/v1/ticket?date=20240413T133255&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28939&fm=122270744716817&tin=02508201610067®Number=0000138879044617&sum=300000 [13:32:52]OFD Sender: Processing packet 28939 [packets to send 8, broken 7] [13:32:52]ProducePacketName [13:32:52]name=ofd_packets/00028939 [13:32:52]OFD Sender: To server: pG, [13:32:52]CommunicateWithHost lk.salyk.kg:30040 [13:32:52]ConnectInit lk.salyk.kg [13:32:52]written 0, free lines is 4095 [13:32:52]Connected sock=10 [13:32: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 31 35 34 0C 01 00 00 3A 8B 04 01 9A CA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 92 00 00 00 F4 03 04 00 87 89 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0B 71 00 00 35 04 06 00 6F 34 60 4E 26 11 08 13 05 FE 52 9A 82 3B [13:32:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 15 7F 47 00 37 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0B 71 00 00 F4 03 04 00 2E 34 1A 66 B6 04 01 00 00 98 4E FE 1D A6 15 CD 22 [13:32:52]CommunicateWithHost err = 0 [13:32:52]CheckOFDResponse [13:32:52]1017 (14) - 77093643461234 [13:32:52]1041 (16) - 0000000000963154 [13:32:52]1040 (4) - 28939 [13:32:52]1012 (4) - 13.04.2024 07:28 [13:32:52]1206 (1) - 0 [13:32:52]OFD Sender: Remove packet 28939 [13:32:52]ProducePacketName [13:32:52]name=ofd_packets/00028939 [13:32:52]NVStorageDeleteData [13:32:52]Write to MH i2c: 01 00 00 28 42 6A [13:32:52]Write i2c OK [13:32:52]MH_I2C_Read... [13:32:52]Read from MH i2c: 01 [13:32:52]MH_I2C_Read... [13:32:52]Read from MH i2c: 01 07 00 [13:32:52]MH_I2C_Read... [13:32:52]Read from MH i2c: 01 07 00 28 42 00 00 00 00 00 C3 0C 40 [13:32:52]RasterBufferAndPrint [13:32:52]line [13:32:52]line [13:32:52]line [13:32:52]line [13:32:52]line [13:32:52]written 0, free lines is 3271 [13:32:52]MH_Cut [13:32:52]Write to MH i2c: D1 01 00 2F 42 01 43 [13:32:52]Write i2c OK [13:32:52]MH_I2C_Read... [13:32:52]Read from MH i2c: D1 [13:32:52]MH_I2C_Read... [13:32:52]Read from MH i2c: D1 01 00 [13:32:52]MH_I2C_Read... [13:32:52]Read from MH i2c: D1 01 00 2F 42 00 42 [13:32:52]Write to MH i2c: 01 00 00 30 42 72 [13:32:52]Write i2c OK [13:32:52]MH_I2C_Read... [13:32:52]OFD Sender: No OFD packet to send [13:32:53]*** Cut start [13:32:53]*** Partial cut [13:32:53]*** CUTSNS_PIN = 1 [13:32:53]*** CUTSNS_PIN = 0 [13:32:53]*** Brake cut motor [13:32:54]Read from MH i2c: 01 [13:32:54]MH_I2C_Read... [13:32:54]*** Stop cut motor [13:32:54]*** Cut end [13:32:54]Read from MH i2c: 01 07 00 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: 01 07 00 30 42 00 00 00 00 00 FF 0F 87 [13:32:54]process_action close_receipt done [13:32:54]requested_data is exist [13:32:54]produce_requested_data [13:32:54]requested_item fm.sn is exist - process it [13:32:54]wFMCommunicate request_size=4 [13:32:54]MH_SAM_APDU [13:32:54]CAPDU: 80 11 00 00 [13:32:54]Write to MH i2c: E2 08 00 31 42 80 11 00 00 00 00 00 00 ED [13:32:54]Write i2c OK [13:32:54]MH_I2C_Read... [13:32:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:54]Read from MH i2c: E2 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 17 00 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 17 00 31 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3C [13:32:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:32:54]wFMCommunicate OK [13:32:54]requested_item fd.num is exist - process it [13:32:54]SAM_PROTO_GetFieldsCounters [13:32:54]wFMCommunicate request_size=4 [13:32:54]MH_SAM_APDU [13:32:54]CAPDU: 80 13 00 00 [13:32:54]Write to MH i2c: E2 08 00 32 42 80 13 00 00 00 00 00 00 F0 [13:32:54]Write i2c OK [13:32:54]MH_I2C_Read... [13:32:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:54]Read from MH i2c: E2 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 62 00 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 62 00 32 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0B 71 00 00 0E 04 04 00 73 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 D3 [13:32: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0B 71 00 00 0E 04 04 00 73 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:32:54]wFMCommunicate OK [13:32:54]SAM_PROTO_GetFieldsCounters done [13:32:54]requested_item shift.num is exist - process it [13:32:54]requested_item shift.opened is exist - process it [13:32:54]req_shift_opened [13:32:54]FM_GetShiftState [13:32:54]SAM_PROTO_GetShiftState [13:32:54]wFMCommunicate request_size=4 [13:32:54]MH_SAM_APDU [13:32:54]CAPDU: 80 13 01 00 [13:32:54]Write to MH i2c: E2 08 00 33 42 80 13 01 00 00 00 00 00 F2 [13:32:54]Write i2c OK [13:32:54]MH_I2C_Read... [13:32:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:54]Read from MH i2c: E2 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 0E 00 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 0E 00 33 42 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 0B [13:32:54]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:32:54]wFMCommunicate OK [13:32:54]SAM_PROTO_GetShiftState done [13:32:54]FM_GetShiftState done [13:32:54]req_shift_opened done [13:32:54]requested_item shift.open_date is exist - process it [13:32:54]req_shift_open_date [13:32:54]req_shift_open_date done [13:32:54]produce_requested_data done [13:32:54]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28939,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [13:32:54]process_action_free close_receipt [13:32:54]json_value_free [13:32:54]json_value_free done [13:32:54]process_json_proto returns [13:32:54]Send response to host [13:32:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28939,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [13:32:54]free response buf [13:32:54]execute_script done [13:32:54]execute_script returns [13:32:54]free content buf [13:32:54]Sock 9.Close socket [13:32:54]Sock 9.Thread stoped [13:32:56]accept exits with 7 [13:32:56]New connection [13:32:56]New thread 3066785124 created [13:32:56]Thread 3066928484 joined [13:32:56]Waiting for new connection... [13:32:56] Sock 7.Parse request [13:32:56]Sock 7.Check first char [13:32:56]Sock 7.First char is OK [13:32:56]request: POST /json_proto HTTP/1.0 [13:32:56]Method: POST [13:32:56]URL: /json_proto [13:32:56]Method is POST - this is cgi request [13:32:56]url: /json_proto [13:32:56]query_string will be loaded in cgi processing [13:32:56]execute_cgi json_proto POST (null) [13:32:56]execute_cgi path=json_proto method=POST [13:32:56]POST find Content-Length [13:32:56]Host: 172.17.33.3:8080 [13:32:56]Content-Length: 735 [13:32:56]Content-Type: application/json [13:32:56] [13:32:56]POST finish read [13:32:56]Found Content-Length = 735 [13:32:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 28939, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 41.440, "sum" : 3000.26, "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:32:56]execute_script... [13:32:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 28939, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 41.440, "sum" : 3000.26, "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:32:56]POST & json_proto [13:32:56]process_json_proto [13:32:56]json parsed OK: [13:32:56]protocol is kg_v1.0 [13:32:56]action value=close_receipt [13:32:56]process_action close_receipt [13:32:56]cmd_close_receipt [13:32:56]MH_GetDate [13:32:56]Write to MH i2c: F0 00 00 34 42 65 [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: F0 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: F0 09 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: F0 09 00 34 42 00 8C 89 1A 66 23 5B 8F 65 75 [13:32:56]GetLastDocTimeStamp 1713015175 [13:32:56]current date 1713015180 [13:32:56]FM_GetShiftState [13:32:56]SAM_PROTO_GetShiftState [13:32:56]wFMCommunicate request_size=4 [13:32:56]MH_SAM_APDU [13:32:56]CAPDU: 80 13 01 00 [13:32:56]Write to MH i2c: E2 08 00 35 42 80 13 01 00 00 00 00 00 F4 [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 [13:32:56]MH_I2C_Read... [13:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:56]Read from MH i2c: E2 0E 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 0E 00 35 42 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 0D [13:32:56]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:32:56]wFMCommunicate OK [13:32:56]SAM_PROTO_GetShiftState done [13:32:56]FM_GetShiftState done [13:32:56]opened in 1712967615 [13:32:56]opened+sec_in_day 1713054015 [13:32:56]quantity*price = 300025 [13:32:56]sum+1 = 300027 [13:32:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.61 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 147 13.04.2024 13:33 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФД осн.: 28939 ФМ осн.: 0000000000963154 ФМ: 0000000000963154 ФД: 28940 ФПД: 122105064782130 1/tax-web-control/client/api/v1/ticket?date=20240413T133301&type=2&operation_type=1&fn_number=0000000000963154&fd_number=28940&fm=122105064782130&tin=02508201610067®Number=0000138879044617&sum=300000 [13:32:57]StoreToDocumentArchive [13:32:57]shift 115 fd 28940 [13:32:57]save to /storage/0115/doc_00028940 [13:32:57]save last doc name /storage/0115/doc_00028940 to /storage/kkm_last_doc_name [13:32:57]save OK [13:32:57]Clear old archive folders... [13:32:57]ProcessDocumentItem done err = 0, tmpTLVsize=276 [13:32:57]tlvbuf is 012D8540 [13:32:57]SAM_PROTO_ClearQueue [13:32:57]wFMCommunicate request_size=4 [13:32:57]MH_SAM_APDU [13:32:57]CAPDU: 80 09 00 00 [13:32:57]Write to MH i2c: E2 08 00 44 42 80 09 00 00 00 00 00 00 F8 [13:32:57]Write i2c OK [13:32:57]MH_I2C_Read... [13:32:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:57]Read from MH i2c: E2 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 03 00 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 03 00 44 42 00 90 00 FA [13:32:57]RAPDU: 90 00 [13:32:57]wFMCommunicate OK [13:32:57]SAM_PROTO_ClearQueue done [13:32:57]KKMCreateOFDPacket [13:32:57]OFDProtocolAddRootSTLVToBuf [13:32:57]FM_MakeSignedData [13:32:57]FM_MakeSignedData [13:32:57]SAM_PROTO_SignData [13:32:57]wFMCommunicate request_size=4 [13:32:57]MH_SAM_APDU [13:32:57]CAPDU: 80 0D 01 02 [13:32:57]Write to MH i2c: E2 08 00 45 42 80 0D 01 02 00 00 00 00 00 [13:32:57]Write i2c OK [13:32:57]MH_I2C_Read... [13:32:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:57]Read from MH i2c: E2 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 03 00 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 03 00 45 42 00 90 00 FB [13:32:57]RAPDU: 90 00 [13:32:57]wFMCommunicate OK [13:32:57]wFMCommunicate request_size=255 [13:32:57]MH_SAM_APDU [13:32:57]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 93 00 00 00 F4 03 04 00 8D 89 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 0B 71 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 [13:32:57]Write to MH i2c: E2 02 01 46 42 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 93 00 00 00 F4 03 04 00 8D 89 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 0B 71 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 00 00 42 [13:32:57]Write i2c OK [13:32:57]MH_I2C_Read... [13:32:58]OFD Sender: No OFD packet to send [13:32:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:58]Read from MH i2c: E2 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 03 00 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 03 00 46 42 00 90 00 FC [13:32:58]RAPDU: 90 00 [13:32:58]wFMCommunicate OK [13:32:58]wFMCommunicate request_size=35 [13:32:58]MH_SAM_APDU [13:32:58]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0C 71 00 00 35 04 06 00 6F 0D CD 02 F9 32 [13:32:58]Write to MH i2c: E2 26 00 47 42 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0C 71 00 00 35 04 06 00 6F 0D CD 02 F9 32 00 00 E5 [13:32:58]Write i2c OK [13:32:58]MH_I2C_Read... [13:32:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:58]Read from MH i2c: E2 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 03 00 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 03 00 47 42 00 90 00 FD [13:32:58]RAPDU: 90 00 [13:32:58]wFMCommunicate OK [13:32:58]wFMCommunicate request_size=4 [13:32:58]MH_SAM_APDU [13:32:58]CAPDU: 80 0D 03 02 [13:32:58]Write to MH i2c: E2 08 00 48 42 80 0D 03 02 00 00 00 00 05 [13:32:58]Write i2c OK [13:32:58]MH_I2C_Read... [13:32:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:58]Read from MH i2c: E2 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 0B 00 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 0B 00 48 42 00 70 4B 60 D6 A5 91 94 5D 90 00 1E [13:32:58]RAPDU: 70 4B 60 D6 A5 91 94 5D 90 00 [13:32:58]wFMCommunicate OK [13:32:58]SAM_PROTO_SignData done [13:32:58]FM_MakeSignedData done [13:32:58]CreateOFDProtocolMessage [13:32:58]wFMCommunicate request_size=4 [13:32:58]MH_SAM_APDU [13:32:58]CAPDU: 80 11 00 00 [13:32:58]Write to MH i2c: E2 08 00 49 42 80 11 00 00 00 00 00 00 05 [13:32:58]Write i2c OK [13:32:58]MH_I2C_Read... [13:32:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:58]Read from MH i2c: E2 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 17 00 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 17 00 49 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 54 [13:32:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:32:58]wFMCommunicate OK [13:32:58]CreateOFDProtocolMessage done [13:32:58]OFDSenderStorePacket 28940 [13:32:58]StoreOFDPacket docnum=28940 [13:32:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 28 01 00 00 67 37 20 01 1F 3A 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 93 00 00 00 F4 03 04 00 8D 89 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 0B 71 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0C 71 00 00 35 04 06 00 6F 0D CD 02 F9 32 70 4B 60 D6 A5 91 94 5D [13:32:58]CheckFolder [13:32:58]dirname=/storage/ofd_packets [13:32:58]CheckFolder done [13:32:58]ProducePacketName [13:32:58]name=ofd_packets/00028940 [13:32:58]NVStorageSaveData ofd_packets/00028940 [13:32:58]File name is /storage/ofd_packets/00028940 [13:32:58]Write 326 bytes [13:32:58]NVStorageSaveData done [13:32:58]OFDSenderStorePacket done [13:32:58]KKMCreateOFDPacket done [13:32:58]NVStorageSaveData kkm_last_timestamp [13:32:58]File name is /storage/kkm_last_timestamp [13:32:58]Write 4 bytes [13:32:58]NVStorageSaveData done [13:32:58]ExternCall_PrintAddStr [13:32:58]wPrintStart [13:32:58]Write to MH i2c: 01 00 00 4A 42 8C [13:32:58]Write i2c OK [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: 01 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: 01 07 00 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: 01 07 00 4A 42 00 00 00 00 00 FF 0F A1 [13:32:58]RasterBufferAndPrint [13:32:58]line Счет N : (1)347297 [13:32:58]line ИНН: 02508201610067 [13:32:58]line Контрольно-Кассовый Чек [13:32:58]line ВОЗВРАТ ПРОДАЖИ [13:32:58]line ТРК (МРК, ГНК) : 21 [13:32:58]line Товар: 2710194210 [13:32:58]line ДТ-К-5 [13:32:58]line 41.440 * 72.40 [13:32:58]line = 3000.26 [13:32:58]line НДС 12% НСП 1% [13:32:58]line > о реализуемом товаре [13:32:58]line ОКРУГЛЕНИЕ: -0.26 [13:32:58]line ИТОГО: 3000.00 [13:32:58]line НСП 1% : 26.55 [13:32:58]line НДС 12% : 318.61 [13:32:58]line Наличными: 3000.00 [13:32:58]line Безнал.: 0.00 [13:32:58]line Место: АЗС № 108 "Партнер Нефть" [13:32:58]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:32:58]line СНО: Общий режим [13:32:58]line Чек 147 13.04.2024 13:33 [13:32:58]line Смена: 115 ФФД: 1.0 [13:32:58]line ЗНМ: 0300000027 [13:32:58]line РНМ: 0000138879044617 [13:32:58]line Версия ККМ: 001 [13:32:58]line ФД осн.: 28939 [13:32:58]line ФМ осн.: 0000000000963154 [13:32:58]line ФМ: 0000000000963154 [13:32:58]line ФД: 28940 [13:32:58]line ФПД: 122105064782130 [13:32:58]line 1/tax-web-control/client/api/v1/ticket?date=20240413T133301&type=2&operation_type=1&fn_number=0000000000963154&fd_number=28940&fm=122105064782130&tin=02508201610067®Number=0000138879044617&sum=300000 [13:32:58]written 0, free lines is 4095 [13:32:58]OFD Sender: Processing packet 28940 [packets to send 8, broken 7] [13:32:58]ProducePacketName [13:32:58]name=ofd_packets/00028940 [13:32:58]OFD Sender: To server: pG, [13:32:58]CommunicateWithHost lk.salyk.kg:30040 [13:32:58]ConnectInit lk.salyk.kg [13:32:58]Connected sock=10 [13:32: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 31 35 34 28 01 00 00 67 37 20 01 1F 3A 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 93 00 00 00 F4 03 04 00 8D 89 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 0B 71 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0C 71 00 00 35 04 06 00 6F 0D CD 02 F9 32 70 4B 60 D6 A5 91 94 5D [13:32:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4D CF 47 00 A5 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 31 35 34 10 04 04 00 0C 71 00 00 F4 03 04 00 34 34 1A 66 B6 04 01 00 00 3E 5A B0 2D C2 94 A1 42 [13:32:58]CommunicateWithHost err = 0 [13:32:58]CheckOFDResponse [13:32:58]1017 (14) - 77093643461234 [13:32:58]1041 (16) - 0000000000963154 [13:32:58]1040 (4) - 28940 [13:32:58]1012 (4) - 13.04.2024 07:28 [13:32:58]1206 (1) - 0 [13:32:58]OFD Sender: Remove packet 28940 [13:32:58]ProducePacketName [13:32:58]name=ofd_packets/00028940 [13:32:58]NVStorageDeleteData [13:32:58]Write to MH i2c: 01 00 00 74 42 B6 [13:32:58]Write i2c OK [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: 01 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: 01 07 00 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: 01 07 00 74 42 00 00 00 00 00 DB 0C A4 [13:32:58]RasterBufferAndPrint [13:32:58]line [13:32:58]line [13:32:58]line [13:32:58]line [13:32:58]line [13:32:58]written 0, free lines is 3300 [13:32:58]MH_Cut [13:32:58]Write to MH i2c: D1 01 00 7B 42 01 8F [13:32:58]Write i2c OK [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: D1 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: D1 01 00 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: D1 01 00 7B 42 00 8E [13:32:58]Write to MH i2c: 01 00 00 7C 42 BE [13:32:58]Write i2c OK [13:32:58]MH_I2C_Read... [13:32:59]OFD Sender: No OFD packet to send [13:32:59]*** Cut start [13:32:59]*** Partial cut [13:32:59]*** CUTSNS_PIN = 1 [13:32:59]*** CUTSNS_PIN = 0 [13:32:59]*** Brake cut motor [13:33:00]Read from MH i2c: 01 [13:33:00]MH_I2C_Read... [13:33:00]*** Stop cut motor [13:33:00]*** Cut end [13:33:00]Read from MH i2c: 01 07 00 [13:33:00]MH_I2C_Read... [13:33:00]Read from MH i2c: 01 07 00 7C 42 00 00 00 00 00 FF 0F D3 [13:33:00]process_action close_receipt done [13:33:00]requested_data is exist [13:33:00]produce_requested_data [13:33:00]requested_item fm.sn is exist - process it [13:33:00]wFMCommunicate request_size=4 [13:33:00]MH_SAM_APDU [13:33:00]CAPDU: 80 11 00 00 [13:33:00]Write to MH i2c: E2 08 00 7D 42 80 11 00 00 00 00 00 00 39 [13:33:00]Write i2c OK [13:33:00]MH_I2C_Read... [13:33:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:00]Read from MH i2c: E2 [13:33:00]MH_I2C_Read... [13:33:00]Read from MH i2c: E2 17 00 [13:33:00]MH_I2C_Read... [13:33:00]Read from MH i2c: E2 17 00 7D 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 88 [13:33:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:33:00]wFMCommunicate OK [13:33:00]requested_item fd.num is exist - process it [13:33:00]SAM_PROTO_GetFieldsCounters [13:33:00]wFMCommunicate request_size=4 [13:33:00]MH_SAM_APDU [13:33:00]CAPDU: 80 13 00 00 [13:33:00]Write to MH i2c: E2 08 00 7E 42 80 13 00 00 00 00 00 00 3C [13:33:00]Write i2c OK [13:33:00]MH_I2C_Read... [13:33:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:00]Read from MH i2c: E2 [13:33:00]MH_I2C_Read... [13:33:00]Read from MH i2c: E2 62 00 [13:33:00]MH_I2C_Read... [13:33:00]Read from MH i2c: E2 62 00 7E 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0C 71 00 00 0E 04 04 00 73 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 23 [13:33: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0C 71 00 00 0E 04 04 00 73 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:33:00]wFMCommunicate OK [13:33:00]SAM_PROTO_GetFieldsCounters done [13:33:00]requested_item shift.num is exist - process it [13:33:00]requested_item shift.opened is exist - process it [13:33:00]req_shift_opened [13:33:00]FM_GetShiftState [13:33:00]SAM_PROTO_GetShiftState [13:33:00]wFMCommunicate request_size=4 [13:33:00]MH_SAM_APDU [13:33:00]CAPDU: 80 13 01 00 [13:33:00]Write to MH i2c: E2 08 00 7F 42 80 13 01 00 00 00 00 00 3E [13:33:00]Write i2c OK [13:33:00]MH_I2C_Read... [13:33:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:00]Read from MH i2c: E2 [13:33:00]MH_I2C_Read... [13:33:00]Read from MH i2c: E2 0E 00 [13:33:00]MH_I2C_Read... [13:33:00]Read from MH i2c: E2 0E 00 7F 42 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 57 [13:33:00]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:33:00]wFMCommunicate OK [13:33:00]SAM_PROTO_GetShiftState done [13:33:00]FM_GetShiftState done [13:33:00]req_shift_opened done [13:33:00]requested_item shift.open_date is exist - process it [13:33:00]req_shift_open_date [13:33:00]req_shift_open_date done [13:33:00]produce_requested_data done [13:33:00]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28940,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [13:33:00]process_action_free close_receipt [13:33:00]json_value_free [13:33:00]json_value_free done [13:33:00]process_json_proto returns [13:33:00]Send response to host [13:33:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28940,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [13:33:00]free response buf [13:33:00]execute_script done [13:33:00]execute_script returns [13:33:00]free content buf [13:33:00]Sock 7.Close socket [13:33:00]Sock 7.Thread stoped [13:33:04]OFD Sender: No OFD packet to send [13:33:09]OFD Sender: No OFD packet to send [13:33:14]OFD Sender: No OFD packet to send [13:33:19]OFD Sender: No OFD packet to send [13:33:24]OFD Sender: No OFD packet to send [13:33:29]OFD Sender: No OFD packet to send [13:33:34]OFD Sender: No OFD packet to send [13:33:39]OFD Sender: No OFD packet to send [13:33:44]OFD Sender: No OFD packet to send [13:33:49]OFD Sender: No OFD packet to send [13:33:54]OFD Sender: No OFD packet to send [13:33:59]OFD Sender: No OFD packet to send [13:34:04]OFD Sender: No OFD packet to send [13:34:09]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:14]OFD Sender: No OFD packet to send [13:36:19]OFD Sender: No OFD packet to send [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:34]OFD Sender: No OFD packet to send [13:36:39]OFD Sender: No OFD packet to send [13:36:44]OFD Sender: No OFD packet to send [13:36:49]OFD Sender: No OFD packet to send [13:36:54]OFD Sender: No OFD packet to send [13:36:59]OFD Sender: No OFD packet to send [13:37:04]OFD Sender: No OFD packet to send [13:37:09]OFD Sender: No OFD packet to send [13:37:14]OFD Sender: No OFD packet to send [13:37:19]OFD Sender: No OFD packet to send [13:37:24]OFD Sender: No OFD packet to send [13:37:29]OFD Sender: No OFD packet to send [13:37:34]OFD Sender: No OFD packet to send [13:37:39]OFD Sender: No OFD packet to send [13:37:44]OFD Sender: No OFD packet to send [13:37:49]OFD Sender: No OFD packet to send [13:37:54]OFD Sender: No OFD packet to send [13:37:59]OFD Sender: No OFD packet to send [13:38:04]OFD Sender: No OFD packet to send [13:38:09]OFD Sender: No OFD packet to send [13:38:14]OFD Sender: No OFD packet to send [13:38:19]OFD Sender: No OFD packet to send [13:38:24]OFD Sender: No OFD packet to send [13:38:29]OFD Sender: No OFD packet to send [13:38:31]accept exits with 9 [13:38:31]New connection [13:38:31]New thread 3066928484 created [13:38:31]Thread 3066785124 joined [13:38:31]Waiting for new connection... [13:38:31] Sock 9.Parse request [13:38:31]Sock 9.Check first char [13:38:31]Sock 9.First char is OK [13:38:31]request: POST /json_proto HTTP/1.0 [13:38:31]Method: POST [13:38:31]URL: /json_proto [13:38:31]Method is POST - this is cgi request [13:38:31]url: /json_proto [13:38:31]query_string will be loaded in cgi processing [13:38:31]execute_cgi json_proto POST (null) [13:38:31]execute_cgi path=json_proto method=POST [13:38:31]POST find Content-Length [13:38:31]Host: 172.17.33.3:8080 [13:38:31]Content-Length: 675 [13:38:31]Content-Type: application/json [13:38:31] [13:38:31]POST finish read [13:38:31]Found Content-Length = 675 [13:38:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 11.050, "sum" : 800.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:31]execute_script... [13:38:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 11.050, "sum" : 800.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:31]POST & json_proto [13:38:31]process_json_proto [13:38:31]json parsed OK: [13:38:31]protocol is kg_v1.0 [13:38:31]action value=close_receipt [13:38:31]process_action close_receipt [13:38:31]cmd_close_receipt [13:38:31]MH_GetDate [13:38:31]Write to MH i2c: F0 00 00 80 42 B1 [13:38:31]Write i2c OK [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: F0 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: F0 09 00 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: F0 09 00 80 42 00 DC 8A 1A 66 23 5B 8F 65 12 [13:38:31]GetLastDocTimeStamp 1713015181 [13:38:31]current date 1713015516 [13:38:31]FM_GetShiftState [13:38:31]SAM_PROTO_GetShiftState [13:38:31]wFMCommunicate request_size=4 [13:38:31]MH_SAM_APDU [13:38:31]CAPDU: 80 13 01 00 [13:38:31]Write to MH i2c: E2 08 00 81 42 80 13 01 00 00 00 00 00 40 [13:38:31]Write i2c OK [13:38:31]MH_I2C_Read... [13:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:31]Read from MH i2c: E2 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 0E 00 [13:38:31]MH_I2C_Read... [13:38:31]Read from MH i2c: E2 0E 00 81 42 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 59 [13:38:31]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:38:31]wFMCommunicate OK [13:38:31]SAM_PROTO_GetShiftState done [13:38:31]FM_GetShiftState done [13:38:31]opened in 1712967615 [13:38:31]opened+sec_in_day 1713054015 [13:38:31]quantity*price = 80002 [13:38:31]sum+1 = 80003 [13:38:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 148 13.04.2024 13:38 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28941 ФПД: 89603957085615 1/tax-web-control/client/api/v1/ticket?date=20240413T133836&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28941&fm=89603957085615&tin=02508201610067®Number=0000138879044617&sum=80000 [13:38:32]StoreToDocumentArchive [13:38:32]shift 115 fd 28941 [13:38:32]save to /storage/0115/doc_00028941 [13:38:32]save last doc name /storage/0115/doc_00028941 to /storage/kkm_last_doc_name [13:38:32]save OK [13:38:32]Clear old archive folders... [13:38:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:38:32]tlvbuf is 011CB150 [13:38:32]SAM_PROTO_ClearQueue [13:38:32]wFMCommunicate request_size=4 [13:38:32]MH_SAM_APDU [13:38:32]CAPDU: 80 09 00 00 [13:38:32]Write to MH i2c: E2 08 00 8E 42 80 09 00 00 00 00 00 00 42 [13:38:32]Write i2c OK [13:38:32]MH_I2C_Read... [13:38:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:32]Read from MH i2c: E2 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: E2 03 00 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: E2 03 00 8E 42 00 90 00 44 [13:38:32]RAPDU: 90 00 [13:38:32]wFMCommunicate OK [13:38:32]SAM_PROTO_ClearQueue done [13:38:32]KKMCreateOFDPacket [13:38:32]OFDProtocolAddRootSTLVToBuf [13:38:32]FM_MakeSignedData [13:38:32]FM_MakeSignedData [13:38:32]SAM_PROTO_SignData [13:38:32]wFMCommunicate request_size=4 [13:38:32]MH_SAM_APDU [13:38:32]CAPDU: 80 0D 01 02 [13:38:32]Write to MH i2c: E2 08 00 8F 42 80 0D 01 02 00 00 00 00 4A [13:38:32]Write i2c OK [13:38:32]MH_I2C_Read... [13:38:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:32]Read from MH i2c: E2 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: E2 03 00 [13:38:32]MH_I2C_Read... [13:38:32]Read from MH i2c: E2 03 00 8F 42 00 90 00 45 [13:38:32]RAPDU: 90 00 [13:38:32]wFMCommunicate OK [13:38:32]wFMCommunicate request_size=255 [13:38:32]MH_SAM_APDU [13:38: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 2A 2B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 82 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 30 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 94 00 00 00 F4 03 04 00 DC 8A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0D 71 00 00 35 04 06 00 51 7E 8C 08 [13:38:32]Write to MH i2c: E2 02 01 90 42 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 2B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 82 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 30 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 94 00 00 00 F4 03 04 00 DC 8A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0D 71 00 00 35 04 06 00 51 7E 8C 08 00 00 8F [13:38:32]Write i2c OK [13:38:32]MH_I2C_Read... [13:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:33]Read from MH i2c: E2 [13:38:33]MH_I2C_Read... [13:38:33]Read from MH i2c: E2 03 00 [13:38:33]MH_I2C_Read... [13:38:33]Read from MH i2c: E2 03 00 90 42 00 90 00 46 [13:38:33]RAPDU: 90 00 [13:38:33]wFMCommunicate OK [13:38:33]wFMCommunicate request_size=7 [13:38:33]MH_SAM_APDU [13:38:33]CAPDU: 80 0D 02 02 02 55 AF [13:38:33]Write to MH i2c: E2 0A 00 91 42 80 0D 02 02 02 00 55 AF 00 00 55 [13:38:33]Write i2c OK [13:38:33]MH_I2C_Read... [13:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:33]Read from MH i2c: E2 [13:38:33]MH_I2C_Read... [13:38:33]Read from MH i2c: E2 03 00 [13:38:33]MH_I2C_Read... [13:38:33]Read from MH i2c: E2 03 00 91 42 00 90 00 47 [13:38:33]RAPDU: 90 00 [13:38:33]wFMCommunicate OK [13:38:33]wFMCommunicate request_size=4 [13:38:33]MH_SAM_APDU [13:38:33]CAPDU: 80 0D 03 02 [13:38:33]Write to MH i2c: E2 08 00 92 42 80 0D 03 02 00 00 00 00 4F [13:38:33]Write i2c OK [13:38:33]MH_I2C_Read... [13:38:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:33]Read from MH i2c: E2 [13:38:33]MH_I2C_Read... [13:38:33]Read from MH i2c: E2 0B 00 [13:38:33]MH_I2C_Read... [13:38:33]Read from MH i2c: E2 0B 00 92 42 00 CF 0F 34 DE DE 5D 34 E7 90 00 96 [13:38:33]RAPDU: CF 0F 34 DE DE 5D 34 E7 90 00 [13:38:33]wFMCommunicate OK [13:38:33]SAM_PROTO_SignData done [13:38:33]FM_MakeSignedData done [13:38:33]CreateOFDProtocolMessage [13:38:33]wFMCommunicate request_size=4 [13:38:33]MH_SAM_APDU [13:38:33]CAPDU: 80 11 00 00 [13:38:33]Write to MH i2c: E2 08 00 93 42 80 11 00 00 00 00 00 00 4F [13:38:33]Write i2c OK [13:38:33]MH_I2C_Read... [13:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:33]Read from MH i2c: E2 [13:38:33]MH_I2C_Read... [13:38:33]Read from MH i2c: E2 17 00 [13:38:33]MH_I2C_Read... [13:38:33]Read from MH i2c: E2 17 00 93 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9E [13:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:38:33]wFMCommunicate OK [13:38:33]CreateOFDProtocolMessage done [13:38:33]OFDSenderStorePacket 28941 [13:38:33]StoreOFDPacket docnum=28941 [13:38:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 B1 0C 04 01 CD 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 2B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 82 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 30 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 94 00 00 00 F4 03 04 00 DC 8A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0D 71 00 00 35 04 06 00 51 7E 8C 08 55 AF CF 0F 34 DE DE 5D 34 E7 [13:38:33]CheckFolder [13:38:33]dirname=/storage/ofd_packets [13:38:33]CheckFolder done [13:38:33]ProducePacketName [13:38:33]name=ofd_packets/00028941 [13:38:33]NVStorageSaveData ofd_packets/00028941 [13:38:33]File name is /storage/ofd_packets/00028941 [13:38:33]Write 298 bytes [13:38:33]NVStorageSaveData done [13:38:33]OFDSenderStorePacket done [13:38:33]KKMCreateOFDPacket done [13:38:33]NVStorageSaveData kkm_last_timestamp [13:38:33]File name is /storage/kkm_last_timestamp [13:38:33]Write 4 bytes [13:38:33]NVStorageSaveData done [13:38:33]ExternCall_PrintAddStr [13:38:33]wPrintStart [13:38:33]Write to MH i2c: 01 00 00 94 42 D6 [13:38:33]Write i2c OK [13:38:33]MH_I2C_Read... [13:38:33]Read from MH i2c: 01 [13:38:33]MH_I2C_Read... [13:38:33]Read from MH i2c: 01 07 00 [13:38:33]MH_I2C_Read... [13:38:33]Read from MH i2c: 01 07 00 94 42 00 00 00 00 00 FF 0F EB [13:38:33]RasterBufferAndPrint [13:38:33]line Счет N : (1)347298 [13:38:33]line ИНН: 02508201610067 [13:38:33]line Контрольно-Кассовый Чек [13:38:33]line ПРОДАЖА [13:38:33]line ТРК (МРК, ГНК) : 21 [13:38:33]line Товар: 2710194210 [13:38:33]line ДТ-К-5 [13:38:33]line 11.050 * 72.40 [13:38:33]line = 800.02 [13:38:33]line НДС 12% НСП 1% [13:38:33]line > о реализуемом товаре [13:38:33]line ОКРУГЛЕНИЕ: -0.02 [13:38:33]line ИТОГО: 800.00 [13:38:33]line Внесено: 800.00 [13:38:33]line СДАЧА: 0.00 [13:38:33]line НСП 1% : 7.08 [13:38:33]line НДС 12% : 84.96 [13:38:33]line Наличными: 800.00 [13:38:33]line Безнал.: 0.00 [13:38:33]line Место: АЗС № 108 "Партнер Нефть" [13:38:33]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:38:33]line СНО: Общий режим [13:38:33]line Чек 148 13.04.2024 13:38 [13:38:33]line Смена: 115 ФФД: 1.0 [13:38:33]line ЗНМ: 0300000027 [13:38:33]line РНМ: 0000138879044617 [13:38:33]line Версия ККМ: 001 [13:38:33]line ФМ: 0000000000963154 [13:38:33]line ФД: 28941 [13:38:33]line ФПД: 89603957085615 [13:38:33]line 1/tax-web-control/client/api/v1/ticket?date=20240413T133836&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28941&fm=89603957085615&tin=02508201610067®Number=0000138879044617&sum=80000 [13:38:33]OFD Sender: Processing packet 28941 [packets to send 8, broken 7] [13:38:33]ProducePacketName [13:38:33]name=ofd_packets/00028941 [13:38:33]OFD Sender: To server: pG, [13:38:33]CommunicateWithHost lk.salyk.kg:30040 [13:38:33]ConnectInit lk.salyk.kg [13:38:33]written 0, free lines is 4095 [13:38:33]Connected sock=10 [13:38:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 B1 0C 04 01 CD 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 2B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 82 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 30 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 94 00 00 00 F4 03 04 00 DC 8A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0D 71 00 00 35 04 06 00 51 7E 8C 08 55 AF CF 0F 34 DE DE 5D 34 E7 [13:38:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C4 D6 47 00 F1 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 31 35 34 10 04 04 00 0D 71 00 00 F4 03 04 00 83 35 1A 66 B6 04 01 00 00 12 27 2F A7 BB 55 80 91 [13:38:33]CommunicateWithHost err = 0 [13:38:33]CheckOFDResponse [13:38:33]1017 (14) - 77093643461234 [13:38:33]1041 (16) - 0000000000963154 [13:38:33]1040 (4) - 28941 [13:38:33]1012 (4) - 13.04.2024 07:34 [13:38:33]1206 (1) - 0 [13:38:33]OFD Sender: Remove packet 28941 [13:38:33]ProducePacketName [13:38:33]name=ofd_packets/00028941 [13:38:33]NVStorageDeleteData [13:38:34]Write to MH i2c: 01 00 00 BE 42 00 [13:38:34]Write i2c OK [13:38:34]MH_I2C_Read... [13:38:34]Read from MH i2c: 01 [13:38:34]MH_I2C_Read... [13:38:34]Read from MH i2c: 01 07 00 [13:38:34]MH_I2C_Read... [13:38:34]Read from MH i2c: 01 07 00 BE 42 00 00 00 00 00 C1 0C D4 [13:38:34]RasterBufferAndPrint [13:38:34]line [13:38:34]line [13:38:34]line [13:38:34]line [13:38:34]line [13:38:34]written 0, free lines is 3269 [13:38:34]MH_Cut [13:38:34]Write to MH i2c: D1 01 00 C5 42 01 D9 [13:38:34]Write i2c OK [13:38:34]MH_I2C_Read... [13:38:34]Read from MH i2c: D1 [13:38:34]MH_I2C_Read... [13:38:34]Read from MH i2c: D1 01 00 [13:38:34]MH_I2C_Read... [13:38:34]Read from MH i2c: D1 01 00 C5 42 00 D8 [13:38:34]Write to MH i2c: 01 00 00 C6 42 08 [13:38:34]Write i2c OK [13:38:34]MH_I2C_Read... [13:38:34]OFD Sender: No OFD packet to send [13:38:34]*** Cut start [13:38:34]*** Partial cut [13:38:34]*** CUTSNS_PIN = 1 [13:38:34]*** CUTSNS_PIN = 0 [13:38:35]*** Brake cut motor [13:38:35]Read from MH i2c: 01 [13:38:35]MH_I2C_Read... [13:38:35]*** Stop cut motor [13:38:35]*** Cut end [13:38:35]Read from MH i2c: 01 07 00 [13:38:35]MH_I2C_Read... [13:38:35]Read from MH i2c: 01 07 00 C6 42 00 00 00 00 00 FF 0F 1D [13:38:35]process_action close_receipt done [13:38:35]requested_data is exist [13:38:35]produce_requested_data [13:38:35]requested_item fm.sn is exist - process it [13:38:35]wFMCommunicate request_size=4 [13:38:35]MH_SAM_APDU [13:38:35]CAPDU: 80 11 00 00 [13:38:35]Write to MH i2c: E2 08 00 C7 42 80 11 00 00 00 00 00 00 83 [13:38:35]Write i2c OK [13:38:35]MH_I2C_Read... [13:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:35]Read from MH i2c: E2 [13:38:35]MH_I2C_Read... [13:38:35]Read from MH i2c: E2 17 00 [13:38:35]MH_I2C_Read... [13:38:35]Read from MH i2c: E2 17 00 C7 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D2 [13:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:38:35]wFMCommunicate OK [13:38:35]requested_item fd.num is exist - process it [13:38:35]SAM_PROTO_GetFieldsCounters [13:38:35]wFMCommunicate request_size=4 [13:38:35]MH_SAM_APDU [13:38:35]CAPDU: 80 13 00 00 [13:38:35]Write to MH i2c: E2 08 00 C8 42 80 13 00 00 00 00 00 00 86 [13:38:35]Write i2c OK [13:38:35]MH_I2C_Read... [13:38:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:35]Read from MH i2c: E2 [13:38:35]MH_I2C_Read... [13:38:35]Read from MH i2c: E2 62 00 [13:38:35]MH_I2C_Read... [13:38:35]Read from MH i2c: E2 62 00 C8 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0D 71 00 00 0E 04 04 00 73 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 71 [13:38:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0D 71 00 00 0E 04 04 00 73 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:38:35]wFMCommunicate OK [13:38:35]SAM_PROTO_GetFieldsCounters done [13:38:35]requested_item shift.num is exist - process it [13:38:35]requested_item shift.opened is exist - process it [13:38:35]req_shift_opened [13:38:35]FM_GetShiftState [13:38:35]SAM_PROTO_GetShiftState [13:38:35]wFMCommunicate request_size=4 [13:38:35]MH_SAM_APDU [13:38:35]CAPDU: 80 13 01 00 [13:38:35]Write to MH i2c: E2 08 00 C9 42 80 13 01 00 00 00 00 00 88 [13:38:35]Write i2c OK [13:38:35]MH_I2C_Read... [13:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:35]Read from MH i2c: E2 [13:38:35]MH_I2C_Read... [13:38:35]Read from MH i2c: E2 0E 00 [13:38:35]MH_I2C_Read... [13:38:35]Read from MH i2c: E2 0E 00 C9 42 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A1 [13:38:35]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:38:35]wFMCommunicate OK [13:38:35]SAM_PROTO_GetShiftState done [13:38:35]FM_GetShiftState done [13:38:35]req_shift_opened done [13:38:35]requested_item shift.open_date is exist - process it [13:38:35]req_shift_open_date [13:38:35]req_shift_open_date done [13:38:35]produce_requested_data done [13:38:35]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28941,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [13:38:35]process_action_free close_receipt [13:38:35]json_value_free [13:38:35]json_value_free done [13:38:35]process_json_proto returns [13:38:35]Send response to host [13:38:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28941,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [13:38:35]free response buf [13:38:35]execute_script done [13:38:35]execute_script returns [13:38:35]free content buf [13:38:35]Sock 9.Close socket [13:38:35]Sock 9.Thread stoped [13:38:39]OFD Sender: No OFD packet to send [13:38:44]OFD Sender: No OFD packet to send [13:38:49]OFD Sender: No OFD packet to send [13:38:54]OFD Sender: No OFD packet to send [13:38:59]OFD Sender: No OFD packet to send [13:39:04]OFD Sender: No OFD packet to send [13:39:09]OFD Sender: No OFD packet to send [13:39:14]OFD Sender: No OFD packet to send [13:39:19]OFD Sender: No OFD packet to send [13:39:24]OFD Sender: No OFD packet to send [13:39:29]OFD Sender: No OFD packet to send [13:39:34]OFD Sender: No OFD packet to send [13:39:39]OFD Sender: No OFD packet to send [13:39:44]OFD Sender: No OFD packet to send [13:39:49]OFD Sender: No OFD packet to send [13:39:53]accept exits with 7 [13:39:53]New connection [13:39:53]New thread 3066785124 created [13:39:53]Thread 3066928484 joined [13:39:53]Waiting for new connection... [13:39:53] Sock 7.Parse request [13:39:53]Sock 7.Check first char [13:39:53]Sock 7.First char is OK [13:39:53]request: POST /json_proto HTTP/1.0 [13:39:53]Method: POST [13:39:53]URL: /json_proto [13:39:53]Method is POST - this is cgi request [13:39:53]url: /json_proto [13:39:53]query_string will be loaded in cgi processing [13:39:53]execute_cgi json_proto POST (null) [13:39:53]execute_cgi path=json_proto method=POST [13:39:53]POST find Content-Length [13:39:53]Host: 172.17.33.3:8080 [13:39:53]Content-Length: 677 [13:39:53]Content-Type: application/json [13:39:53] [13:39:53]POST finish read [13:39:53]Found Content-Length = 677 [13:39:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.670, "sum" : 300.28, "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" ] } } [13:39:53]execute_script... [13:39: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)347300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.670, "sum" : 300.28, "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" ] } } [13:39:53]POST & json_proto [13:39:53]process_json_proto [13:39:53]json parsed OK: [13:39:53]protocol is kg_v1.0 [13:39:53]action value=close_receipt [13:39:53]process_action close_receipt [13:39:53]cmd_close_receipt [13:39:53]MH_GetDate [13:39:53]Write to MH i2c: F0 00 00 CA 42 FB [13:39:53]Write i2c OK [13:39:53]MH_I2C_Read... [13:39:53]Read from MH i2c: F0 [13:39:53]MH_I2C_Read... [13:39:53]Read from MH i2c: F0 09 00 [13:39:53]MH_I2C_Read... [13:39:53]Read from MH i2c: F0 09 00 CA 42 00 2E 8B 1A 66 23 5B 8F 65 AF [13:39:53]GetLastDocTimeStamp 1713015516 [13:39:53]current date 1713015598 [13:39:53]FM_GetShiftState [13:39:53]SAM_PROTO_GetShiftState [13:39:53]wFMCommunicate request_size=4 [13:39:53]MH_SAM_APDU [13:39:53]CAPDU: 80 13 01 00 [13:39:53]Write to MH i2c: E2 08 00 CB 42 80 13 01 00 00 00 00 00 8A [13:39:53]Write i2c OK [13:39:53]MH_I2C_Read... [13:39:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:53]Read from MH i2c: E2 [13:39:53]MH_I2C_Read... [13:39:53]Read from MH i2c: E2 0E 00 [13:39:53]MH_I2C_Read... [13:39:53]Read from MH i2c: E2 0E 00 CB 42 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A3 [13:39:53]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:39:53]wFMCommunicate OK [13:39:53]SAM_PROTO_GetShiftState done [13:39:53]FM_GetShiftState done [13:39:53]opened in 1712967615 [13:39:53]opened+sec_in_day 1713054015 [13:39:53]quantity*price = 30028 [13:39:53]sum+1 = 30029 [13:39:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 149 13.04.2024 13:39 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28942 ФПД: 87092753515386 1/tax-web-control/client/api/v1/ticket?date=20240413T133958&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28942&fm=87092753515386&tin=02508201610067®Number=0000138879044617&sum=30000 [13:39:54]StoreToDocumentArchive [13:39:54]shift 115 fd 28942 [13:39:54]save to /storage/0115/doc_00028942 [13:39:54]save last doc name /storage/0115/doc_00028942 to /storage/kkm_last_doc_name [13:39:54]save OK [13:39:54]Clear old archive folders... [13:39:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:39:54]tlvbuf is 01286210 [13:39:54]SAM_PROTO_ClearQueue [13:39:54]wFMCommunicate request_size=4 [13:39:54]MH_SAM_APDU [13:39:54]CAPDU: 80 09 00 00 [13:39:54]Write to MH i2c: E2 08 00 D8 42 80 09 00 00 00 00 00 00 8C [13:39:54]Write i2c OK [13:39:54]MH_I2C_Read... [13:39:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:54]Read from MH i2c: E2 [13:39:54]MH_I2C_Read... [13:39:54]Read from MH i2c: E2 03 00 [13:39:54]MH_I2C_Read... [13:39:54]Read from MH i2c: E2 03 00 D8 42 00 90 00 8E [13:39:54]RAPDU: 90 00 [13:39:54]wFMCommunicate OK [13:39:54]SAM_PROTO_ClearQueue done [13:39:54]KKMCreateOFDPacket [13:39:54]OFDProtocolAddRootSTLVToBuf [13:39:54]FM_MakeSignedData [13:39:54]FM_MakeSignedData [13:39:54]SAM_PROTO_SignData [13:39:54]wFMCommunicate request_size=4 [13:39:54]MH_SAM_APDU [13:39:54]CAPDU: 80 0D 01 02 [13:39:54]Write to MH i2c: E2 08 00 D9 42 80 0D 01 02 00 00 00 00 94 [13:39:54]Write i2c OK [13:39:54]MH_I2C_Read... [13:39:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:54]Read from MH i2c: E2 [13:39:54]MH_I2C_Read... [13:39:54]Read from MH i2c: E2 03 00 [13:39:54]MH_I2C_Read... [13:39:54]Read from MH i2c: E2 03 00 D9 42 00 90 00 8F [13:39:54]RAPDU: 90 00 [13:39:54]wFMCommunicate OK [13:39:54]wFMCommunicate request_size=255 [13:39:54]MH_SAM_APDU [13:39: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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 2E 8B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0E 71 00 00 35 04 06 00 4F [13:39:54]Write to MH i2c: E2 02 01 DA 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 2E 8B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0E 71 00 00 35 04 06 00 4F 00 00 E8 [13:39:54]Write i2c OK [13:39:54]MH_I2C_Read... [13:39:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:55]Read from MH i2c: E2 [13:39:55]MH_I2C_Read... [13:39:55]Read from MH i2c: E2 03 00 [13:39:55]MH_I2C_Read... [13:39:55]Read from MH i2c: E2 03 00 DA 42 00 90 00 90 [13:39:55]RAPDU: 90 00 [13:39:55]wFMCommunicate OK [13:39:55]wFMCommunicate request_size=10 [13:39:55]MH_SAM_APDU [13:39:55]CAPDU: 80 0D 02 02 05 35 DC A2 C3 7A [13:39:55]Write to MH i2c: E2 0D 00 DB 42 80 0D 02 02 05 00 35 DC A2 C3 7A 00 00 91 [13:39:55]Write i2c OK [13:39:55]MH_I2C_Read... [13:39:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:55]Read from MH i2c: E2 [13:39:55]MH_I2C_Read... [13:39:55]Read from MH i2c: E2 03 00 [13:39:55]MH_I2C_Read... [13:39:55]Read from MH i2c: E2 03 00 DB 42 00 90 00 91 [13:39:55]RAPDU: 90 00 [13:39:55]wFMCommunicate OK [13:39:55]wFMCommunicate request_size=4 [13:39:55]MH_SAM_APDU [13:39:55]CAPDU: 80 0D 03 02 [13:39:55]Write to MH i2c: E2 08 00 DC 42 80 0D 03 02 00 00 00 00 99 [13:39:55]Write i2c OK [13:39:55]MH_I2C_Read... [13:39:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:55]Read from MH i2c: E2 [13:39:55]MH_I2C_Read... [13:39:55]Read from MH i2c: E2 0B 00 [13:39:55]MH_I2C_Read... [13:39:55]Read from MH i2c: E2 0B 00 DC 42 00 2D 4A B8 06 1A C2 D3 77 90 00 F5 [13:39:55]RAPDU: 2D 4A B8 06 1A C2 D3 77 90 00 [13:39:55]wFMCommunicate OK [13:39:55]SAM_PROTO_SignData done [13:39:55]FM_MakeSignedData done [13:39:55]CreateOFDProtocolMessage [13:39:55]wFMCommunicate request_size=4 [13:39:55]MH_SAM_APDU [13:39:55]CAPDU: 80 11 00 00 [13:39:55]Write to MH i2c: E2 08 00 DD 42 80 11 00 00 00 00 00 00 99 [13:39:55]Write i2c OK [13:39:55]MH_I2C_Read... [13:39:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:55]Read from MH i2c: E2 [13:39:55]MH_I2C_Read... [13:39:55]Read from MH i2c: E2 17 00 [13:39:55]MH_I2C_Read... [13:39:55]Read from MH i2c: E2 17 00 DD 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E8 [13:39:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:39:55]wFMCommunicate OK [13:39:55]CreateOFDProtocolMessage done [13:39:55]OFDSenderStorePacket 28942 [13:39:55]StoreOFDPacket docnum=28942 [13:39:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 2A 6B 07 01 E2 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 2E 8B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0E 71 00 00 35 04 06 00 4F 35 DC A2 C3 7A 2D 4A B8 06 1A C2 D3 77 [13:39:55]CheckFolder [13:39:55]dirname=/storage/ofd_packets [13:39:55]CheckFolder done [13:39:55]ProducePacketName [13:39:55]name=ofd_packets/00028942 [13:39:55]NVStorageSaveData ofd_packets/00028942 [13:39:55]File name is /storage/ofd_packets/00028942 [13:39:55]Write 301 bytes [13:39:55]NVStorageSaveData done [13:39:55]OFDSenderStorePacket done [13:39:55]KKMCreateOFDPacket done [13:39:55]NVStorageSaveData kkm_last_timestamp [13:39:55]File name is /storage/kkm_last_timestamp [13:39:55]Write 4 bytes [13:39:55]NVStorageSaveData done [13:39:55]ExternCall_PrintAddStr [13:39:55]wPrintStart [13:39:55]Write to MH i2c: 01 00 00 DE 42 20 [13:39:55]Write i2c OK [13:39:55]MH_I2C_Read... [13:39:55]Read from MH i2c: 01 [13:39:55]MH_I2C_Read... [13:39:55]Read from MH i2c: 01 07 00 [13:39:55]MH_I2C_Read... [13:39:55]Read from MH i2c: 01 07 00 DE 42 00 00 00 00 00 FF 0F 35 [13:39:55]RasterBufferAndPrint [13:39:55]line Счет N : (1)347300 [13:39:55]line ИНН: 02508201610067 [13:39:55]line Контрольно-Кассовый Чек [13:39:55]line ПРОДАЖА [13:39:55]line ТРК (МРК, ГНК) : 13 [13:39:55]line Товар: 2710124130 [13:39:55]line Аи-92-К-5 [13:39:55]line 4.670 * 64.30 [13:39:55]line = 300.28 [13:39:55]line НДС 12% НСП 1% [13:39:55]line > о реализуемом товаре [13:39:55]line ОКРУГЛЕНИЕ: -0.28 [13:39:55]line ИТОГО: 300.00 [13:39:55]line Внесено: 300.00 [13:39:55]line СДАЧА: 0.00 [13:39:55]line НСП 1% : 2.66 [13:39:55]line НДС 12% : 31.89 [13:39:55]line Наличными: 300.00 [13:39:55]line Безнал.: 0.00 [13:39:55]line Место: АЗС № 108 "Партнер Нефть" [13:39:55]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:39:55]line СНО: Общий режим [13:39:55]line Чек 149 13.04.2024 13:39 [13:39:55]line Смена: 115 ФФД: 1.0 [13:39:55]line ЗНМ: 0300000027 [13:39:55]line РНМ: 0000138879044617 [13:39:55]line Версия ККМ: 001 [13:39:55]line ФМ: 0000000000963154 [13:39:55]line ФД: 28942 [13:39:55]line ФПД: 87092753515386 [13:39:55]line 1/tax-web-control/client/api/v1/ticket?date=20240413T133958&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28942&fm=87092753515386&tin=02508201610067®Number=0000138879044617&sum=30000 [13:39:55]OFD Sender: Processing packet 28942 [packets to send 8, broken 7] [13:39:55]ProducePacketName [13:39:55]name=ofd_packets/00028942 [13:39:55]OFD Sender: To server: pG, [13:39:55]CommunicateWithHost lk.salyk.kg:30040 [13:39:55]ConnectInit lk.salyk.kg [13:39:55]written 0, free lines is 4095 [13:39:55]Connected sock=10 [13:39: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 31 35 34 0F 01 00 00 2A 6B 07 01 E2 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 2E 8B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0E 71 00 00 35 04 06 00 4F 35 DC A2 C3 7A 2D 4A B8 06 1A C2 D3 77 [13:39:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 DE 21 47 00 9B 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 31 35 34 10 04 04 00 0E 71 00 00 F4 03 04 00 D5 35 1A 66 B6 04 01 00 00 65 EC 61 29 53 CF 4B 58 [13:39:55]CommunicateWithHost err = 0 [13:39:55]CheckOFDResponse [13:39:55]1017 (14) - 77093643461234 [13:39:55]1041 (16) - 0000000000963154 [13:39:55]1040 (4) - 28942 [13:39:55]1012 (4) - 13.04.2024 07:35 [13:39:55]1206 (1) - 0 [13:39:55]OFD Sender: Remove packet 28942 [13:39:55]ProducePacketName [13:39:55]name=ofd_packets/00028942 [13:39:55]NVStorageDeleteData [13:39:55]Write to MH i2c: 01 00 00 08 43 4B [13:39:56]Write i2c OK [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: 01 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: 01 07 00 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: 01 07 00 08 43 00 00 00 00 00 C3 0C 21 [13:39:56]RasterBufferAndPrint [13:39:56]line [13:39:56]line [13:39:56]line [13:39:56]line [13:39:56]line [13:39:56]written 0, free lines is 3271 [13:39:56]MH_Cut [13:39:56]Write to MH i2c: D1 01 00 0F 43 01 24 [13:39:56]Write i2c OK [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: D1 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: D1 01 00 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: D1 01 00 0F 43 00 23 [13:39:56]Write to MH i2c: 01 00 00 10 43 53 [13:39:56]Write i2c OK [13:39:56]MH_I2C_Read... [13:39:56]OFD Sender: No OFD packet to send [13:39:56]*** Cut start [13:39:56]*** Partial cut [13:39:56]*** CUTSNS_PIN = 1 [13:39:56]*** CUTSNS_PIN = 0 [13:39:57]*** Brake cut motor [13:39:57]Read from MH i2c: 01 [13:39:57]MH_I2C_Read... [13:39:57]*** Stop cut motor [13:39:57]*** Cut end [13:39:57]Read from MH i2c: 01 07 00 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: 01 07 00 10 43 00 00 00 00 00 FF 0F 68 [13:39:57]process_action close_receipt done [13:39:57]requested_data is exist [13:39:57]produce_requested_data [13:39:57]requested_item fm.sn is exist - process it [13:39:57]wFMCommunicate request_size=4 [13:39:57]MH_SAM_APDU [13:39:57]CAPDU: 80 11 00 00 [13:39:57]Write to MH i2c: E2 08 00 11 43 80 11 00 00 00 00 00 00 CE [13:39:57]Write i2c OK [13:39:57]MH_I2C_Read... [13:39:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:57]Read from MH i2c: E2 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: E2 17 00 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: E2 17 00 11 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1D [13:39:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:39:57]wFMCommunicate OK [13:39:57]requested_item fd.num is exist - process it [13:39:57]SAM_PROTO_GetFieldsCounters [13:39:57]wFMCommunicate request_size=4 [13:39:57]MH_SAM_APDU [13:39:57]CAPDU: 80 13 00 00 [13:39:57]Write to MH i2c: E2 08 00 12 43 80 13 00 00 00 00 00 00 D1 [13:39:57]Write i2c OK [13:39:57]MH_I2C_Read... [13:39:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:57]Read from MH i2c: E2 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: E2 62 00 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: E2 62 00 12 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0E 71 00 00 0E 04 04 00 73 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 C0 [13:39: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0E 71 00 00 0E 04 04 00 73 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:39:57]wFMCommunicate OK [13:39:57]SAM_PROTO_GetFieldsCounters done [13:39:57]requested_item shift.num is exist - process it [13:39:57]requested_item shift.opened is exist - process it [13:39:57]req_shift_opened [13:39:57]FM_GetShiftState [13:39:57]SAM_PROTO_GetShiftState [13:39:57]wFMCommunicate request_size=4 [13:39:57]MH_SAM_APDU [13:39:57]CAPDU: 80 13 01 00 [13:39:57]Write to MH i2c: E2 08 00 13 43 80 13 01 00 00 00 00 00 D3 [13:39:57]Write i2c OK [13:39:57]MH_I2C_Read... [13:39:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:57]Read from MH i2c: E2 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: E2 0E 00 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: E2 0E 00 13 43 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 EC [13:39:57]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:39:57]wFMCommunicate OK [13:39:57]SAM_PROTO_GetShiftState done [13:39:57]FM_GetShiftState done [13:39:57]req_shift_opened done [13:39:57]requested_item shift.open_date is exist - process it [13:39:57]req_shift_open_date [13:39:57]req_shift_open_date done [13:39:57]produce_requested_data done [13:39:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28942,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [13:39:57]process_action_free close_receipt [13:39:57]json_value_free [13:39:57]json_value_free done [13:39:57]process_json_proto returns [13:39:57]Send response to host [13:39:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28942,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [13:39:57]free response buf [13:39:57]execute_script done [13:39:57]execute_script returns [13:39:57]free content buf [13:39:57]Sock 7.Close socket [13:39:57]Sock 7.Thread stoped [13:40:01]OFD Sender: No OFD packet to send [13:40:06]OFD Sender: No OFD packet to send [13:40:11]OFD Sender: No OFD packet to send [13:40:16]OFD Sender: No OFD packet to send [13:40:21]OFD Sender: No OFD packet to send [13:40:26]OFD Sender: No OFD packet to send [13:40:31]OFD Sender: No OFD packet to send [13:40:36]OFD Sender: No OFD packet to send [13:40:41]OFD Sender: No OFD packet to send [13:40:46]OFD Sender: No OFD packet to send [13:40:51]OFD Sender: No OFD packet to send [13:40:56]OFD Sender: No OFD packet to send [13:41:01]OFD Sender: No OFD packet to send [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:31]OFD Sender: No OFD packet to send [13:41:36]OFD Sender: No OFD packet to send [13:41:41]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:49]accept exits with 9 [13:41:49]New connection [13:41:49]New thread 3066928484 created [13:41:49]Thread 3066785124 joined [13:41:49]Waiting for new connection... [13:41:49] Sock 9.Parse request [13:41:49]Sock 9.Check first char [13:41:49]Sock 9.First char is OK [13:41:49]request: POST /json_proto HTTP/1.0 [13:41:49]Method: POST [13:41:49]URL: /json_proto [13:41:49]Method is POST - this is cgi request [13:41:49]url: /json_proto [13:41:49]query_string will be loaded in cgi processing [13:41:49]execute_cgi json_proto POST (null) [13:41:49]execute_cgi path=json_proto method=POST [13:41:49]POST find Content-Length [13:41:49]Host: 172.17.33.3:8080 [13:41:49]Content-Length: 1213 [13:41:49]Content-Type: application/json [13:41:49] [13:41:49]POST finish read [13:41:49]Found Content-Length = 1213 [13:41:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347299\u000A13.04.2024 13:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1929.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3824118;3824116;3824117\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:49]execute_script... [13:41:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347299\u000A13.04.2024 13:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1929.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3824118;3824116;3824117\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:49]POST & json_proto [13:41:49]process_json_proto [13:41:49]json parsed OK: [13:41:49]protocol is kg_v1.0 [13:41:49]action value=print_text [13:41:49]process_action print_text [13:41:49]cmd_print_text [13:41:49]ExternCall_PrintAddStr [13:41:49]wPrintStart [13:41:49]Write to MH i2c: 01 00 00 14 43 57 [13:41:49]Write i2c OK [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: 01 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: 01 07 00 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: 01 07 00 14 43 00 00 00 00 00 FF 0F 6C [13:41:49]RasterBufferAndPrint [13:41:49]line *****ТОВАРНЫЙ ЧЕК***** [13:41:49]line АЗС 108 [13:41:49]line Партнер нефть [13:41:49]line 02508201610067 [13:41:49]line Кассир : Шадыканова Ж. [13:41:49]line Счет N : (1)347299 [13:41:49]line 13.04.2024 13:23 [13:41:49]line ПРОДАЖА [13:41:49]line ТРК (МРК, ГНК): 32 [13:41:49]line Вид ГСМ : 2710124130 [13:41:49]line Аи-92-К-5 [13:41:49]line 30.000 x 64.30 [13:41:49]line ИТОГ: 1929.00 [13:41:49]line Тип оплаты: Талоны: Партнер нефть [13:41:49]line 3824118;3824116;3824117 [13:41:49]line ______________________ [13:41:49]line (подпись) [13:41:49]written 0, free lines is 4095 [13:41:49]Write to MH i2c: 01 00 00 29 43 6C [13:41:49]Write i2c OK [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: 01 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: 01 07 00 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: 01 07 00 29 43 00 00 00 00 00 00 0E 81 [13:41:49]RasterBufferAndPrint [13:41:49]line [13:41:49]line [13:41:49]line [13:41:49]line [13:41:49]line [13:41:49]written 0, free lines is 3586 [13:41:49]MH_Cut [13:41:49]Write to MH i2c: D1 01 00 30 43 01 45 [13:41:49]Write i2c OK [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: D1 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: D1 01 00 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: D1 01 00 30 43 00 44 [13:41:49]Write to MH i2c: 01 00 00 31 43 74 [13:41:49]Write i2c OK [13:41:49]MH_I2C_Read... [13:41:49]*** Cut start [13:41:49]*** Partial cut [13:41:49]*** CUTSNS_PIN = 1 [13:41:49]*** CUTSNS_PIN = 0 [13:41:50]*** Brake cut motor [13:41:50]Read from MH i2c: 01 [13:41:50]MH_I2C_Read... [13:41:50]Read from MH i2c: 01 07 00 [13:41:50]MH_I2C_Read... [13:41:50]*** Stop cut motor [13:41:50]*** Cut end [13:41:50]Read from MH i2c: 01 07 00 31 43 00 00 00 00 00 FF 0F 89 [13:41:50]process_action print_text done [13:41:50]requested_data is exist [13:41:50]produce_requested_data [13:41:50]requested_item fm.sn is exist - process it [13:41:50]wFMCommunicate request_size=4 [13:41:50]MH_SAM_APDU [13:41:50]CAPDU: 80 11 00 00 [13:41:50]Write to MH i2c: E2 08 00 32 43 80 11 00 00 00 00 00 00 EF [13:41:50]Write i2c OK [13:41:50]MH_I2C_Read... [13:41:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:50]Read from MH i2c: E2 [13:41:50]MH_I2C_Read... [13:41:50]Read from MH i2c: E2 17 00 [13:41:50]MH_I2C_Read... [13:41:50]Read from MH i2c: E2 17 00 32 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3E [13:41:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:41:50]wFMCommunicate OK [13:41:50]requested_item fd.num is exist - process it [13:41:50]SAM_PROTO_GetFieldsCounters [13:41:50]wFMCommunicate request_size=4 [13:41:50]MH_SAM_APDU [13:41:50]CAPDU: 80 13 00 00 [13:41:50]Write to MH i2c: E2 08 00 33 43 80 13 00 00 00 00 00 00 F2 [13:41:50]Write i2c OK [13:41:50]MH_I2C_Read... [13:41:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:50]Read from MH i2c: E2 [13:41:50]MH_I2C_Read... [13:41:50]Read from MH i2c: E2 62 00 [13:41:50]MH_I2C_Read... [13:41:50]Read from MH i2c: E2 62 00 33 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0E 71 00 00 0E 04 04 00 73 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 E1 [13:41: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0E 71 00 00 0E 04 04 00 73 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:41:50]wFMCommunicate OK [13:41:50]SAM_PROTO_GetFieldsCounters done [13:41:50]requested_item shift.num is exist - process it [13:41:50]requested_item shift.opened is exist - process it [13:41:50]req_shift_opened [13:41:50]FM_GetShiftState [13:41:50]SAM_PROTO_GetShiftState [13:41:50]wFMCommunicate request_size=4 [13:41:50]MH_SAM_APDU [13:41:50]CAPDU: 80 13 01 00 [13:41:50]Write to MH i2c: E2 08 00 34 43 80 13 01 00 00 00 00 00 F4 [13:41:50]Write i2c OK [13:41:50]MH_I2C_Read... [13:41:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:50]Read from MH i2c: E2 [13:41:50]MH_I2C_Read... [13:41:50]Read from MH i2c: E2 0E 00 [13:41:50]MH_I2C_Read... [13:41:50]Read from MH i2c: E2 0E 00 34 43 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 0D [13:41:50]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:41:50]wFMCommunicate OK [13:41:50]SAM_PROTO_GetShiftState done [13:41:50]FM_GetShiftState done [13:41:50]req_shift_opened done [13:41:50]requested_item shift.open_date is exist - process it [13:41:50]req_shift_open_date [13:41:50]req_shift_open_date done [13:41:50]produce_requested_data done [13:41:50]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28942,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [13:41:50]process_action_free print_text [13:41:50]json_value_free [13:41:50]json_value_free done [13:41:50]process_json_proto returns [13:41:50]Send response to host [13:41:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28942,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [13:41:50]free response buf [13:41:50]execute_script done [13:41:50]execute_script returns [13:41:50]free content buf [13:41:50]Sock 9.Close socket [13:41:50]Sock 9.Thread stoped [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:26]OFD Sender: No OFD packet to send [13:42:31]OFD Sender: No OFD packet to send [13:42:36]OFD Sender: No OFD packet to send [13:42:41]OFD Sender: No OFD packet to send [13:42:46]OFD Sender: No OFD packet to send [13:42:51]OFD Sender: No OFD packet to send [13:42:56]OFD Sender: No OFD packet to send [13:43:01]OFD Sender: No OFD packet to send [13:43:06]OFD Sender: No OFD packet to send [13:43:11]OFD Sender: No OFD packet to send [13:43:16]OFD Sender: No OFD packet to send [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:46]OFD Sender: No OFD packet to send [13:43:51]OFD Sender: No OFD packet to send [13:43:56]OFD Sender: No OFD packet to send [13:44:01]OFD Sender: No OFD packet to send [13:44:01]accept exits with 7 [13:44:01]New connection [13:44:01]New thread 3066785124 created [13:44:01]Thread 3066928484 joined [13:44:01]Waiting for new connection... [13:44:01] Sock 7.Parse request [13:44:01]Sock 7.Check first char [13:44:01]Sock 7.First char is OK [13:44:01]request: POST /json_proto HTTP/1.0 [13:44:01]Method: POST [13:44:01]URL: /json_proto [13:44:01]Method is POST - this is cgi request [13:44:01]url: /json_proto [13:44:01]query_string will be loaded in cgi processing [13:44:01]execute_cgi json_proto POST (null) [13:44:01]execute_cgi path=json_proto method=POST [13:44:01]POST find Content-Length [13:44:01]Host: 172.17.33.3:8080 [13:44:01]Content-Length: 670 [13:44:01]Content-Type: application/json [13:44:01] [13:44:01]POST finish read [13:44:01]Found Content-Length = 670 [13:44:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "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:44:01]execute_script... [13:44:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "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:44:01]POST & json_proto [13:44:01]process_json_proto [13:44:01]json parsed OK: [13:44:01]protocol is kg_v1.0 [13:44:01]action value=close_receipt [13:44:01]process_action close_receipt [13:44:01]cmd_close_receipt [13:44:01]MH_GetDate [13:44:01]Write to MH i2c: F0 00 00 35 43 67 [13:44:01]Write i2c OK [13:44:01]MH_I2C_Read... [13:44:01]Read from MH i2c: F0 [13:44:01]MH_I2C_Read... [13:44:01]Read from MH i2c: F0 09 00 [13:44:01]MH_I2C_Read... [13:44:01]Read from MH i2c: F0 09 00 35 43 00 26 8C 1A 66 23 5B 8F 65 14 [13:44:01]GetLastDocTimeStamp 1713015598 [13:44:01]current date 1713015846 [13:44:01]FM_GetShiftState [13:44:01]SAM_PROTO_GetShiftState [13:44:01]wFMCommunicate request_size=4 [13:44:01]MH_SAM_APDU [13:44:01]CAPDU: 80 13 01 00 [13:44:01]Write to MH i2c: E2 08 00 36 43 80 13 01 00 00 00 00 00 F6 [13:44:01]Write i2c OK [13:44:01]MH_I2C_Read... [13:44:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:01]Read from MH i2c: E2 [13:44:01]MH_I2C_Read... [13:44:01]Read from MH i2c: E2 0E 00 [13:44:01]MH_I2C_Read... [13:44:01]Read from MH i2c: E2 0E 00 36 43 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 0F [13:44:01]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:44:01]wFMCommunicate OK [13:44:01]SAM_PROTO_GetShiftState done [13:44:01]FM_GetShiftState done [13:44:01]opened in 1712967615 [13:44:01]opened+sec_in_day 1713054015 [13:44:01]quantity*price = 50019 [13:44:01]sum+1 = 50021 [13:44:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 150 13.04.2024 13:44 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28943 ФПД: 213191596289802 1/tax-web-control/client/api/v1/ticket?date=20240413T134406&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28943&fm=213191596289802&tin=02508201610067®Number=0000138879044617&sum=50000 [13:44:03]StoreToDocumentArchive [13:44:03]shift 115 fd 28943 [13:44:03]save to /storage/0115/doc_00028943 [13:44:03]save last doc name /storage/0115/doc_00028943 to /storage/kkm_last_doc_name [13:44:03]save OK [13:44:03]Clear old archive folders... [13:44:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:44:03]tlvbuf is 0121C190 [13:44:03]SAM_PROTO_ClearQueue [13:44:03]wFMCommunicate request_size=4 [13:44:03]MH_SAM_APDU [13:44:03]CAPDU: 80 09 00 00 [13:44:03]Write to MH i2c: E2 08 00 43 43 80 09 00 00 00 00 00 00 F8 [13:44:03]Write i2c OK [13:44:03]MH_I2C_Read... [13:44:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:03]Read from MH i2c: E2 [13:44:03]MH_I2C_Read... [13:44:03]Read from MH i2c: E2 03 00 [13:44:03]MH_I2C_Read... [13:44:03]Read from MH i2c: E2 03 00 43 43 00 90 00 FA [13:44:03]RAPDU: 90 00 [13:44:03]wFMCommunicate OK [13:44:03]SAM_PROTO_ClearQueue done [13:44:03]KKMCreateOFDPacket [13:44:03]OFDProtocolAddRootSTLVToBuf [13:44:03]FM_MakeSignedData [13:44:03]FM_MakeSignedData [13:44:03]SAM_PROTO_SignData [13:44:03]wFMCommunicate request_size=4 [13:44:03]MH_SAM_APDU [13:44:03]CAPDU: 80 0D 01 02 [13:44:03]Write to MH i2c: E2 08 00 44 43 80 0D 01 02 00 00 00 00 00 [13:44:03]Write i2c OK [13:44:03]MH_I2C_Read... [13:44:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:03]Read from MH i2c: E2 [13:44:03]MH_I2C_Read... [13:44:03]Read from MH i2c: E2 03 00 [13:44:03]MH_I2C_Read... [13:44:03]Read from MH i2c: E2 03 00 44 43 00 90 00 FB [13:44:03]RAPDU: 90 00 [13:44:03]wFMCommunicate OK [13:44:03]wFMCommunicate request_size=255 [13:44:03]MH_SAM_APDU [13:44:03]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 96 00 00 00 F4 03 04 00 26 8C 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0F 71 00 00 35 04 06 00 [13:44:03]Write to MH i2c: E2 02 01 45 43 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 96 00 00 00 F4 03 04 00 26 8C 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0F 71 00 00 35 04 06 00 00 00 0D [13:44:03]Write i2c OK [13:44:03]MH_I2C_Read... [13:44:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:03]Read from MH i2c: E2 [13:44:03]MH_I2C_Read... [13:44:03]Read from MH i2c: E2 03 00 [13:44:03]MH_I2C_Read... [13:44:03]Read from MH i2c: E2 03 00 45 43 00 90 00 FC [13:44:03]RAPDU: 90 00 [13:44:03]wFMCommunicate OK [13:44:03]wFMCommunicate request_size=11 [13:44:03]MH_SAM_APDU [13:44:03]CAPDU: 80 0D 02 02 06 C1 E5 89 5D AF 0A [13:44:03]Write to MH i2c: E2 0E 00 46 43 80 0D 02 02 06 00 C1 E5 89 5D AF 0A 00 00 54 [13:44:03]Write i2c OK [13:44:03]MH_I2C_Read... [13:44:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:03]Read from MH i2c: E2 [13:44:03]MH_I2C_Read... [13:44:03]Read from MH i2c: E2 03 00 [13:44:03]MH_I2C_Read... [13:44:03]Read from MH i2c: E2 03 00 46 43 00 90 00 FD [13:44:03]RAPDU: 90 00 [13:44:03]wFMCommunicate OK [13:44:03]wFMCommunicate request_size=4 [13:44:03]MH_SAM_APDU [13:44:03]CAPDU: 80 0D 03 02 [13:44:03]Write to MH i2c: E2 08 00 47 43 80 0D 03 02 00 00 00 00 05 [13:44:03]Write i2c OK [13:44:03]MH_I2C_Read... [13:44:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:03]Read from MH i2c: E2 [13:44:03]MH_I2C_Read... [13:44:03]Read from MH i2c: E2 0B 00 [13:44:03]MH_I2C_Read... [13:44:03]Read from MH i2c: E2 0B 00 47 43 00 E5 1D CB 3A 64 AC E4 69 90 00 6A [13:44:03]RAPDU: E5 1D CB 3A 64 AC E4 69 90 00 [13:44:03]wFMCommunicate OK [13:44:03]SAM_PROTO_SignData done [13:44:03]FM_MakeSignedData done [13:44:03]CreateOFDProtocolMessage [13:44:03]wFMCommunicate request_size=4 [13:44:03]MH_SAM_APDU [13:44:03]CAPDU: 80 11 00 00 [13:44:03]Write to MH i2c: E2 08 00 48 43 80 11 00 00 00 00 00 00 05 [13:44:03]Write i2c OK [13:44:03]MH_I2C_Read... [13:44:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:03]Read from MH i2c: E2 [13:44:03]MH_I2C_Read... [13:44:03]Read from MH i2c: E2 17 00 [13:44:03]MH_I2C_Read... [13:44:03]Read from MH i2c: E2 17 00 48 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 54 [13:44:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:44:03]wFMCommunicate OK [13:44:03]CreateOFDProtocolMessage done [13:44:03]OFDSenderStorePacket 28943 [13:44:03]StoreOFDPacket docnum=28943 [13:44:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 F4 9F 08 01 87 7F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 96 00 00 00 F4 03 04 00 26 8C 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0F 71 00 00 35 04 06 00 C1 E5 89 5D AF 0A E5 1D CB 3A 64 AC E4 69 [13:44:03]CheckFolder [13:44:03]dirname=/storage/ofd_packets [13:44:03]CheckFolder done [13:44:03]ProducePacketName [13:44:03]name=ofd_packets/00028943 [13:44:03]NVStorageSaveData ofd_packets/00028943 [13:44:03]File name is /storage/ofd_packets/00028943 [13:44:03]Write 302 bytes [13:44:03]NVStorageSaveData done [13:44:03]OFDSenderStorePacket done [13:44:03]KKMCreateOFDPacket done [13:44:03]NVStorageSaveData kkm_last_timestamp [13:44:03]File name is /storage/kkm_last_timestamp [13:44:03]Write 4 bytes [13:44:03]NVStorageSaveData done [13:44:03]ExternCall_PrintAddStr [13:44:03]wPrintStart [13:44:03]Write to MH i2c: 01 00 00 49 43 8C [13:44:03]Write i2c OK [13:44:03]MH_I2C_Read... [13:44:03]Read from MH i2c: 01 [13:44:03]MH_I2C_Read... [13:44:03]Read from MH i2c: 01 07 00 [13:44:03]MH_I2C_Read... [13:44:03]Read from MH i2c: 01 07 00 49 43 00 00 00 00 00 FF 0F A1 [13:44:03]RasterBufferAndPrint [13:44:03]line Счет N : (1)347301 [13:44:03]line ИНН: 02508201610067 [13:44:03]line Контрольно-Кассовый Чек [13:44:03]line ПРОДАЖА [13:44:03]line ТРК (МРК, ГНК) : 12 [13:44:03]line Товар: 2710124130 [13:44:03]line SUPER-92-К-5 [13:44:03]line 7.660 * 65.30 [13:44:03]line = 500.20 [13:44:03]line НДС 12% НСП 1% [13:44:03]line > о реализуемом товаре [13:44:03]line ОКРУГЛЕНИЕ: -0.20 [13:44:03]line ИТОГО: 500.00 [13:44:03]line Внесено: 500.00 [13:44:03]line СДАЧА: 0.00 [13:44:03]line НСП 1% : 4.43 [13:44:03]line НДС 12% : 53.12 [13:44:03]line Наличными: 500.00 [13:44:03]line Безнал.: 0.00 [13:44:03]line Место: АЗС № 108 "Партнер Нефть" [13:44:03]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:44:03]line СНО: Общий режим [13:44:03]line Чек 150 13.04.2024 13:44 [13:44:03]line Смена: 115 ФФД: 1.0 [13:44:03]line ЗНМ: 0300000027 [13:44:03]line РНМ: 0000138879044617 [13:44:03]line Версия ККМ: 001 [13:44:03]line ФМ: 0000000000963154 [13:44:03]line ФД: 28943 [13:44:03]line ФПД: 213191596289802 [13:44:03]line 1/tax-web-control/client/api/v1/ticket?date=20240413T134406&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28943&fm=213191596289802&tin=02508201610067®Number=0000138879044617&sum=50000 [13:44:03]OFD Sender: Processing packet 28943 [packets to send 8, broken 7] [13:44:03]ProducePacketName [13:44:03]name=ofd_packets/00028943 [13:44:03]OFD Sender: To server: pG, [13:44:03]CommunicateWithHost lk.salyk.kg:30040 [13:44:03]ConnectInit lk.salyk.kg [13:44:03]written 0, free lines is 4095 [13:44:04]Connected sock=10 [13:44: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 31 35 34 10 01 00 00 F4 9F 08 01 87 7F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 96 00 00 00 F4 03 04 00 26 8C 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 0F 71 00 00 35 04 06 00 C1 E5 89 5D AF 0A E5 1D CB 3A 64 AC E4 69 [13:44:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8C 4C 47 00 4A 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 31 35 34 10 04 04 00 0F 71 00 00 F4 03 04 00 CD 36 1A 66 B6 04 01 00 00 13 35 5D C1 63 30 DE 1A [13:44:04]CommunicateWithHost err = 0 [13:44:04]CheckOFDResponse [13:44:04]1017 (14) - 77093643461234 [13:44:04]1041 (16) - 0000000000963154 [13:44:04]1040 (4) - 28943 [13:44:04]1012 (4) - 13.04.2024 07:39 [13:44:04]1206 (1) - 0 [13:44:04]OFD Sender: Remove packet 28943 [13:44:04]ProducePacketName [13:44:04]name=ofd_packets/00028943 [13:44:04]NVStorageDeleteData [13:44:04]Write to MH i2c: 01 00 00 73 43 B6 [13:44:04]Write i2c OK [13:44:04]MH_I2C_Read... [13:44:04]Read from MH i2c: 01 [13:44:04]MH_I2C_Read... [13:44:04]Read from MH i2c: 01 07 00 [13:44:04]MH_I2C_Read... [13:44:04]Read from MH i2c: 01 07 00 73 43 00 00 00 00 00 C0 0C 89 [13:44:04]RasterBufferAndPrint [13:44:04]line [13:44:04]line [13:44:04]line [13:44:04]line [13:44:04]line [13:44:04]written 0, free lines is 3268 [13:44:04]MH_Cut [13:44:04]Write to MH i2c: D1 01 00 7A 43 01 8F [13:44:04]Write i2c OK [13:44:04]MH_I2C_Read... [13:44:04]Read from MH i2c: D1 [13:44:04]MH_I2C_Read... [13:44:04]Read from MH i2c: D1 01 00 [13:44:04]MH_I2C_Read... [13:44:04]Read from MH i2c: D1 01 00 7A 43 00 8E [13:44:04]Write to MH i2c: 01 00 00 7B 43 BE [13:44:04]Write i2c OK [13:44:04]MH_I2C_Read... [13:44:04]OFD Sender: No OFD packet to send [13:44:05]*** Cut start [13:44:05]*** Partial cut [13:44:05]*** CUTSNS_PIN = 1 [13:44:05]*** CUTSNS_PIN = 0 [13:44:05]*** Brake cut motor [13:44:05]Read from MH i2c: 01 [13:44:05]MH_I2C_Read... [13:44:05]*** Stop cut motor [13:44:05]*** Cut end [13:44:05]Read from MH i2c: 01 07 00 [13:44:05]MH_I2C_Read... [13:44:05]Read from MH i2c: 01 07 00 7B 43 00 00 00 00 00 FF 0F D3 [13:44:05]process_action close_receipt done [13:44:05]requested_data is exist [13:44:05]produce_requested_data [13:44:05]requested_item fm.sn is exist - process it [13:44:05]wFMCommunicate request_size=4 [13:44:05]MH_SAM_APDU [13:44:05]CAPDU: 80 11 00 00 [13:44:05]Write to MH i2c: E2 08 00 7C 43 80 11 00 00 00 00 00 00 39 [13:44:05]Write i2c OK [13:44:05]MH_I2C_Read... [13:44:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:05]Read from MH i2c: E2 [13:44:05]MH_I2C_Read... [13:44:05]Read from MH i2c: E2 17 00 [13:44:05]MH_I2C_Read... [13:44:05]Read from MH i2c: E2 17 00 7C 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 88 [13:44:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:44:05]wFMCommunicate OK [13:44:05]requested_item fd.num is exist - process it [13:44:05]SAM_PROTO_GetFieldsCounters [13:44:05]wFMCommunicate request_size=4 [13:44:05]MH_SAM_APDU [13:44:05]CAPDU: 80 13 00 00 [13:44:05]Write to MH i2c: E2 08 00 7D 43 80 13 00 00 00 00 00 00 3C [13:44:05]Write i2c OK [13:44:05]MH_I2C_Read... [13:44:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:06]Read from MH i2c: E2 [13:44:06]MH_I2C_Read... [13:44:06]Read from MH i2c: E2 62 00 [13:44:06]MH_I2C_Read... [13:44:06]Read from MH i2c: E2 62 00 7D 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0F 71 00 00 0E 04 04 00 73 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 2F [13:44: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 0F 71 00 00 0E 04 04 00 73 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:44:06]wFMCommunicate OK [13:44:06]SAM_PROTO_GetFieldsCounters done [13:44:06]requested_item shift.num is exist - process it [13:44:06]requested_item shift.opened is exist - process it [13:44:06]req_shift_opened [13:44:06]FM_GetShiftState [13:44:06]SAM_PROTO_GetShiftState [13:44:06]wFMCommunicate request_size=4 [13:44:06]MH_SAM_APDU [13:44:06]CAPDU: 80 13 01 00 [13:44:06]Write to MH i2c: E2 08 00 7E 43 80 13 01 00 00 00 00 00 3E [13:44:06]Write i2c OK [13:44:06]MH_I2C_Read... [13:44:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:06]Read from MH i2c: E2 [13:44:06]MH_I2C_Read... [13:44:06]Read from MH i2c: E2 0E 00 [13:44:06]MH_I2C_Read... [13:44:06]Read from MH i2c: E2 0E 00 7E 43 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 57 [13:44:06]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:44:06]wFMCommunicate OK [13:44:06]SAM_PROTO_GetShiftState done [13:44:06]FM_GetShiftState done [13:44:06]req_shift_opened done [13:44:06]requested_item shift.open_date is exist - process it [13:44:06]req_shift_open_date [13:44:06]req_shift_open_date done [13:44:06]produce_requested_data done [13:44:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28943,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [13:44:06]process_action_free close_receipt [13:44:06]json_value_free [13:44:06]json_value_free done [13:44:06]process_json_proto returns [13:44:06]Send response to host [13:44:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28943,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [13:44:06]free response buf [13:44:06]execute_script done [13:44:06]execute_script returns [13:44:06]free content buf [13:44:06]Sock 7.Close socket [13:44:06]Sock 7.Thread stoped [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]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:34]OFD Sender: No OFD packet to send [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:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:09]OFD Sender: No OFD packet to send [13:47:14]OFD Sender: No OFD packet to send [13:47:19]OFD Sender: No OFD packet to send [13:47:24]OFD Sender: No OFD packet to send [13:47:29]OFD Sender: No OFD packet to send [13:47:34]OFD Sender: No OFD packet to send [13:47:39]OFD Sender: No OFD packet to send [13:47:44]OFD Sender: No OFD packet to send [13:47:49]OFD Sender: No OFD packet to send [13:47:54]OFD Sender: No OFD packet to send [13:47:59]OFD Sender: No OFD packet to send [13:48:04]OFD Sender: No OFD packet to send [13:48:09]OFD Sender: No OFD packet to send [13:48:14]OFD Sender: No OFD packet to send [13:48:19]OFD Sender: No OFD packet to send [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:29]OFD Sender: No OFD packet to send [13:49:34]OFD Sender: No OFD packet to send [13:49:35]accept exits with 9 [13:49:35]New connection [13:49:35]New thread 3066928484 created [13:49:35]Thread 3066785124 joined [13:49:35]Waiting for new connection... [13:49:35] Sock 9.Parse request [13:49:35]Sock 9.Check first char [13:49:35]Sock 9.First char is OK [13:49:35]request: POST /json_proto HTTP/1.0 [13:49:35]Method: POST [13:49:35]URL: /json_proto [13:49:35]Method is POST - this is cgi request [13:49:35]url: /json_proto [13:49:35]query_string will be loaded in cgi processing [13:49:35]execute_cgi json_proto POST (null) [13:49:35]execute_cgi path=json_proto method=POST [13:49:35]POST find Content-Length [13:49:35]Host: 172.17.33.3:8080 [13:49:35]Content-Length: 822 [13:49:35]Content-Type: application/json [13:49:35] [13:49:35]POST finish read [13:49:35]Found Content-Length = 822 [13:49:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 41.550, "sum" : 1367.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1367.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:35]execute_script... [13:49: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)347302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 41.550, "sum" : 1367.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1367.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:35]POST & json_proto [13:49:35]process_json_proto [13:49:35]json parsed OK: [13:49:35]protocol is kg_v1.0 [13:49:35]action value=close_receipt [13:49:35]process_action close_receipt [13:49:35]cmd_close_receipt [13:49:35]MH_GetDate [13:49:35]Write to MH i2c: F0 00 00 7F 43 B1 [13:49:35]Write i2c OK [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: F0 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: F0 09 00 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: F0 09 00 7F 43 00 74 8D 1A 66 23 5B 8F 65 AD [13:49:35]GetLastDocTimeStamp 1713015846 [13:49:35]current date 1713016180 [13:49:35]FM_GetShiftState [13:49:35]SAM_PROTO_GetShiftState [13:49:35]wFMCommunicate request_size=4 [13:49:35]MH_SAM_APDU [13:49:35]CAPDU: 80 13 01 00 [13:49:35]Write to MH i2c: E2 08 00 80 43 80 13 01 00 00 00 00 00 40 [13:49:35]Write i2c OK [13:49:35]MH_I2C_Read... [13:49:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:35]Read from MH i2c: E2 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 0E 00 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 0E 00 80 43 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 59 [13:49:35]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:49:35]wFMCommunicate OK [13:49:35]SAM_PROTO_GetShiftState done [13:49:35]FM_GetShiftState done [13:49:35]opened in 1712967615 [13:49:35]opened+sec_in_day 1713054015 [13:49:35]quantity*price = 136699 [13:49:35]sum+1 = 136701 [13:49:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1367.00 НСП 1% : 12.10 НДС 12% : 145.17 Наличными: 0.00 Безнал.: 1367.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 151 13.04.2024 13:49 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 28944 ФПД: 204189743262014 1/tax-web-control/client/api/v1/ticket?date=20240413T134940&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28944&fm=204189743262014&tin=02508201610067®Number=0000138879044617&sum=136700 [13:49:36]StoreToDocumentArchive [13:49:36]shift 115 fd 28944 [13:49:36]save to /storage/0115/doc_00028944 [13:49:36]save last doc name /storage/0115/doc_00028944 to /storage/kkm_last_doc_name [13:49:36]save OK [13:49:36]Clear old archive folders... [13:49:36]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:49:36]tlvbuf is 0121FBE0 [13:49:36]SAM_PROTO_ClearQueue [13:49:36]wFMCommunicate request_size=4 [13:49:36]MH_SAM_APDU [13:49:36]CAPDU: 80 09 00 00 [13:49:36]Write to MH i2c: E2 08 00 8D 43 80 09 00 00 00 00 00 00 42 [13:49:36]Write i2c OK [13:49:36]MH_I2C_Read... [13:49:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:36]Read from MH i2c: E2 [13:49:36]MH_I2C_Read... [13:49:36]Read from MH i2c: E2 03 00 [13:49:36]MH_I2C_Read... [13:49:36]Read from MH i2c: E2 03 00 8D 43 00 90 00 44 [13:49:36]RAPDU: 90 00 [13:49:36]wFMCommunicate OK [13:49:36]SAM_PROTO_ClearQueue done [13:49:36]KKMCreateOFDPacket [13:49:36]OFDProtocolAddRootSTLVToBuf [13:49:36]FM_MakeSignedData [13:49:36]FM_MakeSignedData [13:49:36]SAM_PROTO_SignData [13:49:36]wFMCommunicate request_size=4 [13:49:36]MH_SAM_APDU [13:49:36]CAPDU: 80 0D 01 02 [13:49:36]Write to MH i2c: E2 08 00 8E 43 80 0D 01 02 00 00 00 00 4A [13:49:36]Write i2c OK [13:49:36]MH_I2C_Read... [13:49:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:36]Read from MH i2c: E2 [13:49:36]MH_I2C_Read... [13:49:36]Read from MH i2c: E2 03 00 [13:49:36]MH_I2C_Read... [13:49:36]Read from MH i2c: E2 03 00 8E 43 00 90 00 45 [13:49:36]RAPDU: 90 00 [13:49:36]wFMCommunicate OK [13:49:36]wFMCommunicate request_size=255 [13:49:36]MH_SAM_APDU [13:49:36]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 4E A2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 FC 15 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 15 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 15 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 74 8D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 10 71 00 00 35 04 06 00 B9 B5 [13:49:36]Write to MH i2c: E2 02 01 8F 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 35 FF 03 08 00 03 4E A2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 FC 15 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 15 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 15 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 74 8D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 10 71 00 00 35 04 06 00 B9 B5 00 00 55 [13:49:36]Write i2c OK [13:49:36]MH_I2C_Read... [13:49:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:37]Read from MH i2c: E2 [13:49:37]MH_I2C_Read... [13:49:37]Read from MH i2c: E2 03 00 [13:49:37]MH_I2C_Read... [13:49:37]Read from MH i2c: E2 03 00 8F 43 00 90 00 46 [13:49:37]RAPDU: 90 00 [13:49:37]wFMCommunicate OK [13:49:37]wFMCommunicate request_size=9 [13:49:37]MH_SAM_APDU [13:49:37]CAPDU: 80 0D 02 02 04 A1 1D 29 3E [13:49:37]Write to MH i2c: E2 0C 00 90 43 80 0D 02 02 04 00 A1 1D 29 3E 00 00 7A [13:49:37]Write i2c OK [13:49:37]MH_I2C_Read... [13:49:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:37]Read from MH i2c: E2 [13:49:37]MH_I2C_Read... [13:49:37]Read from MH i2c: E2 03 00 [13:49:37]MH_I2C_Read... [13:49:37]Read from MH i2c: E2 03 00 90 43 00 90 00 47 [13:49:37]RAPDU: 90 00 [13:49:37]wFMCommunicate OK [13:49:37]wFMCommunicate request_size=4 [13:49:37]MH_SAM_APDU [13:49:37]CAPDU: 80 0D 03 02 [13:49:37]Write to MH i2c: E2 08 00 91 43 80 0D 03 02 00 00 00 00 4F [13:49:37]Write i2c OK [13:49:37]MH_I2C_Read... [13:49:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:37]Read from MH i2c: E2 [13:49:37]MH_I2C_Read... [13:49:37]Read from MH i2c: E2 0B 00 [13:49:37]MH_I2C_Read... [13:49:37]Read from MH i2c: E2 0B 00 91 43 00 4F 32 35 5C AF 2B 6F 70 90 00 1B [13:49:37]RAPDU: 4F 32 35 5C AF 2B 6F 70 90 00 [13:49:37]wFMCommunicate OK [13:49:37]SAM_PROTO_SignData done [13:49:37]FM_MakeSignedData done [13:49:37]CreateOFDProtocolMessage [13:49:37]wFMCommunicate request_size=4 [13:49:37]MH_SAM_APDU [13:49:37]CAPDU: 80 11 00 00 [13:49:37]Write to MH i2c: E2 08 00 92 43 80 11 00 00 00 00 00 00 4F [13:49:37]Write i2c OK [13:49:37]MH_I2C_Read... [13:49:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:37]Read from MH i2c: E2 [13:49:37]MH_I2C_Read... [13:49:37]Read from MH i2c: E2 17 00 [13:49:37]MH_I2C_Read... [13:49:37]Read from MH i2c: E2 17 00 92 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9E [13:49:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:49:37]wFMCommunicate OK [13:49:37]CreateOFDProtocolMessage done [13:49:37]OFDSenderStorePacket 28944 [13:49:37]StoreOFDPacket docnum=28944 [13:49:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 B5 C6 06 01 92 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 35 FF 03 08 00 03 4E A2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 FC 15 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 15 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 15 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 74 8D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 10 71 00 00 35 04 06 00 B9 B5 A1 1D 29 3E 4F 32 35 5C AF 2B 6F 70 [13:49:37]CheckFolder [13:49:37]dirname=/storage/ofd_packets [13:49:37]CheckFolder done [13:49:37]ProducePacketName [13:49:37]name=ofd_packets/00028944 [13:49:37]NVStorageSaveData ofd_packets/00028944 [13:49:37]File name is /storage/ofd_packets/00028944 [13:49:37]Write 300 bytes [13:49:37]NVStorageSaveData done [13:49:37]OFDSenderStorePacket done [13:49:37]KKMCreateOFDPacket done [13:49:37]NVStorageSaveData kkm_last_timestamp [13:49:37]File name is /storage/kkm_last_timestamp [13:49:37]Write 4 bytes [13:49:37]NVStorageSaveData done [13:49:37]ExternCall_PrintAddStr [13:49:37]wPrintStart [13:49:37]Write to MH i2c: 01 00 00 93 43 D6 [13:49:37]Write i2c OK [13:49:37]MH_I2C_Read... [13:49:37]Read from MH i2c: 01 [13:49:37]MH_I2C_Read... [13:49:37]Read from MH i2c: 01 07 00 [13:49:37]MH_I2C_Read... [13:49:37]Read from MH i2c: 01 07 00 93 43 00 00 00 00 00 FF 0F EB [13:49:37]RasterBufferAndPrint [13:49:37]line Счет N : (1)347302 [13:49:37]line ИНН: 02508201610067 [13:49:37]line Контрольно-Кассовый Чек [13:49:37]line ПРОДАЖА [13:49:37]line ТРК (МРК, ГНК) : 71 [13:49:37]line Товар: 2711129700 [13:49:37]line ГАЗ-К-5 [13:49:37]line 41.550 * 32.90 [13:49:37]line = 1367.00 [13:49:37]line НДС 12% НСП 1% [13:49:37]line > о реализуемом товаре [13:49:37]line ИТОГО: 1367.00 [13:49:37]line НСП 1% : 12.10 [13:49:37]line НДС 12% : 145.17 [13:49:37]line Наличными: 0.00 [13:49:37]line Безнал.: 1367.00 [13:49:37]line Место: АЗС № 108 "Партнер Нефть" [13:49:37]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [13:49:37]line СНО: Общий режим [13:49:37]line Чек 151 13.04.2024 13:49 [13:49:37]line Смена: 115 ФФД: 1.0 [13:49:37]line ЗНМ: 0300000027 [13:49:37]line РНМ: 0000138879044617 [13:49:37]line Версия ККМ: 001 [13:49:37]line Платежная система: Бакай Банк [13:49:37]line ФМ: 0000000000963154 [13:49:37]line ФД: 28944 [13:49:37]line ФПД: 204189743262014 [13:49:37]line 1/tax-web-control/client/api/v1/ticket?date=20240413T134940&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28944&fm=204189743262014&tin=02508201610067®Number=0000138879044617&sum=136700 [13:49:37]OFD Sender: Processing packet 28944 [packets to send 8, broken 7] [13:49:37]ProducePacketName [13:49:37]name=ofd_packets/00028944 [13:49:37]OFD Sender: To server: pG, [13:49:37]CommunicateWithHost lk.salyk.kg:30040 [13:49:37]ConnectInit lk.salyk.kg [13:49:37]written 0, free lines is 4095 [13:49:37]Connected sock=10 [13:49: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 31 35 34 0E 01 00 00 B5 C6 06 01 92 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 35 FF 03 08 00 03 4E A2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 FC 15 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 15 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 38 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 15 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 74 8D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 10 71 00 00 35 04 06 00 B9 B5 A1 1D 29 3E 4F 32 35 5C AF 2B 6F 70 [13:49:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8C 0B 47 00 42 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 31 35 34 10 04 04 00 10 71 00 00 F4 03 04 00 1B 38 1A 66 B6 04 01 00 00 E0 E0 C8 98 DC CA F5 C1 [13:49:37]CommunicateWithHost err = 0 [13:49:37]CheckOFDResponse [13:49:37]1017 (14) - 77093643461234 [13:49:37]1041 (16) - 0000000000963154 [13:49:37]1040 (4) - 28944 [13:49:37]1012 (4) - 13.04.2024 07:45 [13:49:37]1206 (1) - 0 [13:49:37]OFD Sender: Remove packet 28944 [13:49:37]ProducePacketName [13:49:37]name=ofd_packets/00028944 [13:49:37]NVStorageDeleteData [13:49:38]Write to MH i2c: 01 00 00 BC 43 FF [13:49:38]Write i2c OK [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: 01 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: 01 07 00 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: 01 07 00 BC 43 00 00 00 00 00 CE 0C E0 [13:49:38]RasterBufferAndPrint [13:49:38]line [13:49:38]line [13:49:38]line [13:49:38]line [13:49:38]line [13:49:38]written 0, free lines is 3284 [13:49:38]MH_Cut [13:49:38]Write to MH i2c: D1 01 00 C3 43 01 D8 [13:49:38]Write i2c OK [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: D1 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: D1 01 00 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: D1 01 00 C3 43 00 D7 [13:49:38]Write to MH i2c: 01 00 00 C4 43 07 [13:49:38]Write i2c OK [13:49:38]MH_I2C_Read... [13:49:38]OFD Sender: No OFD packet to send [13:49:38]*** Cut start [13:49:38]*** Partial cut [13:49:38]*** CUTSNS_PIN = 1 [13:49:38]*** CUTSNS_PIN = 0 [13:49:39]*** Brake cut motor [13:49:39]Read from MH i2c: 01 [13:49:39]MH_I2C_Read... [13:49:39]*** Stop cut motor [13:49:39]*** Cut end [13:49:39]Read from MH i2c: 01 07 00 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: 01 07 00 C4 43 00 00 00 00 00 FF 0F 1C [13:49:39]process_action close_receipt done [13:49:39]requested_data is exist [13:49:39]produce_requested_data [13:49:39]requested_item fm.sn is exist - process it [13:49:39]wFMCommunicate request_size=4 [13:49:39]MH_SAM_APDU [13:49:39]CAPDU: 80 11 00 00 [13:49:39]Write to MH i2c: E2 08 00 C5 43 80 11 00 00 00 00 00 00 82 [13:49:39]Write i2c OK [13:49:39]MH_I2C_Read... [13:49:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:39]Read from MH i2c: E2 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: E2 17 00 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: E2 17 00 C5 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D1 [13:49:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [13:49:39]wFMCommunicate OK [13:49:39]requested_item fd.num is exist - process it [13:49:39]SAM_PROTO_GetFieldsCounters [13:49:39]wFMCommunicate request_size=4 [13:49:39]MH_SAM_APDU [13:49:39]CAPDU: 80 13 00 00 [13:49:39]Write to MH i2c: E2 08 00 C6 43 80 13 00 00 00 00 00 00 85 [13:49:39]Write i2c OK [13:49:39]MH_I2C_Read... [13:49:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:39]Read from MH i2c: E2 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: E2 62 00 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: E2 62 00 C6 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 10 71 00 00 0E 04 04 00 73 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 7C [13:49: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 10 71 00 00 0E 04 04 00 73 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:49:39]wFMCommunicate OK [13:49:39]SAM_PROTO_GetFieldsCounters done [13:49:39]requested_item shift.num is exist - process it [13:49:39]requested_item shift.opened is exist - process it [13:49:39]req_shift_opened [13:49:39]FM_GetShiftState [13:49:39]SAM_PROTO_GetShiftState [13:49:39]wFMCommunicate request_size=4 [13:49:39]MH_SAM_APDU [13:49:39]CAPDU: 80 13 01 00 [13:49:39]Write to MH i2c: E2 08 00 C7 43 80 13 01 00 00 00 00 00 87 [13:49:39]Write i2c OK [13:49:39]MH_I2C_Read... [13:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:39]Read from MH i2c: E2 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: E2 0E 00 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: E2 0E 00 C7 43 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A0 [13:49:39]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [13:49:39]wFMCommunicate OK [13:49:39]SAM_PROTO_GetShiftState done [13:49:39]FM_GetShiftState done [13:49:39]req_shift_opened done [13:49:39]requested_item shift.open_date is exist - process it [13:49:39]req_shift_open_date [13:49:39]req_shift_open_date done [13:49:39]produce_requested_data done [13:49:39]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28944,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [13:49:39]process_action_free close_receipt [13:49:39]json_value_free [13:49:39]json_value_free done [13:49:39]process_json_proto returns [13:49:39]Send response to host [13:49:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28944,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [13:49:39]free response buf [13:49:39]execute_script done [13:49:39]execute_script returns [13:49:39]free content buf [13:49:39]Sock 9.Close socket [13:49:39]Sock 9.Thread stoped [13:49:43]OFD Sender: No OFD packet to send [13:49:48]OFD Sender: No OFD packet to send [13:49:53]OFD Sender: No OFD packet to send [13:49:58]OFD Sender: No OFD packet to send [13:50:03]OFD Sender: No OFD packet to send [13:50:08]OFD Sender: No OFD packet to send [13:50:13]OFD Sender: No OFD packet to send [13:50:18]OFD Sender: No OFD packet to send [13:50:23]OFD Sender: No OFD packet to send [13:50:28]OFD Sender: No OFD packet to send [13:50:33]OFD Sender: No OFD packet to send [13:50:38]OFD Sender: No OFD packet to send [13:50:43]OFD Sender: No OFD packet to send [13:50:48]OFD Sender: No OFD packet to send [13:50:53]OFD Sender: No OFD packet to send [13:50:58]OFD Sender: No OFD packet to send [13:51:03]OFD Sender: No OFD packet to send [13:51:08]OFD Sender: No OFD packet to send [13:51:13]OFD Sender: No OFD packet to send [13:51:18]OFD Sender: No OFD packet to send [13:51:23]OFD Sender: No OFD packet to send [13:51:28]OFD Sender: No OFD packet to send [13:51:33]OFD Sender: No OFD packet to send [13:51:38]OFD Sender: No OFD packet to send [13:51:43]OFD Sender: No OFD packet to send [13:51:48]OFD Sender: No OFD packet to send [13:51:53]OFD Sender: No OFD packet to send [13:51:58]OFD Sender: No OFD packet to send [13:52:03]OFD Sender: No OFD packet to send [13:52:08]OFD Sender: No OFD packet to send [13:52:13]OFD Sender: No OFD packet to send [13:52:18]OFD Sender: No OFD packet to send [13:52:23]OFD Sender: No OFD packet to send [13:52:28]OFD Sender: No OFD packet to send [13:52:33]OFD Sender: No OFD packet to send [13:52:38]OFD Sender: No OFD packet to send [13:52:43]OFD Sender: No OFD packet to send [13:52:48]OFD Sender: No OFD packet to send [13:52:53]OFD Sender: No OFD packet to send [13:52:58]OFD Sender: No OFD packet to send [13:53:03]OFD Sender: No OFD packet to send [13:53:08]OFD Sender: No OFD packet to send [13:53:13]OFD Sender: No OFD packet to send [13:53:18]OFD Sender: No OFD packet to send [13:53:23]OFD Sender: No OFD packet to send [13:53:28]OFD Sender: No OFD packet to send [13:53:33]OFD Sender: No OFD packet to send [13:53:38]OFD Sender: No OFD packet to send [13:53:43]OFD Sender: No OFD packet to send [13:53:48]OFD Sender: No OFD packet to send [13:53:53]OFD Sender: No OFD packet to send [13:53:58]OFD Sender: No OFD packet to send [13:54:03]OFD Sender: No OFD packet to send [13:54:08]OFD Sender: No OFD packet to send [13:54:13]OFD Sender: No OFD packet to send [13:54:18]OFD Sender: No OFD packet to send [13:54:23]OFD Sender: No OFD packet to send [13:54:28]OFD Sender: No OFD packet to send [13:54:33]OFD Sender: No OFD packet to send [13:54:38]OFD Sender: No OFD packet to send [13:54:43]OFD Sender: No OFD packet to send [13:54:48]OFD Sender: No OFD packet to send [13:54:53]OFD Sender: No OFD packet to send [13:54:58]OFD Sender: No OFD packet to send [13:55:03]OFD Sender: No OFD packet to send [13:55:08]OFD Sender: No OFD packet to send [13:55:13]OFD Sender: No OFD packet to send [13:55:18]OFD Sender: No OFD packet to send [13:55:23]OFD Sender: No OFD packet to send [13:55:28]OFD Sender: No OFD packet to send [13:55:33]OFD Sender: No OFD packet to send [13:55:38]OFD Sender: No OFD packet to send [13:55:43]OFD Sender: No OFD packet to send [13:55:48]OFD Sender: No OFD packet to send [13:55:53]OFD Sender: No OFD packet to send [13:55:58]OFD Sender: No OFD packet to send [13:56:03]OFD Sender: No OFD packet to send [13:56:08]OFD Sender: No OFD packet to send [13:56:13]OFD Sender: No OFD packet to send [13:56:18]OFD Sender: No OFD packet to send [13:56:23]OFD Sender: No OFD packet to send [13:56:28]OFD Sender: No OFD packet to send [13:56:33]OFD Sender: No OFD packet to send [13:56:38]OFD Sender: No OFD packet to send [13:56:43]OFD Sender: No OFD packet to send [13:56:48]OFD Sender: No OFD packet to send [13:56:53]OFD Sender: No OFD packet to send [13:56:58]OFD Sender: No OFD packet to send [13:57:03]OFD Sender: No OFD packet to send [13:57:08]OFD Sender: No OFD packet to send [13:57:13]OFD Sender: No OFD packet to send [13:57:18]OFD Sender: No OFD packet to send [13:57:23]OFD Sender: No OFD packet to send [13:57:28]OFD Sender: No OFD packet to send [13:57:33]OFD Sender: No OFD packet to send [13:57:38]OFD Sender: No OFD packet to send [13:57:43]OFD Sender: No OFD packet to send [13:57:48]OFD Sender: No OFD packet to send [13:57:53]OFD Sender: No OFD packet to send [13:57:58]OFD Sender: No OFD packet to send [13:58:03]OFD Sender: No OFD packet to send [13:58:08]OFD Sender: No OFD packet to send [13:58:13]OFD Sender: No OFD packet to send [13:58:18]OFD Sender: No OFD packet to send [13:58:23]OFD Sender: No OFD packet to send [13:58:28]OFD Sender: No OFD packet to send [13:58:33]OFD Sender: No OFD packet to send [13:58:38]OFD Sender: No OFD packet to send [13:58:43]OFD Sender: No OFD packet to send [13:58:48]OFD Sender: No OFD packet to send [13:58:53]OFD Sender: No OFD packet to send [13:58:58]OFD Sender: No OFD packet to send [13:59:03]OFD Sender: No OFD packet to send [13:59:08]OFD Sender: No OFD packet to send [13:59:13]OFD Sender: No OFD packet to send [13:59:18]OFD Sender: No OFD packet to send [13:59:23]OFD Sender: No OFD packet to send [13:59:28]OFD Sender: No OFD packet to send [13:59:33]OFD Sender: No OFD packet to send [13:59:38]OFD Sender: No OFD packet to send [13:59:43]OFD Sender: No OFD packet to send [13:59:48]OFD Sender: No OFD packet to send [13:59:53]OFD Sender: No OFD packet to send [13:59:58]OFD Sender: No OFD packet to send [14:00:03]OFD Sender: No OFD packet to send [14:00:08]OFD Sender: No OFD packet to send [14:00:13]OFD Sender: No OFD packet to send [14:00:18]OFD Sender: No OFD packet to send [14:00:23]OFD Sender: No OFD packet to send [14:00:28]OFD Sender: No OFD packet to send [14:00:33]OFD Sender: No OFD packet to send [14:00:38]OFD Sender: No OFD packet to send [14:00:43]OFD Sender: No OFD packet to send [14:00:48]OFD Sender: No OFD packet to send [14:00:53]OFD Sender: No OFD packet to send [14:00:58]OFD Sender: No OFD packet to send [14:01:03]OFD Sender: No OFD packet to send [14:01:08]OFD Sender: No OFD packet to send [14:01:13]OFD Sender: No OFD packet to send [14:01:18]OFD Sender: No OFD packet to send [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]OFD Sender: No OFD packet to send [14:01:53]OFD Sender: No OFD packet to send [14:01:58]OFD Sender: No OFD packet to send [14:02:03]OFD Sender: No OFD packet to send [14:02:08]OFD Sender: No OFD packet to send [14:02:13]OFD Sender: No OFD packet to send [14:02:18]OFD Sender: No OFD packet to send [14:02:23]OFD Sender: No OFD packet to send [14:02:28]OFD Sender: No OFD packet to send [14:02:33]OFD Sender: No OFD packet to send [14:02:39]OFD Sender: No OFD packet to send [14:02:44]OFD Sender: No OFD packet to send [14:02:49]OFD Sender: No OFD packet to send [14:02:54]OFD Sender: No OFD packet to send [14:02:59]OFD Sender: No OFD packet to send [14:03:04]OFD Sender: No OFD packet to send [14:03:09]OFD Sender: No OFD packet to send [14:03:14]OFD Sender: No OFD packet to send [14:03:19]OFD Sender: No OFD packet to send [14:03:24]OFD Sender: No OFD packet to send [14:03:29]OFD Sender: No OFD packet to send [14:03:34]OFD Sender: No OFD packet to send [14:03:39]OFD Sender: No OFD packet to send [14:03:44]OFD Sender: No OFD packet to send [14:03:49]OFD Sender: No OFD packet to send [14:03:54]OFD Sender: No OFD packet to send [14:03:59]OFD Sender: No OFD packet to send [14:04:04]OFD Sender: No OFD packet to send [14:04:09]OFD Sender: No OFD packet to send [14:04:14]OFD Sender: No OFD packet to send [14:04:19]OFD Sender: No OFD packet to send [14:04:24]OFD Sender: No OFD packet to send [14:04:29]OFD Sender: No OFD packet to send [14:04:34]OFD Sender: No OFD packet to send [14:04:39]OFD Sender: No OFD packet to send [14:04:44]OFD Sender: No OFD packet to send [14:04:49]OFD Sender: No OFD packet to send [14:04:54]OFD Sender: No OFD packet to send [14:04:59]OFD Sender: No OFD packet to send [14:05:04]OFD Sender: No OFD packet to send [14:05:09]OFD Sender: No OFD packet to send [14:05:14]OFD Sender: No OFD packet to send [14:05:19]OFD Sender: No OFD packet to send [14:05:24]OFD Sender: No OFD packet to send [14:05:29]OFD Sender: No OFD packet to send [14:05:34]OFD Sender: No OFD packet to send [14:05:39]OFD Sender: No OFD packet to send [14:05:39]accept exits with 7 [14:05:39]New connection [14:05:39]New thread 3066785124 created [14:05:39]Thread 3066928484 joined [14:05:39]Waiting for new connection... [14:05:39] Sock 7.Parse request [14:05:39]Sock 7.Check first char [14:05:39]Sock 7.First char is OK [14:05:39]request: POST /json_proto HTTP/1.0 [14:05:39]Method: POST [14:05:39]URL: /json_proto [14:05:39]Method is POST - this is cgi request [14:05:39]url: /json_proto [14:05:39]query_string will be loaded in cgi processing [14:05:39]execute_cgi json_proto POST (null) [14:05:39]execute_cgi path=json_proto method=POST [14:05:39]POST find Content-Length [14:05:39]Host: 172.17.33.3:8080 [14:05:39]Content-Length: 663 [14:05:39]Content-Type: application/json [14:05:39] [14:05:39]POST finish read [14:05:39]Found Content-Length = 663 [14:05:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 20.000, "sum" : 1286.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "payments": [ { "type": 0, "sum" : 1286.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:39]execute_script... [14:05: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)347304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 20.000, "sum" : 1286.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "payments": [ { "type": 0, "sum" : 1286.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:39]POST & json_proto [14:05:39]process_json_proto [14:05:39]json parsed OK: [14:05:39]protocol is kg_v1.0 [14:05:39]action value=close_receipt [14:05:39]process_action close_receipt [14:05:39]cmd_close_receipt [14:05:39]MH_GetDate [14:05:39]Write to MH i2c: F0 00 00 C8 43 FA [14:05:39]Write i2c OK [14:05:39]MH_I2C_Read... [14:05:39]Read from MH i2c: F0 [14:05:39]MH_I2C_Read... [14:05:39]Read from MH i2c: F0 09 00 [14:05:39]MH_I2C_Read... [14:05:39]Read from MH i2c: F0 09 00 C8 43 00 38 91 1A 66 23 5B 8F 65 BE [14:05:39]GetLastDocTimeStamp 1713016180 [14:05:39]current date 1713017144 [14:05:39]FM_GetShiftState [14:05:39]SAM_PROTO_GetShiftState [14:05:39]wFMCommunicate request_size=4 [14:05:39]MH_SAM_APDU [14:05:39]CAPDU: 80 13 01 00 [14:05:39]Write to MH i2c: E2 08 00 C9 43 80 13 01 00 00 00 00 00 89 [14:05:39]Write i2c OK [14:05:39]MH_I2C_Read... [14:05:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:39]Read from MH i2c: E2 [14:05:39]MH_I2C_Read... [14:05:39]Read from MH i2c: E2 0E 00 [14:05:39]MH_I2C_Read... [14:05:39]Read from MH i2c: E2 0E 00 C9 43 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A2 [14:05:39]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [14:05:39]wFMCommunicate OK [14:05:39]SAM_PROTO_GetShiftState done [14:05:39]FM_GetShiftState done [14:05:39]opened in 1712967615 [14:05:39]opened+sec_in_day 1713054015 [14:05:39]quantity*price = 128600 [14:05:39]sum+1 = 128601 [14:05:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1286.00 Внесено: 2000.00 СДАЧА: 714.00 НСП 1% : 11.38 НДС 12% : 136.57 Наличными: 1286.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 152 13.04.2024 14:05 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28945 ФПД: 211157423291773 1/tax-web-control/client/api/v1/ticket?date=20240413T140544&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28945&fm=211157423291773&tin=02508201610067®Number=0000138879044617&sum=128600 [14:05:40]StoreToDocumentArchive [14:05:40]shift 115 fd 28945 [14:05:40]save to /storage/0115/doc_00028945 [14:05:40]save last doc name /storage/0115/doc_00028945 to /storage/kkm_last_doc_name [14:05:40]save OK [14:05:40]Clear old archive folders... [14:05:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:05:40]tlvbuf is 011EE7C0 [14:05:40]SAM_PROTO_ClearQueue [14:05:40]wFMCommunicate request_size=4 [14:05:40]MH_SAM_APDU [14:05:40]CAPDU: 80 09 00 00 [14:05:40]Write to MH i2c: E2 08 00 D6 43 80 09 00 00 00 00 00 00 8B [14:05:40]Write i2c OK [14:05:40]MH_I2C_Read... [14:05:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:40]Read from MH i2c: E2 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 03 00 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 03 00 D6 43 00 90 00 8D [14:05:40]RAPDU: 90 00 [14:05:40]wFMCommunicate OK [14:05:40]SAM_PROTO_ClearQueue done [14:05:40]KKMCreateOFDPacket [14:05:40]OFDProtocolAddRootSTLVToBuf [14:05:40]FM_MakeSignedData [14:05:40]FM_MakeSignedData [14:05:40]SAM_PROTO_SignData [14:05:40]wFMCommunicate request_size=4 [14:05:40]MH_SAM_APDU [14:05:40]CAPDU: 80 0D 01 02 [14:05:40]Write to MH i2c: E2 08 00 D7 43 80 0D 01 02 00 00 00 00 93 [14:05:40]Write i2c OK [14:05:40]MH_I2C_Read... [14:05:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:40]Read from MH i2c: E2 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 03 00 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 03 00 D7 43 00 90 00 8E [14:05:40]RAPDU: 90 00 [14:05:40]wFMCommunicate OK [14:05:40]wFMCommunicate request_size=255 [14:05:40]MH_SAM_APDU [14:05: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 20 4E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 58 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 35 00 00 00 00 07 04 06 00 58 F6 01 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 38 91 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 11 71 00 00 35 04 06 00 C0 [14:05:40]Write to MH i2c: E2 02 01 D8 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 20 4E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 58 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 35 00 00 00 00 07 04 06 00 58 F6 01 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 38 91 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 11 71 00 00 35 04 06 00 C0 00 00 E6 [14:05:40]Write i2c OK [14:05:40]MH_I2C_Read... [14:05:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:40]Read from MH i2c: E2 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 03 00 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 03 00 D8 43 00 90 00 8F [14:05:40]RAPDU: 90 00 [14:05:40]wFMCommunicate OK [14:05:40]wFMCommunicate request_size=10 [14:05:40]MH_SAM_APDU [14:05:40]CAPDU: 80 0D 02 02 05 0B EB 34 FD 7D [14:05:40]Write to MH i2c: E2 0D 00 D9 43 80 0D 02 02 05 00 0B EB 34 FD 7D 00 00 44 [14:05:40]Write i2c OK [14:05:40]MH_I2C_Read... [14:05:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:40]Read from MH i2c: E2 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 03 00 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 03 00 D9 43 00 90 00 90 [14:05:40]RAPDU: 90 00 [14:05:40]wFMCommunicate OK [14:05:40]wFMCommunicate request_size=4 [14:05:40]MH_SAM_APDU [14:05:40]CAPDU: 80 0D 03 02 [14:05:40]Write to MH i2c: E2 08 00 DA 43 80 0D 03 02 00 00 00 00 98 [14:05:40]Write i2c OK [14:05:40]MH_I2C_Read... [14:05:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:40]Read from MH i2c: E2 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 0B 00 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 0B 00 DA 43 00 45 64 7D A2 13 89 6C 59 90 00 C2 [14:05:40]RAPDU: 45 64 7D A2 13 89 6C 59 90 00 [14:05:40]wFMCommunicate OK [14:05:40]SAM_PROTO_SignData done [14:05:40]FM_MakeSignedData done [14:05:40]CreateOFDProtocolMessage [14:05:40]wFMCommunicate request_size=4 [14:05:40]MH_SAM_APDU [14:05:40]CAPDU: 80 11 00 00 [14:05:40]Write to MH i2c: E2 08 00 DB 43 80 11 00 00 00 00 00 00 98 [14:05:40]Write i2c OK [14:05:40]MH_I2C_Read... [14:05:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:40]Read from MH i2c: E2 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 17 00 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 17 00 DB 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E7 [14:05:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:05:40]wFMCommunicate OK [14:05:40]CreateOFDProtocolMessage done [14:05:40]OFDSenderStorePacket 28945 [14:05:40]StoreOFDPacket docnum=28945 [14:05:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 19 5E 07 01 08 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 20 4E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 58 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 35 00 00 00 00 07 04 06 00 58 F6 01 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 38 91 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 11 71 00 00 35 04 06 00 C0 0B EB 34 FD 7D 45 64 7D A2 13 89 6C 59 [14:05:40]CheckFolder [14:05:40]dirname=/storage/ofd_packets [14:05:40]CheckFolder done [14:05:40]ProducePacketName [14:05:40]name=ofd_packets/00028945 [14:05:40]NVStorageSaveData ofd_packets/00028945 [14:05:40]File name is /storage/ofd_packets/00028945 [14:05:40]Write 301 bytes [14:05:40]NVStorageSaveData done [14:05:40]OFDSenderStorePacket done [14:05:40]KKMCreateOFDPacket done [14:05:40]NVStorageSaveData kkm_last_timestamp [14:05:40]File name is /storage/kkm_last_timestamp [14:05:40]Write 4 bytes [14:05:40]NVStorageSaveData done [14:05:40]ExternCall_PrintAddStr [14:05:40]wPrintStart [14:05:40]Write to MH i2c: 01 00 00 DC 43 1F [14:05:40]Write i2c OK [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: 01 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: 01 07 00 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: 01 07 00 DC 43 00 00 00 00 00 FF 0F 34 [14:05:40]RasterBufferAndPrint [14:05:40]line Счет N : (1)347304 [14:05:40]line ИНН: 02508201610067 [14:05:40]line Контрольно-Кассовый Чек [14:05:40]line ПРОДАЖА [14:05:40]line ТРК (МРК, ГНК) : 23 [14:05:40]line Товар: 2710124130 [14:05:40]line Аи-92-К-5 [14:05:40]line 20.000 * 64.30 [14:05:40]line = 1286.00 [14:05:40]line НДС 12% НСП 1% [14:05:40]line > о реализуемом товаре [14:05:40]line ИТОГО: 1286.00 [14:05:40]line Внесено: 2000.00 [14:05:40]line СДАЧА: 714.00 [14:05:40]line НСП 1% : 11.38 [14:05:40]line НДС 12% : 136.57 [14:05:40]line Наличными: 1286.00 [14:05:40]line Безнал.: 0.00 [14:05:40]line Место: АЗС № 108 "Партнер Нефть" [14:05:40]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:05:40]line СНО: Общий режим [14:05:40]line Чек 152 13.04.2024 14:05 [14:05:40]line Смена: 115 ФФД: 1.0 [14:05:40]line ЗНМ: 0300000027 [14:05:40]line РНМ: 0000138879044617 [14:05:40]line Версия ККМ: 001 [14:05:40]line ФМ: 0000000000963154 [14:05:40]line ФД: 28945 [14:05:40]line ФПД: 211157423291773 [14:05:40]line 1/tax-web-control/client/api/v1/ticket?date=20240413T140544&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28945&fm=211157423291773&tin=02508201610067®Number=0000138879044617&sum=128600 [14:05:41]OFD Sender: Processing packet 28945 [packets to send 8, broken 7] [14:05:41]ProducePacketName [14:05:41]name=ofd_packets/00028945 [14:05:41]OFD Sender: To server: pG, [14:05:41]CommunicateWithHost lk.salyk.kg:30040 [14:05:41]ConnectInit lk.salyk.kg [14:05:41]written 0, free lines is 4095 [14:05:41]Connected sock=10 [14:05:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 19 5E 07 01 08 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 20 4E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 58 F6 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F6 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 35 00 00 00 00 07 04 06 00 58 F6 01 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 38 91 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 11 71 00 00 35 04 06 00 C0 0B EB 34 FD 7D 45 64 7D A2 13 89 6C 59 [14:05:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6D 1A 47 00 C2 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 31 35 34 10 04 04 00 11 71 00 00 F4 03 04 00 DF 3B 1A 66 B6 04 01 00 00 1C 4C 51 B1 42 69 33 D6 [14:05:41]CommunicateWithHost err = 0 [14:05:41]CheckOFDResponse [14:05:41]1017 (14) - 77093643461234 [14:05:41]1041 (16) - 0000000000963154 [14:05:41]1040 (4) - 28945 [14:05:41]1012 (4) - 13.04.2024 08:01 [14:05:41]1206 (1) - 0 [14:05:41]OFD Sender: Remove packet 28945 [14:05:41]ProducePacketName [14:05:41]name=ofd_packets/00028945 [14:05:41]NVStorageDeleteData [14:05:41]Write to MH i2c: 01 00 00 05 44 49 [14:05:41]Write i2c OK [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: 01 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: 01 07 00 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: 01 07 00 05 44 00 00 00 00 00 E7 0C 43 [14:05:41]RasterBufferAndPrint [14:05:41]line [14:05:41]line [14:05:41]line [14:05:41]line [14:05:41]line [14:05:41]written 0, free lines is 3308 [14:05:41]MH_Cut [14:05:41]Write to MH i2c: D1 01 00 0C 44 01 22 [14:05:41]Write i2c OK [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: D1 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: D1 01 00 [14:05:41]MH_I2C_Read... [14:05:41]Read from MH i2c: D1 01 00 0C 44 00 21 [14:05:41]Write to MH i2c: 01 00 00 0D 44 51 [14:05:41]Write i2c OK [14:05:41]MH_I2C_Read... [14:05:41]OFD Sender: No OFD packet to send [14:05:42]*** Cut start [14:05:42]*** Partial cut [14:05:42]*** CUTSNS_PIN = 1 [14:05:42]*** CUTSNS_PIN = 0 [14:05:42]*** Brake cut motor [14:05:43]Read from MH i2c: 01 [14:05:43]MH_I2C_Read... [14:05:43]*** Stop cut motor [14:05:43]*** Cut end [14:05:43]Read from MH i2c: 01 07 00 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: 01 07 00 0D 44 00 00 00 00 00 FF 0F 66 [14:05:43]process_action close_receipt done [14:05:43]requested_data is exist [14:05:43]produce_requested_data [14:05:43]requested_item fm.sn is exist - process it [14:05:43]wFMCommunicate request_size=4 [14:05:43]MH_SAM_APDU [14:05:43]CAPDU: 80 11 00 00 [14:05:43]Write to MH i2c: E2 08 00 0E 44 80 11 00 00 00 00 00 00 CC [14:05:43]Write i2c OK [14:05:43]MH_I2C_Read... [14:05:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:43]Read from MH i2c: E2 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 17 00 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 17 00 0E 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1B [14:05:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:05:43]wFMCommunicate OK [14:05:43]requested_item fd.num is exist - process it [14:05:43]SAM_PROTO_GetFieldsCounters [14:05:43]wFMCommunicate request_size=4 [14:05:43]MH_SAM_APDU [14:05:43]CAPDU: 80 13 00 00 [14:05:43]Write to MH i2c: E2 08 00 0F 44 80 13 00 00 00 00 00 00 CF [14:05:43]Write i2c OK [14:05:43]MH_I2C_Read... [14:05:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:43]Read from MH i2c: E2 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 62 00 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 62 00 0F 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 11 71 00 00 0E 04 04 00 73 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 CA [14:05: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 11 71 00 00 0E 04 04 00 73 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 [14:05:43]wFMCommunicate OK [14:05:43]SAM_PROTO_GetFieldsCounters done [14:05:43]requested_item shift.num is exist - process it [14:05:43]requested_item shift.opened is exist - process it [14:05:43]req_shift_opened [14:05:43]FM_GetShiftState [14:05:43]SAM_PROTO_GetShiftState [14:05:43]wFMCommunicate request_size=4 [14:05:43]MH_SAM_APDU [14:05:43]CAPDU: 80 13 01 00 [14:05:43]Write to MH i2c: E2 08 00 10 44 80 13 01 00 00 00 00 00 D1 [14:05:43]Write i2c OK [14:05:43]MH_I2C_Read... [14:05:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:43]Read from MH i2c: E2 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 0E 00 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 0E 00 10 44 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 EA [14:05:43]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [14:05:43]wFMCommunicate OK [14:05:43]SAM_PROTO_GetShiftState done [14:05:43]FM_GetShiftState done [14:05:43]req_shift_opened done [14:05:43]requested_item shift.open_date is exist - process it [14:05:43]req_shift_open_date [14:05:43]req_shift_open_date done [14:05:43]produce_requested_data done [14:05:43]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28945,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [14:05:43]process_action_free close_receipt [14:05:43]json_value_free [14:05:43]json_value_free done [14:05:43]process_json_proto returns [14:05:43]Send response to host [14:05:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28945,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [14:05:43]free response buf [14:05:43]execute_script done [14:05:43]execute_script returns [14:05:43]free content buf [14:05:43]Sock 7.Close socket [14:05:43]Sock 7.Thread stoped [14:05:47]OFD Sender: No OFD packet to send [14:05:52]OFD Sender: No OFD packet to send [14:05:57]OFD Sender: No OFD packet to send [14:06:00]accept exits with 9 [14:06:00]New connection [14:06:00]New thread 3066928484 created [14:06:00]Thread 3066785124 joined [14:06:00]Waiting for new connection... [14:06:00] Sock 9.Parse request [14:06:00]Sock 9.Check first char [14:06:00]Sock 9.First char is OK [14:06:00]request: POST /json_proto HTTP/1.0 [14:06:00]Method: POST [14:06:00]URL: /json_proto [14:06:00]Method is POST - this is cgi request [14:06:00]url: /json_proto [14:06:00]query_string will be loaded in cgi processing [14:06:00]execute_cgi json_proto POST (null) [14:06:00]execute_cgi path=json_proto method=POST [14:06:00]POST find Content-Length [14:06:00]Host: 172.17.33.3:8080 [14:06:00]Content-Length: 840 [14:06:00]Content-Type: application/json [14:06:00] [14:06:00]POST finish read [14:06:00]Found Content-Length = 840 [14:06:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347303", "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" : 64.30, "quantity" : 7.780, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:00]execute_script... [14:06: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)347303", "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" : 64.30, "quantity" : 7.780, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:00]POST & json_proto [14:06:00]process_json_proto [14:06:00]json parsed OK: [14:06:00]protocol is kg_v1.0 [14:06:00]action value=close_receipt [14:06:00]process_action close_receipt [14:06:00]cmd_close_receipt [14:06:00]MH_GetDate [14:06:00]Write to MH i2c: F0 00 00 11 44 44 [14:06:00]Write i2c OK [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: F0 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: F0 09 00 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: F0 09 00 11 44 00 4D 91 1A 66 23 5B 8F 65 1D [14:06:00]GetLastDocTimeStamp 1713017144 [14:06:00]current date 1713017165 [14:06:00]FM_GetShiftState [14:06:00]SAM_PROTO_GetShiftState [14:06:00]wFMCommunicate request_size=4 [14:06:00]MH_SAM_APDU [14:06:00]CAPDU: 80 13 01 00 [14:06:00]Write to MH i2c: E2 08 00 12 44 80 13 01 00 00 00 00 00 D3 [14:06:00]Write i2c OK [14:06:00]MH_I2C_Read... [14:06:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:00]Read from MH i2c: E2 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 0E 00 [14:06:00]MH_I2C_Read... [14:06:00]Read from MH i2c: E2 0E 00 12 44 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 EC [14:06:00]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [14:06:00]wFMCommunicate OK [14:06:00]SAM_PROTO_GetShiftState done [14:06:00]FM_GetShiftState done [14:06:00]opened in 1712967615 [14:06:00]opened+sec_in_day 1713054015 [14:06:00]quantity*price = 50025 [14:06:00]sum+1 = 50026 [14:06:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 153 13.04.2024 14:06 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28946 ФПД: 98181566811190 1/tax-web-control/client/api/v1/ticket?date=20240413T140605&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28946&fm=98181566811190&tin=02508201610067®Number=0000138879044617&sum=50025 [14:06:01]StoreToDocumentArchive [14:06:01]shift 115 fd 28946 [14:06:01]save to /storage/0115/doc_00028946 [14:06:01]save last doc name /storage/0115/doc_00028946 to /storage/kkm_last_doc_name [14:06:01]save OK [14:06:01]Clear old archive folders... [14:06:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:06:01]tlvbuf is 0121C3A0 [14:06:01]SAM_PROTO_ClearQueue [14:06:01]wFMCommunicate request_size=4 [14:06:01]MH_SAM_APDU [14:06:01]CAPDU: 80 09 00 00 [14:06:01]Write to MH i2c: E2 08 00 1F 44 80 09 00 00 00 00 00 00 D5 [14:06:01]Write i2c OK [14:06:01]MH_I2C_Read... [14:06:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:01]Read from MH i2c: E2 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: E2 03 00 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: E2 03 00 1F 44 00 90 00 D7 [14:06:01]RAPDU: 90 00 [14:06:01]wFMCommunicate OK [14:06:01]SAM_PROTO_ClearQueue done [14:06:01]KKMCreateOFDPacket [14:06:01]OFDProtocolAddRootSTLVToBuf [14:06:01]FM_MakeSignedData [14:06:01]FM_MakeSignedData [14:06:01]SAM_PROTO_SignData [14:06:01]wFMCommunicate request_size=4 [14:06:01]MH_SAM_APDU [14:06:01]CAPDU: 80 0D 01 02 [14:06:01]Write to MH i2c: E2 08 00 20 44 80 0D 01 02 00 00 00 00 DD [14:06:01]Write i2c OK [14:06:01]MH_I2C_Read... [14:06:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:01]Read from MH i2c: E2 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: E2 03 00 [14:06:01]MH_I2C_Read... [14:06:01]Read from MH i2c: E2 03 00 20 44 00 90 00 D8 [14:06:01]RAPDU: 90 00 [14:06:01]wFMCommunicate OK [14:06:01]wFMCommunicate request_size=255 [14:06:01]MH_SAM_APDU [14:06:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 99 00 00 00 F4 03 04 00 4D 91 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 12 71 00 00 35 04 06 00 59 [14:06:01]Write to MH i2c: E2 02 01 21 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 99 00 00 00 F4 03 04 00 4D 91 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 12 71 00 00 35 04 06 00 59 00 00 17 [14:06:01]Write i2c OK [14:06:01]MH_I2C_Read... [14:06:02]OFD Sender: No OFD packet to send [14:06:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:02]Read from MH i2c: E2 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: E2 03 00 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: E2 03 00 21 44 00 90 00 D9 [14:06:02]RAPDU: 90 00 [14:06:02]wFMCommunicate OK [14:06:02]wFMCommunicate request_size=10 [14:06:02]MH_SAM_APDU [14:06:02]CAPDU: 80 0D 02 02 05 4B AD 69 CC 36 [14:06:02]Write to MH i2c: E2 0D 00 22 44 80 0D 02 02 05 00 4B AD 69 CC 36 00 00 4D [14:06:02]Write i2c OK [14:06:02]MH_I2C_Read... [14:06:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:02]Read from MH i2c: E2 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: E2 03 00 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: E2 03 00 22 44 00 90 00 DA [14:06:02]RAPDU: 90 00 [14:06:02]wFMCommunicate OK [14:06:02]wFMCommunicate request_size=4 [14:06:02]MH_SAM_APDU [14:06:02]CAPDU: 80 0D 03 02 [14:06:02]Write to MH i2c: E2 08 00 23 44 80 0D 03 02 00 00 00 00 E2 [14:06:02]Write i2c OK [14:06:02]MH_I2C_Read... [14:06:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:02]Read from MH i2c: E2 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: E2 0B 00 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: E2 0B 00 23 44 00 66 A1 CC 78 18 90 CB 0E 90 00 AF [14:06:02]RAPDU: 66 A1 CC 78 18 90 CB 0E 90 00 [14:06:02]wFMCommunicate OK [14:06:02]SAM_PROTO_SignData done [14:06:02]FM_MakeSignedData done [14:06:02]CreateOFDProtocolMessage [14:06:02]wFMCommunicate request_size=4 [14:06:02]MH_SAM_APDU [14:06:02]CAPDU: 80 11 00 00 [14:06:02]Write to MH i2c: E2 08 00 24 44 80 11 00 00 00 00 00 00 E2 [14:06:02]Write i2c OK [14:06:02]MH_I2C_Read... [14:06:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:02]Read from MH i2c: E2 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: E2 17 00 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: E2 17 00 24 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 31 [14:06:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:06:02]wFMCommunicate OK [14:06:02]CreateOFDProtocolMessage done [14:06:02]OFDSenderStorePacket 28946 [14:06:02]StoreOFDPacket docnum=28946 [14:06:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6A AC 07 01 31 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 99 00 00 00 F4 03 04 00 4D 91 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 12 71 00 00 35 04 06 00 59 4B AD 69 CC 36 66 A1 CC 78 18 90 CB 0E [14:06:02]CheckFolder [14:06:02]dirname=/storage/ofd_packets [14:06:02]CheckFolder done [14:06:02]ProducePacketName [14:06:02]name=ofd_packets/00028946 [14:06:02]NVStorageSaveData ofd_packets/00028946 [14:06:02]File name is /storage/ofd_packets/00028946 [14:06:02]Write 301 bytes [14:06:02]NVStorageSaveData done [14:06:02]OFDSenderStorePacket done [14:06:02]KKMCreateOFDPacket done [14:06:02]NVStorageSaveData kkm_last_timestamp [14:06:02]File name is /storage/kkm_last_timestamp [14:06:02]Write 4 bytes [14:06:02]NVStorageSaveData done [14:06:02]ExternCall_PrintAddStr [14:06:02]wPrintStart [14:06:02]Write to MH i2c: 01 00 00 25 44 69 [14:06:02]OFD Sender: Processing packet 28946 [packets to send 8, broken 7] [14:06:02]ProducePacketName [14:06:02]name=ofd_packets/00028946 [14:06:02]OFD Sender: To server: pG, [14:06:02]CommunicateWithHost lk.salyk.kg:30040 [14:06:02]ConnectInit lk.salyk.kg [14:06:02]Write i2c OK [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: 01 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: 01 07 00 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: 01 07 00 25 44 00 00 00 00 00 FF 0F 7E [14:06:02]RasterBufferAndPrint [14:06:02]line Счет N : (1)347303 [14:06:02]line ИНН: 02508201610067 [14:06:02]line Контрольно-Кассовый Чек [14:06:02]line ПРОДАЖА [14:06:02]line ТРК (МРК, ГНК) : 42 [14:06:02]line Товар: 2710124130 [14:06:02]line Аи-92-К-5 [14:06:02]line 7.780 * 64.30 [14:06:02]line = 500.25 [14:06:02]line НДС 12% НСП 1% [14:06:02]line > о реализуемом товаре [14:06:02]line ИТОГО: 500.25 [14:06:02]line НСП 1% : 4.43 [14:06:02]line НДС 12% : 53.12 [14:06:02]line Наличными: 0.00 [14:06:02]line Безнал.: 500.25 [14:06:02]line Место: АЗС № 108 "Партнер Нефть" [14:06:02]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:06:02]line СНО: Общий режим [14:06:02]line Чек 153 13.04.2024 14:06 [14:06:02]line Смена: 115 ФФД: 1.0 [14:06:02]line ЗНМ: 0300000027 [14:06:02]line РНМ: 0000138879044617 [14:06:02]line Версия ККМ: 001 [14:06:02]line Платежная система: АКБ Кыргызстан [14:06:02]line ФМ: 0000000000963154 [14:06:02]line ФД: 28946 [14:06:02]line ФПД: 98181566811190 [14:06:02]line 1/tax-web-control/client/api/v1/ticket?date=20240413T140605&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28946&fm=98181566811190&tin=02508201610067®Number=0000138879044617&sum=50025 [14:06:02]Connected sock=10 [14:06: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 31 35 34 0F 01 00 00 6A AC 07 01 31 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 99 00 00 00 F4 03 04 00 4D 91 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 12 71 00 00 35 04 06 00 59 4B AD 69 CC 36 66 A1 CC 78 18 90 CB 0E [14:06:02]written 0, free lines is 4095 [14:06:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 5D 04 47 00 27 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 31 35 34 10 04 04 00 12 71 00 00 F4 03 04 00 F4 3B 1A 66 B6 04 01 00 00 F7 10 A7 4E F0 6B F3 CF [14:06:02]CommunicateWithHost err = 0 [14:06:02]CheckOFDResponse [14:06:02]1017 (14) - 77093643461234 [14:06:02]1041 (16) - 0000000000963154 [14:06:02]1040 (4) - 28946 [14:06:02]1012 (4) - 13.04.2024 08:01 [14:06:02]1206 (1) - 0 [14:06:02]OFD Sender: Remove packet 28946 [14:06:02]ProducePacketName [14:06:02]name=ofd_packets/00028946 [14:06:02]NVStorageDeleteData [14:06:03]Write to MH i2c: 01 00 00 4E 44 92 [14:06:03]Write i2c OK [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: 01 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: 01 07 00 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: 01 07 00 4E 44 00 00 00 00 00 E5 0C 8A [14:06:03]RasterBufferAndPrint [14:06:03]line [14:06:03]line [14:06:03]line [14:06:03]line [14:06:03]line [14:06:03]written 0, free lines is 3307 [14:06:03]MH_Cut [14:06:03]Write to MH i2c: D1 01 00 55 44 01 6B [14:06:03]Write i2c OK [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: D1 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: D1 01 00 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: D1 01 00 55 44 00 6A [14:06:03]Write to MH i2c: 01 00 00 56 44 9A [14:06:03]Write i2c OK [14:06:03]MH_I2C_Read... [14:06:03]OFD Sender: No OFD packet to send [14:06:03]*** Cut start [14:06:03]*** Partial cut [14:06:03]*** CUTSNS_PIN = 1 [14:06:04]*** CUTSNS_PIN = 0 [14:06:04]*** Brake cut motor [14:06:04]Read from MH i2c: 01 [14:06:04]MH_I2C_Read... [14:06:04]*** Stop cut motor [14:06:04]*** Cut end [14:06:04]Read from MH i2c: 01 07 00 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: 01 07 00 56 44 00 00 00 00 00 FF 0F AF [14:06:04]process_action close_receipt done [14:06:04]requested_data is exist [14:06:04]produce_requested_data [14:06:04]requested_item fm.sn is exist - process it [14:06:04]wFMCommunicate request_size=4 [14:06:04]MH_SAM_APDU [14:06:04]CAPDU: 80 11 00 00 [14:06:04]Write to MH i2c: E2 08 00 57 44 80 11 00 00 00 00 00 00 15 [14:06:04]Write i2c OK [14:06:04]MH_I2C_Read... [14:06:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:04]Read from MH i2c: E2 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: E2 17 00 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: E2 17 00 57 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 64 [14:06:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:06:04]wFMCommunicate OK [14:06:04]requested_item fd.num is exist - process it [14:06:04]SAM_PROTO_GetFieldsCounters [14:06:04]wFMCommunicate request_size=4 [14:06:04]MH_SAM_APDU [14:06:04]CAPDU: 80 13 00 00 [14:06:04]Write to MH i2c: E2 08 00 58 44 80 13 00 00 00 00 00 00 18 [14:06:04]Write i2c OK [14:06:04]MH_I2C_Read... [14:06:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:04]Read from MH i2c: E2 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: E2 62 00 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: E2 62 00 58 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 12 71 00 00 0E 04 04 00 73 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 17 [14:06: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 12 71 00 00 0E 04 04 00 73 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 [14:06:04]wFMCommunicate OK [14:06:04]SAM_PROTO_GetFieldsCounters done [14:06:04]requested_item shift.num is exist - process it [14:06:04]requested_item shift.opened is exist - process it [14:06:04]req_shift_opened [14:06:04]FM_GetShiftState [14:06:04]SAM_PROTO_GetShiftState [14:06:04]wFMCommunicate request_size=4 [14:06:04]MH_SAM_APDU [14:06:04]CAPDU: 80 13 01 00 [14:06:04]Write to MH i2c: E2 08 00 59 44 80 13 01 00 00 00 00 00 1A [14:06:04]Write i2c OK [14:06:04]MH_I2C_Read... [14:06:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:04]Read from MH i2c: E2 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: E2 0E 00 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: E2 0E 00 59 44 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 33 [14:06:04]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [14:06:04]wFMCommunicate OK [14:06:04]SAM_PROTO_GetShiftState done [14:06:04]FM_GetShiftState done [14:06:04]req_shift_opened done [14:06:04]requested_item shift.open_date is exist - process it [14:06:04]req_shift_open_date [14:06:04]req_shift_open_date done [14:06:04]produce_requested_data done [14:06:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28946,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [14:06:04]process_action_free close_receipt [14:06:04]json_value_free [14:06:04]json_value_free done [14:06:04]process_json_proto returns [14:06:04]Send response to host [14:06:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28946,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [14:06:04]free response buf [14:06:04]execute_script done [14:06:04]execute_script returns [14:06:04]free content buf [14:06:04]Sock 9.Close socket [14:06:04]Sock 9.Thread stoped [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06:18]OFD Sender: No OFD packet to send [14:06:23]OFD Sender: No OFD packet to send [14:06:28]OFD Sender: No OFD packet to send [14:06:33]OFD Sender: No OFD packet to send [14:06:38]OFD Sender: No OFD packet to send [14:06:43]OFD Sender: No OFD packet to send [14:06:48]OFD Sender: No OFD packet to send [14:06:53]OFD Sender: No OFD packet to send [14:06:58]OFD Sender: No OFD packet to send [14:07:03]OFD Sender: No OFD packet to send [14:07:08]OFD Sender: No OFD packet to send [14:07:13]OFD Sender: No OFD packet to send [14:07:18]OFD Sender: No OFD packet to send [14:07:23]OFD Sender: No OFD packet to send [14:07:28]OFD Sender: No OFD packet to send [14:07:33]OFD Sender: No OFD packet to send [14:07:38]OFD Sender: No OFD packet to send [14:07:43]OFD Sender: No OFD packet to send [14:07:48]OFD Sender: No OFD packet to send [14:07:53]OFD Sender: No OFD packet to send [14:07:58]OFD Sender: No OFD packet to send [14:08:03]OFD Sender: No OFD packet to send [14:08:08]OFD Sender: No OFD packet to send [14:08:13]OFD Sender: No OFD packet to send [14:08:18]OFD Sender: No OFD packet to send [14:08:23]OFD Sender: No OFD packet to send [14:08:28]OFD Sender: No OFD packet to send [14:08:33]OFD Sender: No OFD packet to send [14:08:38]OFD Sender: No OFD packet to send [14:08:43]OFD Sender: No OFD packet to send [14:08:48]OFD Sender: No OFD packet to send [14:08:53]OFD Sender: No OFD packet to send [14:08:58]OFD Sender: No OFD packet to send [14:09:03]OFD Sender: No OFD packet to send [14:09:08]OFD Sender: No OFD packet to send [14:09:13]OFD Sender: No OFD packet to send [14:09:18]OFD Sender: No OFD packet to send [14:09:23]OFD Sender: No OFD packet to send [14:09:28]OFD Sender: No OFD packet to send [14:09:33]OFD Sender: No OFD packet to send [14:09:38]OFD Sender: No OFD packet to send [14:09:43]OFD Sender: No OFD packet to send [14:09:48]OFD Sender: No OFD packet to send [14:09:53]OFD Sender: No OFD packet to send [14:09:58]OFD Sender: No OFD packet to send [14:10:03]OFD Sender: No OFD packet to send [14:10:08]OFD Sender: No OFD packet to send [14:10:13]OFD Sender: No OFD packet to send [14:10:18]OFD Sender: No OFD packet to send [14:10:23]OFD Sender: No OFD packet to send [14:10:28]OFD Sender: No OFD packet to send [14:10:33]OFD Sender: No OFD packet to send [14:10:38]OFD Sender: No OFD packet to send [14:10:43]OFD Sender: No OFD packet to send [14:10:48]OFD Sender: No OFD packet to send [14:10:53]OFD Sender: No OFD packet to send [14:10:58]OFD Sender: No OFD packet to send [14:11:03]OFD Sender: No OFD packet to send [14:11:08]OFD Sender: No OFD packet to send [14:11:13]OFD Sender: No OFD packet to send [14:11:18]OFD Sender: No OFD packet to send [14:11:23]OFD Sender: No OFD packet to send [14:11:28]OFD Sender: No OFD packet to send [14:11:33]OFD Sender: No OFD packet to send [14:11:35]accept exits with 7 [14:11:35]New connection [14:11:35]New thread 3066785124 created [14:11:35]Thread 3066928484 joined [14:11:35]Waiting for new connection... [14:11:35] Sock 7.Parse request [14:11:35]Sock 7.Check first char [14:11:35]Sock 7.First char is OK [14:11:35]request: POST /json_proto HTTP/1.0 [14:11:35]Method: POST [14:11:35]URL: /json_proto [14:11:35]Method is POST - this is cgi request [14:11:35]url: /json_proto [14:11:35]query_string will be loaded in cgi processing [14:11:35]execute_cgi json_proto POST (null) [14:11:35]execute_cgi path=json_proto method=POST [14:11:35]POST find Content-Length [14:11:35]Host: 172.17.33.3:8080 [14:11:35]Content-Length: 1204 [14:11:35]Content-Type: application/json [14:11:35] [14:11:35]POST finish read [14:11:35]Found Content-Length = 1204 [14:11:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347305\u000A13.04.2024 13:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 55.250 x 72.40\u000A\u0418\u0422\u041E\u0413: 4000.10\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A57605\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:35]execute_script... [14:11:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347305\u000A13.04.2024 13:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 55.250 x 72.40\u000A\u0418\u0422\u041E\u0413: 4000.10\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A57605\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:35]POST & json_proto [14:11:35]process_json_proto [14:11:35]json parsed OK: [14:11:35]protocol is kg_v1.0 [14:11:35]action value=print_text [14:11:35]process_action print_text [14:11:35]cmd_print_text [14:11:35]ExternCall_PrintAddStr [14:11:35]wPrintStart [14:11:35]Write to MH i2c: 01 00 00 5A 44 9E [14:11:35]Write i2c OK [14:11:35]MH_I2C_Read... [14:11:35]Read from MH i2c: 01 [14:11:35]MH_I2C_Read... [14:11:35]Read from MH i2c: 01 07 00 [14:11:35]MH_I2C_Read... [14:11:35]Read from MH i2c: 01 07 00 5A 44 00 00 00 00 00 FF 0F B3 [14:11:35]RasterBufferAndPrint [14:11:35]line *****ТОВАРНЫЙ ЧЕК***** [14:11:35]line АЗС 108 [14:11:35]line Партнер нефть [14:11:35]line 02508201610067 [14:11:35]line Кассир : Шадыканова Ж. [14:11:35]line Счет N : (1)347305 [14:11:35]line 13.04.2024 13:53 [14:11:35]line ПРОДАЖА [14:11:35]line ТРК (МРК, ГНК): 21 [14:11:35]line Вид ГСМ : 2710194210 [14:11:35]line ДТ-К-5 [14:11:35]line 55.250 x 72.40 [14:11:35]line ИТОГ: 4000.10 [14:11:35]line Тип оплаты: Талоны: Топливная Карта [14:11:35]line 57605 [14:11:35]line ______________________ [14:11:35]line (подпись) [14:11:35]written 0, free lines is 4095 [14:11:35]Write to MH i2c: 01 00 00 6F 44 B3 [14:11:35]Write i2c OK [14:11:35]MH_I2C_Read... [14:11:35]Read from MH i2c: 01 [14:11:35]MH_I2C_Read... [14:11:35]Read from MH i2c: 01 07 00 [14:11:35]MH_I2C_Read... [14:11:35]Read from MH i2c: 01 07 00 6F 44 00 00 00 00 00 F4 0D BB [14:11:35]RasterBufferAndPrint [14:11:35]line [14:11:35]line [14:11:35]line [14:11:35]line [14:11:35]line [14:11:35]written 0, free lines is 3573 [14:11:35]MH_Cut [14:11:35]Write to MH i2c: D1 01 00 76 44 01 8C [14:11:35]Write i2c OK [14:11:35]MH_I2C_Read... [14:11:35]Read from MH i2c: D1 [14:11:35]MH_I2C_Read... [14:11:35]Read from MH i2c: D1 01 00 [14:11:35]MH_I2C_Read... [14:11:35]Read from MH i2c: D1 01 00 76 44 00 8B [14:11:35]Write to MH i2c: 01 00 00 77 44 BB [14:11:35]Write i2c OK [14:11:35]MH_I2C_Read... [14:11:36]*** Cut start [14:11:36]*** Partial cut [14:11:36]*** CUTSNS_PIN = 1 [14:11:36]*** CUTSNS_PIN = 0 [14:11:36]*** Brake cut motor [14:11:36]Read from MH i2c: 01 [14:11:36]MH_I2C_Read... [14:11:36]*** Stop cut motor [14:11:36]*** Cut end [14:11:36]Read from MH i2c: 01 07 00 [14:11:36]MH_I2C_Read... [14:11:36]Read from MH i2c: 01 07 00 77 44 00 00 00 00 00 FF 0F D0 [14:11:36]process_action print_text done [14:11:36]requested_data is exist [14:11:36]produce_requested_data [14:11:36]requested_item fm.sn is exist - process it [14:11:36]wFMCommunicate request_size=4 [14:11:36]MH_SAM_APDU [14:11:36]CAPDU: 80 11 00 00 [14:11:36]Write to MH i2c: E2 08 00 78 44 80 11 00 00 00 00 00 00 36 [14:11:36]Write i2c OK [14:11:36]MH_I2C_Read... [14:11:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:36]Read from MH i2c: E2 [14:11:36]MH_I2C_Read... [14:11:36]Read from MH i2c: E2 17 00 [14:11:36]MH_I2C_Read... [14:11:36]Read from MH i2c: E2 17 00 78 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 85 [14:11:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:11:36]wFMCommunicate OK [14:11:36]requested_item fd.num is exist - process it [14:11:36]SAM_PROTO_GetFieldsCounters [14:11:36]wFMCommunicate request_size=4 [14:11:36]MH_SAM_APDU [14:11:36]CAPDU: 80 13 00 00 [14:11:36]Write to MH i2c: E2 08 00 79 44 80 13 00 00 00 00 00 00 39 [14:11:36]Write i2c OK [14:11:36]MH_I2C_Read... [14:11:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:36]Read from MH i2c: E2 [14:11:36]MH_I2C_Read... [14:11:36]Read from MH i2c: E2 62 00 [14:11:36]MH_I2C_Read... [14:11:36]Read from MH i2c: E2 62 00 79 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 12 71 00 00 0E 04 04 00 73 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 38 [14:11: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 12 71 00 00 0E 04 04 00 73 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 [14:11:36]wFMCommunicate OK [14:11:36]SAM_PROTO_GetFieldsCounters done [14:11:36]requested_item shift.num is exist - process it [14:11:36]requested_item shift.opened is exist - process it [14:11:36]req_shift_opened [14:11:36]FM_GetShiftState [14:11:36]SAM_PROTO_GetShiftState [14:11:36]wFMCommunicate request_size=4 [14:11:36]MH_SAM_APDU [14:11:36]CAPDU: 80 13 01 00 [14:11:36]Write to MH i2c: E2 08 00 7A 44 80 13 01 00 00 00 00 00 3B [14:11:36]Write i2c OK [14:11:36]MH_I2C_Read... [14:11:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:36]Read from MH i2c: E2 [14:11:36]MH_I2C_Read... [14:11:36]Read from MH i2c: E2 0E 00 [14:11:36]MH_I2C_Read... [14:11:36]Read from MH i2c: E2 0E 00 7A 44 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 54 [14:11:36]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [14:11:36]wFMCommunicate OK [14:11:36]SAM_PROTO_GetShiftState done [14:11:36]FM_GetShiftState done [14:11:36]req_shift_opened done [14:11:36]requested_item shift.open_date is exist - process it [14:11:36]req_shift_open_date [14:11:36]req_shift_open_date done [14:11:36]produce_requested_data done [14:11:36]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28946,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [14:11:36]process_action_free print_text [14:11:36]json_value_free [14:11:36]json_value_free done [14:11:36]process_json_proto returns [14:11:36]Send response to host [14:11:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28946,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [14:11:36]free response buf [14:11:36]execute_script done [14:11:36]execute_script returns [14:11:36]free content buf [14:11:36]Sock 7.Close socket [14:11:36]Sock 7.Thread stoped [14:11:38]OFD Sender: No OFD packet to send [14:11:43]OFD Sender: No OFD packet to send [14:11:48]OFD Sender: No OFD packet to send [14:11:53]OFD Sender: No OFD packet to send [14:11:58]OFD Sender: No OFD packet to send [14:12:03]OFD Sender: No OFD packet to send [14:12:08]OFD Sender: No OFD packet to send [14:12:13]OFD Sender: No OFD packet to send [14:12:18]OFD Sender: No OFD packet to send [14:12:23]OFD Sender: No OFD packet to send [14:12:28]OFD Sender: No OFD packet to send [14:12:33]OFD Sender: No OFD packet to send [14:12:38]OFD Sender: No OFD packet to send [14:12:43]OFD Sender: No OFD packet to send [14:12:48]OFD Sender: No OFD packet to send [14:12:53]OFD Sender: No OFD packet to send [14:12:58]OFD Sender: No OFD packet to send [14:13:03]OFD Sender: No OFD packet to send [14:13:08]OFD Sender: No OFD packet to send [14:13:13]OFD Sender: No OFD packet to send [14:13:18]OFD Sender: No OFD packet to send [14:13:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]OFD Sender: No OFD packet to send [14:13:53]OFD Sender: No OFD packet to send [14:13:58]OFD Sender: No OFD packet to send [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:28]OFD Sender: No OFD packet to send [14:14:33]OFD Sender: No OFD packet to send [14:14:38]OFD Sender: No OFD packet to send [14:14:43]OFD Sender: No OFD packet to send [14:14:48]OFD Sender: No OFD packet to send [14:14:53]OFD Sender: No OFD packet to send [14:14:58]OFD Sender: No OFD packet to send [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]accept exits with 9 [14:15:33]New connection [14:15:33]New thread 3066928484 created [14:15:33]Thread 3066785124 joined [14:15:33]Waiting for new connection... [14:15:33] Sock 9.Parse request [14:15:33]Sock 9.Check first char [14:15:33]Sock 9.First char is OK [14:15:33]request: POST /json_proto HTTP/1.0 [14:15:33]Method: POST [14:15:33]URL: /json_proto [14:15:33]Method is POST - this is cgi request [14:15:33]url: /json_proto [14:15:33]query_string will be loaded in cgi processing [14:15:33]execute_cgi json_proto POST (null) [14:15:33]execute_cgi path=json_proto method=POST [14:15:33]POST find Content-Length [14:15:33]Host: 172.17.33.3:8080 [14:15:33]Content-Length: 678 [14:15:33]Content-Type: application/json [14:15:33] [14:15:33]POST finish read [14:15:33]Found Content-Length = 678 [14:15:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.110, "sum" : 650.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:15:33]execute_script... [14:15: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)347306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.110, "sum" : 650.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:15:33]POST & json_proto [14:15:33]process_json_proto [14:15:33]json parsed OK: [14:15:33]protocol is kg_v1.0 [14:15:33]action value=close_receipt [14:15:33]process_action close_receipt [14:15:33]cmd_close_receipt [14:15:33]MH_GetDate [14:15:33]Write to MH i2c: F0 00 00 7B 44 AE [14:15:33]Write i2c OK [14:15:33]MH_I2C_Read... [14:15:33]Read from MH i2c: F0 [14:15:33]MH_I2C_Read... [14:15:33]Read from MH i2c: F0 09 00 [14:15:33]MH_I2C_Read... [14:15:33]Read from MH i2c: F0 09 00 7B 44 00 8A 93 1A 66 23 5B 8F 65 C6 [14:15:33]GetLastDocTimeStamp 1713017165 [14:15:33]current date 1713017738 [14:15:33]FM_GetShiftState [14:15:33]SAM_PROTO_GetShiftState [14:15:33]wFMCommunicate request_size=4 [14:15:33]MH_SAM_APDU [14:15:33]CAPDU: 80 13 01 00 [14:15:33]Write to MH i2c: E2 08 00 7C 44 80 13 01 00 00 00 00 00 3D [14:15:33]Write i2c OK [14:15:33]MH_I2C_Read... [14:15:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:33]Read from MH i2c: E2 [14:15:33]MH_I2C_Read... [14:15:33]Read from MH i2c: E2 0E 00 [14:15:33]MH_I2C_Read... [14:15:33]Read from MH i2c: E2 0E 00 7C 44 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 56 [14:15:33]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [14:15:33]wFMCommunicate OK [14:15:33]SAM_PROTO_GetShiftState done [14:15:33]FM_GetShiftState done [14:15:33]opened in 1712967615 [14:15:33]opened+sec_in_day 1713054015 [14:15:33]quantity*price = 65007 [14:15:33]sum+1 = 65008 [14:15:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 154 13.04.2024 14:15 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28947 ФПД: 175358301132200 1/tax-web-control/client/api/v1/ticket?date=20240413T141538&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28947&fm=175358301132200&tin=02508201610067®Number=0000138879044617&sum=65000 [14:15:34]StoreToDocumentArchive [14:15:34]shift 115 fd 28947 [14:15:34]save to /storage/0115/doc_00028947 [14:15:34]save last doc name /storage/0115/doc_00028947 to /storage/kkm_last_doc_name [14:15:34]save OK [14:15:34]Clear old archive folders... [14:15:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:15:34]tlvbuf is 0121FD70 [14:15:34]SAM_PROTO_ClearQueue [14:15:34]wFMCommunicate request_size=4 [14:15:34]MH_SAM_APDU [14:15:34]CAPDU: 80 09 00 00 [14:15:34]Write to MH i2c: E2 08 00 89 44 80 09 00 00 00 00 00 00 3F [14:15:34]Write i2c OK [14:15:34]MH_I2C_Read... [14:15:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:15:34]Read from MH i2c: E2 [14:15:34]MH_I2C_Read... [14:15:34]Read from MH i2c: E2 03 00 [14:15:34]MH_I2C_Read... [14:15:34]Read from MH i2c: E2 03 00 89 44 00 90 00 41 [14:15:34]RAPDU: 90 00 [14:15:34]wFMCommunicate OK [14:15:34]SAM_PROTO_ClearQueue done [14:15:34]KKMCreateOFDPacket [14:15:34]OFDProtocolAddRootSTLVToBuf [14:15:34]FM_MakeSignedData [14:15:34]FM_MakeSignedData [14:15:34]SAM_PROTO_SignData [14:15:34]wFMCommunicate request_size=4 [14:15:34]MH_SAM_APDU [14:15:34]CAPDU: 80 0D 01 02 [14:15:34]Write to MH i2c: E2 08 00 8A 44 80 0D 01 02 00 00 00 00 47 [14:15:34]Write i2c OK [14:15:34]MH_I2C_Read... [14:15:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:15:34]Read from MH i2c: E2 [14:15:34]MH_I2C_Read... [14:15:34]Read from MH i2c: E2 03 00 [14:15:34]MH_I2C_Read... [14:15:34]Read from MH i2c: E2 03 00 8A 44 00 90 00 42 [14:15:34]RAPDU: 90 00 [14:15:34]wFMCommunicate OK [14:15:34]wFMCommunicate request_size=255 [14:15:34]MH_SAM_APDU [14:15: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 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 8A 93 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 13 71 00 00 35 04 06 00 9F [14:15:34]Write to MH i2c: E2 02 01 8B 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 8A 93 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 13 71 00 00 35 04 06 00 9F 00 00 1F [14:15:34]Write i2c OK [14:15:34]MH_I2C_Read... [14:15:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:35]Read from MH i2c: E2 [14:15:35]MH_I2C_Read... [14:15:35]Read from MH i2c: E2 03 00 [14:15:35]MH_I2C_Read... [14:15:35]Read from MH i2c: E2 03 00 8B 44 00 90 00 43 [14:15:35]RAPDU: 90 00 [14:15:35]wFMCommunicate OK [14:15:35]wFMCommunicate request_size=10 [14:15:35]MH_SAM_APDU [14:15:35]CAPDU: 80 0D 02 02 05 7C C9 3F 55 A8 [14:15:35]Write to MH i2c: E2 0D 00 8C 44 80 0D 02 02 05 00 7C C9 3F 55 A8 00 00 D5 [14:15:35]Write i2c OK [14:15:35]MH_I2C_Read... [14:15:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:35]Read from MH i2c: E2 [14:15:35]MH_I2C_Read... [14:15:35]Read from MH i2c: E2 03 00 [14:15:35]MH_I2C_Read... [14:15:35]Read from MH i2c: E2 03 00 8C 44 00 90 00 44 [14:15:35]RAPDU: 90 00 [14:15:35]wFMCommunicate OK [14:15:35]wFMCommunicate request_size=4 [14:15:35]MH_SAM_APDU [14:15:35]CAPDU: 80 0D 03 02 [14:15:35]Write to MH i2c: E2 08 00 8D 44 80 0D 03 02 00 00 00 00 4C [14:15:35]Write i2c OK [14:15:35]MH_I2C_Read... [14:15:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:15:35]Read from MH i2c: E2 [14:15:35]MH_I2C_Read... [14:15:35]Read from MH i2c: E2 0B 00 [14:15:35]MH_I2C_Read... [14:15:35]Read from MH i2c: E2 0B 00 8D 44 00 1A 03 51 9D 7B 72 65 53 90 00 FD [14:15:35]RAPDU: 1A 03 51 9D 7B 72 65 53 90 00 [14:15:35]wFMCommunicate OK [14:15:35]SAM_PROTO_SignData done [14:15:35]FM_MakeSignedData done [14:15:35]CreateOFDProtocolMessage [14:15:35]wFMCommunicate request_size=4 [14:15:35]MH_SAM_APDU [14:15:35]CAPDU: 80 11 00 00 [14:15:35]Write to MH i2c: E2 08 00 8E 44 80 11 00 00 00 00 00 00 4C [14:15:35]Write i2c OK [14:15:35]MH_I2C_Read... [14:15:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:35]Read from MH i2c: E2 [14:15:35]MH_I2C_Read... [14:15:35]Read from MH i2c: E2 17 00 [14:15:35]MH_I2C_Read... [14:15:35]Read from MH i2c: E2 17 00 8E 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9B [14:15:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:15:35]wFMCommunicate OK [14:15:35]CreateOFDProtocolMessage done [14:15:35]OFDSenderStorePacket 28947 [14:15:35]StoreOFDPacket docnum=28947 [14:15:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 56 2D 07 01 DF 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 8A 93 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 13 71 00 00 35 04 06 00 9F 7C C9 3F 55 A8 1A 03 51 9D 7B 72 65 53 [14:15:35]CheckFolder [14:15:35]dirname=/storage/ofd_packets [14:15:35]CheckFolder done [14:15:35]ProducePacketName [14:15:35]name=ofd_packets/00028947 [14:15:35]NVStorageSaveData ofd_packets/00028947 [14:15:35]File name is /storage/ofd_packets/00028947 [14:15:35]Write 301 bytes [14:15:35]NVStorageSaveData done [14:15:35]OFDSenderStorePacket done [14:15:35]KKMCreateOFDPacket done [14:15:35]NVStorageSaveData kkm_last_timestamp [14:15:35]File name is /storage/kkm_last_timestamp [14:15:35]Write 4 bytes [14:15:35]NVStorageSaveData done [14:15:35]ExternCall_PrintAddStr [14:15:35]wPrintStart [14:15:35]Write to MH i2c: 01 00 00 8F 44 D3 [14:15:35]Write i2c OK [14:15:35]MH_I2C_Read... [14:15:35]Read from MH i2c: 01 [14:15:35]MH_I2C_Read... [14:15:35]Read from MH i2c: 01 07 00 [14:15:35]MH_I2C_Read... [14:15:35]Read from MH i2c: 01 07 00 8F 44 00 00 00 00 00 FF 0F E8 [14:15:35]RasterBufferAndPrint [14:15:35]line Счет N : (1)347306 [14:15:35]line ИНН: 02508201610067 [14:15:35]line Контрольно-Кассовый Чек [14:15:35]line ПРОДАЖА [14:15:35]line ТРК (МРК, ГНК) : 13 [14:15:35]line Товар: 2710124130 [14:15:35]line Аи-92-К-5 [14:15:35]line 10.110 * 64.30 [14:15:35]line = 650.07 [14:15:35]line НДС 12% НСП 1% [14:15:35]line > о реализуемом товаре [14:15:35]line ОКРУГЛЕНИЕ: -0.07 [14:15:35]line ИТОГО: 650.00 [14:15:35]line Внесено: 650.00 [14:15:35]line СДАЧА: 0.00 [14:15:35]line НСП 1% : 5.75 [14:15:35]line НДС 12% : 69.03 [14:15:35]line Наличными: 650.00 [14:15:35]line Безнал.: 0.00 [14:15:35]line Место: АЗС № 108 "Партнер Нефть" [14:15:35]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:15:35]line СНО: Общий режим [14:15:35]line Чек 154 13.04.2024 14:15 [14:15:35]line Смена: 115 ФФД: 1.0 [14:15:35]line ЗНМ: 0300000027 [14:15:35]line РНМ: 0000138879044617 [14:15:35]line Версия ККМ: 001 [14:15:35]line ФМ: 0000000000963154 [14:15:35]line ФД: 28947 [14:15:35]line ФПД: 175358301132200 [14:15:35]line 1/tax-web-control/client/api/v1/ticket?date=20240413T141538&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28947&fm=175358301132200&tin=02508201610067®Number=0000138879044617&sum=65000 [14:15:35]OFD Sender: Processing packet 28947 [packets to send 8, broken 7] [14:15:35]ProducePacketName [14:15:35]name=ofd_packets/00028947 [14:15:35]OFD Sender: To server: pG, [14:15:35]CommunicateWithHost lk.salyk.kg:30040 [14:15:35]ConnectInit lk.salyk.kg [14:15:35]written 0, free lines is 4095 [14:15:35]Connected sock=10 [14:15: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 31 35 34 0F 01 00 00 56 2D 07 01 DF 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 8A 93 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 13 71 00 00 35 04 06 00 9F 7C C9 3F 55 A8 1A 03 51 9D 7B 72 65 53 [14:15:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 93 47 47 00 4D 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 13 71 00 00 F4 03 04 00 31 3E 1A 66 B6 04 01 00 00 86 95 56 7B C7 FD 6A 07 [14:15:35]CommunicateWithHost err = 0 [14:15:35]CheckOFDResponse [14:15:35]1017 (14) - 77093643461234 [14:15:35]1041 (16) - 0000000000963154 [14:15:35]1040 (4) - 28947 [14:15:35]1012 (4) - 13.04.2024 08:11 [14:15:35]1206 (1) - 0 [14:15:35]OFD Sender: Remove packet 28947 [14:15:35]ProducePacketName [14:15:35]name=ofd_packets/00028947 [14:15:35]NVStorageDeleteData [14:15:36]Write to MH i2c: 01 00 00 B9 44 FD [14:15:36]Write i2c OK [14:15:36]MH_I2C_Read... [14:15:36]Read from MH i2c: 01 [14:15:36]MH_I2C_Read... [14:15:36]Read from MH i2c: 01 07 00 [14:15:36]MH_I2C_Read... [14:15:36]Read from MH i2c: 01 07 00 B9 44 00 00 00 00 00 C7 0C D7 [14:15:36]RasterBufferAndPrint [14:15:36]line [14:15:36]line [14:15:36]line [14:15:36]line [14:15:36]line [14:15:36]written 0, free lines is 3277 [14:15:36]MH_Cut [14:15:36]Write to MH i2c: D1 01 00 C0 44 01 D6 [14:15:36]Write i2c OK [14:15:36]MH_I2C_Read... [14:15:36]Read from MH i2c: D1 [14:15:36]MH_I2C_Read... [14:15:36]Read from MH i2c: D1 01 00 [14:15:36]MH_I2C_Read... [14:15:36]Read from MH i2c: D1 01 00 C0 44 00 D5 [14:15:36]Write to MH i2c: 01 00 00 C1 44 05 [14:15:36]Write i2c OK [14:15:36]MH_I2C_Read... [14:15:36]OFD Sender: No OFD packet to send [14:15:36]*** Cut start [14:15:36]*** Partial cut [14:15:36]*** CUTSNS_PIN = 1 [14:15:37]*** CUTSNS_PIN = 0 [14:15:37]*** Brake cut motor [14:15:37]Read from MH i2c: 01 [14:15:37]MH_I2C_Read... [14:15:37]*** Stop cut motor [14:15:37]*** Cut end [14:15:37]Read from MH i2c: 01 07 00 [14:15:37]MH_I2C_Read... [14:15:37]Read from MH i2c: 01 07 00 C1 44 00 00 00 00 00 FF 0F 1A [14:15:37]process_action close_receipt done [14:15:37]requested_data is exist [14:15:37]produce_requested_data [14:15:37]requested_item fm.sn is exist - process it [14:15:37]wFMCommunicate request_size=4 [14:15:37]MH_SAM_APDU [14:15:37]CAPDU: 80 11 00 00 [14:15:37]Write to MH i2c: E2 08 00 C2 44 80 11 00 00 00 00 00 00 80 [14:15:37]Write i2c OK [14:15:37]MH_I2C_Read... [14:15:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:37]Read from MH i2c: E2 [14:15:37]MH_I2C_Read... [14:15:37]Read from MH i2c: E2 17 00 [14:15:37]MH_I2C_Read... [14:15:37]Read from MH i2c: E2 17 00 C2 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CF [14:15:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:15:37]wFMCommunicate OK [14:15:37]requested_item fd.num is exist - process it [14:15:37]SAM_PROTO_GetFieldsCounters [14:15:37]wFMCommunicate request_size=4 [14:15:37]MH_SAM_APDU [14:15:37]CAPDU: 80 13 00 00 [14:15:37]Write to MH i2c: E2 08 00 C3 44 80 13 00 00 00 00 00 00 83 [14:15:37]Write i2c OK [14:15:37]MH_I2C_Read... [14:15:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:15:37]Read from MH i2c: E2 [14:15:37]MH_I2C_Read... [14:15:37]Read from MH i2c: E2 62 00 [14:15:37]MH_I2C_Read... [14:15:37]Read from MH i2c: E2 62 00 C3 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 13 71 00 00 0E 04 04 00 73 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 [14:15: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 13 71 00 00 0E 04 04 00 73 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 [14:15:37]wFMCommunicate OK [14:15:37]SAM_PROTO_GetFieldsCounters done [14:15:37]requested_item shift.num is exist - process it [14:15:37]requested_item shift.opened is exist - process it [14:15:37]req_shift_opened [14:15:37]FM_GetShiftState [14:15:37]SAM_PROTO_GetShiftState [14:15:37]wFMCommunicate request_size=4 [14:15:37]MH_SAM_APDU [14:15:37]CAPDU: 80 13 01 00 [14:15:37]Write to MH i2c: E2 08 00 C4 44 80 13 01 00 00 00 00 00 85 [14:15:37]Write i2c OK [14:15:37]MH_I2C_Read... [14:15:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:37]Read from MH i2c: E2 [14:15:37]MH_I2C_Read... [14:15:37]Read from MH i2c: E2 0E 00 [14:15:37]MH_I2C_Read... [14:15:37]Read from MH i2c: E2 0E 00 C4 44 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 9E [14:15:37]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [14:15:37]wFMCommunicate OK [14:15:37]SAM_PROTO_GetShiftState done [14:15:37]FM_GetShiftState done [14:15:37]req_shift_opened done [14:15:37]requested_item shift.open_date is exist - process it [14:15:37]req_shift_open_date [14:15:37]req_shift_open_date done [14:15:37]produce_requested_data done [14:15:37]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28947,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [14:15:37]process_action_free close_receipt [14:15:37]json_value_free [14:15:37]json_value_free done [14:15:37]process_json_proto returns [14:15:37]Send response to host [14:15:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28947,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [14:15:37]free response buf [14:15:37]execute_script done [14:15:37]execute_script returns [14:15:37]free content buf [14:15:37]Sock 9.Close socket [14:15:37]Sock 9.Thread stoped [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:17]accept exits with 7 [14:17:17]New connection [14:17:17]New thread 3066785124 created [14:17:17]Thread 3066928484 joined [14:17:17]Waiting for new connection... [14:17:17] Sock 7.Parse request [14:17:17]Sock 7.Check first char [14:17:17]Sock 7.First char is OK [14:17:17]request: POST /json_proto HTTP/1.0 [14:17:17]Method: POST [14:17:17]URL: /json_proto [14:17:17]Method is POST - this is cgi request [14:17:17]url: /json_proto [14:17:17]query_string will be loaded in cgi processing [14:17:17]execute_cgi json_proto POST (null) [14:17:17]execute_cgi path=json_proto method=POST [14:17:17]POST find Content-Length [14:17:17]Host: 172.17.33.3:8080 [14:17:17]Content-Length: 671 [14:17:17]Content-Type: application/json [14:17:17] [14:17:17]POST finish read [14:17:17]Found Content-Length = 671 [14:17:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 12.260, "sum" : 800.58, "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" ] } } [14:17:17]execute_script... [14:17: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)347307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 12.260, "sum" : 800.58, "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" ] } } [14:17:17]POST & json_proto [14:17:17]process_json_proto [14:17:17]json parsed OK: [14:17:17]protocol is kg_v1.0 [14:17:17]action value=close_receipt [14:17:17]process_action close_receipt [14:17:17]cmd_close_receipt [14:17:17]MH_GetDate [14:17:17]Write to MH i2c: F0 00 00 C5 44 F8 [14:17:17]Write i2c OK [14:17:17]MH_I2C_Read... [14:17:17]Read from MH i2c: F0 [14:17:17]MH_I2C_Read... [14:17:17]Read from MH i2c: F0 09 00 [14:17:17]MH_I2C_Read... [14:17:17]Read from MH i2c: F0 09 00 C5 44 00 F2 93 1A 66 23 5B 8F 65 78 [14:17:17]GetLastDocTimeStamp 1713017738 [14:17:17]current date 1713017842 [14:17:17]FM_GetShiftState [14:17:17]SAM_PROTO_GetShiftState [14:17:17]wFMCommunicate request_size=4 [14:17:17]MH_SAM_APDU [14:17:17]CAPDU: 80 13 01 00 [14:17:17]Write to MH i2c: E2 08 00 C6 44 80 13 01 00 00 00 00 00 87 [14:17:17]Write i2c OK [14:17:17]MH_I2C_Read... [14:17:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:17]Read from MH i2c: E2 [14:17:17]MH_I2C_Read... [14:17:17]Read from MH i2c: E2 0E 00 [14:17:17]MH_I2C_Read... [14:17:17]Read from MH i2c: E2 0E 00 C6 44 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A0 [14:17:17]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [14:17:17]wFMCommunicate OK [14:17:17]SAM_PROTO_GetShiftState done [14:17:17]FM_GetShiftState done [14:17:17]opened in 1712967615 [14:17:17]opened+sec_in_day 1713054015 [14:17:17]quantity*price = 80057 [14:17:17]sum+1 = 80059 [14:17:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 155 13.04.2024 14:17 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28948 ФПД: 133452621201064 1/tax-web-control/client/api/v1/ticket?date=20240413T141722&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28948&fm=133452621201064&tin=02508201610067®Number=0000138879044617&sum=80000 [14:17:18]StoreToDocumentArchive [14:17:18]shift 115 fd 28948 [14:17:18]save to /storage/0115/doc_00028948 [14:17:18]save last doc name /storage/0115/doc_00028948 to /storage/kkm_last_doc_name [14:17:18]save OK [14:17:18]Clear old archive folders... [14:17:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:17:18]tlvbuf is 0121FC60 [14:17:18]SAM_PROTO_ClearQueue [14:17:18]wFMCommunicate request_size=4 [14:17:18]MH_SAM_APDU [14:17:18]CAPDU: 80 09 00 00 [14:17:18]Write to MH i2c: E2 08 00 D3 44 80 09 00 00 00 00 00 00 89 [14:17:18]Write i2c OK [14:17:18]MH_I2C_Read... [14:17:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:18]Read from MH i2c: E2 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: E2 03 00 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: E2 03 00 D3 44 00 90 00 8B [14:17:18]RAPDU: 90 00 [14:17:18]wFMCommunicate OK [14:17:18]SAM_PROTO_ClearQueue done [14:17:18]KKMCreateOFDPacket [14:17:18]OFDProtocolAddRootSTLVToBuf [14:17:18]FM_MakeSignedData [14:17:18]FM_MakeSignedData [14:17:18]SAM_PROTO_SignData [14:17:18]wFMCommunicate request_size=4 [14:17:18]MH_SAM_APDU [14:17:18]CAPDU: 80 0D 01 02 [14:17:18]Write to MH i2c: E2 08 00 D4 44 80 0D 01 02 00 00 00 00 91 [14:17:18]Write i2c OK [14:17:18]MH_I2C_Read... [14:17:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:18]Read from MH i2c: E2 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: E2 03 00 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: E2 03 00 D4 44 00 90 00 8C [14:17:18]RAPDU: 90 00 [14:17:18]wFMCommunicate OK [14:17:18]wFMCommunicate request_size=255 [14:17:18]MH_SAM_APDU [14:17:18]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BA 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 9B 00 00 00 F4 03 04 00 F2 93 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 14 71 00 00 35 04 06 00 [14:17:18]Write to MH i2c: E2 02 01 D5 44 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BA 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 9B 00 00 00 F4 03 04 00 F2 93 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 14 71 00 00 35 04 06 00 00 00 2A [14:17:18]Write i2c OK [14:17:18]MH_I2C_Read... [14:17:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:18]Read from MH i2c: E2 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: E2 03 00 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: E2 03 00 D5 44 00 90 00 8D [14:17:18]RAPDU: 90 00 [14:17:18]wFMCommunicate OK [14:17:18]wFMCommunicate request_size=11 [14:17:18]MH_SAM_APDU [14:17:18]CAPDU: 80 0D 02 02 06 79 5F DC 14 BE A8 [14:17:18]Write to MH i2c: E2 0E 00 D6 44 80 0D 02 02 06 00 79 5F DC 14 BE A8 00 00 CE [14:17:18]Write i2c OK [14:17:18]MH_I2C_Read... [14:17:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:18]Read from MH i2c: E2 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: E2 03 00 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: E2 03 00 D6 44 00 90 00 8E [14:17:18]RAPDU: 90 00 [14:17:18]wFMCommunicate OK [14:17:18]wFMCommunicate request_size=4 [14:17:18]MH_SAM_APDU [14:17:18]CAPDU: 80 0D 03 02 [14:17:18]Write to MH i2c: E2 08 00 D7 44 80 0D 03 02 00 00 00 00 96 [14:17:18]Write i2c OK [14:17:18]MH_I2C_Read... [14:17:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:19]Read from MH i2c: E2 [14:17:19]MH_I2C_Read... [14:17:19]Read from MH i2c: E2 0B 00 [14:17:19]MH_I2C_Read... [14:17:19]Read from MH i2c: E2 0B 00 D7 44 00 37 AA C0 58 72 3F 2D D7 90 00 45 [14:17:19]RAPDU: 37 AA C0 58 72 3F 2D D7 90 00 [14:17:19]wFMCommunicate OK [14:17:19]SAM_PROTO_SignData done [14:17:19]FM_MakeSignedData done [14:17:19]CreateOFDProtocolMessage [14:17:19]wFMCommunicate request_size=4 [14:17:19]MH_SAM_APDU [14:17:19]CAPDU: 80 11 00 00 [14:17:19]Write to MH i2c: E2 08 00 D8 44 80 11 00 00 00 00 00 00 96 [14:17:19]Write i2c OK [14:17:19]MH_I2C_Read... [14:17:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:19]Read from MH i2c: E2 [14:17:19]MH_I2C_Read... [14:17:19]Read from MH i2c: E2 17 00 [14:17:19]MH_I2C_Read... [14:17:19]Read from MH i2c: E2 17 00 D8 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E5 [14:17:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:17:19]wFMCommunicate OK [14:17:19]CreateOFDProtocolMessage done [14:17:19]OFDSenderStorePacket 28948 [14:17:19]StoreOFDPacket docnum=28948 [14:17:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 1C DE 08 01 3B E3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BA 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 9B 00 00 00 F4 03 04 00 F2 93 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 14 71 00 00 35 04 06 00 79 5F DC 14 BE A8 37 AA C0 58 72 3F 2D D7 [14:17:19]CheckFolder [14:17:19]dirname=/storage/ofd_packets [14:17:19]CheckFolder done [14:17:19]ProducePacketName [14:17:19]name=ofd_packets/00028948 [14:17:19]NVStorageSaveData ofd_packets/00028948 [14:17:19]File name is /storage/ofd_packets/00028948 [14:17:19]Write 302 bytes [14:17:19]NVStorageSaveData done [14:17:19]OFDSenderStorePacket done [14:17:19]KKMCreateOFDPacket done [14:17:19]NVStorageSaveData kkm_last_timestamp [14:17:19]File name is /storage/kkm_last_timestamp [14:17:19]Write 4 bytes [14:17:19]NVStorageSaveData done [14:17:19]ExternCall_PrintAddStr [14:17:19]wPrintStart [14:17:19]Write to MH i2c: 01 00 00 D9 44 1D [14:17:19]Write i2c OK [14:17:19]MH_I2C_Read... [14:17:19]Read from MH i2c: 01 [14:17:19]MH_I2C_Read... [14:17:19]Read from MH i2c: 01 07 00 [14:17:19]MH_I2C_Read... [14:17:19]Read from MH i2c: 01 07 00 D9 44 00 00 00 00 00 FF 0F 32 [14:17:19]RasterBufferAndPrint [14:17:19]line Счет N : (1)347307 [14:17:19]line ИНН: 02508201610067 [14:17:19]line Контрольно-Кассовый Чек [14:17:19]line ПРОДАЖА [14:17:19]line ТРК (МРК, ГНК) : 31 [14:17:19]line Товар: 2710124130 [14:17:19]line SUPER-92-К-5 [14:17:19]line 12.260 * 65.30 [14:17:19]line = 800.58 [14:17:19]line НДС 12% НСП 1% [14:17:19]line > о реализуемом товаре [14:17:19]line ОКРУГЛЕНИЕ: -0.58 [14:17:19]line ИТОГО: 800.00 [14:17:19]line Внесено: 800.00 [14:17:19]line СДАЧА: 0.00 [14:17:19]line НСП 1% : 7.08 [14:17:19]line НДС 12% : 85.02 [14:17:19]line Наличными: 800.00 [14:17:19]line Безнал.: 0.00 [14:17:19]line Место: АЗС № 108 "Партнер Нефть" [14:17:19]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:17:19]line СНО: Общий режим [14:17:19]line Чек 155 13.04.2024 14:17 [14:17:19]line Смена: 115 ФФД: 1.0 [14:17:19]line ЗНМ: 0300000027 [14:17:19]line РНМ: 0000138879044617 [14:17:19]line Версия ККМ: 001 [14:17:19]line ФМ: 0000000000963154 [14:17:19]line ФД: 28948 [14:17:19]line ФПД: 133452621201064 [14:17:19]line 1/tax-web-control/client/api/v1/ticket?date=20240413T141722&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28948&fm=133452621201064&tin=02508201610067®Number=0000138879044617&sum=80000 [14:17:19]OFD Sender: Processing packet 28948 [packets to send 8, broken 7] [14:17:19]ProducePacketName [14:17:19]name=ofd_packets/00028948 [14:17:19]OFD Sender: To server: pG, [14:17:19]CommunicateWithHost lk.salyk.kg:30040 [14:17:19]ConnectInit lk.salyk.kg [14:17:19]written 0, free lines is 4095 [14:17:19]Connected sock=10 [14:17: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 31 35 34 10 01 00 00 1C DE 08 01 3B E3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BA 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 9B 00 00 00 F4 03 04 00 F2 93 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 14 71 00 00 35 04 06 00 79 5F DC 14 BE A8 37 AA C0 58 72 3F 2D D7 [14:17:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F0 56 47 00 23 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 31 35 34 10 04 04 00 14 71 00 00 F4 03 04 00 99 3E 1A 66 B6 04 01 00 00 44 EE 1F 67 3B 78 DD A1 [14:17:19]CommunicateWithHost err = 0 [14:17:19]CheckOFDResponse [14:17:19]1017 (14) - 77093643461234 [14:17:19]1041 (16) - 0000000000963154 [14:17:19]1040 (4) - 28948 [14:17:19]1012 (4) - 13.04.2024 08:13 [14:17:19]1206 (1) - 0 [14:17:19]OFD Sender: Remove packet 28948 [14:17:19]ProducePacketName [14:17:19]name=ofd_packets/00028948 [14:17:19]NVStorageDeleteData [14:17:19]Write to MH i2c: 01 00 00 03 45 48 [14:17:19]Write i2c OK [14:17:19]MH_I2C_Read... [14:17:19]Read from MH i2c: 01 [14:17:19]MH_I2C_Read... [14:17:19]Read from MH i2c: 01 07 00 [14:17:19]MH_I2C_Read... [14:17:19]Read from MH i2c: 01 07 00 03 45 00 00 00 00 00 D7 0C 32 [14:17:19]RasterBufferAndPrint [14:17:19]line [14:17:19]line [14:17:19]line [14:17:19]line [14:17:19]line [14:17:19]written 0, free lines is 3294 [14:17:19]MH_Cut [14:17:19]Write to MH i2c: D1 01 00 0A 45 01 21 [14:17:19]Write i2c OK [14:17:19]MH_I2C_Read... [14:17:19]Read from MH i2c: D1 [14:17:19]MH_I2C_Read... [14:17:19]Read from MH i2c: D1 01 00 [14:17:19]MH_I2C_Read... [14:17:19]Read from MH i2c: D1 01 00 0A 45 00 20 [14:17:19]Write to MH i2c: 01 00 00 0B 45 50 [14:17:19]Write i2c OK [14:17:19]MH_I2C_Read... [14:17:20]OFD Sender: No OFD packet to send [14:17:20]*** Cut start [14:17:20]*** Partial cut [14:17:20]*** CUTSNS_PIN = 1 [14:17:20]*** CUTSNS_PIN = 0 [14:17:20]*** Brake cut motor [14:17:21]Read from MH i2c: 01 [14:17:21]MH_I2C_Read... [14:17:21]*** Stop cut motor [14:17:21]*** Cut end [14:17:21]Read from MH i2c: 01 07 00 [14:17:21]MH_I2C_Read... [14:17:21]Read from MH i2c: 01 07 00 0B 45 00 00 00 00 00 FF 0F 65 [14:17:21]process_action close_receipt done [14:17:21]requested_data is exist [14:17:21]produce_requested_data [14:17:21]requested_item fm.sn is exist - process it [14:17:21]wFMCommunicate request_size=4 [14:17:21]MH_SAM_APDU [14:17:21]CAPDU: 80 11 00 00 [14:17:21]Write to MH i2c: E2 08 00 0C 45 80 11 00 00 00 00 00 00 CB [14:17:21]Write i2c OK [14:17:21]MH_I2C_Read... [14:17:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:21]Read from MH i2c: E2 [14:17:21]MH_I2C_Read... [14:17:21]Read from MH i2c: E2 17 00 [14:17:21]MH_I2C_Read... [14:17:21]Read from MH i2c: E2 17 00 0C 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1A [14:17:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:17:21]wFMCommunicate OK [14:17:21]requested_item fd.num is exist - process it [14:17:21]SAM_PROTO_GetFieldsCounters [14:17:21]wFMCommunicate request_size=4 [14:17:21]MH_SAM_APDU [14:17:21]CAPDU: 80 13 00 00 [14:17:21]Write to MH i2c: E2 08 00 0D 45 80 13 00 00 00 00 00 00 CE [14:17:21]Write i2c OK [14:17:21]MH_I2C_Read... [14:17:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:21]Read from MH i2c: E2 [14:17:21]MH_I2C_Read... [14:17:21]Read from MH i2c: E2 62 00 [14:17:21]MH_I2C_Read... [14:17:21]Read from MH i2c: E2 62 00 0D 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 14 71 00 00 0E 04 04 00 73 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 [14:17: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 14 71 00 00 0E 04 04 00 73 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 [14:17:21]wFMCommunicate OK [14:17:21]SAM_PROTO_GetFieldsCounters done [14:17:21]requested_item shift.num is exist - process it [14:17:21]requested_item shift.opened is exist - process it [14:17:21]req_shift_opened [14:17:21]FM_GetShiftState [14:17:21]SAM_PROTO_GetShiftState [14:17:21]wFMCommunicate request_size=4 [14:17:21]MH_SAM_APDU [14:17:21]CAPDU: 80 13 01 00 [14:17:21]Write to MH i2c: E2 08 00 0E 45 80 13 01 00 00 00 00 00 D0 [14:17:21]Write i2c OK [14:17:21]MH_I2C_Read... [14:17:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:21]Read from MH i2c: E2 [14:17:21]MH_I2C_Read... [14:17:21]Read from MH i2c: E2 0E 00 [14:17:21]MH_I2C_Read... [14:17:21]Read from MH i2c: E2 0E 00 0E 45 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 E9 [14:17:21]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [14:17:21]wFMCommunicate OK [14:17:21]SAM_PROTO_GetShiftState done [14:17:21]FM_GetShiftState done [14:17:21]req_shift_opened done [14:17:21]requested_item shift.open_date is exist - process it [14:17:21]req_shift_open_date [14:17:21]req_shift_open_date done [14:17:21]produce_requested_data done [14:17:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28948,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [14:17:21]process_action_free close_receipt [14:17:21]json_value_free [14:17:21]json_value_free done [14:17:21]process_json_proto returns [14:17:21]Send response to host [14:17:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28948,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [14:17:21]free response buf [14:17:21]execute_script done [14:17:21]execute_script returns [14:17:21]free content buf [14:17:21]Sock 7.Close socket [14:17:21]Sock 7.Thread stoped [14:17:25]OFD Sender: No OFD packet to send [14:17:30]OFD Sender: No OFD packet to send [14:17:35]OFD Sender: No OFD packet to send [14:17:40]OFD Sender: No OFD packet to send [14:17:45]OFD Sender: No OFD packet to send [14:17:50]OFD Sender: No OFD packet to send [14:17:55]OFD Sender: No OFD packet to send [14:18:00]OFD Sender: No OFD packet to send [14:18:05]OFD Sender: No OFD packet to send [14:18:10]OFD Sender: No OFD packet to send [14:18:15]OFD Sender: No OFD packet to send [14:18:20]OFD Sender: No OFD packet to send [14:18:25]OFD Sender: No OFD packet to send [14:18:30]OFD Sender: No OFD packet to send [14:18:35]OFD Sender: No OFD packet to send [14:18:40]OFD Sender: No OFD packet to send [14:18:45]OFD Sender: No OFD packet to send [14:18:50]OFD Sender: No OFD packet to send [14:18:55]OFD Sender: No OFD packet to send [14:19:00]OFD Sender: No OFD packet to send [14:19:05]OFD Sender: No OFD packet to send [14:19:10]OFD Sender: No OFD packet to send [14:19:15]OFD Sender: No OFD packet to send [14:19:20]OFD Sender: No OFD packet to send [14:19:25]OFD Sender: No OFD packet to send [14:19:30]OFD Sender: No OFD packet to send [14:19:35]OFD Sender: No OFD packet to send [14:19:40]OFD Sender: No OFD packet to send [14:19:45]OFD Sender: No OFD packet to send [14:19:50]OFD Sender: No OFD packet to send [14:19:55]OFD Sender: No OFD packet to send [14:20:00]OFD Sender: No OFD packet to send [14:20:05]OFD Sender: No OFD packet to send [14:20:10]OFD Sender: No OFD packet to send [14:20:15]OFD Sender: No OFD packet to send [14:20:20]OFD Sender: No OFD packet to send [14:20:25]OFD Sender: No OFD packet to send [14:20:30]OFD Sender: No OFD packet to send [14:20:31]accept exits with 9 [14:20:31]New connection [14:20:31]New thread 3066928484 created [14:20:31]Thread 3066785124 joined [14:20:31]Waiting for new connection... [14:20:31] Sock 9.Parse request [14:20:31]Sock 9.Check first char [14:20:31]Sock 9.First char is OK [14:20:31]request: POST /json_proto HTTP/1.0 [14:20:31]Method: POST [14:20:31]URL: /json_proto [14:20:31]Method is POST - this is cgi request [14:20:31]url: /json_proto [14:20:31]query_string will be loaded in cgi processing [14:20:31]execute_cgi json_proto POST (null) [14:20:31]execute_cgi path=json_proto method=POST [14:20:31]POST find Content-Length [14:20:31]Host: 172.17.33.3:8080 [14:20:31]Content-Length: 840 [14:20:31]Content-Type: application/json [14:20:31] [14:20:31]POST finish read [14:20:31]Found Content-Length = 840 [14:20:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347308", "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" : 64.30, "quantity" : 6.230, "sum" : 400.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 400.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:31]execute_script... [14:20: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)347308", "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" : 64.30, "quantity" : 6.230, "sum" : 400.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 400.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:31]POST & json_proto [14:20:31]process_json_proto [14:20:31]json parsed OK: [14:20:31]protocol is kg_v1.0 [14:20:31]action value=close_receipt [14:20:31]process_action close_receipt [14:20:31]cmd_close_receipt [14:20:31]MH_GetDate [14:20:31]Write to MH i2c: F0 00 00 0F 45 43 [14:20:31]Write i2c OK [14:20:31]MH_I2C_Read... [14:20:31]Read from MH i2c: F0 [14:20:31]MH_I2C_Read... [14:20:31]Read from MH i2c: F0 09 00 [14:20:31]MH_I2C_Read... [14:20:31]Read from MH i2c: F0 09 00 0F 45 00 B4 94 1A 66 23 5B 8F 65 86 [14:20:31]GetLastDocTimeStamp 1713017842 [14:20:31]current date 1713018036 [14:20:31]FM_GetShiftState [14:20:31]SAM_PROTO_GetShiftState [14:20:31]wFMCommunicate request_size=4 [14:20:31]MH_SAM_APDU [14:20:31]CAPDU: 80 13 01 00 [14:20:31]Write to MH i2c: E2 08 00 10 45 80 13 01 00 00 00 00 00 D2 [14:20:31]Write i2c OK [14:20:31]MH_I2C_Read... [14:20:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:31]Read from MH i2c: E2 [14:20:31]MH_I2C_Read... [14:20:31]Read from MH i2c: E2 0E 00 [14:20:31]MH_I2C_Read... [14:20:31]Read from MH i2c: E2 0E 00 10 45 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 EB [14:20:31]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [14:20:31]wFMCommunicate OK [14:20:31]SAM_PROTO_GetShiftState done [14:20:31]FM_GetShiftState done [14:20:31]opened in 1712967615 [14:20:31]opened+sec_in_day 1713054015 [14:20:31]quantity*price = 40058 [14:20:31]sum+1 = 40060 [14:20:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.59 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 0.00 Безнал.: 400.59 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 156 13.04.2024 14:20 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28949 ФПД: 105112819077929 1/tax-web-control/client/api/v1/ticket?date=20240413T142036&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28949&fm=105112819077929&tin=02508201610067®Number=0000138879044617&sum=40059 [14:20:32]StoreToDocumentArchive [14:20:32]shift 115 fd 28949 [14:20:32]save to /storage/0115/doc_00028949 [14:20:32]save last doc name /storage/0115/doc_00028949 to /storage/kkm_last_doc_name [14:20:32]save OK [14:20:32]Clear old archive folders... [14:20:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:20:32]tlvbuf is 011ECA10 [14:20:32]SAM_PROTO_ClearQueue [14:20:32]wFMCommunicate request_size=4 [14:20:32]MH_SAM_APDU [14:20:32]CAPDU: 80 09 00 00 [14:20:32]Write to MH i2c: E2 08 00 1D 45 80 09 00 00 00 00 00 00 D4 [14:20:32]Write i2c OK [14:20:32]MH_I2C_Read... [14:20:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:32]Read from MH i2c: E2 [14:20:32]MH_I2C_Read... [14:20:32]Read from MH i2c: E2 03 00 [14:20:32]MH_I2C_Read... [14:20:32]Read from MH i2c: E2 03 00 1D 45 00 90 00 D6 [14:20:32]RAPDU: 90 00 [14:20:32]wFMCommunicate OK [14:20:32]SAM_PROTO_ClearQueue done [14:20:32]KKMCreateOFDPacket [14:20:32]OFDProtocolAddRootSTLVToBuf [14:20:32]FM_MakeSignedData [14:20:32]FM_MakeSignedData [14:20:32]SAM_PROTO_SignData [14:20:32]wFMCommunicate request_size=4 [14:20:32]MH_SAM_APDU [14:20:32]CAPDU: 80 0D 01 02 [14:20:32]Write to MH i2c: E2 08 00 1E 45 80 0D 01 02 00 00 00 00 DC [14:20:32]Write i2c OK [14:20:32]MH_I2C_Read... [14:20:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:32]Read from MH i2c: E2 [14:20:32]MH_I2C_Read... [14:20:32]Read from MH i2c: E2 03 00 [14:20:32]MH_I2C_Read... [14:20:32]Read from MH i2c: E2 03 00 1E 45 00 90 00 D7 [14:20:32]RAPDU: 90 00 [14:20:32]wFMCommunicate OK [14:20:32]wFMCommunicate request_size=255 [14:20:32]MH_SAM_APDU [14:20: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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 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 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 B4 94 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 15 71 00 00 35 04 06 00 5F [14:20:32]Write to MH i2c: E2 02 01 1F 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 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 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 B4 94 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 15 71 00 00 35 04 06 00 5F 00 00 BA [14:20:32]Write i2c OK [14:20:32]MH_I2C_Read... [14:20:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:32]Read from MH i2c: E2 [14:20:32]MH_I2C_Read... [14:20:32]Read from MH i2c: E2 03 00 [14:20:32]MH_I2C_Read... [14:20:32]Read from MH i2c: E2 03 00 1F 45 00 90 00 D8 [14:20:32]RAPDU: 90 00 [14:20:32]wFMCommunicate OK [14:20:32]wFMCommunicate request_size=10 [14:20:32]MH_SAM_APDU [14:20:32]CAPDU: 80 0D 02 02 05 99 7C 3E 13 29 [14:20:32]Write to MH i2c: E2 0D 00 20 45 80 0D 02 02 05 00 99 7C 3E 13 29 00 00 78 [14:20:32]Write i2c OK [14:20:32]MH_I2C_Read... [14:20:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:32]Read from MH i2c: E2 [14:20:32]MH_I2C_Read... [14:20:32]Read from MH i2c: E2 03 00 [14:20:32]MH_I2C_Read... [14:20:32]Read from MH i2c: E2 03 00 20 45 00 90 00 D9 [14:20:32]RAPDU: 90 00 [14:20:32]wFMCommunicate OK [14:20:32]wFMCommunicate request_size=4 [14:20:32]MH_SAM_APDU [14:20:32]CAPDU: 80 0D 03 02 [14:20:32]Write to MH i2c: E2 08 00 21 45 80 0D 03 02 00 00 00 00 E1 [14:20:32]Write i2c OK [14:20:32]MH_I2C_Read... [14:20:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:32]Read from MH i2c: E2 [14:20:32]MH_I2C_Read... [14:20:32]Read from MH i2c: E2 0B 00 [14:20:32]MH_I2C_Read... [14:20:32]Read from MH i2c: E2 0B 00 21 45 00 BA 10 71 49 DA 73 F8 4B 90 00 F6 [14:20:32]RAPDU: BA 10 71 49 DA 73 F8 4B 90 00 [14:20:32]wFMCommunicate OK [14:20:32]SAM_PROTO_SignData done [14:20:32]FM_MakeSignedData done [14:20:32]CreateOFDProtocolMessage [14:20:32]wFMCommunicate request_size=4 [14:20:32]MH_SAM_APDU [14:20:32]CAPDU: 80 11 00 00 [14:20:32]Write to MH i2c: E2 08 00 22 45 80 11 00 00 00 00 00 00 E1 [14:20:32]Write i2c OK [14:20:32]MH_I2C_Read... [14:20:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:32]Read from MH i2c: E2 [14:20:32]MH_I2C_Read... [14:20:32]Read from MH i2c: E2 17 00 [14:20:32]MH_I2C_Read... [14:20:32]Read from MH i2c: E2 17 00 22 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 30 [14:20:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:20:32]wFMCommunicate OK [14:20:32]CreateOFDProtocolMessage done [14:20:32]OFDSenderStorePacket 28949 [14:20:32]StoreOFDPacket docnum=28949 [14:20:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D5 B3 07 01 69 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 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 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 B4 94 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 15 71 00 00 35 04 06 00 5F 99 7C 3E 13 29 BA 10 71 49 DA 73 F8 4B [14:20:32]CheckFolder [14:20:32]dirname=/storage/ofd_packets [14:20:32]CheckFolder done [14:20:32]ProducePacketName [14:20:32]name=ofd_packets/00028949 [14:20:32]NVStorageSaveData ofd_packets/00028949 [14:20:32]File name is /storage/ofd_packets/00028949 [14:20:32]Write 301 bytes [14:20:32]NVStorageSaveData done [14:20:32]OFDSenderStorePacket done [14:20:32]KKMCreateOFDPacket done [14:20:32]NVStorageSaveData kkm_last_timestamp [14:20:32]File name is /storage/kkm_last_timestamp [14:20:32]Write 4 bytes [14:20:32]NVStorageSaveData done [14:20:32]ExternCall_PrintAddStr [14:20:32]wPrintStart [14:20:32]Write to MH i2c: 01 00 00 23 45 68 [14:20:32]Write i2c OK [14:20:32]MH_I2C_Read... [14:20:32]Read from MH i2c: 01 [14:20:32]MH_I2C_Read... [14:20:32]Read from MH i2c: 01 07 00 [14:20:32]MH_I2C_Read... [14:20:32]Read from MH i2c: 01 07 00 23 45 00 00 00 00 00 FF 0F 7D [14:20:32]RasterBufferAndPrint [14:20:32]line Счет N : (1)347308 [14:20:32]line ИНН: 02508201610067 [14:20:32]line Контрольно-Кассовый Чек [14:20:32]line ПРОДАЖА [14:20:32]line ТРК (МРК, ГНК) : 42 [14:20:32]line Товар: 2710124130 [14:20:32]line Аи-92-К-5 [14:20:32]line 6.230 * 64.30 [14:20:32]line = 400.59 [14:20:32]line НДС 12% НСП 1% [14:20:32]line > о реализуемом товаре [14:20:32]line ИТОГО: 400.59 [14:20:32]line НСП 1% : 3.54 [14:20:32]line НДС 12% : 42.54 [14:20:32]line Наличными: 0.00 [14:20:32]line Безнал.: 400.59 [14:20:32]line Место: АЗС № 108 "Партнер Нефть" [14:20:32]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:20:32]line СНО: Общий режим [14:20:32]line Чек 156 13.04.2024 14:20 [14:20:32]line Смена: 115 ФФД: 1.0 [14:20:32]line ЗНМ: 0300000027 [14:20:32]line РНМ: 0000138879044617 [14:20:32]line Версия ККМ: 001 [14:20:32]line Платежная система: АКБ Кыргызстан [14:20:32]line ФМ: 0000000000963154 [14:20:32]line ФД: 28949 [14:20:32]line ФПД: 105112819077929 [14:20:32]line 1/tax-web-control/client/api/v1/ticket?date=20240413T142036&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28949&fm=105112819077929&tin=02508201610067®Number=0000138879044617&sum=40059 [14:20:33]OFD Sender: Processing packet 28949 [packets to send 8, broken 7] [14:20:33]ProducePacketName [14:20:33]name=ofd_packets/00028949 [14:20:33]OFD Sender: To server: pG, [14:20:33]CommunicateWithHost lk.salyk.kg:30040 [14:20:33]ConnectInit lk.salyk.kg [14:20:33]written 0, free lines is 4095 [14:20:33]Connected sock=10 [14:20: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 31 35 34 0F 01 00 00 D5 B3 07 01 69 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 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 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 B4 94 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 15 71 00 00 35 04 06 00 5F 99 7C 3E 13 29 BA 10 71 49 DA 73 F8 4B [14:20:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 29 68 47 00 21 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 31 35 34 10 04 04 00 15 71 00 00 F4 03 04 00 5B 3F 1A 66 B6 04 01 00 00 6E 33 C5 E7 9E B1 4A 68 [14:20:33]CommunicateWithHost err = 0 [14:20:33]CheckOFDResponse [14:20:33]1017 (14) - 77093643461234 [14:20:33]1041 (16) - 0000000000963154 [14:20:33]1040 (4) - 28949 [14:20:33]1012 (4) - 13.04.2024 08:16 [14:20:33]1206 (1) - 0 [14:20:33]OFD Sender: Remove packet 28949 [14:20:33]ProducePacketName [14:20:33]name=ofd_packets/00028949 [14:20:33]NVStorageDeleteData [14:20:33]Write to MH i2c: 01 00 00 4C 45 91 [14:20:33]Write i2c OK [14:20:33]MH_I2C_Read... [14:20:33]Read from MH i2c: 01 [14:20:33]MH_I2C_Read... [14:20:33]Read from MH i2c: 01 07 00 [14:20:33]MH_I2C_Read... [14:20:33]Read from MH i2c: 01 07 00 4C 45 00 00 00 00 00 EA 0C 8E [14:20:33]RasterBufferAndPrint [14:20:33]line [14:20:33]line [14:20:33]line [14:20:33]line [14:20:33]line [14:20:33]written 0, free lines is 3315 [14:20:33]MH_Cut [14:20:33]Write to MH i2c: D1 01 00 53 45 01 6A [14:20:33]Write i2c OK [14:20:33]MH_I2C_Read... [14:20:33]Read from MH i2c: D1 [14:20:33]MH_I2C_Read... [14:20:33]Read from MH i2c: D1 01 00 [14:20:33]MH_I2C_Read... [14:20:33]Read from MH i2c: D1 01 00 53 45 00 69 [14:20:33]Write to MH i2c: 01 00 00 54 45 99 [14:20:33]Write i2c OK [14:20:33]MH_I2C_Read... [14:20:33]OFD Sender: No OFD packet to send [14:20:34]*** Cut start [14:20:34]*** Partial cut [14:20:34]*** CUTSNS_PIN = 1 [14:20:34]*** CUTSNS_PIN = 0 [14:20:34]*** Brake cut motor [14:20:35]Read from MH i2c: 01 [14:20:35]MH_I2C_Read... [14:20:35]*** Stop cut motor [14:20:35]*** Cut end [14:20:35]Read from MH i2c: 01 07 00 [14:20:35]MH_I2C_Read... [14:20:35]Read from MH i2c: 01 07 00 54 45 00 00 00 00 00 FF 0F AE [14:20:35]process_action close_receipt done [14:20:35]requested_data is exist [14:20:35]produce_requested_data [14:20:35]requested_item fm.sn is exist - process it [14:20:35]wFMCommunicate request_size=4 [14:20:35]MH_SAM_APDU [14:20:35]CAPDU: 80 11 00 00 [14:20:35]Write to MH i2c: E2 08 00 55 45 80 11 00 00 00 00 00 00 14 [14:20:35]Write i2c OK [14:20:35]MH_I2C_Read... [14:20:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:35]Read from MH i2c: E2 [14:20:35]MH_I2C_Read... [14:20:35]Read from MH i2c: E2 17 00 [14:20:35]MH_I2C_Read... [14:20:35]Read from MH i2c: E2 17 00 55 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 63 [14:20:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:20:35]wFMCommunicate OK [14:20:35]requested_item fd.num is exist - process it [14:20:35]SAM_PROTO_GetFieldsCounters [14:20:35]wFMCommunicate request_size=4 [14:20:35]MH_SAM_APDU [14:20:35]CAPDU: 80 13 00 00 [14:20:35]Write to MH i2c: E2 08 00 56 45 80 13 00 00 00 00 00 00 17 [14:20:35]Write i2c OK [14:20:35]MH_I2C_Read... [14:20:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:35]Read from MH i2c: E2 [14:20:35]MH_I2C_Read... [14:20:35]Read from MH i2c: E2 62 00 [14:20:35]MH_I2C_Read... [14:20:35]Read from MH i2c: E2 62 00 56 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 15 71 00 00 0E 04 04 00 73 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 22 [14:20: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 15 71 00 00 0E 04 04 00 73 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 [14:20:35]wFMCommunicate OK [14:20:35]SAM_PROTO_GetFieldsCounters done [14:20:35]requested_item shift.num is exist - process it [14:20:35]requested_item shift.opened is exist - process it [14:20:35]req_shift_opened [14:20:35]FM_GetShiftState [14:20:35]SAM_PROTO_GetShiftState [14:20:35]wFMCommunicate request_size=4 [14:20:35]MH_SAM_APDU [14:20:35]CAPDU: 80 13 01 00 [14:20:35]Write to MH i2c: E2 08 00 57 45 80 13 01 00 00 00 00 00 19 [14:20:35]Write i2c OK [14:20:35]MH_I2C_Read... [14:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:35]Read from MH i2c: E2 [14:20:35]MH_I2C_Read... [14:20:35]Read from MH i2c: E2 0E 00 [14:20:35]MH_I2C_Read... [14:20:35]Read from MH i2c: E2 0E 00 57 45 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 32 [14:20:35]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [14:20:35]wFMCommunicate OK [14:20:35]SAM_PROTO_GetShiftState done [14:20:35]FM_GetShiftState done [14:20:35]req_shift_opened done [14:20:35]requested_item shift.open_date is exist - process it [14:20:35]req_shift_open_date [14:20:35]req_shift_open_date done [14:20:35]produce_requested_data done [14:20:35]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28949,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [14:20:35]process_action_free close_receipt [14:20:35]json_value_free [14:20:35]json_value_free done [14:20:35]process_json_proto returns [14:20:35]Send response to host [14:20:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28949,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [14:20:35]free response buf [14:20:35]execute_script done [14:20:35]execute_script returns [14:20:35]free content buf [14:20:35]Sock 9.Close socket [14:20:35]Sock 9.Thread stoped [14:20:38]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:29]OFD Sender: No OFD packet to send [14:21:34]OFD Sender: No OFD packet to send [14:21:39]OFD Sender: No OFD packet to send [14:21:44]OFD Sender: No OFD packet to send [14:21:49]OFD Sender: No OFD packet to send [14:21:54]OFD Sender: No OFD packet to send [14:21:59]OFD Sender: No OFD packet to send [14:22:04]OFD Sender: No OFD packet to send [14:22:09]OFD Sender: No OFD packet to send [14:22:14]OFD Sender: No OFD packet to send [14:22:19]OFD Sender: No OFD packet to send [14:22:24]OFD Sender: No OFD packet to send [14:22:29]OFD Sender: No OFD packet to send [14:22:34]OFD Sender: No OFD packet to send [14:22:39]OFD Sender: No OFD packet to send [14:22:44]OFD Sender: No OFD packet to send [14:22:49]OFD Sender: No OFD packet to send [14:22:54]OFD Sender: No OFD packet to send [14:22:59]OFD Sender: No OFD packet to send [14:23:04]OFD Sender: No OFD packet to send [14:23:09]OFD Sender: No OFD packet to send [14:23:14]OFD Sender: No OFD packet to send [14:23:19]OFD Sender: No OFD packet to send [14:23:24]OFD Sender: No OFD packet to send [14:23:29]OFD Sender: No OFD packet to send [14:23:34]OFD Sender: No OFD packet to send [14:23:39]OFD Sender: No OFD packet to send [14:23:44]OFD Sender: No OFD packet to send [14:23:49]OFD Sender: No OFD packet to send [14:23:54]OFD Sender: No OFD packet to send [14:23:59]OFD Sender: No OFD packet to send [14:24:04]OFD Sender: No OFD packet to send [14:24:09]OFD Sender: No OFD packet to send [14:24:14]OFD Sender: No OFD packet to send [14:24:19]OFD Sender: No OFD packet to send [14:24:24]OFD Sender: No OFD packet to send [14:24:29]OFD Sender: No OFD packet to send [14:24:34]OFD Sender: No OFD packet to send [14:24:39]OFD Sender: No OFD packet to send [14:24:44]OFD Sender: No OFD packet to send [14:24:49]OFD Sender: No OFD packet to send [14:24:54]OFD Sender: No OFD packet to send [14:24:59]OFD Sender: No OFD packet to send [14:25:04]OFD Sender: No OFD packet to send [14:25:09]OFD Sender: No OFD packet to send [14:25:14]OFD Sender: No OFD packet to send [14:25:19]OFD Sender: No OFD packet to send [14:25:24]OFD Sender: No OFD packet to send [14:25:29]OFD Sender: No OFD packet to send [14:25:34]OFD Sender: No OFD packet to send [14:25:39]OFD Sender: No OFD packet to send [14:25:44]OFD Sender: No OFD packet to send [14:25:49]OFD Sender: No OFD packet to send [14:25:54]OFD Sender: No OFD packet to send [14:25:59]OFD Sender: No OFD packet to send [14:26:04]OFD Sender: No OFD packet to send [14:26:09]OFD Sender: No OFD packet to send [14:26:14]OFD Sender: No OFD packet to send [14:26:19]OFD Sender: No OFD packet to send [14:26:24]OFD Sender: No OFD packet to send [14:26:29]OFD Sender: No OFD packet to send [14:26:34]OFD Sender: No OFD packet to send [14:26:39]OFD Sender: No OFD packet to send [14:26:44]OFD Sender: No OFD packet to send [14:26:49]OFD Sender: No OFD packet to send [14:26:54]OFD Sender: No OFD packet to send [14:26:59]OFD Sender: No OFD packet to send [14:27:04]OFD Sender: No OFD packet to send [14:27:09]OFD Sender: No OFD packet to send [14:27:14]OFD Sender: No OFD packet to send [14:27:19]OFD Sender: No OFD packet to send [14:27:24]OFD Sender: No OFD packet to send [14:27:29]OFD Sender: No OFD packet to send [14:27:34]OFD Sender: No OFD packet to send [14:27:39]OFD Sender: No OFD packet to send [14:27:44]OFD Sender: No OFD packet to send [14:27:49]OFD Sender: No OFD packet to send [14:27:54]OFD Sender: No OFD packet to send [14:27:59]OFD Sender: No OFD packet to send [14:28:04]OFD Sender: No OFD packet to send [14:28:09]OFD Sender: No OFD packet to send [14:28:14]OFD Sender: No OFD packet to send [14:28:19]OFD Sender: No OFD packet to send [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:49]OFD Sender: No OFD packet to send [14:28:54]OFD Sender: No OFD packet to send [14:28:59]OFD Sender: No OFD packet to send [14:29:04]OFD Sender: No OFD packet to send [14:29:09]OFD Sender: No OFD packet to send [14:29:14]OFD Sender: No OFD packet to send [14:29:19]OFD Sender: No OFD packet to send [14:29:24]OFD Sender: No OFD packet to send [14:29:29]OFD Sender: No OFD packet to send [14:29:34]OFD Sender: No OFD packet to send [14:29:39]OFD Sender: No OFD packet to send [14:29:44]OFD Sender: No OFD packet to send [14:29:49]OFD Sender: No OFD packet to send [14:29:54]OFD Sender: No OFD packet to send [14:29:59]OFD Sender: No OFD packet to send [14:30:04]OFD Sender: No OFD packet to send [14:30:09]OFD Sender: No OFD packet to send [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:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:09]OFD Sender: No OFD packet to send [14:34:14]OFD Sender: No OFD packet to send [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:39]OFD Sender: No OFD packet to send [14:34:44]OFD Sender: No OFD packet to send [14:34:49]OFD Sender: No OFD packet to send [14:34:54]OFD Sender: No OFD packet to send [14:34:59]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:19]OFD Sender: No OFD packet to send [14:35:24]OFD Sender: No OFD packet to send [14:35:29]OFD Sender: No OFD packet to send [14:35:34]OFD Sender: No OFD packet to send [14:35:39]OFD Sender: No OFD packet to send [14:35:44]OFD Sender: No OFD packet to send [14:35:49]OFD Sender: No OFD packet to send [14:35:54]OFD Sender: No OFD packet to send [14:35:59]OFD Sender: No OFD packet to send [14:36:04]OFD Sender: No OFD packet to send [14:36:09]OFD Sender: No OFD packet to send [14:36:14]OFD Sender: No OFD packet to send [14:36:19]OFD Sender: No OFD packet to send [14:36:24]OFD Sender: No OFD packet to send [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:39]OFD Sender: No OFD packet to send [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:49]OFD Sender: No OFD packet to send [14:38:54]OFD Sender: No OFD packet to send [14:38:59]OFD Sender: No OFD packet to send [14:39:04]OFD Sender: No OFD packet to send [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:19]OFD Sender: No OFD packet to send [14:39:24]OFD Sender: No OFD packet to send [14:39:29]OFD Sender: No OFD packet to send [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:59]OFD Sender: No OFD packet to send [14:40:04]OFD Sender: No OFD packet to send [14:40:09]OFD Sender: No OFD packet to send [14:40:14]OFD Sender: No OFD packet to send [14:40:19]OFD Sender: No OFD packet to send [14:40:24]OFD Sender: No OFD packet to send [14:40:29]OFD Sender: No OFD packet to send [14:40:34]OFD Sender: No OFD packet to send [14:40:39]OFD Sender: No OFD packet to send [14:40:44]OFD Sender: No OFD packet to send [14:40:49]OFD Sender: No OFD packet to send [14:40:51]accept exits with 7 [14:40:51]New connection [14:40:51]New thread 3066785124 created [14:40:51]Thread 3066928484 joined [14:40:51]Waiting for new connection... [14:40:51] Sock 7.Parse request [14:40:51]Sock 7.Check first char [14:40:51]Sock 7.First char is OK [14:40:51]request: POST /json_proto HTTP/1.0 [14:40:51]Method: POST [14:40:51]URL: /json_proto [14:40:51]Method is POST - this is cgi request [14:40:51]url: /json_proto [14:40:51]query_string will be loaded in cgi processing [14:40:51]execute_cgi json_proto POST (null) [14:40:51]execute_cgi path=json_proto method=POST [14:40:51]POST find Content-Length [14:40:51]Host: 172.17.33.3:8080 [14:40:51]Content-Length: 1204 [14:40:51]Content-Type: application/json [14:40:51] [14:40:51]POST finish read [14:40:51]Found Content-Length = 1204 [14:40:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347309\u000A13.04.2024 14:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.820 x 72.40\u000A\u0418\u0422\u041E\u0413: 1000.57\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A57605\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:51]execute_script... [14:40:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347309\u000A13.04.2024 14:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.820 x 72.40\u000A\u0418\u0422\u041E\u0413: 1000.57\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A57605\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:51]POST & json_proto [14:40:51]process_json_proto [14:40:51]json parsed OK: [14:40:51]protocol is kg_v1.0 [14:40:51]action value=print_text [14:40:51]process_action print_text [14:40:51]cmd_print_text [14:40:51]ExternCall_PrintAddStr [14:40:51]wPrintStart [14:40:51]Write to MH i2c: 01 00 00 58 45 9D [14:40:51]Write i2c OK [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: 01 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: 01 07 00 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: 01 07 00 58 45 00 00 00 00 00 FF 0F B2 [14:40:51]RasterBufferAndPrint [14:40:51]line *****ТОВАРНЫЙ ЧЕК***** [14:40:51]line АЗС 108 [14:40:51]line Партнер нефть [14:40:51]line 02508201610067 [14:40:51]line Кассир : Шадыканова Ж. [14:40:51]line Счет N : (1)347309 [14:40:51]line 13.04.2024 14:22 [14:40:51]line ПРОДАЖА [14:40:51]line ТРК (МРК, ГНК): 61 [14:40:51]line Вид ГСМ : 2710194210 [14:40:51]line ДТ-К-5 [14:40:51]line 13.820 x 72.40 [14:40:51]line ИТОГ: 1000.57 [14:40:51]line Тип оплаты: Талоны: Топливная Карта [14:40:51]line 57605 [14:40:51]line ______________________ [14:40:51]line (подпись) [14:40:51]written 0, free lines is 4095 [14:40:51]Write to MH i2c: 01 00 00 6D 45 B2 [14:40:51]Write i2c OK [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: 01 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: 01 07 00 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: 01 07 00 6D 45 00 00 00 00 00 F3 0D B9 [14:40:51]RasterBufferAndPrint [14:40:51]line [14:40:51]line [14:40:51]line [14:40:51]line [14:40:51]line [14:40:51]written 0, free lines is 3572 [14:40:52]MH_Cut [14:40:52]Write to MH i2c: D1 01 00 74 45 01 8B [14:40:52]Write i2c OK [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: D1 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: D1 01 00 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: D1 01 00 74 45 00 8A [14:40:52]Write to MH i2c: 01 00 00 75 45 BA [14:40:52]Write i2c OK [14:40:52]MH_I2C_Read... [14:40:52]*** Cut start [14:40:52]*** Partial cut [14:40:52]*** CUTSNS_PIN = 1 [14:40:52]*** CUTSNS_PIN = 0 [14:40:52]*** Brake cut motor [14:40:53]Read from MH i2c: 01 [14:40:53]MH_I2C_Read... [14:40:53]Read from MH i2c: 01 07 00 [14:40:53]MH_I2C_Read... [14:40:53]*** Stop cut motor [14:40:53]*** Cut end [14:40:53]Read from MH i2c: 01 07 00 75 45 00 00 00 00 00 FF 0F CF [14:40:53]process_action print_text done [14:40:53]requested_data is exist [14:40:53]produce_requested_data [14:40:53]requested_item fm.sn is exist - process it [14:40:53]wFMCommunicate request_size=4 [14:40:53]MH_SAM_APDU [14:40:53]CAPDU: 80 11 00 00 [14:40:53]Write to MH i2c: E2 08 00 76 45 80 11 00 00 00 00 00 00 35 [14:40:53]Write i2c OK [14:40:53]MH_I2C_Read... [14:40:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:53]Read from MH i2c: E2 [14:40:53]MH_I2C_Read... [14:40:53]Read from MH i2c: E2 17 00 [14:40:53]MH_I2C_Read... [14:40:53]Read from MH i2c: E2 17 00 76 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 84 [14:40:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:40:53]wFMCommunicate OK [14:40:53]requested_item fd.num is exist - process it [14:40:53]SAM_PROTO_GetFieldsCounters [14:40:53]wFMCommunicate request_size=4 [14:40:53]MH_SAM_APDU [14:40:53]CAPDU: 80 13 00 00 [14:40:53]Write to MH i2c: E2 08 00 77 45 80 13 00 00 00 00 00 00 38 [14:40:53]Write i2c OK [14:40:53]MH_I2C_Read... [14:40:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:53]Read from MH i2c: E2 [14:40:53]MH_I2C_Read... [14:40:53]Read from MH i2c: E2 62 00 [14:40:53]MH_I2C_Read... [14:40:53]Read from MH i2c: E2 62 00 77 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 15 71 00 00 0E 04 04 00 73 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 43 [14:40: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 15 71 00 00 0E 04 04 00 73 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 [14:40:53]wFMCommunicate OK [14:40:53]SAM_PROTO_GetFieldsCounters done [14:40:53]requested_item shift.num is exist - process it [14:40:53]requested_item shift.opened is exist - process it [14:40:53]req_shift_opened [14:40:53]FM_GetShiftState [14:40:53]SAM_PROTO_GetShiftState [14:40:53]wFMCommunicate request_size=4 [14:40:53]MH_SAM_APDU [14:40:53]CAPDU: 80 13 01 00 [14:40:53]Write to MH i2c: E2 08 00 78 45 80 13 01 00 00 00 00 00 3A [14:40:53]Write i2c OK [14:40:53]MH_I2C_Read... [14:40:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:53]Read from MH i2c: E2 [14:40:53]MH_I2C_Read... [14:40:53]Read from MH i2c: E2 0E 00 [14:40:53]MH_I2C_Read... [14:40:53]Read from MH i2c: E2 0E 00 78 45 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 53 [14:40:53]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [14:40:53]wFMCommunicate OK [14:40:53]SAM_PROTO_GetShiftState done [14:40:53]FM_GetShiftState done [14:40:53]req_shift_opened done [14:40:53]requested_item shift.open_date is exist - process it [14:40:53]req_shift_open_date [14:40:53]req_shift_open_date done [14:40:53]produce_requested_data done [14:40:53]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28949,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [14:40:53]process_action_free print_text [14:40:53]json_value_free [14:40:53]json_value_free done [14:40:53]process_json_proto returns [14:40:53]Send response to host [14:40:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28949,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [14:40:53]free response buf [14:40:53]execute_script done [14:40:53]execute_script returns [14:40:53]free content buf [14:40:53]Sock 7.Close socket [14:40:53]Sock 7.Thread stoped [14:40:54]OFD Sender: No OFD packet to send [14:40:59]OFD Sender: No OFD packet to send [14:41:04]OFD Sender: No OFD packet to send [14:41:09]OFD Sender: No OFD packet to send [14:41:14]OFD Sender: No OFD packet to send [14:41:19]OFD Sender: No OFD packet to send [14:41:24]OFD Sender: No OFD packet to send [14:41:29]OFD Sender: No OFD packet to send [14:41:34]OFD Sender: No OFD packet to send [14:41:39]OFD Sender: No OFD packet to send [14:41:44]OFD Sender: No OFD packet to send [14:41:49]OFD Sender: No OFD packet to send [14:41:54]OFD Sender: No OFD packet to send [14:42:00]OFD Sender: No OFD packet to send [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:20]OFD Sender: No OFD packet to send [14:42:23]accept exits with 9 [14:42:23]New connection [14:42:23]New thread 3066928484 created [14:42:23]Thread 3066785124 joined [14:42:23]Waiting for new connection... [14:42:23] Sock 9.Parse request [14:42:23]Sock 9.Check first char [14:42:23]Sock 9.First char is OK [14:42:23]request: POST /json_proto HTTP/1.0 [14:42:23]Method: POST [14:42:23]URL: /json_proto [14:42:23]Method is POST - this is cgi request [14:42:23]url: /json_proto [14:42:23]query_string will be loaded in cgi processing [14:42:23]execute_cgi json_proto POST (null) [14:42:23]execute_cgi path=json_proto method=POST [14:42:23]POST find Content-Length [14:42:23]Host: 172.17.33.3:8080 [14:42:23]Content-Length: 819 [14:42:23]Content-Type: application/json [14:42:23] [14:42:23]POST finish read [14:42:23]Found Content-Length = 819 [14:42:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:23]execute_script... [14: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)347310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:23]POST & json_proto [14:42:23]process_json_proto [14:42:23]json parsed OK: [14:42:23]protocol is kg_v1.0 [14:42:23]action value=close_receipt [14:42:23]process_action close_receipt [14:42:23]cmd_close_receipt [14:42:23]MH_GetDate [14:42:23]Write to MH i2c: F0 00 00 79 45 AD [14:42:23]Write i2c OK [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: F0 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: F0 09 00 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: F0 09 00 79 45 00 D4 99 1A 66 23 5B 8F 65 15 [14:42:23]GetLastDocTimeStamp 1713018036 [14:42:23]current date 1713019348 [14:42:23]FM_GetShiftState [14:42:23]SAM_PROTO_GetShiftState [14:42:23]wFMCommunicate request_size=4 [14:42:23]MH_SAM_APDU [14:42:23]CAPDU: 80 13 01 00 [14:42:23]Write to MH i2c: E2 08 00 7A 45 80 13 01 00 00 00 00 00 3C [14:42:23]Write i2c OK [14:42:23]MH_I2C_Read... [14:42:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:23]Read from MH i2c: E2 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: E2 0E 00 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: E2 0E 00 7A 45 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 55 [14:42:23]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [14:42:23]wFMCommunicate OK [14:42:23]SAM_PROTO_GetShiftState done [14:42:23]FM_GetShiftState done [14:42:23]opened in 1712967615 [14:42:23]opened+sec_in_day 1713054015 [14:42:23]quantity*price = 100050 [14:42:23]sum+1 = 100052 [14:42:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 157 13.04.2024 14:42 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 28950 ФПД: 74394291522612 1/tax-web-control/client/api/v1/ticket?date=20240413T144228&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28950&fm=74394291522612&tin=02508201610067®Number=0000138879044617&sum=100051 [14:42:24]StoreToDocumentArchive [14:42:24]shift 115 fd 28950 [14:42:24]save to /storage/0115/doc_00028950 [14:42:24]save last doc name /storage/0115/doc_00028950 to /storage/kkm_last_doc_name [14:42:24]save OK [14:42:24]Clear old archive folders... [14:42:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:24]tlvbuf is 01285FC0 [14:42:24]SAM_PROTO_ClearQueue [14:42:24]wFMCommunicate request_size=4 [14:42:24]MH_SAM_APDU [14:42:24]CAPDU: 80 09 00 00 [14:42:24]Write to MH i2c: E2 08 00 87 45 80 09 00 00 00 00 00 00 3E [14:42:24]Write i2c OK [14:42:24]MH_I2C_Read... [14:42:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:24]Read from MH i2c: E2 [14:42:24]MH_I2C_Read... [14:42:24]Read from MH i2c: E2 03 00 [14:42:24]MH_I2C_Read... [14:42:24]Read from MH i2c: E2 03 00 87 45 00 90 00 40 [14:42:24]RAPDU: 90 00 [14:42:24]wFMCommunicate OK [14:42:24]SAM_PROTO_ClearQueue done [14:42:24]KKMCreateOFDPacket [14:42:24]OFDProtocolAddRootSTLVToBuf [14:42:24]FM_MakeSignedData [14:42:24]FM_MakeSignedData [14:42:24]SAM_PROTO_SignData [14:42:24]wFMCommunicate request_size=4 [14:42:24]MH_SAM_APDU [14:42:24]CAPDU: 80 0D 01 02 [14:42:24]Write to MH i2c: E2 08 00 88 45 80 0D 01 02 00 00 00 00 46 [14:42:24]Write i2c OK [14:42:24]MH_I2C_Read... [14:42:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:24]Read from MH i2c: E2 [14:42:24]MH_I2C_Read... [14:42:24]Read from MH i2c: E2 03 00 [14:42:24]MH_I2C_Read... [14:42:24]Read from MH i2c: E2 03 00 88 45 00 90 00 41 [14:42:24]RAPDU: 90 00 [14:42:24]wFMCommunicate OK [14:42:24]wFMCommunicate request_size=255 [14:42:24]MH_SAM_APDU [14:42: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 9D 00 00 00 F4 03 04 00 D4 99 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 16 71 00 00 35 04 06 00 43 [14:42:24]Write to MH i2c: E2 02 01 89 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 9D 00 00 00 F4 03 04 00 D4 99 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 16 71 00 00 35 04 06 00 43 00 00 9F [14:42:24]Write i2c OK [14:42:24]MH_I2C_Read... [14:42:25]OFD Sender: No OFD packet to send [14:42:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:25]Read from MH i2c: E2 [14:42:25]MH_I2C_Read... [14:42:25]Read from MH i2c: E2 03 00 [14:42:25]MH_I2C_Read... [14:42:25]Read from MH i2c: E2 03 00 89 45 00 90 00 42 [14:42:25]RAPDU: 90 00 [14:42:25]wFMCommunicate OK [14:42:25]wFMCommunicate request_size=10 [14:42:25]MH_SAM_APDU [14:42:25]CAPDU: 80 0D 02 02 05 A9 45 51 CC 34 [14:42:25]Write to MH i2c: E2 0D 00 8A 45 80 0D 02 02 05 00 A9 45 51 CC 34 00 00 92 [14:42:25]Write i2c OK [14:42:25]MH_I2C_Read... [14:42:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:25]Read from MH i2c: E2 [14:42:25]MH_I2C_Read... [14:42:25]Read from MH i2c: E2 03 00 [14:42:25]MH_I2C_Read... [14:42:25]Read from MH i2c: E2 03 00 8A 45 00 90 00 43 [14:42:25]RAPDU: 90 00 [14:42:25]wFMCommunicate OK [14:42:25]wFMCommunicate request_size=4 [14:42:25]MH_SAM_APDU [14:42:25]CAPDU: 80 0D 03 02 [14:42:25]Write to MH i2c: E2 08 00 8B 45 80 0D 03 02 00 00 00 00 4B [14:42:25]Write i2c OK [14:42:25]MH_I2C_Read... [14:42:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:25]Read from MH i2c: E2 [14:42:25]MH_I2C_Read... [14:42:25]Read from MH i2c: E2 0B 00 [14:42:25]MH_I2C_Read... [14:42:25]Read from MH i2c: E2 0B 00 8B 45 00 AE F2 24 FB 9A 7A 5B A8 90 00 22 [14:42:25]RAPDU: AE F2 24 FB 9A 7A 5B A8 90 00 [14:42:25]wFMCommunicate OK [14:42:25]SAM_PROTO_SignData done [14:42:25]FM_MakeSignedData done [14:42:25]CreateOFDProtocolMessage [14:42:25]wFMCommunicate request_size=4 [14:42:25]MH_SAM_APDU [14:42:25]CAPDU: 80 11 00 00 [14:42:25]Write to MH i2c: E2 08 00 8C 45 80 11 00 00 00 00 00 00 4B [14:42:25]Write i2c OK [14:42:25]MH_I2C_Read... [14:42:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:25]Read from MH i2c: E2 [14:42:25]MH_I2C_Read... [14:42:25]Read from MH i2c: E2 17 00 [14:42:25]MH_I2C_Read... [14:42:25]Read from MH i2c: E2 17 00 8C 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9A [14:42:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:42:25]wFMCommunicate OK [14:42:25]CreateOFDProtocolMessage done [14:42:25]OFDSenderStorePacket 28950 [14:42:25]StoreOFDPacket docnum=28950 [14:42:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 13 E3 07 01 FE E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 9D 00 00 00 F4 03 04 00 D4 99 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 16 71 00 00 35 04 06 00 43 A9 45 51 CC 34 AE F2 24 FB 9A 7A 5B A8 [14:42:25]CheckFolder [14:42:25]dirname=/storage/ofd_packets [14:42:25]CheckFolder done [14:42:25]ProducePacketName [14:42:25]name=ofd_packets/00028950 [14:42:25]NVStorageSaveData ofd_packets/00028950 [14:42:25]File name is /storage/ofd_packets/00028950 [14:42:25]Write 301 bytes [14:42:25]NVStorageSaveData done [14:42:25]OFDSenderStorePacket done [14:42:25]KKMCreateOFDPacket done [14:42:25]NVStorageSaveData kkm_last_timestamp [14:42:25]File name is /storage/kkm_last_timestamp [14:42:25]Write 4 bytes [14:42:25]NVStorageSaveData done [14:42:25]ExternCall_PrintAddStr [14:42:25]wPrintStart [14:42:25]Write to MH i2c: 01 00 00 8D 45 D2 [14:42:25]Write i2c OK [14:42:25]MH_I2C_Read... [14:42:25]Read from MH i2c: 01 [14:42:25]MH_I2C_Read... [14:42:25]Read from MH i2c: 01 07 00 [14:42:25]MH_I2C_Read... [14:42:25]Read from MH i2c: 01 07 00 8D 45 00 00 00 00 00 FF 0F E7 [14:42:25]RasterBufferAndPrint [14:42:25]line Счет N : (1)347310 [14:42:25]line ИНН: 02508201610067 [14:42:25]line Контрольно-Кассовый Чек [14:42:25]line ПРОДАЖА [14:42:25]line ТРК (МРК, ГНК) : 63 [14:42:25]line Товар: 2710124130 [14:42:25]line Аи-92-К-5 [14:42:25]line 15.560 * 64.30 [14:42:25]line = 1000.51 [14:42:25]line НДС 12% НСП 1% [14:42:25]line > о реализуемом товаре [14:42:25]line ИТОГО: 1000.51 [14:42:25]line НСП 1% : 8.85 [14:42:25]line НДС 12% : 106.25 [14:42:25]line Наличными: 0.00 [14:42:25]line Безнал.: 1000.51 [14:42:25]line Место: АЗС № 108 "Партнер Нефть" [14:42:25]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:42:25]line СНО: Общий режим [14:42:25]line Чек 157 13.04.2024 14:42 [14:42:25]line Смена: 115 ФФД: 1.0 [14:42:25]line ЗНМ: 0300000027 [14:42:25]line РНМ: 0000138879044617 [14:42:25]line Версия ККМ: 001 [14:42:25]line Платежная система: Бакай Банк [14:42:25]line ФМ: 0000000000963154 [14:42:25]line ФД: 28950 [14:42:25]line ФПД: 74394291522612 [14:42:25]line 1/tax-web-control/client/api/v1/ticket?date=20240413T144228&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28950&fm=74394291522612&tin=02508201610067®Number=0000138879044617&sum=100051 [14:42:25]OFD Sender: Processing packet 28950 [packets to send 8, broken 7] [14:42:25]ProducePacketName [14:42:25]name=ofd_packets/00028950 [14:42:25]OFD Sender: To server: pG, [14:42:25]CommunicateWithHost lk.salyk.kg:30040 [14:42:25]ConnectInit lk.salyk.kg [14:42:25]written 0, free lines is 4095 [14:42:25]Connected sock=10 [14:42: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 31 35 34 0F 01 00 00 13 E3 07 01 FE E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 9D 00 00 00 F4 03 04 00 D4 99 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 16 71 00 00 35 04 06 00 43 A9 45 51 CC 34 AE F2 24 FB 9A 7A 5B A8 [14:42:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D6 FD 47 00 0A 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 16 71 00 00 F4 03 04 00 7B 44 1A 66 B6 04 01 00 00 55 9B D9 DF C8 8F 6A 33 [14:42:25]CommunicateWithHost err = 0 [14:42:25]CheckOFDResponse [14:42:25]1017 (14) - 77093643461234 [14:42:25]1041 (16) - 0000000000963154 [14:42:25]1040 (4) - 28950 [14:42:25]1012 (4) - 13.04.2024 08:38 [14:42:25]1206 (1) - 0 [14:42:25]OFD Sender: Remove packet 28950 [14:42:25]ProducePacketName [14:42:25]name=ofd_packets/00028950 [14:42:25]NVStorageDeleteData [14:42:26]Write to MH i2c: 01 00 00 B6 45 FB [14:42:26]Write i2c OK [14:42:26]MH_I2C_Read... [14:42:26]Read from MH i2c: 01 [14:42:26]MH_I2C_Read... [14:42:26]Read from MH i2c: 01 07 00 [14:42:26]MH_I2C_Read... [14:42:26]Read from MH i2c: 01 07 00 B6 45 00 00 00 00 00 D0 0C DE [14:42:26]RasterBufferAndPrint [14:42:26]line [14:42:26]line [14:42:26]line [14:42:26]line [14:42:26]line [14:42:26]written 0, free lines is 3284 [14:42:26]MH_Cut [14:42:26]Write to MH i2c: D1 01 00 BD 45 01 D4 [14:42:26]Write i2c OK [14:42:26]MH_I2C_Read... [14:42:26]Read from MH i2c: D1 [14:42:26]MH_I2C_Read... [14:42:26]Read from MH i2c: D1 01 00 [14:42:26]MH_I2C_Read... [14:42:26]Read from MH i2c: D1 01 00 BD 45 00 D3 [14:42:26]Write to MH i2c: 01 00 00 BE 45 03 [14:42:26]Write i2c OK [14:42:26]MH_I2C_Read... [14:42:26]OFD Sender: No OFD packet to send [14:42:26]*** Cut start [14:42:26]*** Partial cut [14:42:26]*** CUTSNS_PIN = 1 [14:42:26]*** CUTSNS_PIN = 0 [14:42:27]*** Brake cut motor [14:42:27]Read from MH i2c: 01 [14:42:27]MH_I2C_Read... [14:42:27]*** Stop cut motor [14:42:27]*** Cut end [14:42:27]Read from MH i2c: 01 07 00 [14:42:27]MH_I2C_Read... [14:42:27]Read from MH i2c: 01 07 00 BE 45 00 00 00 00 00 FF 0F 18 [14:42:27]process_action close_receipt done [14:42:27]requested_data is exist [14:42:27]produce_requested_data [14:42:27]requested_item fm.sn is exist - process it [14:42:27]wFMCommunicate request_size=4 [14:42:27]MH_SAM_APDU [14:42:27]CAPDU: 80 11 00 00 [14:42:27]Write to MH i2c: E2 08 00 BF 45 80 11 00 00 00 00 00 00 7E [14:42:27]Write i2c OK [14:42:27]MH_I2C_Read... [14:42:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:27]Read from MH i2c: E2 [14:42:27]MH_I2C_Read... [14:42:27]Read from MH i2c: E2 17 00 [14:42:27]MH_I2C_Read... [14:42:27]Read from MH i2c: E2 17 00 BF 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CD [14:42:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:42:27]wFMCommunicate OK [14:42:27]requested_item fd.num is exist - process it [14:42:27]SAM_PROTO_GetFieldsCounters [14:42:27]wFMCommunicate request_size=4 [14:42:27]MH_SAM_APDU [14:42:27]CAPDU: 80 13 00 00 [14:42:27]Write to MH i2c: E2 08 00 C0 45 80 13 00 00 00 00 00 00 81 [14:42:27]Write i2c OK [14:42:27]MH_I2C_Read... [14:42:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:27]Read from MH i2c: E2 [14:42:27]MH_I2C_Read... [14:42:27]Read from MH i2c: E2 62 00 [14:42:27]MH_I2C_Read... [14:42:27]Read from MH i2c: E2 62 00 C0 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 16 71 00 00 0E 04 04 00 73 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 90 [14: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 16 71 00 00 0E 04 04 00 73 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 [14:42:27]wFMCommunicate OK [14:42:27]SAM_PROTO_GetFieldsCounters done [14:42:27]requested_item shift.num is exist - process it [14:42:27]requested_item shift.opened is exist - process it [14:42:27]req_shift_opened [14:42:27]FM_GetShiftState [14:42:27]SAM_PROTO_GetShiftState [14:42:27]wFMCommunicate request_size=4 [14:42:27]MH_SAM_APDU [14:42:27]CAPDU: 80 13 01 00 [14:42:27]Write to MH i2c: E2 08 00 C1 45 80 13 01 00 00 00 00 00 83 [14:42:27]Write i2c OK [14:42:27]MH_I2C_Read... [14:42:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:27]Read from MH i2c: E2 [14:42:27]MH_I2C_Read... [14:42:27]Read from MH i2c: E2 0E 00 [14:42:27]MH_I2C_Read... [14:42:27]Read from MH i2c: E2 0E 00 C1 45 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 9C [14:42:27]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [14:42:27]wFMCommunicate OK [14:42:27]SAM_PROTO_GetShiftState done [14:42:27]FM_GetShiftState done [14:42:27]req_shift_opened done [14:42:27]requested_item shift.open_date is exist - process it [14:42:27]req_shift_open_date [14:42:27]req_shift_open_date done [14:42:27]produce_requested_data done [14:42:27]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28950,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [14:42:27]process_action_free close_receipt [14:42:27]json_value_free [14:42:27]json_value_free done [14:42:27]process_json_proto returns [14:42:27]Send response to host [14:42:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28950,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [14:42:27]free response buf [14:42:27]execute_script done [14:42:27]execute_script returns [14:42:27]free content buf [14:42:27]Sock 9.Close socket [14:42:27]Sock 9.Thread stoped [14:42:31]OFD Sender: No OFD packet to send [14:42:36]OFD Sender: No OFD packet to send [14:42:41]OFD Sender: No OFD packet to send [14:42:46]OFD Sender: No OFD packet to send [14:42:51]OFD Sender: No OFD packet to send [14:42:56]OFD Sender: No OFD packet to send [14:43:01]OFD Sender: No OFD packet to send [14:43:06]OFD Sender: No OFD packet to send [14:43:11]OFD Sender: No OFD packet to send [14:43:16]OFD Sender: No OFD packet to send [14:43:21]OFD Sender: No OFD packet to send [14:43:26]OFD Sender: No OFD packet to send [14:43:31]OFD Sender: No OFD packet to send [14:43:36]OFD Sender: No OFD packet to send [14:43:41]OFD Sender: No OFD packet to send [14:43:46]OFD Sender: No OFD packet to send [14:43:51]OFD Sender: No OFD packet to send [14:43:56]OFD Sender: No OFD packet to send [14:44:01]OFD Sender: No OFD packet to send [14:44:06]OFD Sender: No OFD packet to send [14:44:11]OFD Sender: No OFD packet to send [14:44:16]OFD Sender: No OFD packet to send [14:44:21]OFD Sender: No OFD packet to send [14:44:26]OFD Sender: No OFD packet to send [14:44:31]OFD Sender: No OFD packet to send [14:44:36]OFD Sender: No OFD packet to send [14:44:41]OFD Sender: No OFD packet to send [14:44:46]OFD Sender: No OFD packet to send [14:44:51]OFD Sender: No OFD packet to send [14:44:56]OFD Sender: No OFD packet to send [14:45:01]OFD Sender: No OFD packet to send [14:45:06]OFD Sender: No OFD packet to send [14:45:11]OFD Sender: No OFD packet to send [14:45:16]OFD Sender: No OFD packet to send [14:45:21]OFD Sender: No OFD packet to send [14:45:26]OFD Sender: No OFD packet to send [14:45:31]OFD Sender: No OFD packet to send [14:45:36]OFD Sender: No OFD packet to send [14:45:41]OFD Sender: No OFD packet to send [14:45:46]OFD Sender: No OFD packet to send [14:45:51]OFD Sender: No OFD packet to send [14:45:56]OFD Sender: No OFD packet to send [14:46:01]OFD Sender: No OFD packet to send [14:46:06]OFD Sender: No OFD packet to send [14:46:10]accept exits with 7 [14:46:10]New connection [14:46:10]New thread 3066785124 created [14:46:10]Thread 3066928484 joined [14:46:10]Waiting for new connection... [14:46:10] Sock 7.Parse request [14:46:10]Sock 7.Check first char [14:46:10]Sock 7.First char is OK [14:46:10]request: POST /json_proto HTTP/1.0 [14:46:10]Method: POST [14:46:10]URL: /json_proto [14:46:10]Method is POST - this is cgi request [14:46:10]url: /json_proto [14:46:10]query_string will be loaded in cgi processing [14:46:10]execute_cgi json_proto POST (null) [14:46:10]execute_cgi path=json_proto method=POST [14:46:10]POST find Content-Length [14:46:10]Host: 172.17.33.3:8080 [14:46:10]Content-Length: 682 [14:46:10]Content-Type: application/json [14:46:10] [14:46:10]POST finish read [14:46:10]Found Content-Length = 682 [14:46:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347312", "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" : 64.30, "quantity" : 15.560, "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:46:10]execute_script... [14:46: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)347312", "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" : 64.30, "quantity" : 15.560, "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:46:10]POST & json_proto [14:46:10]process_json_proto [14:46:10]json parsed OK: [14:46:10]protocol is kg_v1.0 [14:46:10]action value=close_receipt [14:46:10]process_action close_receipt [14:46:10]cmd_close_receipt [14:46:10]MH_GetDate [14:46:10]Write to MH i2c: F0 00 00 C2 45 F6 [14:46:10]Write i2c OK [14:46:10]MH_I2C_Read... [14:46:10]Read from MH i2c: F0 [14:46:10]MH_I2C_Read... [14:46:10]Read from MH i2c: F0 09 00 [14:46:10]MH_I2C_Read... [14:46:10]Read from MH i2c: F0 09 00 C2 45 00 B8 9A 1A 66 23 5B 8F 65 43 [14:46:10]GetLastDocTimeStamp 1713019348 [14:46:10]current date 1713019576 [14:46:10]FM_GetShiftState [14:46:10]SAM_PROTO_GetShiftState [14:46:10]wFMCommunicate request_size=4 [14:46:10]MH_SAM_APDU [14:46:10]CAPDU: 80 13 01 00 [14:46:10]Write to MH i2c: E2 08 00 C3 45 80 13 01 00 00 00 00 00 85 [14:46:10]Write i2c OK [14:46:10]MH_I2C_Read... [14:46:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:11]Read from MH i2c: E2 [14:46:11]MH_I2C_Read... [14:46:11]Read from MH i2c: E2 0E 00 [14:46:11]MH_I2C_Read... [14:46:11]Read from MH i2c: E2 0E 00 C3 45 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 9E [14:46:11]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [14:46:11]wFMCommunicate OK [14:46:11]SAM_PROTO_GetShiftState done [14:46:11]FM_GetShiftState done [14:46:11]opened in 1712967615 [14:46:11]opened+sec_in_day 1713054015 [14:46:11]quantity*price = 100050 [14:46:11]sum+1 = 100052 [14:46: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 158 13.04.2024 14:46 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28951 ФПД: 3959985839917 1/tax-web-control/client/api/v1/ticket?date=20240413T144616&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28951&fm=3959985839917&tin=02508201610067®Number=0000138879044617&sum=100000 [14:46:12]StoreToDocumentArchive [14:46:12]shift 115 fd 28951 [14:46:12]save to /storage/0115/doc_00028951 [14:46:12]save last doc name /storage/0115/doc_00028951 to /storage/kkm_last_doc_name [14:46:12]save OK [14:46:12]Clear old archive folders... [14:46:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:46:12]tlvbuf is 0121A670 [14:46:12]SAM_PROTO_ClearQueue [14:46:12]wFMCommunicate request_size=4 [14:46:12]MH_SAM_APDU [14:46:12]CAPDU: 80 09 00 00 [14:46:12]Write to MH i2c: E2 08 00 D0 45 80 09 00 00 00 00 00 00 87 [14:46:12]Write i2c OK [14:46:12]MH_I2C_Read... [14:46:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:12]Read from MH i2c: E2 [14:46:12]MH_I2C_Read... [14:46:12]Read from MH i2c: E2 03 00 [14:46:12]MH_I2C_Read... [14:46:12]Read from MH i2c: E2 03 00 D0 45 00 90 00 89 [14:46:12]RAPDU: 90 00 [14:46:12]wFMCommunicate OK [14:46:12]SAM_PROTO_ClearQueue done [14:46:12]KKMCreateOFDPacket [14:46:12]OFDProtocolAddRootSTLVToBuf [14:46:12]FM_MakeSignedData [14:46:12]FM_MakeSignedData [14:46:12]SAM_PROTO_SignData [14:46:12]wFMCommunicate request_size=4 [14:46:12]MH_SAM_APDU [14:46:12]CAPDU: 80 0D 01 02 [14:46:12]Write to MH i2c: E2 08 00 D1 45 80 0D 01 02 00 00 00 00 8F [14:46:12]Write i2c OK [14:46:12]MH_I2C_Read... [14:46:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:12]Read from MH i2c: E2 [14:46:12]MH_I2C_Read... [14:46:12]Read from MH i2c: E2 03 00 [14:46:12]MH_I2C_Read... [14:46:12]Read from MH i2c: E2 03 00 D1 45 00 90 00 8A [14:46:12]RAPDU: 90 00 [14:46:12]wFMCommunicate OK [14:46:12]wFMCommunicate request_size=255 [14:46:12]MH_SAM_APDU [14:46:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 9E 00 00 00 F4 03 04 00 B8 9A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 17 71 00 00 35 04 06 00 03 [14:46:12]Write to MH i2c: E2 02 01 D2 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 9E 00 00 00 F4 03 04 00 B8 9A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 17 71 00 00 35 04 06 00 03 00 00 29 [14:46:12]Write i2c OK [14:46:12]MH_I2C_Read... [14:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:12]Read from MH i2c: E2 [14:46:12]MH_I2C_Read... [14:46:12]Read from MH i2c: E2 03 00 [14:46:12]MH_I2C_Read... [14:46:12]Read from MH i2c: E2 03 00 D2 45 00 90 00 8B [14:46:12]RAPDU: 90 00 [14:46:12]wFMCommunicate OK [14:46:12]wFMCommunicate request_size=10 [14:46:12]MH_SAM_APDU [14:46:12]CAPDU: 80 0D 02 02 05 9A 01 8C 9F 2D [14:46:12]Write to MH i2c: E2 0D 00 D3 45 80 0D 02 02 05 00 9A 01 8C 9F 2D 00 00 8F [14:46:12]Write i2c OK [14:46:12]MH_I2C_Read... [14:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:12]Read from MH i2c: E2 [14:46:12]MH_I2C_Read... [14:46:12]Read from MH i2c: E2 03 00 [14:46:12]MH_I2C_Read... [14:46:12]Read from MH i2c: E2 03 00 D3 45 00 90 00 8C [14:46:12]RAPDU: 90 00 [14:46:12]wFMCommunicate OK [14:46:12]wFMCommunicate request_size=4 [14:46:12]MH_SAM_APDU [14:46:12]CAPDU: 80 0D 03 02 [14:46:12]Write to MH i2c: E2 08 00 D4 45 80 0D 03 02 00 00 00 00 94 [14:46:12]Write i2c OK [14:46:12]MH_I2C_Read... [14:46:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:12]Read from MH i2c: E2 [14:46:12]MH_I2C_Read... [14:46:12]Read from MH i2c: E2 0B 00 [14:46:12]MH_I2C_Read... [14:46:12]Read from MH i2c: E2 0B 00 D4 45 00 58 2B 7E 16 A0 E6 5E E0 90 00 70 [14:46:12]RAPDU: 58 2B 7E 16 A0 E6 5E E0 90 00 [14:46:12]wFMCommunicate OK [14:46:12]SAM_PROTO_SignData done [14:46:12]FM_MakeSignedData done [14:46:12]CreateOFDProtocolMessage [14:46:12]wFMCommunicate request_size=4 [14:46:12]MH_SAM_APDU [14:46:12]CAPDU: 80 11 00 00 [14:46:12]Write to MH i2c: E2 08 00 D5 45 80 11 00 00 00 00 00 00 94 [14:46:12]Write i2c OK [14:46:12]MH_I2C_Read... [14:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:12]Read from MH i2c: E2 [14:46:12]MH_I2C_Read... [14:46:12]Read from MH i2c: E2 17 00 [14:46:12]MH_I2C_Read... [14:46:12]Read from MH i2c: E2 17 00 D5 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E3 [14:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:46:12]wFMCommunicate OK [14:46:12]CreateOFDProtocolMessage done [14:46:12]OFDSenderStorePacket 28951 [14:46:12]StoreOFDPacket docnum=28951 [14:46:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 68 B6 07 01 C1 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 9E 00 00 00 F4 03 04 00 B8 9A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 17 71 00 00 35 04 06 00 03 9A 01 8C 9F 2D 58 2B 7E 16 A0 E6 5E E0 [14:46:12]CheckFolder [14:46:12]dirname=/storage/ofd_packets [14:46:12]CheckFolder done [14:46:12]ProducePacketName [14:46:12]name=ofd_packets/00028951 [14:46:12]NVStorageSaveData ofd_packets/00028951 [14:46:12]File name is /storage/ofd_packets/00028951 [14:46:12]Write 301 bytes [14:46:12]NVStorageSaveData done [14:46:12]OFDSenderStorePacket done [14:46:12]KKMCreateOFDPacket done [14:46:12]NVStorageSaveData kkm_last_timestamp [14:46:12]File name is /storage/kkm_last_timestamp [14:46:12]Write 4 bytes [14:46:12]NVStorageSaveData done [14:46:12]ExternCall_PrintAddStr [14:46:12]wPrintStart [14:46:12]Write to MH i2c: 01 00 00 D6 45 1B [14:46:12]Write i2c OK [14:46:12]MH_I2C_Read... [14:46:12]Read from MH i2c: 01 [14:46:12]MH_I2C_Read... [14:46:12]Read from MH i2c: 01 07 00 [14:46:12]MH_I2C_Read... [14:46:12]Read from MH i2c: 01 07 00 D6 45 00 00 00 00 00 FF 0F 30 [14:46:12]RasterBufferAndPrint [14:46:12]line Счет N : (1)347312 [14:46:12]line ИНН: 02508201610067 [14:46:12]line Контрольно-Кассовый Чек [14:46:12]line ПРОДАЖА [14:46:12]line ТРК (МРК, ГНК) : 32 [14:46:12]line Товар: 2710124130 [14:46:12]line Аи-92-К-5 [14:46:12]line 15.560 * 64.30 [14:46:12]line = 1000.51 [14:46:12]line НДС 12% НСП 1% [14:46:12]line > о реализуемом товаре [14:46:12]line ОКРУГЛЕНИЕ: -0.51 [14:46:12]line ИТОГО: 1000.00 [14:46:12]line Внесено: 1000.00 [14:46:12]line СДАЧА: 0.00 [14:46:12]line НСП 1% : 8.85 [14:46:12]line НДС 12% : 106.25 [14:46:12]line Наличными: 1000.00 [14:46:12]line Безнал.: 0.00 [14:46:12]line Место: АЗС № 108 "Партнер Нефть" [14:46:12]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:46:12]line СНО: Общий режим [14:46:12]line Чек 158 13.04.2024 14:46 [14:46:12]line Смена: 115 ФФД: 1.0 [14:46:12]line ЗНМ: 0300000027 [14:46:12]line РНМ: 0000138879044617 [14:46:12]line Версия ККМ: 001 [14:46:12]line ФМ: 0000000000963154 [14:46:12]line ФД: 28951 [14:46:12]line ФПД: 3959985839917 [14:46:12]line 1/tax-web-control/client/api/v1/ticket?date=20240413T144616&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28951&fm=3959985839917&tin=02508201610067®Number=0000138879044617&sum=100000 [14:46:12]OFD Sender: Processing packet 28951 [packets to send 8, broken 7] [14:46:12]ProducePacketName [14:46:13]name=ofd_packets/00028951 [14:46:13]OFD Sender: To server: pG, [14:46:13]CommunicateWithHost lk.salyk.kg:30040 [14:46:13]ConnectInit lk.salyk.kg [14:46:13]written 0, free lines is 4095 [14:46:13]Connected sock=10 [14: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 31 35 34 0F 01 00 00 68 B6 07 01 C1 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 9E 00 00 00 F4 03 04 00 B8 9A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 17 71 00 00 35 04 06 00 03 9A 01 8C 9F 2D 58 2B 7E 16 A0 E6 5E E0 [14:46:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 85 07 47 00 24 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 31 35 34 10 04 04 00 17 71 00 00 F4 03 04 00 5E 45 1A 66 B6 04 01 00 00 3A 47 25 FF 48 EC 30 AF [14:46:13]CommunicateWithHost err = 0 [14:46:13]CheckOFDResponse [14:46:13]1017 (14) - 77093643461234 [14:46:13]1041 (16) - 0000000000963154 [14:46:13]1040 (4) - 28951 [14:46:13]1012 (4) - 13.04.2024 08:42 [14:46:13]1206 (1) - 0 [14:46:13]OFD Sender: Remove packet 28951 [14:46:13]ProducePacketName [14:46:13]name=ofd_packets/00028951 [14:46:13]NVStorageDeleteData [14:46:13]Write to MH i2c: 01 00 00 00 46 46 [14:46:13]Write i2c OK [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: 01 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: 01 07 00 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: 01 07 00 00 46 00 00 00 00 00 C0 0C 19 [14:46:13]RasterBufferAndPrint [14:46:13]line [14:46:13]line [14:46:13]line [14:46:13]line [14:46:13]line [14:46:13]written 0, free lines is 3269 [14:46:13]MH_Cut [14:46:13]Write to MH i2c: D1 01 00 07 46 01 1F [14:46:13]Write i2c OK [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: D1 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: D1 01 00 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: D1 01 00 07 46 00 1E [14:46:13]Write to MH i2c: 01 00 00 08 46 4E [14:46:13]Write i2c OK [14:46:13]MH_I2C_Read... [14:46:13]OFD Sender: No OFD packet to send [14:46:14]*** Cut start [14:46:14]*** Partial cut [14:46:14]*** CUTSNS_PIN = 1 [14:46:14]*** CUTSNS_PIN = 0 [14:46:14]*** Brake cut motor [14:46:14]Read from MH i2c: 01 [14:46:14]MH_I2C_Read... [14:46:14]*** Stop cut motor [14:46:14]*** Cut end [14:46:14]Read from MH i2c: 01 07 00 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: 01 07 00 08 46 00 00 00 00 00 FF 0F 63 [14:46:14]process_action close_receipt done [14:46:14]requested_data is exist [14:46:14]produce_requested_data [14:46:14]requested_item fm.sn is exist - process it [14:46:14]wFMCommunicate request_size=4 [14:46:14]MH_SAM_APDU [14:46:14]CAPDU: 80 11 00 00 [14:46:14]Write to MH i2c: E2 08 00 09 46 80 11 00 00 00 00 00 00 C9 [14:46:14]Write i2c OK [14:46:14]MH_I2C_Read... [14:46:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:14]Read from MH i2c: E2 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: E2 17 00 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: E2 17 00 09 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 18 [14:46:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:46:14]wFMCommunicate OK [14:46:14]requested_item fd.num is exist - process it [14:46:14]SAM_PROTO_GetFieldsCounters [14:46:14]wFMCommunicate request_size=4 [14:46:14]MH_SAM_APDU [14:46:14]CAPDU: 80 13 00 00 [14:46:14]Write to MH i2c: E2 08 00 0A 46 80 13 00 00 00 00 00 00 CC [14:46:14]Write i2c OK [14:46:14]MH_I2C_Read... [14:46:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:15]Read from MH i2c: E2 [14:46:15]MH_I2C_Read... [14:46:15]Read from MH i2c: E2 62 00 [14:46:15]MH_I2C_Read... [14:46:15]Read from MH i2c: E2 62 00 0A 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 17 71 00 00 0E 04 04 00 73 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 DF [14: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 17 71 00 00 0E 04 04 00 73 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 [14:46:15]wFMCommunicate OK [14:46:15]SAM_PROTO_GetFieldsCounters done [14:46:15]requested_item shift.num is exist - process it [14:46:15]requested_item shift.opened is exist - process it [14:46:15]req_shift_opened [14:46:15]FM_GetShiftState [14:46:15]SAM_PROTO_GetShiftState [14:46:15]wFMCommunicate request_size=4 [14:46:15]MH_SAM_APDU [14:46:15]CAPDU: 80 13 01 00 [14:46:15]Write to MH i2c: E2 08 00 0B 46 80 13 01 00 00 00 00 00 CE [14:46:15]Write i2c OK [14:46:15]MH_I2C_Read... [14:46:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:15]Read from MH i2c: E2 [14:46:15]MH_I2C_Read... [14:46:15]Read from MH i2c: E2 0E 00 [14:46:15]MH_I2C_Read... [14:46:15]Read from MH i2c: E2 0E 00 0B 46 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 E7 [14:46:15]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [14:46:15]wFMCommunicate OK [14:46:15]SAM_PROTO_GetShiftState done [14:46:15]FM_GetShiftState done [14:46:15]req_shift_opened done [14:46:15]requested_item shift.open_date is exist - process it [14:46:15]req_shift_open_date [14:46:15]req_shift_open_date done [14:46:15]produce_requested_data done [14:46:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28951,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [14:46:15]process_action_free close_receipt [14:46:15]json_value_free [14:46:15]json_value_free done [14:46:15]process_json_proto returns [14:46:15]Send response to host [14:46:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28951,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [14:46:15]free response buf [14:46:15]execute_script done [14:46:15]execute_script returns [14:46:15]free content buf [14:46:15]Sock 7.Close socket [14:46:15]Sock 7.Thread stoped [14:46:15]accept exits with 9 [14:46:15]New connection [14:46:15]New thread 3066928484 created [14:46:15]Thread 3066785124 joined [14:46:15]Waiting for new connection... [14:46:15] Sock 9.Parse request [14:46:15]Sock 9.Check first char [14:46:15]Sock 9.First char is OK [14:46:15]request: POST /json_proto HTTP/1.0 [14:46:15]Method: POST [14:46:15]URL: /json_proto [14:46:15]Method is POST - this is cgi request [14:46:15]url: /json_proto [14:46:15]query_string will be loaded in cgi processing [14:46:15]execute_cgi json_proto POST (null) [14:46:15]execute_cgi path=json_proto method=POST [14:46:15]POST find Content-Length [14:46:15]Host: 172.17.33.3:8080 [14:46:15]Content-Length: 677 [14:46:15]Content-Type: application/json [14:46:15] [14:46:15]POST finish read [14:46:15]Found Content-Length = 677 [14:46:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 2.340, "sum" : 150.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:15]execute_script... [14:46:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 2.340, "sum" : 150.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:15]POST & json_proto [14:46:15]process_json_proto [14:46:15]json parsed OK: [14:46:15]protocol is kg_v1.0 [14:46:15]action value=close_receipt [14:46:15]process_action close_receipt [14:46:15]cmd_close_receipt [14:46:15]MH_GetDate [14:46:15]Write to MH i2c: F0 00 00 0C 46 41 [14:46:15]Write i2c OK [14:46:15]MH_I2C_Read... [14:46:15]Read from MH i2c: F0 [14:46:15]MH_I2C_Read... [14:46:15]Read from MH i2c: F0 09 00 [14:46:15]MH_I2C_Read... [14:46:15]Read from MH i2c: F0 09 00 0C 46 00 BC 9A 1A 66 23 5B 8F 65 92 [14:46:15]GetLastDocTimeStamp 1713019576 [14:46:15]current date 1713019580 [14:46:15]FM_GetShiftState [14:46:15]SAM_PROTO_GetShiftState [14:46:15]wFMCommunicate request_size=4 [14:46:15]MH_SAM_APDU [14:46:15]CAPDU: 80 13 01 00 [14:46:15]Write to MH i2c: E2 08 00 0D 46 80 13 01 00 00 00 00 00 D0 [14:46:15]Write i2c OK [14:46:15]MH_I2C_Read... [14:46:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:15]Read from MH i2c: E2 [14:46:15]MH_I2C_Read... [14:46:15]Read from MH i2c: E2 0E 00 [14:46:15]MH_I2C_Read... [14:46:15]Read from MH i2c: E2 0E 00 0D 46 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 E9 [14:46:15]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [14:46:15]wFMCommunicate OK [14:46:15]SAM_PROTO_GetShiftState done [14:46:15]FM_GetShiftState done [14:46:15]opened in 1712967615 [14:46:15]opened+sec_in_day 1713054015 [14:46:15]quantity*price = 15046 [14:46:15]sum+1 = 15047 [14:46:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 159 13.04.2024 14:46 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28952 ФПД: 262010321483290 1/tax-web-control/client/api/v1/ticket?date=20240413T144620&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28952&fm=262010321483290&tin=02508201610067®Number=0000138879044617&sum=15000 [14:46:17]StoreToDocumentArchive [14:46:17]shift 115 fd 28952 [14:46:17]save to /storage/0115/doc_00028952 [14:46:17]save last doc name /storage/0115/doc_00028952 to /storage/kkm_last_doc_name [14:46:17]save OK [14:46:17]Clear old archive folders... [14:46:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:46:17]tlvbuf is 011F8050 [14:46:17]SAM_PROTO_ClearQueue [14:46:17]wFMCommunicate request_size=4 [14:46:17]MH_SAM_APDU [14:46:17]CAPDU: 80 09 00 00 [14:46:17]Write to MH i2c: E2 08 00 1A 46 80 09 00 00 00 00 00 00 D2 [14:46:17]Write i2c OK [14:46:17]MH_I2C_Read... [14:46:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:17]Read from MH i2c: E2 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 03 00 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 03 00 1A 46 00 90 00 D4 [14:46:17]RAPDU: 90 00 [14:46:17]wFMCommunicate OK [14:46:17]SAM_PROTO_ClearQueue done [14:46:17]KKMCreateOFDPacket [14:46:17]OFDProtocolAddRootSTLVToBuf [14:46:17]FM_MakeSignedData [14:46:17]FM_MakeSignedData [14:46:17]SAM_PROTO_SignData [14:46:17]wFMCommunicate request_size=4 [14:46:17]MH_SAM_APDU [14:46:17]CAPDU: 80 0D 01 02 [14:46:17]Write to MH i2c: E2 08 00 1B 46 80 0D 01 02 00 00 00 00 DA [14:46:17]Write i2c OK [14:46:17]MH_I2C_Read... [14:46:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:17]Read from MH i2c: E2 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 03 00 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 03 00 1B 46 00 90 00 D5 [14:46:17]RAPDU: 90 00 [14:46:17]wFMCommunicate OK [14:46:17]wFMCommunicate request_size=255 [14:46:17]MH_SAM_APDU [14:46:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 09 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 C6 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 BC 9A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 18 71 00 00 35 04 06 00 EE [14:46:17]Write to MH i2c: E2 02 01 1C 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 24 09 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 C6 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 BC 9A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 18 71 00 00 35 04 06 00 EE 00 00 31 [14:46:17]Write i2c OK [14:46:17]MH_I2C_Read... [14:46:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:17]Read from MH i2c: E2 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 03 00 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 03 00 1C 46 00 90 00 D6 [14:46:17]RAPDU: 90 00 [14:46:17]wFMCommunicate OK [14:46:17]wFMCommunicate request_size=10 [14:46:17]MH_SAM_APDU [14:46:17]CAPDU: 80 0D 02 02 05 4C 08 23 B6 1A [14:46:17]Write to MH i2c: E2 0D 00 1D 46 80 0D 02 02 05 00 4C 08 23 B6 1A 00 00 2E [14:46:17]Write i2c OK [14:46:17]MH_I2C_Read... [14:46:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:17]Read from MH i2c: E2 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 03 00 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 03 00 1D 46 00 90 00 D7 [14:46:17]RAPDU: 90 00 [14:46:17]wFMCommunicate OK [14:46:17]wFMCommunicate request_size=4 [14:46:17]MH_SAM_APDU [14:46:17]CAPDU: 80 0D 03 02 [14:46:17]Write to MH i2c: E2 08 00 1E 46 80 0D 03 02 00 00 00 00 DF [14:46:17]Write i2c OK [14:46:17]MH_I2C_Read... [14:46:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:17]Read from MH i2c: E2 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 0B 00 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 0B 00 1E 46 00 42 37 D4 FC 2B 27 14 24 90 00 B3 [14:46:17]RAPDU: 42 37 D4 FC 2B 27 14 24 90 00 [14:46:17]wFMCommunicate OK [14:46:17]SAM_PROTO_SignData done [14:46:17]FM_MakeSignedData done [14:46:17]CreateOFDProtocolMessage [14:46:17]wFMCommunicate request_size=4 [14:46:17]MH_SAM_APDU [14:46:17]CAPDU: 80 11 00 00 [14:46:17]Write to MH i2c: E2 08 00 1F 46 80 11 00 00 00 00 00 00 DF [14:46:17]Write i2c OK [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 [14:46:17]MH_I2C_Read... [14:46:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:17]Read from MH i2c: E2 17 00 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 17 00 1F 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2E [14:46:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:46:17]wFMCommunicate OK [14:46:17]CreateOFDProtocolMessage done [14:46:17]OFDSenderStorePacket 28952 [14:46:17]StoreOFDPacket docnum=28952 [14:46:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6B 1A 07 01 93 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 09 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 C6 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 BC 9A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 18 71 00 00 35 04 06 00 EE 4C 08 23 B6 1A 42 37 D4 FC 2B 27 14 24 [14:46:17]CheckFolder [14:46:17]dirname=/storage/ofd_packets [14:46:17]CheckFolder done [14:46:17]ProducePacketName [14:46:17]name=ofd_packets/00028952 [14:46:17]NVStorageSaveData ofd_packets/00028952 [14:46:17]File name is /storage/ofd_packets/00028952 [14:46:17]Write 301 bytes [14:46:17]NVStorageSaveData done [14:46:17]OFDSenderStorePacket done [14:46:17]KKMCreateOFDPacket done [14:46:17]NVStorageSaveData kkm_last_timestamp [14:46:17]File name is /storage/kkm_last_timestamp [14:46:17]Write 4 bytes [14:46:17]NVStorageSaveData done [14:46:17]ExternCall_PrintAddStr [14:46:17]wPrintStart [14:46:17]Write to MH i2c: 01 00 00 20 46 66 [14:46:17]Write i2c OK [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: 01 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: 01 07 00 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: 01 07 00 20 46 00 00 00 00 00 FF 0F 7B [14:46:17]RasterBufferAndPrint [14:46:17]line Счет N : (1)347313 [14:46:17]line ИНН: 02508201610067 [14:46:17]line Контрольно-Кассовый Чек [14:46:17]line ПРОДАЖА [14:46:17]line ТРК (МРК, ГНК) : 23 [14:46:17]line Товар: 2710124130 [14:46:17]line Аи-92-К-5 [14:46:17]line 2.340 * 64.30 [14:46:17]line = 150.46 [14:46:17]line НДС 12% НСП 1% [14:46:17]line > о реализуемом товаре [14:46:17]line ОКРУГЛЕНИЕ: -0.46 [14:46:17]line ИТОГО: 150.00 [14:46:17]line Внесено: 150.00 [14:46:17]line СДАЧА: 0.00 [14:46:17]line НСП 1% : 1.33 [14:46:17]line НДС 12% : 15.98 [14:46:17]line Наличными: 150.00 [14:46:17]line Безнал.: 0.00 [14:46:17]line Место: АЗС № 108 "Партнер Нефть" [14:46:17]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:46:17]line СНО: Общий режим [14:46:17]line Чек 159 13.04.2024 14:46 [14:46:17]line Смена: 115 ФФД: 1.0 [14:46:17]line ЗНМ: 0300000027 [14:46:17]line РНМ: 0000138879044617 [14:46:17]line Версия ККМ: 001 [14:46:17]line ФМ: 0000000000963154 [14:46:17]line ФД: 28952 [14:46:17]line ФПД: 262010321483290 [14:46:17]line 1/tax-web-control/client/api/v1/ticket?date=20240413T144620&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28952&fm=262010321483290&tin=02508201610067®Number=0000138879044617&sum=15000 [14:46:17]written 0, free lines is 4095 [14:46:17]OFD Sender: Processing packet 28952 [packets to send 8, broken 7] [14:46:17]ProducePacketName [14:46:17]name=ofd_packets/00028952 [14:46:17]OFD Sender: To server: pG, [14:46:17]CommunicateWithHost lk.salyk.kg:30040 [14:46:17]ConnectInit lk.salyk.kg [14:46:17]Connected sock=10 [14:46:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6B 1A 07 01 93 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 09 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 C6 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 BC 9A 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 18 71 00 00 35 04 06 00 EE 4C 08 23 B6 1A 42 37 D4 FC 2B 27 14 24 [14: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 31 35 34 4F 00 00 00 1F 07 47 00 00 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 18 71 00 00 F4 03 04 00 63 45 1A 66 B6 04 01 00 00 AE 9C 53 73 B2 B5 97 5D [14:46:17]CommunicateWithHost err = 0 [14:46:17]CheckOFDResponse [14:46:17]1017 (14) - 77093643461234 [14:46:17]1041 (16) - 0000000000963154 [14:46:17]1040 (4) - 28952 [14:46:17]1012 (4) - 13.04.2024 08:42 [14:46:17]1206 (1) - 0 [14:46:17]OFD Sender: Remove packet 28952 [14:46:17]ProducePacketName [14:46:17]name=ofd_packets/00028952 [14:46:17]NVStorageDeleteData [14:46:18]Write to MH i2c: 01 00 00 4A 46 90 [14:46:18]Write i2c OK [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: 01 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: 01 07 00 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: 01 07 00 4A 46 00 00 00 00 00 CB 0C 6E [14:46:18]RasterBufferAndPrint [14:46:18]line [14:46:18]line [14:46:18]line [14:46:18]line [14:46:18]line [14:46:18]written 0, free lines is 3284 [14:46:18]MH_Cut [14:46:18]Write to MH i2c: D1 01 00 51 46 01 69 [14:46:18]Write i2c OK [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: D1 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: D1 01 00 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: D1 01 00 51 46 00 68 [14:46:18]Write to MH i2c: 01 00 00 52 46 98 [14:46:18]Write i2c OK [14:46:18]MH_I2C_Read... [14:46:18]OFD Sender: No OFD packet to send [14:46:18]*** Cut start [14:46:18]*** Partial cut [14:46:18]*** CUTSNS_PIN = 1 [14:46:18]*** CUTSNS_PIN = 0 [14:46:19]*** Brake cut motor [14:46:19]Read from MH i2c: 01 [14:46:19]MH_I2C_Read... [14:46:19]*** Stop cut motor [14:46:19]*** Cut end [14:46:19]Read from MH i2c: 01 07 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: 01 07 00 52 46 00 00 00 00 00 FF 0F AD [14:46:19]process_action close_receipt done [14:46:19]requested_data is exist [14:46:19]produce_requested_data [14:46:19]requested_item fm.sn is exist - process it [14:46:19]wFMCommunicate request_size=4 [14:46:19]MH_SAM_APDU [14:46:19]CAPDU: 80 11 00 00 [14:46:19]Write to MH i2c: E2 08 00 53 46 80 11 00 00 00 00 00 00 13 [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:19]Read from MH i2c: E2 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 17 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 17 00 53 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 62 [14:46:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:46:19]wFMCommunicate OK [14:46:19]requested_item fd.num is exist - process it [14:46:19]SAM_PROTO_GetFieldsCounters [14:46:19]wFMCommunicate request_size=4 [14:46:19]MH_SAM_APDU [14:46:19]CAPDU: 80 13 00 00 [14:46:19]Write to MH i2c: E2 08 00 54 46 80 13 00 00 00 00 00 00 16 [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:19]Read from MH i2c: E2 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 62 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 62 00 54 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 18 71 00 00 0E 04 04 00 73 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 2D [14:46:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 18 71 00 00 0E 04 04 00 73 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 [14:46:19]wFMCommunicate OK [14:46:19]SAM_PROTO_GetFieldsCounters done [14:46:19]requested_item shift.num is exist - process it [14:46:19]requested_item shift.opened is exist - process it [14:46:19]req_shift_opened [14:46:19]FM_GetShiftState [14:46:19]SAM_PROTO_GetShiftState [14:46:19]wFMCommunicate request_size=4 [14:46:19]MH_SAM_APDU [14:46:19]CAPDU: 80 13 01 00 [14:46:19]Write to MH i2c: E2 08 00 55 46 80 13 01 00 00 00 00 00 18 [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:19]Read from MH i2c: E2 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 0E 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 0E 00 55 46 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 31 [14:46:19]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [14:46:19]wFMCommunicate OK [14:46:19]SAM_PROTO_GetShiftState done [14:46:19]FM_GetShiftState done [14:46:19]req_shift_opened done [14:46:19]requested_item shift.open_date is exist - process it [14:46:19]req_shift_open_date [14:46:19]req_shift_open_date done [14:46:19]produce_requested_data done [14:46:19]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28952,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [14:46:19]process_action_free close_receipt [14:46:19]json_value_free [14:46:19]json_value_free done [14:46:19]process_json_proto returns [14:46:19]Send response to host [14:46:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28952,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [14:46:19]free response buf [14:46:19]execute_script done [14:46:19]execute_script returns [14:46:19]free content buf [14:46:19]Sock 9.Close socket [14:46:19]Sock 9.Thread stoped [14:46:23]OFD Sender: No OFD packet to send [14:46:26]accept exits with 7 [14:46:26]New connection [14:46:26]New thread 3066785124 created [14:46:26]Thread 3066928484 joined [14:46:26]Waiting for new connection... [14:46:26] Sock 7.Parse request [14:46:26]Sock 7.Check first char [14:46:26]Sock 7.First char is OK [14:46:26]request: POST /json_proto HTTP/1.0 [14:46:26]Method: POST [14:46:26]URL: /json_proto [14:46:26]Method is POST - this is cgi request [14:46:26]url: /json_proto [14:46:26]query_string will be loaded in cgi processing [14:46:26]execute_cgi json_proto POST (null) [14:46:26]execute_cgi path=json_proto method=POST [14:46:26]POST find Content-Length [14:46:26]Host: 172.17.33.3:8080 [14:46:26]Content-Length: 1204 [14:46:26]Content-Type: application/json [14:46:26] [14:46:26]POST finish read [14:46:26]Found Content-Length = 1204 [14:46:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347311\u000A13.04.2024 14:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 27.630 x 72.40\u000A\u0418\u0422\u041E\u0413: 2000.41\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A57605\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:26]execute_script... [14:46:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347311\u000A13.04.2024 14:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 27.630 x 72.40\u000A\u0418\u0422\u041E\u0413: 2000.41\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A57605\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:26]POST & json_proto [14:46:26]process_json_proto [14:46:26]json parsed OK: [14:46:26]protocol is kg_v1.0 [14:46:26]action value=print_text [14:46:26]process_action print_text [14:46:26]cmd_print_text [14:46:26]ExternCall_PrintAddStr [14:46:26]wPrintStart [14:46:26]Write to MH i2c: 01 00 00 56 46 9C [14:46:26]Write i2c OK [14:46:26]MH_I2C_Read... [14:46:26]Read from MH i2c: 01 [14:46:26]MH_I2C_Read... [14:46:26]Read from MH i2c: 01 07 00 [14:46:26]MH_I2C_Read... [14:46:26]Read from MH i2c: 01 07 00 56 46 00 00 00 00 00 FF 0F B1 [14:46:26]RasterBufferAndPrint [14:46:26]line *****ТОВАРНЫЙ ЧЕК***** [14:46:26]line АЗС 108 [14:46:26]line Партнер нефть [14:46:26]line 02508201610067 [14:46:26]line Кассир : Шадыканова Ж. [14:46:26]line Счет N : (1)347311 [14:46:26]line 13.04.2024 14:28 [14:46:26]line ПРОДАЖА [14:46:26]line ТРК (МРК, ГНК): 61 [14:46:26]line Вид ГСМ : 2710194210 [14:46:26]line ДТ-К-5 [14:46:26]line 27.630 x 72.40 [14:46:26]line ИТОГ: 2000.41 [14:46:26]line Тип оплаты: Талоны: Топливная Карта [14:46:26]line 57605 [14:46:26]line ______________________ [14:46:26]line (подпись) [14:46:26]written 0, free lines is 4095 [14:46:26]Write to MH i2c: 01 00 00 6B 46 B1 [14:46:26]Write i2c OK [14:46:26]MH_I2C_Read... [14:46:26]Read from MH i2c: 01 [14:46:26]MH_I2C_Read... [14:46:26]Read from MH i2c: 01 07 00 [14:46:26]MH_I2C_Read... [14:46:26]Read from MH i2c: 01 07 00 6B 46 00 00 00 00 00 F4 0D B9 [14:46:26]RasterBufferAndPrint [14:46:26]line [14:46:26]line [14:46:26]line [14:46:26]line [14:46:26]line [14:46:26]written 0, free lines is 3576 [14:46:26]MH_Cut [14:46:26]Write to MH i2c: D1 01 00 72 46 01 8A [14:46:26]Write i2c OK [14:46:26]MH_I2C_Read... [14:46:26]Read from MH i2c: D1 [14:46:26]MH_I2C_Read... [14:46:26]Read from MH i2c: D1 01 00 [14:46:26]MH_I2C_Read... [14:46:26]Read from MH i2c: D1 01 00 72 46 00 89 [14:46:26]Write to MH i2c: 01 00 00 73 46 B9 [14:46:26]Write i2c OK [14:46:26]MH_I2C_Read... [14:46:27]*** Cut start [14:46:27]*** Partial cut [14:46:27]*** CUTSNS_PIN = 1 [14:46:27]*** CUTSNS_PIN = 0 [14:46:27]*** Brake cut motor [14:46:27]Read from MH i2c: 01 [14:46:27]MH_I2C_Read... [14:46:27]*** Stop cut motor [14:46:27]*** Cut end [14:46:27]Read from MH i2c: 01 07 00 [14:46:27]MH_I2C_Read... [14:46:27]Read from MH i2c: 01 07 00 73 46 00 00 00 00 00 FF 0F CE [14:46:27]process_action print_text done [14:46:27]requested_data is exist [14:46:27]produce_requested_data [14:46:27]requested_item fm.sn is exist - process it [14:46:27]wFMCommunicate request_size=4 [14:46:27]MH_SAM_APDU [14:46:27]CAPDU: 80 11 00 00 [14:46:27]Write to MH i2c: E2 08 00 74 46 80 11 00 00 00 00 00 00 34 [14:46:27]Write i2c OK [14:46:27]MH_I2C_Read... [14:46:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:27]Read from MH i2c: E2 [14:46:27]MH_I2C_Read... [14:46:27]Read from MH i2c: E2 17 00 [14:46:27]MH_I2C_Read... [14:46:27]Read from MH i2c: E2 17 00 74 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 83 [14:46:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:46:27]wFMCommunicate OK [14:46:27]requested_item fd.num is exist - process it [14:46:27]SAM_PROTO_GetFieldsCounters [14:46:27]wFMCommunicate request_size=4 [14:46:27]MH_SAM_APDU [14:46:27]CAPDU: 80 13 00 00 [14:46:27]Write to MH i2c: E2 08 00 75 46 80 13 00 00 00 00 00 00 37 [14:46:27]Write i2c OK [14:46:27]MH_I2C_Read... [14:46:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:28]Read from MH i2c: E2 [14:46:28]MH_I2C_Read... [14:46:28]Read from MH i2c: E2 62 00 [14:46:28]MH_I2C_Read... [14:46:28]Read from MH i2c: E2 62 00 75 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 18 71 00 00 0E 04 04 00 73 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 4E [14:46: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 18 71 00 00 0E 04 04 00 73 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 [14:46:28]wFMCommunicate OK [14:46:28]SAM_PROTO_GetFieldsCounters done [14:46:28]requested_item shift.num is exist - process it [14:46:28]requested_item shift.opened is exist - process it [14:46:28]req_shift_opened [14:46:28]FM_GetShiftState [14:46:28]SAM_PROTO_GetShiftState [14:46:28]wFMCommunicate request_size=4 [14:46:28]MH_SAM_APDU [14:46:28]CAPDU: 80 13 01 00 [14:46:28]Write to MH i2c: E2 08 00 76 46 80 13 01 00 00 00 00 00 39 [14:46:28]Write i2c OK [14:46:28]MH_I2C_Read... [14:46:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:28]Read from MH i2c: E2 [14:46:28]MH_I2C_Read... [14:46:28]Read from MH i2c: E2 0E 00 [14:46:28]MH_I2C_Read... [14:46:28]Read from MH i2c: E2 0E 00 76 46 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 52 [14:46:28]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [14:46:28]wFMCommunicate OK [14:46:28]SAM_PROTO_GetShiftState done [14:46:28]FM_GetShiftState done [14:46:28]req_shift_opened done [14:46:28]requested_item shift.open_date is exist - process it [14:46:28]req_shift_open_date [14:46:28]req_shift_open_date done [14:46:28]produce_requested_data done [14:46:28]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28952,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [14:46:28]process_action_free print_text [14:46:28]json_value_free [14:46:28]json_value_free done [14:46:28]process_json_proto returns [14:46:28]Send response to host [14:46:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28952,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [14:46:28]free response buf [14:46:28]execute_script done [14:46:28]execute_script returns [14:46:28]free content buf [14:46:28]Sock 7.Close socket [14:46:28]Sock 7.Thread stoped [14:46:28]OFD Sender: No OFD packet to send [14:46:33]OFD Sender: No OFD packet to send [14:46:38]OFD Sender: No OFD packet to send [14:46:43]OFD Sender: No OFD packet to send [14:46:48]OFD Sender: No OFD packet to send [14:46:53]OFD Sender: No OFD packet to send [14:46:58]OFD Sender: No OFD packet to send [14:47:03]OFD Sender: No OFD packet to send [14:47:08]OFD Sender: No OFD packet to send [14:47:13]OFD Sender: No OFD packet to send [14:47:18]OFD Sender: No OFD packet to send [14:47:23]OFD Sender: No OFD packet to send [14:47:28]OFD Sender: No OFD packet to send [14:47:33]OFD Sender: No OFD packet to send [14:47:38]OFD Sender: No OFD packet to send [14:47:43]OFD Sender: No OFD packet to send [14:47:48]OFD Sender: No OFD packet to send [14:47:53]OFD Sender: No OFD packet to send [14:47:58]OFD Sender: No OFD packet to send [14:48:03]OFD Sender: No OFD packet to send [14:48:08]OFD Sender: No OFD packet to send [14:48:13]OFD Sender: No OFD packet to send [14:48:18]OFD Sender: No OFD packet to send [14:48:23]OFD Sender: No OFD packet to send [14:48:28]OFD Sender: No OFD packet to send [14:48:29]accept exits with 9 [14:48:29]New connection [14:48:29]New thread 3066928484 created [14:48:29]Thread 3066785124 joined [14:48:29]Waiting for new connection... [14:48:29] Sock 9.Parse request [14:48:29]Sock 9.Check first char [14:48:29]Sock 9.First char is OK [14:48:29]request: POST /json_proto HTTP/1.0 [14:48:29]Method: POST [14:48:29]URL: /json_proto [14:48:29]Method is POST - this is cgi request [14:48:29]url: /json_proto [14:48:29]query_string will be loaded in cgi processing [14:48:29]execute_cgi json_proto POST (null) [14:48:29]execute_cgi path=json_proto method=POST [14:48:29]POST find Content-Length [14:48:29]Host: 172.17.33.3:8080 [14:48:29]Content-Length: 1207 [14:48:29]Content-Type: application/json [14:48:29] [14:48:29]POST finish read [14:48:29]Found Content-Length = 1207 [14:48:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347314\u000A13.04.2024 14:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1286.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81530\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:29]execute_script... [14:48:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347314\u000A13.04.2024 14:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1286.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81530\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:29]POST & json_proto [14:48:29]process_json_proto [14:48:29]json parsed OK: [14:48:29]protocol is kg_v1.0 [14:48:29]action value=print_text [14:48:29]process_action print_text [14:48:29]cmd_print_text [14:48:29]ExternCall_PrintAddStr [14:48:29]wPrintStart [14:48:29]Write to MH i2c: 01 00 00 77 46 BD [14:48:29]Write i2c OK [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: 01 [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: 01 07 00 [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: 01 07 00 77 46 00 00 00 00 00 FF 0F D2 [14:48:29]RasterBufferAndPrint [14:48:29]line *****ТОВАРНЫЙ ЧЕК***** [14:48:29]line АЗС 108 [14:48:29]line Партнер нефть [14:48:29]line 02508201610067 [14:48:29]line Кассир : Шадыканова Ж. [14:48:29]line Счет N : (1)347314 [14:48:29]line 13.04.2024 14:30 [14:48:29]line ПРОДАЖА [14:48:29]line ТРК (МРК, ГНК): 13 [14:48:29]line Вид ГСМ : 2710124130 [14:48:29]line Аи-92-К-5 [14:48:29]line 20.000 x 64.30 [14:48:29]line ИТОГ: 1286.00 [14:48:29]line Тип оплаты: Талоны: Топливная Карта [14:48:29]line 81530 [14:48:29]line ______________________ [14:48:29]line (подпись) [14:48:29]written 0, free lines is 4095 [14:48:29]Write to MH i2c: 01 00 00 8C 46 D2 [14:48:29]Write i2c OK [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: 01 [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: 01 07 00 [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: 01 07 00 8C 46 00 00 00 00 00 F4 0D DA [14:48:29]RasterBufferAndPrint [14:48:29]line [14:48:29]line [14:48:29]line [14:48:29]line [14:48:29]line [14:48:29]written 0, free lines is 3574 [14:48:29]MH_Cut [14:48:29]Write to MH i2c: D1 01 00 93 46 01 AB [14:48:29]Write i2c OK [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: D1 [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: D1 01 00 [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: D1 01 00 93 46 00 AA [14:48:29]Write to MH i2c: 01 00 00 94 46 DA [14:48:29]Write i2c OK [14:48:29]MH_I2C_Read... [14:48:30]*** Cut start [14:48:30]*** Partial cut [14:48:30]*** CUTSNS_PIN = 1 [14:48:30]*** CUTSNS_PIN = 0 [14:48:30]*** Brake cut motor [14:48:30]Read from MH i2c: 01 [14:48:30]MH_I2C_Read... [14:48:30]Read from MH i2c: 01 07 00 [14:48:30]MH_I2C_Read... [14:48:30]*** Stop cut motor [14:48:30]*** Cut end [14:48:30]Read from MH i2c: 01 07 00 94 46 00 00 00 00 00 FF 0F EF [14:48:30]process_action print_text done [14:48:30]requested_data is exist [14:48:30]produce_requested_data [14:48:30]requested_item fm.sn is exist - process it [14:48:30]wFMCommunicate request_size=4 [14:48:30]MH_SAM_APDU [14:48:30]CAPDU: 80 11 00 00 [14:48:30]Write to MH i2c: E2 08 00 95 46 80 11 00 00 00 00 00 00 55 [14:48:30]Write i2c OK [14:48:30]MH_I2C_Read... [14:48:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:31]Read from MH i2c: E2 [14:48:31]MH_I2C_Read... [14:48:31]Read from MH i2c: E2 17 00 [14:48:31]MH_I2C_Read... [14:48:31]Read from MH i2c: E2 17 00 95 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A4 [14:48:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:48:31]wFMCommunicate OK [14:48:31]requested_item fd.num is exist - process it [14:48:31]SAM_PROTO_GetFieldsCounters [14:48:31]wFMCommunicate request_size=4 [14:48:31]MH_SAM_APDU [14:48:31]CAPDU: 80 13 00 00 [14:48:31]Write to MH i2c: E2 08 00 96 46 80 13 00 00 00 00 00 00 58 [14:48:31]Write i2c OK [14:48:31]MH_I2C_Read... [14:48:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:31]Read from MH i2c: E2 [14:48:31]MH_I2C_Read... [14:48:31]Read from MH i2c: E2 62 00 [14:48:31]MH_I2C_Read... [14:48:31]Read from MH i2c: E2 62 00 96 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 18 71 00 00 0E 04 04 00 73 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 6F [14:48: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 18 71 00 00 0E 04 04 00 73 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 [14:48:31]wFMCommunicate OK [14:48:31]SAM_PROTO_GetFieldsCounters done [14:48:31]requested_item shift.num is exist - process it [14:48:31]requested_item shift.opened is exist - process it [14:48:31]req_shift_opened [14:48:31]FM_GetShiftState [14:48:31]SAM_PROTO_GetShiftState [14:48:31]wFMCommunicate request_size=4 [14:48:31]MH_SAM_APDU [14:48:31]CAPDU: 80 13 01 00 [14:48:31]Write to MH i2c: E2 08 00 97 46 80 13 01 00 00 00 00 00 5A [14:48:31]Write i2c OK [14:48:31]MH_I2C_Read... [14:48:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:31]Read from MH i2c: E2 [14:48:31]MH_I2C_Read... [14:48:31]Read from MH i2c: E2 0E 00 [14:48:31]MH_I2C_Read... [14:48:31]Read from MH i2c: E2 0E 00 97 46 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 73 [14:48:31]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [14:48:31]wFMCommunicate OK [14:48:31]SAM_PROTO_GetShiftState done [14:48:31]FM_GetShiftState done [14:48:31]req_shift_opened done [14:48:31]requested_item shift.open_date is exist - process it [14:48:31]req_shift_open_date [14:48:31]req_shift_open_date done [14:48:31]produce_requested_data done [14:48:31]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28952,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [14:48:31]process_action_free print_text [14:48:31]json_value_free [14:48:31]json_value_free done [14:48:31]process_json_proto returns [14:48:31]Send response to host [14:48:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28952,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [14:48:31]free response buf [14:48:31]execute_script done [14:48:31]execute_script returns [14:48:31]free content buf [14:48:31]Sock 9.Close socket [14:48:31]Sock 9.Thread stoped [14:48:33]OFD Sender: No OFD packet to send [14:48:38]OFD Sender: No OFD packet to send [14:48:43]OFD Sender: No OFD packet to send [14:48:48]OFD Sender: No OFD packet to send [14:48:53]OFD Sender: No OFD packet to send [14:48:58]OFD Sender: No OFD packet to send [14:49:03]OFD Sender: No OFD packet to send [14:49:08]OFD Sender: No OFD packet to send [14:49:13]OFD Sender: No OFD packet to send [14:49:18]OFD Sender: No OFD packet to send [14:49:23]OFD Sender: No OFD packet to send [14:49:28]OFD Sender: No OFD packet to send [14:49:33]OFD Sender: No OFD packet to send [14:49:38]OFD Sender: No OFD packet to send [14:49:43]OFD Sender: No OFD packet to send [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:22]accept exits with 7 [14:50:22]New connection [14:50:22]New thread 3066785124 created [14:50:22]Thread 3066928484 joined [14:50:22]Waiting for new connection... [14:50:22] Sock 7.Parse request [14:50:22]Sock 7.Check first char [14:50:22]Sock 7.First char is OK [14:50:22]request: POST /json_proto HTTP/1.0 [14:50:22]Method: POST [14:50:22]URL: /json_proto [14:50:22]Method is POST - this is cgi request [14:50:22]url: /json_proto [14:50:22]query_string will be loaded in cgi processing [14:50:22]execute_cgi json_proto POST (null) [14:50:22]execute_cgi path=json_proto method=POST [14:50:22]POST find Content-Length [14:50:22]Host: 172.17.33.3:8080 [14:50:22]Content-Length: 677 [14:50:22]Content-Type: application/json [14:50:22] [14:50:22]POST finish read [14:50:22]Found Content-Length = 677 [14:50:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347315", "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" : 64.30, "quantity" : 3.120, "sum" : 200.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:22]execute_script... [14:50: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)347315", "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" : 64.30, "quantity" : 3.120, "sum" : 200.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:22]POST & json_proto [14:50:22]process_json_proto [14:50:22]json parsed OK: [14:50:22]protocol is kg_v1.0 [14:50:22]action value=close_receipt [14:50:22]process_action close_receipt [14:50:22]cmd_close_receipt [14:50:22]MH_GetDate [14:50:22]Write to MH i2c: F0 00 00 98 46 CD [14:50:22]Write i2c OK [14:50:22]MH_I2C_Read... [14:50:22]Read from MH i2c: F0 [14:50:22]MH_I2C_Read... [14:50:22]Read from MH i2c: F0 09 00 [14:50:22]MH_I2C_Read... [14:50:22]Read from MH i2c: F0 09 00 98 46 00 B3 9B 1A 66 23 5B 8F 65 16 [14:50:22]GetLastDocTimeStamp 1713019580 [14:50:22]current date 1713019827 [14:50:22]FM_GetShiftState [14:50:22]SAM_PROTO_GetShiftState [14:50:22]wFMCommunicate request_size=4 [14:50:22]MH_SAM_APDU [14:50:22]CAPDU: 80 13 01 00 [14:50:22]Write to MH i2c: E2 08 00 99 46 80 13 01 00 00 00 00 00 5C [14:50:22]Write i2c OK [14:50:22]MH_I2C_Read... [14:50:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:22]Read from MH i2c: E2 [14:50:22]MH_I2C_Read... [14:50:22]Read from MH i2c: E2 0E 00 [14:50:22]MH_I2C_Read... [14:50:22]Read from MH i2c: E2 0E 00 99 46 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 75 [14:50:22]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [14:50:22]wFMCommunicate OK [14:50:22]SAM_PROTO_GetShiftState done [14:50:22]FM_GetShiftState done [14:50:22]opened in 1712967615 [14:50:22]opened+sec_in_day 1713054015 [14:50:22]quantity*price = 20061 [14:50:22]sum+1 = 20063 [14:50:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 160 13.04.2024 14:50 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28953 ФПД: 26221754583976 1/tax-web-control/client/api/v1/ticket?date=20240413T145027&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28953&fm=26221754583976&tin=02508201610067®Number=0000138879044617&sum=20000 [14:50:23]StoreToDocumentArchive [14:50:23]shift 115 fd 28953 [14:50:23]save to /storage/0115/doc_00028953 [14:50:23]save last doc name /storage/0115/doc_00028953 to /storage/kkm_last_doc_name [14:50:23]save OK [14:50:23]Clear old archive folders... [14:50:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:50:23]tlvbuf is 012301B0 [14:50:23]SAM_PROTO_ClearQueue [14:50:23]wFMCommunicate request_size=4 [14:50:23]MH_SAM_APDU [14:50:23]CAPDU: 80 09 00 00 [14:50:23]Write to MH i2c: E2 08 00 A6 46 80 09 00 00 00 00 00 00 5E [14:50:23]Write i2c OK [14:50:23]MH_I2C_Read... [14:50:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:50:23]Read from MH i2c: E2 [14:50:23]MH_I2C_Read... [14:50:23]Read from MH i2c: E2 03 00 [14:50:23]MH_I2C_Read... [14:50:23]Read from MH i2c: E2 03 00 A6 46 00 90 00 60 [14:50:23]RAPDU: 90 00 [14:50:23]wFMCommunicate OK [14:50:23]SAM_PROTO_ClearQueue done [14:50:23]KKMCreateOFDPacket [14:50:23]OFDProtocolAddRootSTLVToBuf [14:50:23]FM_MakeSignedData [14:50:23]FM_MakeSignedData [14:50:23]SAM_PROTO_SignData [14:50:23]wFMCommunicate request_size=4 [14:50:23]MH_SAM_APDU [14:50:23]CAPDU: 80 0D 01 02 [14:50:23]Write to MH i2c: E2 08 00 A7 46 80 0D 01 02 00 00 00 00 66 [14:50:23]Write i2c OK [14:50:23]MH_I2C_Read... [14:50:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:50:23]Read from MH i2c: E2 [14:50:23]MH_I2C_Read... [14:50:23]Read from MH i2c: E2 03 00 [14:50:23]MH_I2C_Read... [14:50:23]Read from MH i2c: E2 03 00 A7 46 00 90 00 61 [14:50:23]RAPDU: 90 00 [14:50:23]wFMCommunicate OK [14:50:23]wFMCommunicate request_size=255 [14:50:23]MH_SAM_APDU [14:50: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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 A0 00 00 00 F4 03 04 00 B3 9B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 19 71 00 00 35 04 06 00 17 [14:50:24]Write to MH i2c: E2 02 01 A8 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 A0 00 00 00 F4 03 04 00 B3 9B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 19 71 00 00 35 04 06 00 17 00 00 15 [14:50:24]Write i2c OK [14:50:24]MH_I2C_Read... [14:50:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:24]Read from MH i2c: E2 [14:50:24]MH_I2C_Read... [14:50:24]Read from MH i2c: E2 03 00 [14:50:24]MH_I2C_Read... [14:50:24]Read from MH i2c: E2 03 00 A8 46 00 90 00 62 [14:50:24]RAPDU: 90 00 [14:50:24]wFMCommunicate OK [14:50:24]wFMCommunicate request_size=10 [14:50:24]MH_SAM_APDU [14:50:24]CAPDU: 80 0D 02 02 05 D9 3A 5E 0B A8 [14:50:24]Write to MH i2c: E2 0D 00 A9 46 80 0D 02 02 05 00 D9 3A 5E 0B A8 00 00 97 [14:50:24]Write i2c OK [14:50:24]MH_I2C_Read... [14:50:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:24]Read from MH i2c: E2 [14:50:24]MH_I2C_Read... [14:50:24]Read from MH i2c: E2 03 00 [14:50:24]MH_I2C_Read... [14:50:24]Read from MH i2c: E2 03 00 A9 46 00 90 00 63 [14:50:24]RAPDU: 90 00 [14:50:24]wFMCommunicate OK [14:50:24]wFMCommunicate request_size=4 [14:50:24]MH_SAM_APDU [14:50:24]CAPDU: 80 0D 03 02 [14:50:24]Write to MH i2c: E2 08 00 AA 46 80 0D 03 02 00 00 00 00 6B [14:50:24]Write i2c OK [14:50:24]MH_I2C_Read... [14:50:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:24]Read from MH i2c: E2 [14:50:24]MH_I2C_Read... [14:50:24]Read from MH i2c: E2 0B 00 [14:50:24]MH_I2C_Read... [14:50:24]Read from MH i2c: E2 0B 00 AA 46 00 C4 5F DA E9 F4 54 5F DD 90 00 D6 [14:50:24]RAPDU: C4 5F DA E9 F4 54 5F DD 90 00 [14:50:24]wFMCommunicate OK [14:50:24]SAM_PROTO_SignData done [14:50:24]FM_MakeSignedData done [14:50:24]CreateOFDProtocolMessage [14:50:24]wFMCommunicate request_size=4 [14:50:24]MH_SAM_APDU [14:50:24]CAPDU: 80 11 00 00 [14:50:24]Write to MH i2c: E2 08 00 AB 46 80 11 00 00 00 00 00 00 6B [14:50:24]Write i2c OK [14:50:24]MH_I2C_Read... [14:50:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:24]Read from MH i2c: E2 [14:50:24]MH_I2C_Read... [14:50:24]Read from MH i2c: E2 17 00 [14:50:24]MH_I2C_Read... [14:50:24]Read from MH i2c: E2 17 00 AB 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BA [14:50:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:50:24]wFMCommunicate OK [14:50:24]CreateOFDProtocolMessage done [14:50:24]OFDSenderStorePacket 28953 [14:50:24]StoreOFDPacket docnum=28953 [14:50:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B6 98 07 01 F8 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 A0 00 00 00 F4 03 04 00 B3 9B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 19 71 00 00 35 04 06 00 17 D9 3A 5E 0B A8 C4 5F DA E9 F4 54 5F DD [14:50:24]CheckFolder [14:50:24]dirname=/storage/ofd_packets [14:50:24]CheckFolder done [14:50:24]ProducePacketName [14:50:24]name=ofd_packets/00028953 [14:50:24]NVStorageSaveData ofd_packets/00028953 [14:50:24]File name is /storage/ofd_packets/00028953 [14:50:24]Write 301 bytes [14:50:24]NVStorageSaveData done [14:50:24]OFDSenderStorePacket done [14:50:24]KKMCreateOFDPacket done [14:50:24]NVStorageSaveData kkm_last_timestamp [14:50:24]File name is /storage/kkm_last_timestamp [14:50:24]Write 4 bytes [14:50:24]NVStorageSaveData done [14:50:24]ExternCall_PrintAddStr [14:50:24]wPrintStart [14:50:24]Write to MH i2c: 01 00 00 AC 46 F2 [14:50:24]Write i2c OK [14:50:24]MH_I2C_Read... [14:50:24]Read from MH i2c: 01 [14:50:24]MH_I2C_Read... [14:50:24]Read from MH i2c: 01 07 00 [14:50:24]MH_I2C_Read... [14:50:24]Read from MH i2c: 01 07 00 AC 46 00 00 00 00 00 FF 0F 07 [14:50:24]RasterBufferAndPrint [14:50:24]line Счет N : (1)347315 [14:50:24]line ИНН: 02508201610067 [14:50:24]line Контрольно-Кассовый Чек [14:50:24]line ПРОДАЖА [14:50:24]line ТРК (МРК, ГНК) : 32 [14:50:24]line Товар: 2710124130 [14:50:24]line Аи-92-К-5 [14:50:24]line 3.120 * 64.30 [14:50:24]line = 200.62 [14:50:24]line НДС 12% НСП 1% [14:50:24]line > о реализуемом товаре [14:50:24]line ОКРУГЛЕНИЕ: -0.62 [14:50:24]line ИТОГО: 200.00 [14:50:24]line Внесено: 200.00 [14:50:24]line СДАЧА: 0.00 [14:50:24]line НСП 1% : 1.77 [14:50:24]line НДС 12% : 21.30 [14:50:24]line Наличными: 200.00 [14:50:24]line Безнал.: 0.00 [14:50:24]line Место: АЗС № 108 "Партнер Нефть" [14:50:24]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:50:24]line СНО: Общий режим [14:50:24]line Чек 160 13.04.2024 14:50 [14:50:24]line Смена: 115 ФФД: 1.0 [14:50:24]line ЗНМ: 0300000027 [14:50:24]line РНМ: 0000138879044617 [14:50:24]line Версия ККМ: 001 [14:50:24]line ФМ: 0000000000963154 [14:50:24]line ФД: 28953 [14:50:24]line ФПД: 26221754583976 [14:50:24]line 1/tax-web-control/client/api/v1/ticket?date=20240413T145027&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28953&fm=26221754583976&tin=02508201610067®Number=0000138879044617&sum=20000 [14:50:24]OFD Sender: Processing packet 28953 [packets to send 8, broken 7] [14:50:24]ProducePacketName [14:50:24]name=ofd_packets/00028953 [14:50:24]OFD Sender: To server: pG, [14:50:24]CommunicateWithHost lk.salyk.kg:30040 [14:50:24]ConnectInit lk.salyk.kg [14:50:24]written 0, free lines is 4095 [14:50:24]Connected sock=10 [14:50: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 31 35 34 0F 01 00 00 B6 98 07 01 F8 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 A0 00 00 00 F4 03 04 00 B3 9B 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 19 71 00 00 35 04 06 00 17 D9 3A 5E 0B A8 C4 5F DA E9 F4 54 5F DD [14:50:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AE 3D 47 00 A8 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 19 71 00 00 F4 03 04 00 5A 46 1A 66 B6 04 01 00 00 68 97 1F 7A A7 5C C9 33 [14:50:25]CommunicateWithHost err = 0 [14:50:25]CheckOFDResponse [14:50:25]1017 (14) - 77093643461234 [14:50:25]1041 (16) - 0000000000963154 [14:50:25]1040 (4) - 28953 [14:50:25]1012 (4) - 13.04.2024 08:46 [14:50:25]1206 (1) - 0 [14:50:25]OFD Sender: Remove packet 28953 [14:50:25]ProducePacketName [14:50:25]name=ofd_packets/00028953 [14:50:25]NVStorageDeleteData [14:50:25]Write to MH i2c: 01 00 00 D6 46 1C [14:50:25]Write i2c OK [14:50:25]MH_I2C_Read... [14:50:25]Read from MH i2c: 01 [14:50:25]MH_I2C_Read... [14:50:25]Read from MH i2c: 01 07 00 [14:50:25]MH_I2C_Read... [14:50:25]Read from MH i2c: 01 07 00 D6 46 00 00 00 00 00 C8 0C F7 [14:50:25]RasterBufferAndPrint [14:50:25]line [14:50:25]line [14:50:25]line [14:50:25]line [14:50:25]line [14:50:25]written 0, free lines is 3276 [14:50:25]MH_Cut [14:50:25]Write to MH i2c: D1 01 00 DD 46 01 F5 [14:50:25]Write i2c OK [14:50:25]MH_I2C_Read... [14:50:25]Read from MH i2c: D1 [14:50:25]MH_I2C_Read... [14:50:25]Read from MH i2c: D1 01 00 [14:50:25]MH_I2C_Read... [14:50:25]Read from MH i2c: D1 01 00 DD 46 00 F4 [14:50:25]Write to MH i2c: 01 00 00 DE 46 24 [14:50:25]Write i2c OK [14:50:25]MH_I2C_Read... [14:50:25]OFD Sender: No OFD packet to send [14:50:26]*** Cut start [14:50:26]*** Partial cut [14:50:26]*** CUTSNS_PIN = 1 [14:50:26]*** CUTSNS_PIN = 0 [14:50:26]*** Brake cut motor [14:50:26]Read from MH i2c: 01 [14:50:26]MH_I2C_Read... [14:50:26]*** Stop cut motor [14:50:26]*** Cut end [14:50:26]Read from MH i2c: 01 07 00 [14:50:26]MH_I2C_Read... [14:50:26]Read from MH i2c: 01 07 00 DE 46 00 00 00 00 00 FF 0F 39 [14:50:26]process_action close_receipt done [14:50:26]requested_data is exist [14:50:26]produce_requested_data [14:50:26]requested_item fm.sn is exist - process it [14:50:26]wFMCommunicate request_size=4 [14:50:26]MH_SAM_APDU [14:50:26]CAPDU: 80 11 00 00 [14:50:26]Write to MH i2c: E2 08 00 DF 46 80 11 00 00 00 00 00 00 9F [14:50:26]Write i2c OK [14:50:26]MH_I2C_Read... [14:50:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:26]Read from MH i2c: E2 [14:50:26]MH_I2C_Read... [14:50:26]Read from MH i2c: E2 17 00 [14:50:26]MH_I2C_Read... [14:50:26]Read from MH i2c: E2 17 00 DF 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EE [14:50:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:50:26]wFMCommunicate OK [14:50:26]requested_item fd.num is exist - process it [14:50:26]SAM_PROTO_GetFieldsCounters [14:50:26]wFMCommunicate request_size=4 [14:50:26]MH_SAM_APDU [14:50:26]CAPDU: 80 13 00 00 [14:50:26]Write to MH i2c: E2 08 00 E0 46 80 13 00 00 00 00 00 00 A2 [14:50:26]Write i2c OK [14:50:26]MH_I2C_Read... [14:50:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:50:26]Read from MH i2c: E2 [14:50:26]MH_I2C_Read... [14:50:26]Read from MH i2c: E2 62 00 [14:50:26]MH_I2C_Read... [14:50:26]Read from MH i2c: E2 62 00 E0 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 19 71 00 00 0E 04 04 00 73 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 BD [14:50: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 19 71 00 00 0E 04 04 00 73 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:50:26]wFMCommunicate OK [14:50:26]SAM_PROTO_GetFieldsCounters done [14:50:26]requested_item shift.num is exist - process it [14:50:26]requested_item shift.opened is exist - process it [14:50:26]req_shift_opened [14:50:26]FM_GetShiftState [14:50:26]SAM_PROTO_GetShiftState [14:50:26]wFMCommunicate request_size=4 [14:50:26]MH_SAM_APDU [14:50:26]CAPDU: 80 13 01 00 [14:50:26]Write to MH i2c: E2 08 00 E1 46 80 13 01 00 00 00 00 00 A4 [14:50:26]Write i2c OK [14:50:26]MH_I2C_Read... [14:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:26]Read from MH i2c: E2 [14:50:26]MH_I2C_Read... [14:50:26]Read from MH i2c: E2 0E 00 [14:50:26]MH_I2C_Read... [14:50:26]Read from MH i2c: E2 0E 00 E1 46 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 BD [14:50:26]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [14:50:26]wFMCommunicate OK [14:50:26]SAM_PROTO_GetShiftState done [14:50:26]FM_GetShiftState done [14:50:26]req_shift_opened done [14:50:26]requested_item shift.open_date is exist - process it [14:50:26]req_shift_open_date [14:50:26]req_shift_open_date done [14:50:26]produce_requested_data done [14:50:26]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28953,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [14:50:26]process_action_free close_receipt [14:50:26]json_value_free [14:50:26]json_value_free done [14:50:26]process_json_proto returns [14:50:26]Send response to host [14:50:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28953,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [14:50:26]free response buf [14:50:26]execute_script done [14:50:26]execute_script returns [14:50:26]free content buf [14:50:26]Sock 7.Close socket [14:50:26]Sock 7.Thread stoped [14:50:30]OFD Sender: No OFD packet to send [14:50:35]OFD Sender: No OFD packet to send [14:50:40]OFD Sender: No OFD packet to send [14:50:45]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:20]OFD Sender: No OFD packet to send [14:52:25]OFD Sender: No OFD packet to send [14:52:30]OFD Sender: No OFD packet to send [14:52:35]OFD Sender: No OFD packet to send [14:52:40]OFD Sender: No OFD packet to send [14:52:45]OFD Sender: No OFD packet to send [14:52:50]OFD Sender: No OFD packet to send [14:52:55]OFD Sender: No OFD packet to send [14:53:00]OFD Sender: No OFD packet to send [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:15]OFD Sender: No OFD packet to send [14:53:20]OFD Sender: No OFD packet to send [14:53:25]OFD Sender: No OFD packet to send [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:45]OFD Sender: No OFD packet to send [14:53:50]OFD Sender: No OFD packet to send [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:40]OFD Sender: No OFD packet to send [14:55:45]OFD Sender: No OFD packet to send [14:55:50]OFD Sender: No OFD packet to send [14:55:55]OFD Sender: No OFD packet to send [14:56:00]OFD Sender: No OFD packet to send [14:56:05]OFD Sender: No OFD packet to send [14:56:10]OFD Sender: No OFD packet to send [14:56:15]OFD Sender: No OFD packet to send [14:56:20]OFD Sender: No OFD packet to send [14:56:25]OFD Sender: No OFD packet to send [14:56:30]OFD Sender: No OFD packet to send [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [14:57:10]OFD Sender: No OFD packet to send [14:57:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]OFD Sender: No OFD packet to send [14:57:45]OFD Sender: No OFD packet to send [14:57:50]OFD Sender: No OFD packet to send [14:57:55]OFD Sender: No OFD packet to send [14:58:00]OFD Sender: No OFD packet to send [14:58:05]OFD Sender: No OFD packet to send [14:58:10]OFD Sender: No OFD packet to send [14:58:15]OFD Sender: No OFD packet to send [14:58:20]OFD Sender: No OFD packet to send [14:58:25]OFD Sender: No OFD packet to send [14:58:30]OFD Sender: No OFD packet to send [14:58:35]OFD Sender: No OFD packet to send [14:58:40]OFD Sender: No OFD packet to send [14:58:43]accept exits with 9 [14:58:43]New connection [14:58:43]New thread 3066928484 created [14:58:43]Thread 3066785124 joined [14:58:43]Waiting for new connection... [14:58:43] Sock 9.Parse request [14:58:43]Sock 9.Check first char [14:58:43]Sock 9.First char is OK [14:58:43]request: POST /json_proto HTTP/1.0 [14:58:43]Method: POST [14:58:43]URL: /json_proto [14:58:43]Method is POST - this is cgi request [14:58:43]url: /json_proto [14:58:43]query_string will be loaded in cgi processing [14:58:43]execute_cgi json_proto POST (null) [14:58:43]execute_cgi path=json_proto method=POST [14:58:43]POST find Content-Length [14:58:43]Host: 172.17.33.3:8080 [14:58:43]Content-Length: 670 [14:58:43]Content-Type: application/json [14:58:43] [14:58:43]POST finish read [14:58:43]Found Content-Length = 670 [14:58:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "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:43]execute_script... [14:58: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)347316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "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:43]POST & json_proto [14:58:43]process_json_proto [14:58:43]json parsed OK: [14:58:43]protocol is kg_v1.0 [14:58:43]action value=close_receipt [14:58:43]process_action close_receipt [14:58:43]cmd_close_receipt [14:58:43]MH_GetDate [14:58:43]Write to MH i2c: F0 00 00 E2 46 17 [14:58:43]Write i2c OK [14:58:43]MH_I2C_Read... [14:58:43]Read from MH i2c: F0 [14:58:43]MH_I2C_Read... [14:58:43]Read from MH i2c: F0 09 00 [14:58:43]MH_I2C_Read... [14:58:43]Read from MH i2c: F0 09 00 E2 46 00 A8 9D 1A 66 23 5B 8F 65 57 [14:58:43]GetLastDocTimeStamp 1713019827 [14:58:43]current date 1713020328 [14:58:43]FM_GetShiftState [14:58:43]SAM_PROTO_GetShiftState [14:58:43]wFMCommunicate request_size=4 [14:58:43]MH_SAM_APDU [14:58:43]CAPDU: 80 13 01 00 [14:58:43]Write to MH i2c: E2 08 00 E3 46 80 13 01 00 00 00 00 00 A6 [14:58:43]Write i2c OK [14:58:43]MH_I2C_Read... [14:58:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:43]Read from MH i2c: E2 [14:58:43]MH_I2C_Read... [14:58:43]Read from MH i2c: E2 0E 00 [14:58:43]MH_I2C_Read... [14:58:43]Read from MH i2c: E2 0E 00 E3 46 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 BF [14:58:43]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [14:58:43]wFMCommunicate OK [14:58:43]SAM_PROTO_GetShiftState done [14:58:43]FM_GetShiftState done [14:58:43]opened in 1712967615 [14:58:43]opened+sec_in_day 1713054015 [14:58:43]quantity*price = 50019 [14:58:43]sum+1 = 50021 [14:58:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 161 13.04.2024 14:58 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28954 ФПД: 154358360939257 1/tax-web-control/client/api/v1/ticket?date=20240413T145848&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28954&fm=154358360939257&tin=02508201610067®Number=0000138879044617&sum=50000 [14:58:44]StoreToDocumentArchive [14:58:44]shift 115 fd 28954 [14:58:44]save to /storage/0115/doc_00028954 [14:58:44]save last doc name /storage/0115/doc_00028954 to /storage/kkm_last_doc_name [14:58:44]save OK [14:58:44]Clear old archive folders... [14:58:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:58:44]tlvbuf is 01214420 [14:58:44]SAM_PROTO_ClearQueue [14:58:44]wFMCommunicate request_size=4 [14:58:44]MH_SAM_APDU [14:58:44]CAPDU: 80 09 00 00 [14:58:44]Write to MH i2c: E2 08 00 F0 46 80 09 00 00 00 00 00 00 A8 [14:58:44]Write i2c OK [14:58:44]MH_I2C_Read... [14:58:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:44]Read from MH i2c: E2 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: E2 03 00 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: E2 03 00 F0 46 00 90 00 AA [14:58:44]RAPDU: 90 00 [14:58:44]wFMCommunicate OK [14:58:44]SAM_PROTO_ClearQueue done [14:58:44]KKMCreateOFDPacket [14:58:44]OFDProtocolAddRootSTLVToBuf [14:58:44]FM_MakeSignedData [14:58:44]FM_MakeSignedData [14:58:44]SAM_PROTO_SignData [14:58:44]wFMCommunicate request_size=4 [14:58:44]MH_SAM_APDU [14:58:44]CAPDU: 80 0D 01 02 [14:58:44]Write to MH i2c: E2 08 00 F1 46 80 0D 01 02 00 00 00 00 B0 [14:58:44]Write i2c OK [14:58:44]MH_I2C_Read... [14:58:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:44]Read from MH i2c: E2 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: E2 03 00 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: E2 03 00 F1 46 00 90 00 AB [14:58:44]RAPDU: 90 00 [14:58:44]wFMCommunicate OK [14:58:44]wFMCommunicate request_size=255 [14:58:44]MH_SAM_APDU [14:58:44]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A1 00 00 00 F4 03 04 00 A8 9D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1A 71 00 00 35 04 06 00 [14:58:44]Write to MH i2c: E2 02 01 F2 46 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A1 00 00 00 F4 03 04 00 A8 9D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1A 71 00 00 35 04 06 00 00 00 66 [14:58:44]Write i2c OK [14:58:44]MH_I2C_Read... [14:58:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:44]Read from MH i2c: E2 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: E2 03 00 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: E2 03 00 F2 46 00 90 00 AC [14:58:44]RAPDU: 90 00 [14:58:44]wFMCommunicate OK [14:58:44]wFMCommunicate request_size=11 [14:58:44]MH_SAM_APDU [14:58:44]CAPDU: 80 0D 02 02 06 8C 63 5B 45 9A F9 [14:58:44]Write to MH i2c: E2 0E 00 F3 46 80 0D 02 02 06 00 8C 63 5B 45 9A F9 00 00 E1 [14:58:44]Write i2c OK [14:58:44]MH_I2C_Read... [14:58:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:44]Read from MH i2c: E2 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: E2 03 00 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: E2 03 00 F3 46 00 90 00 AD [14:58:44]RAPDU: 90 00 [14:58:44]wFMCommunicate OK [14:58:44]wFMCommunicate request_size=4 [14:58:44]MH_SAM_APDU [14:58:44]CAPDU: 80 0D 03 02 [14:58:44]Write to MH i2c: E2 08 00 F4 46 80 0D 03 02 00 00 00 00 B5 [14:58:44]Write i2c OK [14:58:44]MH_I2C_Read... [14:58:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:44]Read from MH i2c: E2 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: E2 0B 00 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: E2 0B 00 F4 46 00 92 8E 95 44 E5 34 99 A5 90 00 06 [14:58:44]RAPDU: 92 8E 95 44 E5 34 99 A5 90 00 [14:58:44]wFMCommunicate OK [14:58:44]SAM_PROTO_SignData done [14:58:44]FM_MakeSignedData done [14:58:44]CreateOFDProtocolMessage [14:58:44]wFMCommunicate request_size=4 [14:58:44]MH_SAM_APDU [14:58:44]CAPDU: 80 11 00 00 [14:58:44]Write to MH i2c: E2 08 00 F5 46 80 11 00 00 00 00 00 00 B5 [14:58:44]Write i2c OK [14:58:44]MH_I2C_Read... [14:58:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:44]Read from MH i2c: E2 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: E2 17 00 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: E2 17 00 F5 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 04 [14:58:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:58:44]wFMCommunicate OK [14:58:44]CreateOFDProtocolMessage done [14:58:44]OFDSenderStorePacket 28954 [14:58:44]StoreOFDPacket docnum=28954 [14:58:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 32 65 08 01 23 4A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A1 00 00 00 F4 03 04 00 A8 9D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1A 71 00 00 35 04 06 00 8C 63 5B 45 9A F9 92 8E 95 44 E5 34 99 A5 [14:58:44]CheckFolder [14:58:44]dirname=/storage/ofd_packets [14:58:44]CheckFolder done [14:58:44]ProducePacketName [14:58:44]name=ofd_packets/00028954 [14:58:44]NVStorageSaveData ofd_packets/00028954 [14:58:44]File name is /storage/ofd_packets/00028954 [14:58:44]Write 302 bytes [14:58:44]NVStorageSaveData done [14:58:44]OFDSenderStorePacket done [14:58:44]KKMCreateOFDPacket done [14:58:44]NVStorageSaveData kkm_last_timestamp [14:58:44]File name is /storage/kkm_last_timestamp [14:58:44]Write 4 bytes [14:58:44]NVStorageSaveData done [14:58:44]ExternCall_PrintAddStr [14:58:44]wPrintStart [14:58:44]Write to MH i2c: 01 00 00 F6 46 3C [14:58:44]Write i2c OK [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: 01 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: 01 07 00 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: 01 07 00 F6 46 00 00 00 00 00 FF 0F 51 [14:58:44]RasterBufferAndPrint [14:58:44]line Счет N : (1)347316 [14:58:44]line ИНН: 02508201610067 [14:58:44]line Контрольно-Кассовый Чек [14:58:44]line ПРОДАЖА [14:58:44]line ТРК (МРК, ГНК) : 12 [14:58:44]line Товар: 2710124130 [14:58:44]line SUPER-92-К-5 [14:58:44]line 7.660 * 65.30 [14:58:44]line = 500.20 [14:58:44]line НДС 12% НСП 1% [14:58:44]line > о реализуемом товаре [14:58:44]line ОКРУГЛЕНИЕ: -0.20 [14:58:44]line ИТОГО: 500.00 [14:58:44]line Внесено: 500.00 [14:58:44]line СДАЧА: 0.00 [14:58:44]line НСП 1% : 4.43 [14:58:44]line НДС 12% : 53.12 [14:58:44]line Наличными: 500.00 [14:58:44]line Безнал.: 0.00 [14:58:44]line Место: АЗС № 108 "Партнер Нефть" [14:58:44]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [14:58:44]line СНО: Общий режим [14:58:44]line Чек 161 13.04.2024 14:58 [14:58:44]line Смена: 115 ФФД: 1.0 [14:58:44]line ЗНМ: 0300000027 [14:58:44]line РНМ: 0000138879044617 [14:58:44]line Версия ККМ: 001 [14:58:44]line ФМ: 0000000000963154 [14:58:44]line ФД: 28954 [14:58:44]line ФПД: 154358360939257 [14:58:44]line 1/tax-web-control/client/api/v1/ticket?date=20240413T145848&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28954&fm=154358360939257&tin=02508201610067®Number=0000138879044617&sum=50000 [14:58:44]written 0, free lines is 4095 [14:58:44]OFD Sender: Processing packet 28954 [packets to send 8, broken 7] [14:58:44]ProducePacketName [14:58:44]name=ofd_packets/00028954 [14:58:44]OFD Sender: To server: pG, [14:58:44]CommunicateWithHost lk.salyk.kg:30040 [14:58:44]ConnectInit lk.salyk.kg [14:58:44]Connected sock=10 [14:58: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 31 35 34 10 01 00 00 32 65 08 01 23 4A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A1 00 00 00 F4 03 04 00 A8 9D 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1A 71 00 00 35 04 06 00 8C 63 5B 45 9A F9 92 8E 95 44 E5 34 99 A5 [14:58:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7C 8F 47 00 08 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 31 35 34 10 04 04 00 1A 71 00 00 F4 03 04 00 4E 48 1A 66 B6 04 01 00 00 E3 AC 51 FA 6A 05 C7 AC [14:58:45]CommunicateWithHost err = 0 [14:58:45]CheckOFDResponse [14:58:45]1017 (14) - 77093643461234 [14:58:45]1041 (16) - 0000000000963154 [14:58:45]1040 (4) - 28954 [14:58:45]1012 (4) - 13.04.2024 08:54 [14:58:45]1206 (1) - 0 [14:58:45]OFD Sender: Remove packet 28954 [14:58:45]ProducePacketName [14:58:45]name=ofd_packets/00028954 [14:58:45]NVStorageDeleteData [14:58:45]Write to MH i2c: 01 00 00 20 47 67 [14:58:45]Write i2c OK [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: 01 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: 01 07 00 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: 01 07 00 20 47 00 00 00 00 00 C6 0C 40 [14:58:45]RasterBufferAndPrint [14:58:45]line [14:58:45]line [14:58:45]line [14:58:45]line [14:58:45]line [14:58:45]written 0, free lines is 3276 [14:58:45]MH_Cut [14:58:45]Write to MH i2c: D1 01 00 27 47 01 40 [14:58:45]Write i2c OK [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: D1 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: D1 01 00 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: D1 01 00 27 47 00 3F [14:58:45]Write to MH i2c: 01 00 00 28 47 6F [14:58:45]Write i2c OK [14:58:45]MH_I2C_Read... [14:58:45]OFD Sender: No OFD packet to send [14:58:46]*** Cut start [14:58:46]*** Partial cut [14:58:46]*** CUTSNS_PIN = 1 [14:58:46]*** CUTSNS_PIN = 0 [14:58:46]*** Brake cut motor [14:58:46]Read from MH i2c: 01 [14:58:46]MH_I2C_Read... [14:58:46]*** Stop cut motor [14:58:46]*** Cut end [14:58:46]Read from MH i2c: 01 07 00 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: 01 07 00 28 47 00 00 00 00 00 FF 0F 84 [14:58:46]process_action close_receipt done [14:58:46]requested_data is exist [14:58:46]produce_requested_data [14:58:46]requested_item fm.sn is exist - process it [14:58:46]wFMCommunicate request_size=4 [14:58:46]MH_SAM_APDU [14:58:46]CAPDU: 80 11 00 00 [14:58:46]Write to MH i2c: E2 08 00 29 47 80 11 00 00 00 00 00 00 EA [14:58:46]Write i2c OK [14:58:46]MH_I2C_Read... [14:58:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:46]Read from MH i2c: E2 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: E2 17 00 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: E2 17 00 29 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 39 [14:58:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [14:58:46]wFMCommunicate OK [14:58:46]requested_item fd.num is exist - process it [14:58:46]SAM_PROTO_GetFieldsCounters [14:58:46]wFMCommunicate request_size=4 [14:58:46]MH_SAM_APDU [14:58:46]CAPDU: 80 13 00 00 [14:58:46]Write to MH i2c: E2 08 00 2A 47 80 13 00 00 00 00 00 00 ED [14:58:46]Write i2c OK [14:58:46]MH_I2C_Read... [14:58:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:46]Read from MH i2c: E2 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: E2 62 00 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: E2 62 00 2A 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1A 71 00 00 0E 04 04 00 73 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 0C [14:58: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1A 71 00 00 0E 04 04 00 73 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:58:46]wFMCommunicate OK [14:58:46]SAM_PROTO_GetFieldsCounters done [14:58:46]requested_item shift.num is exist - process it [14:58:46]requested_item shift.opened is exist - process it [14:58:46]req_shift_opened [14:58:46]FM_GetShiftState [14:58:46]SAM_PROTO_GetShiftState [14:58:46]wFMCommunicate request_size=4 [14:58:46]MH_SAM_APDU [14:58:46]CAPDU: 80 13 01 00 [14:58:46]Write to MH i2c: E2 08 00 2B 47 80 13 01 00 00 00 00 00 EF [14:58:46]Write i2c OK [14:58:46]MH_I2C_Read... [14:58:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:46]Read from MH i2c: E2 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: E2 0E 00 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: E2 0E 00 2B 47 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 08 [14:58:46]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [14:58:46]wFMCommunicate OK [14:58:46]SAM_PROTO_GetShiftState done [14:58:46]FM_GetShiftState done [14:58:46]req_shift_opened done [14:58:46]requested_item shift.open_date is exist - process it [14:58:46]req_shift_open_date [14:58:46]req_shift_open_date done [14:58:46]produce_requested_data done [14:58:46]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28954,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [14:58:46]process_action_free close_receipt [14:58:46]json_value_free [14:58:46]json_value_free done [14:58:46]process_json_proto returns [14:58:46]Send response to host [14:58:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28954,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [14:58:46]free response buf [14:58:46]execute_script done [14:58:46]execute_script returns [14:58:46]free content buf [14:58:46]Sock 9.Close socket [14:58:46]Sock 9.Thread stoped [14:58:50]OFD Sender: No OFD packet to send [14:58:55]OFD Sender: No OFD packet to send [14:59:00]OFD Sender: No OFD packet to send [14:59:05]OFD Sender: No OFD packet to send [14:59:10]OFD Sender: No OFD packet to send [14:59:15]OFD Sender: No OFD packet to send [14:59:20]OFD Sender: No OFD packet to send [14:59:25]OFD Sender: No OFD packet to send [14:59:30]OFD Sender: No OFD packet to send [14:59:35]OFD Sender: No OFD packet to send [14:59:40]OFD Sender: No OFD packet to send [14:59:45]OFD Sender: No OFD packet to send [14:59:50]OFD Sender: No OFD packet to send [14:59:55]OFD Sender: No OFD packet to send [15:00:00]OFD Sender: No OFD packet to send [15:00:05]OFD Sender: No OFD packet to send [15:00:10]OFD Sender: No OFD packet to send [15:00:15]OFD Sender: No OFD packet to send [15:00:20]OFD Sender: No OFD packet to send [15:00:25]OFD Sender: No OFD packet to send [15:00:26]accept exits with 7 [15:00:26]New connection [15:00:26]New thread 3066785124 created [15:00:26]Thread 3066928484 joined [15:00:26]Waiting for new connection... [15:00:26] Sock 7.Parse request [15:00:26]Sock 7.Check first char [15:00:26]Sock 7.First char is OK [15:00:26]request: POST /json_proto HTTP/1.0 [15:00:26]Method: POST [15:00:26]URL: /json_proto [15:00:26]Method is POST - this is cgi request [15:00:26]url: /json_proto [15:00:26]query_string will be loaded in cgi processing [15:00:26]execute_cgi json_proto POST (null) [15:00:26]execute_cgi path=json_proto method=POST [15:00:26]POST find Content-Length [15:00:26]Host: 172.17.33.3:8080 [15:00:26]Content-Length: 726 [15:00:26]Content-Type: application/json [15:00:26] [15:00:26]POST finish read [15:00:26]Found Content-Length = 726 [15:00:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 28954, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "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:00:26]execute_script... [15:00:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 28954, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "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:00:26]POST & json_proto [15:00:26]process_json_proto [15:00:26]json parsed OK: [15:00:26]protocol is kg_v1.0 [15:00:26]action value=close_receipt [15:00:26]process_action close_receipt [15:00:26]cmd_close_receipt [15:00:26]MH_GetDate [15:00:26]Write to MH i2c: F0 00 00 2C 47 62 [15:00:26]Write i2c OK [15:00:26]MH_I2C_Read... [15:00:26]Read from MH i2c: F0 [15:00:26]MH_I2C_Read... [15:00:26]Read from MH i2c: F0 09 00 [15:00:26]MH_I2C_Read... [15:00:26]Read from MH i2c: F0 09 00 2C 47 00 0F 9E 1A 66 23 5B 8F 65 0A [15:00:26]GetLastDocTimeStamp 1713020328 [15:00:26]current date 1713020431 [15:00:26]FM_GetShiftState [15:00:26]SAM_PROTO_GetShiftState [15:00:26]wFMCommunicate request_size=4 [15:00:26]MH_SAM_APDU [15:00:26]CAPDU: 80 13 01 00 [15:00:26]Write to MH i2c: E2 08 00 2D 47 80 13 01 00 00 00 00 00 F1 [15:00:26]Write i2c OK [15:00:26]MH_I2C_Read... [15:00:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:26]Read from MH i2c: E2 [15:00:26]MH_I2C_Read... [15:00:26]Read from MH i2c: E2 0E 00 [15:00:26]MH_I2C_Read... [15:00:26]Read from MH i2c: E2 0E 00 2D 47 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 0A [15:00:26]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:00:26]wFMCommunicate OK [15:00:26]SAM_PROTO_GetShiftState done [15:00:26]FM_GetShiftState done [15:00:26]opened in 1712967615 [15:00:26]opened+sec_in_day 1713054015 [15:00:26]quantity*price = 50019 [15:00:26]sum+1 = 50021 [15:00:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 162 13.04.2024 15:00 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФД осн.: 28954 ФМ осн.: 0000000000963154 ФМ: 0000000000963154 ФД: 28955 ФПД: 215359583602698 1/tax-web-control/client/api/v1/ticket?date=20240413T150031&type=2&operation_type=1&fn_number=0000000000963154&fd_number=28955&fm=215359583602698&tin=02508201610067®Number=0000138879044617&sum=50000 [15:00:27]StoreToDocumentArchive [15:00:27]shift 115 fd 28955 [15:00:27]save to /storage/0115/doc_00028955 [15:00:27]save last doc name /storage/0115/doc_00028955 to /storage/kkm_last_doc_name [15:00:27]save OK [15:00:27]Clear old archive folders... [15:00:27]ProcessDocumentItem done err = 0, tmpTLVsize=280 [15:00:27]tlvbuf is 01294D00 [15:00:27]SAM_PROTO_ClearQueue [15:00:27]wFMCommunicate request_size=4 [15:00:27]MH_SAM_APDU [15:00:27]CAPDU: 80 09 00 00 [15:00:27]Write to MH i2c: E2 08 00 3C 47 80 09 00 00 00 00 00 00 F5 [15:00:27]Write i2c OK [15:00:27]MH_I2C_Read... [15:00:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:27]Read from MH i2c: E2 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: E2 03 00 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: E2 03 00 3C 47 00 90 00 F7 [15:00:27]RAPDU: 90 00 [15:00:27]wFMCommunicate OK [15:00:27]SAM_PROTO_ClearQueue done [15:00:27]KKMCreateOFDPacket [15:00:27]OFDProtocolAddRootSTLVToBuf [15:00:27]FM_MakeSignedData [15:00:27]FM_MakeSignedData [15:00:27]SAM_PROTO_SignData [15:00:27]wFMCommunicate request_size=4 [15:00:27]MH_SAM_APDU [15:00:27]CAPDU: 80 0D 01 02 [15:00:27]Write to MH i2c: E2 08 00 3D 47 80 0D 01 02 00 00 00 00 FD [15:00:27]Write i2c OK [15:00:27]MH_I2C_Read... [15:00:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:27]Read from MH i2c: E2 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: E2 03 00 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: E2 03 00 3D 47 00 90 00 F8 [15:00:27]RAPDU: 90 00 [15:00:27]wFMCommunicate OK [15:00:27]wFMCommunicate request_size=255 [15:00:27]MH_SAM_APDU [15:00:27]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A2 00 00 00 F4 03 04 00 0F 9E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 1A 71 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 [15:00:27]Write to MH i2c: E2 02 01 3E 47 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A2 00 00 00 F4 03 04 00 0F 9E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 1A 71 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 00 00 4E [15:00:27]Write i2c OK [15:00:27]MH_I2C_Read... [15:00:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:27]Read from MH i2c: E2 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: E2 03 00 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: E2 03 00 3E 47 00 90 00 F9 [15:00:27]RAPDU: 90 00 [15:00:27]wFMCommunicate OK [15:00:27]wFMCommunicate request_size=39 [15:00:27]MH_SAM_APDU [15:00:27]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1B 71 00 00 35 04 06 00 C3 DE 4F 7A C8 0A [15:00:27]Write to MH i2c: E2 2A 00 3F 47 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1B 71 00 00 35 04 06 00 C3 DE 4F 7A C8 0A 00 00 7F [15:00:27]Write i2c OK [15:00:27]MH_I2C_Read... [15:00:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:27]Read from MH i2c: E2 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: E2 03 00 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: E2 03 00 3F 47 00 90 00 FA [15:00:27]RAPDU: 90 00 [15:00:27]wFMCommunicate OK [15:00:27]wFMCommunicate request_size=4 [15:00:27]MH_SAM_APDU [15:00:27]CAPDU: 80 0D 03 02 [15:00:27]Write to MH i2c: E2 08 00 40 47 80 0D 03 02 00 00 00 00 02 [15:00:27]Write i2c OK [15:00:27]MH_I2C_Read... [15:00:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:27]Read from MH i2c: E2 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: E2 0B 00 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: E2 0B 00 40 47 00 1A 38 74 50 76 F0 96 E0 90 00 F5 [15:00:27]RAPDU: 1A 38 74 50 76 F0 96 E0 90 00 [15:00:27]wFMCommunicate OK [15:00:27]SAM_PROTO_SignData done [15:00:27]FM_MakeSignedData done [15:00:27]CreateOFDProtocolMessage [15:00:27]wFMCommunicate request_size=4 [15:00:27]MH_SAM_APDU [15:00:27]CAPDU: 80 11 00 00 [15:00:27]Write to MH i2c: E2 08 00 41 47 80 11 00 00 00 00 00 00 02 [15:00:27]Write i2c OK [15:00:27]MH_I2C_Read... [15:00:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:28]Read from MH i2c: E2 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: E2 17 00 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: E2 17 00 41 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 51 [15:00:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:00:28]wFMCommunicate OK [15:00:28]CreateOFDProtocolMessage done [15:00:28]OFDSenderStorePacket 28955 [15:00:28]StoreOFDPacket docnum=28955 [15:00:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 2C 01 00 00 A9 8C 24 01 E0 9B 5A 03 01 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A2 00 00 00 F4 03 04 00 0F 9E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 1A 71 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1B 71 00 00 35 04 06 00 C3 DE 4F 7A C8 0A 1A 38 74 50 76 F0 96 E0 [15:00:28]CheckFolder [15:00:28]dirname=/storage/ofd_packets [15:00:28]CheckFolder done [15:00:28]ProducePacketName [15:00:28]name=ofd_packets/00028955 [15:00:28]NVStorageSaveData ofd_packets/00028955 [15:00:28]File name is /storage/ofd_packets/00028955 [15:00:28]Write 330 bytes [15:00:28]NVStorageSaveData done [15:00:28]OFDSenderStorePacket done [15:00:28]KKMCreateOFDPacket done [15:00:28]NVStorageSaveData kkm_last_timestamp [15:00:28]File name is /storage/kkm_last_timestamp [15:00:28]Write 4 bytes [15:00:28]NVStorageSaveData done [15:00:28]ExternCall_PrintAddStr [15:00:28]wPrintStart [15:00:28]Write to MH i2c: 01 00 00 42 47 89 [15:00:28]Write i2c OK [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: 01 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: 01 07 00 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: 01 07 00 42 47 00 00 00 00 00 FF 0F 9E [15:00:28]RasterBufferAndPrint [15:00:28]line Счет N : (1)347316 [15:00:28]line ИНН: 02508201610067 [15:00:28]line Контрольно-Кассовый Чек [15:00:28]line ВОЗВРАТ ПРОДАЖИ [15:00:28]line ТРК (МРК, ГНК) : 12 [15:00:28]line Товар: 2710124130 [15:00:28]line SUPER-92-К-5 [15:00:28]line 7.660 * 65.30 [15:00:28]line = 500.20 [15:00:28]line НДС 12% НСП 1% [15:00:28]line > о реализуемом товаре [15:00:28]line ОКРУГЛЕНИЕ: -0.20 [15:00:28]line ИТОГО: 500.00 [15:00:28]line НСП 1% : 4.43 [15:00:28]line НДС 12% : 53.12 [15:00:28]line Наличными: 500.00 [15:00:28]line Безнал.: 0.00 [15:00:28]line Место: АЗС № 108 "Партнер Нефть" [15:00:28]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:00:28]line СНО: Общий режим [15:00:28]line Чек 162 13.04.2024 15:00 [15:00:28]line Смена: 115 ФФД: 1.0 [15:00:28]line ЗНМ: 0300000027 [15:00:28]line РНМ: 0000138879044617 [15:00:28]line Версия ККМ: 001 [15:00:28]line ФД осн.: 28954 [15:00:28]line ФМ осн.: 0000000000963154 [15:00:28]line ФМ: 0000000000963154 [15:00:28]line ФД: 28955 [15:00:28]line ФПД: 215359583602698 [15:00:28]line 1/tax-web-control/client/api/v1/ticket?date=20240413T150031&type=2&operation_type=1&fn_number=0000000000963154&fd_number=28955&fm=215359583602698&tin=02508201610067®Number=0000138879044617&sum=50000 [15:00:28]OFD Sender: Processing packet 28955 [packets to send 8, broken 7] [15:00:28]ProducePacketName [15:00:28]name=ofd_packets/00028955 [15:00:28]OFD Sender: To server: pG, [15:00:28]CommunicateWithHost lk.salyk.kg:30040 [15:00:28]ConnectInit lk.salyk.kg [15:00:28]written 0, free lines is 4095 [15:00:28]Connected sock=10 [15:00: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 31 35 34 2C 01 00 00 A9 8C 24 01 E0 9B 5A 03 01 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A2 00 00 00 F4 03 04 00 0F 9E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 1A 71 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1B 71 00 00 35 04 06 00 C3 DE 4F 7A C8 0A 1A 38 74 50 76 F0 96 E0 [15:00:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6B 0B 47 00 BB 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 31 35 34 10 04 04 00 1B 71 00 00 F4 03 04 00 B6 48 1A 66 B6 04 01 00 00 41 8F D2 F3 BD 55 94 50 [15:00:28]CommunicateWithHost err = 0 [15:00:28]CheckOFDResponse [15:00:28]1017 (14) - 77093643461234 [15:00:28]1041 (16) - 0000000000963154 [15:00:28]1040 (4) - 28955 [15:00:28]1012 (4) - 13.04.2024 08:56 [15:00:28]1206 (1) - 0 [15:00:28]OFD Sender: Remove packet 28955 [15:00:28]ProducePacketName [15:00:28]name=ofd_packets/00028955 [15:00:28]NVStorageDeleteData [15:00:28]Write to MH i2c: 01 00 00 6C 47 B3 [15:00:28]Write i2c OK [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: 01 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: 01 07 00 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: 01 07 00 6C 47 00 00 00 00 00 D0 0C 96 [15:00:28]RasterBufferAndPrint [15:00:28]line [15:00:28]line [15:00:28]line [15:00:28]line [15:00:28]line [15:00:28]written 0, free lines is 3287 [15:00:28]MH_Cut [15:00:28]Write to MH i2c: D1 01 00 73 47 01 8C [15:00:28]Write i2c OK [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: D1 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: D1 01 00 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: D1 01 00 73 47 00 8B [15:00:28]Write to MH i2c: 01 00 00 74 47 BB [15:00:28]Write i2c OK [15:00:28]MH_I2C_Read... [15:00:29]OFD Sender: No OFD packet to send [15:00:29]*** Cut start [15:00:29]*** Partial cut [15:00:29]*** CUTSNS_PIN = 1 [15:00:29]*** CUTSNS_PIN = 0 [15:00:29]*** Brake cut motor [15:00:30]Read from MH i2c: 01 [15:00:30]MH_I2C_Read... [15:00:30]*** Stop cut motor [15:00:30]*** Cut end [15:00:30]Read from MH i2c: 01 07 00 [15:00:30]MH_I2C_Read... [15:00:30]Read from MH i2c: 01 07 00 74 47 00 00 00 00 00 FF 0F D0 [15:00:30]process_action close_receipt done [15:00:30]requested_data is exist [15:00:30]produce_requested_data [15:00:30]requested_item fm.sn is exist - process it [15:00:30]wFMCommunicate request_size=4 [15:00:30]MH_SAM_APDU [15:00:30]CAPDU: 80 11 00 00 [15:00:30]Write to MH i2c: E2 08 00 75 47 80 11 00 00 00 00 00 00 36 [15:00:30]Write i2c OK [15:00:30]MH_I2C_Read... [15:00:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:30]Read from MH i2c: E2 [15:00:30]MH_I2C_Read... [15:00:30]Read from MH i2c: E2 17 00 [15:00:30]MH_I2C_Read... [15:00:30]Read from MH i2c: E2 17 00 75 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 85 [15:00:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:00:30]wFMCommunicate OK [15:00:30]requested_item fd.num is exist - process it [15:00:30]SAM_PROTO_GetFieldsCounters [15:00:30]wFMCommunicate request_size=4 [15:00:30]MH_SAM_APDU [15:00:30]CAPDU: 80 13 00 00 [15:00:30]Write to MH i2c: E2 08 00 76 47 80 13 00 00 00 00 00 00 39 [15:00:30]Write i2c OK [15:00:30]MH_I2C_Read... [15:00:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:30]Read from MH i2c: E2 [15:00:30]MH_I2C_Read... [15:00:30]Read from MH i2c: E2 62 00 [15:00:30]MH_I2C_Read... [15:00:30]Read from MH i2c: E2 62 00 76 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1B 71 00 00 0E 04 04 00 73 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 5C [15:00: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1B 71 00 00 0E 04 04 00 73 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 [15:00:30]wFMCommunicate OK [15:00:30]SAM_PROTO_GetFieldsCounters done [15:00:30]requested_item shift.num is exist - process it [15:00:30]requested_item shift.opened is exist - process it [15:00:30]req_shift_opened [15:00:30]FM_GetShiftState [15:00:30]SAM_PROTO_GetShiftState [15:00:30]wFMCommunicate request_size=4 [15:00:30]MH_SAM_APDU [15:00:30]CAPDU: 80 13 01 00 [15:00:30]Write to MH i2c: E2 08 00 77 47 80 13 01 00 00 00 00 00 3B [15:00:30]Write i2c OK [15:00:30]MH_I2C_Read... [15:00:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:30]Read from MH i2c: E2 [15:00:30]MH_I2C_Read... [15:00:30]Read from MH i2c: E2 0E 00 [15:00:30]MH_I2C_Read... [15:00:30]Read from MH i2c: E2 0E 00 77 47 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 54 [15:00:30]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:00:30]wFMCommunicate OK [15:00:30]SAM_PROTO_GetShiftState done [15:00:30]FM_GetShiftState done [15:00:30]req_shift_opened done [15:00:30]requested_item shift.open_date is exist - process it [15:00:30]req_shift_open_date [15:00:30]req_shift_open_date done [15:00:30]produce_requested_data done [15:00:30]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28955,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [15:00:30]process_action_free close_receipt [15:00:30]json_value_free [15:00:30]json_value_free done [15:00:30]process_json_proto returns [15:00:30]Send response to host [15:00:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28955,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [15:00:30]free response buf [15:00:30]execute_script done [15:00:30]execute_script returns [15:00:30]free content buf [15:00:30]Sock 7.Close socket [15:00:30]Sock 7.Thread stoped [15:00:30]accept exits with 9 [15:00:30]New connection [15:00:30]New thread 3066928484 created [15:00:30]Thread 3066785124 joined [15:00:30]Waiting for new connection... [15:00:30] Sock 9.Parse request [15:00:30]Sock 9.Check first char [15:00:30]Sock 9.First char is OK [15:00:30]request: POST /json_proto HTTP/1.0 [15:00:30]Method: POST [15:00:30]URL: /json_proto [15:00:30]Method is POST - this is cgi request [15:00:30]url: /json_proto [15:00:30]query_string will be loaded in cgi processing [15:00:30]execute_cgi json_proto POST (null) [15:00:30]execute_cgi path=json_proto method=POST [15:00:30]POST find Content-Length [15:00:30]Host: 172.17.33.3:8080 [15:00:30]Content-Length: 670 [15:00:30]Content-Type: application/json [15:00:30] [15:00:30]POST finish read [15:00:30]Found Content-Length = 670 [15:00:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 2.920, "sum" : 190.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 190.00, "payments": [ { "type": 0, "sum" : 190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:30]execute_script... [15:00: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)347316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 2.920, "sum" : 190.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 190.00, "payments": [ { "type": 0, "sum" : 190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:30]POST & json_proto [15:00:30]process_json_proto [15:00:30]json parsed OK: [15:00:30]protocol is kg_v1.0 [15:00:30]action value=close_receipt [15:00:30]process_action close_receipt [15:00:30]cmd_close_receipt [15:00:30]MH_GetDate [15:00:30]Write to MH i2c: F0 00 00 78 47 AE [15:00:30]Write i2c OK [15:00:30]MH_I2C_Read... [15:00:30]Read from MH i2c: F0 [15:00:30]MH_I2C_Read... [15:00:30]Read from MH i2c: F0 09 00 [15:00:30]MH_I2C_Read... [15:00:30]Read from MH i2c: F0 09 00 78 47 00 14 9E 1A 66 23 5B 8F 65 5B [15:00:30]GetLastDocTimeStamp 1713020431 [15:00:30]current date 1713020436 [15:00:30]FM_GetShiftState [15:00:30]SAM_PROTO_GetShiftState [15:00:30]wFMCommunicate request_size=4 [15:00:30]MH_SAM_APDU [15:00:30]CAPDU: 80 13 01 00 [15:00:30]Write to MH i2c: E2 08 00 79 47 80 13 01 00 00 00 00 00 3D [15:00:30]Write i2c OK [15:00:30]MH_I2C_Read... [15:00:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:30]Read from MH i2c: E2 [15:00:30]MH_I2C_Read... [15:00:30]Read from MH i2c: E2 0E 00 [15:00:30]MH_I2C_Read... [15:00:30]Read from MH i2c: E2 0E 00 79 47 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 56 [15:00:30]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:00:30]wFMCommunicate OK [15:00:30]SAM_PROTO_GetShiftState done [15:00:30]FM_GetShiftState done [15:00:30]opened in 1712967615 [15:00:30]opened+sec_in_day 1713054015 [15:00:30]quantity*price = 19067 [15:00:30]sum+1 = 19069 [15:00:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 190.00 Внесено: 500.00 СДАЧА: 310.00 НСП 1% : 1.69 НДС 12% : 20.25 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 163 13.04.2024 15:00 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28956 ФПД: 230668175879457 1/tax-web-control/client/api/v1/ticket?date=20240413T150036&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28956&fm=230668175879457&tin=02508201610067®Number=0000138879044617&sum=19000 [15:00:32]StoreToDocumentArchive [15:00:32]shift 115 fd 28956 [15:00:32]save to /storage/0115/doc_00028956 [15:00:32]save last doc name /storage/0115/doc_00028956 to /storage/kkm_last_doc_name [15:00:32]save OK [15:00:32]Clear old archive folders... [15:00:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:00:32]tlvbuf is 0121DDB0 [15:00:32]SAM_PROTO_ClearQueue [15:00:32]wFMCommunicate request_size=4 [15:00:32]MH_SAM_APDU [15:00:32]CAPDU: 80 09 00 00 [15:00:32]Write to MH i2c: E2 08 00 86 47 80 09 00 00 00 00 00 00 3F [15:00:32]Write i2c OK [15:00:32]MH_I2C_Read... [15:00:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:32]Read from MH i2c: E2 [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: E2 03 00 [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: E2 03 00 86 47 00 90 00 41 [15:00:32]RAPDU: 90 00 [15:00:32]wFMCommunicate OK [15:00:32]SAM_PROTO_ClearQueue done [15:00:32]KKMCreateOFDPacket [15:00:32]OFDProtocolAddRootSTLVToBuf [15:00:32]FM_MakeSignedData [15:00:32]FM_MakeSignedData [15:00:32]SAM_PROTO_SignData [15:00:32]wFMCommunicate request_size=4 [15:00:32]MH_SAM_APDU [15:00:32]CAPDU: 80 0D 01 02 [15:00:32]Write to MH i2c: E2 08 00 87 47 80 0D 01 02 00 00 00 00 47 [15:00:32]Write i2c OK [15:00:32]MH_I2C_Read... [15:00:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:32]Read from MH i2c: E2 [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: E2 03 00 [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: E2 03 00 87 47 00 90 00 42 [15:00:32]RAPDU: 90 00 [15:00:32]wFMCommunicate OK [15:00:32]wFMCommunicate request_size=255 [15:00:32]MH_SAM_APDU [15:00:32]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 7C 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 14 9E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1C 71 00 00 35 04 06 00 [15:00:32]Write to MH i2c: E2 02 01 88 47 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 7C 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 14 9E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1C 71 00 00 35 04 06 00 00 00 5E [15:00:32]Write i2c OK [15:00:32]MH_I2C_Read... [15:00:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:32]Read from MH i2c: E2 [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: E2 03 00 [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: E2 03 00 88 47 00 90 00 43 [15:00:32]RAPDU: 90 00 [15:00:32]wFMCommunicate OK [15:00:32]wFMCommunicate request_size=11 [15:00:32]MH_SAM_APDU [15:00:32]CAPDU: 80 0D 02 02 06 D1 CA 9E AF 2D 21 [15:00:32]Write to MH i2c: E2 0E 00 89 47 80 0D 02 02 06 00 D1 CA 9E AF 2D 21 00 00 8C [15:00:32]Write i2c OK [15:00:32]MH_I2C_Read... [15:00:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:32]Read from MH i2c: E2 [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: E2 03 00 [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: E2 03 00 89 47 00 90 00 44 [15:00:32]RAPDU: 90 00 [15:00:32]wFMCommunicate OK [15:00:32]wFMCommunicate request_size=4 [15:00:32]MH_SAM_APDU [15:00:32]CAPDU: 80 0D 03 02 [15:00:32]Write to MH i2c: E2 08 00 8A 47 80 0D 03 02 00 00 00 00 4C [15:00:32]Write i2c OK [15:00:32]MH_I2C_Read... [15:00:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:32]Read from MH i2c: E2 [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: E2 0B 00 [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: E2 0B 00 8A 47 00 3E 49 C1 27 24 8C 8D 0C 90 00 05 [15:00:32]RAPDU: 3E 49 C1 27 24 8C 8D 0C 90 00 [15:00:32]wFMCommunicate OK [15:00:32]SAM_PROTO_SignData done [15:00:32]FM_MakeSignedData done [15:00:32]CreateOFDProtocolMessage [15:00:32]wFMCommunicate request_size=4 [15:00:32]MH_SAM_APDU [15:00:32]CAPDU: 80 11 00 00 [15:00:32]Write to MH i2c: E2 08 00 8B 47 80 11 00 00 00 00 00 00 4C [15:00:32]Write i2c OK [15:00:32]MH_I2C_Read... [15:00:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:32]Read from MH i2c: E2 [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: E2 17 00 [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: E2 17 00 8B 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9B [15:00:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:00:32]wFMCommunicate OK [15:00:32]CreateOFDProtocolMessage done [15:00:32]OFDSenderStorePacket 28956 [15:00:32]StoreOFDPacket docnum=28956 [15:00:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 07 59 08 01 81 A6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 7C 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 14 9E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1C 71 00 00 35 04 06 00 D1 CA 9E AF 2D 21 3E 49 C1 27 24 8C 8D 0C [15:00:32]CheckFolder [15:00:32]dirname=/storage/ofd_packets [15:00:32]CheckFolder done [15:00:32]ProducePacketName [15:00:32]name=ofd_packets/00028956 [15:00:32]NVStorageSaveData ofd_packets/00028956 [15:00:32]File name is /storage/ofd_packets/00028956 [15:00:32]Write 302 bytes [15:00:32]NVStorageSaveData done [15:00:32]OFDSenderStorePacket done [15:00:32]KKMCreateOFDPacket done [15:00:32]NVStorageSaveData kkm_last_timestamp [15:00:32]File name is /storage/kkm_last_timestamp [15:00:32]Write 4 bytes [15:00:32]NVStorageSaveData done [15:00:32]ExternCall_PrintAddStr [15:00:32]wPrintStart [15:00:32]Write to MH i2c: 01 00 00 8C 47 D3 [15:00:32]Write i2c OK [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: 01 [15:00:32]MH_I2C_Read... [15:00:32]OFD Sender: Processing packet 28956 [packets to send 8, broken 7] [15:00:32]ProducePacketName [15:00:32]name=ofd_packets/00028956 [15:00:32]OFD Sender: To server: pG, [15:00:32]CommunicateWithHost lk.salyk.kg:30040 [15:00:32]ConnectInit lk.salyk.kg [15:00:32]Read from MH i2c: 01 07 00 [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: 01 07 00 8C 47 00 00 00 00 00 FF 0F E8 [15:00:32]RasterBufferAndPrint [15:00:32]line Счет N : (1)347316 [15:00:32]line ИНН: 02508201610067 [15:00:32]line Контрольно-Кассовый Чек [15:00:32]line ПРОДАЖА [15:00:32]line ТРК (МРК, ГНК) : 12 [15:00:32]line Товар: 2710124130 [15:00:32]line SUPER-92-К-5 [15:00:32]line 2.920 * 65.30 [15:00:32]line = 190.68 [15:00:32]line НДС 12% НСП 1% [15:00:32]line > о реализуемом товаре [15:00:32]line ОКРУГЛЕНИЕ: -0.68 [15:00:32]line ИТОГО: 190.00 [15:00:32]line Внесено: 500.00 [15:00:32]line СДАЧА: 310.00 [15:00:32]line НСП 1% : 1.69 [15:00:32]line НДС 12% : 20.25 [15:00:33]line Наличными: 190.00 [15:00:33]line Безнал.: 0.00 [15:00:33]line Место: АЗС № 108 "Партнер Нефть" [15:00:33]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:00:33]line СНО: Общий режим [15:00:33]line Чек 163 13.04.2024 15:00 [15:00:33]line Смена: 115 ФФД: 1.0 [15:00:33]line ЗНМ: 0300000027 [15:00:33]line РНМ: 0000138879044617 [15:00:33]line Версия ККМ: 001 [15:00:33]line ФМ: 0000000000963154 [15:00:33]line ФД: 28956 [15:00:33]line ФПД: 230668175879457 [15:00:33]line 1/tax-web-control/client/api/v1/ticket?date=20240413T150036&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28956&fm=230668175879457&tin=02508201610067®Number=0000138879044617&sum=19000 [15:00:33]written 0, free lines is 4095 [15:00:33]Connected sock=10 [15: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 31 35 34 10 01 00 00 07 59 08 01 81 A6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 0B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 7C 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 14 9E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1C 71 00 00 35 04 06 00 D1 CA 9E AF 2D 21 3E 49 C1 27 24 8C 8D 0C [15:00:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C7 9D 47 00 65 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1C 71 00 00 F4 03 04 00 BA 48 1A 66 B6 04 01 00 00 37 F2 4E A0 8F 04 F8 0D [15:00:33]CommunicateWithHost err = 0 [15:00:33]CheckOFDResponse [15:00:33]1017 (14) - 77093643461234 [15:00:33]1041 (16) - 0000000000963154 [15:00:33]1040 (4) - 28956 [15:00:33]1012 (4) - 13.04.2024 08:56 [15:00:33]1206 (1) - 0 [15:00:33]OFD Sender: Remove packet 28956 [15:00:33]ProducePacketName [15:00:33]name=ofd_packets/00028956 [15:00:33]NVStorageDeleteData [15:00:33]Write to MH i2c: 01 00 00 B6 47 FD [15:00:33]Write i2c OK [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: 01 [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: 01 07 00 [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: 01 07 00 B6 47 00 00 00 00 00 D3 0C E3 [15:00:33]RasterBufferAndPrint [15:00:33]line [15:00:33]line [15:00:33]line [15:00:33]line [15:00:33]line [15:00:33]written 0, free lines is 3296 [15:00:33]MH_Cut [15:00:33]Write to MH i2c: D1 01 00 BD 47 01 D6 [15:00:33]Write i2c OK [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: D1 [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: D1 01 00 [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: D1 01 00 BD 47 00 D5 [15:00:33]Write to MH i2c: 01 00 00 BE 47 05 [15:00:33]Write i2c OK [15:00:33]MH_I2C_Read... [15:00:33]OFD Sender: No OFD packet to send [15:00:34]*** Cut start [15:00:34]*** Partial cut [15:00:34]*** CUTSNS_PIN = 1 [15:00:34]*** CUTSNS_PIN = 0 [15:00:34]*** Brake cut motor [15:00:34]Read from MH i2c: 01 [15:00:34]MH_I2C_Read... [15:00:34]*** Stop cut motor [15:00:34]*** Cut end [15:00:34]Read from MH i2c: 01 07 00 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: 01 07 00 BE 47 00 00 00 00 00 FF 0F 1A [15:00:34]process_action close_receipt done [15:00:34]requested_data is exist [15:00:34]produce_requested_data [15:00:34]requested_item fm.sn is exist - process it [15:00:34]wFMCommunicate request_size=4 [15:00:34]MH_SAM_APDU [15:00:34]CAPDU: 80 11 00 00 [15:00:34]Write to MH i2c: E2 08 00 BF 47 80 11 00 00 00 00 00 00 80 [15:00:34]Write i2c OK [15:00:34]MH_I2C_Read... [15:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:34]Read from MH i2c: E2 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: E2 17 00 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: E2 17 00 BF 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CF [15:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:00:34]wFMCommunicate OK [15:00:34]requested_item fd.num is exist - process it [15:00:34]SAM_PROTO_GetFieldsCounters [15:00:34]wFMCommunicate request_size=4 [15:00:34]MH_SAM_APDU [15:00:34]CAPDU: 80 13 00 00 [15:00:34]Write to MH i2c: E2 08 00 C0 47 80 13 00 00 00 00 00 00 83 [15:00:34]Write i2c OK [15:00:34]MH_I2C_Read... [15:00:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:35]Read from MH i2c: E2 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: E2 62 00 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: E2 62 00 C0 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1C 71 00 00 0E 04 04 00 73 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 AA [15: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1C 71 00 00 0E 04 04 00 73 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 [15:00:35]wFMCommunicate OK [15:00:35]SAM_PROTO_GetFieldsCounters done [15:00:35]requested_item shift.num is exist - process it [15:00:35]requested_item shift.opened is exist - process it [15:00:35]req_shift_opened [15:00:35]FM_GetShiftState [15:00:35]SAM_PROTO_GetShiftState [15:00:35]wFMCommunicate request_size=4 [15:00:35]MH_SAM_APDU [15:00:35]CAPDU: 80 13 01 00 [15:00:35]Write to MH i2c: E2 08 00 C1 47 80 13 01 00 00 00 00 00 85 [15:00:35]Write i2c OK [15:00:35]MH_I2C_Read... [15:00:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:35]Read from MH i2c: E2 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: E2 0E 00 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: E2 0E 00 C1 47 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 9E [15:00:35]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:00:35]wFMCommunicate OK [15:00:35]SAM_PROTO_GetShiftState done [15:00:35]FM_GetShiftState done [15:00:35]req_shift_opened done [15:00:35]requested_item shift.open_date is exist - process it [15:00:35]req_shift_open_date [15:00:35]req_shift_open_date done [15:00:35]produce_requested_data done [15:00:35]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28956,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [15:00:35]process_action_free close_receipt [15:00:35]json_value_free [15:00:35]json_value_free done [15:00:35]process_json_proto returns [15:00:35]Send response to host [15:00:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28956,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [15:00:35]free response buf [15:00:35]execute_script done [15:00:35]execute_script returns [15:00:35]free content buf [15:00:35]Sock 9.Close socket [15:00:35]Sock 9.Thread stoped [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:42]accept exits with 7 [15:01:42]New connection [15:01:42]New thread 3066785124 created [15:01:42]Thread 3066928484 joined [15:01:42]Waiting for new connection... [15:01:42] Sock 7.Parse request [15:01:42]Sock 7.Check first char [15:01:42]Sock 7.First char is OK [15:01:42]request: POST /json_proto HTTP/1.0 [15:01:42]Method: POST [15:01:42]URL: /json_proto [15:01:42]Method is POST - this is cgi request [15:01:42]url: /json_proto [15:01:42]query_string will be loaded in cgi processing [15:01:42]execute_cgi json_proto POST (null) [15:01:42]execute_cgi path=json_proto method=POST [15:01:42]POST find Content-Length [15:01:42]Host: 172.17.33.3:8080 [15:01:42]Content-Length: 670 [15:01:42]Content-Type: application/json [15:01:42] [15:01:42]POST finish read [15:01:42]Found Content-Length = 670 [15:01:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 4.750, "sum" : 310.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:42]execute_script... [15:01: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)347318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 4.750, "sum" : 310.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:42]POST & json_proto [15:01:42]process_json_proto [15:01:42]json parsed OK: [15:01:42]protocol is kg_v1.0 [15:01:42]action value=close_receipt [15:01:42]process_action close_receipt [15:01:42]cmd_close_receipt [15:01:42]MH_GetDate [15:01:42]Write to MH i2c: F0 00 00 C2 47 F8 [15:01:42]Write i2c OK [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: F0 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: F0 09 00 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: F0 09 00 C2 47 00 5B 9E 1A 66 23 5B 8F 65 EC [15:01:42]GetLastDocTimeStamp 1713020436 [15:01:42]current date 1713020507 [15:01:42]FM_GetShiftState [15:01:42]SAM_PROTO_GetShiftState [15:01:42]wFMCommunicate request_size=4 [15:01:42]MH_SAM_APDU [15:01:42]CAPDU: 80 13 01 00 [15:01:42]Write to MH i2c: E2 08 00 C3 47 80 13 01 00 00 00 00 00 87 [15:01:42]Write i2c OK [15:01:42]MH_I2C_Read... [15:01:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:42]Read from MH i2c: E2 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: E2 0E 00 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: E2 0E 00 C3 47 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A0 [15:01:42]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:01:42]wFMCommunicate OK [15:01:42]SAM_PROTO_GetShiftState done [15:01:42]FM_GetShiftState done [15:01:42]opened in 1712967615 [15:01:42]opened+sec_in_day 1713054015 [15:01:42]quantity*price = 31017 [15:01:42]sum+1 = 31019 [15:01:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.74 НДС 12% : 32.94 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 164 13.04.2024 15:01 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28957 ФПД: 204170677649375 1/tax-web-control/client/api/v1/ticket?date=20240413T150147&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28957&fm=204170677649375&tin=02508201610067®Number=0000138879044617&sum=31000 [15:01:43]StoreToDocumentArchive [15:01:43]shift 115 fd 28957 [15:01:43]save to /storage/0115/doc_00028957 [15:01:43]save last doc name /storage/0115/doc_00028957 to /storage/kkm_last_doc_name [15:01:43]save OK [15:01:43]Clear old archive folders... [15:01:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:01:43]tlvbuf is 01294FB0 [15:01:43]SAM_PROTO_ClearQueue [15:01:43]wFMCommunicate request_size=4 [15:01:43]MH_SAM_APDU [15:01:43]CAPDU: 80 09 00 00 [15:01:43]Write to MH i2c: E2 08 00 D0 47 80 09 00 00 00 00 00 00 89 [15:01:43]Write i2c OK [15:01:43]MH_I2C_Read... [15:01:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:43]Read from MH i2c: E2 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 03 00 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 03 00 D0 47 00 90 00 8B [15:01:43]RAPDU: 90 00 [15:01:43]wFMCommunicate OK [15:01:43]SAM_PROTO_ClearQueue done [15:01:43]KKMCreateOFDPacket [15:01:43]OFDProtocolAddRootSTLVToBuf [15:01:43]FM_MakeSignedData [15:01:43]FM_MakeSignedData [15:01:43]SAM_PROTO_SignData [15:01:43]wFMCommunicate request_size=4 [15:01:43]MH_SAM_APDU [15:01:43]CAPDU: 80 0D 01 02 [15:01:43]Write to MH i2c: E2 08 00 D1 47 80 0D 01 02 00 00 00 00 91 [15:01:43]Write i2c OK [15:01:43]MH_I2C_Read... [15:01:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:43]Read from MH i2c: E2 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 03 00 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 03 00 D1 47 00 90 00 8C [15:01:43]RAPDU: 90 00 [15:01:43]wFMCommunicate OK [15:01:43]wFMCommunicate request_size=255 [15:01:43]MH_SAM_APDU [15:01:43]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 12 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2A 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 5B 9E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1D 71 00 00 35 04 06 00 [15:01:43]Write to MH i2c: E2 02 01 D2 47 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 12 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2A 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 5B 9E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1D 71 00 00 35 04 06 00 00 00 7D [15:01:43]Write i2c OK [15:01:43]MH_I2C_Read... [15:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:43]Read from MH i2c: E2 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 03 00 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 03 00 D2 47 00 90 00 8D [15:01:43]RAPDU: 90 00 [15:01:43]wFMCommunicate OK [15:01:43]wFMCommunicate request_size=11 [15:01:43]MH_SAM_APDU [15:01:43]CAPDU: 80 0D 02 02 06 B9 B1 30 B6 FF DF [15:01:43]Write to MH i2c: E2 0E 00 D3 47 80 0D 02 02 06 00 B9 B1 30 B6 FF DF 00 00 CE [15:01:43]Write i2c OK [15:01:43]MH_I2C_Read... [15:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:43]Read from MH i2c: E2 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 03 00 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 03 00 D3 47 00 90 00 8E [15:01:43]RAPDU: 90 00 [15:01:43]wFMCommunicate OK [15:01:43]wFMCommunicate request_size=4 [15:01:43]MH_SAM_APDU [15:01:43]CAPDU: 80 0D 03 02 [15:01:43]Write to MH i2c: E2 08 00 D4 47 80 0D 03 02 00 00 00 00 96 [15:01:43]Write i2c OK [15:01:43]MH_I2C_Read... [15:01:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:43]Read from MH i2c: E2 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 0B 00 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 0B 00 D4 47 00 DC 34 F1 65 0B 03 40 1F 90 00 6A [15:01:43]RAPDU: DC 34 F1 65 0B 03 40 1F 90 00 [15:01:43]wFMCommunicate OK [15:01:43]SAM_PROTO_SignData done [15:01:43]FM_MakeSignedData done [15:01:43]CreateOFDProtocolMessage [15:01:43]wFMCommunicate request_size=4 [15:01:43]MH_SAM_APDU [15:01:43]CAPDU: 80 11 00 00 [15:01:43]Write to MH i2c: E2 08 00 D5 47 80 11 00 00 00 00 00 00 96 [15:01:43]Write i2c OK [15:01:43]MH_I2C_Read... [15:01:43]OFD Sender: No OFD packet to send [15:01:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:43]Read from MH i2c: E2 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 17 00 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 17 00 D5 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E5 [15:01:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:01:43]wFMCommunicate OK [15:01:43]CreateOFDProtocolMessage done [15:01:43]OFDSenderStorePacket 28957 [15:01:43]StoreOFDPacket docnum=28957 [15:01:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 10 30 08 01 05 3F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 12 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2A 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 5B 9E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1D 71 00 00 35 04 06 00 B9 B1 30 B6 FF DF DC 34 F1 65 0B 03 40 1F [15:01:43]CheckFolder [15:01:43]dirname=/storage/ofd_packets [15:01:43]CheckFolder done [15:01:43]ProducePacketName [15:01:43]name=ofd_packets/00028957 [15:01:43]NVStorageSaveData ofd_packets/00028957 [15:01:43]File name is /storage/ofd_packets/00028957 [15:01:43]Write 302 bytes [15:01:43]NVStorageSaveData done [15:01:43]OFDSenderStorePacket done [15:01:43]KKMCreateOFDPacket done [15:01:43]NVStorageSaveData kkm_last_timestamp [15:01:43]File name is /storage/kkm_last_timestamp [15:01:43]Write 4 bytes [15:01:43]NVStorageSaveData done [15:01:43]ExternCall_PrintAddStr [15:01:43]wPrintStart [15:01:43]Write to MH i2c: 01 00 00 D6 47 1D [15:01:43]Write i2c OK [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: 01 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: 01 07 00 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: 01 07 00 D6 47 00 00 00 00 00 FF 0F 32 [15:01:43]RasterBufferAndPrint [15:01:43]line Счет N : (1)347318 [15:01:43]line ИНН: 02508201610067 [15:01:43]line Контрольно-Кассовый Чек [15:01:43]line ПРОДАЖА [15:01:43]line ТРК (МРК, ГНК) : 12 [15:01:43]line Товар: 2710124130 [15:01:43]line SUPER-92-К-5 [15:01:43]line 4.750 * 65.30 [15:01:43]line = 310.18 [15:01:43]line НДС 12% НСП 1% [15:01:43]line > о реализуемом товаре [15:01:43]line ОКРУГЛЕНИЕ: -0.18 [15:01:43]line ИТОГО: 310.00 [15:01:43]line Внесено: 310.00 [15:01:43]line СДАЧА: 0.00 [15:01:43]line НСП 1% : 2.74 [15:01:43]line НДС 12% : 32.94 [15:01:43]line Наличными: 310.00 [15:01:43]line Безнал.: 0.00 [15:01:43]line Место: АЗС № 108 "Партнер Нефть" [15:01:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:01:43]line СНО: Общий режим [15:01:43]line Чек 164 13.04.2024 15:01 [15:01:43]line Смена: 115 ФФД: 1.0 [15:01:43]line ЗНМ: 0300000027 [15:01:43]line РНМ: 0000138879044617 [15:01:43]line Версия ККМ: 001 [15:01:43]line ФМ: 0000000000963154 [15:01:43]line ФД: 28957 [15:01:43]line ФПД: 204170677649375 [15:01:44]line 1/tax-web-control/client/api/v1/ticket?date=20240413T150147&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28957&fm=204170677649375&tin=02508201610067®Number=0000138879044617&sum=31000 [15:01:44]OFD Sender: Processing packet 28957 [packets to send 8, broken 7] [15:01:44]ProducePacketName [15:01:44]name=ofd_packets/00028957 [15:01:44]OFD Sender: To server: pG, [15:01:44]CommunicateWithHost lk.salyk.kg:30040 [15:01:44]ConnectInit lk.salyk.kg [15:01:44]written 0, free lines is 4095 [15:01:44]Connected sock=10 [15:01: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 31 35 34 10 01 00 00 10 30 08 01 05 3F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 12 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2A 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 5B 9E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1D 71 00 00 35 04 06 00 B9 B1 30 B6 FF DF DC 34 F1 65 0B 03 40 1F [15:01:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 14 39 47 00 0F 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 31 35 34 10 04 04 00 1D 71 00 00 F4 03 04 00 02 49 1A 66 B6 04 01 00 00 B2 3C 73 E5 0A 6D 12 EE [15:01:44]CommunicateWithHost err = 0 [15:01:44]CheckOFDResponse [15:01:44]1017 (14) - 77093643461234 [15:01:44]1041 (16) - 0000000000963154 [15:01:44]1040 (4) - 28957 [15:01:44]1012 (4) - 13.04.2024 08:57 [15:01:44]1206 (1) - 0 [15:01:44]OFD Sender: Remove packet 28957 [15:01:44]ProducePacketName [15:01:44]name=ofd_packets/00028957 [15:01:44]NVStorageDeleteData [15:01:44]Write to MH i2c: 01 00 00 00 48 48 [15:01:44]Write i2c OK [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: 01 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: 01 07 00 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: 01 07 00 00 48 00 00 00 00 00 CA 0C 25 [15:01:44]RasterBufferAndPrint [15:01:44]line [15:01:44]line [15:01:44]line [15:01:44]line [15:01:44]line [15:01:44]written 0, free lines is 3280 [15:01:44]MH_Cut [15:01:44]Write to MH i2c: D1 01 00 07 48 01 21 [15:01:44]Write i2c OK [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: D1 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: D1 01 00 [15:01:44]MH_I2C_Read... [15:01:44]Read from MH i2c: D1 01 00 07 48 00 20 [15:01:44]Write to MH i2c: 01 00 00 08 48 50 [15:01:44]Write i2c OK [15:01:44]MH_I2C_Read... [15:01:45]OFD Sender: No OFD packet to send [15:01:45]*** Cut start [15:01:45]*** Partial cut [15:01:45]*** CUTSNS_PIN = 1 [15:01:45]*** CUTSNS_PIN = 0 [15:01:45]*** Brake cut motor [15:01:46]Read from MH i2c: 01 [15:01:46]MH_I2C_Read... [15:01:46]*** Stop cut motor [15:01:46]*** Cut end [15:01:46]Read from MH i2c: 01 07 00 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: 01 07 00 08 48 00 00 00 00 00 FF 0F 65 [15:01:46]process_action close_receipt done [15:01:46]requested_data is exist [15:01:46]produce_requested_data [15:01:46]requested_item fm.sn is exist - process it [15:01:46]wFMCommunicate request_size=4 [15:01:46]MH_SAM_APDU [15:01:46]CAPDU: 80 11 00 00 [15:01:46]Write to MH i2c: E2 08 00 09 48 80 11 00 00 00 00 00 00 CB [15:01:46]Write i2c OK [15:01:46]MH_I2C_Read... [15:01:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:46]Read from MH i2c: E2 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: E2 17 00 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: E2 17 00 09 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1A [15:01:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:01:46]wFMCommunicate OK [15:01:46]requested_item fd.num is exist - process it [15:01:46]SAM_PROTO_GetFieldsCounters [15:01:46]wFMCommunicate request_size=4 [15:01:46]MH_SAM_APDU [15:01:46]CAPDU: 80 13 00 00 [15:01:46]Write to MH i2c: E2 08 00 0A 48 80 13 00 00 00 00 00 00 CE [15:01:46]Write i2c OK [15:01:46]MH_I2C_Read... [15:01:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:46]Read from MH i2c: E2 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: E2 62 00 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: E2 62 00 0A 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1D 71 00 00 0E 04 04 00 73 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 F9 [15:01: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1D 71 00 00 0E 04 04 00 73 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 [15:01:46]wFMCommunicate OK [15:01:46]SAM_PROTO_GetFieldsCounters done [15:01:46]requested_item shift.num is exist - process it [15:01:46]requested_item shift.opened is exist - process it [15:01:46]req_shift_opened [15:01:46]FM_GetShiftState [15:01:46]SAM_PROTO_GetShiftState [15:01:46]wFMCommunicate request_size=4 [15:01:46]MH_SAM_APDU [15:01:46]CAPDU: 80 13 01 00 [15:01:46]Write to MH i2c: E2 08 00 0B 48 80 13 01 00 00 00 00 00 D0 [15:01:46]Write i2c OK [15:01:46]MH_I2C_Read... [15:01:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:46]Read from MH i2c: E2 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: E2 0E 00 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: E2 0E 00 0B 48 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 E9 [15:01:46]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:01:46]wFMCommunicate OK [15:01:46]SAM_PROTO_GetShiftState done [15:01:46]FM_GetShiftState done [15:01:46]req_shift_opened done [15:01:46]requested_item shift.open_date is exist - process it [15:01:46]req_shift_open_date [15:01:46]req_shift_open_date done [15:01:46]produce_requested_data done [15:01:46]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28957,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [15:01:46]process_action_free close_receipt [15:01:46]json_value_free [15:01:46]json_value_free done [15:01:46]process_json_proto returns [15:01:46]Send response to host [15:01:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28957,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [15:01:46]free response buf [15:01:46]execute_script done [15:01:46]execute_script returns [15:01:46]free content buf [15:01:46]Sock 7.Close socket [15:01:46]Sock 7.Thread stoped [15:01:50]OFD Sender: No OFD packet to send [15:01:55]OFD Sender: No OFD packet to send [15:02:00]OFD Sender: No OFD packet to send [15:02:05]OFD Sender: No OFD packet to send [15:02:10]OFD Sender: No OFD packet to send [15:02:15]OFD Sender: No OFD packet to send [15:02:20]OFD Sender: No OFD packet to send [15:02:25]OFD Sender: No OFD packet to send [15:02:30]OFD Sender: No OFD packet to send [15:02:35]OFD Sender: No OFD packet to send [15:02:40]OFD Sender: No OFD packet to send [15:02:45]OFD Sender: No OFD packet to send [15:02:50]OFD Sender: No OFD packet to send [15:02:55]OFD Sender: No OFD packet to send [15:03:00]OFD Sender: No OFD packet to send [15:03:05]OFD Sender: No OFD packet to send [15:03:10]OFD Sender: No OFD packet to send [15:03:15]OFD Sender: No OFD packet to send [15:03:19]accept exits with 9 [15:03:19]New connection [15:03:19]New thread 3066928484 created [15:03:19]Thread 3066785124 joined [15:03:19]Waiting for new connection... [15:03:19] Sock 9.Parse request [15:03:19]Sock 9.Check first char [15:03:19]Sock 9.First char is OK [15:03:19]request: POST /json_proto HTTP/1.0 [15:03:19]Method: POST [15:03:19]URL: /json_proto [15:03:19]Method is POST - this is cgi request [15:03:19]url: /json_proto [15:03:19]query_string will be loaded in cgi processing [15:03:19]execute_cgi json_proto POST (null) [15:03:19]execute_cgi path=json_proto method=POST [15:03:19]POST find Content-Length [15:03:19]Host: 172.17.33.3:8080 [15:03:19]Content-Length: 811 [15:03:19]Content-Type: application/json [15:03:19] [15:03:19]POST finish read [15:03:19]Found Content-Length = 811 [15:03:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 35.170, "sum" : 1157.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1157.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:19]execute_script... [15:03: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)347317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 35.170, "sum" : 1157.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1157.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:19]POST & json_proto [15:03:19]process_json_proto [15:03:19]json parsed OK: [15:03:19]protocol is kg_v1.0 [15:03:19]action value=close_receipt [15:03:19]process_action close_receipt [15:03:19]cmd_close_receipt [15:03:19]MH_GetDate [15:03:19]Write to MH i2c: F0 00 00 0C 48 43 [15:03:19]Write i2c OK [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: F0 [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: F0 09 00 [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: F0 09 00 0C 48 00 BD 9E 1A 66 23 5B 8F 65 99 [15:03:19]GetLastDocTimeStamp 1713020507 [15:03:19]current date 1713020605 [15:03:19]FM_GetShiftState [15:03:19]SAM_PROTO_GetShiftState [15:03:19]wFMCommunicate request_size=4 [15:03:19]MH_SAM_APDU [15:03:19]CAPDU: 80 13 01 00 [15:03:19]Write to MH i2c: E2 08 00 0D 48 80 13 01 00 00 00 00 00 D2 [15:03:19]Write i2c OK [15:03:19]MH_I2C_Read... [15:03:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:19]Read from MH i2c: E2 [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: E2 0E 00 [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: E2 0E 00 0D 48 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 EB [15:03:19]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:03:19]wFMCommunicate OK [15:03:19]SAM_PROTO_GetShiftState done [15:03:19]FM_GetShiftState done [15:03:19]opened in 1712967615 [15:03:19]opened+sec_in_day 1713054015 [15:03:19]quantity*price = 115709 [15:03:19]sum+1 = 115710 [15:03:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1157.09 НСП 1% : 10.24 НДС 12% : 122.88 Наличными: 0.00 Безнал.: 1157.09 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 165 13.04.2024 15:03 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28958 ФПД: 136658160353779 1/tax-web-control/client/api/v1/ticket?date=20240413T150325&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28958&fm=136658160353779&tin=02508201610067®Number=0000138879044617&sum=115709 [15:03:21]StoreToDocumentArchive [15:03:21]shift 115 fd 28958 [15:03:21]save to /storage/0115/doc_00028958 [15:03:21]save last doc name /storage/0115/doc_00028958 to /storage/kkm_last_doc_name [15:03:21]save OK [15:03:21]Clear old archive folders... [15:03:21]ProcessDocumentItem done err = 0, tmpTLVsize=250 [15:03:21]tlvbuf is 011E3900 [15:03:21]SAM_PROTO_ClearQueue [15:03:21]wFMCommunicate request_size=4 [15:03:21]MH_SAM_APDU [15:03:21]CAPDU: 80 09 00 00 [15:03:21]Write to MH i2c: E2 08 00 1A 48 80 09 00 00 00 00 00 00 D4 [15:03:21]Write i2c OK [15:03:21]MH_I2C_Read... [15:03:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:21]Read from MH i2c: E2 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: E2 03 00 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: E2 03 00 1A 48 00 90 00 D6 [15:03:21]RAPDU: 90 00 [15:03:21]wFMCommunicate OK [15:03:21]SAM_PROTO_ClearQueue done [15:03:21]KKMCreateOFDPacket [15:03:21]OFDProtocolAddRootSTLVToBuf [15:03:21]FM_MakeSignedData [15:03:21]FM_MakeSignedData [15:03:21]SAM_PROTO_SignData [15:03:21]wFMCommunicate request_size=4 [15:03:21]MH_SAM_APDU [15:03:21]CAPDU: 80 0D 01 02 [15:03:21]Write to MH i2c: E2 08 00 1B 48 80 0D 01 02 00 00 00 00 DC [15:03:21]Write i2c OK [15:03:21]MH_I2C_Read... [15:03:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:21]Read from MH i2c: E2 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: E2 03 00 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: E2 03 00 1B 48 00 90 00 D7 [15:03:21]RAPDU: 90 00 [15:03:21]wFMCommunicate OK [15:03:21]wFMCommunicate request_size=255 [15:03:21]MH_SAM_APDU [15:03:21]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 62 89 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 FD C3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD C3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 30 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD C3 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 BD 9E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1E 71 00 00 35 04 06 00 7C 4A [15:03:21]Write to MH i2c: E2 02 01 1C 48 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 62 89 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 FD C3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD C3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 30 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD C3 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 BD 9E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1E 71 00 00 35 04 06 00 7C 4A 00 00 43 [15:03:21]Write i2c OK [15:03:21]MH_I2C_Read... [15:03:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:21]Read from MH i2c: E2 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: E2 03 00 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: E2 03 00 1C 48 00 90 00 D8 [15:03:21]RAPDU: 90 00 [15:03:21]wFMCommunicate OK [15:03:21]wFMCommunicate request_size=9 [15:03:21]MH_SAM_APDU [15:03:21]CAPDU: 80 0D 02 02 04 35 1A 81 F3 [15:03:21]Write to MH i2c: E2 0C 00 1D 48 80 0D 02 02 04 00 35 1A 81 F3 00 00 AA [15:03:21]Write i2c OK [15:03:21]MH_I2C_Read... [15:03:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:21]Read from MH i2c: E2 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: E2 03 00 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: E2 03 00 1D 48 00 90 00 D9 [15:03:21]RAPDU: 90 00 [15:03:21]wFMCommunicate OK [15:03:21]wFMCommunicate request_size=4 [15:03:21]MH_SAM_APDU [15:03:21]CAPDU: 80 0D 03 02 [15:03:21]Write to MH i2c: E2 08 00 1E 48 80 0D 03 02 00 00 00 00 E1 [15:03:21]Write i2c OK [15:03:21]MH_I2C_Read... [15:03:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:21]Read from MH i2c: E2 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: E2 0B 00 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: E2 0B 00 1E 48 00 52 33 A9 52 22 0A 6D DF 90 00 DA [15:03:21]RAPDU: 52 33 A9 52 22 0A 6D DF 90 00 [15:03:21]wFMCommunicate OK [15:03:21]SAM_PROTO_SignData done [15:03:21]FM_MakeSignedData done [15:03:21]CreateOFDProtocolMessage [15:03:21]wFMCommunicate request_size=4 [15:03:21]MH_SAM_APDU [15:03:21]CAPDU: 80 11 00 00 [15:03:21]Write to MH i2c: E2 08 00 1F 48 80 11 00 00 00 00 00 00 E1 [15:03:21]Write i2c OK [15:03:21]MH_I2C_Read... [15:03:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:21]Read from MH i2c: E2 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: E2 17 00 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: E2 17 00 1F 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 30 [15:03:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:03:21]wFMCommunicate OK [15:03:21]CreateOFDProtocolMessage done [15:03:21]OFDSenderStorePacket 28958 [15:03:21]StoreOFDPacket docnum=28958 [15:03:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 EE 20 06 01 F0 B3 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 62 89 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 FD C3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD C3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 30 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD C3 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 BD 9E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1E 71 00 00 35 04 06 00 7C 4A 35 1A 81 F3 52 33 A9 52 22 0A 6D DF [15:03:21]CheckFolder [15:03:21]dirname=/storage/ofd_packets [15:03:21]CheckFolder done [15:03:21]ProducePacketName [15:03:21]name=ofd_packets/00028958 [15:03:21]NVStorageSaveData ofd_packets/00028958 [15:03:21]File name is /storage/ofd_packets/00028958 [15:03:21]Write 300 bytes [15:03:21]NVStorageSaveData done [15:03:21]OFDSenderStorePacket done [15:03:21]KKMCreateOFDPacket done [15:03:21]NVStorageSaveData kkm_last_timestamp [15:03:21]File name is /storage/kkm_last_timestamp [15:03:21]Write 4 bytes [15:03:21]NVStorageSaveData done [15:03:21]ExternCall_PrintAddStr [15:03:21]wPrintStart [15:03:21]Write to MH i2c: 01 00 00 20 48 68 [15:03:21]Write i2c OK [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: 01 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: 01 07 00 [15:03:21]MH_I2C_Read... [15:03:21]Read from MH i2c: 01 07 00 20 48 00 00 00 00 00 FF 0F 7D [15:03:21]RasterBufferAndPrint [15:03:21]line Счет N : (1)347317 [15:03:21]line ИНН: 02508201610067 [15:03:21]line Контрольно-Кассовый Чек [15:03:21]line ПРОДАЖА [15:03:21]line ТРК (МРК, ГНК) : 71 [15:03:21]line Товар: 2711129700 [15:03:21]line ГАЗ-К-5 [15:03:21]line 35.170 * 32.90 [15:03:21]line = 1157.09 [15:03:21]line НДС 12% НСП 1% [15:03:21]line > о реализуемом товаре [15:03:21]line ИТОГО: 1157.09 [15:03:21]line НСП 1% : 10.24 [15:03:21]line НДС 12% : 122.88 [15:03:21]line Наличными: 0.00 [15:03:21]line Безнал.: 1157.09 [15:03:21]line Место: АЗС № 108 "Партнер Нефть" [15:03:21]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:03:21]line СНО: Общий режим [15:03:21]line Чек 165 13.04.2024 15:03 [15:03:21]line Смена: 115 ФФД: 1.0 [15:03:21]line ЗНМ: 0300000027 [15:03:21]line РНМ: 0000138879044617 [15:03:21]line Версия ККМ: 001 [15:03:21]line Платежная система: О! деньги [15:03:21]line ФМ: 0000000000963154 [15:03:21]line ФД: 28958 [15:03:21]line ФПД: 136658160353779 [15:03:21]line 1/tax-web-control/client/api/v1/ticket?date=20240413T150325&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28958&fm=136658160353779&tin=02508201610067®Number=0000138879044617&sum=115709 [15:03:21]OFD Sender: Processing packet 28958 [packets to send 8, broken 7] [15:03:21]ProducePacketName [15:03:21]name=ofd_packets/00028958 [15:03:21]OFD Sender: To server: pG, [15:03:21]CommunicateWithHost lk.salyk.kg:30040 [15:03:21]ConnectInit lk.salyk.kg [15:03:21]written 0, free lines is 4095 [15:03:21]Connected sock=10 [15:03: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 31 35 34 0E 01 00 00 EE 20 06 01 F0 B3 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 62 89 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 FD C3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD C3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 30 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD C3 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 BD 9E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1E 71 00 00 35 04 06 00 7C 4A 35 1A 81 F3 52 33 A9 52 22 0A 6D DF [15:03:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 83 F4 47 00 44 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 31 35 34 10 04 04 00 1E 71 00 00 F4 03 04 00 63 49 1A 66 B6 04 01 00 00 25 9E F4 13 9F CB DE D2 [15:03:22]CommunicateWithHost err = 0 [15:03:22]CheckOFDResponse [15:03:22]1017 (14) - 77093643461234 [15:03:22]1041 (16) - 0000000000963154 [15:03:22]1040 (4) - 28958 [15:03:22]1012 (4) - 13.04.2024 08:59 [15:03:22]1206 (1) - 0 [15:03:22]OFD Sender: Remove packet 28958 [15:03:22]ProducePacketName [15:03:22]name=ofd_packets/00028958 [15:03:22]NVStorageDeleteData [15:03:22]Write to MH i2c: 01 00 00 49 48 91 [15:03:22]Write i2c OK [15:03:22]MH_I2C_Read... [15:03:22]Read from MH i2c: 01 [15:03:22]MH_I2C_Read... [15:03:22]Read from MH i2c: 01 07 00 [15:03:22]MH_I2C_Read... [15:03:22]Read from MH i2c: 01 07 00 49 48 00 00 00 00 00 F4 0C 98 [15:03:22]RasterBufferAndPrint [15:03:22]line [15:03:22]line [15:03:22]line [15:03:22]line [15:03:22]line [15:03:22]written 0, free lines is 3322 [15:03:22]MH_Cut [15:03:22]Write to MH i2c: D1 01 00 50 48 01 6A [15:03:22]Write i2c OK [15:03:22]MH_I2C_Read... [15:03:22]Read from MH i2c: D1 [15:03:22]MH_I2C_Read... [15:03:22]Read from MH i2c: D1 01 00 [15:03:22]MH_I2C_Read... [15:03:22]Read from MH i2c: D1 01 00 50 48 00 69 [15:03:22]Write to MH i2c: 01 00 00 51 48 99 [15:03:22]Write i2c OK [15:03:22]MH_I2C_Read... [15:03:22]OFD Sender: No OFD packet to send [15:03:23]*** Cut start [15:03:23]*** Partial cut [15:03:23]*** CUTSNS_PIN = 1 [15:03:23]*** CUTSNS_PIN = 0 [15:03:23]*** Brake cut motor [15:03:23]Read from MH i2c: 01 [15:03:23]MH_I2C_Read... [15:03:23]*** Stop cut motor [15:03:23]*** Cut end [15:03:23]Read from MH i2c: 01 07 00 [15:03:23]MH_I2C_Read... [15:03:23]Read from MH i2c: 01 07 00 51 48 00 00 00 00 00 FF 0F AE [15:03:23]process_action close_receipt done [15:03:23]requested_data is exist [15:03:23]produce_requested_data [15:03:23]requested_item fm.sn is exist - process it [15:03:23]wFMCommunicate request_size=4 [15:03:23]MH_SAM_APDU [15:03:23]CAPDU: 80 11 00 00 [15:03:23]Write to MH i2c: E2 08 00 52 48 80 11 00 00 00 00 00 00 14 [15:03:23]Write i2c OK [15:03:23]MH_I2C_Read... [15:03:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:23]Read from MH i2c: E2 [15:03:23]MH_I2C_Read... [15:03:23]Read from MH i2c: E2 17 00 [15:03:23]MH_I2C_Read... [15:03:23]Read from MH i2c: E2 17 00 52 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 63 [15:03:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:03:23]wFMCommunicate OK [15:03:23]requested_item fd.num is exist - process it [15:03:23]SAM_PROTO_GetFieldsCounters [15:03:23]wFMCommunicate request_size=4 [15:03:23]MH_SAM_APDU [15:03:23]CAPDU: 80 13 00 00 [15:03:23]Write to MH i2c: E2 08 00 53 48 80 13 00 00 00 00 00 00 17 [15:03:23]Write i2c OK [15:03:23]MH_I2C_Read... [15:03:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:23]Read from MH i2c: E2 [15:03:23]MH_I2C_Read... [15:03:23]Read from MH i2c: E2 62 00 [15:03:23]MH_I2C_Read... [15:03:23]Read from MH i2c: E2 62 00 53 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1E 71 00 00 0E 04 04 00 73 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 46 [15:03: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1E 71 00 00 0E 04 04 00 73 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 [15:03:23]wFMCommunicate OK [15:03:23]SAM_PROTO_GetFieldsCounters done [15:03:23]requested_item shift.num is exist - process it [15:03:23]requested_item shift.opened is exist - process it [15:03:23]req_shift_opened [15:03:23]FM_GetShiftState [15:03:23]SAM_PROTO_GetShiftState [15:03:23]wFMCommunicate request_size=4 [15:03:23]MH_SAM_APDU [15:03:23]CAPDU: 80 13 01 00 [15:03:23]Write to MH i2c: E2 08 00 54 48 80 13 01 00 00 00 00 00 19 [15:03:23]Write i2c OK [15:03:23]MH_I2C_Read... [15:03:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:24]Read from MH i2c: E2 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: E2 0E 00 [15:03:24]MH_I2C_Read... [15:03:24]Read from MH i2c: E2 0E 00 54 48 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 32 [15:03:24]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:03:24]wFMCommunicate OK [15:03:24]SAM_PROTO_GetShiftState done [15:03:24]FM_GetShiftState done [15:03:24]req_shift_opened done [15:03:24]requested_item shift.open_date is exist - process it [15:03:24]req_shift_open_date [15:03:24]req_shift_open_date done [15:03:24]produce_requested_data done [15:03:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28958,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [15:03:24]process_action_free close_receipt [15:03:24]json_value_free [15:03:24]json_value_free done [15:03:24]process_json_proto returns [15:03:24]Send response to host [15:03:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28958,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [15:03:24]free response buf [15:03:24]execute_script done [15:03:24]execute_script returns [15:03:24]free content buf [15:03:24]Sock 9.Close socket [15:03:24]Sock 9.Thread stoped [15:03:27]OFD Sender: No OFD packet to send [15:03:32]OFD Sender: No OFD packet to send [15:03:37]OFD Sender: No OFD packet to send [15:03:42]OFD Sender: No OFD packet to send [15:03:47]OFD Sender: No OFD packet to send [15:03:52]OFD Sender: No OFD packet to send [15:03:57]OFD Sender: No OFD packet to send [15:04:02]OFD Sender: No OFD packet to send [15:04:07]OFD Sender: No OFD packet to send [15:04:12]accept exits with 7 [15:04:12]New connection [15:04:12]New thread 3066785124 created [15:04:12]Thread 3066928484 joined [15:04:12]Waiting for new connection... [15:04:12] Sock 7.Parse request [15:04:12]Sock 7.Check first char [15:04:12]Sock 7.First char is OK [15:04:12]request: POST /json_proto HTTP/1.0 [15:04:12]Method: POST [15:04:12]URL: /json_proto [15:04:12]Method is POST - this is cgi request [15:04:12]url: /json_proto [15:04:12]query_string will be loaded in cgi processing [15:04:12]execute_cgi json_proto POST (null) [15:04:12]execute_cgi path=json_proto method=POST [15:04:12]POST find Content-Length [15:04:12]Host: 172.17.33.3:8080 [15:04:12]Content-Length: 640 [15:04:12]Content-Type: application/json [15:04:12] [15:04:12]POST finish read [15:04:12]Found Content-Length = 640 [15:04:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347319", "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" : 64.30, "quantity" : 14.930, "sum" : 960.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 960.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:12]execute_script... [15:04:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347319", "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" : 64.30, "quantity" : 14.930, "sum" : 960.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 960.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:12]POST & json_proto [15:04:12]process_json_proto [15:04:12]json parsed OK: [15:04:12]protocol is kg_v1.0 [15:04:12]action value=close_receipt [15:04:12]process_action close_receipt [15:04:12]cmd_close_receipt [15:04:12]MH_GetDate [15:04:12]Write to MH i2c: F0 00 00 55 48 8C [15:04:12]Write i2c OK [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: F0 [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: F0 09 00 [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: F0 09 00 55 48 00 F1 9E 1A 66 23 5B 8F 65 16 [15:04:12]GetLastDocTimeStamp 1713020605 [15:04:12]current date 1713020657 [15:04:12]FM_GetShiftState [15:04:12]SAM_PROTO_GetShiftState [15:04:12]wFMCommunicate request_size=4 [15:04:12]MH_SAM_APDU [15:04:12]CAPDU: 80 13 01 00 [15:04:12]Write to MH i2c: E2 08 00 56 48 80 13 01 00 00 00 00 00 1B [15:04:12]Write i2c OK [15:04:12]MH_I2C_Read... [15:04:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:12]Read from MH i2c: E2 [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: E2 0E 00 [15:04:12]MH_I2C_Read... [15:04:12]Read from MH i2c: E2 0E 00 56 48 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 34 [15:04:12]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:04:12]wFMCommunicate OK [15:04:12]SAM_PROTO_GetShiftState done [15:04:12]FM_GetShiftState done [15:04:12]opened in 1712967615 [15:04:12]opened+sec_in_day 1713054015 [15:04:12]quantity*price = 95999 [15:04:12]sum+1 = 96001 [15:04:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 960.00 НСП 1% : 8.50 НДС 12% : 101.95 Наличными: 960.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 166 13.04.2024 15:04 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28959 ФПД: 73284883554953 1/tax-web-control/client/api/v1/ticket?date=20240413T150417&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28959&fm=73284883554953&tin=02508201610067®Number=0000138879044617&sum=96000 [15:04:13]StoreToDocumentArchive [15:04:13]shift 115 fd 28959 [15:04:13]save to /storage/0115/doc_00028959 [15:04:13]save last doc name /storage/0115/doc_00028959 to /storage/kkm_last_doc_name [15:04:13]save OK [15:04:13]Clear old archive folders... [15:04:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:04:13]tlvbuf is 011EAE90 [15:04:13]SAM_PROTO_ClearQueue [15:04:13]wFMCommunicate request_size=4 [15:04:13]MH_SAM_APDU [15:04:13]CAPDU: 80 09 00 00 [15:04:13]Write to MH i2c: E2 08 00 63 48 80 09 00 00 00 00 00 00 1D [15:04:13]Write i2c OK [15:04:13]MH_I2C_Read... [15:04:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:13]Read from MH i2c: E2 [15:04:13]MH_I2C_Read... [15:04:13]Read from MH i2c: E2 03 00 [15:04:13]MH_I2C_Read... [15:04:13]Read from MH i2c: E2 03 00 63 48 00 90 00 1F [15:04:13]RAPDU: 90 00 [15:04:13]wFMCommunicate OK [15:04:13]SAM_PROTO_ClearQueue done [15:04:13]KKMCreateOFDPacket [15:04:13]OFDProtocolAddRootSTLVToBuf [15:04:13]FM_MakeSignedData [15:04:13]FM_MakeSignedData [15:04:13]SAM_PROTO_SignData [15:04:13]wFMCommunicate request_size=4 [15:04:13]MH_SAM_APDU [15:04:13]CAPDU: 80 0D 01 02 [15:04:13]Write to MH i2c: E2 08 00 64 48 80 0D 01 02 00 00 00 00 25 [15:04:13]Write i2c OK [15:04:13]MH_I2C_Read... [15:04:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:13]Read from MH i2c: E2 [15:04:13]MH_I2C_Read... [15:04:13]Read from MH i2c: E2 03 00 [15:04:13]MH_I2C_Read... [15:04:13]Read from MH i2c: E2 03 00 64 48 00 90 00 20 [15:04:13]RAPDU: 90 00 [15:04:13]wFMCommunicate OK [15:04:13]wFMCommunicate request_size=255 [15:04:13]MH_SAM_APDU [15:04: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 52 3A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 00 77 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 77 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 27 00 00 00 00 07 04 06 00 00 77 01 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 F1 9E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1F 71 00 00 35 04 06 00 42 [15:04:13]Write to MH i2c: E2 02 01 65 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 52 3A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 00 77 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 77 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 27 00 00 00 00 07 04 06 00 00 77 01 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 F1 9E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1F 71 00 00 35 04 06 00 42 00 00 C0 [15:04:13]Write i2c OK [15:04:13]MH_I2C_Read... [15:04:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:14]Read from MH i2c: E2 [15:04:14]MH_I2C_Read... [15:04:14]Read from MH i2c: E2 03 00 [15:04:14]MH_I2C_Read... [15:04:14]Read from MH i2c: E2 03 00 65 48 00 90 00 21 [15:04:14]RAPDU: 90 00 [15:04:14]wFMCommunicate OK [15:04:14]wFMCommunicate request_size=10 [15:04:14]MH_SAM_APDU [15:04:14]CAPDU: 80 0D 02 02 05 A6 F7 73 A2 89 [15:04:14]Write to MH i2c: E2 0D 00 66 48 80 0D 02 02 05 00 A6 F7 73 A2 89 00 00 6D [15:04:14]Write i2c OK [15:04:14]MH_I2C_Read... [15:04:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:14]Read from MH i2c: E2 [15:04:14]MH_I2C_Read... [15:04:14]Read from MH i2c: E2 03 00 [15:04:14]MH_I2C_Read... [15:04:14]Read from MH i2c: E2 03 00 66 48 00 90 00 22 [15:04:14]RAPDU: 90 00 [15:04:14]wFMCommunicate OK [15:04:14]wFMCommunicate request_size=4 [15:04:14]MH_SAM_APDU [15:04:14]CAPDU: 80 0D 03 02 [15:04:14]Write to MH i2c: E2 08 00 67 48 80 0D 03 02 00 00 00 00 2A [15:04:14]Write i2c OK [15:04:14]MH_I2C_Read... [15:04:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:14]Read from MH i2c: E2 [15:04:14]MH_I2C_Read... [15:04:14]Read from MH i2c: E2 0B 00 [15:04:14]MH_I2C_Read... [15:04:14]Read from MH i2c: E2 0B 00 67 48 00 42 68 F3 B8 46 35 98 7C 90 00 0F [15:04:14]RAPDU: 42 68 F3 B8 46 35 98 7C 90 00 [15:04:14]wFMCommunicate OK [15:04:14]SAM_PROTO_SignData done [15:04:14]FM_MakeSignedData done [15:04:14]CreateOFDProtocolMessage [15:04:14]wFMCommunicate request_size=4 [15:04:14]MH_SAM_APDU [15:04:14]CAPDU: 80 11 00 00 [15:04:14]Write to MH i2c: E2 08 00 68 48 80 11 00 00 00 00 00 00 2A [15:04:14]Write i2c OK [15:04:14]MH_I2C_Read... [15:04:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:14]Read from MH i2c: E2 [15:04:14]MH_I2C_Read... [15:04:14]Read from MH i2c: E2 17 00 [15:04:14]MH_I2C_Read... [15:04:14]Read from MH i2c: E2 17 00 68 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 79 [15:04:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:04:14]wFMCommunicate OK [15:04:14]CreateOFDProtocolMessage done [15:04:14]OFDSenderStorePacket 28959 [15:04:14]StoreOFDPacket docnum=28959 [15:04:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 79 98 07 01 AF BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 3A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 00 77 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 77 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 27 00 00 00 00 07 04 06 00 00 77 01 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 F1 9E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1F 71 00 00 35 04 06 00 42 A6 F7 73 A2 89 42 68 F3 B8 46 35 98 7C [15:04:14]CheckFolder [15:04:14]dirname=/storage/ofd_packets [15:04:14]CheckFolder done [15:04:14]ProducePacketName [15:04:14]name=ofd_packets/00028959 [15:04:14]NVStorageSaveData ofd_packets/00028959 [15:04:14]File name is /storage/ofd_packets/00028959 [15:04:14]Write 301 bytes [15:04:14]NVStorageSaveData done [15:04:14]OFDSenderStorePacket done [15:04:14]KKMCreateOFDPacket done [15:04:14]NVStorageSaveData kkm_last_timestamp [15:04:14]File name is /storage/kkm_last_timestamp [15:04:14]Write 4 bytes [15:04:14]NVStorageSaveData done [15:04:14]ExternCall_PrintAddStr [15:04:14]wPrintStart [15:04:14]Write to MH i2c: 01 00 00 69 48 B1 [15:04:14]Write i2c OK [15:04:14]MH_I2C_Read... [15:04:14]Read from MH i2c: 01 [15:04:14]MH_I2C_Read... [15:04:14]Read from MH i2c: 01 07 00 [15:04:14]MH_I2C_Read... [15:04:14]Read from MH i2c: 01 07 00 69 48 00 00 00 00 00 FF 0F C6 [15:04:14]RasterBufferAndPrint [15:04:14]line Счет N : (1)347319 [15:04:14]line ИНН: 02508201610067 [15:04:14]line Контрольно-Кассовый Чек [15:04:14]line ПРОДАЖА [15:04:14]line ТРК (МРК, ГНК) : 42 [15:04:14]line Товар: 2710124130 [15:04:14]line Аи-92-К-5 [15:04:14]line 14.930 * 64.30 [15:04:14]line = 960.00 [15:04:14]line НДС 12% НСП 1% [15:04:14]line > о реализуемом товаре [15:04:14]line ИТОГО: 960.00 [15:04:14]line НСП 1% : 8.50 [15:04:14]line НДС 12% : 101.95 [15:04:14]line Наличными: 960.00 [15:04:14]line Безнал.: 0.00 [15:04:14]line Место: АЗС № 108 "Партнер Нефть" [15:04:14]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:04:14]line СНО: Общий режим [15:04:14]line Чек 166 13.04.2024 15:04 [15:04:14]line Смена: 115 ФФД: 1.0 [15:04:14]line ЗНМ: 0300000027 [15:04:14]line РНМ: 0000138879044617 [15:04:14]line Версия ККМ: 001 [15:04:14]line ФМ: 0000000000963154 [15:04:14]line ФД: 28959 [15:04:14]line ФПД: 73284883554953 [15:04:14]line 1/tax-web-control/client/api/v1/ticket?date=20240413T150417&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28959&fm=73284883554953&tin=02508201610067®Number=0000138879044617&sum=96000 [15:04:14]written 0, free lines is 4095 [15:04:14]OFD Sender: Processing packet 28959 [packets to send 8, broken 7] [15:04:14]ProducePacketName [15:04:14]name=ofd_packets/00028959 [15:04:14]OFD Sender: To server: pG, [15:04:14]CommunicateWithHost lk.salyk.kg:30040 [15:04:14]ConnectInit lk.salyk.kg [15:04:14]Connected sock=10 [15:04: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 31 35 34 0F 01 00 00 79 98 07 01 AF BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 3A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 00 77 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 77 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 27 00 00 00 00 07 04 06 00 00 77 01 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 F1 9E 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1F 71 00 00 35 04 06 00 42 A6 F7 73 A2 89 42 68 F3 B8 46 35 98 7C [15:04:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 64 A8 47 00 12 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 1F 71 00 00 F4 03 04 00 98 49 1A 66 B6 04 01 00 00 A4 7A 6A 70 37 5F FE 33 [15:04:14]CommunicateWithHost err = 0 [15:04:14]CheckOFDResponse [15:04:14]1017 (14) - 77093643461234 [15:04:14]1041 (16) - 0000000000963154 [15:04:14]1040 (4) - 28959 [15:04:14]1012 (4) - 13.04.2024 09:00 [15:04:14]1206 (1) - 0 [15:04:14]OFD Sender: Remove packet 28959 [15:04:14]ProducePacketName [15:04:14]name=ofd_packets/00028959 [15:04:14]NVStorageDeleteData [15:04:15]Write to MH i2c: 01 00 00 90 48 D8 [15:04:15]Write i2c OK [15:04:15]MH_I2C_Read... [15:04:15]Read from MH i2c: 01 [15:04:15]MH_I2C_Read... [15:04:15]Read from MH i2c: 01 07 00 [15:04:15]MH_I2C_Read... [15:04:15]Read from MH i2c: 01 07 00 90 48 00 00 00 00 00 00 0D EC [15:04:15]RasterBufferAndPrint [15:04:15]line [15:04:15]line [15:04:15]line [15:04:15]line [15:04:15]line [15:04:15]written 0, free lines is 3334 [15:04:15]MH_Cut [15:04:15]Write to MH i2c: D1 01 00 97 48 01 B1 [15:04:15]Write i2c OK [15:04:15]MH_I2C_Read... [15:04:15]Read from MH i2c: D1 [15:04:15]MH_I2C_Read... [15:04:15]Read from MH i2c: D1 01 00 [15:04:15]MH_I2C_Read... [15:04:15]Read from MH i2c: D1 01 00 97 48 00 B0 [15:04:15]Write to MH i2c: 01 00 00 98 48 E0 [15:04:15]Write i2c OK [15:04:15]MH_I2C_Read... [15:04:15]OFD Sender: No OFD packet to send [15:04:15]*** Cut start [15:04:15]*** Partial cut [15:04:15]*** CUTSNS_PIN = 1 [15:04:15]*** CUTSNS_PIN = 0 [15:04:16]*** Brake cut motor [15:04:16]Read from MH i2c: 01 [15:04:16]MH_I2C_Read... [15:04:16]*** Stop cut motor [15:04:16]*** Cut end [15:04:16]Read from MH i2c: 01 07 00 [15:04:16]MH_I2C_Read... [15:04:16]Read from MH i2c: 01 07 00 98 48 00 00 00 00 00 FF 0F F5 [15:04:16]process_action close_receipt done [15:04:16]requested_data is exist [15:04:16]produce_requested_data [15:04:16]requested_item fm.sn is exist - process it [15:04:16]wFMCommunicate request_size=4 [15:04:16]MH_SAM_APDU [15:04:16]CAPDU: 80 11 00 00 [15:04:16]Write to MH i2c: E2 08 00 99 48 80 11 00 00 00 00 00 00 5B [15:04:16]Write i2c OK [15:04:16]MH_I2C_Read... [15:04:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:16]Read from MH i2c: E2 [15:04:16]MH_I2C_Read... [15:04:16]Read from MH i2c: E2 17 00 [15:04:16]MH_I2C_Read... [15:04:16]Read from MH i2c: E2 17 00 99 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AA [15:04:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:04:16]wFMCommunicate OK [15:04:16]requested_item fd.num is exist - process it [15:04:16]SAM_PROTO_GetFieldsCounters [15:04:16]wFMCommunicate request_size=4 [15:04:16]MH_SAM_APDU [15:04:16]CAPDU: 80 13 00 00 [15:04:16]Write to MH i2c: E2 08 00 9A 48 80 13 00 00 00 00 00 00 5E [15:04:16]Write i2c OK [15:04:16]MH_I2C_Read... [15:04:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:16]Read from MH i2c: E2 [15:04:16]MH_I2C_Read... [15:04:16]Read from MH i2c: E2 62 00 [15:04:16]MH_I2C_Read... [15:04:16]Read from MH i2c: E2 62 00 9A 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1F 71 00 00 0E 04 04 00 73 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 91 [15:04: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 1F 71 00 00 0E 04 04 00 73 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 [15:04:16]wFMCommunicate OK [15:04:16]SAM_PROTO_GetFieldsCounters done [15:04:16]requested_item shift.num is exist - process it [15:04:16]requested_item shift.opened is exist - process it [15:04:16]req_shift_opened [15:04:16]FM_GetShiftState [15:04:16]SAM_PROTO_GetShiftState [15:04:16]wFMCommunicate request_size=4 [15:04:16]MH_SAM_APDU [15:04:16]CAPDU: 80 13 01 00 [15:04:16]Write to MH i2c: E2 08 00 9B 48 80 13 01 00 00 00 00 00 60 [15:04:16]Write i2c OK [15:04:16]MH_I2C_Read... [15:04:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:16]Read from MH i2c: E2 [15:04:16]MH_I2C_Read... [15:04:16]Read from MH i2c: E2 0E 00 [15:04:16]MH_I2C_Read... [15:04:16]Read from MH i2c: E2 0E 00 9B 48 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 79 [15:04:16]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:04:16]wFMCommunicate OK [15:04:16]SAM_PROTO_GetShiftState done [15:04:16]FM_GetShiftState done [15:04:16]req_shift_opened done [15:04:16]requested_item shift.open_date is exist - process it [15:04:16]req_shift_open_date [15:04:16]req_shift_open_date done [15:04:16]produce_requested_data done [15:04:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28959,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [15:04:16]process_action_free close_receipt [15:04:16]json_value_free [15:04:16]json_value_free done [15:04:16]process_json_proto returns [15:04:16]Send response to host [15:04:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28959,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [15:04:16]free response buf [15:04:16]execute_script done [15:04:16]execute_script returns [15:04:16]free content buf [15:04:16]Sock 7.Close socket [15:04:16]Sock 7.Thread stoped [15:04:20]OFD Sender: No OFD packet to send [15:04:25]OFD Sender: No OFD packet to send [15:04:30]OFD Sender: No OFD packet to send [15:04:35]OFD Sender: No OFD packet to send [15:04:40]OFD Sender: No OFD packet to send [15:04:45]OFD Sender: No OFD packet to send [15:04:50]OFD Sender: No OFD packet to send [15:04:55]OFD Sender: No OFD packet to send [15:05:00]OFD Sender: No OFD packet to send [15:05:05]OFD Sender: No OFD packet to send [15:05:10]OFD Sender: No OFD packet to send [15:05:15]OFD Sender: No OFD packet to send [15:05:20]OFD Sender: No OFD packet to send [15:05:25]OFD Sender: No OFD packet to send [15:05:30]OFD Sender: No OFD packet to send [15:05:35]OFD Sender: No OFD packet to send [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15: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]OFD Sender: No OFD packet to send [15:09:10]OFD Sender: No OFD packet to send [15:09:15]OFD Sender: No OFD packet to send [15:09:20]OFD Sender: No OFD packet to send [15:09:25]OFD Sender: No OFD packet to send [15:09:30]OFD Sender: No OFD packet to send [15:09:35]OFD Sender: No OFD packet to send [15:09:40]OFD Sender: No OFD packet to send [15:09:45]OFD Sender: No OFD packet to send [15:09:50]OFD Sender: No OFD packet to send [15:09:55]OFD Sender: No OFD packet to send [15:10:00]OFD Sender: No OFD packet to send [15:10:05]OFD Sender: No OFD packet to send [15:10:10]OFD Sender: No OFD packet to send [15:10:15]OFD Sender: No OFD packet to send [15:10:20]OFD Sender: No OFD packet to send [15:10:25]OFD Sender: No OFD packet to send [15:10:30]OFD Sender: No OFD packet to send [15:10:35]OFD Sender: No OFD packet to send [15:10:40]OFD Sender: No OFD packet to send [15:10:45]OFD Sender: No OFD packet to send [15:10:50]OFD Sender: No OFD packet to send [15:10:55]OFD Sender: No OFD packet to send [15:11:00]OFD Sender: No OFD packet to send [15:11:05]OFD Sender: No OFD packet to send [15:11:10]OFD Sender: No OFD packet to send [15:11:15]OFD Sender: No OFD packet to send [15:11:20]OFD Sender: No OFD packet to send [15:11:25]OFD Sender: No OFD packet to send [15:11:28]accept exits with 9 [15:11:28]New connection [15:11:28]New thread 3066928484 created [15:11:28]Thread 3066785124 joined [15:11:28]Waiting for new connection... [15:11:28] Sock 9.Parse request [15:11:28]Sock 9.Check first char [15:11:28]Sock 9.First char is OK [15:11:28]request: POST /json_proto HTTP/1.0 [15:11:28]Method: POST [15:11:28]URL: /json_proto [15:11:28]Method is POST - this is cgi request [15:11:28]url: /json_proto [15:11:28]query_string will be loaded in cgi processing [15:11:28]execute_cgi json_proto POST (null) [15:11:28]execute_cgi path=json_proto method=POST [15:11:28]POST find Content-Length [15:11:28]Host: 172.17.33.3:8080 [15:11:28]Content-Length: 843 [15:11:28]Content-Type: application/json [15:11:28] [15:11:28]POST finish read [15:11:28]Found Content-Length = 843 [15:11:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347320", "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" : 72.50, "quantity" : 24.830, "sum" : 1800.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1800.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:28]execute_script... [15:11: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)347320", "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" : 72.50, "quantity" : 24.830, "sum" : 1800.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1800.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:28]POST & json_proto [15:11:28]process_json_proto [15:11:28]json parsed OK: [15:11:28]protocol is kg_v1.0 [15:11:28]action value=close_receipt [15:11:28]process_action close_receipt [15:11:28]cmd_close_receipt [15:11:28]MH_GetDate [15:11:28]Write to MH i2c: F0 00 00 9C 48 D3 [15:11:28]Write i2c OK [15:11:28]MH_I2C_Read... [15:11:28]Read from MH i2c: F0 [15:11:28]MH_I2C_Read... [15:11:28]Read from MH i2c: F0 09 00 [15:11:28]MH_I2C_Read... [15:11:28]Read from MH i2c: F0 09 00 9C 48 00 A6 A0 1A 66 23 5B 8F 65 14 [15:11:28]GetLastDocTimeStamp 1713020657 [15:11:28]current date 1713021094 [15:11:28]FM_GetShiftState [15:11:28]SAM_PROTO_GetShiftState [15:11:28]wFMCommunicate request_size=4 [15:11:28]MH_SAM_APDU [15:11:28]CAPDU: 80 13 01 00 [15:11:28]Write to MH i2c: E2 08 00 9D 48 80 13 01 00 00 00 00 00 62 [15:11:28]Write i2c OK [15:11:28]MH_I2C_Read... [15:11:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:28]Read from MH i2c: E2 [15:11:28]MH_I2C_Read... [15:11:28]Read from MH i2c: E2 0E 00 [15:11:28]MH_I2C_Read... [15:11:28]Read from MH i2c: E2 0E 00 9D 48 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 7B [15:11:28]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:11:28]wFMCommunicate OK [15:11:28]SAM_PROTO_GetShiftState done [15:11:28]FM_GetShiftState done [15:11:28]opened in 1712967615 [15:11:28]opened+sec_in_day 1713054015 [15:11:28]quantity*price = 180017 [15:11:28]sum+1 = 180019 [15:11:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1800.18 НСП 1% : 15.93 НДС 12% : 191.17 Наличными: 0.00 Безнал.: 1800.18 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 167 13.04.2024 15:11 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28960 ФПД: 173584705088670 1/tax-web-control/client/api/v1/ticket?date=20240413T151134&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28960&fm=173584705088670&tin=02508201610067®Number=0000138879044617&sum=180018 [15:11:30]StoreToDocumentArchive [15:11:30]shift 115 fd 28960 [15:11:30]save to /storage/0115/doc_00028960 [15:11:30]save last doc name /storage/0115/doc_00028960 to /storage/kkm_last_doc_name [15:11:30]save OK [15:11:30]Clear old archive folders... [15:11:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:11:30]tlvbuf is 01294B00 [15:11:30]SAM_PROTO_ClearQueue [15:11:30]wFMCommunicate request_size=4 [15:11:30]MH_SAM_APDU [15:11:30]CAPDU: 80 09 00 00 [15:11:30]Write to MH i2c: E2 08 00 AA 48 80 09 00 00 00 00 00 00 64 [15:11:30]Write i2c OK [15:11:30]MH_I2C_Read... [15:11:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:30]Read from MH i2c: E2 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: E2 03 00 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: E2 03 00 AA 48 00 90 00 66 [15:11:30]RAPDU: 90 00 [15:11:30]wFMCommunicate OK [15:11:30]SAM_PROTO_ClearQueue done [15:11:30]KKMCreateOFDPacket [15:11:30]OFDProtocolAddRootSTLVToBuf [15:11:30]FM_MakeSignedData [15:11:30]FM_MakeSignedData [15:11:30]SAM_PROTO_SignData [15:11:30]wFMCommunicate request_size=4 [15:11:30]MH_SAM_APDU [15:11:30]CAPDU: 80 0D 01 02 [15:11:30]Write to MH i2c: E2 08 00 AB 48 80 0D 01 02 00 00 00 00 6C [15:11:30]Write i2c OK [15:11:30]MH_I2C_Read... [15:11:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:30]Read from MH i2c: E2 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: E2 03 00 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: E2 03 00 AB 48 00 90 00 67 [15:11:30]RAPDU: 90 00 [15:11:30]wFMCommunicate OK [15:11:30]wFMCommunicate request_size=255 [15:11:30]MH_SAM_APDU [15:11: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 FE 60 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 32 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 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 AD 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 A6 A0 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 20 71 00 00 35 04 06 00 9D [15:11:30]Write to MH i2c: E2 02 01 AC 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 FE 60 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 32 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 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 AD 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 A6 A0 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 20 71 00 00 35 04 06 00 9D 00 00 80 [15:11:30]Write i2c OK [15:11:30]MH_I2C_Read... [15:11:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:30]Read from MH i2c: E2 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: E2 03 00 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: E2 03 00 AC 48 00 90 00 68 [15:11:30]RAPDU: 90 00 [15:11:30]wFMCommunicate OK [15:11:30]wFMCommunicate request_size=10 [15:11:30]MH_SAM_APDU [15:11:30]CAPDU: 80 0D 02 02 05 DF D6 AF 6C 9E [15:11:30]Write to MH i2c: E2 0D 00 AD 48 80 0D 02 02 05 00 DF D6 AF 6C 9E 00 00 E7 [15:11:30]Write i2c OK [15:11:30]MH_I2C_Read... [15:11:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:30]Read from MH i2c: E2 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: E2 03 00 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: E2 03 00 AD 48 00 90 00 69 [15:11:30]RAPDU: 90 00 [15:11:30]wFMCommunicate OK [15:11:30]wFMCommunicate request_size=4 [15:11:30]MH_SAM_APDU [15:11:30]CAPDU: 80 0D 03 02 [15:11:30]Write to MH i2c: E2 08 00 AE 48 80 0D 03 02 00 00 00 00 71 [15:11:30]Write i2c OK [15:11:30]MH_I2C_Read... [15:11:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:30]Read from MH i2c: E2 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: E2 0B 00 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: E2 0B 00 AE 48 00 87 9F BB 9B 9F AE 74 DF 90 00 8E [15:11:30]RAPDU: 87 9F BB 9B 9F AE 74 DF 90 00 [15:11:30]wFMCommunicate OK [15:11:30]SAM_PROTO_SignData done [15:11:30]FM_MakeSignedData done [15:11:30]CreateOFDProtocolMessage [15:11:30]wFMCommunicate request_size=4 [15:11:30]MH_SAM_APDU [15:11:30]CAPDU: 80 11 00 00 [15:11:30]Write to MH i2c: E2 08 00 AF 48 80 11 00 00 00 00 00 00 71 [15:11:30]Write i2c OK [15:11:30]MH_I2C_Read... [15:11:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:30]Read from MH i2c: E2 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: E2 17 00 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: E2 17 00 AF 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C0 [15:11:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:11:30]wFMCommunicate OK [15:11:30]CreateOFDProtocolMessage done [15:11:30]OFDSenderStorePacket 28960 [15:11:30]StoreOFDPacket docnum=28960 [15:11:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A1 4C 07 01 C6 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 FE 60 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 32 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 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 AD 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 A6 A0 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 20 71 00 00 35 04 06 00 9D DF D6 AF 6C 9E 87 9F BB 9B 9F AE 74 DF [15:11:30]CheckFolder [15:11:30]dirname=/storage/ofd_packets [15:11:30]CheckFolder done [15:11:30]ProducePacketName [15:11:30]name=ofd_packets/00028960 [15:11:30]NVStorageSaveData ofd_packets/00028960 [15:11:30]File name is /storage/ofd_packets/00028960 [15:11:30]Write 301 bytes [15:11:30]NVStorageSaveData done [15:11:30]OFDSenderStorePacket done [15:11:30]KKMCreateOFDPacket done [15:11:30]NVStorageSaveData kkm_last_timestamp [15:11:30]File name is /storage/kkm_last_timestamp [15:11:30]Write 4 bytes [15:11:30]NVStorageSaveData done [15:11:30]ExternCall_PrintAddStr [15:11:30]wPrintStart [15:11:30]Write to MH i2c: 01 00 00 B0 48 F8 [15:11:30]Write i2c OK [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: 01 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: 01 07 00 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: 01 07 00 B0 48 00 00 00 00 00 FF 0F 0D [15:11:30]RasterBufferAndPrint [15:11:30]line Счет N : (1)347320 [15:11:30]line ИНН: 02508201610067 [15:11:30]line Контрольно-Кассовый Чек [15:11:30]line ПРОДАЖА [15:11:30]line ТРК (МРК, ГНК) : 43 [15:11:30]line Товар: 2710124500 [15:11:30]line Аи-95-К-5 [15:11:30]line 24.830 * 72.50 [15:11:30]line = 1800.18 [15:11:30]line НДС 12% НСП 1% [15:11:30]line > о реализуемом товаре [15:11:30]line ИТОГО: 1800.18 [15:11:30]line НСП 1% : 15.93 [15:11:30]line НДС 12% : 191.17 [15:11:30]line Наличными: 0.00 [15:11:30]line Безнал.: 1800.18 [15:11:30]line Место: АЗС № 108 "Партнер Нефть" [15:11:30]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:11:30]line СНО: Общий режим [15:11:30]line Чек 167 13.04.2024 15:11 [15:11:30]line Смена: 115 ФФД: 1.0 [15:11:30]line ЗНМ: 0300000027 [15:11:30]line РНМ: 0000138879044617 [15:11:30]line Версия ККМ: 001 [15:11:30]line Платежная система: АКБ Кыргызстан [15:11:30]line ФМ: 0000000000963154 [15:11:30]line ФД: 28960 [15:11:30]line ФПД: 173584705088670 [15:11:30]line 1/tax-web-control/client/api/v1/ticket?date=20240413T151134&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28960&fm=173584705088670&tin=02508201610067®Number=0000138879044617&sum=180018 [15:11:30]OFD Sender: Processing packet 28960 [packets to send 8, broken 7] [15:11:30]ProducePacketName [15:11:30]name=ofd_packets/00028960 [15:11:30]OFD Sender: To server: pG, [15:11:30]CommunicateWithHost lk.salyk.kg:30040 [15:11:30]ConnectInit lk.salyk.kg [15:11:30]written 0, free lines is 4095 [15:11:31]Connected sock=10 [15:11: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 31 35 34 0F 01 00 00 A1 4C 07 01 C6 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 FE 60 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 32 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 32 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 AD 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 32 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 A6 A0 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 20 71 00 00 35 04 06 00 9D DF D6 AF 6C 9E 87 9F BB 9B 9F AE 74 DF [15:11:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F5 A6 47 00 55 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 31 35 34 10 04 04 00 20 71 00 00 F4 03 04 00 4C 4B 1A 66 B6 04 01 00 00 40 77 92 04 40 E5 F1 66 [15:11:31]CommunicateWithHost err = 0 [15:11:31]CheckOFDResponse [15:11:31]1017 (14) - 77093643461234 [15:11:31]1041 (16) - 0000000000963154 [15:11:31]1040 (4) - 28960 [15:11:31]1012 (4) - 13.04.2024 09:07 [15:11:31]1206 (1) - 0 [15:11:31]OFD Sender: Remove packet 28960 [15:11:31]ProducePacketName [15:11:31]name=ofd_packets/00028960 [15:11:31]NVStorageDeleteData [15:11:31]Write to MH i2c: 01 00 00 D9 48 21 [15:11:31]Write i2c OK [15:11:31]MH_I2C_Read... [15:11:31]Read from MH i2c: 01 [15:11:31]MH_I2C_Read... [15:11:31]Read from MH i2c: 01 07 00 [15:11:31]MH_I2C_Read... [15:11:31]Read from MH i2c: 01 07 00 D9 48 00 00 00 00 00 EE 0C 22 [15:11:31]RasterBufferAndPrint [15:11:31]line [15:11:31]line [15:11:31]line [15:11:31]line [15:11:31]line [15:11:31]written 0, free lines is 3317 [15:11:31]MH_Cut [15:11:31]Write to MH i2c: D1 01 00 E0 48 01 FA [15:11:31]Write i2c OK [15:11:31]MH_I2C_Read... [15:11:31]Read from MH i2c: D1 [15:11:31]MH_I2C_Read... [15:11:31]Read from MH i2c: D1 01 00 [15:11:31]MH_I2C_Read... [15:11:31]Read from MH i2c: D1 01 00 E0 48 00 F9 [15:11:31]Write to MH i2c: 01 00 00 E1 48 29 [15:11:31]Write i2c OK [15:11:31]MH_I2C_Read... [15:11:31]OFD Sender: No OFD packet to send [15:11:32]*** Cut start [15:11:32]*** Partial cut [15:11:32]*** CUTSNS_PIN = 1 [15:11:32]*** CUTSNS_PIN = 0 [15:11:32]*** Brake cut motor [15:11:32]Read from MH i2c: 01 [15:11:32]MH_I2C_Read... [15:11:32]*** Stop cut motor [15:11:32]*** Cut end [15:11:32]Read from MH i2c: 01 07 00 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: 01 07 00 E1 48 00 00 00 00 00 FF 0F 3E [15:11:32]process_action close_receipt done [15:11:32]requested_data is exist [15:11:32]produce_requested_data [15:11:32]requested_item fm.sn is exist - process it [15:11:32]wFMCommunicate request_size=4 [15:11:32]MH_SAM_APDU [15:11:32]CAPDU: 80 11 00 00 [15:11:32]Write to MH i2c: E2 08 00 E2 48 80 11 00 00 00 00 00 00 A4 [15:11:32]Write i2c OK [15:11:32]MH_I2C_Read... [15:11:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:32]Read from MH i2c: E2 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: E2 17 00 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: E2 17 00 E2 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F3 [15:11:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:11:32]wFMCommunicate OK [15:11:32]requested_item fd.num is exist - process it [15:11:32]SAM_PROTO_GetFieldsCounters [15:11:32]wFMCommunicate request_size=4 [15:11:32]MH_SAM_APDU [15:11:32]CAPDU: 80 13 00 00 [15:11:32]Write to MH i2c: E2 08 00 E3 48 80 13 00 00 00 00 00 00 A7 [15:11:32]Write i2c OK [15:11:32]MH_I2C_Read... [15:11:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:33]Read from MH i2c: E2 [15:11:33]MH_I2C_Read... [15:11:33]Read from MH i2c: E2 62 00 [15:11:33]MH_I2C_Read... [15:11:33]Read from MH i2c: E2 62 00 E3 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 20 71 00 00 0E 04 04 00 73 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 DE [15:11: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 20 71 00 00 0E 04 04 00 73 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 [15:11:33]wFMCommunicate OK [15:11:33]SAM_PROTO_GetFieldsCounters done [15:11:33]requested_item shift.num is exist - process it [15:11:33]requested_item shift.opened is exist - process it [15:11:33]req_shift_opened [15:11:33]FM_GetShiftState [15:11:33]SAM_PROTO_GetShiftState [15:11:33]wFMCommunicate request_size=4 [15:11:33]MH_SAM_APDU [15:11:33]CAPDU: 80 13 01 00 [15:11:33]Write to MH i2c: E2 08 00 E4 48 80 13 01 00 00 00 00 00 A9 [15:11:33]Write i2c OK [15:11:33]MH_I2C_Read... [15:11:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:33]Read from MH i2c: E2 [15:11:33]MH_I2C_Read... [15:11:33]Read from MH i2c: E2 0E 00 [15:11:33]MH_I2C_Read... [15:11:33]Read from MH i2c: E2 0E 00 E4 48 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 C2 [15:11:33]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:11:33]wFMCommunicate OK [15:11:33]SAM_PROTO_GetShiftState done [15:11:33]FM_GetShiftState done [15:11:33]req_shift_opened done [15:11:33]requested_item shift.open_date is exist - process it [15:11:33]req_shift_open_date [15:11:33]req_shift_open_date done [15:11:33]produce_requested_data done [15:11:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28960,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [15:11:33]process_action_free close_receipt [15:11:33]json_value_free [15:11:33]json_value_free done [15:11:33]process_json_proto returns [15:11:33]Send response to host [15:11:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28960,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [15:11:33]free response buf [15:11:33]execute_script done [15:11:33]execute_script returns [15:11:33]free content buf [15:11:33]Sock 9.Close socket [15:11:33]Sock 9.Thread stoped [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:12:01]OFD Sender: No OFD packet to send [15:12:06]OFD Sender: No OFD packet to send [15:12:11]OFD Sender: No OFD packet to send [15:12:16]OFD Sender: No OFD packet to send [15:12:21]OFD Sender: No OFD packet to send [15:12:26]OFD Sender: No OFD packet to send [15:12:31]OFD Sender: No OFD packet to send [15:12:36]OFD Sender: No OFD packet to send [15:12:41]OFD Sender: No OFD packet to send [15:12:46]OFD Sender: No OFD packet to send [15:12:51]OFD Sender: No OFD packet to send [15:12:56]OFD Sender: No OFD packet to send [15:13:01]OFD Sender: No OFD packet to send [15:13:06]OFD Sender: No OFD packet to send [15:13:11]OFD Sender: No OFD packet to send [15:13:16]OFD Sender: No OFD packet to send [15:13:21]OFD Sender: No OFD packet to send [15:13:26]OFD Sender: No OFD packet to send [15:13:28]accept exits with 7 [15:13:28]New connection [15:13:28]New thread 3066785124 created [15:13:28]Thread 3066928484 joined [15:13:28]Waiting for new connection... [15:13:28] Sock 7.Parse request [15:13:28]Sock 7.Check first char [15:13:28]Sock 7.First char is OK [15:13:28]request: POST /json_proto HTTP/1.0 [15:13:28]Method: POST [15:13:28]URL: /json_proto [15:13:28]Method is POST - this is cgi request [15:13:28]url: /json_proto [15:13:28]query_string will be loaded in cgi processing [15:13:28]execute_cgi json_proto POST (null) [15:13:28]execute_cgi path=json_proto method=POST [15:13:28]POST find Content-Length [15:13:28]Host: 172.17.33.3:8080 [15:13:28]Content-Length: 675 [15:13:28]Content-Type: application/json [15:13:28] [15:13:28]POST finish read [15:13:28]Found Content-Length = 675 [15:13:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:13:28]execute_script... [15:13: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)347321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:13:28]POST & json_proto [15:13:28]process_json_proto [15:13:28]json parsed OK: [15:13:28]protocol is kg_v1.0 [15:13:28]action value=close_receipt [15:13:28]process_action close_receipt [15:13:28]cmd_close_receipt [15:13:28]MH_GetDate [15:13:28]Write to MH i2c: F0 00 00 E5 48 1C [15:13:28]Write i2c OK [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: F0 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: F0 09 00 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: F0 09 00 E5 48 00 1D A1 1A 66 23 5B 8F 65 D5 [15:13:28]GetLastDocTimeStamp 1713021094 [15:13:28]current date 1713021213 [15:13:28]FM_GetShiftState [15:13:28]SAM_PROTO_GetShiftState [15:13:28]wFMCommunicate request_size=4 [15:13:28]MH_SAM_APDU [15:13:28]CAPDU: 80 13 01 00 [15:13:28]Write to MH i2c: E2 08 00 E6 48 80 13 01 00 00 00 00 00 AB [15:13:28]Write i2c OK [15:13:28]MH_I2C_Read... [15:13:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:28]Read from MH i2c: E2 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 0E 00 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 0E 00 E6 48 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 C4 [15:13:28]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:13:28]wFMCommunicate OK [15:13:28]SAM_PROTO_GetShiftState done [15:13:28]FM_GetShiftState done [15:13:28]opened in 1712967615 [15:13:28]opened+sec_in_day 1713054015 [15:13:28]quantity*price = 100039 [15:13:28]sum+1 = 100041 [15:13:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 168 13.04.2024 15:13 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28961 ФПД: 168396349933334 1/tax-web-control/client/api/v1/ticket?date=20240413T151333&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28961&fm=168396349933334&tin=02508201610067®Number=0000138879044617&sum=100000 [15:13:29]StoreToDocumentArchive [15:13:29]shift 115 fd 28961 [15:13:29]save to /storage/0115/doc_00028961 [15:13:29]save last doc name /storage/0115/doc_00028961 to /storage/kkm_last_doc_name [15:13:29]save OK [15:13:29]Clear old archive folders... [15:13:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:13:29]tlvbuf is 0121C540 [15:13:29]SAM_PROTO_ClearQueue [15:13:29]wFMCommunicate request_size=4 [15:13:29]MH_SAM_APDU [15:13:29]CAPDU: 80 09 00 00 [15:13:29]Write to MH i2c: E2 08 00 F3 48 80 09 00 00 00 00 00 00 AD [15:13:29]Write i2c OK [15:13:29]MH_I2C_Read... [15:13:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:29]Read from MH i2c: E2 [15:13:29]MH_I2C_Read... [15:13:29]Read from MH i2c: E2 03 00 [15:13:29]MH_I2C_Read... [15:13:29]Read from MH i2c: E2 03 00 F3 48 00 90 00 AF [15:13:29]RAPDU: 90 00 [15:13:29]wFMCommunicate OK [15:13:29]SAM_PROTO_ClearQueue done [15:13:29]KKMCreateOFDPacket [15:13:29]OFDProtocolAddRootSTLVToBuf [15:13:29]FM_MakeSignedData [15:13:29]FM_MakeSignedData [15:13:29]SAM_PROTO_SignData [15:13:29]wFMCommunicate request_size=4 [15:13:29]MH_SAM_APDU [15:13:29]CAPDU: 80 0D 01 02 [15:13:29]Write to MH i2c: E2 08 00 F4 48 80 0D 01 02 00 00 00 00 B5 [15:13:29]Write i2c OK [15:13:29]MH_I2C_Read... [15:13:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:29]Read from MH i2c: E2 [15:13:29]MH_I2C_Read... [15:13:29]Read from MH i2c: E2 03 00 [15:13:29]MH_I2C_Read... [15:13:29]Read from MH i2c: E2 03 00 F4 48 00 90 00 B0 [15:13:29]RAPDU: 90 00 [15:13:29]wFMCommunicate OK [15:13:29]wFMCommunicate request_size=255 [15:13:29]MH_SAM_APDU [15:13:29]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 1D A1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 21 71 00 00 35 04 06 00 [15:13:29]Write to MH i2c: E2 02 01 F5 48 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 1D A1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 21 71 00 00 35 04 06 00 00 00 DD [15:13:29]Write i2c OK [15:13:29]MH_I2C_Read... [15:13:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:29]Read from MH i2c: E2 [15:13:29]MH_I2C_Read... [15:13:29]Read from MH i2c: E2 03 00 [15:13:29]MH_I2C_Read... [15:13:29]Read from MH i2c: E2 03 00 F5 48 00 90 00 B1 [15:13:29]RAPDU: 90 00 [15:13:29]wFMCommunicate OK [15:13:29]wFMCommunicate request_size=11 [15:13:29]MH_SAM_APDU [15:13:29]CAPDU: 80 0D 02 02 06 99 27 D4 9E 87 16 [15:13:29]Write to MH i2c: E2 0E 00 F6 48 80 0D 02 02 06 00 99 27 D4 9E 87 16 00 00 93 [15:13:29]Write i2c OK [15:13:29]MH_I2C_Read... [15:13:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:29]Read from MH i2c: E2 [15:13:29]MH_I2C_Read... [15:13:29]Read from MH i2c: E2 03 00 [15:13:29]MH_I2C_Read... [15:13:29]Read from MH i2c: E2 03 00 F6 48 00 90 00 B2 [15:13:29]RAPDU: 90 00 [15:13:29]wFMCommunicate OK [15:13:29]wFMCommunicate request_size=4 [15:13:29]MH_SAM_APDU [15:13:29]CAPDU: 80 0D 03 02 [15:13:29]Write to MH i2c: E2 08 00 F7 48 80 0D 03 02 00 00 00 00 BA [15:13:29]Write i2c OK [15:13:29]MH_I2C_Read... [15:13:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:29]Read from MH i2c: E2 [15:13:29]MH_I2C_Read... [15:13:29]Read from MH i2c: E2 0B 00 [15:13:29]MH_I2C_Read... [15:13:29]Read from MH i2c: E2 0B 00 F7 48 00 9A 18 46 7E C7 46 17 58 90 00 AD [15:13:29]RAPDU: 9A 18 46 7E C7 46 17 58 90 00 [15:13:29]wFMCommunicate OK [15:13:29]SAM_PROTO_SignData done [15:13:29]FM_MakeSignedData done [15:13:29]CreateOFDProtocolMessage [15:13:29]wFMCommunicate request_size=4 [15:13:29]MH_SAM_APDU [15:13:29]CAPDU: 80 11 00 00 [15:13:29]Write to MH i2c: E2 08 00 F8 48 80 11 00 00 00 00 00 00 BA [15:13:29]Write i2c OK [15:13:29]MH_I2C_Read... [15:13:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:29]Read from MH i2c: E2 [15:13:29]MH_I2C_Read... [15:13:29]Read from MH i2c: E2 17 00 [15:13:29]MH_I2C_Read... [15:13:29]Read from MH i2c: E2 17 00 F8 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 09 [15:13:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:13:29]wFMCommunicate OK [15:13:29]CreateOFDProtocolMessage done [15:13:29]OFDSenderStorePacket 28961 [15:13:29]StoreOFDPacket docnum=28961 [15:13:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 37 D8 08 01 BC 20 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 1D A1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 21 71 00 00 35 04 06 00 99 27 D4 9E 87 16 9A 18 46 7E C7 46 17 58 [15:13:29]CheckFolder [15:13:29]dirname=/storage/ofd_packets [15:13:29]CheckFolder done [15:13:29]ProducePacketName [15:13:29]name=ofd_packets/00028961 [15:13:29]NVStorageSaveData ofd_packets/00028961 [15:13:29]File name is /storage/ofd_packets/00028961 [15:13:29]Write 302 bytes [15:13:29]NVStorageSaveData done [15:13:29]OFDSenderStorePacket done [15:13:29]KKMCreateOFDPacket done [15:13:29]NVStorageSaveData kkm_last_timestamp [15:13:29]File name is /storage/kkm_last_timestamp [15:13:29]Write 4 bytes [15:13:29]NVStorageSaveData done [15:13:29]ExternCall_PrintAddStr [15:13:29]wPrintStart [15:13:29]Write to MH i2c: 01 00 00 F9 48 41 [15:13:29]Write i2c OK [15:13:29]MH_I2C_Read... [15:13:29]Read from MH i2c: 01 [15:13:29]MH_I2C_Read... [15:13:29]Read from MH i2c: 01 07 00 [15:13:29]MH_I2C_Read... [15:13:29]Read from MH i2c: 01 07 00 F9 48 00 00 00 00 00 FF 0F 56 [15:13:29]RasterBufferAndPrint [15:13:29]line Счет N : (1)347321 [15:13:29]line ИНН: 02508201610067 [15:13:29]line Контрольно-Кассовый Чек [15:13:29]line ПРОДАЖА [15:13:29]line ТРК (МРК, ГНК) : 31 [15:13:29]line Товар: 2710124130 [15:13:29]line SUPER-92-К-5 [15:13:29]line 15.320 * 65.30 [15:13:29]line = 1000.40 [15:13:29]line НДС 12% НСП 1% [15:13:29]line > о реализуемом товаре [15:13:29]line ОКРУГЛЕНИЕ: -0.40 [15:13:29]line ИТОГО: 1000.00 [15:13:29]line Внесено: 1000.00 [15:13:29]line СДАЧА: 0.00 [15:13:29]line НСП 1% : 8.85 [15:13:29]line НДС 12% : 106.24 [15:13:29]line Наличными: 1000.00 [15:13:29]line Безнал.: 0.00 [15:13:29]line Место: АЗС № 108 "Партнер Нефть" [15:13:29]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:13:29]line СНО: Общий режим [15:13:29]line Чек 168 13.04.2024 15:13 [15:13:29]line Смена: 115 ФФД: 1.0 [15:13:29]line ЗНМ: 0300000027 [15:13:29]line РНМ: 0000138879044617 [15:13:29]line Версия ККМ: 001 [15:13:29]line ФМ: 0000000000963154 [15:13:29]line ФД: 28961 [15:13:29]line ФПД: 168396349933334 [15:13:29]line 1/tax-web-control/client/api/v1/ticket?date=20240413T151333&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28961&fm=168396349933334&tin=02508201610067®Number=0000138879044617&sum=100000 [15:13:30]OFD Sender: Processing packet 28961 [packets to send 8, broken 7] [15:13:30]ProducePacketName [15:13:30]name=ofd_packets/00028961 [15:13:30]OFD Sender: To server: pG, [15:13:30]CommunicateWithHost lk.salyk.kg:30040 [15:13:30]ConnectInit lk.salyk.kg [15:13:30]written 0, free lines is 4095 [15:13:30]Connected sock=10 [15:13: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 31 35 34 10 01 00 00 37 D8 08 01 BC 20 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 1D A1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 21 71 00 00 35 04 06 00 99 27 D4 9E 87 16 9A 18 46 7E C7 46 17 58 [15:13:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4F E6 47 00 48 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 21 71 00 00 F4 03 04 00 C4 4B 1A 66 B6 04 01 00 00 98 AF F5 D1 60 36 19 55 [15:13:30]CommunicateWithHost err = 0 [15:13:30]CheckOFDResponse [15:13:30]1017 (14) - 77093643461234 [15:13:30]1041 (16) - 0000000000963154 [15:13:30]1040 (4) - 28961 [15:13:30]1012 (4) - 13.04.2024 09:09 [15:13:30]1206 (1) - 0 [15:13:30]OFD Sender: Remove packet 28961 [15:13:30]ProducePacketName [15:13:30]name=ofd_packets/00028961 [15:13:30]NVStorageDeleteData [15:13:30]Write to MH i2c: 01 00 00 23 49 6C [15:13:30]Write i2c OK [15:13:30]MH_I2C_Read... [15:13:30]Read from MH i2c: 01 [15:13:30]MH_I2C_Read... [15:13:30]Read from MH i2c: 01 07 00 [15:13:30]MH_I2C_Read... [15:13:30]Read from MH i2c: 01 07 00 23 49 00 00 00 00 00 D2 0C 51 [15:13:30]RasterBufferAndPrint [15:13:30]line [15:13:30]line [15:13:30]line [15:13:30]line [15:13:30]line [15:13:30]written 0, free lines is 3288 [15:13:30]MH_Cut [15:13:30]Write to MH i2c: D1 01 00 2A 49 01 45 [15:13:30]Write i2c OK [15:13:30]MH_I2C_Read... [15:13:30]Read from MH i2c: D1 [15:13:30]MH_I2C_Read... [15:13:30]Read from MH i2c: D1 01 00 [15:13:30]MH_I2C_Read... [15:13:30]Read from MH i2c: D1 01 00 2A 49 00 44 [15:13:30]Write to MH i2c: 01 00 00 2B 49 74 [15:13:30]Write i2c OK [15:13:30]MH_I2C_Read... [15:13:31]OFD Sender: No OFD packet to send [15:13:31]*** Cut start [15:13:31]*** Partial cut [15:13:31]*** CUTSNS_PIN = 1 [15:13:31]*** CUTSNS_PIN = 0 [15:13:31]*** Brake cut motor [15:13:32]Read from MH i2c: 01 [15:13:32]MH_I2C_Read... [15:13:32]*** Stop cut motor [15:13:32]*** Cut end [15:13:32]Read from MH i2c: 01 07 00 [15:13:32]MH_I2C_Read... [15:13:32]Read from MH i2c: 01 07 00 2B 49 00 00 00 00 00 FF 0F 89 [15:13:32]process_action close_receipt done [15:13:32]requested_data is exist [15:13:32]produce_requested_data [15:13:32]requested_item fm.sn is exist - process it [15:13:32]wFMCommunicate request_size=4 [15:13:32]MH_SAM_APDU [15:13:32]CAPDU: 80 11 00 00 [15:13:32]Write to MH i2c: E2 08 00 2C 49 80 11 00 00 00 00 00 00 EF [15:13:32]Write i2c OK [15:13:32]MH_I2C_Read... [15:13:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:32]Read from MH i2c: E2 [15:13:32]MH_I2C_Read... [15:13:32]Read from MH i2c: E2 17 00 [15:13:32]MH_I2C_Read... [15:13:32]Read from MH i2c: E2 17 00 2C 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3E [15:13:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:13:32]wFMCommunicate OK [15:13:32]requested_item fd.num is exist - process it [15:13:32]SAM_PROTO_GetFieldsCounters [15:13:32]wFMCommunicate request_size=4 [15:13:32]MH_SAM_APDU [15:13:32]CAPDU: 80 13 00 00 [15:13:32]Write to MH i2c: E2 08 00 2D 49 80 13 00 00 00 00 00 00 F2 [15:13:32]Write i2c OK [15:13:32]MH_I2C_Read... [15:13:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:32]Read from MH i2c: E2 [15:13:32]MH_I2C_Read... [15:13:32]Read from MH i2c: E2 62 00 [15:13:32]MH_I2C_Read... [15:13:32]Read from MH i2c: E2 62 00 2D 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 21 71 00 00 0E 04 04 00 73 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 2D [15:13: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 21 71 00 00 0E 04 04 00 73 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 [15:13:32]wFMCommunicate OK [15:13:32]SAM_PROTO_GetFieldsCounters done [15:13:32]requested_item shift.num is exist - process it [15:13:32]requested_item shift.opened is exist - process it [15:13:32]req_shift_opened [15:13:32]FM_GetShiftState [15:13:32]SAM_PROTO_GetShiftState [15:13:32]wFMCommunicate request_size=4 [15:13:32]MH_SAM_APDU [15:13:32]CAPDU: 80 13 01 00 [15:13:32]Write to MH i2c: E2 08 00 2E 49 80 13 01 00 00 00 00 00 F4 [15:13:32]Write i2c OK [15:13:32]MH_I2C_Read... [15:13:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:32]Read from MH i2c: E2 [15:13:32]MH_I2C_Read... [15:13:32]Read from MH i2c: E2 0E 00 [15:13:32]MH_I2C_Read... [15:13:32]Read from MH i2c: E2 0E 00 2E 49 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 0D [15:13:32]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:13:32]wFMCommunicate OK [15:13:32]SAM_PROTO_GetShiftState done [15:13:32]FM_GetShiftState done [15:13:32]req_shift_opened done [15:13:32]requested_item shift.open_date is exist - process it [15:13:32]req_shift_open_date [15:13:32]req_shift_open_date done [15:13:32]produce_requested_data done [15:13:32]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28961,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [15:13:32]process_action_free close_receipt [15:13:32]json_value_free [15:13:32]json_value_free done [15:13:32]process_json_proto returns [15:13:32]Send response to host [15:13:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28961,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [15:13:32]free response buf [15:13:32]execute_script done [15:13:32]execute_script returns [15:13:32]free content buf [15:13:32]Sock 7.Close socket [15:13:32]Sock 7.Thread stoped [15:13:36]OFD Sender: No OFD packet to send [15:13:41]OFD Sender: No OFD packet to send [15:13:46]OFD Sender: No OFD packet to send [15:13:51]OFD Sender: No OFD packet to send [15:13:56]OFD Sender: No OFD packet to send [15:14:01]OFD Sender: No OFD packet to send [15:14:06]OFD Sender: No OFD packet to send [15:14:11]OFD Sender: No OFD packet to send [15:14:16]OFD Sender: No OFD packet to send [15:14:21]OFD Sender: No OFD packet to send [15:14:26]OFD Sender: No OFD packet to send [15:14:31]OFD Sender: No OFD packet to send [15:14:36]OFD Sender: No OFD packet to send [15:14:41]OFD Sender: No OFD packet to send [15:14:46]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:41]OFD Sender: No OFD packet to send [15:18:46]OFD Sender: No OFD packet to send [15:18:51]OFD Sender: No OFD packet to send [15:18:56]OFD Sender: No OFD packet to send [15:19:01]OFD Sender: No OFD packet to send [15:19:06]OFD Sender: No OFD packet to send [15:19:11]OFD Sender: No OFD packet to send [15:19:16]OFD Sender: No OFD packet to send [15:19:21]OFD Sender: No OFD packet to send [15:19:26]OFD Sender: No OFD packet to send [15:19:31]OFD Sender: No OFD packet to send [15:19:36]OFD Sender: No OFD packet to send [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:21]OFD Sender: No OFD packet to send [15:20:26]OFD Sender: No OFD packet to send [15:20:31]OFD Sender: No OFD packet to send [15:20:36]OFD Sender: No OFD packet to send [15:20:41]OFD Sender: No OFD packet to send [15:20:46]OFD Sender: No OFD packet to send [15:20:51]OFD Sender: No OFD packet to send [15:20:56]OFD Sender: No OFD packet to send [15:21:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:21]OFD Sender: No OFD packet to send [15:22:26]OFD Sender: No OFD packet to send [15:22:31]OFD Sender: No OFD packet to send [15:22:36]OFD Sender: No OFD packet to send [15:22:41]OFD Sender: No OFD packet to send [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:56]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [15:26:01]OFD Sender: No OFD packet to send [15:26:06]OFD Sender: No OFD packet to send [15:26:11]OFD Sender: No OFD packet to send [15:26:16]OFD Sender: No OFD packet to send [15:26:21]OFD Sender: No OFD packet to send [15:26:26]OFD Sender: No OFD packet to send [15:26:31]OFD Sender: No OFD packet to send [15:26:36]OFD Sender: No OFD packet to send [15:26:41]OFD Sender: No OFD packet to send [15:26:46]OFD Sender: No OFD packet to send [15:26:51]OFD Sender: No OFD packet to send [15:26:56]OFD Sender: No OFD packet to send [15:27:01]OFD Sender: No OFD packet to send [15:27:06]OFD Sender: No OFD packet to send [15:27:11]OFD Sender: No OFD packet to send [15:27:16]OFD Sender: No OFD packet to send [15:27:21]OFD Sender: No OFD packet to send [15:27:26]OFD Sender: No OFD packet to send [15:27:31]OFD Sender: No OFD packet to send [15:27:36]OFD Sender: No OFD packet to send [15:27:41]OFD Sender: No OFD packet to send [15:27:46]OFD Sender: No OFD packet to send [15:27:51]OFD Sender: No OFD packet to send [15:27:56]OFD Sender: No OFD packet to send [15:28:01]OFD Sender: No OFD packet to send [15:28:06]OFD Sender: No OFD packet to send [15:28:11]OFD Sender: No OFD packet to send [15:28:16]OFD Sender: No OFD packet to send [15:28:21]OFD Sender: No OFD packet to send [15:28:26]OFD Sender: No OFD packet to send [15:28:31]OFD Sender: No OFD packet to send [15:28:36]OFD Sender: No OFD packet to send [15:28:41]OFD Sender: No OFD packet to send [15:28:46]OFD Sender: No OFD packet to send [15:28:51]OFD Sender: No OFD packet to send [15:28:56]OFD Sender: No OFD packet to send [15:29:01]OFD Sender: No OFD packet to send [15:29:06]OFD Sender: No OFD packet to send [15:29:11]OFD Sender: No OFD packet to send [15:29:16]OFD Sender: No OFD packet to send [15:29:18]accept exits with 9 [15:29:18]New connection [15:29:18]New thread 3066928484 created [15:29:18]Thread 3066785124 joined [15:29:18]Waiting for new connection... [15:29:18] Sock 9.Parse request [15:29:18]Sock 9.Check first char [15:29:18]Sock 9.First char is OK [15:29:18]request: POST /json_proto HTTP/1.0 [15:29:18]Method: POST [15:29:18]URL: /json_proto [15:29:18]Method is POST - this is cgi request [15:29:18]url: /json_proto [15:29:18]query_string will be loaded in cgi processing [15:29:18]execute_cgi json_proto POST (null) [15:29:18]execute_cgi path=json_proto method=POST [15:29:18]POST find Content-Length [15:29:18]Host: 172.17.33.3:8080 [15:29:18]Content-Length: 808 [15:29:18]Content-Type: application/json [15:29:18] [15:29:18]POST finish read [15:29:18]Found Content-Length = 808 [15:29:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347322", "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" : 72.50, "quantity" : 49.080, "sum" : 3558.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3558.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:18]execute_script... [15:29: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)347322", "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" : 72.50, "quantity" : 49.080, "sum" : 3558.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3558.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:18]POST & json_proto [15:29:18]process_json_proto [15:29:18]json parsed OK: [15:29:18]protocol is kg_v1.0 [15:29:18]action value=close_receipt [15:29:18]process_action close_receipt [15:29:18]cmd_close_receipt [15:29:18]MH_GetDate [15:29:18]Write to MH i2c: F0 00 00 2F 49 67 [15:29:18]Write i2c OK [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: F0 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: F0 09 00 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: F0 09 00 2F 49 00 D4 A4 1A 66 23 5B 8F 65 DA [15:29:18]GetLastDocTimeStamp 1713021213 [15:29:18]current date 1713022164 [15:29:18]FM_GetShiftState [15:29:18]SAM_PROTO_GetShiftState [15:29:18]wFMCommunicate request_size=4 [15:29:18]MH_SAM_APDU [15:29:18]CAPDU: 80 13 01 00 [15:29:18]Write to MH i2c: E2 08 00 30 49 80 13 01 00 00 00 00 00 F6 [15:29:18]Write i2c OK [15:29:18]MH_I2C_Read... [15:29:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:18]Read from MH i2c: E2 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: E2 0E 00 [15:29:18]MH_I2C_Read... [15:29:18]Read from MH i2c: E2 0E 00 30 49 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 0F [15:29:18]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:29:18]wFMCommunicate OK [15:29:18]SAM_PROTO_GetShiftState done [15:29:18]FM_GetShiftState done [15:29:18]opened in 1712967615 [15:29:18]opened+sec_in_day 1713054015 [15:29:18]quantity*price = 355830 [15:29:18]sum+1 = 355831 [15:29:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3558.30 НСП 1% : 31.49 НДС 12% : 377.87 Наличными: 0.00 Безнал.: 3558.30 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 169 13.04.2024 15:29 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28962 ФПД: 111405341623641 1/tax-web-control/client/api/v1/ticket?date=20240413T152924&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28962&fm=111405341623641&tin=02508201610067®Number=0000138879044617&sum=355830 [15:29:19]StoreToDocumentArchive [15:29:19]shift 115 fd 28962 [15:29:19]save to /storage/0115/doc_00028962 [15:29:19]save last doc name /storage/0115/doc_00028962 to /storage/kkm_last_doc_name [15:29:19]save OK [15:29:19]Clear old archive folders... [15:29:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:29:19]tlvbuf is 011E3960 [15:29:19]SAM_PROTO_ClearQueue [15:29:19]wFMCommunicate request_size=4 [15:29:19]MH_SAM_APDU [15:29:19]CAPDU: 80 09 00 00 [15:29:19]Write to MH i2c: E2 08 00 3D 49 80 09 00 00 00 00 00 00 F8 [15:29:19]Write i2c OK [15:29:19]MH_I2C_Read... [15:29:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:19]Read from MH i2c: E2 [15:29:19]MH_I2C_Read... [15:29:19]Read from MH i2c: E2 03 00 [15:29:19]MH_I2C_Read... [15:29:19]Read from MH i2c: E2 03 00 3D 49 00 90 00 FA [15:29:19]RAPDU: 90 00 [15:29:19]wFMCommunicate OK [15:29:19]SAM_PROTO_ClearQueue done [15:29:19]KKMCreateOFDPacket [15:29:19]OFDProtocolAddRootSTLVToBuf [15:29:19]FM_MakeSignedData [15:29:19]FM_MakeSignedData [15:29:19]SAM_PROTO_SignData [15:29:19]wFMCommunicate request_size=4 [15:29:19]MH_SAM_APDU [15:29:19]CAPDU: 80 0D 01 02 [15:29:19]Write to MH i2c: E2 08 00 3E 49 80 0D 01 02 00 00 00 00 00 [15:29:19]Write i2c OK [15:29:19]MH_I2C_Read... [15:29:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:20]Read from MH i2c: E2 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: E2 03 00 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: E2 03 00 3E 49 00 90 00 FB [15:29:20]RAPDU: 90 00 [15:29:20]wFMCommunicate OK [15:29:20]wFMCommunicate request_size=255 [15:29:20]MH_SAM_APDU [15:29: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 B8 BF 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 F6 6D 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 6D 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 93 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 6D 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 D4 A4 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 22 71 00 00 35 04 06 00 65 [15:29:20]Write to MH i2c: E2 02 01 3F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 BF 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 F6 6D 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 6D 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 93 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 6D 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 D4 A4 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 22 71 00 00 35 04 06 00 65 00 00 DB [15:29:20]Write i2c OK [15:29:20]MH_I2C_Read... [15:29:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:20]Read from MH i2c: E2 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: E2 03 00 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: E2 03 00 3F 49 00 90 00 FC [15:29:20]RAPDU: 90 00 [15:29:20]wFMCommunicate OK [15:29:20]wFMCommunicate request_size=10 [15:29:20]MH_SAM_APDU [15:29:20]CAPDU: 80 0D 02 02 05 52 93 D0 45 59 [15:29:20]Write to MH i2c: E2 0D 00 40 49 80 0D 02 02 05 00 52 93 D0 45 59 00 00 60 [15:29:20]Write i2c OK [15:29:20]MH_I2C_Read... [15:29:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:20]Read from MH i2c: E2 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: E2 03 00 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: E2 03 00 40 49 00 90 00 FD [15:29:20]RAPDU: 90 00 [15:29:20]wFMCommunicate OK [15:29:20]wFMCommunicate request_size=4 [15:29:20]MH_SAM_APDU [15:29:20]CAPDU: 80 0D 03 02 [15:29:20]Write to MH i2c: E2 08 00 41 49 80 0D 03 02 00 00 00 00 05 [15:29:20]Write i2c OK [15:29:20]MH_I2C_Read... [15:29:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:20]Read from MH i2c: E2 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: E2 0B 00 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: E2 0B 00 41 49 00 CA 99 5A D5 48 2F 71 6E 90 00 EE [15:29:20]RAPDU: CA 99 5A D5 48 2F 71 6E 90 00 [15:29:20]wFMCommunicate OK [15:29:20]SAM_PROTO_SignData done [15:29:20]FM_MakeSignedData done [15:29:20]CreateOFDProtocolMessage [15:29:20]wFMCommunicate request_size=4 [15:29:20]MH_SAM_APDU [15:29:20]CAPDU: 80 11 00 00 [15:29:20]Write to MH i2c: E2 08 00 42 49 80 11 00 00 00 00 00 00 05 [15:29:20]Write i2c OK [15:29:20]MH_I2C_Read... [15:29:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:20]Read from MH i2c: E2 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: E2 17 00 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: E2 17 00 42 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 54 [15:29:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:29:20]wFMCommunicate OK [15:29:20]CreateOFDProtocolMessage done [15:29:20]OFDSenderStorePacket 28962 [15:29:20]StoreOFDPacket docnum=28962 [15:29:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9E AB 07 01 A0 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 BF 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 F6 6D 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 6D 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 93 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 6D 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 D4 A4 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 22 71 00 00 35 04 06 00 65 52 93 D0 45 59 CA 99 5A D5 48 2F 71 6E [15:29:20]CheckFolder [15:29:20]dirname=/storage/ofd_packets [15:29:20]CheckFolder done [15:29:20]ProducePacketName [15:29:20]name=ofd_packets/00028962 [15:29:20]NVStorageSaveData ofd_packets/00028962 [15:29:20]File name is /storage/ofd_packets/00028962 [15:29:20]Write 301 bytes [15:29:20]NVStorageSaveData done [15:29:20]OFDSenderStorePacket done [15:29:20]KKMCreateOFDPacket done [15:29:20]NVStorageSaveData kkm_last_timestamp [15:29:20]File name is /storage/kkm_last_timestamp [15:29:20]Write 4 bytes [15:29:20]NVStorageSaveData done [15:29:20]ExternCall_PrintAddStr [15:29:20]wPrintStart [15:29:20]Write to MH i2c: 01 00 00 43 49 8C [15:29:20]Write i2c OK [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: 01 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: 01 07 00 [15:29:20]MH_I2C_Read... [15:29:20]Read from MH i2c: 01 07 00 43 49 00 00 00 00 00 FF 0F A1 [15:29:20]RasterBufferAndPrint [15:29:20]line Счет N : (1)347322 [15:29:20]line ИНН: 02508201610067 [15:29:20]line Контрольно-Кассовый Чек [15:29:20]line ПРОДАЖА [15:29:20]line ТРК (МРК, ГНК) : 33 [15:29:20]line Товар: 2710124500 [15:29:20]line Аи-95-К-5 [15:29:20]line 49.080 * 72.50 [15:29:20]line = 3558.30 [15:29:20]line НДС 12% НСП 1% [15:29:20]line > о реализуемом товаре [15:29:20]line ИТОГО: 3558.30 [15:29:20]line НСП 1% : 31.49 [15:29:20]line НДС 12% : 377.87 [15:29:20]line Наличными: 0.00 [15:29:20]line Безнал.: 3558.30 [15:29:20]line Место: АЗС № 108 "Партнер Нефть" [15:29:20]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:29:20]line СНО: Общий режим [15:29:20]line Чек 169 13.04.2024 15:29 [15:29:20]line Смена: 115 ФФД: 1.0 [15:29:20]line ЗНМ: 0300000027 [15:29:20]line РНМ: 0000138879044617 [15:29:20]line Версия ККМ: 001 [15:29:20]line Платежная система: О! деньги [15:29:20]line ФМ: 0000000000963154 [15:29:20]line ФД: 28962 [15:29:20]line ФПД: 111405341623641 [15:29:20]line 1/tax-web-control/client/api/v1/ticket?date=20240413T152924&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28962&fm=111405341623641&tin=02508201610067®Number=0000138879044617&sum=355830 [15:29:20]OFD Sender: Processing packet 28962 [packets to send 8, broken 7] [15:29:20]ProducePacketName [15:29:20]name=ofd_packets/00028962 [15:29:20]OFD Sender: To server: pG, [15:29:20]CommunicateWithHost lk.salyk.kg:30040 [15:29:20]ConnectInit lk.salyk.kg [15:29:20]written 0, free lines is 4095 [15:29:20]Connected sock=10 [15:29: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 31 35 34 0F 01 00 00 9E AB 07 01 A0 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 BF 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 F6 6D 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 6D 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 93 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 6D 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 D4 A4 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 22 71 00 00 35 04 06 00 65 52 93 D0 45 59 CA 99 5A D5 48 2F 71 6E [15:29:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E7 44 47 00 19 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 31 35 34 10 04 04 00 22 71 00 00 F4 03 04 00 7A 4F 1A 66 B6 04 01 00 00 D0 C5 17 A3 0B E6 0C 26 [15:29:21]CommunicateWithHost err = 0 [15:29:21]CheckOFDResponse [15:29:21]1017 (14) - 77093643461234 [15:29:21]1041 (16) - 0000000000963154 [15:29:21]1040 (4) - 28962 [15:29:21]1012 (4) - 13.04.2024 09:25 [15:29:21]1206 (1) - 0 [15:29:21]OFD Sender: Remove packet 28962 [15:29:21]ProducePacketName [15:29:21]name=ofd_packets/00028962 [15:29:21]NVStorageDeleteData [15:29:21]Write to MH i2c: 01 00 00 6C 49 B5 [15:29:21]Write i2c OK [15:29:21]MH_I2C_Read... [15:29:21]Read from MH i2c: 01 [15:29:21]MH_I2C_Read... [15:29:21]Read from MH i2c: 01 07 00 [15:29:21]MH_I2C_Read... [15:29:21]Read from MH i2c: 01 07 00 6C 49 00 00 00 00 00 D4 0C 9C [15:29:21]RasterBufferAndPrint [15:29:21]line [15:29:21]line [15:29:21]line [15:29:21]line [15:29:21]line [15:29:21]written 0, free lines is 3290 [15:29:21]MH_Cut [15:29:21]Write to MH i2c: D1 01 00 73 49 01 8E [15:29:21]Write i2c OK [15:29:21]MH_I2C_Read... [15:29:21]Read from MH i2c: D1 [15:29:21]MH_I2C_Read... [15:29:21]Read from MH i2c: D1 01 00 [15:29:21]MH_I2C_Read... [15:29:21]Read from MH i2c: D1 01 00 73 49 00 8D [15:29:21]Write to MH i2c: 01 00 00 74 49 BD [15:29:21]Write i2c OK [15:29:21]MH_I2C_Read... [15:29:21]OFD Sender: No OFD packet to send [15:29:22]*** Cut start [15:29:22]*** Partial cut [15:29:22]*** CUTSNS_PIN = 1 [15:29:22]*** CUTSNS_PIN = 0 [15:29:22]*** Brake cut motor [15:29:22]Read from MH i2c: 01 [15:29:22]MH_I2C_Read... [15:29:22]*** Stop cut motor [15:29:22]*** Cut end [15:29:22]Read from MH i2c: 01 07 00 [15:29:22]MH_I2C_Read... [15:29:22]Read from MH i2c: 01 07 00 74 49 00 00 00 00 00 FF 0F D2 [15:29:22]process_action close_receipt done [15:29:22]requested_data is exist [15:29:22]produce_requested_data [15:29:22]requested_item fm.sn is exist - process it [15:29:22]wFMCommunicate request_size=4 [15:29:22]MH_SAM_APDU [15:29:22]CAPDU: 80 11 00 00 [15:29:22]Write to MH i2c: E2 08 00 75 49 80 11 00 00 00 00 00 00 38 [15:29:22]Write i2c OK [15:29:22]MH_I2C_Read... [15:29:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:22]Read from MH i2c: E2 [15:29:22]MH_I2C_Read... [15:29:22]Read from MH i2c: E2 17 00 [15:29:22]MH_I2C_Read... [15:29:22]Read from MH i2c: E2 17 00 75 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 87 [15:29:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:29:22]wFMCommunicate OK [15:29:22]requested_item fd.num is exist - process it [15:29:22]SAM_PROTO_GetFieldsCounters [15:29:22]wFMCommunicate request_size=4 [15:29:22]MH_SAM_APDU [15:29:22]CAPDU: 80 13 00 00 [15:29:22]Write to MH i2c: E2 08 00 76 49 80 13 00 00 00 00 00 00 3B [15:29:22]Write i2c OK [15:29:22]MH_I2C_Read... [15:29:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:22]Read from MH i2c: E2 [15:29:22]MH_I2C_Read... [15:29:22]Read from MH i2c: E2 62 00 [15:29:22]MH_I2C_Read... [15:29:22]Read from MH i2c: E2 62 00 76 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 22 71 00 00 0E 04 04 00 73 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 7A [15:29: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 22 71 00 00 0E 04 04 00 73 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 [15:29:22]wFMCommunicate OK [15:29:22]SAM_PROTO_GetFieldsCounters done [15:29:22]requested_item shift.num is exist - process it [15:29:22]requested_item shift.opened is exist - process it [15:29:22]req_shift_opened [15:29:22]FM_GetShiftState [15:29:22]SAM_PROTO_GetShiftState [15:29:22]wFMCommunicate request_size=4 [15:29:22]MH_SAM_APDU [15:29:22]CAPDU: 80 13 01 00 [15:29:22]Write to MH i2c: E2 08 00 77 49 80 13 01 00 00 00 00 00 3D [15:29:22]Write i2c OK [15:29:22]MH_I2C_Read... [15:29:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:22]Read from MH i2c: E2 [15:29:22]MH_I2C_Read... [15:29:22]Read from MH i2c: E2 0E 00 [15:29:22]MH_I2C_Read... [15:29:22]Read from MH i2c: E2 0E 00 77 49 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 56 [15:29:22]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:29:22]wFMCommunicate OK [15:29:22]SAM_PROTO_GetShiftState done [15:29:22]FM_GetShiftState done [15:29:22]req_shift_opened done [15:29:22]requested_item shift.open_date is exist - process it [15:29:22]req_shift_open_date [15:29:22]req_shift_open_date done [15:29:22]produce_requested_data done [15:29:22]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28962,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [15:29:22]process_action_free close_receipt [15:29:22]json_value_free [15:29:22]json_value_free done [15:29:22]process_json_proto returns [15:29:22]Send response to host [15:29:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28962,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [15:29:22]free response buf [15:29:22]execute_script done [15:29:22]execute_script returns [15:29:22]free content buf [15:29:22]Sock 9.Close socket [15:29:22]Sock 9.Thread stoped [15:29:26]OFD Sender: No OFD packet to send [15:29:31]OFD Sender: No OFD packet to send [15:29:36]OFD Sender: No OFD packet to send [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:51]OFD Sender: No OFD packet to send [15:29:56]OFD Sender: No OFD packet to send [15:30:01]OFD Sender: No OFD packet to send [15:30:06]OFD Sender: No OFD packet to send [15:30:11]OFD Sender: No OFD packet to send [15:30:16]OFD Sender: No OFD packet to send [15:30:21]OFD Sender: No OFD packet to send [15:30:26]OFD Sender: No OFD packet to send [15:30:31]OFD Sender: No OFD packet to send [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:01]OFD Sender: No OFD packet to send [15:31:06]OFD Sender: No OFD packet to send [15:31:11]OFD Sender: No OFD packet to send [15:31:16]OFD Sender: No OFD packet to send [15:31:21]OFD Sender: No OFD packet to send [15:31:26]OFD Sender: No OFD packet to send [15:31:31]OFD Sender: No OFD packet to send [15:31:36]OFD Sender: No OFD packet to send [15:31:41]OFD Sender: No OFD packet to send [15:31:46]OFD Sender: No OFD packet to send [15:31:51]OFD Sender: No OFD packet to send [15:31:56]OFD Sender: No OFD packet to send [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:41]OFD Sender: No OFD packet to send [15:32:46]OFD Sender: No OFD packet to send [15:32:51]OFD Sender: No OFD packet to send [15:32:56]OFD Sender: No OFD packet to send [15:33:01]OFD Sender: No OFD packet to send [15:33:06]OFD Sender: No OFD packet to send [15:33:11]OFD Sender: No OFD packet to send [15:33:16]OFD Sender: No OFD packet to send [15:33:21]OFD Sender: No OFD packet to send [15:33:26]OFD Sender: No OFD packet to send [15:33:31]OFD Sender: No OFD packet to send [15:33:36]OFD Sender: No OFD packet to send [15:33:41]OFD Sender: No OFD packet to send [15:33:46]OFD Sender: No OFD packet to send [15:33:51]OFD Sender: No OFD packet to send [15:33:56]accept exits with 7 [15:33:56]New connection [15:33:56]New thread 3066785124 created [15:33:56]Thread 3066928484 joined [15:33:56]Waiting for new connection... [15:33:56] Sock 7.Parse request [15:33:56]Sock 7.Check first char [15:33:56]Sock 7.First char is OK [15:33:56]request: POST /json_proto HTTP/1.0 [15:33:56]Method: POST [15:33:56]URL: /json_proto [15:33:56]Method is POST - this is cgi request [15:33:56]url: /json_proto [15:33:56]query_string will be loaded in cgi processing [15:33:56]execute_cgi json_proto POST (null) [15:33:56]execute_cgi path=json_proto method=POST [15:33:56]POST find Content-Length [15:33:56]Host: 172.17.33.3:8080 [15:33:56]Content-Length: 678 [15:33:56]Content-Type: application/json [15:33:56] [15:33:56]POST finish read [15:33:56]Found Content-Length = 678 [15:33:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.110, "sum" : 650.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:56]execute_script... [15:33: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)347323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.110, "sum" : 650.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:56]POST & json_proto [15:33:56]process_json_proto [15:33:56]json parsed OK: [15:33:56]protocol is kg_v1.0 [15:33:56]action value=close_receipt [15:33:56]process_action close_receipt [15:33:56]cmd_close_receipt [15:33:56]MH_GetDate [15:33:56]Write to MH i2c: F0 00 00 78 49 B0 [15:33:56]Write i2c OK [15:33:56]MH_I2C_Read... [15:33:56]Read from MH i2c: F0 [15:33:56]MH_I2C_Read... [15:33:56]Read from MH i2c: F0 09 00 [15:33:56]MH_I2C_Read... [15:33:56]Read from MH i2c: F0 09 00 78 49 00 E9 A5 1A 66 23 5B 8F 65 39 [15:33:56]GetLastDocTimeStamp 1713022164 [15:33:56]current date 1713022441 [15:33:56]FM_GetShiftState [15:33:56]SAM_PROTO_GetShiftState [15:33:56]wFMCommunicate request_size=4 [15:33:56]MH_SAM_APDU [15:33:56]CAPDU: 80 13 01 00 [15:33:56]Write to MH i2c: E2 08 00 79 49 80 13 01 00 00 00 00 00 3F [15:33:56]Write i2c OK [15:33:56]MH_I2C_Read... [15:33:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:56]Read from MH i2c: E2 [15:33:56]MH_I2C_Read... [15:33:56]Read from MH i2c: E2 0E 00 [15:33:56]MH_I2C_Read... [15:33:56]Read from MH i2c: E2 0E 00 79 49 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 58 [15:33:56]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:33:56]wFMCommunicate OK [15:33:56]SAM_PROTO_GetShiftState done [15:33:56]FM_GetShiftState done [15:33:56]opened in 1712967615 [15:33:56]opened+sec_in_day 1713054015 [15:33:56]quantity*price = 65007 [15:33:56]sum+1 = 65008 [15:33:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 170 13.04.2024 15:34 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28963 ФПД: 227593634706528 1/tax-web-control/client/api/v1/ticket?date=20240413T153401&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28963&fm=227593634706528&tin=02508201610067®Number=0000138879044617&sum=65000 [15:33:57]StoreToDocumentArchive [15:33:57]shift 115 fd 28963 [15:33:57]save to /storage/0115/doc_00028963 [15:33:57]save last doc name /storage/0115/doc_00028963 to /storage/kkm_last_doc_name [15:33:57]save OK [15:33:57]Clear old archive folders... [15:33:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:33:57]tlvbuf is 011EE560 [15:33:57]SAM_PROTO_ClearQueue [15:33:57]wFMCommunicate request_size=4 [15:33:57]MH_SAM_APDU [15:33:57]CAPDU: 80 09 00 00 [15:33:57]Write to MH i2c: E2 08 00 86 49 80 09 00 00 00 00 00 00 41 [15:33:57]Write i2c OK [15:33:57]MH_I2C_Read... [15:33:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:57]Read from MH i2c: E2 [15:33:57]MH_I2C_Read... [15:33:57]Read from MH i2c: E2 03 00 [15:33:57]MH_I2C_Read... [15:33:57]Read from MH i2c: E2 03 00 86 49 00 90 00 43 [15:33:57]RAPDU: 90 00 [15:33:57]wFMCommunicate OK [15:33:57]SAM_PROTO_ClearQueue done [15:33:57]KKMCreateOFDPacket [15:33:57]OFDProtocolAddRootSTLVToBuf [15:33:57]FM_MakeSignedData [15:33:57]FM_MakeSignedData [15:33:57]SAM_PROTO_SignData [15:33:57]wFMCommunicate request_size=4 [15:33:57]MH_SAM_APDU [15:33:57]CAPDU: 80 0D 01 02 [15:33:57]Write to MH i2c: E2 08 00 87 49 80 0D 01 02 00 00 00 00 49 [15:33:57]Write i2c OK [15:33:57]MH_I2C_Read... [15:33:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:57]Read from MH i2c: E2 [15:33:57]MH_I2C_Read... [15:33:57]Read from MH i2c: E2 03 00 [15:33:57]MH_I2C_Read... [15:33:57]Read from MH i2c: E2 03 00 87 49 00 90 00 44 [15:33:57]RAPDU: 90 00 [15:33:57]wFMCommunicate OK [15:33:57]wFMCommunicate request_size=255 [15:33:57]MH_SAM_APDU [15: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 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 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 E9 A5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 23 71 00 00 35 04 06 00 CE [15:33:57]Write to MH i2c: E2 02 01 88 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 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 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 E9 A5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 23 71 00 00 35 04 06 00 CE 00 00 E1 [15:33:57]Write i2c OK [15:33:57]MH_I2C_Read... [15:33:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:57]Read from MH i2c: E2 [15:33:57]MH_I2C_Read... [15:33:57]Read from MH i2c: E2 03 00 [15:33:57]MH_I2C_Read... [15:33:57]Read from MH i2c: E2 03 00 88 49 00 90 00 45 [15:33:57]RAPDU: 90 00 [15:33:57]wFMCommunicate OK [15:33:57]wFMCommunicate request_size=10 [15:33:57]MH_SAM_APDU [15:33:57]CAPDU: 80 0D 02 02 05 FE C5 BF F4 60 [15:33:57]Write to MH i2c: E2 0D 00 89 49 80 0D 02 02 05 00 FE C5 BF F4 60 00 00 2C [15:33:57]Write i2c OK [15:33:57]MH_I2C_Read... [15:33:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:57]Read from MH i2c: E2 [15:33:57]MH_I2C_Read... [15:33:57]Read from MH i2c: E2 03 00 [15:33:57]MH_I2C_Read... [15:33:57]Read from MH i2c: E2 03 00 89 49 00 90 00 46 [15:33:57]RAPDU: 90 00 [15:33:57]wFMCommunicate OK [15:33:57]wFMCommunicate request_size=4 [15:33:57]MH_SAM_APDU [15:33:57]CAPDU: 80 0D 03 02 [15:33:57]Write to MH i2c: E2 08 00 8A 49 80 0D 03 02 00 00 00 00 4E [15:33:57]Write i2c OK [15:33:57]MH_I2C_Read... [15:33:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:57]Read from MH i2c: E2 [15:33:57]MH_I2C_Read... [15:33:57]Read from MH i2c: E2 0B 00 [15:33:57]MH_I2C_Read... [15:33:57]Read from MH i2c: E2 0B 00 8A 49 00 5A A5 B6 BC 10 74 99 B7 90 00 94 [15:33:57]RAPDU: 5A A5 B6 BC 10 74 99 B7 90 00 [15:33:57]wFMCommunicate OK [15:33:57]SAM_PROTO_SignData done [15:33:57]FM_MakeSignedData done [15:33:57]CreateOFDProtocolMessage [15:33:57]wFMCommunicate request_size=4 [15:33:57]MH_SAM_APDU [15:33:57]CAPDU: 80 11 00 00 [15:33:57]Write to MH i2c: E2 08 00 8B 49 80 11 00 00 00 00 00 00 4E [15:33:57]Write i2c OK [15:33:57]MH_I2C_Read... [15:33:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:57]Read from MH i2c: E2 [15:33:57]MH_I2C_Read... [15:33:57]Read from MH i2c: E2 17 00 [15:33:57]MH_I2C_Read... [15:33:57]Read from MH i2c: E2 17 00 8B 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9D [15:33:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:33:57]wFMCommunicate OK [15:33:57]CreateOFDProtocolMessage done [15:33:57]OFDSenderStorePacket 28963 [15:33:57]StoreOFDPacket docnum=28963 [15:33:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 BA 67 07 01 8C 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 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 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 E9 A5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 23 71 00 00 35 04 06 00 CE FE C5 BF F4 60 5A A5 B6 BC 10 74 99 B7 [15:33:57]CheckFolder [15:33:57]dirname=/storage/ofd_packets [15:33:57]CheckFolder done [15:33:57]ProducePacketName [15:33:57]name=ofd_packets/00028963 [15:33:57]NVStorageSaveData ofd_packets/00028963 [15:33:57]File name is /storage/ofd_packets/00028963 [15:33:57]Write 301 bytes [15:33:57]NVStorageSaveData done [15:33:57]OFDSenderStorePacket done [15:33:57]KKMCreateOFDPacket done [15:33:57]NVStorageSaveData kkm_last_timestamp [15:33:57]File name is /storage/kkm_last_timestamp [15:33:57]Write 4 bytes [15:33:57]NVStorageSaveData done [15:33:57]ExternCall_PrintAddStr [15:33:57]wPrintStart [15:33:57]Write to MH i2c: 01 00 00 8C 49 D5 [15:33:57]Write i2c OK [15:33:57]MH_I2C_Read... [15:33:57]Read from MH i2c: 01 [15:33:57]MH_I2C_Read... [15:33:57]Read from MH i2c: 01 07 00 [15:33:57]MH_I2C_Read... [15:33:57]Read from MH i2c: 01 07 00 8C 49 00 00 00 00 00 FF 0F EA [15:33:57]RasterBufferAndPrint [15:33:57]line Счет N : (1)347323 [15:33:57]line ИНН: 02508201610067 [15:33:57]line Контрольно-Кассовый Чек [15:33:57]line ПРОДАЖА [15:33:57]line ТРК (МРК, ГНК) : 13 [15:33:57]line Товар: 2710124130 [15:33:57]line Аи-92-К-5 [15:33:57]line 10.110 * 64.30 [15:33:57]line = 650.07 [15:33:57]line НДС 12% НСП 1% [15:33:57]line > о реализуемом товаре [15:33:57]line ОКРУГЛЕНИЕ: -0.07 [15:33:57]line ИТОГО: 650.00 [15:33:57]line Внесено: 650.00 [15:33:57]line СДАЧА: 0.00 [15:33:57]line НСП 1% : 5.75 [15:33:57]line НДС 12% : 69.03 [15:33:57]line Наличными: 650.00 [15:33:57]line Безнал.: 0.00 [15:33:57]line Место: АЗС № 108 "Партнер Нефть" [15:33:57]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:33:57]line СНО: Общий режим [15:33:57]line Чек 170 13.04.2024 15:34 [15:33:57]line Смена: 115 ФФД: 1.0 [15:33:57]line ЗНМ: 0300000027 [15:33:57]line РНМ: 0000138879044617 [15:33:57]line Версия ККМ: 001 [15:33:57]line ФМ: 0000000000963154 [15:33:57]line ФД: 28963 [15:33:57]line ФПД: 227593634706528 [15:33:57]line 1/tax-web-control/client/api/v1/ticket?date=20240413T153401&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28963&fm=227593634706528&tin=02508201610067®Number=0000138879044617&sum=65000 [15:33:58]OFD Sender: Processing packet 28963 [packets to send 8, broken 7] [15:33:58]ProducePacketName [15:33:58]name=ofd_packets/00028963 [15:33:58]OFD Sender: To server: pG, [15:33:58]CommunicateWithHost lk.salyk.kg:30040 [15:33:58]ConnectInit lk.salyk.kg [15:33:58]written 0, free lines is 4095 [15:33:58]Connected sock=10 [15: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 31 35 34 0F 01 00 00 BA 67 07 01 8C 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 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 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 E9 A5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 23 71 00 00 35 04 06 00 CE FE C5 BF F4 60 5A A5 B6 BC 10 74 99 B7 [15: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 31 35 34 4F 00 00 00 89 62 47 00 37 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 31 35 34 10 04 04 00 23 71 00 00 F4 03 04 00 90 50 1A 66 B6 04 01 00 00 FE ED AA 44 78 C8 8E D8 [15:33:58]CommunicateWithHost err = 0 [15:33:58]CheckOFDResponse [15:33:58]1017 (14) - 77093643461234 [15:33:58]1041 (16) - 0000000000963154 [15:33:58]1040 (4) - 28963 [15:33:58]1012 (4) - 13.04.2024 09:29 [15:33:58]1206 (1) - 0 [15:33:58]OFD Sender: Remove packet 28963 [15:33:58]ProducePacketName [15:33:58]name=ofd_packets/00028963 [15:33:58]NVStorageDeleteData [15:33:58]Write to MH i2c: 01 00 00 B6 49 FF [15:33:58]Write i2c OK [15:33:58]MH_I2C_Read... [15:33:58]Read from MH i2c: 01 [15:33:58]MH_I2C_Read... [15:33:58]Read from MH i2c: 01 07 00 [15:33:58]MH_I2C_Read... [15:33:58]Read from MH i2c: 01 07 00 B6 49 00 00 00 00 00 C0 0C D2 [15:33:58]RasterBufferAndPrint [15:33:58]line [15:33:58]line [15:33:58]line [15:33:58]line [15:33:58]line [15:33:58]written 0, free lines is 3270 [15:33:58]MH_Cut [15:33:58]Write to MH i2c: D1 01 00 BD 49 01 D8 [15:33:58]Write i2c OK [15:33:58]MH_I2C_Read... [15:33:58]Read from MH i2c: D1 [15:33:58]MH_I2C_Read... [15:33:58]Read from MH i2c: D1 01 00 [15:33:58]MH_I2C_Read... [15:33:58]Read from MH i2c: D1 01 00 BD 49 00 D7 [15:33:58]Write to MH i2c: 01 00 00 BE 49 07 [15:33:58]Write i2c OK [15:33:58]MH_I2C_Read... [15:33:58]OFD Sender: No OFD packet to send [15:33:59]*** Cut start [15:33:59]*** Partial cut [15:33:59]*** CUTSNS_PIN = 1 [15:33:59]*** CUTSNS_PIN = 0 [15:33:59]*** Brake cut motor [15:34:00]Read from MH i2c: 01 [15:34:00]MH_I2C_Read... [15:34:00]*** Stop cut motor [15:34:00]*** Cut end [15:34:00]Read from MH i2c: 01 07 00 [15:34:00]MH_I2C_Read... [15:34:00]Read from MH i2c: 01 07 00 BE 49 00 00 00 00 00 FF 0F 1C [15:34:00]process_action close_receipt done [15:34:00]requested_data is exist [15:34:00]produce_requested_data [15:34:00]requested_item fm.sn is exist - process it [15:34:00]wFMCommunicate request_size=4 [15:34:00]MH_SAM_APDU [15:34:00]CAPDU: 80 11 00 00 [15:34:00]Write to MH i2c: E2 08 00 BF 49 80 11 00 00 00 00 00 00 82 [15:34:00]Write i2c OK [15:34:00]MH_I2C_Read... [15:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:00]Read from MH i2c: E2 [15:34:00]MH_I2C_Read... [15:34:00]Read from MH i2c: E2 17 00 [15:34:00]MH_I2C_Read... [15:34:00]Read from MH i2c: E2 17 00 BF 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D1 [15:34:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:34:00]wFMCommunicate OK [15:34:00]requested_item fd.num is exist - process it [15:34:00]SAM_PROTO_GetFieldsCounters [15:34:00]wFMCommunicate request_size=4 [15:34:00]MH_SAM_APDU [15:34:00]CAPDU: 80 13 00 00 [15:34:00]Write to MH i2c: E2 08 00 C0 49 80 13 00 00 00 00 00 00 85 [15:34:00]Write i2c OK [15:34:00]MH_I2C_Read... [15:34:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:00]Read from MH i2c: E2 [15:34:00]MH_I2C_Read... [15:34:00]Read from MH i2c: E2 62 00 [15:34:00]MH_I2C_Read... [15:34:00]Read from MH i2c: E2 62 00 C0 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 23 71 00 00 0E 04 04 00 73 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 C8 [15:34: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 23 71 00 00 0E 04 04 00 73 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 [15:34:00]wFMCommunicate OK [15:34:00]SAM_PROTO_GetFieldsCounters done [15:34:00]requested_item shift.num is exist - process it [15:34:00]requested_item shift.opened is exist - process it [15:34:00]req_shift_opened [15:34:00]FM_GetShiftState [15:34:00]SAM_PROTO_GetShiftState [15:34:00]wFMCommunicate request_size=4 [15:34:00]MH_SAM_APDU [15:34:00]CAPDU: 80 13 01 00 [15:34:00]Write to MH i2c: E2 08 00 C1 49 80 13 01 00 00 00 00 00 87 [15:34:00]Write i2c OK [15:34:00]MH_I2C_Read... [15:34:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:00]Read from MH i2c: E2 [15:34:00]MH_I2C_Read... [15:34:00]Read from MH i2c: E2 0E 00 [15:34:00]MH_I2C_Read... [15:34:00]Read from MH i2c: E2 0E 00 C1 49 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A0 [15:34:00]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:34:00]wFMCommunicate OK [15:34:00]SAM_PROTO_GetShiftState done [15:34:00]FM_GetShiftState done [15:34:00]req_shift_opened done [15:34:00]requested_item shift.open_date is exist - process it [15:34:00]req_shift_open_date [15:34:00]req_shift_open_date done [15:34:00]produce_requested_data done [15:34:00]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28963,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [15:34:00]process_action_free close_receipt [15:34:00]json_value_free [15:34:00]json_value_free done [15:34:00]process_json_proto returns [15:34:00]Send response to host [15:34:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28963,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [15:34:00]free response buf [15:34:00]execute_script done [15:34:00]execute_script returns [15:34:00]free content buf [15:34:00]Sock 7.Close socket [15:34:00]Sock 7.Thread stoped [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:34]OFD Sender: No OFD packet to send [15:34:39]OFD Sender: No OFD packet to send [15:34:44]OFD Sender: No OFD packet to send [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [15:35:14]OFD Sender: No OFD packet to send [15:35:19]OFD Sender: No OFD packet to send [15:35:24]OFD Sender: No OFD packet to send [15:35:29]OFD Sender: No OFD packet to send [15:35:34]OFD Sender: No OFD packet to send [15:35:39]OFD Sender: No OFD packet to send [15:35:44]OFD Sender: No OFD packet to send [15:35:49]OFD Sender: No OFD packet to send [15:35:53]accept exits with 9 [15:35:53]New connection [15:35:53]New thread 3066928484 created [15:35:53]Thread 3066785124 joined [15:35:53]Waiting for new connection... [15:35:53] Sock 9.Parse request [15:35:53]Sock 9.Check first char [15:35:53]Sock 9.First char is OK [15:35:53]request: POST /json_proto HTTP/1.0 [15:35:53]Method: POST [15:35:53]URL: /json_proto [15:35:53]Method is POST - this is cgi request [15:35:53]url: /json_proto [15:35:53]query_string will be loaded in cgi processing [15:35:53]execute_cgi json_proto POST (null) [15:35:53]execute_cgi path=json_proto method=POST [15:35:53]POST find Content-Length [15:35:53]Host: 172.17.33.3:8080 [15:35:53]Content-Length: 677 [15:35:53]Content-Type: application/json [15:35:53] [15:35:53]POST finish read [15:35:53]Found Content-Length = 677 [15:35:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347324", "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" : 64.30, "quantity" : 5.060, "sum" : 325.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 325.00, "total" : 325.00, "payments": [ { "type": 0, "sum" : 325.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:53]execute_script... [15:35: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)347324", "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" : 64.30, "quantity" : 5.060, "sum" : 325.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 325.00, "total" : 325.00, "payments": [ { "type": 0, "sum" : 325.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:53]POST & json_proto [15:35:53]process_json_proto [15:35:53]json parsed OK: [15:35:53]protocol is kg_v1.0 [15:35:53]action value=close_receipt [15:35:53]process_action close_receipt [15:35:53]cmd_close_receipt [15:35:53]MH_GetDate [15:35:53]Write to MH i2c: F0 00 00 C2 49 FA [15:35:53]Write i2c OK [15:35:53]MH_I2C_Read... [15:35:53]Read from MH i2c: F0 [15:35:53]MH_I2C_Read... [15:35:53]Read from MH i2c: F0 09 00 [15:35:53]MH_I2C_Read... [15:35:53]Read from MH i2c: F0 09 00 C2 49 00 5E A6 1A 66 23 5B 8F 65 F9 [15:35:53]GetLastDocTimeStamp 1713022441 [15:35:53]current date 1713022558 [15:35:53]FM_GetShiftState [15:35:53]SAM_PROTO_GetShiftState [15:35:53]wFMCommunicate request_size=4 [15:35:53]MH_SAM_APDU [15:35:53]CAPDU: 80 13 01 00 [15:35:53]Write to MH i2c: E2 08 00 C3 49 80 13 01 00 00 00 00 00 89 [15:35:53]Write i2c OK [15:35:53]MH_I2C_Read... [15:35:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:53]Read from MH i2c: E2 [15:35:53]MH_I2C_Read... [15:35:53]Read from MH i2c: E2 0E 00 [15:35:53]MH_I2C_Read... [15:35:53]Read from MH i2c: E2 0E 00 C3 49 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A2 [15:35:53]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:35:53]wFMCommunicate OK [15:35:53]SAM_PROTO_GetShiftState done [15:35:53]FM_GetShiftState done [15:35:53]opened in 1712967615 [15:35:53]opened+sec_in_day 1713054015 [15:35:53]quantity*price = 32535 [15:35:53]sum+1 = 32537 [15:35:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 325.00 Внесено: 325.00 СДАЧА: 0.00 НСП 1% : 2.88 НДС 12% : 34.55 Наличными: 325.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 171 13.04.2024 15:35 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28964 ФПД: 228774465740417 1/tax-web-control/client/api/v1/ticket?date=20240413T153558&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28964&fm=228774465740417&tin=02508201610067®Number=0000138879044617&sum=32500 [15:35:54]StoreToDocumentArchive [15:35:54]shift 115 fd 28964 [15:35:54]save to /storage/0115/doc_00028964 [15:35:54]save last doc name /storage/0115/doc_00028964 to /storage/kkm_last_doc_name [15:35:54]save OK [15:35:54]Clear old archive folders... [15:35:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:35:54]tlvbuf is 011D4880 [15:35:54]SAM_PROTO_ClearQueue [15:35:54]wFMCommunicate request_size=4 [15:35:54]MH_SAM_APDU [15:35:54]CAPDU: 80 09 00 00 [15:35:54]Write to MH i2c: E2 08 00 D0 49 80 09 00 00 00 00 00 00 8B [15:35:54]Write i2c OK [15:35:54]MH_I2C_Read... [15:35:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:54]Read from MH i2c: E2 [15:35:54]MH_I2C_Read... [15:35:54]Read from MH i2c: E2 03 00 [15:35:54]MH_I2C_Read... [15:35:54]Read from MH i2c: E2 03 00 D0 49 00 90 00 8D [15:35:54]RAPDU: 90 00 [15:35:54]wFMCommunicate OK [15:35:54]SAM_PROTO_ClearQueue done [15:35:54]KKMCreateOFDPacket [15:35:54]OFDProtocolAddRootSTLVToBuf [15:35:54]FM_MakeSignedData [15:35:54]FM_MakeSignedData [15:35:54]SAM_PROTO_SignData [15:35:54]wFMCommunicate request_size=4 [15:35:54]MH_SAM_APDU [15:35:54]CAPDU: 80 0D 01 02 [15:35:54]Write to MH i2c: E2 08 00 D1 49 80 0D 01 02 00 00 00 00 93 [15:35:54]Write i2c OK [15:35:54]MH_I2C_Read... [15:35:54]Read from MH i2c: E2 [15:35:54]MH_I2C_Read... [15:35:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:54]Read from MH i2c: E2 03 00 [15:35:54]MH_I2C_Read... [15:35:54]Read from MH i2c: E2 03 00 D1 49 00 90 00 8E [15:35:54]RAPDU: 90 00 [15:35:54]wFMCommunicate OK [15:35:54]wFMCommunicate request_size=255 [15:35:54]MH_SAM_APDU [15:35: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 C4 13 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 18 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 5E A6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 24 71 00 00 35 04 06 00 D0 [15:35:54]Write to MH i2c: E2 02 01 D2 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 C4 13 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 18 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 5E A6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 24 71 00 00 35 04 06 00 D0 00 00 F7 [15:35:54]Write i2c OK [15:35:54]MH_I2C_Read... [15:35:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:55]Read from MH i2c: E2 [15:35:55]MH_I2C_Read... [15:35:55]Read from MH i2c: E2 03 00 [15:35:55]MH_I2C_Read... [15:35:55]Read from MH i2c: E2 03 00 D2 49 00 90 00 8F [15:35:55]RAPDU: 90 00 [15:35:55]wFMCommunicate OK [15:35:55]wFMCommunicate request_size=10 [15:35:55]MH_SAM_APDU [15:35:55]CAPDU: 80 0D 02 02 05 11 B4 C3 9E 81 [15:35:55]Write to MH i2c: E2 0D 00 D3 49 80 0D 02 02 05 00 11 B4 C3 9E 81 00 00 47 [15:35:55]Write i2c OK [15:35:55]MH_I2C_Read... [15:35:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:55]Read from MH i2c: E2 [15:35:55]MH_I2C_Read... [15:35:55]Read from MH i2c: E2 03 00 [15:35:55]MH_I2C_Read... [15:35:55]Read from MH i2c: E2 03 00 D3 49 00 90 00 90 [15:35:55]RAPDU: 90 00 [15:35:55]wFMCommunicate OK [15:35:55]wFMCommunicate request_size=4 [15:35:55]MH_SAM_APDU [15:35:55]CAPDU: 80 0D 03 02 [15:35:55]Write to MH i2c: E2 08 00 D4 49 80 0D 03 02 00 00 00 00 98 [15:35:55]Write i2c OK [15:35:55]MH_I2C_Read... [15:35:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:55]Read from MH i2c: E2 [15:35:55]MH_I2C_Read... [15:35:55]Read from MH i2c: E2 0B 00 [15:35:55]MH_I2C_Read... [15:35:55]Read from MH i2c: E2 0B 00 D4 49 00 65 36 2B 59 03 D3 7B 2F 90 00 38 [15:35:55]RAPDU: 65 36 2B 59 03 D3 7B 2F 90 00 [15:35:55]wFMCommunicate OK [15:35:55]SAM_PROTO_SignData done [15:35:55]FM_MakeSignedData done [15:35:55]CreateOFDProtocolMessage [15:35:55]wFMCommunicate request_size=4 [15:35:55]MH_SAM_APDU [15:35:55]CAPDU: 80 11 00 00 [15:35:55]Write to MH i2c: E2 08 00 D5 49 80 11 00 00 00 00 00 00 98 [15:35:55]Write i2c OK [15:35:55]MH_I2C_Read... [15:35:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:55]Read from MH i2c: E2 [15:35:55]MH_I2C_Read... [15:35:55]Read from MH i2c: E2 17 00 [15:35:55]MH_I2C_Read... [15:35:55]Read from MH i2c: E2 17 00 D5 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E7 [15:35:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:35:55]wFMCommunicate OK [15:35:55]CreateOFDProtocolMessage done [15:35:55]OFDSenderStorePacket 28964 [15:35:55]StoreOFDPacket docnum=28964 [15:35:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 BC 02 07 01 9E 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 C4 13 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 18 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 5E A6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 24 71 00 00 35 04 06 00 D0 11 B4 C3 9E 81 65 36 2B 59 03 D3 7B 2F [15:35:55]CheckFolder [15:35:55]dirname=/storage/ofd_packets [15:35:55]CheckFolder done [15:35:55]ProducePacketName [15:35:55]name=ofd_packets/00028964 [15:35:55]NVStorageSaveData ofd_packets/00028964 [15:35:55]File name is /storage/ofd_packets/00028964 [15:35:55]Write 301 bytes [15:35:55]NVStorageSaveData done [15:35:55]OFDSenderStorePacket done [15:35:55]KKMCreateOFDPacket done [15:35:55]NVStorageSaveData kkm_last_timestamp [15:35:55]File name is /storage/kkm_last_timestamp [15:35:55]Write 4 bytes [15:35:55]NVStorageSaveData done [15:35:55]ExternCall_PrintAddStr [15:35:55]wPrintStart [15:35:55]Write to MH i2c: 01 00 00 D6 49 1F [15:35:55]Write i2c OK [15:35:55]MH_I2C_Read... [15:35:55]Read from MH i2c: 01 [15:35:55]MH_I2C_Read... [15:35:55]Read from MH i2c: 01 07 00 [15:35:55]MH_I2C_Read... [15:35:55]Read from MH i2c: 01 07 00 D6 49 00 00 00 00 00 FF 0F 34 [15:35:55]RasterBufferAndPrint [15:35:55]line Счет N : (1)347324 [15:35:55]line ИНН: 02508201610067 [15:35:55]line Контрольно-Кассовый Чек [15:35:55]line ПРОДАЖА [15:35:55]line ТРК (МРК, ГНК) : 32 [15:35:55]line Товар: 2710124130 [15:35:55]line Аи-92-К-5 [15:35:55]line 5.060 * 64.30 [15:35:55]line = 325.36 [15:35:55]line НДС 12% НСП 1% [15:35:55]line > о реализуемом товаре [15:35:55]line ОКРУГЛЕНИЕ: -0.36 [15:35:55]line ИТОГО: 325.00 [15:35:55]line Внесено: 325.00 [15:35:55]line СДАЧА: 0.00 [15:35:55]line НСП 1% : 2.88 [15:35:55]line НДС 12% : 34.55 [15:35:55]line Наличными: 325.00 [15:35:55]line Безнал.: 0.00 [15:35:55]line Место: АЗС № 108 "Партнер Нефть" [15:35:55]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:35:55]line СНО: Общий режим [15:35:55]line Чек 171 13.04.2024 15:35 [15:35:55]line Смена: 115 ФФД: 1.0 [15:35:55]line ЗНМ: 0300000027 [15:35:55]line РНМ: 0000138879044617 [15:35:55]line Версия ККМ: 001 [15:35:55]line ФМ: 0000000000963154 [15:35:55]line ФД: 28964 [15:35:55]line ФПД: 228774465740417 [15:35:55]line 1/tax-web-control/client/api/v1/ticket?date=20240413T153558&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28964&fm=228774465740417&tin=02508201610067®Number=0000138879044617&sum=32500 [15:35:55]OFD Sender: Processing packet 28964 [packets to send 8, broken 7] [15:35:55]ProducePacketName [15:35:55]name=ofd_packets/00028964 [15:35:55]OFD Sender: To server: pG, [15:35:55]CommunicateWithHost lk.salyk.kg:30040 [15:35:55]ConnectInit lk.salyk.kg [15:35:55]written 0, free lines is 4095 [15:35:55]Connected sock=10 [15:35: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 31 35 34 0F 01 00 00 BC 02 07 01 9E 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 C4 13 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 18 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 5E A6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 24 71 00 00 35 04 06 00 D0 11 B4 C3 9E 81 65 36 2B 59 03 D3 7B 2F [15:35:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EC 0D 47 00 72 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 24 71 00 00 F4 03 04 00 05 51 1A 66 B6 04 01 00 00 2E 11 C6 64 2C DF F9 73 [15:35:55]CommunicateWithHost err = 0 [15:35:55]CheckOFDResponse [15:35:55]1017 (14) - 77093643461234 [15:35:55]1041 (16) - 0000000000963154 [15:35:55]1040 (4) - 28964 [15:35:55]1012 (4) - 13.04.2024 09:31 [15:35:55]1206 (1) - 0 [15:35:55]OFD Sender: Remove packet 28964 [15:35:55]ProducePacketName [15:35:55]name=ofd_packets/00028964 [15:35:55]NVStorageDeleteData [15:35:55]Write to MH i2c: 01 00 00 00 4A 4A [15:35:55]Write i2c OK [15:35:55]MH_I2C_Read... [15:35:55]Read from MH i2c: 01 [15:35:55]MH_I2C_Read... [15:35:55]Read from MH i2c: 01 07 00 [15:35:55]MH_I2C_Read... [15:35:55]Read from MH i2c: 01 07 00 00 4A 00 00 00 00 00 BC 0C 19 [15:35:55]RasterBufferAndPrint [15:35:55]line [15:35:55]line [15:35:55]line [15:35:55]line [15:35:55]line [15:35:55]written 0, free lines is 3265 [15:35:55]MH_Cut [15:35:55]Write to MH i2c: D1 01 00 07 4A 01 23 [15:35:55]Write i2c OK [15:35:55]MH_I2C_Read... [15:35:55]Read from MH i2c: D1 [15:35:55]MH_I2C_Read... [15:35:55]Read from MH i2c: D1 01 00 [15:35:55]MH_I2C_Read... [15:35:55]Read from MH i2c: D1 01 00 07 4A 00 22 [15:35:55]Write to MH i2c: 01 00 00 08 4A 52 [15:35:55]Write i2c OK [15:35:55]MH_I2C_Read... [15:35:56]OFD Sender: No OFD packet to send [15:35:56]*** Cut start [15:35:56]*** Partial cut [15:35:56]*** CUTSNS_PIN = 1 [15:35:56]*** CUTSNS_PIN = 0 [15:35:57]*** Brake cut motor [15:35:57]Read from MH i2c: 01 [15:35:57]MH_I2C_Read... [15:35:57]*** Stop cut motor [15:35:57]*** Cut end [15:35:57]Read from MH i2c: 01 07 00 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: 01 07 00 08 4A 00 00 00 00 00 FF 0F 67 [15:35:57]process_action close_receipt done [15:35:57]requested_data is exist [15:35:57]produce_requested_data [15:35:57]requested_item fm.sn is exist - process it [15:35:57]wFMCommunicate request_size=4 [15:35:57]MH_SAM_APDU [15:35:57]CAPDU: 80 11 00 00 [15:35:57]Write to MH i2c: E2 08 00 09 4A 80 11 00 00 00 00 00 00 CD [15:35:57]Write i2c OK [15:35:57]MH_I2C_Read... [15:35:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:57]Read from MH i2c: E2 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: E2 17 00 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: E2 17 00 09 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1C [15:35:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:35:57]wFMCommunicate OK [15:35:57]requested_item fd.num is exist - process it [15:35:57]SAM_PROTO_GetFieldsCounters [15:35:57]wFMCommunicate request_size=4 [15:35:57]MH_SAM_APDU [15:35:57]CAPDU: 80 13 00 00 [15:35:57]Write to MH i2c: E2 08 00 0A 4A 80 13 00 00 00 00 00 00 D0 [15:35:57]Write i2c OK [15:35:57]MH_I2C_Read... [15:35:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:57]Read from MH i2c: E2 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: E2 62 00 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: E2 62 00 0A 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 24 71 00 00 0E 04 04 00 73 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 17 [15:35: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 24 71 00 00 0E 04 04 00 73 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 [15:35:57]wFMCommunicate OK [15:35:57]SAM_PROTO_GetFieldsCounters done [15:35:57]requested_item shift.num is exist - process it [15:35:57]requested_item shift.opened is exist - process it [15:35:57]req_shift_opened [15:35:57]FM_GetShiftState [15:35:57]SAM_PROTO_GetShiftState [15:35:57]wFMCommunicate request_size=4 [15:35:57]MH_SAM_APDU [15:35:57]CAPDU: 80 13 01 00 [15:35:57]Write to MH i2c: E2 08 00 0B 4A 80 13 01 00 00 00 00 00 D2 [15:35:57]Write i2c OK [15:35:57]MH_I2C_Read... [15:35:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:57]Read from MH i2c: E2 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: E2 0E 00 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: E2 0E 00 0B 4A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 EB [15:35:57]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:35:57]wFMCommunicate OK [15:35:57]SAM_PROTO_GetShiftState done [15:35:57]FM_GetShiftState done [15:35:57]req_shift_opened done [15:35:57]requested_item shift.open_date is exist - process it [15:35:57]req_shift_open_date [15:35:57]req_shift_open_date done [15:35:57]produce_requested_data done [15:35:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28964,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [15:35:57]process_action_free close_receipt [15:35:57]json_value_free [15:35:57]json_value_free done [15:35:57]process_json_proto returns [15:35:57]Send response to host [15:35:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28964,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [15:35:57]free response buf [15:35:57]execute_script done [15:35:57]execute_script returns [15:35:57]free content buf [15:35:57]Sock 9.Close socket [15:35:57]Sock 9.Thread stoped [15:36:01]OFD Sender: No OFD packet to send [15:36:06]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:16]OFD Sender: No OFD packet to send [15:37:21]OFD Sender: No OFD packet to send [15:37:26]OFD Sender: No OFD packet to send [15:37:31]OFD Sender: No OFD packet to send [15:37:36]OFD Sender: No OFD packet to send [15:37:41]OFD Sender: No OFD packet to send [15:37:46]OFD Sender: No OFD packet to send [15:37:51]OFD Sender: No OFD packet to send [15:37:56]OFD Sender: No OFD packet to send [15:38:01]OFD Sender: No OFD packet to send [15:38:06]OFD Sender: No OFD packet to send [15:38:11]OFD Sender: No OFD packet to send [15:38:16]OFD Sender: No OFD packet to send [15:38:21]OFD Sender: No OFD packet to send [15:38:26]OFD Sender: No OFD packet to send [15:38:31]OFD Sender: No OFD packet to send [15:38:36]OFD Sender: No OFD packet to send [15:38:41]OFD Sender: No OFD packet to send [15:38:46]OFD Sender: No OFD packet to send [15:38:51]OFD Sender: No OFD packet to send [15:38:56]OFD Sender: No OFD packet to send [15:39:01]OFD Sender: No OFD packet to send [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:16]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:31]OFD Sender: No OFD packet to send [15:39:36]OFD Sender: No OFD packet to send [15:39:41]OFD Sender: No OFD packet to send [15:39:46]OFD Sender: No OFD packet to send [15:39:51]OFD Sender: No OFD packet to send [15:39:56]OFD Sender: No OFD packet to send [15:40:01]OFD Sender: No OFD packet to send [15:40:06]OFD Sender: No OFD packet to send [15:40:11]OFD Sender: No OFD packet to send [15:40:16]OFD Sender: No OFD packet to send [15:40:21]OFD Sender: No OFD packet to send [15:40:26]OFD Sender: No OFD packet to send [15:40:31]OFD Sender: No OFD packet to send [15:40:36]OFD Sender: No OFD packet to send [15:40:41]OFD Sender: No OFD packet to send [15:40:46]OFD Sender: No OFD packet to send [15:40:51]OFD Sender: No OFD packet to send [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:06]OFD Sender: No OFD packet to send [15:41:11]OFD Sender: No OFD packet to send [15:41:16]OFD Sender: No OFD packet to send [15:41:21]OFD Sender: No OFD packet to send [15:41:26]OFD Sender: No OFD packet to send [15:41:31]OFD Sender: No OFD packet to send [15:41:36]OFD Sender: No OFD packet to send [15:41:41]OFD Sender: No OFD packet to send [15:41:46]OFD Sender: No OFD packet to send [15:41:51]OFD Sender: No OFD packet to send [15:41:56]OFD Sender: No OFD packet to send [15:42:01]OFD Sender: No OFD packet to send [15:42:06]OFD Sender: No OFD packet to send [15:42:11]OFD Sender: No OFD packet to send [15:42:16]OFD Sender: No OFD packet to send [15:42:21]OFD Sender: No OFD packet to send [15:42:26]OFD Sender: No OFD packet to send [15:42:31]OFD Sender: No OFD packet to send [15:42:36]OFD Sender: No OFD packet to send [15:42:41]OFD Sender: No OFD packet to send [15:42:46]OFD Sender: No OFD packet to send [15:42:51]OFD Sender: No OFD packet to send [15:42:56]OFD Sender: No OFD packet to send [15:43:01]OFD Sender: No OFD packet to send [15:43:06]OFD Sender: No OFD packet to send [15:43:11]OFD Sender: No OFD packet to send [15:43:16]OFD Sender: No OFD packet to send [15:43:21]OFD Sender: No OFD packet to send [15:43:26]OFD Sender: No OFD packet to send [15:43:31]OFD Sender: No OFD packet to send [15:43:36]OFD Sender: No OFD packet to send [15:43:41]OFD Sender: No OFD packet to send [15:43:46]OFD Sender: No OFD packet to send [15:43:51]OFD Sender: No OFD packet to send [15:43:56]OFD Sender: No OFD packet to send [15:44:01]OFD Sender: No OFD packet to send [15:44:06]OFD Sender: No OFD packet to send [15:44:11]OFD Sender: No OFD packet to send [15:44:16]OFD Sender: No OFD packet to send [15:44:21]OFD Sender: No OFD packet to send [15:44:26]OFD Sender: No OFD packet to send [15:44:31]OFD Sender: No OFD packet to send [15:44:36]OFD Sender: No OFD packet to send [15:44:41]OFD Sender: No OFD packet to send [15:44:46]OFD Sender: No OFD packet to send [15:44:51]OFD Sender: No OFD packet to send [15:44:56]OFD Sender: No OFD packet to send [15:45:01]OFD Sender: No OFD packet to send [15:45:06]OFD Sender: No OFD packet to send [15:45:11]OFD Sender: No OFD packet to send [15:45:16]OFD Sender: No OFD packet to send [15:45:21]OFD Sender: No OFD packet to send [15:45:26]OFD Sender: No OFD packet to send [15:45:31]OFD Sender: No OFD packet to send [15:45:36]OFD Sender: No OFD packet to send [15:45:41]OFD Sender: No OFD packet to send [15:45:46]OFD Sender: No OFD packet to send [15:45:51]OFD Sender: No OFD packet to send [15:45:56]OFD Sender: No OFD packet to send [15:46:01]OFD Sender: No OFD packet to send [15:46:06]OFD Sender: No OFD packet to send [15:46:11]OFD Sender: No OFD packet to send [15:46:16]OFD Sender: No OFD packet to send [15:46:21]OFD Sender: No OFD packet to send [15:46:26]OFD Sender: No OFD packet to send [15:46:31]OFD Sender: No OFD packet to send [15:46:36]OFD Sender: No OFD packet to send [15:46:41]OFD Sender: No OFD packet to send [15:46:46]OFD Sender: No OFD packet to send [15:46:51]OFD Sender: No OFD packet to send [15:46:56]OFD Sender: No OFD packet to send [15:47:01]OFD Sender: No OFD packet to send [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:01]OFD Sender: No OFD packet to send [15:48:06]OFD Sender: No OFD packet to send [15:48:11]OFD Sender: No OFD packet to send [15:48:16]OFD Sender: No OFD packet to send [15:48:21]OFD Sender: No OFD packet to send [15:48:26]OFD Sender: No OFD packet to send [15:48:31]OFD Sender: No OFD packet to send [15:48:36]OFD Sender: No OFD packet to send [15:48:41]OFD Sender: No OFD packet to send [15:48:46]OFD Sender: No OFD packet to send [15:48:51]OFD Sender: No OFD packet to send [15:48:56]OFD Sender: No OFD packet to send [15:49:01]OFD Sender: No OFD packet to send [15:49:06]OFD Sender: No OFD packet to send [15:49:11]OFD Sender: No OFD packet to send [15:49:16]OFD Sender: No OFD packet to send [15:49:21]OFD Sender: No OFD packet to send [15:49:26]OFD Sender: No OFD packet to send [15:49:31]OFD Sender: No OFD packet to send [15:49:36]OFD Sender: No OFD packet to send [15:49:41]OFD Sender: No OFD packet to send [15:49:46]OFD Sender: No OFD packet to send [15:49:51]OFD Sender: No OFD packet to send [15:49:56]OFD Sender: No OFD packet to send [15:50:01]OFD Sender: No OFD packet to send [15:50:06]OFD Sender: No OFD packet to send [15:50:11]OFD Sender: No OFD packet to send [15:50:16]OFD Sender: No OFD packet to send [15:50:21]OFD Sender: No OFD packet to send [15:50:26]OFD Sender: No OFD packet to send [15:50:31]OFD Sender: No OFD packet to send [15:50:36]OFD Sender: No OFD packet to send [15:50:41]OFD Sender: No OFD packet to send [15:50:46]OFD Sender: No OFD packet to send [15:50:51]OFD Sender: No OFD packet to send [15:50:56]OFD Sender: No OFD packet to send [15:51:02]OFD Sender: No OFD packet to send [15:51:03]accept exits with 7 [15:51:03]New connection [15:51:03]New thread 3066785124 created [15:51:03]Thread 3066928484 joined [15:51:03]Waiting for new connection... [15:51:03] Sock 7.Parse request [15:51:03]Sock 7.Check first char [15:51:03]Sock 7.First char is OK [15:51:03]request: POST /json_proto HTTP/1.0 [15:51:03]Method: POST [15:51:03]URL: /json_proto [15:51:03]Method is POST - this is cgi request [15:51:03]url: /json_proto [15:51:03]query_string will be loaded in cgi processing [15:51:03]execute_cgi json_proto POST (null) [15:51:03]execute_cgi path=json_proto method=POST [15:51:03]POST find Content-Length [15:51:03]Host: 172.17.33.3:8080 [15:51:03]Content-Length: 681 [15:51:03]Content-Type: application/json [15:51:03] [15:51:03]POST finish read [15:51:03]Found Content-Length = 681 [15:51:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 21.280, "sum" : 700.11, "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" ] } } [15:51:03]execute_script... [15:51: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)347325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 21.280, "sum" : 700.11, "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" ] } } [15:51:03]POST & json_proto [15:51:03]process_json_proto [15:51:03]json parsed OK: [15:51:03]protocol is kg_v1.0 [15:51:03]action value=close_receipt [15:51:03]process_action close_receipt [15:51:03]cmd_close_receipt [15:51:03]MH_GetDate [15:51:03]Write to MH i2c: F0 00 00 0C 4A 45 [15:51:03]Write i2c OK [15:51:03]MH_I2C_Read... [15:51:03]Read from MH i2c: F0 [15:51:03]MH_I2C_Read... [15:51:03]Read from MH i2c: F0 09 00 [15:51:03]MH_I2C_Read... [15:51:03]Read from MH i2c: F0 09 00 0C 4A 00 EC A9 1A 66 23 5B 8F 65 D5 [15:51:03]GetLastDocTimeStamp 1713022558 [15:51:03]current date 1713023468 [15:51:03]FM_GetShiftState [15:51:03]SAM_PROTO_GetShiftState [15:51:03]wFMCommunicate request_size=4 [15:51:03]MH_SAM_APDU [15:51:03]CAPDU: 80 13 01 00 [15:51:03]Write to MH i2c: E2 08 00 0D 4A 80 13 01 00 00 00 00 00 D4 [15:51:03]Write i2c OK [15:51:03]MH_I2C_Read... [15:51:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:03]Read from MH i2c: E2 [15:51:03]MH_I2C_Read... [15:51:03]Read from MH i2c: E2 0E 00 [15:51:03]MH_I2C_Read... [15:51:03]Read from MH i2c: E2 0E 00 0D 4A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 ED [15:51:03]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:51:03]wFMCommunicate OK [15:51:03]SAM_PROTO_GetShiftState done [15:51:03]FM_GetShiftState done [15:51:03]opened in 1712967615 [15:51:03]opened+sec_in_day 1713054015 [15:51:03]quantity*price = 70011 [15:51:03]sum+1 = 70012 [15:51:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 172 13.04.2024 15:51 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28965 ФПД: 22028558055981 1/tax-web-control/client/api/v1/ticket?date=20240413T155108&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28965&fm=22028558055981&tin=02508201610067®Number=0000138879044617&sum=70000 [15:51:04]StoreToDocumentArchive [15:51:04]shift 115 fd 28965 [15:51:04]save to /storage/0115/doc_00028965 [15:51:04]save last doc name /storage/0115/doc_00028965 to /storage/kkm_last_doc_name [15:51:04]save OK [15:51:04]Clear old archive folders... [15:51:04]ProcessDocumentItem done err = 0, tmpTLVsize=250 [15:51:04]tlvbuf is 011E3730 [15:51:04]SAM_PROTO_ClearQueue [15:51:04]wFMCommunicate request_size=4 [15:51:04]MH_SAM_APDU [15:51:04]CAPDU: 80 09 00 00 [15:51:04]Write to MH i2c: E2 08 00 1A 4A 80 09 00 00 00 00 00 00 D6 [15:51:04]Write i2c OK [15:51:04]MH_I2C_Read... [15:51:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:04]Read from MH i2c: E2 [15:51:04]MH_I2C_Read... [15:51:04]Read from MH i2c: E2 03 00 [15:51:04]MH_I2C_Read... [15:51:04]Read from MH i2c: E2 03 00 1A 4A 00 90 00 D8 [15:51:04]RAPDU: 90 00 [15:51:04]wFMCommunicate OK [15:51:04]SAM_PROTO_ClearQueue done [15:51:04]KKMCreateOFDPacket [15:51:04]OFDProtocolAddRootSTLVToBuf [15:51:04]FM_MakeSignedData [15:51:04]FM_MakeSignedData [15:51:04]SAM_PROTO_SignData [15:51:04]wFMCommunicate request_size=4 [15:51:04]MH_SAM_APDU [15:51:04]CAPDU: 80 0D 01 02 [15:51:04]Write to MH i2c: E2 08 00 1B 4A 80 0D 01 02 00 00 00 00 DE [15:51:04]Write i2c OK [15:51:04]MH_I2C_Read... [15:51:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:04]Read from MH i2c: E2 [15:51:04]MH_I2C_Read... [15:51:04]Read from MH i2c: E2 03 00 [15:51:04]MH_I2C_Read... [15:51:04]Read from MH i2c: E2 03 00 1B 4A 00 90 00 D9 [15:51:04]RAPDU: 90 00 [15:51:04]wFMCommunicate OK [15:51:04]wFMCommunicate request_size=255 [15:51:04]MH_SAM_APDU [15:51:04]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 53 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 7B 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 0B 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 AC 00 00 00 F4 03 04 00 EC A9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 25 71 00 00 35 04 06 00 14 08 [15:51:04]Write to MH i2c: E2 02 01 1C 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 35 FF 03 08 00 03 20 53 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 7B 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 0B 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 AC 00 00 00 F4 03 04 00 EC A9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 25 71 00 00 35 04 06 00 14 08 00 00 1B [15:51:04]Write i2c OK [15:51:04]MH_I2C_Read... [15:51:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:04]Read from MH i2c: E2 [15:51:04]MH_I2C_Read... [15:51:04]Read from MH i2c: E2 03 00 [15:51:04]MH_I2C_Read... [15:51:04]Read from MH i2c: E2 03 00 1C 4A 00 90 00 DA [15:51:04]RAPDU: 90 00 [15:51:04]wFMCommunicate OK [15:51:04]wFMCommunicate request_size=9 [15:51:04]MH_SAM_APDU [15:51:04]CAPDU: 80 0D 02 02 04 EC 60 BA 2D [15:51:04]Write to MH i2c: E2 0C 00 1D 4A 80 0D 02 02 04 00 EC 60 BA 2D 00 00 1C [15:51:04]Write i2c OK [15:51:04]MH_I2C_Read... [15:51:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:05]Read from MH i2c: E2 [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: E2 03 00 [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: E2 03 00 1D 4A 00 90 00 DB [15:51:05]RAPDU: 90 00 [15:51:05]wFMCommunicate OK [15:51:05]wFMCommunicate request_size=4 [15:51:05]MH_SAM_APDU [15:51:05]CAPDU: 80 0D 03 02 [15:51:05]Write to MH i2c: E2 08 00 1E 4A 80 0D 03 02 00 00 00 00 E3 [15:51:05]Write i2c OK [15:51:05]MH_I2C_Read... [15:51:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:05]Read from MH i2c: E2 [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: E2 0B 00 [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: E2 0B 00 1E 4A 00 23 C1 19 F6 60 67 9D C8 90 00 03 [15:51:05]RAPDU: 23 C1 19 F6 60 67 9D C8 90 00 [15:51:05]wFMCommunicate OK [15:51:05]SAM_PROTO_SignData done [15:51:05]FM_MakeSignedData done [15:51:05]CreateOFDProtocolMessage [15:51:05]wFMCommunicate request_size=4 [15:51:05]MH_SAM_APDU [15:51:05]CAPDU: 80 11 00 00 [15:51:05]Write to MH i2c: E2 08 00 1F 4A 80 11 00 00 00 00 00 00 E3 [15:51:05]Write i2c OK [15:51:05]MH_I2C_Read... [15:51:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:05]Read from MH i2c: E2 [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: E2 17 00 [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: E2 17 00 1F 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 32 [15:51:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:51:05]wFMCommunicate OK [15:51:05]CreateOFDProtocolMessage done [15:51:05]OFDSenderStorePacket 28965 [15:51:05]StoreOFDPacket docnum=28965 [15:51:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 26 ED 06 01 8C AF 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 53 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 7B 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 0B 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 AC 00 00 00 F4 03 04 00 EC A9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 25 71 00 00 35 04 06 00 14 08 EC 60 BA 2D 23 C1 19 F6 60 67 9D C8 [15:51:05]CheckFolder [15:51:05]dirname=/storage/ofd_packets [15:51:05]CheckFolder done [15:51:05]ProducePacketName [15:51:05]name=ofd_packets/00028965 [15:51:05]NVStorageSaveData ofd_packets/00028965 [15:51:05]File name is /storage/ofd_packets/00028965 [15:51:05]Write 300 bytes [15:51:05]NVStorageSaveData done [15:51:05]OFDSenderStorePacket done [15:51:05]KKMCreateOFDPacket done [15:51:05]NVStorageSaveData kkm_last_timestamp [15:51:05]File name is /storage/kkm_last_timestamp [15:51:05]Write 4 bytes [15:51:05]NVStorageSaveData done [15:51:05]ExternCall_PrintAddStr [15:51:05]wPrintStart [15:51:05]Write to MH i2c: 01 00 00 20 4A 6A [15:51:05]Write i2c OK [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: 01 [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: 01 07 00 [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: 01 07 00 20 4A 00 00 00 00 00 FF 0F 7F [15:51:05]RasterBufferAndPrint [15:51:05]line Счет N : (1)347325 [15:51:05]line ИНН: 02508201610067 [15:51:05]line Контрольно-Кассовый Чек [15:51:05]line ПРОДАЖА [15:51:05]line ТРК (МРК, ГНК) : 71 [15:51:05]line Товар: 2711129700 [15:51:05]line ГАЗ-К-5 [15:51:05]line 21.280 * 32.90 [15:51:05]line = 700.11 [15:51:05]line НДС 12% НСП 1% [15:51:05]line > о реализуемом товаре [15:51:05]line ОКРУГЛЕНИЕ: -0.11 [15:51:05]line ИТОГО: 700.00 [15:51:05]line Внесено: 700.00 [15:51:05]line СДАЧА: 0.00 [15:51:05]line НСП 1% : 6.20 [15:51:05]line НДС 12% : 74.35 [15:51:05]line Наличными: 700.00 [15:51:05]line Безнал.: 0.00 [15:51:05]line Место: АЗС № 108 "Партнер Нефть" [15:51:05]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:51:05]line СНО: Общий режим [15:51:05]line Чек 172 13.04.2024 15:51 [15:51:05]line Смена: 115 ФФД: 1.0 [15:51:05]line ЗНМ: 0300000027 [15:51:05]line РНМ: 0000138879044617 [15:51:05]line Версия ККМ: 001 [15:51:05]line ФМ: 0000000000963154 [15:51:05]line ФД: 28965 [15:51:05]line ФПД: 22028558055981 [15:51:05]line 1/tax-web-control/client/api/v1/ticket?date=20240413T155108&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28965&fm=22028558055981&tin=02508201610067®Number=0000138879044617&sum=70000 [15:51:05]OFD Sender: Processing packet 28965 [packets to send 8, broken 7] [15:51:05]ProducePacketName [15:51:05]name=ofd_packets/00028965 [15:51:05]OFD Sender: To server: pG, [15:51:05]CommunicateWithHost lk.salyk.kg:30040 [15:51:05]ConnectInit lk.salyk.kg [15:51:05]written 0, free lines is 4095 [15:51:05]Connected sock=10 [15:51: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 31 35 34 0E 01 00 00 26 ED 06 01 8C AF 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 53 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 7B 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 0B 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 AC 00 00 00 F4 03 04 00 EC A9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 25 71 00 00 35 04 06 00 14 08 EC 60 BA 2D 23 C1 19 F6 60 67 9D C8 [15:51:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D7 0A 47 00 2D 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 25 71 00 00 F4 03 04 00 93 54 1A 66 B6 04 01 00 00 CE 90 B4 4C BF 30 65 2F [15:51:05]CommunicateWithHost err = 0 [15:51:05]CheckOFDResponse [15:51:05]1017 (14) - 77093643461234 [15:51:05]1041 (16) - 0000000000963154 [15:51:05]1040 (4) - 28965 [15:51:05]1012 (4) - 13.04.2024 09:46 [15:51:05]1206 (1) - 0 [15:51:05]OFD Sender: Remove packet 28965 [15:51:05]ProducePacketName [15:51:05]name=ofd_packets/00028965 [15:51:05]NVStorageDeleteData [15:51:05]Write to MH i2c: 01 00 00 4A 4A 94 [15:51:05]Write i2c OK [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: 01 [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: 01 07 00 [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: 01 07 00 4A 4A 00 00 00 00 00 C8 0C 6F [15:51:05]RasterBufferAndPrint [15:51:05]line [15:51:05]line [15:51:05]line [15:51:05]line [15:51:05]line [15:51:05]written 0, free lines is 3278 [15:51:05]MH_Cut [15:51:05]Write to MH i2c: D1 01 00 51 4A 01 6D [15:51:05]Write i2c OK [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: D1 [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: D1 01 00 [15:51:05]MH_I2C_Read... [15:51:05]Read from MH i2c: D1 01 00 51 4A 00 6C [15:51:05]Write to MH i2c: 01 00 00 52 4A 9C [15:51:05]Write i2c OK [15:51:05]MH_I2C_Read... [15:51:06]OFD Sender: No OFD packet to send [15:51:06]*** Cut start [15:51:06]*** Partial cut [15:51:06]*** CUTSNS_PIN = 1 [15:51:06]*** CUTSNS_PIN = 0 [15:51:06]*** Brake cut motor [15:51:07]Read from MH i2c: 01 [15:51:07]MH_I2C_Read... [15:51:07]*** Stop cut motor [15:51:07]*** Cut end [15:51:07]Read from MH i2c: 01 07 00 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: 01 07 00 52 4A 00 00 00 00 00 FF 0F B1 [15:51:07]process_action close_receipt done [15:51:07]requested_data is exist [15:51:07]produce_requested_data [15:51:07]requested_item fm.sn is exist - process it [15:51:07]wFMCommunicate request_size=4 [15:51:07]MH_SAM_APDU [15:51:07]CAPDU: 80 11 00 00 [15:51:07]Write to MH i2c: E2 08 00 53 4A 80 11 00 00 00 00 00 00 17 [15:51:07]Write i2c OK [15:51:07]MH_I2C_Read... [15:51:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:07]Read from MH i2c: E2 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: E2 17 00 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: E2 17 00 53 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 66 [15:51:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:51:07]wFMCommunicate OK [15:51:07]requested_item fd.num is exist - process it [15:51:07]SAM_PROTO_GetFieldsCounters [15:51:07]wFMCommunicate request_size=4 [15:51:07]MH_SAM_APDU [15:51:07]CAPDU: 80 13 00 00 [15:51:07]Write to MH i2c: E2 08 00 54 4A 80 13 00 00 00 00 00 00 1A [15:51:07]Write i2c OK [15:51:07]MH_I2C_Read... [15:51:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:07]Read from MH i2c: E2 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: E2 62 00 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: E2 62 00 54 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 25 71 00 00 0E 04 04 00 73 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 65 [15:51: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 25 71 00 00 0E 04 04 00 73 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 [15:51:07]wFMCommunicate OK [15:51:07]SAM_PROTO_GetFieldsCounters done [15:51:07]requested_item shift.num is exist - process it [15:51:07]requested_item shift.opened is exist - process it [15:51:07]req_shift_opened [15:51:07]FM_GetShiftState [15:51:07]SAM_PROTO_GetShiftState [15:51:07]wFMCommunicate request_size=4 [15:51:07]MH_SAM_APDU [15:51:07]CAPDU: 80 13 01 00 [15:51:07]Write to MH i2c: E2 08 00 55 4A 80 13 01 00 00 00 00 00 1C [15:51:07]Write i2c OK [15:51:07]MH_I2C_Read... [15:51:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:07]Read from MH i2c: E2 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: E2 0E 00 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: E2 0E 00 55 4A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 35 [15:51:07]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:51:07]wFMCommunicate OK [15:51:07]SAM_PROTO_GetShiftState done [15:51:07]FM_GetShiftState done [15:51:07]req_shift_opened done [15:51:07]requested_item shift.open_date is exist - process it [15:51:07]req_shift_open_date [15:51:07]req_shift_open_date done [15:51:07]produce_requested_data done [15:51:07]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28965,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [15:51:07]process_action_free close_receipt [15:51:07]json_value_free [15:51:07]json_value_free done [15:51:07]process_json_proto returns [15:51:07]Send response to host [15:51:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28965,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [15:51:07]free response buf [15:51:07]execute_script done [15:51:07]execute_script returns [15:51:07]free content buf [15:51:07]Sock 7.Close socket [15:51:07]Sock 7.Thread stoped [15:51:11]OFD Sender: No OFD packet to send [15:51:16]OFD Sender: No OFD packet to send [15:51:21]OFD Sender: No OFD packet to send [15:51:26]OFD Sender: No OFD packet to send [15:51:31]OFD Sender: No OFD packet to send [15:51:36]OFD Sender: No OFD packet to send [15:51:41]OFD Sender: No OFD packet to send [15:51:46]OFD Sender: No OFD packet to send [15:51:51]OFD Sender: No OFD packet to send [15:51:56]OFD Sender: No OFD packet to send [15:52:01]OFD Sender: No OFD packet to send [15:52:06]OFD Sender: No OFD packet to send [15:52:11]OFD Sender: No OFD packet to send [15:52:16]OFD Sender: No OFD packet to send [15:52:21]OFD Sender: No OFD packet to send [15:52:26]OFD Sender: No OFD packet to send [15:52:31]OFD Sender: No OFD packet to send [15:52:36]OFD Sender: No OFD packet to send [15:52:41]OFD Sender: No OFD packet to send [15:52:44]accept exits with 9 [15:52:44]New connection [15:52:44]New thread 3066928484 created [15:52:44]Thread 3066785124 joined [15:52:44]Waiting for new connection... [15:52:44] Sock 9.Parse request [15:52:44]Sock 9.Check first char [15:52:44]Sock 9.First char is OK [15:52:44]request: POST /json_proto HTTP/1.0 [15:52:44]Method: POST [15:52:44]URL: /json_proto [15:52:44]Method is POST - this is cgi request [15:52:44]url: /json_proto [15:52:44]query_string will be loaded in cgi processing [15:52:44]execute_cgi json_proto POST (null) [15:52:44]execute_cgi path=json_proto method=POST [15:52:44]POST find Content-Length [15:52:44]Host: 172.17.33.3:8080 [15:52:44]Content-Length: 677 [15:52:44]Content-Type: application/json [15:52:44] [15:52:44]POST finish read [15:52:44]Found Content-Length = 677 [15:52:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347326", "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" : 64.30, "quantity" : 7.780, "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" ] } } [15:52:44]execute_script... [15:52: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)347326", "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" : 64.30, "quantity" : 7.780, "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" ] } } [15:52:44]POST & json_proto [15:52:44]process_json_proto [15:52:44]json parsed OK: [15:52:44]protocol is kg_v1.0 [15:52:44]action value=close_receipt [15:52:44]process_action close_receipt [15:52:44]cmd_close_receipt [15:52:44]MH_GetDate [15:52:44]Write to MH i2c: F0 00 00 56 4A 8F [15:52:44]Write i2c OK [15:52:44]MH_I2C_Read... [15:52:44]Read from MH i2c: F0 [15:52:44]MH_I2C_Read... [15:52:44]Read from MH i2c: F0 09 00 [15:52:44]MH_I2C_Read... [15:52:44]Read from MH i2c: F0 09 00 56 4A 00 52 AA 1A 66 23 5B 8F 65 86 [15:52:44]GetLastDocTimeStamp 1713023468 [15:52:44]current date 1713023570 [15:52:44]FM_GetShiftState [15:52:44]SAM_PROTO_GetShiftState [15:52:44]wFMCommunicate request_size=4 [15:52:44]MH_SAM_APDU [15:52:44]CAPDU: 80 13 01 00 [15:52:44]Write to MH i2c: E2 08 00 57 4A 80 13 01 00 00 00 00 00 1E [15:52:44]Write i2c OK [15:52:44]MH_I2C_Read... [15:52:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:44]Read from MH i2c: E2 [15:52:44]MH_I2C_Read... [15:52:44]Read from MH i2c: E2 0E 00 [15:52:44]MH_I2C_Read... [15:52:44]Read from MH i2c: E2 0E 00 57 4A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 37 [15:52:44]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:52:44]wFMCommunicate OK [15:52:44]SAM_PROTO_GetShiftState done [15:52:44]FM_GetShiftState done [15:52:44]opened in 1712967615 [15:52:44]opened+sec_in_day 1713054015 [15:52:44]quantity*price = 50025 [15:52:44]sum+1 = 50026 [15:52:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 173 13.04.2024 15:52 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28966 ФПД: 133068498004159 1/tax-web-control/client/api/v1/ticket?date=20240413T155250&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28966&fm=133068498004159&tin=02508201610067®Number=0000138879044617&sum=50000 [15:52:45]StoreToDocumentArchive [15:52:45]shift 115 fd 28966 [15:52:45]save to /storage/0115/doc_00028966 [15:52:45]save last doc name /storage/0115/doc_00028966 to /storage/kkm_last_doc_name [15:52:45]save OK [15:52:45]Clear old archive folders... [15:52:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:52:45]tlvbuf is 011EAC50 [15:52:45]SAM_PROTO_ClearQueue [15:52:45]wFMCommunicate request_size=4 [15:52:45]MH_SAM_APDU [15:52:45]CAPDU: 80 09 00 00 [15:52:45]Write to MH i2c: E2 08 00 64 4A 80 09 00 00 00 00 00 00 20 [15:52:45]Write i2c OK [15:52:45]MH_I2C_Read... [15:52:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:46]Read from MH i2c: E2 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: E2 03 00 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: E2 03 00 64 4A 00 90 00 22 [15:52:46]RAPDU: 90 00 [15:52:46]wFMCommunicate OK [15:52:46]SAM_PROTO_ClearQueue done [15:52:46]KKMCreateOFDPacket [15:52:46]OFDProtocolAddRootSTLVToBuf [15:52:46]FM_MakeSignedData [15:52:46]FM_MakeSignedData [15:52:46]SAM_PROTO_SignData [15:52:46]wFMCommunicate request_size=4 [15:52:46]MH_SAM_APDU [15:52:46]CAPDU: 80 0D 01 02 [15:52:46]Write to MH i2c: E2 08 00 65 4A 80 0D 01 02 00 00 00 00 28 [15:52:46]Write i2c OK [15:52:46]MH_I2C_Read... [15:52:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:46]Read from MH i2c: E2 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: E2 03 00 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: E2 03 00 65 4A 00 90 00 23 [15:52:46]RAPDU: 90 00 [15:52:46]wFMCommunicate OK [15:52:46]wFMCommunicate request_size=255 [15:52:46]MH_SAM_APDU [15: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 AD 00 00 00 F4 03 04 00 52 AA 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 26 71 00 00 35 04 06 00 79 [15:52:46]Write to MH i2c: E2 02 01 66 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 AD 00 00 00 F4 03 04 00 52 AA 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 26 71 00 00 35 04 06 00 79 00 00 96 [15:52:46]Write i2c OK [15:52:46]MH_I2C_Read... [15:52:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:46]OFD Sender: No OFD packet to send [15:52:46]Read from MH i2c: E2 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: E2 03 00 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: E2 03 00 66 4A 00 90 00 24 [15:52:46]RAPDU: 90 00 [15:52:46]wFMCommunicate OK [15:52:46]wFMCommunicate request_size=10 [15:52:46]MH_SAM_APDU [15:52:46]CAPDU: 80 0D 02 02 05 06 6C 8D E8 BF [15:52:46]Write to MH i2c: E2 0D 00 67 4A 80 0D 02 02 05 00 06 6C 8D E8 BF 00 00 DB [15:52:46]Write i2c OK [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: E2 [15:52:46]MH_I2C_Read... [15:52:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:46]Read from MH i2c: E2 03 00 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: E2 03 00 67 4A 00 90 00 25 [15:52:46]RAPDU: 90 00 [15:52:46]wFMCommunicate OK [15:52:46]wFMCommunicate request_size=4 [15:52:46]MH_SAM_APDU [15:52:46]CAPDU: 80 0D 03 02 [15:52:46]Write to MH i2c: E2 08 00 68 4A 80 0D 03 02 00 00 00 00 2D [15:52:46]Write i2c OK [15:52:46]MH_I2C_Read... [15:52:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:46]Read from MH i2c: E2 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: E2 0B 00 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: E2 0B 00 68 4A 00 82 27 E5 68 34 90 A0 94 90 00 1C [15:52:46]RAPDU: 82 27 E5 68 34 90 A0 94 90 00 [15:52:46]wFMCommunicate OK [15:52:46]SAM_PROTO_SignData done [15:52:46]FM_MakeSignedData done [15:52:46]CreateOFDProtocolMessage [15:52:46]wFMCommunicate request_size=4 [15:52:46]MH_SAM_APDU [15:52:46]CAPDU: 80 11 00 00 [15:52:46]Write to MH i2c: E2 08 00 69 4A 80 11 00 00 00 00 00 00 2D [15:52:46]Write i2c OK [15:52:46]MH_I2C_Read... [15:52:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:46]Read from MH i2c: E2 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: E2 17 00 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: E2 17 00 69 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7C [15:52:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:52:46]wFMCommunicate OK [15:52:46]CreateOFDProtocolMessage done [15:52:46]OFDSenderStorePacket 28966 [15:52:46]StoreOFDPacket docnum=28966 [15:52:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 13 0E 07 01 33 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 AD 00 00 00 F4 03 04 00 52 AA 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 26 71 00 00 35 04 06 00 79 06 6C 8D E8 BF 82 27 E5 68 34 90 A0 94 [15:52:46]CheckFolder [15:52:46]dirname=/storage/ofd_packets [15:52:46]CheckFolder done [15:52:46]ProducePacketName [15:52:46]name=ofd_packets/00028966 [15:52:46]NVStorageSaveData ofd_packets/00028966 [15:52:46]File name is /storage/ofd_packets/00028966 [15:52:46]Write 301 bytes [15:52:46]NVStorageSaveData done [15:52:46]OFDSenderStorePacket done [15:52:46]KKMCreateOFDPacket done [15:52:46]NVStorageSaveData kkm_last_timestamp [15:52:46]File name is /storage/kkm_last_timestamp [15:52:46]Write 4 bytes [15:52:46]NVStorageSaveData done [15:52:46]ExternCall_PrintAddStr [15:52:46]wPrintStart [15:52:46]Write to MH i2c: 01 00 00 6A 4A B4 [15:52:46]Write i2c OK [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: 01 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: 01 07 00 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: 01 07 00 6A 4A 00 00 00 00 00 FF 0F C9 [15:52:46]RasterBufferAndPrint [15:52:46]line Счет N : (1)347326 [15:52:46]line ИНН: 02508201610067 [15:52:46]line Контрольно-Кассовый Чек [15:52:46]line ПРОДАЖА [15:52:46]line ТРК (МРК, ГНК) : 42 [15:52:46]line Товар: 2710124130 [15:52:46]line Аи-92-К-5 [15:52:46]line 7.780 * 64.30 [15:52:46]line = 500.25 [15:52:46]line НДС 12% НСП 1% [15:52:46]line > о реализуемом товаре [15:52:46]line ОКРУГЛЕНИЕ: -0.25 [15:52:46]line ИТОГО: 500.00 [15:52:46]line Внесено: 500.00 [15:52:46]line СДАЧА: 0.00 [15:52:46]line НСП 1% : 4.43 [15:52:46]line НДС 12% : 53.12 [15:52:46]line Наличными: 500.00 [15:52:46]line Безнал.: 0.00 [15:52:46]line Место: АЗС № 108 "Партнер Нефть" [15:52:46]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:52:46]line СНО: Общий режим [15:52:46]line Чек 173 13.04.2024 15:52 [15:52:46]line Смена: 115 ФФД: 1.0 [15:52:46]line ЗНМ: 0300000027 [15:52:46]line РНМ: 0000138879044617 [15:52:46]line Версия ККМ: 001 [15:52:46]line ФМ: 0000000000963154 [15:52:46]line ФД: 28966 [15:52:46]line ФПД: 133068498004159 [15:52:46]line 1/tax-web-control/client/api/v1/ticket?date=20240413T155250&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28966&fm=133068498004159&tin=02508201610067®Number=0000138879044617&sum=50000 [15:52:46]OFD Sender: Processing packet 28966 [packets to send 8, broken 7] [15:52:46]ProducePacketName [15:52:46]name=ofd_packets/00028966 [15:52:46]OFD Sender: To server: pG, [15:52:46]CommunicateWithHost lk.salyk.kg:30040 [15:52:46]ConnectInit lk.salyk.kg [15:52:46]written 0, free lines is 4095 [15:52:46]Connected sock=10 [15: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 31 35 34 0F 01 00 00 13 0E 07 01 33 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 AD 00 00 00 F4 03 04 00 52 AA 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 26 71 00 00 35 04 06 00 79 06 6C 8D E8 BF 82 27 E5 68 34 90 A0 94 [15: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 31 35 34 4F 00 00 00 D0 0E 47 00 49 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 31 35 34 10 04 04 00 26 71 00 00 F4 03 04 00 F8 54 1A 66 B6 04 01 00 00 BD BA 28 0A 7B 37 59 30 [15:52:47]CommunicateWithHost err = 0 [15:52:47]CheckOFDResponse [15:52:47]1017 (14) - 77093643461234 [15:52:47]1041 (16) - 0000000000963154 [15:52:47]1040 (4) - 28966 [15:52:47]1012 (4) - 13.04.2024 09:48 [15:52:47]1206 (1) - 0 [15:52:47]OFD Sender: Remove packet 28966 [15:52:47]ProducePacketName [15:52:47]name=ofd_packets/00028966 [15:52:47]NVStorageDeleteData [15:52:47]Write to MH i2c: 01 00 00 94 4A DE [15:52:47]Write i2c OK [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: 01 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: 01 07 00 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: 01 07 00 94 4A 00 00 00 00 00 BB 0C AC [15:52:47]RasterBufferAndPrint [15:52:47]line [15:52:47]line [15:52:47]line [15:52:47]line [15:52:47]line [15:52:47]written 0, free lines is 3265 [15:52:47]MH_Cut [15:52:47]Write to MH i2c: D1 01 00 9B 4A 01 B7 [15:52:47]Write i2c OK [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: D1 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: D1 01 00 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: D1 01 00 9B 4A 00 B6 [15:52:47]Write to MH i2c: 01 00 00 9C 4A E6 [15:52:47]Write i2c OK [15:52:47]MH_I2C_Read... [15:52:47]OFD Sender: No OFD packet to send [15:52:48]*** Cut start [15:52:48]*** Partial cut [15:52:48]*** CUTSNS_PIN = 1 [15:52:48]*** CUTSNS_PIN = 0 [15:52:48]*** Brake cut motor [15:52:48]Read from MH i2c: 01 [15:52:48]MH_I2C_Read... [15:52:48]*** Stop cut motor [15:52:48]*** Cut end [15:52:48]Read from MH i2c: 01 07 00 [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: 01 07 00 9C 4A 00 00 00 00 00 FF 0F FB [15:52:48]process_action close_receipt done [15:52:48]requested_data is exist [15:52:48]produce_requested_data [15:52:48]requested_item fm.sn is exist - process it [15:52:48]wFMCommunicate request_size=4 [15:52:48]MH_SAM_APDU [15:52:48]CAPDU: 80 11 00 00 [15:52:48]Write to MH i2c: E2 08 00 9D 4A 80 11 00 00 00 00 00 00 61 [15:52:48]Write i2c OK [15:52:48]MH_I2C_Read... [15:52:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:48]Read from MH i2c: E2 [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: E2 17 00 [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: E2 17 00 9D 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B0 [15:52:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:52:48]wFMCommunicate OK [15:52:48]requested_item fd.num is exist - process it [15:52:48]SAM_PROTO_GetFieldsCounters [15:52:48]wFMCommunicate request_size=4 [15:52:48]MH_SAM_APDU [15:52:48]CAPDU: 80 13 00 00 [15:52:48]Write to MH i2c: E2 08 00 9E 4A 80 13 00 00 00 00 00 00 64 [15:52:48]Write i2c OK [15:52:48]MH_I2C_Read... [15:52:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:48]Read from MH i2c: E2 [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: E2 62 00 [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: E2 62 00 9E 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 26 71 00 00 0E 04 04 00 73 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 B3 [15:52: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 26 71 00 00 0E 04 04 00 73 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 [15:52:48]wFMCommunicate OK [15:52:48]SAM_PROTO_GetFieldsCounters done [15:52:48]requested_item shift.num is exist - process it [15:52:48]requested_item shift.opened is exist - process it [15:52:48]req_shift_opened [15:52:48]FM_GetShiftState [15:52:48]SAM_PROTO_GetShiftState [15:52:48]wFMCommunicate request_size=4 [15:52:48]MH_SAM_APDU [15:52:48]CAPDU: 80 13 01 00 [15:52:48]Write to MH i2c: E2 08 00 9F 4A 80 13 01 00 00 00 00 00 66 [15:52:48]Write i2c OK [15:52:48]MH_I2C_Read... [15:52:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:48]Read from MH i2c: E2 [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: E2 0E 00 [15:52:48]MH_I2C_Read... [15:52:48]Read from MH i2c: E2 0E 00 9F 4A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 7F [15:52:48]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:52:48]wFMCommunicate OK [15:52:48]SAM_PROTO_GetShiftState done [15:52:48]FM_GetShiftState done [15:52:48]req_shift_opened done [15:52:48]requested_item shift.open_date is exist - process it [15:52:48]req_shift_open_date [15:52:48]req_shift_open_date done [15:52:48]produce_requested_data done [15:52:48]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28966,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [15:52:48]process_action_free close_receipt [15:52:48]json_value_free [15:52:48]json_value_free done [15:52:48]process_json_proto returns [15:52:48]Send response to host [15:52:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28966,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [15:52:48]free response buf [15:52:48]execute_script done [15:52:48]execute_script returns [15:52:48]free content buf [15:52:48]Sock 9.Close socket [15:52:48]Sock 9.Thread stoped [15:52:52]OFD Sender: No OFD packet to send [15:52:57]OFD Sender: No OFD packet to send [15:53:02]OFD Sender: No OFD packet to send [15:53:07]OFD Sender: No OFD packet to send [15:53:12]OFD Sender: No OFD packet to send [15:53:17]OFD Sender: No OFD packet to send [15:53:22]OFD Sender: No OFD packet to send [15:53:27]OFD Sender: No OFD packet to send [15:53:32]OFD Sender: No OFD packet to send [15:53:37]OFD Sender: No OFD packet to send [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:46]accept exits with 7 [15:54:46]New connection [15:54:46]New thread 3066785124 created [15:54:46]Thread 3066928484 joined [15:54:46]Waiting for new connection... [15:54:46] Sock 7.Parse request [15:54:46]Sock 7.Check first char [15:54:46]Sock 7.First char is OK [15:54:46]request: POST /json_proto HTTP/1.0 [15:54:46]Method: POST [15:54:46]URL: /json_proto [15:54:46]Method is POST - this is cgi request [15:54:46]url: /json_proto [15:54:46]query_string will be loaded in cgi processing [15:54:46]execute_cgi json_proto POST (null) [15:54:46]execute_cgi path=json_proto method=POST [15:54:46]POST find Content-Length [15:54:46]Host: 172.17.33.3:8080 [15:54:46]Content-Length: 681 [15:54:46]Content-Type: application/json [15:54:46] [15:54:46]POST finish read [15:54:46]Found Content-Length = 681 [15:54:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 15.200, "sum" : 500.08, "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:46]execute_script... [15:54: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)347327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 15.200, "sum" : 500.08, "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:46]POST & json_proto [15:54:46]process_json_proto [15:54:46]json parsed OK: [15:54:46]protocol is kg_v1.0 [15:54:46]action value=close_receipt [15:54:46]process_action close_receipt [15:54:46]cmd_close_receipt [15:54:46]MH_GetDate [15:54:46]Write to MH i2c: F0 00 00 A0 4A D9 [15:54:46]Write i2c OK [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: F0 [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: F0 09 00 [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: F0 09 00 A0 4A 00 CC AA 1A 66 23 5B 8F 65 4A [15:54:46]GetLastDocTimeStamp 1713023570 [15:54:46]current date 1713023692 [15:54:46]FM_GetShiftState [15:54:46]SAM_PROTO_GetShiftState [15:54:46]wFMCommunicate request_size=4 [15:54:46]MH_SAM_APDU [15:54:46]CAPDU: 80 13 01 00 [15:54:46]Write to MH i2c: E2 08 00 A1 4A 80 13 01 00 00 00 00 00 68 [15:54:46]Write i2c OK [15:54:46]MH_I2C_Read... [15:54:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:46]Read from MH i2c: E2 [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: E2 0E 00 [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: E2 0E 00 A1 4A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 81 [15:54:46]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:54:46]wFMCommunicate OK [15:54:46]SAM_PROTO_GetShiftState done [15:54:46]FM_GetShiftState done [15:54:46]opened in 1712967615 [15:54:46]opened+sec_in_day 1713054015 [15:54:46]quantity*price = 50008 [15:54:46]sum+1 = 50009 [15:54:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 174 13.04.2024 15:54 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28967 ФПД: 203066393563772 1/tax-web-control/client/api/v1/ticket?date=20240413T155452&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28967&fm=203066393563772&tin=02508201610067®Number=0000138879044617&sum=50000 [15:54:47]StoreToDocumentArchive [15:54:47]shift 115 fd 28967 [15:54:47]save to /storage/0115/doc_00028967 [15:54:47]save last doc name /storage/0115/doc_00028967 to /storage/kkm_last_doc_name [15:54:47]save OK [15:54:47]Clear old archive folders... [15:54:47]ProcessDocumentItem done err = 0, tmpTLVsize=250 [15:54:47]tlvbuf is 012335D0 [15:54:47]SAM_PROTO_ClearQueue [15:54:47]wFMCommunicate request_size=4 [15:54:47]MH_SAM_APDU [15:54:47]CAPDU: 80 09 00 00 [15:54:47]Write to MH i2c: E2 08 00 AE 4A 80 09 00 00 00 00 00 00 6A [15:54:47]Write i2c OK [15:54:47]MH_I2C_Read... [15:54:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:54:48]Read from MH i2c: E2 [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: E2 03 00 [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: E2 03 00 AE 4A 00 90 00 6C [15:54:48]RAPDU: 90 00 [15:54:48]wFMCommunicate OK [15:54:48]SAM_PROTO_ClearQueue done [15:54:48]KKMCreateOFDPacket [15:54:48]OFDProtocolAddRootSTLVToBuf [15:54:48]FM_MakeSignedData [15:54:48]FM_MakeSignedData [15:54:48]SAM_PROTO_SignData [15:54:48]wFMCommunicate request_size=4 [15:54:48]MH_SAM_APDU [15:54:48]CAPDU: 80 0D 01 02 [15:54:48]Write to MH i2c: E2 08 00 AF 4A 80 0D 01 02 00 00 00 00 72 [15:54:48]Write i2c OK [15:54:48]MH_I2C_Read... [15:54:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:54:48]Read from MH i2c: E2 [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: E2 03 00 [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: E2 03 00 AF 4A 00 90 00 6D [15:54:48]RAPDU: 90 00 [15:54:48]wFMCommunicate OK [15:54:48]wFMCommunicate request_size=255 [15:54:48]MH_SAM_APDU [15:54: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 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 CC AA 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 27 71 00 00 35 04 06 00 B8 B0 [15:54:48]Write to MH i2c: E2 02 01 B0 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 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 CC AA 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 27 71 00 00 35 04 06 00 B8 B0 00 00 B0 [15:54:48]Write i2c OK [15:54:48]MH_I2C_Read... [15:54:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:48]Read from MH i2c: E2 [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: E2 03 00 [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: E2 03 00 B0 4A 00 90 00 6E [15:54:48]RAPDU: 90 00 [15:54:48]wFMCommunicate OK [15:54:48]wFMCommunicate request_size=9 [15:54:48]MH_SAM_APDU [15:54:48]CAPDU: 80 0D 02 02 04 14 41 12 7C [15:54:48]Write to MH i2c: E2 0C 00 B1 4A 80 0D 02 02 04 00 14 41 12 7C 00 00 60 [15:54:48]Write i2c OK [15:54:48]MH_I2C_Read... [15:54:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:48]Read from MH i2c: E2 [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: E2 03 00 [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: E2 03 00 B1 4A 00 90 00 6F [15:54:48]RAPDU: 90 00 [15:54:48]wFMCommunicate OK [15:54:48]wFMCommunicate request_size=4 [15:54:48]MH_SAM_APDU [15:54:48]CAPDU: 80 0D 03 02 [15:54:48]Write to MH i2c: E2 08 00 B2 4A 80 0D 03 02 00 00 00 00 77 [15:54:48]Write i2c OK [15:54:48]MH_I2C_Read... [15:54:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:54:48]Read from MH i2c: E2 [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: E2 0B 00 [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: E2 0B 00 B2 4A 00 88 4D 5A 2E B5 E9 84 F3 90 00 EA [15:54:48]RAPDU: 88 4D 5A 2E B5 E9 84 F3 90 00 [15:54:48]wFMCommunicate OK [15:54:48]SAM_PROTO_SignData done [15:54:48]FM_MakeSignedData done [15:54:48]CreateOFDProtocolMessage [15:54:48]wFMCommunicate request_size=4 [15:54:48]MH_SAM_APDU [15:54:48]CAPDU: 80 11 00 00 [15:54:48]Write to MH i2c: E2 08 00 B3 4A 80 11 00 00 00 00 00 00 77 [15:54:48]Write i2c OK [15:54:48]MH_I2C_Read... [15:54:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:48]Read from MH i2c: E2 [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: E2 17 00 [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: E2 17 00 B3 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C6 [15:54:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:54:48]wFMCommunicate OK [15:54:48]CreateOFDProtocolMessage done [15:54:48]OFDSenderStorePacket 28967 [15:54:48]StoreOFDPacket docnum=28967 [15:54:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 0A CB 06 01 B8 AA 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 CC AA 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 27 71 00 00 35 04 06 00 B8 B0 14 41 12 7C 88 4D 5A 2E B5 E9 84 F3 [15:54:48]CheckFolder [15:54:48]dirname=/storage/ofd_packets [15:54:48]CheckFolder done [15:54:48]ProducePacketName [15:54:48]name=ofd_packets/00028967 [15:54:48]NVStorageSaveData ofd_packets/00028967 [15:54:48]File name is /storage/ofd_packets/00028967 [15:54:48]Write 300 bytes [15:54:48]NVStorageSaveData done [15:54:48]OFDSenderStorePacket done [15:54:48]KKMCreateOFDPacket done [15:54:48]NVStorageSaveData kkm_last_timestamp [15:54:48]File name is /storage/kkm_last_timestamp [15:54:48]Write 4 bytes [15:54:48]NVStorageSaveData done [15:54:48]ExternCall_PrintAddStr [15:54:48]wPrintStart [15:54:48]Write to MH i2c: 01 00 00 B4 4A FE [15:54:48]Write i2c OK [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: 01 [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: 01 07 00 [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: 01 07 00 B4 4A 00 00 00 00 00 FF 0F 13 [15:54:48]RasterBufferAndPrint [15:54:48]line Счет N : (1)347327 [15:54:48]line ИНН: 02508201610067 [15:54:48]line Контрольно-Кассовый Чек [15:54:48]line ПРОДАЖА [15:54:48]line ТРК (МРК, ГНК) : 71 [15:54:48]line Товар: 2711129700 [15:54:48]line ГАЗ-К-5 [15:54:48]line 15.200 * 32.90 [15:54:48]line = 500.08 [15:54:48]line НДС 12% НСП 1% [15:54:48]line > о реализуемом товаре [15:54:48]line ОКРУГЛЕНИЕ: -0.08 [15:54:48]line ИТОГО: 500.00 [15:54:48]line Внесено: 500.00 [15:54:48]line СДАЧА: 0.00 [15:54:48]line НСП 1% : 4.42 [15:54:48]line НДС 12% : 53.11 [15:54:48]line Наличными: 500.00 [15:54:48]line Безнал.: 0.00 [15:54:48]line Место: АЗС № 108 "Партнер Нефть" [15:54:48]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:54:48]line СНО: Общий режим [15:54:48]line Чек 174 13.04.2024 15:54 [15:54:48]line Смена: 115 ФФД: 1.0 [15:54:48]line ЗНМ: 0300000027 [15:54:48]line РНМ: 0000138879044617 [15:54:48]line Версия ККМ: 001 [15:54:48]line ФМ: 0000000000963154 [15:54:48]line ФД: 28967 [15:54:48]line ФПД: 203066393563772 [15:54:48]line 1/tax-web-control/client/api/v1/ticket?date=20240413T155452&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28967&fm=203066393563772&tin=02508201610067®Number=0000138879044617&sum=50000 [15:54:48]OFD Sender: Processing packet 28967 [packets to send 8, broken 7] [15:54:48]ProducePacketName [15:54:48]name=ofd_packets/00028967 [15:54:48]OFD Sender: To server: pG, [15:54:48]CommunicateWithHost lk.salyk.kg:30040 [15:54:48]ConnectInit lk.salyk.kg [15:54:48]written 0, free lines is 4095 [15:54:48]Connected sock=10 [15:54: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 31 35 34 0E 01 00 00 0A CB 06 01 B8 AA 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 CC AA 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 27 71 00 00 35 04 06 00 B8 B0 14 41 12 7C 88 4D 5A 2E B5 E9 84 F3 [15:54:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 08 8C 47 00 5C 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 31 35 34 10 04 04 00 27 71 00 00 F4 03 04 00 72 55 1A 66 B6 04 01 00 00 9C 74 C8 63 2E 2F F2 0C [15:54:49]CommunicateWithHost err = 0 [15:54:49]CheckOFDResponse [15:54:49]1017 (14) - 77093643461234 [15:54:49]1041 (16) - 0000000000963154 [15:54:49]1040 (4) - 28967 [15:54:49]1012 (4) - 13.04.2024 09:50 [15:54:49]1206 (1) - 0 [15:54:49]OFD Sender: Remove packet 28967 [15:54:49]ProducePacketName [15:54:49]name=ofd_packets/00028967 [15:54:49]NVStorageDeleteData [15:54:49]Write to MH i2c: 01 00 00 DE 4A 28 [15:54:49]Write i2c OK [15:54:49]MH_I2C_Read... [15:54:49]Read from MH i2c: 01 [15:54:49]MH_I2C_Read... [15:54:49]Read from MH i2c: 01 07 00 [15:54:49]MH_I2C_Read... [15:54:49]Read from MH i2c: 01 07 00 DE 4A 00 00 00 00 00 BC 0C F7 [15:54:49]RasterBufferAndPrint [15:54:49]line [15:54:49]line [15:54:49]line [15:54:49]line [15:54:49]line [15:54:49]written 0, free lines is 3265 [15:54:49]MH_Cut [15:54:49]Write to MH i2c: D1 01 00 E5 4A 01 01 [15:54:49]Write i2c OK [15:54:49]MH_I2C_Read... [15:54:49]Read from MH i2c: D1 [15:54:49]MH_I2C_Read... [15:54:49]Read from MH i2c: D1 01 00 [15:54:49]MH_I2C_Read... [15:54:49]Read from MH i2c: D1 01 00 E5 4A 00 00 [15:54:49]Write to MH i2c: 01 00 00 E6 4A 30 [15:54:49]Write i2c OK [15:54:49]MH_I2C_Read... [15:54:49]OFD Sender: No OFD packet to send [15:54:50]*** Cut start [15:54:50]*** Partial cut [15:54:50]*** CUTSNS_PIN = 1 [15:54:50]*** CUTSNS_PIN = 0 [15:54:50]*** Brake cut motor [15:54:50]Read from MH i2c: 01 [15:54:50]MH_I2C_Read... [15:54:50]*** Stop cut motor [15:54:50]*** Cut end [15:54:50]Read from MH i2c: 01 07 00 [15:54:50]MH_I2C_Read... [15:54:50]Read from MH i2c: 01 07 00 E6 4A 00 00 00 00 00 FF 0F 45 [15:54:50]process_action close_receipt done [15:54:50]requested_data is exist [15:54:50]produce_requested_data [15:54:50]requested_item fm.sn is exist - process it [15:54:50]wFMCommunicate request_size=4 [15:54:50]MH_SAM_APDU [15:54:50]CAPDU: 80 11 00 00 [15:54:50]Write to MH i2c: E2 08 00 E7 4A 80 11 00 00 00 00 00 00 AB [15:54:50]Write i2c OK [15:54:50]MH_I2C_Read... [15:54:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:50]Read from MH i2c: E2 [15:54:50]MH_I2C_Read... [15:54:50]Read from MH i2c: E2 17 00 [15:54:50]MH_I2C_Read... [15:54:50]Read from MH i2c: E2 17 00 E7 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FA [15:54:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:54:50]wFMCommunicate OK [15:54:50]requested_item fd.num is exist - process it [15:54:50]SAM_PROTO_GetFieldsCounters [15:54:50]wFMCommunicate request_size=4 [15:54:50]MH_SAM_APDU [15:54:50]CAPDU: 80 13 00 00 [15:54:50]Write to MH i2c: E2 08 00 E8 4A 80 13 00 00 00 00 00 00 AE [15:54:50]Write i2c OK [15:54:50]MH_I2C_Read... [15:54:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:54:50]Read from MH i2c: E2 [15:54:50]MH_I2C_Read... [15:54:50]Read from MH i2c: E2 62 00 [15:54:50]MH_I2C_Read... [15:54:50]Read from MH i2c: E2 62 00 E8 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 27 71 00 00 0E 04 04 00 73 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 01 [15:54: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 27 71 00 00 0E 04 04 00 73 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 [15:54:50]wFMCommunicate OK [15:54:50]SAM_PROTO_GetFieldsCounters done [15:54:50]requested_item shift.num is exist - process it [15:54:50]requested_item shift.opened is exist - process it [15:54:50]req_shift_opened [15:54:50]FM_GetShiftState [15:54:50]SAM_PROTO_GetShiftState [15:54:50]wFMCommunicate request_size=4 [15:54:50]MH_SAM_APDU [15:54:50]CAPDU: 80 13 01 00 [15:54:50]Write to MH i2c: E2 08 00 E9 4A 80 13 01 00 00 00 00 00 B0 [15:54:50]Write i2c OK [15:54:50]MH_I2C_Read... [15:54:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:51]Read from MH i2c: E2 [15:54:51]MH_I2C_Read... [15:54:51]Read from MH i2c: E2 0E 00 [15:54:51]MH_I2C_Read... [15:54:51]Read from MH i2c: E2 0E 00 E9 4A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 C9 [15:54:51]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:54:51]wFMCommunicate OK [15:54:51]SAM_PROTO_GetShiftState done [15:54:51]FM_GetShiftState done [15:54:51]req_shift_opened done [15:54:51]requested_item shift.open_date is exist - process it [15:54:51]req_shift_open_date [15:54:51]req_shift_open_date done [15:54:51]produce_requested_data done [15:54:51]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28967,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [15:54:51]process_action_free close_receipt [15:54:51]json_value_free [15:54:51]json_value_free done [15:54:51]process_json_proto returns [15:54:51]Send response to host [15:54:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28967,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [15:54:51]free response buf [15:54:51]execute_script done [15:54:51]execute_script returns [15:54:51]free content buf [15:54:51]Sock 7.Close socket [15:54:51]Sock 7.Thread stoped [15:54:54]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]OFD Sender: No OFD packet to send [15:55:14]OFD Sender: No OFD packet to send [15:55:19]OFD Sender: No OFD packet to send [15:55:24]OFD Sender: No OFD packet to send [15:55:29]OFD Sender: No OFD packet to send [15:55:34]OFD Sender: No OFD packet to send [15:55:39]OFD Sender: No OFD packet to send [15:55:44]OFD Sender: No OFD packet to send [15:55:49]OFD Sender: No OFD packet to send [15:55:54]OFD Sender: No OFD packet to send [15:55:59]OFD Sender: No OFD packet to send [15:56:04]OFD Sender: No OFD packet to send [15:56:09]OFD Sender: No OFD packet to send [15:56:14]OFD Sender: No OFD packet to send [15:56:19]OFD Sender: No OFD packet to send [15:56:24]OFD Sender: No OFD packet to send [15:56:29]OFD Sender: No OFD packet to send [15:56:34]OFD Sender: No OFD packet to send [15:56:39]OFD Sender: No OFD packet to send [15:56:44]OFD Sender: No OFD packet to send [15:56:49]OFD Sender: No OFD packet to send [15:56:54]OFD Sender: No OFD packet to send [15:56:59]OFD Sender: No OFD packet to send [15:57:04]OFD Sender: No OFD packet to send [15:57:09]OFD Sender: No OFD packet to send [15:57:14]OFD Sender: No OFD packet to send [15:57:19]accept exits with 9 [15:57:19]New connection [15:57:19]New thread 3066928484 created [15:57:19]Thread 3066785124 joined [15:57:19]Waiting for new connection... [15:57:19] Sock 9.Parse request [15:57:19]Sock 9.Check first char [15:57:19]Sock 9.First char is OK [15:57:19]request: POST /json_proto HTTP/1.0 [15:57:19]Method: POST [15:57:19]URL: /json_proto [15:57:19]Method is POST - this is cgi request [15:57:19]url: /json_proto [15:57:19]query_string will be loaded in cgi processing [15:57:19]execute_cgi json_proto POST (null) [15:57:19]execute_cgi path=json_proto method=POST [15:57:19]POST find Content-Length [15:57:19]Host: 172.17.33.3:8080 [15:57:19]Content-Length: 679 [15:57:19]Content-Type: application/json [15:57:19] [15:57:19]POST finish read [15:57:19]Found Content-Length = 679 [15:57:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347328", "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" : 72.40, "quantity" : 20.720, "sum" : 1500.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:19]execute_script... [15: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)347328", "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" : 72.40, "quantity" : 20.720, "sum" : 1500.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:19]POST & json_proto [15:57:19]process_json_proto [15:57:19]json parsed OK: [15:57:19]protocol is kg_v1.0 [15:57:19]action value=close_receipt [15:57:19]process_action close_receipt [15:57:19]cmd_close_receipt [15:57:19]MH_GetDate [15:57:19]Write to MH i2c: F0 00 00 EA 4A 23 [15:57:19]Write i2c OK [15:57:19]MH_I2C_Read... [15:57:19]Read from MH i2c: F0 [15:57:19]MH_I2C_Read... [15:57:19]Read from MH i2c: F0 09 00 [15:57:19]MH_I2C_Read... [15:57:19]Read from MH i2c: F0 09 00 EA 4A 00 64 AB 1A 66 23 5B 8F 65 2D [15:57:19]GetLastDocTimeStamp 1713023692 [15:57:19]current date 1713023844 [15:57:19]FM_GetShiftState [15:57:19]SAM_PROTO_GetShiftState [15:57:19]wFMCommunicate request_size=4 [15:57:19]MH_SAM_APDU [15:57:19]CAPDU: 80 13 01 00 [15:57:19]Write to MH i2c: E2 08 00 EB 4A 80 13 01 00 00 00 00 00 B2 [15:57:19]Write i2c OK [15:57:19]MH_I2C_Read... [15:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:19]Read from MH i2c: E2 [15:57:19]MH_I2C_Read... [15:57:19]Read from MH i2c: E2 0E 00 [15:57:19]MH_I2C_Read... [15:57:19]Read from MH i2c: E2 0E 00 EB 4A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 CB [15:57:19]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:57:19]wFMCommunicate OK [15:57:19]SAM_PROTO_GetShiftState done [15:57:19]FM_GetShiftState done [15:57:19]opened in 1712967615 [15:57:19]opened+sec_in_day 1713054015 [15:57:19]quantity*price = 150012 [15:57:19]sum+1 = 150014 [15:57:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.31 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 175 13.04.2024 15:57 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28968 ФПД: 102754344411376 1/tax-web-control/client/api/v1/ticket?date=20240413T155724&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28968&fm=102754344411376&tin=02508201610067®Number=0000138879044617&sum=150000 [15:57:20]StoreToDocumentArchive [15:57:20]shift 115 fd 28968 [15:57:20]save to /storage/0115/doc_00028968 [15:57:20]save last doc name /storage/0115/doc_00028968 to /storage/kkm_last_doc_name [15:57:20]save OK [15:57:20]Clear old archive folders... [15:57:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:57:20]tlvbuf is 011B70E0 [15:57:20]SAM_PROTO_ClearQueue [15:57:20]wFMCommunicate request_size=4 [15:57:20]MH_SAM_APDU [15:57:20]CAPDU: 80 09 00 00 [15:57:20]Write to MH i2c: E2 08 00 F8 4A 80 09 00 00 00 00 00 00 B4 [15:57:20]Write i2c OK [15:57:20]MH_I2C_Read... [15:57:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:20]Read from MH i2c: E2 [15:57:20]MH_I2C_Read... [15:57:20]Read from MH i2c: E2 03 00 [15:57:20]MH_I2C_Read... [15:57:20]Read from MH i2c: E2 03 00 F8 4A 00 90 00 B6 [15:57:20]RAPDU: 90 00 [15:57:20]wFMCommunicate OK [15:57:20]SAM_PROTO_ClearQueue done [15:57:20]KKMCreateOFDPacket [15:57:20]OFDProtocolAddRootSTLVToBuf [15:57:20]FM_MakeSignedData [15:57:20]FM_MakeSignedData [15:57:20]SAM_PROTO_SignData [15:57:20]wFMCommunicate request_size=4 [15:57:20]MH_SAM_APDU [15:57:20]CAPDU: 80 0D 01 02 [15:57:20]Write to MH i2c: E2 08 00 F9 4A 80 0D 01 02 00 00 00 00 BC [15:57:20]Write i2c OK [15:57:20]MH_I2C_Read... [15:57:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:20]Read from MH i2c: E2 [15:57:20]MH_I2C_Read... [15:57:20]Read from MH i2c: E2 03 00 [15:57:20]MH_I2C_Read... [15:57:20]Read from MH i2c: E2 03 00 F9 4A 00 90 00 B7 [15:57:20]RAPDU: 90 00 [15:57:20]wFMCommunicate OK [15:57:20]wFMCommunicate request_size=255 [15:57:20]MH_SAM_APDU [15:57:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 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 AF 00 00 00 F4 03 04 00 64 AB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 28 71 00 00 35 04 06 00 5D 74 5C 32 [15:57:20]Write to MH i2c: E2 02 01 FA 4A 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 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 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 AF 00 00 00 F4 03 04 00 64 AB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 28 71 00 00 35 04 06 00 5D 74 5C 32 00 00 EE [15:57:20]Write i2c OK [15:57:20]MH_I2C_Read... [15:57:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:20]Read from MH i2c: E2 [15:57:20]MH_I2C_Read... [15:57:20]Read from MH i2c: E2 03 00 [15:57:20]MH_I2C_Read... [15:57:20]Read from MH i2c: E2 03 00 FA 4A 00 90 00 B8 [15:57:20]RAPDU: 90 00 [15:57:20]wFMCommunicate OK [15:57:20]wFMCommunicate request_size=7 [15:57:20]MH_SAM_APDU [15:57:20]CAPDU: 80 0D 02 02 02 A0 F0 [15:57:20]Write to MH i2c: E2 0A 00 FB 4A 80 0D 02 02 02 00 A0 F0 00 00 53 [15:57:20]Write i2c OK [15:57:20]MH_I2C_Read... [15:57:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:21]Read from MH i2c: E2 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: E2 03 00 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: E2 03 00 FB 4A 00 90 00 B9 [15:57:21]RAPDU: 90 00 [15:57:21]wFMCommunicate OK [15:57:21]wFMCommunicate request_size=4 [15:57:21]MH_SAM_APDU [15:57:21]CAPDU: 80 0D 03 02 [15:57:21]Write to MH i2c: E2 08 00 FC 4A 80 0D 03 02 00 00 00 00 C1 [15:57:21]Write i2c OK [15:57:21]MH_I2C_Read... [15:57:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:21]Read from MH i2c: E2 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: E2 0B 00 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: E2 0B 00 FC 4A 00 24 55 BC 17 B6 20 21 D1 90 00 D6 [15:57:21]RAPDU: 24 55 BC 17 B6 20 21 D1 90 00 [15:57:21]wFMCommunicate OK [15:57:21]SAM_PROTO_SignData done [15:57:21]FM_MakeSignedData done [15:57:21]CreateOFDProtocolMessage [15:57:21]wFMCommunicate request_size=4 [15:57:21]MH_SAM_APDU [15:57:21]CAPDU: 80 11 00 00 [15:57:21]Write to MH i2c: E2 08 00 FD 4A 80 11 00 00 00 00 00 00 C1 [15:57:21]Write i2c OK [15:57:21]MH_I2C_Read... [15:57:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:21]Read from MH i2c: E2 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: E2 17 00 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: E2 17 00 FD 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 10 [15:57:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:57:21]wFMCommunicate OK [15:57:21]CreateOFDProtocolMessage done [15:57:21]OFDSenderStorePacket 28968 [15:57:21]StoreOFDPacket docnum=28968 [15:57:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 1E 09 04 01 0D 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 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 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 AF 00 00 00 F4 03 04 00 64 AB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 28 71 00 00 35 04 06 00 5D 74 5C 32 A0 F0 24 55 BC 17 B6 20 21 D1 [15:57:21]CheckFolder [15:57:21]dirname=/storage/ofd_packets [15:57:21]CheckFolder done [15:57:21]ProducePacketName [15:57:21]name=ofd_packets/00028968 [15:57:21]NVStorageSaveData ofd_packets/00028968 [15:57:21]File name is /storage/ofd_packets/00028968 [15:57:21]Write 298 bytes [15:57:21]NVStorageSaveData done [15:57:21]OFDSenderStorePacket done [15:57:21]KKMCreateOFDPacket done [15:57:21]NVStorageSaveData kkm_last_timestamp [15:57:21]File name is /storage/kkm_last_timestamp [15:57:21]Write 4 bytes [15:57:21]NVStorageSaveData done [15:57:21]ExternCall_PrintAddStr [15:57:21]wPrintStart [15:57:21]Write to MH i2c: 01 00 00 FE 4A 48 [15:57:21]Write i2c OK [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: 01 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: 01 07 00 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: 01 07 00 FE 4A 00 00 00 00 00 FF 0F 5D [15:57:21]RasterBufferAndPrint [15:57:21]line Счет N : (1)347328 [15:57:21]line ИНН: 02508201610067 [15:57:21]line Контрольно-Кассовый Чек [15:57:21]line ПРОДАЖА [15:57:21]line ТРК (МРК, ГНК) : 61 [15:57:21]line Товар: 2710194210 [15:57:21]line ДТ-К-5 [15:57:21]line 20.720 * 72.40 [15:57:21]line = 1500.13 [15:57:21]line НДС 12% НСП 1% [15:57:21]line > о реализуемом товаре [15:57:21]line ОКРУГЛЕНИЕ: -0.13 [15:57:21]line ИТОГО: 1500.00 [15:57:21]line Внесено: 1500.00 [15:57:21]line СДАЧА: 0.00 [15:57:21]line НСП 1% : 13.27 [15:57:21]line НДС 12% : 159.31 [15:57:21]line Наличными: 1500.00 [15:57:21]line Безнал.: 0.00 [15:57:21]line Место: АЗС № 108 "Партнер Нефть" [15:57:21]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:57:21]line СНО: Общий режим [15:57:21]line Чек 175 13.04.2024 15:57 [15:57:21]line Смена: 115 ФФД: 1.0 [15:57:21]line ЗНМ: 0300000027 [15:57:21]line РНМ: 0000138879044617 [15:57:21]line Версия ККМ: 001 [15:57:21]line ФМ: 0000000000963154 [15:57:21]line ФД: 28968 [15:57:21]line ФПД: 102754344411376 [15:57:21]line 1/tax-web-control/client/api/v1/ticket?date=20240413T155724&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28968&fm=102754344411376&tin=02508201610067®Number=0000138879044617&sum=150000 [15:57:21]OFD Sender: Processing packet 28968 [packets to send 8, broken 7] [15:57:21]ProducePacketName [15:57:21]name=ofd_packets/00028968 [15:57:21]OFD Sender: To server: pG, [15:57:21]CommunicateWithHost lk.salyk.kg:30040 [15:57:21]ConnectInit lk.salyk.kg [15:57:21]written 0, free lines is 4095 [15:57:21]Connected sock=10 [15: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 31 35 34 0C 01 00 00 1E 09 04 01 0D 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 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 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 AF 00 00 00 F4 03 04 00 64 AB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 28 71 00 00 35 04 06 00 5D 74 5C 32 A0 F0 24 55 BC 17 B6 20 21 D1 [15: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 31 35 34 4F 00 00 00 02 C7 47 00 F3 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 31 35 34 10 04 04 00 28 71 00 00 F4 03 04 00 0B 56 1A 66 B6 04 01 00 00 DF 1D 5D 60 E6 34 2A 4F [15:57:21]CommunicateWithHost err = 0 [15:57:21]CheckOFDResponse [15:57:21]1017 (14) - 77093643461234 [15:57:21]1041 (16) - 0000000000963154 [15:57:21]1040 (4) - 28968 [15:57:21]1012 (4) - 13.04.2024 09:53 [15:57:21]1206 (1) - 0 [15:57:21]OFD Sender: Remove packet 28968 [15:57:21]ProducePacketName [15:57:21]name=ofd_packets/00028968 [15:57:21]NVStorageDeleteData [15:57:21]Write to MH i2c: 01 00 00 28 4B 73 [15:57:21]Write i2c OK [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: 01 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: 01 07 00 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: 01 07 00 28 4B 00 00 00 00 00 C4 0C 4A [15:57:21]RasterBufferAndPrint [15:57:21]line [15:57:21]line [15:57:21]line [15:57:21]line [15:57:21]line [15:57:21]written 0, free lines is 3273 [15:57:21]MH_Cut [15:57:21]Write to MH i2c: D1 01 00 2F 4B 01 4C [15:57:21]Write i2c OK [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: D1 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: D1 01 00 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: D1 01 00 2F 4B 00 4B [15:57:21]Write to MH i2c: 01 00 00 30 4B 7B [15:57:21]Write i2c OK [15:57:21]MH_I2C_Read... [15:57:22]OFD Sender: No OFD packet to send [15:57:22]*** Cut start [15:57:22]*** Partial cut [15:57:22]*** CUTSNS_PIN = 1 [15:57:22]*** CUTSNS_PIN = 0 [15:57:23]*** Brake cut motor [15:57:23]Read from MH i2c: 01 [15:57:23]MH_I2C_Read... [15:57:23]*** Stop cut motor [15:57:23]*** Cut end [15:57:23]Read from MH i2c: 01 07 00 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: 01 07 00 30 4B 00 00 00 00 00 FF 0F 90 [15:57:23]process_action close_receipt done [15:57:23]requested_data is exist [15:57:23]produce_requested_data [15:57:23]requested_item fm.sn is exist - process it [15:57:23]wFMCommunicate request_size=4 [15:57:23]MH_SAM_APDU [15:57:23]CAPDU: 80 11 00 00 [15:57:23]Write to MH i2c: E2 08 00 31 4B 80 11 00 00 00 00 00 00 F6 [15:57:23]Write i2c OK [15:57:23]MH_I2C_Read... [15:57:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:23]Read from MH i2c: E2 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: E2 17 00 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: E2 17 00 31 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 45 [15:57:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:57:23]wFMCommunicate OK [15:57:23]requested_item fd.num is exist - process it [15:57:23]SAM_PROTO_GetFieldsCounters [15:57:23]wFMCommunicate request_size=4 [15:57:23]MH_SAM_APDU [15:57:23]CAPDU: 80 13 00 00 [15:57:23]Write to MH i2c: E2 08 00 32 4B 80 13 00 00 00 00 00 00 F9 [15:57:23]Write i2c OK [15:57:23]MH_I2C_Read... [15:57:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:23]Read from MH i2c: E2 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: E2 62 00 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: E2 62 00 32 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 28 71 00 00 0E 04 04 00 73 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 50 [15: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 28 71 00 00 0E 04 04 00 73 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 [15:57:23]wFMCommunicate OK [15:57:23]SAM_PROTO_GetFieldsCounters done [15:57:23]requested_item shift.num is exist - process it [15:57:23]requested_item shift.opened is exist - process it [15:57:23]req_shift_opened [15:57:23]FM_GetShiftState [15:57:23]SAM_PROTO_GetShiftState [15:57:23]wFMCommunicate request_size=4 [15:57:23]MH_SAM_APDU [15:57:23]CAPDU: 80 13 01 00 [15:57:23]Write to MH i2c: E2 08 00 33 4B 80 13 01 00 00 00 00 00 FB [15:57:23]Write i2c OK [15:57:23]MH_I2C_Read... [15:57:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:23]Read from MH i2c: E2 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: E2 0E 00 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: E2 0E 00 33 4B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 14 [15:57:23]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:57:23]wFMCommunicate OK [15:57:23]SAM_PROTO_GetShiftState done [15:57:23]FM_GetShiftState done [15:57:23]req_shift_opened done [15:57:23]requested_item shift.open_date is exist - process it [15:57:23]req_shift_open_date [15:57:23]req_shift_open_date done [15:57:23]produce_requested_data done [15:57:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28968,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [15:57:23]process_action_free close_receipt [15:57:23]json_value_free [15:57:23]json_value_free done [15:57:23]process_json_proto returns [15:57:23]Send response to host [15:57:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28968,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [15:57:23]free response buf [15:57:23]execute_script done [15:57:23]execute_script returns [15:57:23]free content buf [15:57:23]Sock 9.Close socket [15:57:23]Sock 9.Thread stoped [15:57:25]accept exits with 7 [15:57:25]New connection [15:57:25]New thread 3066785124 created [15:57:25]Thread 3066928484 joined [15:57:25]Waiting for new connection... [15:57:25] Sock 7.Parse request [15:57:25]Sock 7.Check first char [15:57:25]Sock 7.First char is OK [15:57:25]request: POST /json_proto HTTP/1.0 [15:57:25]Method: POST [15:57:25]URL: /json_proto [15:57:25]Method is POST - this is cgi request [15:57:25]url: /json_proto [15:57:25]query_string will be loaded in cgi processing [15:57:25]execute_cgi json_proto POST (null) [15:57:25]execute_cgi path=json_proto method=POST [15:57:25]POST find Content-Length [15:57:25]Host: 172.17.33.3:8080 [15:57:25]Content-Length: 735 [15:57:25]Content-Type: application/json [15:57:25] [15:57:25]POST finish read [15:57:25]Found Content-Length = 735 [15:57:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 28968, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347328", "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" : 72.40, "quantity" : 20.720, "sum" : 1500.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:25]execute_script... [15:57:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 28968, "base_FM": "0000000000963154", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347328", "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" : 72.40, "quantity" : 20.720, "sum" : 1500.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:25]POST & json_proto [15:57:25]process_json_proto [15:57:25]json parsed OK: [15:57:25]protocol is kg_v1.0 [15:57:25]action value=close_receipt [15:57:25]process_action close_receipt [15:57:25]cmd_close_receipt [15:57:25]MH_GetDate [15:57:25]Write to MH i2c: F0 00 00 34 4B 6E [15:57:25]Write i2c OK [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: F0 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: F0 09 00 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: F0 09 00 34 4B 00 6B AB 1A 66 23 5B 8F 65 7F [15:57:25]GetLastDocTimeStamp 1713023844 [15:57:25]current date 1713023851 [15:57:25]FM_GetShiftState [15:57:25]SAM_PROTO_GetShiftState [15:57:25]wFMCommunicate request_size=4 [15:57:25]MH_SAM_APDU [15:57:25]CAPDU: 80 13 01 00 [15:57:25]Write to MH i2c: E2 08 00 35 4B 80 13 01 00 00 00 00 00 FD [15:57:25]Write i2c OK [15:57:25]MH_I2C_Read... [15:57:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:25]Read from MH i2c: E2 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: E2 0E 00 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: E2 0E 00 35 4B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 16 [15:57:25]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:57:25]wFMCommunicate OK [15:57:25]SAM_PROTO_GetShiftState done [15:57:25]FM_GetShiftState done [15:57:25]opened in 1712967615 [15:57:25]opened+sec_in_day 1713054015 [15:57:25]quantity*price = 150012 [15:57:25]sum+1 = 150014 [15:57:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1500.00 НСП 1% : 13.27 НДС 12% : 159.31 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 176 13.04.2024 15:57 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФД осн.: 28968 ФМ осн.: 0000000000963154 ФМ: 0000000000963154 ФД: 28969 ФПД: 228214218090124 1/tax-web-control/client/api/v1/ticket?date=20240413T155731&type=2&operation_type=1&fn_number=0000000000963154&fd_number=28969&fm=228214218090124&tin=02508201610067®Number=0000138879044617&sum=150000 [15:57:27]StoreToDocumentArchive [15:57:27]shift 115 fd 28969 [15:57:27]save to /storage/0115/doc_00028969 [15:57:27]save last doc name /storage/0115/doc_00028969 to /storage/kkm_last_doc_name [15:57:27]save OK [15:57:27]Clear old archive folders... [15:57:27]ProcessDocumentItem done err = 0, tmpTLVsize=276 [15:57:27]tlvbuf is 012146C0 [15:57:27]SAM_PROTO_ClearQueue [15:57:27]wFMCommunicate request_size=4 [15:57:27]MH_SAM_APDU [15:57:27]CAPDU: 80 09 00 00 [15:57:27]Write to MH i2c: E2 08 00 44 4B 80 09 00 00 00 00 00 00 01 [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:27]Read from MH i2c: E2 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 03 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 03 00 44 4B 00 90 00 03 [15:57:27]RAPDU: 90 00 [15:57:27]wFMCommunicate OK [15:57:27]SAM_PROTO_ClearQueue done [15:57:27]KKMCreateOFDPacket [15:57:27]OFDProtocolAddRootSTLVToBuf [15:57:27]FM_MakeSignedData [15:57:27]FM_MakeSignedData [15:57:27]SAM_PROTO_SignData [15:57:27]wFMCommunicate request_size=4 [15:57:27]MH_SAM_APDU [15:57:27]CAPDU: 80 0D 01 02 [15:57:27]Write to MH i2c: E2 08 00 45 4B 80 0D 01 02 00 00 00 00 09 [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:27]Read from MH i2c: E2 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 03 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 03 00 45 4B 00 90 00 04 [15:57:27]RAPDU: 90 00 [15:57:27]wFMCommunicate OK [15:57:27]wFMCommunicate request_size=255 [15:57:27]MH_SAM_APDU [15:57:27]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 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 B0 00 00 00 F4 03 04 00 6B AB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 28 71 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 [15:57:27]Write to MH i2c: E2 02 01 46 4B 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 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 B0 00 00 00 F4 03 04 00 6B AB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 28 71 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 00 00 D6 [15:57:27]OFD Sender: No OFD packet to send [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:27]Read from MH i2c: E2 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 03 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 03 00 46 4B 00 90 00 05 [15:57:27]RAPDU: 90 00 [15:57:27]wFMCommunicate OK [15:57:27]wFMCommunicate request_size=35 [15:57:27]MH_SAM_APDU [15:57:27]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 29 71 00 00 35 04 06 00 CF 8F 43 66 E6 8C [15:57:27]Write to MH i2c: E2 26 00 47 4B 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 29 71 00 00 35 04 06 00 CF 8F 43 66 E6 8C 00 00 0E [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:27]Read from MH i2c: E2 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 03 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 03 00 47 4B 00 90 00 06 [15:57:27]RAPDU: 90 00 [15:57:27]wFMCommunicate OK [15:57:27]wFMCommunicate request_size=4 [15:57:27]MH_SAM_APDU [15:57:27]CAPDU: 80 0D 03 02 [15:57:27]Write to MH i2c: E2 08 00 48 4B 80 0D 03 02 00 00 00 00 0E [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:27]Read from MH i2c: E2 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 0B 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 0B 00 48 4B 00 29 4F EB E8 37 8C 58 8F 90 00 04 [15:57:27]RAPDU: 29 4F EB E8 37 8C 58 8F 90 00 [15:57:27]wFMCommunicate OK [15:57:27]SAM_PROTO_SignData done [15:57:27]FM_MakeSignedData done [15:57:27]CreateOFDProtocolMessage [15:57:27]wFMCommunicate request_size=4 [15:57:27]MH_SAM_APDU [15:57:27]CAPDU: 80 11 00 00 [15:57:27]Write to MH i2c: E2 08 00 49 4B 80 11 00 00 00 00 00 00 0E [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:27]Read from MH i2c: E2 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 17 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 17 00 49 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5D [15:57:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:57:27]wFMCommunicate OK [15:57:27]CreateOFDProtocolMessage done [15:57:27]OFDSenderStorePacket 28969 [15:57:27]StoreOFDPacket docnum=28969 [15:57:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 28 01 00 00 EE 53 20 01 20 1D 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 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 B0 00 00 00 F4 03 04 00 6B AB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 28 71 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 29 71 00 00 35 04 06 00 CF 8F 43 66 E6 8C 29 4F EB E8 37 8C 58 8F [15:57:27]CheckFolder [15:57:27]dirname=/storage/ofd_packets [15:57:27]CheckFolder done [15:57:27]ProducePacketName [15:57:27]name=ofd_packets/00028969 [15:57:27]NVStorageSaveData ofd_packets/00028969 [15:57:27]File name is /storage/ofd_packets/00028969 [15:57:27]Write 326 bytes [15:57:27]NVStorageSaveData done [15:57:27]OFDSenderStorePacket done [15:57:27]KKMCreateOFDPacket done [15:57:27]NVStorageSaveData kkm_last_timestamp [15:57:27]File name is /storage/kkm_last_timestamp [15:57:27]Write 4 bytes [15:57:27]NVStorageSaveData done [15:57:27]ExternCall_PrintAddStr [15:57:27]wPrintStart [15:57:27]Write to MH i2c: 01 00 00 4A 4B 95 [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: 01 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: 01 07 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: 01 07 00 4A 4B 00 00 00 00 00 FF 0F AA [15:57:27]RasterBufferAndPrint [15:57:27]line Счет N : (1)347328 [15:57:27]line ИНН: 02508201610067 [15:57:27]line Контрольно-Кассовый Чек [15:57:27]line ВОЗВРАТ ПРОДАЖИ [15:57:27]line ТРК (МРК, ГНК) : 61 [15:57:27]line Товар: 2710194210 [15:57:27]line ДТ-К-5 [15:57:27]line 20.720 * 72.40 [15:57:27]line = 1500.13 [15:57:27]line НДС 12% НСП 1% [15:57:27]line > о реализуемом товаре [15:57:27]line ОКРУГЛЕНИЕ: -0.13 [15:57:27]line ИТОГО: 1500.00 [15:57:27]line НСП 1% : 13.27 [15:57:27]line НДС 12% : 159.31 [15:57:27]line Наличными: 1500.00 [15:57:27]line Безнал.: 0.00 [15:57:27]line Место: АЗС № 108 "Партнер Нефть" [15:57:27]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [15:57:27]line СНО: Общий режим [15:57:27]line Чек 176 13.04.2024 15:57 [15:57:27]line Смена: 115 ФФД: 1.0 [15:57:27]line ЗНМ: 0300000027 [15:57:27]line РНМ: 0000138879044617 [15:57:27]line Версия ККМ: 001 [15:57:27]line ФД осн.: 28968 [15:57:27]line ФМ осн.: 0000000000963154 [15:57:27]line ФМ: 0000000000963154 [15:57:27]line ФД: 28969 [15:57:27]line ФПД: 228214218090124 [15:57:27]line 1/tax-web-control/client/api/v1/ticket?date=20240413T155731&type=2&operation_type=1&fn_number=0000000000963154&fd_number=28969&fm=228214218090124&tin=02508201610067®Number=0000138879044617&sum=150000 [15:57:27]OFD Sender: Processing packet 28969 [packets to send 8, broken 7] [15:57:27]ProducePacketName [15:57:27]name=ofd_packets/00028969 [15:57:27]OFD Sender: To server: pG, [15:57:27]CommunicateWithHost lk.salyk.kg:30040 [15:57:27]ConnectInit lk.salyk.kg [15:57:27]written 0, free lines is 4095 [15:57:27]Connected sock=10 [15:57:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 28 01 00 00 EE 53 20 01 20 1D 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 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 B0 00 00 00 F4 03 04 00 6B AB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 27 04 04 00 28 71 00 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 29 71 00 00 35 04 06 00 CF 8F 43 66 E6 8C 29 4F EB E8 37 8C 58 8F [15:57:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6A D4 47 00 C6 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 31 35 34 10 04 04 00 29 71 00 00 F4 03 04 00 11 56 1A 66 B6 04 01 00 00 6B 3F 13 C7 DD 4A 0C 24 [15:57:28]CommunicateWithHost err = 0 [15:57:28]CheckOFDResponse [15:57:28]1017 (14) - 77093643461234 [15:57:28]1041 (16) - 0000000000963154 [15:57:28]1040 (4) - 28969 [15:57:28]1012 (4) - 13.04.2024 09:53 [15:57:28]1206 (1) - 0 [15:57:28]OFD Sender: Remove packet 28969 [15:57:28]ProducePacketName [15:57:28]name=ofd_packets/00028969 [15:57:28]NVStorageDeleteData [15:57:28]Write to MH i2c: 01 00 00 74 4B BF [15:57:28]Write i2c OK [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: 01 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: 01 07 00 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: 01 07 00 74 4B 00 00 00 00 00 CA 0C 9C [15:57:28]RasterBufferAndPrint [15:57:28]line [15:57:28]line [15:57:28]line [15:57:28]line [15:57:28]line [15:57:28]written 0, free lines is 3288 [15:57:28]MH_Cut [15:57:28]Write to MH i2c: D1 01 00 7B 4B 01 98 [15:57:28]Write i2c OK [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: D1 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: D1 01 00 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: D1 01 00 7B 4B 00 97 [15:57:28]Write to MH i2c: 01 00 00 7C 4B C7 [15:57:28]Write i2c OK [15:57:28]MH_I2C_Read... [15:57:28]OFD Sender: No OFD packet to send [15:57:29]*** Cut start [15:57:29]*** Partial cut [15:57:29]*** CUTSNS_PIN = 1 [15:57:29]*** CUTSNS_PIN = 0 [15:57:29]*** Brake cut motor [15:57:29]Read from MH i2c: 01 [15:57:29]MH_I2C_Read... [15:57:29]*** Stop cut motor [15:57:29]*** Cut end [15:57:29]Read from MH i2c: 01 07 00 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: 01 07 00 7C 4B 00 00 00 00 00 FF 0F DC [15:57:29]process_action close_receipt done [15:57:29]requested_data is exist [15:57:29]produce_requested_data [15:57:29]requested_item fm.sn is exist - process it [15:57:29]wFMCommunicate request_size=4 [15:57:29]MH_SAM_APDU [15:57:29]CAPDU: 80 11 00 00 [15:57:29]Write to MH i2c: E2 08 00 7D 4B 80 11 00 00 00 00 00 00 42 [15:57:29]Write i2c OK [15:57:29]MH_I2C_Read... [15:57:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:29]Read from MH i2c: E2 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: E2 17 00 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: E2 17 00 7D 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 91 [15:57:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:57:29]wFMCommunicate OK [15:57:29]requested_item fd.num is exist - process it [15:57:29]SAM_PROTO_GetFieldsCounters [15:57:29]wFMCommunicate request_size=4 [15:57:29]MH_SAM_APDU [15:57:29]CAPDU: 80 13 00 00 [15:57:29]Write to MH i2c: E2 08 00 7E 4B 80 13 00 00 00 00 00 00 45 [15:57:29]Write i2c OK [15:57:29]MH_I2C_Read... [15:57:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:29]Read from MH i2c: E2 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: E2 62 00 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: E2 62 00 7E 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 29 71 00 00 0E 04 04 00 73 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 A0 [15:57:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 29 71 00 00 0E 04 04 00 73 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 [15:57:29]wFMCommunicate OK [15:57:29]SAM_PROTO_GetFieldsCounters done [15:57:29]requested_item shift.num is exist - process it [15:57:29]requested_item shift.opened is exist - process it [15:57:29]req_shift_opened [15:57:29]FM_GetShiftState [15:57:29]SAM_PROTO_GetShiftState [15:57:29]wFMCommunicate request_size=4 [15:57:29]MH_SAM_APDU [15:57:29]CAPDU: 80 13 01 00 [15:57:29]Write to MH i2c: E2 08 00 7F 4B 80 13 01 00 00 00 00 00 47 [15:57:29]Write i2c OK [15:57:29]MH_I2C_Read... [15:57:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:30]Read from MH i2c: E2 [15:57:30]MH_I2C_Read... [15:57:30]Read from MH i2c: E2 0E 00 [15:57:30]MH_I2C_Read... [15:57:30]Read from MH i2c: E2 0E 00 7F 4B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 60 [15:57:30]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:57:30]wFMCommunicate OK [15:57:30]SAM_PROTO_GetShiftState done [15:57:30]FM_GetShiftState done [15:57:30]req_shift_opened done [15:57:30]requested_item shift.open_date is exist - process it [15:57:30]req_shift_open_date [15:57:30]req_shift_open_date done [15:57:30]produce_requested_data done [15:57:30]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28969,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [15:57:30]process_action_free close_receipt [15:57:30]json_value_free [15:57:30]json_value_free done [15:57:30]process_json_proto returns [15:57:30]Send response to host [15:57:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28969,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [15:57:30]free response buf [15:57:30]execute_script done [15:57:30]execute_script returns [15:57:30]free content buf [15:57:30]Sock 7.Close socket [15:57:30]Sock 7.Thread stoped [15:57:33]OFD Sender: No OFD packet to send [15:57:38]OFD Sender: No OFD packet to send [15:57:43]OFD Sender: No OFD packet to send [15:57:48]OFD Sender: No OFD packet to send [15:57:53]OFD Sender: No OFD packet to send [15:57:58]OFD Sender: No OFD packet to send [15:58:03]OFD Sender: No OFD packet to send [15:58:08]OFD Sender: No OFD packet to send [15:58:13]OFD Sender: No OFD packet to send [15:58:18]OFD Sender: No OFD packet to send [15:58:23]OFD Sender: No OFD packet to send [15:58:28]OFD Sender: No OFD packet to send [15:58:33]OFD Sender: No OFD packet to send [15:58:38]OFD Sender: No OFD packet to send [15:58:43]OFD Sender: No OFD packet to send [15:58:48]OFD Sender: No OFD packet to send [15:58:53]OFD Sender: No OFD packet to send [15:58:58]OFD Sender: No OFD packet to send [15:59:03]OFD Sender: No OFD packet to send [15:59:08]OFD Sender: No OFD packet to send [15:59:13]OFD Sender: No OFD packet to send [15:59:18]OFD Sender: No OFD packet to send [15:59:23]OFD Sender: No OFD packet to send [15:59:28]OFD Sender: No OFD packet to send [15:59:33]OFD Sender: No OFD packet to send [15:59:38]OFD Sender: No OFD packet to send [15:59:43]OFD Sender: No OFD packet to send [15:59:48]OFD Sender: No OFD packet to send [15:59:53]OFD Sender: No OFD packet to send [15:59:56]accept exits with 9 [15:59:56]New connection [15:59:56]New thread 3066928484 created [15:59:56]Thread 3066785124 joined [15:59:56]Waiting for new connection... [15:59:56] Sock 9.Parse request [15:59:56]Sock 9.Check first char [15:59:56]Sock 9.First char is OK [15:59:56]request: POST /json_proto HTTP/1.0 [15:59:56]Method: POST [15:59:56]URL: /json_proto [15:59:56]Method is POST - this is cgi request [15:59:56]url: /json_proto [15:59:56]query_string will be loaded in cgi processing [15:59:56]execute_cgi json_proto POST (null) [15:59:56]execute_cgi path=json_proto method=POST [15:59:56]POST find Content-Length [15:59:56]Host: 172.17.33.3:8080 [15:59:56]Content-Length: 1202 [15:59:56]Content-Type: application/json [15:59:56] [15:59:56]POST finish read [15:59:56]Found Content-Length = 1202 [15:59:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347329\u000A13.04.2024 15:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 5.720 x 72.40\u000A\u0418\u0422\u041E\u0413: 414.13\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65563\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:56]execute_script... [15:59:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347329\u000A13.04.2024 15:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 5.720 x 72.40\u000A\u0418\u0422\u041E\u0413: 414.13\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A65563\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:56]POST & json_proto [15:59:56]process_json_proto [15:59:56]json parsed OK: [15:59:56]protocol is kg_v1.0 [15:59:56]action value=print_text [15:59:56]process_action print_text [15:59:56]cmd_print_text [15:59:56]ExternCall_PrintAddStr [15:59:56]wPrintStart [15:59:56]Write to MH i2c: 01 00 00 80 4B CB [15:59:56]Write i2c OK [15:59:56]MH_I2C_Read... [15:59:56]Read from MH i2c: 01 [15:59:56]MH_I2C_Read... [15:59:56]Read from MH i2c: 01 07 00 [15:59:56]MH_I2C_Read... [15:59:56]Read from MH i2c: 01 07 00 80 4B 00 00 00 00 00 FF 0F E0 [15:59:56]RasterBufferAndPrint [15:59:56]line *****ТОВАРНЫЙ ЧЕК***** [15:59:56]line АЗС 108 [15:59:56]line Партнер нефть [15:59:56]line 02508201610067 [15:59:56]line Кассир : Шадыканова Ж. [15:59:56]line Счет N : (1)347329 [15:59:56]line 13.04.2024 15:41 [15:59:56]line ПРОДАЖА [15:59:56]line ТРК (МРК, ГНК): 51 [15:59:56]line Вид ГСМ : 2710194210 [15:59:56]line ДТ-К-5 [15:59:56]line 5.720 x 72.40 [15:59:56]line ИТОГ: 414.13 [15:59:56]line Тип оплаты: Талоны: Топливная Карта [15:59:56]line 65563 [15:59:56]line ______________________ [15:59:56]line (подпись) [15:59:56]written 0, free lines is 4095 [15:59:56]Write to MH i2c: 01 00 00 95 4B E0 [15:59:56]Write i2c OK [15:59:56]MH_I2C_Read... [15:59:56]Read from MH i2c: 01 [15:59:56]MH_I2C_Read... [15:59:56]Read from MH i2c: 01 07 00 [15:59:56]MH_I2C_Read... [15:59:56]Read from MH i2c: 01 07 00 95 4B 00 00 00 00 00 F1 0D E5 [15:59:56]RasterBufferAndPrint [15:59:56]line [15:59:56]line [15:59:56]line [15:59:56]line [15:59:56]line [15:59:56]written 0, free lines is 3570 [15:59:56]MH_Cut [15:59:56]Write to MH i2c: D1 01 00 9C 4B 01 B9 [15:59:56]Write i2c OK [15:59:56]MH_I2C_Read... [15:59:56]Read from MH i2c: D1 [15:59:56]MH_I2C_Read... [15:59:56]Read from MH i2c: D1 01 00 [15:59:56]MH_I2C_Read... [15:59:56]Read from MH i2c: D1 01 00 9C 4B 00 B8 [15:59:56]Write to MH i2c: 01 00 00 9D 4B E8 [15:59:56]Write i2c OK [15:59:56]MH_I2C_Read... [15:59:57]*** Cut start [15:59:57]*** Partial cut [15:59:57]*** CUTSNS_PIN = 1 [15:59:57]*** CUTSNS_PIN = 0 [15:59:57]*** Brake cut motor [15:59:58]Read from MH i2c: 01 [15:59:58]MH_I2C_Read... [15:59:58]Read from MH i2c: 01 07 00 [15:59:58]MH_I2C_Read... [15:59:58]*** Stop cut motor [15:59:58]*** Cut end [15:59:58]Read from MH i2c: 01 07 00 9D 4B 00 00 00 00 00 FF 0F FD [15:59:58]process_action print_text done [15:59:58]requested_data is exist [15:59:58]produce_requested_data [15:59:58]requested_item fm.sn is exist - process it [15:59:58]wFMCommunicate request_size=4 [15:59:58]MH_SAM_APDU [15:59:58]CAPDU: 80 11 00 00 [15:59:58]Write to MH i2c: E2 08 00 9E 4B 80 11 00 00 00 00 00 00 63 [15:59:58]Write i2c OK [15:59:58]MH_I2C_Read... [15:59:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:58]Read from MH i2c: E2 [15:59:58]MH_I2C_Read... [15:59:58]Read from MH i2c: E2 17 00 [15:59:58]MH_I2C_Read... [15:59:58]Read from MH i2c: E2 17 00 9E 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B2 [15:59:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [15:59:58]wFMCommunicate OK [15:59:58]requested_item fd.num is exist - process it [15:59:58]SAM_PROTO_GetFieldsCounters [15:59:58]wFMCommunicate request_size=4 [15:59:58]MH_SAM_APDU [15:59:58]CAPDU: 80 13 00 00 [15:59:58]Write to MH i2c: E2 08 00 9F 4B 80 13 00 00 00 00 00 00 66 [15:59:58]Write i2c OK [15:59:58]MH_I2C_Read... [15:59:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:58]Read from MH i2c: E2 [15:59:58]MH_I2C_Read... [15:59:58]Read from MH i2c: E2 62 00 [15:59:58]MH_I2C_Read... [15:59:58]Read from MH i2c: E2 62 00 9F 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 29 71 00 00 0E 04 04 00 73 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 C1 [15:59: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 29 71 00 00 0E 04 04 00 73 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 [15:59:58]wFMCommunicate OK [15:59:58]SAM_PROTO_GetFieldsCounters done [15:59:58]requested_item shift.num is exist - process it [15:59:58]requested_item shift.opened is exist - process it [15:59:58]req_shift_opened [15:59:58]FM_GetShiftState [15:59:58]SAM_PROTO_GetShiftState [15:59:58]wFMCommunicate request_size=4 [15:59:58]MH_SAM_APDU [15:59:58]CAPDU: 80 13 01 00 [15:59:58]Write to MH i2c: E2 08 00 A0 4B 80 13 01 00 00 00 00 00 68 [15:59:58]Write i2c OK [15:59:58]MH_I2C_Read... [15:59:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:58]Read from MH i2c: E2 [15:59:58]MH_I2C_Read... [15:59:58]Read from MH i2c: E2 0E 00 [15:59:58]MH_I2C_Read... [15:59:58]Read from MH i2c: E2 0E 00 A0 4B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 81 [15:59:58]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [15:59:58]wFMCommunicate OK [15:59:58]SAM_PROTO_GetShiftState done [15:59:58]FM_GetShiftState done [15:59:58]req_shift_opened done [15:59:58]requested_item shift.open_date is exist - process it [15:59:58]req_shift_open_date [15:59:58]req_shift_open_date done [15:59:58]produce_requested_data done [15:59:58]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28969,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [15:59:58]process_action_free print_text [15:59:58]json_value_free [15:59:58]json_value_free done [15:59:58]process_json_proto returns [15:59:58]Send response to host [15:59:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28969,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [15:59:58]free response buf [15:59:58]execute_script done [15:59:58]execute_script returns [15:59:58]free content buf [15:59:58]Sock 9.Close socket [15:59:58]Sock 9.Thread stoped [15:59:58]OFD Sender: No OFD packet to send [16:00:03]OFD Sender: No OFD packet to send [16:00:08]OFD Sender: No OFD packet to send [16:00:13]OFD Sender: No OFD packet to send [16:00:18]OFD Sender: No OFD packet to send [16:00:23]OFD Sender: No OFD packet to send [16:00:28]OFD Sender: No OFD packet to send [16:00:33]OFD Sender: No OFD packet to send [16:00:38]OFD Sender: No OFD packet to send [16:00:42]accept exits with 7 [16:00:42]New connection [16:00:42]New thread 3066785124 created [16:00:42]Thread 3066928484 joined [16:00:42]Waiting for new connection... [16:00:42] Sock 7.Parse request [16:00:42]Sock 7.Check first char [16:00:42]Sock 7.First char is OK [16:00:42]request: POST /json_proto HTTP/1.0 [16:00:42]Method: POST [16:00:42]URL: /json_proto [16:00:42]Method is POST - this is cgi request [16:00:42]url: /json_proto [16:00:42]query_string will be loaded in cgi processing [16:00:42]execute_cgi json_proto POST (null) [16:00:42]execute_cgi path=json_proto method=POST [16:00:42]POST find Content-Length [16:00:42]Host: 172.17.33.3:8080 [16:00:42]Content-Length: 674 [16:00:42]Content-Type: application/json [16:00:42] [16:00:42]POST finish read [16:00:42]Found Content-Length = 674 [16:00:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347330", "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" : 72.40, "quantity" : 4.540, "sum" : 328.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 328.00, "total" : 328.00, "payments": [ { "type": 0, "sum" : 328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:42]execute_script... [16:00: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)347330", "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" : 72.40, "quantity" : 4.540, "sum" : 328.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 328.00, "total" : 328.00, "payments": [ { "type": 0, "sum" : 328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:42]POST & json_proto [16:00:42]process_json_proto [16:00:42]json parsed OK: [16:00:42]protocol is kg_v1.0 [16:00:42]action value=close_receipt [16:00:42]process_action close_receipt [16:00:42]cmd_close_receipt [16:00:42]MH_GetDate [16:00:42]Write to MH i2c: F0 00 00 A1 4B DB [16:00:42]Write i2c OK [16:00:42]MH_I2C_Read... [16:00:42]Read from MH i2c: F0 [16:00:42]MH_I2C_Read... [16:00:42]Read from MH i2c: F0 09 00 [16:00:42]MH_I2C_Read... [16:00:42]Read from MH i2c: F0 09 00 A1 4B 00 2F AC 1A 66 23 5B 8F 65 B1 [16:00:42]GetLastDocTimeStamp 1713023851 [16:00:42]current date 1713024047 [16:00:42]FM_GetShiftState [16:00:42]SAM_PROTO_GetShiftState [16:00:42]wFMCommunicate request_size=4 [16:00:42]MH_SAM_APDU [16:00:42]CAPDU: 80 13 01 00 [16:00:42]Write to MH i2c: E2 08 00 A2 4B 80 13 01 00 00 00 00 00 6A [16:00:42]Write i2c OK [16:00:42]MH_I2C_Read... [16:00:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:42]Read from MH i2c: E2 [16:00:42]MH_I2C_Read... [16:00:42]Read from MH i2c: E2 0E 00 [16:00:42]MH_I2C_Read... [16:00:42]Read from MH i2c: E2 0E 00 A2 4B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 83 [16:00:42]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:00:42]wFMCommunicate OK [16:00:42]SAM_PROTO_GetShiftState done [16:00:42]FM_GetShiftState done [16:00:42]opened in 1712967615 [16:00:42]opened+sec_in_day 1713054015 [16:00:42]quantity*price = 32869 [16:00:42]sum+1 = 32871 [16:00:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 328.00 Внесено: 328.00 СДАЧА: 0.00 НСП 1% : 2.91 НДС 12% : 34.91 Наличными: 328.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 177 13.04.2024 16:00 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28970 ФПД: 138383252563219 1/tax-web-control/client/api/v1/ticket?date=20240413T160047&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28970&fm=138383252563219&tin=02508201610067®Number=0000138879044617&sum=32800 [16:00:43]StoreToDocumentArchive [16:00:43]shift 115 fd 28970 [16:00:43]save to /storage/0115/doc_00028970 [16:00:43]save last doc name /storage/0115/doc_00028970 to /storage/kkm_last_doc_name [16:00:43]save OK [16:00:43]Clear old archive folders... [16:00:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:00:43]tlvbuf is 012A48B0 [16:00:43]SAM_PROTO_ClearQueue [16:00:43]wFMCommunicate request_size=4 [16:00:43]MH_SAM_APDU [16:00:43]CAPDU: 80 09 00 00 [16:00:43]Write to MH i2c: E2 08 00 AF 4B 80 09 00 00 00 00 00 00 6C [16:00:43]Write i2c OK [16:00:43]MH_I2C_Read... [16:00:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:43]Read from MH i2c: E2 [16:00:43]MH_I2C_Read... [16:00:43]Read from MH i2c: E2 03 00 [16:00:43]MH_I2C_Read... [16:00:43]Read from MH i2c: E2 03 00 AF 4B 00 90 00 6E [16:00:43]RAPDU: 90 00 [16:00:43]wFMCommunicate OK [16:00:43]SAM_PROTO_ClearQueue done [16:00:43]KKMCreateOFDPacket [16:00:43]OFDProtocolAddRootSTLVToBuf [16:00:43]FM_MakeSignedData [16:00:43]FM_MakeSignedData [16:00:43]SAM_PROTO_SignData [16:00:43]wFMCommunicate request_size=4 [16:00:43]MH_SAM_APDU [16:00:43]CAPDU: 80 0D 01 02 [16:00:43]Write to MH i2c: E2 08 00 B0 4B 80 0D 01 02 00 00 00 00 74 [16:00:43]Write i2c OK [16:00:43]MH_I2C_Read... [16:00:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:43]Read from MH i2c: E2 [16:00:43]MH_I2C_Read... [16:00:43]Read from MH i2c: E2 03 00 [16:00:43]MH_I2C_Read... [16:00:43]Read from MH i2c: E2 03 00 B0 4B 00 90 00 6F [16:00:43]RAPDU: 90 00 [16:00:43]wFMCommunicate OK [16:00:43]wFMCommunicate request_size=255 [16:00:43]MH_SAM_APDU [16:00: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 BC 11 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 66 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 0D 00 00 00 00 07 04 06 00 20 80 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 2F AC 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2A 71 00 00 35 04 06 00 7D DB DC 9C [16:00:43]Write to MH i2c: E2 02 01 B1 4B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC 11 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 66 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 0D 00 00 00 00 07 04 06 00 20 80 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 2F AC 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2A 71 00 00 35 04 06 00 7D DB DC 9C 00 00 03 [16:00:43]Write i2c OK [16:00:43]MH_I2C_Read... [16:00:43]OFD Sender: No OFD packet to send [16:00:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:44]Read from MH i2c: E2 [16:00:44]MH_I2C_Read... [16:00:44]Read from MH i2c: E2 03 00 [16:00:44]MH_I2C_Read... [16:00:44]Read from MH i2c: E2 03 00 B1 4B 00 90 00 70 [16:00:44]RAPDU: 90 00 [16:00:44]wFMCommunicate OK [16:00:44]wFMCommunicate request_size=7 [16:00:44]MH_SAM_APDU [16:00:44]CAPDU: 80 0D 02 02 02 A5 13 [16:00:44]Write to MH i2c: E2 0A 00 B2 4B 80 0D 02 02 02 00 A5 13 00 00 33 [16:00:44]Write i2c OK [16:00:44]MH_I2C_Read... [16:00:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:44]Read from MH i2c: E2 [16:00:44]MH_I2C_Read... [16:00:44]Read from MH i2c: E2 03 00 [16:00:44]MH_I2C_Read... [16:00:44]Read from MH i2c: E2 03 00 B2 4B 00 90 00 71 [16:00:44]RAPDU: 90 00 [16:00:44]wFMCommunicate OK [16:00:44]wFMCommunicate request_size=4 [16:00:44]MH_SAM_APDU [16:00:44]CAPDU: 80 0D 03 02 [16:00:44]Write to MH i2c: E2 08 00 B3 4B 80 0D 03 02 00 00 00 00 79 [16:00:44]Write i2c OK [16:00:44]MH_I2C_Read... [16:00:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:44]Read from MH i2c: E2 [16:00:44]MH_I2C_Read... [16:00:44]Read from MH i2c: E2 0B 00 [16:00:44]MH_I2C_Read... [16:00:44]Read from MH i2c: E2 0B 00 B3 4B 00 2A C3 1F DB 3D 56 89 A9 90 00 26 [16:00:44]RAPDU: 2A C3 1F DB 3D 56 89 A9 90 00 [16:00:44]wFMCommunicate OK [16:00:44]SAM_PROTO_SignData done [16:00:44]FM_MakeSignedData done [16:00:44]CreateOFDProtocolMessage [16:00:44]wFMCommunicate request_size=4 [16:00:44]MH_SAM_APDU [16:00:44]CAPDU: 80 11 00 00 [16:00:44]Write to MH i2c: E2 08 00 B4 4B 80 11 00 00 00 00 00 00 79 [16:00:44]Write i2c OK [16:00:44]MH_I2C_Read... [16:00:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:44]Read from MH i2c: E2 [16:00:44]MH_I2C_Read... [16:00:44]Read from MH i2c: E2 17 00 [16:00:44]MH_I2C_Read... [16:00:44]Read from MH i2c: E2 17 00 B4 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C8 [16:00:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:00:44]wFMCommunicate OK [16:00:44]CreateOFDProtocolMessage done [16:00:44]OFDSenderStorePacket 28970 [16:00:44]StoreOFDPacket docnum=28970 [16:00:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 92 A2 04 01 52 1F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC 11 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 66 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 0D 00 00 00 00 07 04 06 00 20 80 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 2F AC 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2A 71 00 00 35 04 06 00 7D DB DC 9C A5 13 2A C3 1F DB 3D 56 89 A9 [16:00:44]CheckFolder [16:00:44]dirname=/storage/ofd_packets [16:00:44]CheckFolder done [16:00:44]ProducePacketName [16:00:44]name=ofd_packets/00028970 [16:00:44]NVStorageSaveData ofd_packets/00028970 [16:00:44]File name is /storage/ofd_packets/00028970 [16:00:44]Write 298 bytes [16:00:44]NVStorageSaveData done [16:00:44]OFDSenderStorePacket done [16:00:44]KKMCreateOFDPacket done [16:00:44]NVStorageSaveData kkm_last_timestamp [16:00:44]File name is /storage/kkm_last_timestamp [16:00:44]Write 4 bytes [16:00:44]NVStorageSaveData done [16:00:44]ExternCall_PrintAddStr [16:00:44]wPrintStart [16:00:44]Write to MH i2c: 01 00 00 B5 4B 00 [16:00:44]Write i2c OK [16:00:44]MH_I2C_Read... [16:00:44]Read from MH i2c: 01 [16:00:44]MH_I2C_Read... [16:00:44]Read from MH i2c: 01 07 00 [16:00:44]MH_I2C_Read... [16:00:44]Read from MH i2c: 01 07 00 B5 4B 00 00 00 00 00 FF 0F 15 [16:00:44]RasterBufferAndPrint [16:00:44]line Счет N : (1)347330 [16:00:44]line ИНН: 02508201610067 [16:00:44]line Контрольно-Кассовый Чек [16:00:44]line ПРОДАЖА [16:00:44]line ТРК (МРК, ГНК) : 51 [16:00:44]line Товар: 2710194210 [16:00:44]line ДТ-К-5 [16:00:44]line 4.540 * 72.40 [16:00:44]line = 328.70 [16:00:44]line НДС 12% НСП 1% [16:00:44]line > о реализуемом товаре [16:00:44]line ОКРУГЛЕНИЕ: -0.70 [16:00:44]line ИТОГО: 328.00 [16:00:44]line Внесено: 328.00 [16:00:44]line СДАЧА: 0.00 [16:00:44]line НСП 1% : 2.91 [16:00:44]line НДС 12% : 34.91 [16:00:44]line Наличными: 328.00 [16:00:44]line Безнал.: 0.00 [16:00:44]line Место: АЗС № 108 "Партнер Нефть" [16:00:44]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:00:44]line СНО: Общий режим [16:00:44]line Чек 177 13.04.2024 16:00 [16:00:44]line Смена: 115 ФФД: 1.0 [16:00:44]line ЗНМ: 0300000027 [16:00:44]line РНМ: 0000138879044617 [16:00:44]line Версия ККМ: 001 [16:00:44]line ФМ: 0000000000963154 [16:00:44]line ФД: 28970 [16:00:44]line ФПД: 138383252563219 [16:00:44]line 1/tax-web-control/client/api/v1/ticket?date=20240413T160047&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28970&fm=138383252563219&tin=02508201610067®Number=0000138879044617&sum=32800 [16:00:44]OFD Sender: Processing packet 28970 [packets to send 8, broken 7] [16:00:44]ProducePacketName [16:00:44]name=ofd_packets/00028970 [16:00:44]OFD Sender: To server: pG, [16:00:44]CommunicateWithHost lk.salyk.kg:30040 [16:00:44]ConnectInit lk.salyk.kg [16:00:44]written 0, free lines is 4095 [16:00:44]Connected sock=10 [16:00: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 31 35 34 0C 01 00 00 92 A2 04 01 52 1F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC 11 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 66 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 0D 00 00 00 00 07 04 06 00 20 80 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 2F AC 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2A 71 00 00 35 04 06 00 7D DB DC 9C A5 13 2A C3 1F DB 3D 56 89 A9 [16:00:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C7 58 47 00 C9 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 31 35 34 10 04 04 00 2A 71 00 00 F4 03 04 00 D6 56 1A 66 B6 04 01 00 00 CA EA 61 B9 A7 6A A3 0E [16:00:44]CommunicateWithHost err = 0 [16:00:44]CheckOFDResponse [16:00:44]1017 (14) - 77093643461234 [16:00:44]1041 (16) - 0000000000963154 [16:00:44]1040 (4) - 28970 [16:00:44]1012 (4) - 13.04.2024 09:56 [16:00:44]1206 (1) - 0 [16:00:44]OFD Sender: Remove packet 28970 [16:00:44]ProducePacketName [16:00:44]name=ofd_packets/00028970 [16:00:44]NVStorageDeleteData [16:00:44]Write to MH i2c: 01 00 00 DF 4B 2A [16:00:44]Write i2c OK [16:00:44]MH_I2C_Read... [16:00:44]Read from MH i2c: 01 [16:00:44]MH_I2C_Read... [16:00:44]Read from MH i2c: 01 07 00 [16:00:44]MH_I2C_Read... [16:00:44]Read from MH i2c: 01 07 00 DF 4B 00 00 00 00 00 C9 0C 06 [16:00:44]RasterBufferAndPrint [16:00:44]line [16:00:44]line [16:00:44]line [16:00:44]line [16:00:44]line [16:00:44]written 0, free lines is 3276 [16:00:44]MH_Cut [16:00:44]Write to MH i2c: D1 01 00 E6 4B 01 03 [16:00:44]Write i2c OK [16:00:44]MH_I2C_Read... [16:00:44]Read from MH i2c: D1 [16:00:44]MH_I2C_Read... [16:00:44]Read from MH i2c: D1 01 00 [16:00:44]MH_I2C_Read... [16:00:44]Read from MH i2c: D1 01 00 E6 4B 00 02 [16:00:44]Write to MH i2c: 01 00 00 E7 4B 32 [16:00:44]Write i2c OK [16:00:44]MH_I2C_Read... [16:00:45]OFD Sender: No OFD packet to send [16:00:45]*** Cut start [16:00:45]*** Partial cut [16:00:45]*** CUTSNS_PIN = 1 [16:00:45]*** CUTSNS_PIN = 0 [16:00:45]*** Brake cut motor [16:00:46]Read from MH i2c: 01 [16:00:46]MH_I2C_Read... [16:00:46]*** Stop cut motor [16:00:46]*** Cut end [16:00:46]Read from MH i2c: 01 07 00 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: 01 07 00 E7 4B 00 00 00 00 00 FF 0F 47 [16:00:46]process_action close_receipt done [16:00:46]requested_data is exist [16:00:46]produce_requested_data [16:00:46]requested_item fm.sn is exist - process it [16:00:46]wFMCommunicate request_size=4 [16:00:46]MH_SAM_APDU [16:00:46]CAPDU: 80 11 00 00 [16:00:46]Write to MH i2c: E2 08 00 E8 4B 80 11 00 00 00 00 00 00 AD [16:00:46]Write i2c OK [16:00:46]MH_I2C_Read... [16:00:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:46]Read from MH i2c: E2 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: E2 17 00 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: E2 17 00 E8 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FC [16:00:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:00:46]wFMCommunicate OK [16:00:46]requested_item fd.num is exist - process it [16:00:46]SAM_PROTO_GetFieldsCounters [16:00:46]wFMCommunicate request_size=4 [16:00:46]MH_SAM_APDU [16:00:46]CAPDU: 80 13 00 00 [16:00:46]Write to MH i2c: E2 08 00 E9 4B 80 13 00 00 00 00 00 00 B0 [16:00:46]Write i2c OK [16:00:46]MH_I2C_Read... [16:00:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:46]Read from MH i2c: E2 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: E2 62 00 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: E2 62 00 E9 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2A 71 00 00 0E 04 04 00 73 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 0F [16:00: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2A 71 00 00 0E 04 04 00 73 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 [16:00:46]wFMCommunicate OK [16:00:46]SAM_PROTO_GetFieldsCounters done [16:00:46]requested_item shift.num is exist - process it [16:00:46]requested_item shift.opened is exist - process it [16:00:46]req_shift_opened [16:00:46]FM_GetShiftState [16:00:46]SAM_PROTO_GetShiftState [16:00:46]wFMCommunicate request_size=4 [16:00:46]MH_SAM_APDU [16:00:46]CAPDU: 80 13 01 00 [16:00:46]Write to MH i2c: E2 08 00 EA 4B 80 13 01 00 00 00 00 00 B2 [16:00:46]Write i2c OK [16:00:46]MH_I2C_Read... [16:00:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:46]Read from MH i2c: E2 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: E2 0E 00 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: E2 0E 00 EA 4B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 CB [16:00:46]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:00:46]wFMCommunicate OK [16:00:46]SAM_PROTO_GetShiftState done [16:00:46]FM_GetShiftState done [16:00:46]req_shift_opened done [16:00:46]requested_item shift.open_date is exist - process it [16:00:46]req_shift_open_date [16:00:46]req_shift_open_date done [16:00:46]produce_requested_data done [16:00:46]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28970,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [16:00:46]process_action_free close_receipt [16:00:46]json_value_free [16:00:46]json_value_free done [16:00:46]process_json_proto returns [16:00:46]Send response to host [16:00:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28970,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [16:00:46]free response buf [16:00:46]execute_script done [16:00:46]execute_script returns [16:00:46]free content buf [16:00:46]Sock 7.Close socket [16:00:46]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [16:02:45]OFD Sender: No OFD packet to send [16:02:50]OFD Sender: No OFD packet to send [16:02:55]OFD Sender: No OFD packet to send [16:03:00]OFD Sender: No OFD packet to send [16:03:05]OFD Sender: No OFD packet to send [16:03:10]OFD Sender: No OFD packet to send [16:03:15]OFD Sender: No OFD packet to send [16:03:20]OFD Sender: No OFD packet to send [16:03:25]OFD Sender: No OFD packet to send [16:03:30]OFD Sender: No OFD packet to send [16:03:35]OFD Sender: No OFD packet to send [16:03:40]OFD Sender: No OFD packet to send [16:03:45]OFD Sender: No OFD packet to send [16:03:50]OFD Sender: No OFD packet to send [16:03:55]OFD Sender: No OFD packet to send [16:04:00]OFD Sender: No OFD packet to send [16:04:05]OFD Sender: No OFD packet to send [16:04:10]OFD Sender: No OFD packet to send [16:04:15]OFD Sender: No OFD packet to send [16:04:20]OFD Sender: No OFD packet to send [16:04:25]OFD Sender: No OFD packet to send [16:04:30]OFD Sender: No OFD packet to send [16:04:35]OFD Sender: No OFD packet to send [16:04:40]OFD Sender: No OFD packet to send [16:04:45]OFD Sender: No OFD packet to send [16:04:50]OFD Sender: No OFD packet to send [16:04:55]OFD Sender: No OFD packet to send [16:05:00]OFD Sender: No OFD packet to send [16:05:05]OFD Sender: No OFD packet to send [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]accept exits with 9 [16:06:10]New connection [16:06:10]New thread 3066928484 created [16:06:10]Thread 3066785124 joined [16:06:10]Waiting for new connection... [16:06:10] Sock 9.Parse request [16:06:10]Sock 9.Check first char [16:06:10]Sock 9.First char is OK [16:06:10]request: POST /json_proto HTTP/1.0 [16:06:10]Method: POST [16:06:10]URL: /json_proto [16:06:10]Method is POST - this is cgi request [16:06:10]url: /json_proto [16:06:10]query_string will be loaded in cgi processing [16:06:10]execute_cgi json_proto POST (null) [16:06:10]execute_cgi path=json_proto method=POST [16:06:10]POST find Content-Length [16:06:10]Host: 172.17.33.3:8080 [16:06:10]Content-Length: 836 [16:06:10]Content-Type: application/json [16:06:10] [16:06:10]POST finish read [16:06:10]Found Content-Length = 836 [16:06:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 59.180, "sum" : 3864.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3864.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:10]execute_script... [16:06:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 59.180, "sum" : 3864.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3864.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:10]POST & json_proto [16:06:10]process_json_proto [16:06:10]json parsed OK: [16:06:10]protocol is kg_v1.0 [16:06:10]action value=close_receipt [16:06:10]process_action close_receipt [16:06:10]cmd_close_receipt [16:06:10]MH_GetDate [16:06:10]Write to MH i2c: F0 00 00 EB 4B 25 [16:06:10]Write i2c OK [16:06:10]MH_I2C_Read... [16:06:10]Read from MH i2c: F0 [16:06:10]MH_I2C_Read... [16:06:10]Read from MH i2c: F0 09 00 [16:06:10]MH_I2C_Read... [16:06:10]Read from MH i2c: F0 09 00 EB 4B 00 77 AD 1A 66 23 5B 8F 65 44 [16:06:10]GetLastDocTimeStamp 1713024047 [16:06:10]current date 1713024375 [16:06:10]FM_GetShiftState [16:06:10]SAM_PROTO_GetShiftState [16:06:10]wFMCommunicate request_size=4 [16:06:10]MH_SAM_APDU [16:06:10]CAPDU: 80 13 01 00 [16:06:10]Write to MH i2c: E2 08 00 EC 4B 80 13 01 00 00 00 00 00 B4 [16:06:10]Write i2c OK [16:06:10]MH_I2C_Read... [16:06:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:10]Read from MH i2c: E2 [16:06:10]MH_I2C_Read... [16:06:10]Read from MH i2c: E2 0E 00 [16:06:10]MH_I2C_Read... [16:06:10]Read from MH i2c: E2 0E 00 EC 4B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 CD [16:06:10]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:06:10]wFMCommunicate OK [16:06:10]SAM_PROTO_GetShiftState done [16:06:10]FM_GetShiftState done [16:06:10]opened in 1712967615 [16:06:10]opened+sec_in_day 1713054015 [16:06:10]quantity*price = 386445 [16:06:10]sum+1 = 386446 [16:06:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3864.45 НСП 1% : 34.20 НДС 12% : 410.38 Наличными: 0.00 Безнал.: 3864.45 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 178 13.04.2024 16:06 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28971 ФПД: 171603517579498 1/tax-web-control/client/api/v1/ticket?date=20240413T160615&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28971&fm=171603517579498&tin=02508201610067®Number=0000138879044617&sum=386445 [16:06:11]StoreToDocumentArchive [16:06:11]shift 115 fd 28971 [16:06:11]save to /storage/0115/doc_00028971 [16:06:11]save last doc name /storage/0115/doc_00028971 to /storage/kkm_last_doc_name [16:06:11]save OK [16:06:11]Clear old archive folders... [16:06:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:06:11]tlvbuf is 0121F890 [16:06:11]SAM_PROTO_ClearQueue [16:06:11]wFMCommunicate request_size=4 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 09 00 00 [16:06:11]Write to MH i2c: E2 08 00 F9 4B 80 09 00 00 00 00 00 00 B6 [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 F9 4B 00 90 00 B8 [16:06:11]RAPDU: 90 00 [16:06:11]wFMCommunicate OK [16:06:11]SAM_PROTO_ClearQueue done [16:06:11]KKMCreateOFDPacket [16:06:11]OFDProtocolAddRootSTLVToBuf [16:06:11]FM_MakeSignedData [16:06:11]FM_MakeSignedData [16:06:11]SAM_PROTO_SignData [16:06:11]wFMCommunicate request_size=4 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 0D 01 02 [16:06:11]Write to MH i2c: E2 08 00 FA 4B 80 0D 01 02 00 00 00 00 BE [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 FA 4B 00 90 00 B9 [16:06:11]RAPDU: 90 00 [16:06:11]wFMCommunicate OK [16:06:11]wFMCommunicate request_size=255 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2C E7 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 8D E5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8D E5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E A0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8D E5 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 77 AD 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2B 71 00 00 35 04 06 00 [16:06:11]Write to MH i2c: E2 02 01 FB 4B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2C E7 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 8D E5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8D E5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E A0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8D E5 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 77 AD 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2B 71 00 00 35 04 06 00 00 00 5E [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 FB 4B 00 90 00 BA [16:06:11]RAPDU: 90 00 [16:06:11]wFMCommunicate OK [16:06:11]wFMCommunicate request_size=11 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 0D 02 02 06 9C 12 8E B5 20 EA [16:06:11]Write to MH i2c: E2 0E 00 FC 4B 80 0D 02 02 06 00 9C 12 8E B5 20 EA 00 00 C8 [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 FC 4B 00 90 00 BB [16:06:11]RAPDU: 90 00 [16:06:11]wFMCommunicate OK [16:06:11]wFMCommunicate request_size=4 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 0D 03 02 [16:06:11]Write to MH i2c: E2 08 00 FD 4B 80 0D 03 02 00 00 00 00 C3 [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 0B 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 0B 00 FD 4B 00 57 99 3B 37 D9 D7 D5 2D 90 00 D8 [16:06:11]RAPDU: 57 99 3B 37 D9 D7 D5 2D 90 00 [16:06:11]wFMCommunicate OK [16:06:11]SAM_PROTO_SignData done [16:06:11]FM_MakeSignedData done [16:06:11]CreateOFDProtocolMessage [16:06:11]wFMCommunicate request_size=4 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 11 00 00 [16:06:11]Write to MH i2c: E2 08 00 FE 4B 80 11 00 00 00 00 00 00 C3 [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 17 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 17 00 FE 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 12 [16:06:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:06:11]wFMCommunicate OK [16:06:11]CreateOFDProtocolMessage done [16:06:11]OFDSenderStorePacket 28971 [16:06:11]StoreOFDPacket docnum=28971 [16:06:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 6C 45 08 01 30 73 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2C E7 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 8D E5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8D E5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E A0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8D E5 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 77 AD 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2B 71 00 00 35 04 06 00 9C 12 8E B5 20 EA 57 99 3B 37 D9 D7 D5 2D [16:06:11]CheckFolder [16:06:11]dirname=/storage/ofd_packets [16:06:11]CheckFolder done [16:06:11]ProducePacketName [16:06:11]name=ofd_packets/00028971 [16:06:11]NVStorageSaveData ofd_packets/00028971 [16:06:11]File name is /storage/ofd_packets/00028971 [16:06:11]Write 302 bytes [16:06:11]NVStorageSaveData done [16:06:11]OFDSenderStorePacket done [16:06:11]KKMCreateOFDPacket done [16:06:11]NVStorageSaveData kkm_last_timestamp [16:06:11]File name is /storage/kkm_last_timestamp [16:06:11]Write 4 bytes [16:06:11]NVStorageSaveData done [16:06:11]ExternCall_PrintAddStr [16:06:11]wPrintStart [16:06:11]Write to MH i2c: 01 00 00 FF 4B 4A [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: 01 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: 01 07 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: 01 07 00 FF 4B 00 00 00 00 00 FF 0F 5F [16:06:11]RasterBufferAndPrint [16:06:11]line Счет N : (1)347331 [16:06:11]line ИНН: 02508201610067 [16:06:11]line Контрольно-Кассовый Чек [16:06:11]line ПРОДАЖА [16:06:11]line ТРК (МРК, ГНК) : 31 [16:06:11]line Товар: 2710124130 [16:06:11]line SUPER-92-К-5 [16:06:11]line 59.180 * 65.30 [16:06:11]line = 3864.45 [16:06:11]line НДС 12% НСП 1% [16:06:11]line > о реализуемом товаре [16:06:11]line ИТОГО: 3864.45 [16:06:11]line НСП 1% : 34.20 [16:06:11]line НДС 12% : 410.38 [16:06:11]line Наличными: 0.00 [16:06:11]line Безнал.: 3864.45 [16:06:11]line Место: АЗС № 108 "Партнер Нефть" [16:06:11]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:06:11]line СНО: Общий режим [16:06:11]line Чек 178 13.04.2024 16:06 [16:06:11]line Смена: 115 ФФД: 1.0 [16:06:11]line ЗНМ: 0300000027 [16:06:11]line РНМ: 0000138879044617 [16:06:11]line Версия ККМ: 001 [16:06:11]line Платежная система: АКБ Кыргызстан [16:06:11]line ФМ: 0000000000963154 [16:06:11]line ФД: 28971 [16:06:11]line ФПД: 171603517579498 [16:06:11]line 1/tax-web-control/client/api/v1/ticket?date=20240413T160615&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28971&fm=171603517579498&tin=02508201610067®Number=0000138879044617&sum=386445 [16:06:12]OFD Sender: Processing packet 28971 [packets to send 8, broken 7] [16:06:12]ProducePacketName [16:06:12]name=ofd_packets/00028971 [16:06:12]OFD Sender: To server: pG, [16:06:12]CommunicateWithHost lk.salyk.kg:30040 [16:06:12]ConnectInit lk.salyk.kg [16:06:12]written 0, free lines is 4095 [16:06:12]Connected sock=10 [16:06:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 6C 45 08 01 30 73 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2C E7 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 8D E5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8D E5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E A0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8D E5 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 77 AD 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2B 71 00 00 35 04 06 00 9C 12 8E B5 20 EA 57 99 3B 37 D9 D7 D5 2D [16:06:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 63 9C 47 00 39 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2B 71 00 00 F4 03 04 00 1E 58 1A 66 B6 04 01 00 00 C2 5C 63 65 AE 75 02 CC [16:06:12]CommunicateWithHost err = 0 [16:06:12]CheckOFDResponse [16:06:12]1017 (14) - 77093643461234 [16:06:12]1041 (16) - 0000000000963154 [16:06:12]1040 (4) - 28971 [16:06:12]1012 (4) - 13.04.2024 10:02 [16:06:12]1206 (1) - 0 [16:06:12]OFD Sender: Remove packet 28971 [16:06:12]ProducePacketName [16:06:12]name=ofd_packets/00028971 [16:06:12]NVStorageDeleteData [16:06:12]Write to MH i2c: 01 00 00 28 4C 74 [16:06:12]Write i2c OK [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: 01 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: 01 07 00 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: 01 07 00 28 4C 00 00 00 00 00 DA 0C 61 [16:06:12]RasterBufferAndPrint [16:06:12]line [16:06:12]line [16:06:12]line [16:06:12]line [16:06:12]line [16:06:12]written 0, free lines is 3297 [16:06:12]MH_Cut [16:06:12]Write to MH i2c: D1 01 00 2F 4C 01 4D [16:06:12]Write i2c OK [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: D1 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: D1 01 00 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: D1 01 00 2F 4C 00 4C [16:06:12]Write to MH i2c: 01 00 00 30 4C 7C [16:06:12]Write i2c OK [16:06:12]MH_I2C_Read... [16:06:12]OFD Sender: No OFD packet to send [16:06:13]*** Cut start [16:06:13]*** Partial cut [16:06:13]*** CUTSNS_PIN = 1 [16:06:13]*** CUTSNS_PIN = 0 [16:06:13]*** Brake cut motor [16:06:13]Read from MH i2c: 01 [16:06:13]MH_I2C_Read... [16:06:13]*** Stop cut motor [16:06:13]*** Cut end [16:06:13]Read from MH i2c: 01 07 00 [16:06:13]MH_I2C_Read... [16:06:13]Read from MH i2c: 01 07 00 30 4C 00 00 00 00 00 FF 0F 91 [16:06:13]process_action close_receipt done [16:06:13]requested_data is exist [16:06:13]produce_requested_data [16:06:13]requested_item fm.sn is exist - process it [16:06:13]wFMCommunicate request_size=4 [16:06:13]MH_SAM_APDU [16:06:13]CAPDU: 80 11 00 00 [16:06:13]Write to MH i2c: E2 08 00 31 4C 80 11 00 00 00 00 00 00 F7 [16:06:13]Write i2c OK [16:06:13]MH_I2C_Read... [16:06:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:14]Read from MH i2c: E2 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: E2 17 00 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: E2 17 00 31 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 46 [16:06:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:06:14]wFMCommunicate OK [16:06:14]requested_item fd.num is exist - process it [16:06:14]SAM_PROTO_GetFieldsCounters [16:06:14]wFMCommunicate request_size=4 [16:06:14]MH_SAM_APDU [16:06:14]CAPDU: 80 13 00 00 [16:06:14]Write to MH i2c: E2 08 00 32 4C 80 13 00 00 00 00 00 00 FA [16:06:14]Write i2c OK [16:06:14]MH_I2C_Read... [16:06:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:14]Read from MH i2c: E2 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: E2 62 00 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: E2 62 00 32 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2B 71 00 00 0E 04 04 00 73 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 5D [16:06:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2B 71 00 00 0E 04 04 00 73 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 [16:06:14]wFMCommunicate OK [16:06:14]SAM_PROTO_GetFieldsCounters done [16:06:14]requested_item shift.num is exist - process it [16:06:14]requested_item shift.opened is exist - process it [16:06:14]req_shift_opened [16:06:14]FM_GetShiftState [16:06:14]SAM_PROTO_GetShiftState [16:06:14]wFMCommunicate request_size=4 [16:06:14]MH_SAM_APDU [16:06:14]CAPDU: 80 13 01 00 [16:06:14]Write to MH i2c: E2 08 00 33 4C 80 13 01 00 00 00 00 00 FC [16:06:14]Write i2c OK [16:06:14]MH_I2C_Read... [16:06:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:14]Read from MH i2c: E2 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: E2 0E 00 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: E2 0E 00 33 4C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 15 [16:06:14]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:06:14]wFMCommunicate OK [16:06:14]SAM_PROTO_GetShiftState done [16:06:14]FM_GetShiftState done [16:06:14]req_shift_opened done [16:06:14]requested_item shift.open_date is exist - process it [16:06:14]req_shift_open_date [16:06:14]req_shift_open_date done [16:06:14]produce_requested_data done [16:06:14]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28971,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [16:06:14]process_action_free close_receipt [16:06:14]json_value_free [16:06:14]json_value_free done [16:06:14]process_json_proto returns [16:06:14]Send response to host [16:06:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28971,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [16:06:14]free response buf [16:06:14]execute_script done [16:06:14]execute_script returns [16:06:14]free content buf [16:06:14]Sock 9.Close socket [16:06:14]Sock 9.Thread stoped [16:06:17]OFD Sender: No OFD packet to send [16:06:22]OFD Sender: No OFD packet to send [16:06:27]OFD Sender: No OFD packet to send [16:06:32]OFD Sender: No OFD packet to send [16:06:37]OFD Sender: No OFD packet to send [16:06:42]OFD Sender: No OFD packet to send [16:06:47]OFD Sender: No OFD packet to send [16:06:52]OFD Sender: No OFD packet to send [16:06:57]OFD Sender: No OFD packet to send [16:07:02]OFD Sender: No OFD packet to send [16:07:07]OFD Sender: No OFD packet to send [16:07:12]OFD Sender: No OFD packet to send [16:07:17]OFD Sender: No OFD packet to send [16:07:22]OFD Sender: No OFD packet to send [16:07:27]OFD Sender: No OFD packet to send [16:07:32]OFD Sender: No OFD packet to send [16:07:37]OFD Sender: No OFD packet to send [16:07:42]OFD Sender: No OFD packet to send [16:07:47]OFD Sender: No OFD packet to send [16:07:52]OFD Sender: No OFD packet to send [16:07:57]OFD Sender: No OFD packet to send [16:08:02]OFD Sender: No OFD packet to send [16:08:07]OFD Sender: No OFD packet to send [16:08:12]OFD Sender: No OFD packet to send [16:08:17]OFD Sender: No OFD packet to send [16:08:22]OFD Sender: No OFD packet to send [16:08:27]OFD Sender: No OFD packet to send [16:08:32]OFD Sender: No OFD packet to send [16:08:38]OFD Sender: No OFD packet to send [16:08:43]OFD Sender: No OFD packet to send [16:08:48]OFD Sender: No OFD packet to send [16:08:53]OFD Sender: No OFD packet to send [16:08:58]OFD Sender: No OFD packet to send [16:08:59]accept exits with 7 [16:08:59]New connection [16:08:59]New thread 3066785124 created [16:08:59]Thread 3066928484 joined [16:08:59]Waiting for new connection... [16:08:59] Sock 7.Parse request [16:08:59]Sock 7.Check first char [16:08:59]Sock 7.First char is OK [16:08:59]request: POST /json_proto HTTP/1.0 [16:08:59]Method: POST [16:08:59]URL: /json_proto [16:08:59]Method is POST - this is cgi request [16:08:59]url: /json_proto [16:08:59]query_string will be loaded in cgi processing [16:08:59]execute_cgi json_proto POST (null) [16:08:59]execute_cgi path=json_proto method=POST [16:08:59]POST find Content-Length [16:08:59]Host: 172.17.33.3:8080 [16:08:59]Content-Length: 846 [16:08:59]Content-Type: application/json [16:08:59] [16:08:59]POST finish read [16:08:59]Found Content-Length = 846 [16:08:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 45.600, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:59]execute_script... [16:08: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)347332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 45.600, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:59]POST & json_proto [16:08:59]process_json_proto [16:08:59]json parsed OK: [16:08:59]protocol is kg_v1.0 [16:08:59]action value=close_receipt [16:08:59]process_action close_receipt [16:08:59]cmd_close_receipt [16:08:59]MH_GetDate [16:08:59]Write to MH i2c: F0 00 00 34 4C 6F [16:08:59]Write i2c OK [16:08:59]MH_I2C_Read... [16:08:59]Read from MH i2c: F0 [16:08:59]MH_I2C_Read... [16:08:59]Read from MH i2c: F0 09 00 [16:08:59]MH_I2C_Read... [16:08:59]Read from MH i2c: F0 09 00 34 4C 00 21 AE 1A 66 23 5B 8F 65 39 [16:08:59]GetLastDocTimeStamp 1713024375 [16:08:59]current date 1713024545 [16:08:59]FM_GetShiftState [16:08:59]SAM_PROTO_GetShiftState [16:08:59]wFMCommunicate request_size=4 [16:08:59]MH_SAM_APDU [16:08:59]CAPDU: 80 13 01 00 [16:08:59]Write to MH i2c: E2 08 00 35 4C 80 13 01 00 00 00 00 00 FE [16:08:59]Write i2c OK [16:08:59]MH_I2C_Read... [16:08:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:59]Read from MH i2c: E2 [16:08:59]MH_I2C_Read... [16:08:59]Read from MH i2c: E2 0E 00 [16:08:59]MH_I2C_Read... [16:08:59]Read from MH i2c: E2 0E 00 35 4C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 17 [16:08:59]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:08:59]wFMCommunicate OK [16:08:59]SAM_PROTO_GetShiftState done [16:08:59]FM_GetShiftState done [16:08:59]opened in 1712967615 [16:08:59]opened+sec_in_day 1713054015 [16:08:59]quantity*price = 150024 [16:08:59]sum+1 = 150025 [16:08:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.24 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 0.00 Безнал.: 1500.24 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 179 13.04.2024 16:09 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28972 ФПД: 257965077458105 1/tax-web-control/client/api/v1/ticket?date=20240413T160905&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28972&fm=257965077458105&tin=02508201610067®Number=0000138879044617&sum=150024 [16:09:01]StoreToDocumentArchive [16:09:01]shift 115 fd 28972 [16:09:01]save to /storage/0115/doc_00028972 [16:09:01]save last doc name /storage/0115/doc_00028972 to /storage/kkm_last_doc_name [16:09:01]save OK [16:09:01]Clear old archive folders... [16:09:01]ProcessDocumentItem done err = 0, tmpTLVsize=250 [16:09:01]tlvbuf is 0121F890 [16:09:01]SAM_PROTO_ClearQueue [16:09:01]wFMCommunicate request_size=4 [16:09:01]MH_SAM_APDU [16:09:01]CAPDU: 80 09 00 00 [16:09:01]Write to MH i2c: E2 08 00 42 4C 80 09 00 00 00 00 00 00 00 [16:09:01]Write i2c OK [16:09:01]MH_I2C_Read... [16:09:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:01]Read from MH i2c: E2 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: E2 03 00 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: E2 03 00 42 4C 00 90 00 02 [16:09:01]RAPDU: 90 00 [16:09:01]wFMCommunicate OK [16:09:01]SAM_PROTO_ClearQueue done [16:09:01]KKMCreateOFDPacket [16:09:01]OFDProtocolAddRootSTLVToBuf [16:09:01]FM_MakeSignedData [16:09:01]FM_MakeSignedData [16:09:01]SAM_PROTO_SignData [16:09:01]wFMCommunicate request_size=4 [16:09:01]MH_SAM_APDU [16:09:01]CAPDU: 80 0D 01 02 [16:09:01]Write to MH i2c: E2 08 00 43 4C 80 0D 01 02 00 00 00 00 08 [16:09:01]Write i2c OK [16:09:01]MH_I2C_Read... [16:09:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:01]Read from MH i2c: E2 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: E2 03 00 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: E2 03 00 43 4C 00 90 00 03 [16:09:01]RAPDU: 90 00 [16:09:01]wFMCommunicate OK [16:09:01]wFMCommunicate request_size=255 [16:09:01]MH_SAM_APDU [16:09: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 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 21 AE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2C 71 00 00 35 04 06 00 EA 9E [16:09:01]Write to MH i2c: E2 02 01 44 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 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 21 AE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2C 71 00 00 35 04 06 00 EA 9E 00 00 DC [16:09:01]Write i2c OK [16:09:01]MH_I2C_Read... [16:09:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:01]Read from MH i2c: E2 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: E2 03 00 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: E2 03 00 44 4C 00 90 00 04 [16:09:01]RAPDU: 90 00 [16:09:01]wFMCommunicate OK [16:09:01]wFMCommunicate request_size=9 [16:09:01]MH_SAM_APDU [16:09:01]CAPDU: 80 0D 02 02 04 2C CE 6C B9 [16:09:01]Write to MH i2c: E2 0C 00 45 4C 80 0D 02 02 04 00 2C CE 6C B9 00 00 32 [16:09:01]Write i2c OK [16:09:01]MH_I2C_Read... [16:09:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:01]Read from MH i2c: E2 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: E2 03 00 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: E2 03 00 45 4C 00 90 00 05 [16:09:01]RAPDU: 90 00 [16:09:01]wFMCommunicate OK [16:09:01]wFMCommunicate request_size=4 [16:09:01]MH_SAM_APDU [16:09:01]CAPDU: 80 0D 03 02 [16:09:01]Write to MH i2c: E2 08 00 46 4C 80 0D 03 02 00 00 00 00 0D [16:09:01]Write i2c OK [16:09:01]MH_I2C_Read... [16:09:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:01]Read from MH i2c: E2 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: E2 0B 00 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: E2 0B 00 46 4C 00 12 8A BC 86 4E 4A 20 94 90 00 38 [16:09:01]RAPDU: 12 8A BC 86 4E 4A 20 94 90 00 [16:09:01]wFMCommunicate OK [16:09:01]SAM_PROTO_SignData done [16:09:01]FM_MakeSignedData done [16:09:01]CreateOFDProtocolMessage [16:09:01]wFMCommunicate request_size=4 [16:09:01]MH_SAM_APDU [16:09:01]CAPDU: 80 11 00 00 [16:09:01]Write to MH i2c: E2 08 00 47 4C 80 11 00 00 00 00 00 00 0D [16:09:01]Write i2c OK [16:09:01]MH_I2C_Read... [16:09:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:01]Read from MH i2c: E2 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: E2 17 00 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: E2 17 00 47 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5C [16:09:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:09:01]wFMCommunicate OK [16:09:01]CreateOFDProtocolMessage done [16:09:01]OFDSenderStorePacket 28972 [16:09:01]StoreOFDPacket docnum=28972 [16:09:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 00 07 06 01 5D 77 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 21 AE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2C 71 00 00 35 04 06 00 EA 9E 2C CE 6C B9 12 8A BC 86 4E 4A 20 94 [16:09:01]CheckFolder [16:09:01]dirname=/storage/ofd_packets [16:09:01]CheckFolder done [16:09:01]ProducePacketName [16:09:01]name=ofd_packets/00028972 [16:09:01]NVStorageSaveData ofd_packets/00028972 [16:09:01]File name is /storage/ofd_packets/00028972 [16:09:01]Write 300 bytes [16:09:01]NVStorageSaveData done [16:09:01]OFDSenderStorePacket done [16:09:01]KKMCreateOFDPacket done [16:09:01]NVStorageSaveData kkm_last_timestamp [16:09:01]File name is /storage/kkm_last_timestamp [16:09:01]Write 4 bytes [16:09:01]NVStorageSaveData done [16:09:01]ExternCall_PrintAddStr [16:09:01]wPrintStart [16:09:01]Write to MH i2c: 01 00 00 48 4C 94 [16:09:01]Write i2c OK [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: 01 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: 01 07 00 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: 01 07 00 48 4C 00 00 00 00 00 FF 0F A9 [16:09:01]RasterBufferAndPrint [16:09:01]line Счет N : (1)347332 [16:09:01]line ИНН: 02508201610067 [16:09:01]line Контрольно-Кассовый Чек [16:09:01]line ПРОДАЖА [16:09:01]line ТРК (МРК, ГНК) : 71 [16:09:01]line Товар: 2711129700 [16:09:01]line ГАЗ-К-5 [16:09:01]line 45.600 * 32.90 [16:09:01]line = 1500.24 [16:09:01]line НДС 12% НСП 1% [16:09:01]line > о реализуемом товаре [16:09:01]line ИТОГО: 1500.24 [16:09:01]line НСП 1% : 13.28 [16:09:01]line НДС 12% : 159.32 [16:09:01]line Наличными: 0.00 [16:09:01]line Безнал.: 1500.24 [16:09:01]line Место: АЗС № 108 "Партнер Нефть" [16:09:01]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:09:01]line СНО: Общий режим [16:09:01]line Чек 179 13.04.2024 16:09 [16:09:01]line Смена: 115 ФФД: 1.0 [16:09:01]line ЗНМ: 0300000027 [16:09:01]line РНМ: 0000138879044617 [16:09:01]line Версия ККМ: 001 [16:09:01]line Платежная система: АКБ Кыргызстан [16:09:01]line ФМ: 0000000000963154 [16:09:01]line ФД: 28972 [16:09:01]line ФПД: 257965077458105 [16:09:01]line 1/tax-web-control/client/api/v1/ticket?date=20240413T160905&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28972&fm=257965077458105&tin=02508201610067®Number=0000138879044617&sum=150024 [16:09:01]OFD Sender: Processing packet 28972 [packets to send 8, broken 7] [16:09:01]ProducePacketName [16:09:01]name=ofd_packets/00028972 [16:09:01]OFD Sender: To server: pG, [16:09:01]CommunicateWithHost lk.salyk.kg:30040 [16:09:01]ConnectInit lk.salyk.kg [16:09:01]written 0, free lines is 4095 [16:09:02]Connected sock=10 [16:09: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 31 35 34 0E 01 00 00 00 07 06 01 5D 77 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 21 AE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2C 71 00 00 35 04 06 00 EA 9E 2C CE 6C B9 12 8A BC 86 4E 4A 20 94 [16:09:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 01 E0 47 00 A4 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2C 71 00 00 F4 03 04 00 C8 58 1A 66 B6 04 01 00 00 A5 00 44 D1 E6 E9 18 CF [16:09:02]CommunicateWithHost err = 0 [16:09:02]CheckOFDResponse [16:09:02]1017 (14) - 77093643461234 [16:09:02]1041 (16) - 0000000000963154 [16:09:02]1040 (4) - 28972 [16:09:02]1012 (4) - 13.04.2024 10:04 [16:09:02]1206 (1) - 0 [16:09:02]OFD Sender: Remove packet 28972 [16:09:02]ProducePacketName [16:09:02]name=ofd_packets/00028972 [16:09:02]NVStorageDeleteData [16:09:02]Write to MH i2c: 01 00 00 71 4C BD [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 71 4C 00 00 00 00 00 DC 0C AC [16:09:02]RasterBufferAndPrint [16:09:02]line [16:09:02]line [16:09:02]line [16:09:02]line [16:09:02]line [16:09:02]written 0, free lines is 3298 [16:09:02]MH_Cut [16:09:02]Write to MH i2c: D1 01 00 78 4C 01 96 [16:09:02]Write i2c OK [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: D1 [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: D1 01 00 [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: D1 01 00 78 4C 00 95 [16:09:02]Write to MH i2c: 01 00 00 79 4C C5 [16:09:02]Write i2c OK [16:09:02]MH_I2C_Read... [16:09:02]OFD Sender: No OFD packet to send [16:09:03]*** Cut start [16:09:03]*** Partial cut [16:09:03]*** CUTSNS_PIN = 1 [16:09:03]*** CUTSNS_PIN = 0 [16:09:03]*** Brake cut motor [16:09:03]Read from MH i2c: 01 [16:09:03]MH_I2C_Read... [16:09:03]*** Stop cut motor [16:09:03]*** Cut end [16:09:03]Read from MH i2c: 01 07 00 [16:09:03]MH_I2C_Read... [16:09:03]Read from MH i2c: 01 07 00 79 4C 00 00 00 00 00 FF 0F DA [16:09:03]process_action close_receipt done [16:09:03]requested_data is exist [16:09:03]produce_requested_data [16:09:03]requested_item fm.sn is exist - process it [16:09:03]wFMCommunicate request_size=4 [16:09:03]MH_SAM_APDU [16:09:03]CAPDU: 80 11 00 00 [16:09:03]Write to MH i2c: E2 08 00 7A 4C 80 11 00 00 00 00 00 00 40 [16:09:03]Write i2c OK [16:09:03]MH_I2C_Read... [16:09:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:03]Read from MH i2c: E2 [16:09:03]MH_I2C_Read... [16:09:03]Read from MH i2c: E2 17 00 [16:09:03]MH_I2C_Read... [16:09:03]Read from MH i2c: E2 17 00 7A 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8F [16:09:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:09:03]wFMCommunicate OK [16:09:03]requested_item fd.num is exist - process it [16:09:03]SAM_PROTO_GetFieldsCounters [16:09:03]wFMCommunicate request_size=4 [16:09:03]MH_SAM_APDU [16:09:03]CAPDU: 80 13 00 00 [16:09:03]Write to MH i2c: E2 08 00 7B 4C 80 13 00 00 00 00 00 00 43 [16:09:03]Write i2c OK [16:09:03]MH_I2C_Read... [16:09:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:04]Read from MH i2c: E2 [16:09:04]MH_I2C_Read... [16:09:04]Read from MH i2c: E2 62 00 [16:09:04]MH_I2C_Read... [16:09:04]Read from MH i2c: E2 62 00 7B 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2C 71 00 00 0E 04 04 00 73 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 AA [16:09: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2C 71 00 00 0E 04 04 00 73 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 [16:09:04]wFMCommunicate OK [16:09:04]SAM_PROTO_GetFieldsCounters done [16:09:04]requested_item shift.num is exist - process it [16:09:04]requested_item shift.opened is exist - process it [16:09:04]req_shift_opened [16:09:04]FM_GetShiftState [16:09:04]SAM_PROTO_GetShiftState [16:09:04]wFMCommunicate request_size=4 [16:09:04]MH_SAM_APDU [16:09:04]CAPDU: 80 13 01 00 [16:09:04]Write to MH i2c: E2 08 00 7C 4C 80 13 01 00 00 00 00 00 45 [16:09:04]Write i2c OK [16:09:04]MH_I2C_Read... [16:09:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:04]Read from MH i2c: E2 [16:09:04]MH_I2C_Read... [16:09:04]Read from MH i2c: E2 0E 00 [16:09:04]MH_I2C_Read... [16:09:04]Read from MH i2c: E2 0E 00 7C 4C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 5E [16:09:04]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:09:04]wFMCommunicate OK [16:09:04]SAM_PROTO_GetShiftState done [16:09:04]FM_GetShiftState done [16:09:04]req_shift_opened done [16:09:04]requested_item shift.open_date is exist - process it [16:09:04]req_shift_open_date [16:09:04]req_shift_open_date done [16:09:04]produce_requested_data done [16:09:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28972,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [16:09:04]process_action_free close_receipt [16:09:04]json_value_free [16:09:04]json_value_free done [16:09:04]process_json_proto returns [16:09:04]Send response to host [16:09:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28972,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [16:09:04]free response buf [16:09:04]execute_script done [16:09:04]execute_script returns [16:09:04]free content buf [16:09:04]Sock 7.Close socket [16:09:04]Sock 7.Thread stoped [16:09:07]OFD Sender: No OFD packet to send [16:09:12]OFD Sender: No OFD packet to send [16:09:17]OFD Sender: No OFD packet to send [16:09:22]OFD Sender: No OFD packet to send [16:09:27]OFD Sender: No OFD packet to send [16:09:32]OFD Sender: No OFD packet to send [16:09:37]OFD Sender: No OFD packet to send [16:09:42]OFD Sender: No OFD packet to send [16:09:47]OFD Sender: No OFD packet to send [16:09:52]OFD Sender: No OFD packet to send [16:09:57]OFD Sender: No OFD packet to send [16:10:02]OFD Sender: No OFD packet to send [16:10:07]OFD Sender: No OFD packet to send [16:10:12]OFD Sender: No OFD packet to send [16:10:17]OFD Sender: No OFD packet to send [16:10:22]OFD Sender: No OFD packet to send [16:10:27]OFD Sender: No OFD packet to send [16:10:32]OFD Sender: No OFD packet to send [16:10:37]OFD Sender: No OFD packet to send [16:10:42]OFD Sender: No OFD packet to send [16:10:47]OFD Sender: No OFD packet to send [16:10:52]OFD Sender: No OFD packet to send [16:10:57]OFD Sender: No OFD packet to send [16:11:02]OFD Sender: No OFD packet to send [16:11:07]OFD Sender: No OFD packet to send [16:11:12]OFD Sender: No OFD packet to send [16:11:17]OFD Sender: No OFD packet to send [16:11:22]OFD Sender: No OFD packet to send [16:11:27]OFD Sender: No OFD packet to send [16:11:32]OFD Sender: No OFD packet to send [16:11:37]OFD Sender: No OFD packet to send [16:11:42]OFD Sender: No OFD packet to send [16:11:47]OFD Sender: No OFD packet to send [16:11:52]OFD Sender: No OFD packet to send [16:11:57]OFD Sender: No OFD packet to send [16:12:02]OFD Sender: No OFD packet to send [16:12:07]OFD Sender: No OFD packet to send [16:12:12]OFD Sender: No OFD packet to send [16:12:17]OFD Sender: No OFD packet to send [16:12:22]OFD Sender: No OFD packet to send [16:12:27]OFD Sender: No OFD packet to send [16:12:32]OFD Sender: No OFD packet to send [16:12:37]OFD Sender: No OFD packet to send [16:12:42]OFD Sender: No OFD packet to send [16:12:47]OFD Sender: No OFD packet to send [16:12:52]OFD Sender: No OFD packet to send [16:12:57]OFD Sender: No OFD packet to send [16:13:02]OFD Sender: No OFD packet to send [16:13:07]OFD Sender: No OFD packet to send [16:13:12]OFD Sender: No OFD packet to send [16:13:17]OFD Sender: No OFD packet to send [16:13:22]OFD Sender: No OFD packet to send [16:13:27]OFD Sender: No OFD packet to send [16:13:32]OFD Sender: No OFD packet to send [16:13:37]OFD Sender: No OFD packet to send [16:13:42]OFD Sender: No OFD packet to send [16:13:47]OFD Sender: No OFD packet to send [16:13:52]OFD Sender: No OFD packet to send [16:13:57]OFD Sender: No OFD packet to send [16:14:02]OFD Sender: No OFD packet to send [16:14:07]OFD Sender: No OFD packet to send [16:14:12]OFD Sender: No OFD packet to send [16:14:17]OFD Sender: No OFD packet to send [16:14:22]OFD Sender: No OFD packet to send [16:14:27]OFD Sender: No OFD packet to send [16:14:32]OFD Sender: No OFD packet to send [16:14:37]OFD Sender: No OFD packet to send [16:14:42]OFD Sender: No OFD packet to send [16:14:47]OFD Sender: No OFD packet to send [16:14:52]OFD Sender: No OFD packet to send [16:14:57]OFD Sender: No OFD packet to send [16:15:02]OFD Sender: No OFD packet to send [16:15:07]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:08]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:18]OFD Sender: No OFD packet to send [16:16:23]OFD Sender: No OFD packet to send [16:16:28]OFD Sender: No OFD packet to send [16:16:33]OFD Sender: No OFD packet to send [16:16:38]OFD Sender: No OFD packet to send [16:16:43]OFD Sender: No OFD packet to send [16:16:48]OFD Sender: No OFD packet to send [16:16:53]OFD Sender: No OFD packet to send [16:16:58]OFD Sender: No OFD packet to send [16:17:03]OFD Sender: No OFD packet to send [16:17:08]OFD Sender: No OFD packet to send [16:17:13]OFD Sender: No OFD packet to send [16:17:18]OFD Sender: No OFD packet to send [16:17:23]OFD Sender: No OFD packet to send [16:17:28]OFD Sender: No OFD packet to send [16:17:33]OFD Sender: No OFD packet to send [16:17:38]OFD Sender: No OFD packet to send [16:17:43]OFD Sender: No OFD packet to send [16:17:48]OFD Sender: No OFD packet to send [16:17:53]OFD Sender: No OFD packet to send [16:17:58]OFD Sender: No OFD packet to send [16:18:03]OFD Sender: No OFD packet to send [16:18:08]OFD Sender: No OFD packet to send [16:18:13]OFD Sender: No OFD packet to send [16:18:18]OFD Sender: No OFD packet to send [16:18:23]OFD Sender: No OFD packet to send [16:18:28]OFD Sender: No OFD packet to send [16:18:33]OFD Sender: No OFD packet to send [16:18:38]OFD Sender: No OFD packet to send [16:18:43]OFD Sender: No OFD packet to send [16:18:48]OFD Sender: No OFD packet to send [16:18:53]OFD Sender: No OFD packet to send [16:18:58]OFD Sender: No OFD packet to send [16:19:03]OFD Sender: No OFD packet to send [16:19:08]OFD Sender: No OFD packet to send [16:19:13]OFD Sender: No OFD packet to send [16:19:18]OFD Sender: No OFD packet to send [16:19:23]OFD Sender: No OFD packet to send [16:19:28]OFD Sender: No OFD packet to send [16:19:33]OFD Sender: No OFD packet to send [16:19:38]OFD Sender: No OFD packet to send [16:19:43]OFD Sender: No OFD packet to send [16:19:48]OFD Sender: No OFD packet to send [16:19:53]OFD Sender: No OFD packet to send [16:19:58]OFD Sender: No OFD packet to send [16:19:59]accept exits with 9 [16:19:59]New connection [16:19:59]New thread 3066928484 created [16:19:59]Thread 3066785124 joined [16:19:59]Waiting for new connection... [16:19:59] Sock 9.Parse request [16:19:59]Sock 9.Check first char [16:19:59]Sock 9.First char is OK [16:19:59]request: POST /json_proto HTTP/1.0 [16:19:59]Method: POST [16:19:59]URL: /json_proto [16:19:59]Method is POST - this is cgi request [16:19:59]url: /json_proto [16:19:59]query_string will be loaded in cgi processing [16:19:59]execute_cgi json_proto POST (null) [16:19:59]execute_cgi path=json_proto method=POST [16:19:59]POST find Content-Length [16:19:59]Host: 172.17.33.3:8080 [16:19:59]Content-Length: 846 [16:19:59]Content-Type: application/json [16:19:59] [16:19:59]POST finish read [16:19:59]Found Content-Length = 846 [16:19:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 48.640, "sum" : 1600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1600.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:59]execute_script... [16:19: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)347334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 48.640, "sum" : 1600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1600.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:59]POST & json_proto [16:19:59]process_json_proto [16:19:59]json parsed OK: [16:19:59]protocol is kg_v1.0 [16:19:59]action value=close_receipt [16:19:59]process_action close_receipt [16:19:59]cmd_close_receipt [16:19:59]MH_GetDate [16:19:59]Write to MH i2c: F0 00 00 7D 4C B8 [16:19:59]Write i2c OK [16:19:59]MH_I2C_Read... [16:19:59]Read from MH i2c: F0 [16:19:59]MH_I2C_Read... [16:19:59]Read from MH i2c: F0 09 00 [16:19:59]MH_I2C_Read... [16:19:59]Read from MH i2c: F0 09 00 7D 4C 00 B4 B0 1A 66 23 5B 8F 65 17 [16:19:59]GetLastDocTimeStamp 1713024545 [16:19:59]current date 1713025204 [16:19:59]FM_GetShiftState [16:19:59]SAM_PROTO_GetShiftState [16:19:59]wFMCommunicate request_size=4 [16:19:59]MH_SAM_APDU [16:19:59]CAPDU: 80 13 01 00 [16:19:59]Write to MH i2c: E2 08 00 7E 4C 80 13 01 00 00 00 00 00 47 [16:19:59]Write i2c OK [16:19:59]MH_I2C_Read... [16:19:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:59]Read from MH i2c: E2 [16:19:59]MH_I2C_Read... [16:19:59]Read from MH i2c: E2 0E 00 [16:19:59]MH_I2C_Read... [16:19:59]Read from MH i2c: E2 0E 00 7E 4C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 60 [16:19:59]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:19:59]wFMCommunicate OK [16:19:59]SAM_PROTO_GetShiftState done [16:19:59]FM_GetShiftState done [16:19:59]opened in 1712967615 [16:19:59]opened+sec_in_day 1713054015 [16:19:59]quantity*price = 160025 [16:19:59]sum+1 = 160027 [16:19:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1600.26 НСП 1% : 14.16 НДС 12% : 169.94 Наличными: 0.00 Безнал.: 1600.26 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 180 13.04.2024 16:20 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28973 ФПД: 67729886846641 1/tax-web-control/client/api/v1/ticket?date=20240413T162004&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28973&fm=67729886846641&tin=02508201610067®Number=0000138879044617&sum=160026 [16:20:00]StoreToDocumentArchive [16:20:00]shift 115 fd 28973 [16:20:00]save to /storage/0115/doc_00028973 [16:20:00]save last doc name /storage/0115/doc_00028973 to /storage/kkm_last_doc_name [16:20:00]save OK [16:20:00]Clear old archive folders... [16:20:00]ProcessDocumentItem done err = 0, tmpTLVsize=250 [16:20:00]tlvbuf is 0121BDA0 [16:20:00]SAM_PROTO_ClearQueue [16:20:00]wFMCommunicate request_size=4 [16:20:00]MH_SAM_APDU [16:20:00]CAPDU: 80 09 00 00 [16:20:00]Write to MH i2c: E2 08 00 8B 4C 80 09 00 00 00 00 00 00 49 [16:20:00]Write i2c OK [16:20:00]MH_I2C_Read... [16:20:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:00]Read from MH i2c: E2 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: E2 03 00 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: E2 03 00 8B 4C 00 90 00 4B [16:20:00]RAPDU: 90 00 [16:20:00]wFMCommunicate OK [16:20:00]SAM_PROTO_ClearQueue done [16:20:00]KKMCreateOFDPacket [16:20:00]OFDProtocolAddRootSTLVToBuf [16:20:00]FM_MakeSignedData [16:20:00]FM_MakeSignedData [16:20:00]SAM_PROTO_SignData [16:20:00]wFMCommunicate request_size=4 [16:20:00]MH_SAM_APDU [16:20:00]CAPDU: 80 0D 01 02 [16:20:00]Write to MH i2c: E2 08 00 8C 4C 80 0D 01 02 00 00 00 00 51 [16:20:00]Write i2c OK [16:20:00]MH_I2C_Read... [16:20:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:00]Read from MH i2c: E2 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: E2 03 00 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: E2 03 00 8C 4C 00 90 00 4C [16:20:00]RAPDU: 90 00 [16:20:00]wFMCommunicate OK [16:20:00]wFMCommunicate request_size=255 [16:20:00]MH_SAM_APDU [16:20: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 35 FF 03 08 00 03 00 BE 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 1A 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1A 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1A 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 B4 B0 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2D 71 00 00 35 04 06 00 3D 99 [16:20:00]Write to MH i2c: E2 02 01 8D 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 35 FF 03 08 00 03 00 BE 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 1A 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1A 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1A 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 B4 B0 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2D 71 00 00 35 04 06 00 3D 99 00 00 23 [16:20:00]Write i2c OK [16:20:00]MH_I2C_Read... [16:20:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:00]Read from MH i2c: E2 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: E2 03 00 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: E2 03 00 8D 4C 00 90 00 4D [16:20:00]RAPDU: 90 00 [16:20:00]wFMCommunicate OK [16:20:00]wFMCommunicate request_size=9 [16:20:00]MH_SAM_APDU [16:20:00]CAPDU: 80 0D 02 02 04 97 D8 9E B1 [16:20:00]Write to MH i2c: E2 0C 00 8E 4C 80 0D 02 02 04 00 97 D8 9E B1 00 00 1A [16:20:00]Write i2c OK [16:20:00]MH_I2C_Read... [16:20:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:00]Read from MH i2c: E2 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: E2 03 00 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: E2 03 00 8E 4C 00 90 00 4E [16:20:00]RAPDU: 90 00 [16:20:00]wFMCommunicate OK [16:20:00]wFMCommunicate request_size=4 [16:20:00]MH_SAM_APDU [16:20:00]CAPDU: 80 0D 03 02 [16:20:00]Write to MH i2c: E2 08 00 8F 4C 80 0D 03 02 00 00 00 00 56 [16:20:00]Write i2c OK [16:20:00]MH_I2C_Read... [16:20:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:00]Read from MH i2c: E2 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: E2 0B 00 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: E2 0B 00 8F 4C 00 AC A6 07 00 D1 D4 D4 92 90 00 BB [16:20:00]RAPDU: AC A6 07 00 D1 D4 D4 92 90 00 [16:20:00]wFMCommunicate OK [16:20:00]SAM_PROTO_SignData done [16:20:00]FM_MakeSignedData done [16:20:00]CreateOFDProtocolMessage [16:20:00]wFMCommunicate request_size=4 [16:20:00]MH_SAM_APDU [16:20:00]CAPDU: 80 11 00 00 [16:20:00]Write to MH i2c: E2 08 00 90 4C 80 11 00 00 00 00 00 00 56 [16:20:00]Write i2c OK [16:20:00]MH_I2C_Read... [16:20:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:00]Read from MH i2c: E2 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: E2 17 00 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: E2 17 00 90 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A5 [16:20:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:20:00]wFMCommunicate OK [16:20:00]CreateOFDProtocolMessage done [16:20:00]OFDSenderStorePacket 28973 [16:20:00]StoreOFDPacket docnum=28973 [16:20:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 43 0F 06 01 AB 88 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 00 BE 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 1A 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1A 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1A 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 B4 B0 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2D 71 00 00 35 04 06 00 3D 99 97 D8 9E B1 AC A6 07 00 D1 D4 D4 92 [16:20:00]CheckFolder [16:20:00]dirname=/storage/ofd_packets [16:20:00]CheckFolder done [16:20:00]ProducePacketName [16:20:00]name=ofd_packets/00028973 [16:20:00]NVStorageSaveData ofd_packets/00028973 [16:20:00]File name is /storage/ofd_packets/00028973 [16:20:00]Write 300 bytes [16:20:00]NVStorageSaveData done [16:20:00]OFDSenderStorePacket done [16:20:00]KKMCreateOFDPacket done [16:20:00]NVStorageSaveData kkm_last_timestamp [16:20:00]File name is /storage/kkm_last_timestamp [16:20:00]Write 4 bytes [16:20:00]NVStorageSaveData done [16:20:00]ExternCall_PrintAddStr [16:20:00]wPrintStart [16:20:00]Write to MH i2c: 01 00 00 91 4C DD [16:20:00]Write i2c OK [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: 01 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: 01 07 00 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: 01 07 00 91 4C 00 00 00 00 00 FF 0F F2 [16:20:00]RasterBufferAndPrint [16:20:00]line Счет N : (1)347334 [16:20:00]line ИНН: 02508201610067 [16:20:00]line Контрольно-Кассовый Чек [16:20:00]line ПРОДАЖА [16:20:00]line ТРК (МРК, ГНК) : 71 [16:20:00]line Товар: 2711129700 [16:20:00]line ГАЗ-К-5 [16:20:00]line 48.640 * 32.90 [16:20:00]line = 1600.26 [16:20:00]line НДС 12% НСП 1% [16:20:00]line > о реализуемом товаре [16:20:00]line ИТОГО: 1600.26 [16:20:00]line НСП 1% : 14.16 [16:20:00]line НДС 12% : 169.94 [16:20:00]line Наличными: 0.00 [16:20:00]line Безнал.: 1600.26 [16:20:00]line Место: АЗС № 108 "Партнер Нефть" [16:20:00]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:20:00]line СНО: Общий режим [16:20:00]line Чек 180 13.04.2024 16:20 [16:20:00]line Смена: 115 ФФД: 1.0 [16:20:00]line ЗНМ: 0300000027 [16:20:00]line РНМ: 0000138879044617 [16:20:00]line Версия ККМ: 001 [16:20:00]line Платежная система: АКБ Кыргызстан [16:20:00]line ФМ: 0000000000963154 [16:20:00]line ФД: 28973 [16:20:00]line ФПД: 67729886846641 [16:20:00]line 1/tax-web-control/client/api/v1/ticket?date=20240413T162004&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28973&fm=67729886846641&tin=02508201610067®Number=0000138879044617&sum=160026 [16:20:01]OFD Sender: Processing packet 28973 [packets to send 8, broken 7] [16:20:01]ProducePacketName [16:20:01]name=ofd_packets/00028973 [16:20:01]OFD Sender: To server: pG, [16:20:01]CommunicateWithHost lk.salyk.kg:30040 [16:20:01]ConnectInit lk.salyk.kg [16:20:01]written 0, free lines is 4095 [16:20:01]Connected sock=10 [16:20: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 31 35 34 0E 01 00 00 43 0F 06 01 AB 88 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 00 BE 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 1A 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1A 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1A 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 B4 B0 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2D 71 00 00 35 04 06 00 3D 99 97 D8 9E B1 AC A6 07 00 D1 D4 D4 92 [16:20:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 35 81 47 00 9B 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 31 35 34 10 04 04 00 2D 71 00 00 F4 03 04 00 5B 5B 1A 66 B6 04 01 00 00 49 25 C1 70 3E 82 B7 F4 [16:20:01]CommunicateWithHost err = 0 [16:20:01]CheckOFDResponse [16:20:01]1017 (14) - 77093643461234 [16:20:01]1041 (16) - 0000000000963154 [16:20:01]1040 (4) - 28973 [16:20:01]1012 (4) - 13.04.2024 10:15 [16:20:01]1206 (1) - 0 [16:20:01]OFD Sender: Remove packet 28973 [16:20:01]ProducePacketName [16:20:01]name=ofd_packets/00028973 [16:20:01]NVStorageDeleteData [16:20:01]Write to MH i2c: 01 00 00 BA 4C 06 [16:20:01]Write i2c OK [16:20:01]MH_I2C_Read... [16:20:01]Read from MH i2c: 01 [16:20:01]MH_I2C_Read... [16:20:01]Read from MH i2c: 01 07 00 [16:20:01]MH_I2C_Read... [16:20:01]Read from MH i2c: 01 07 00 BA 4C 00 00 00 00 00 DB 0C F4 [16:20:01]RasterBufferAndPrint [16:20:01]line [16:20:01]line [16:20:01]line [16:20:01]line [16:20:01]line [16:20:01]written 0, free lines is 3300 [16:20:01]MH_Cut [16:20:01]Write to MH i2c: D1 01 00 C1 4C 01 DF [16:20:01]Write i2c OK [16:20:01]MH_I2C_Read... [16:20:01]Read from MH i2c: D1 [16:20:01]MH_I2C_Read... [16:20:01]Read from MH i2c: D1 01 00 [16:20:01]MH_I2C_Read... [16:20:01]Read from MH i2c: D1 01 00 C1 4C 00 DE [16:20:01]Write to MH i2c: 01 00 00 C2 4C 0E [16:20:01]Write i2c OK [16:20:01]MH_I2C_Read... [16:20:01]OFD Sender: No OFD packet to send [16:20:02]*** Cut start [16:20:02]*** Partial cut [16:20:02]*** CUTSNS_PIN = 1 [16:20:02]*** CUTSNS_PIN = 0 [16:20:02]*** Brake cut motor [16:20:02]Read from MH i2c: 01 [16:20:02]MH_I2C_Read... [16:20:02]*** Stop cut motor [16:20:02]*** Cut end [16:20:02]Read from MH i2c: 01 07 00 [16:20:02]MH_I2C_Read... [16:20:02]Read from MH i2c: 01 07 00 C2 4C 00 00 00 00 00 FF 0F 23 [16:20:02]process_action close_receipt done [16:20:02]requested_data is exist [16:20:02]produce_requested_data [16:20:02]requested_item fm.sn is exist - process it [16:20:02]wFMCommunicate request_size=4 [16:20:02]MH_SAM_APDU [16:20:02]CAPDU: 80 11 00 00 [16:20:02]Write to MH i2c: E2 08 00 C3 4C 80 11 00 00 00 00 00 00 89 [16:20:03]Write i2c OK [16:20:03]MH_I2C_Read... [16:20:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:03]Read from MH i2c: E2 [16:20:03]MH_I2C_Read... [16:20:03]Read from MH i2c: E2 17 00 [16:20:03]MH_I2C_Read... [16:20:03]Read from MH i2c: E2 17 00 C3 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D8 [16:20:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:20:03]wFMCommunicate OK [16:20:03]requested_item fd.num is exist - process it [16:20:03]SAM_PROTO_GetFieldsCounters [16:20:03]wFMCommunicate request_size=4 [16:20:03]MH_SAM_APDU [16:20:03]CAPDU: 80 13 00 00 [16:20:03]Write to MH i2c: E2 08 00 C4 4C 80 13 00 00 00 00 00 00 8C [16:20:03]Write i2c OK [16:20:03]MH_I2C_Read... [16:20:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:03]Read from MH i2c: E2 [16:20:03]MH_I2C_Read... [16:20:03]Read from MH i2c: E2 62 00 [16:20:03]MH_I2C_Read... [16:20:03]Read from MH i2c: E2 62 00 C4 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2D 71 00 00 0E 04 04 00 73 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 F7 [16:20: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2D 71 00 00 0E 04 04 00 73 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 [16:20:03]wFMCommunicate OK [16:20:03]SAM_PROTO_GetFieldsCounters done [16:20:03]requested_item shift.num is exist - process it [16:20:03]requested_item shift.opened is exist - process it [16:20:03]req_shift_opened [16:20:03]FM_GetShiftState [16:20:03]SAM_PROTO_GetShiftState [16:20:03]wFMCommunicate request_size=4 [16:20:03]MH_SAM_APDU [16:20:03]CAPDU: 80 13 01 00 [16:20:03]Write to MH i2c: E2 08 00 C5 4C 80 13 01 00 00 00 00 00 8E [16:20:03]Write i2c OK [16:20:03]MH_I2C_Read... [16:20:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:03]Read from MH i2c: E2 [16:20:03]MH_I2C_Read... [16:20:03]Read from MH i2c: E2 0E 00 [16:20:03]MH_I2C_Read... [16:20:03]Read from MH i2c: E2 0E 00 C5 4C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A7 [16:20:03]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:20:03]wFMCommunicate OK [16:20:03]SAM_PROTO_GetShiftState done [16:20:03]FM_GetShiftState done [16:20:03]req_shift_opened done [16:20:03]requested_item shift.open_date is exist - process it [16:20:03]req_shift_open_date [16:20:03]req_shift_open_date done [16:20:03]produce_requested_data done [16:20:03]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28973,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [16:20:03]process_action_free close_receipt [16:20:03]json_value_free [16:20:03]json_value_free done [16:20:03]process_json_proto returns [16:20:03]Send response to host [16:20:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28973,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [16:20:03]free response buf [16:20:03]execute_script done [16:20:03]execute_script returns [16:20:03]free content buf [16:20:03]Sock 9.Close socket [16:20:03]Sock 9.Thread stoped [16:20:06]OFD Sender: No OFD packet to send [16:20:11]OFD Sender: No OFD packet to send [16:20:16]OFD Sender: No OFD packet to send [16:20:21]OFD Sender: No OFD packet to send [16:20:26]OFD Sender: No OFD packet to send [16:20:31]OFD Sender: No OFD packet to send [16:20:36]OFD Sender: No OFD packet to send [16:20:41]OFD Sender: No OFD packet to send [16:20:46]OFD Sender: No OFD packet to send [16:20:51]OFD Sender: No OFD packet to send [16:20:56]OFD Sender: No OFD packet to send [16:21:01]OFD Sender: No OFD packet to send [16:21:06]OFD Sender: No OFD packet to send [16:21:11]OFD Sender: No OFD packet to send [16:21:16]OFD Sender: No OFD packet to send [16:21:21]OFD Sender: No OFD packet to send [16:21:22]accept exits with 7 [16:21:22]New connection [16:21:22]New thread 3066785124 created [16:21:22]Thread 3066928484 joined [16:21:22]Waiting for new connection... [16:21:22] Sock 7.Parse request [16:21:22]Sock 7.Check first char [16:21:22]Sock 7.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.33.3:8080 [16:21:22]Content-Length: 843 [16:21:22]Content-Type: application/json [16:21:22] [16:21:22]POST finish read [16:21:22]Found Content-Length = 843 [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)347333", "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" : 64.30, "quantity" : 15.560, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "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)347333", "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" : 64.30, "quantity" : 15.560, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "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 C6 4C 01 [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 C6 4C 00 07 B1 1A 66 23 5B 8F 65 B4 [16:21:22]GetLastDocTimeStamp 1713025204 [16:21:22]current date 1713025287 [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 C7 4C 80 13 01 00 00 00 00 00 90 [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 C7 4C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A9 [16:21:22]RAPDU: 09 00 01 BF CF 19 66 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 1712967615 [16:21:22]opened+sec_in_day 1713054015 [16:21:22]quantity*price = 100050 [16:21:22]sum+1 = 100052 [16:21:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 181 13.04.2024 16:21 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28974 ФПД: 259631014742084 1/tax-web-control/client/api/v1/ticket?date=20240413T162127&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28974&fm=259631014742084&tin=02508201610067®Number=0000138879044617&sum=100051 [16:21:23]StoreToDocumentArchive [16:21:23]shift 115 fd 28974 [16:21:23]save to /storage/0115/doc_00028974 [16:21:23]save last doc name /storage/0115/doc_00028974 to /storage/kkm_last_doc_name [16:21:23]save OK [16:21:23]Clear old archive folders... [16:21:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:21:23]tlvbuf is 0121F890 [16:21:23]SAM_PROTO_ClearQueue [16:21:23]wFMCommunicate request_size=4 [16:21:23]MH_SAM_APDU [16:21:23]CAPDU: 80 09 00 00 [16:21:23]Write to MH i2c: E2 08 00 D4 4C 80 09 00 00 00 00 00 00 92 [16:21:23]Write i2c OK [16:21:23]MH_I2C_Read... [16:21:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:23]Read from MH i2c: E2 [16:21:23]MH_I2C_Read... [16:21:23]Read from MH i2c: E2 03 00 [16:21:23]MH_I2C_Read... [16:21:23]Read from MH i2c: E2 03 00 D4 4C 00 90 00 94 [16:21:23]RAPDU: 90 00 [16:21:23]wFMCommunicate OK [16:21:23]SAM_PROTO_ClearQueue done [16:21:23]KKMCreateOFDPacket [16:21:23]OFDProtocolAddRootSTLVToBuf [16:21:23]FM_MakeSignedData [16:21:23]FM_MakeSignedData [16:21:23]SAM_PROTO_SignData [16:21:23]wFMCommunicate request_size=4 [16:21:23]MH_SAM_APDU [16:21:23]CAPDU: 80 0D 01 02 [16:21:23]Write to MH i2c: E2 08 00 D5 4C 80 0D 01 02 00 00 00 00 9A [16:21:23]Write i2c OK [16:21:23]MH_I2C_Read... [16:21:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:23]Read from MH i2c: E2 [16:21:23]MH_I2C_Read... [16:21:23]Read from MH i2c: E2 03 00 [16:21:23]MH_I2C_Read... [16:21:23]Read from MH i2c: E2 03 00 D5 4C 00 90 00 95 [16:21:23]RAPDU: 90 00 [16:21:23]wFMCommunicate OK [16:21:23]wFMCommunicate request_size=255 [16:21:23]MH_SAM_APDU [16:21: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 B5 00 00 00 F4 03 04 00 07 B1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2E 71 00 00 35 04 06 00 EC [16:21:23]Write to MH i2c: E2 02 01 D6 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 B5 00 00 00 F4 03 04 00 07 B1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2E 71 00 00 35 04 06 00 EC 00 00 17 [16:21:23]Write i2c OK [16:21:23]MH_I2C_Read... [16:21:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:23]Read from MH i2c: E2 [16:21:23]MH_I2C_Read... [16:21:23]Read from MH i2c: E2 03 00 [16:21:23]MH_I2C_Read... [16:21:23]Read from MH i2c: E2 03 00 D6 4C 00 90 00 96 [16:21:23]RAPDU: 90 00 [16:21:23]wFMCommunicate OK [16:21:23]wFMCommunicate request_size=10 [16:21:23]MH_SAM_APDU [16:21:23]CAPDU: 80 0D 02 02 05 22 0E 68 08 44 [16:21:23]Write to MH i2c: E2 0D 00 D7 4C 80 0D 02 02 05 00 22 0E 68 08 44 00 00 8B [16:21:23]Write i2c OK [16:21:23]MH_I2C_Read... [16:21:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:23]Read from MH i2c: E2 [16:21:23]MH_I2C_Read... [16:21:23]Read from MH i2c: E2 03 00 [16:21:23]MH_I2C_Read... [16:21:23]Read from MH i2c: E2 03 00 D7 4C 00 90 00 97 [16:21:23]RAPDU: 90 00 [16:21:23]wFMCommunicate OK [16:21:23]wFMCommunicate request_size=4 [16:21:23]MH_SAM_APDU [16:21:23]CAPDU: 80 0D 03 02 [16:21:23]Write to MH i2c: E2 08 00 D8 4C 80 0D 03 02 00 00 00 00 9F [16:21:23]Write i2c OK [16:21:23]MH_I2C_Read... [16:21:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:23]Read from MH i2c: E2 [16:21:23]MH_I2C_Read... [16:21:23]Read from MH i2c: E2 0B 00 [16:21:23]MH_I2C_Read... [16:21:23]Read from MH i2c: E2 0B 00 D8 4C 00 53 06 1D 4F 8F 46 AD 1E 90 00 05 [16:21:23]RAPDU: 53 06 1D 4F 8F 46 AD 1E 90 00 [16:21:23]wFMCommunicate OK [16:21:23]SAM_PROTO_SignData done [16:21:23]FM_MakeSignedData done [16:21:23]CreateOFDProtocolMessage [16:21:23]wFMCommunicate request_size=4 [16:21:23]MH_SAM_APDU [16:21:23]CAPDU: 80 11 00 00 [16:21:23]Write to MH i2c: E2 08 00 D9 4C 80 11 00 00 00 00 00 00 9F [16:21:23]Write i2c OK [16:21:23]MH_I2C_Read... [16:21:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:23]Read from MH i2c: E2 [16:21:23]MH_I2C_Read... [16:21:23]Read from MH i2c: E2 17 00 [16:21:23]MH_I2C_Read... [16:21:23]Read from MH i2c: E2 17 00 D9 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EE [16:21:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:21:23]wFMCommunicate OK [16:21:23]CreateOFDProtocolMessage done [16:21:23]OFDSenderStorePacket 28974 [16:21:23]StoreOFDPacket docnum=28974 [16:21:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9B A8 07 01 3A 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 B5 00 00 00 F4 03 04 00 07 B1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2E 71 00 00 35 04 06 00 EC 22 0E 68 08 44 53 06 1D 4F 8F 46 AD 1E [16:21:23]CheckFolder [16:21:23]dirname=/storage/ofd_packets [16:21:23]CheckFolder done [16:21:23]ProducePacketName [16:21:23]name=ofd_packets/00028974 [16:21:23]NVStorageSaveData ofd_packets/00028974 [16:21:23]File name is /storage/ofd_packets/00028974 [16:21:23]Write 301 bytes [16:21:23]NVStorageSaveData done [16:21:23]OFDSenderStorePacket done [16:21:23]KKMCreateOFDPacket done [16:21:23]NVStorageSaveData kkm_last_timestamp [16:21:23]File name is /storage/kkm_last_timestamp [16:21:23]Write 4 bytes [16:21:23]NVStorageSaveData done [16:21:23]ExternCall_PrintAddStr [16:21:23]wPrintStart [16:21:23]Write to MH i2c: 01 00 00 DA 4C 26 [16:21:23]Write i2c OK [16:21:23]MH_I2C_Read... [16:21:23]Read from MH i2c: 01 [16:21:23]MH_I2C_Read... [16:21:23]Read from MH i2c: 01 07 00 [16:21:23]MH_I2C_Read... [16:21:23]Read from MH i2c: 01 07 00 DA 4C 00 00 00 00 00 FF 0F 3B [16:21:23]RasterBufferAndPrint [16:21:23]line Счет N : (1)347333 [16:21:23]line ИНН: 02508201610067 [16:21:23]line Контрольно-Кассовый Чек [16:21:23]line ПРОДАЖА [16:21:23]line ТРК (МРК, ГНК) : 32 [16:21:23]line Товар: 2710124130 [16:21:23]line Аи-92-К-5 [16:21:23]line 15.560 * 64.30 [16:21:23]line = 1000.51 [16:21:23]line НДС 12% НСП 1% [16:21:23]line > о реализуемом товаре [16:21:23]line ИТОГО: 1000.51 [16:21:23]line НСП 1% : 8.85 [16:21:23]line НДС 12% : 106.25 [16:21:23]line Наличными: 0.00 [16:21:23]line Безнал.: 1000.51 [16:21:23]line Место: АЗС № 108 "Партнер Нефть" [16:21:23]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:21:23]line СНО: Общий режим [16:21:23]line Чек 181 13.04.2024 16:21 [16:21:23]line Смена: 115 ФФД: 1.0 [16:21:23]line ЗНМ: 0300000027 [16:21:23]line РНМ: 0000138879044617 [16:21:23]line Версия ККМ: 001 [16:21:23]line Платежная система: АКБ Кыргызстан [16:21:23]line ФМ: 0000000000963154 [16:21:23]line ФД: 28974 [16:21:23]line ФПД: 259631014742084 [16:21:23]line 1/tax-web-control/client/api/v1/ticket?date=20240413T162127&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28974&fm=259631014742084&tin=02508201610067®Number=0000138879044617&sum=100051 [16:21:24]OFD Sender: Processing packet 28974 [packets to send 8, broken 7] [16:21:24]ProducePacketName [16:21:24]name=ofd_packets/00028974 [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:24]Connected sock=10 [16:21: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 31 35 34 0F 01 00 00 9B A8 07 01 3A 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 B5 00 00 00 F4 03 04 00 07 B1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2E 71 00 00 35 04 06 00 EC 22 0E 68 08 44 53 06 1D 4F 8F 46 AD 1E [16:21:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E0 43 47 00 EC 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 31 35 34 10 04 04 00 2E 71 00 00 F4 03 04 00 AE 5B 1A 66 B6 04 01 00 00 29 21 89 47 AD 59 3A 89 [16:21:24]CommunicateWithHost err = 0 [16:21:24]CheckOFDResponse [16:21:24]1017 (14) - 77093643461234 [16:21:24]1041 (16) - 0000000000963154 [16:21:24]1040 (4) - 28974 [16:21:24]1012 (4) - 13.04.2024 10:17 [16:21:24]1206 (1) - 0 [16:21:24]OFD Sender: Remove packet 28974 [16:21:24]ProducePacketName [16:21:24]name=ofd_packets/00028974 [16:21:24]NVStorageDeleteData [16:21:24]Write to MH i2c: 01 00 00 03 4D 50 [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 03 4D 00 00 00 00 00 D3 0C 36 [16:21:24]RasterBufferAndPrint [16:21:24]line [16:21:24]line [16:21:24]line [16:21:24]line [16:21:24]line [16:21:24]written 0, free lines is 3289 [16:21:24]MH_Cut [16:21:24]Write to MH i2c: D1 01 00 0A 4D 01 29 [16:21:24]Write i2c OK [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: D1 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: D1 01 00 [16:21:24]MH_I2C_Read... [16:21:24]Read from MH i2c: D1 01 00 0A 4D 00 28 [16:21:24]Write to MH i2c: 01 00 00 0B 4D 58 [16:21:24]Write i2c OK [16:21:24]MH_I2C_Read... [16:21:25]OFD Sender: No OFD packet to send [16:21:25]*** Cut start [16:21:25]*** Partial cut [16:21:25]*** CUTSNS_PIN = 1 [16:21:25]*** CUTSNS_PIN = 0 [16:21:25]*** 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 0B 4D 00 00 00 00 00 FF 0F 6D [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 0C 4D 80 11 00 00 00 00 00 00 D3 [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 0C 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 22 [16:21:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 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 0D 4D 80 13 00 00 00 00 00 00 D6 [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 0D 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2E 71 00 00 0E 04 04 00 73 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 45 [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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2E 71 00 00 0E 04 04 00 73 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 [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 0E 4D 80 13 01 00 00 00 00 00 D8 [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 0E 4D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F1 [16:21:26]RAPDU: 09 00 01 BF CF 19 66 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":"0000000000963154","fd.num":28974,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [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":"0000000000963154","fd.num":28974,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [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 7.Close socket [16:21:26]Sock 7.Thread stoped [16:21:26]accept exits with 9 [16:21:26]New connection [16:21:26]New thread 3066928484 created [16:21:26]Thread 3066785124 joined [16:21:26]Waiting for new connection... [16:21:26] Sock 9.Parse request [16:21:26]Sock 9.Check first char [16:21:26]Sock 9.First char is OK [16:21:26]request: POST /json_proto HTTP/1.0 [16:21:26]Method: POST [16:21:26]URL: /json_proto [16:21:26]Method is POST - this is cgi request [16:21:26]url: /json_proto [16:21:26]query_string will be loaded in cgi processing [16:21:26]execute_cgi json_proto POST (null) [16:21:26]execute_cgi path=json_proto method=POST [16:21:26]POST find Content-Length [16:21:26]Host: 172.17.33.3:8080 [16:21:26]Content-Length: 840 [16:21:26]Content-Type: application/json [16:21:26] [16:21:26]POST finish read [16:21:26]Found Content-Length = 840 [16:21:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347335", "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" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:26]execute_script... [16:21: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)347335", "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" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:26]POST & json_proto [16:21:26]process_json_proto [16:21:26]json parsed OK: [16:21:26]protocol is kg_v1.0 [16:21:26]action value=close_receipt [16:21:26]process_action close_receipt [16:21:26]cmd_close_receipt [16:21:26]MH_GetDate [16:21:26]Write to MH i2c: F0 00 00 0F 4D 4B [16:21:26]Write i2c OK [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: F0 [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: F0 09 00 [16:21:26]MH_I2C_Read... [16:21:26]Read from MH i2c: F0 09 00 0F 4D 00 0C B1 1A 66 23 5B 8F 65 03 [16:21:26]GetLastDocTimeStamp 1713025287 [16:21:26]current date 1713025292 [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 10 4D 80 13 01 00 00 00 00 00 DA [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 10 4D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F3 [16:21:26]RAPDU: 09 00 01 BF CF 19 66 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]opened in 1712967615 [16:21:26]opened+sec_in_day 1713054015 [16:21:26]quantity*price = 100056 [16:21:26]sum+1 = 100058 [16:21:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.57 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.57 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 182 13.04.2024 16:21 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28975 ФПД: 246823331535619 1/tax-web-control/client/api/v1/ticket?date=20240413T162132&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28975&fm=246823331535619&tin=02508201610067®Number=0000138879044617&sum=100057 [16:21:28]StoreToDocumentArchive [16:21:28]shift 115 fd 28975 [16:21:28]save to /storage/0115/doc_00028975 [16:21:28]save last doc name /storage/0115/doc_00028975 to /storage/kkm_last_doc_name [16:21:28]save OK [16:21:28]Clear old archive folders... [16:21:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:21:28]tlvbuf is 011E94C0 [16:21:28]SAM_PROTO_ClearQueue [16:21:28]wFMCommunicate request_size=4 [16:21:28]MH_SAM_APDU [16:21:28]CAPDU: 80 09 00 00 [16:21:28]Write to MH i2c: E2 08 00 1D 4D 80 09 00 00 00 00 00 00 DC [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:28]Read from MH i2c: E2 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 03 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 03 00 1D 4D 00 90 00 DE [16:21:28]RAPDU: 90 00 [16:21:28]wFMCommunicate OK [16:21:28]SAM_PROTO_ClearQueue done [16:21:28]KKMCreateOFDPacket [16:21:28]OFDProtocolAddRootSTLVToBuf [16:21:28]FM_MakeSignedData [16:21:28]FM_MakeSignedData [16:21:28]SAM_PROTO_SignData [16:21:28]wFMCommunicate request_size=4 [16:21:28]MH_SAM_APDU [16:21:28]CAPDU: 80 0D 01 02 [16:21:28]Write to MH i2c: E2 08 00 1E 4D 80 0D 01 02 00 00 00 00 E4 [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:28]Read from MH i2c: E2 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 03 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 03 00 1E 4D 00 90 00 DF [16:21:28]RAPDU: 90 00 [16:21:28]wFMCommunicate OK [16:21:28]wFMCommunicate request_size=255 [16:21:28]MH_SAM_APDU [16:21:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 0C B1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2F 71 00 00 35 04 06 00 E0 7C 08 FF [16:21:28]Write to MH i2c: E2 02 01 1F 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 0C B1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2F 71 00 00 35 04 06 00 E0 7C 08 FF 00 00 9E [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:28]Read from MH i2c: E2 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 03 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 03 00 1F 4D 00 90 00 E0 [16:21:28]RAPDU: 90 00 [16:21:28]wFMCommunicate OK [16:21:28]wFMCommunicate request_size=7 [16:21:28]MH_SAM_APDU [16:21:28]CAPDU: 80 0D 02 02 02 9B 03 [16:21:28]Write to MH i2c: E2 0A 00 20 4D 80 0D 02 02 02 00 9B 03 00 00 89 [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:28]Read from MH i2c: E2 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 03 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 03 00 20 4D 00 90 00 E1 [16:21:28]RAPDU: 90 00 [16:21:28]wFMCommunicate OK [16:21:28]wFMCommunicate request_size=4 [16:21:28]MH_SAM_APDU [16:21:28]CAPDU: 80 0D 03 02 [16:21:28]Write to MH i2c: E2 08 00 21 4D 80 0D 03 02 00 00 00 00 E9 [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:28]Read from MH i2c: E2 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 0B 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 0B 00 21 4D 00 BC B0 12 E9 0E 3A 66 85 90 00 84 [16:21:28]RAPDU: BC B0 12 E9 0E 3A 66 85 90 00 [16:21:28]wFMCommunicate OK [16:21:28]SAM_PROTO_SignData done [16:21:28]FM_MakeSignedData done [16:21:28]CreateOFDProtocolMessage [16:21:28]wFMCommunicate request_size=4 [16:21:28]MH_SAM_APDU [16:21:28]CAPDU: 80 11 00 00 [16:21:28]Write to MH i2c: E2 08 00 22 4D 80 11 00 00 00 00 00 00 E9 [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:28]Read from MH i2c: E2 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 17 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: E2 17 00 22 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 38 [16:21:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:21:28]wFMCommunicate OK [16:21:28]CreateOFDProtocolMessage done [16:21:28]OFDSenderStorePacket 28975 [16:21:28]StoreOFDPacket docnum=28975 [16:21:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 C2 58 04 01 AC 6B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 0C B1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2F 71 00 00 35 04 06 00 E0 7C 08 FF 9B 03 BC B0 12 E9 0E 3A 66 85 [16:21:28]CheckFolder [16:21:28]dirname=/storage/ofd_packets [16:21:28]CheckFolder done [16:21:28]ProducePacketName [16:21:28]name=ofd_packets/00028975 [16:21:28]NVStorageSaveData ofd_packets/00028975 [16:21:28]File name is /storage/ofd_packets/00028975 [16:21:28]Write 298 bytes [16:21:28]NVStorageSaveData done [16:21:28]OFDSenderStorePacket done [16:21:28]KKMCreateOFDPacket done [16:21:28]NVStorageSaveData kkm_last_timestamp [16:21:28]File name is /storage/kkm_last_timestamp [16:21:28]Write 4 bytes [16:21:28]NVStorageSaveData done [16:21:28]ExternCall_PrintAddStr [16:21:28]wPrintStart [16:21:28]Write to MH i2c: 01 00 00 23 4D 70 [16:21:28]Write i2c OK [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: 01 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: 01 07 00 [16:21:28]MH_I2C_Read... [16:21:28]Read from MH i2c: 01 07 00 23 4D 00 00 00 00 00 FF 0F 85 [16:21:28]RasterBufferAndPrint [16:21:28]line Счет N : (1)347335 [16:21:28]line ИНН: 02508201610067 [16:21:28]line Контрольно-Кассовый Чек [16:21:28]line ПРОДАЖА [16:21:28]line ТРК (МРК, ГНК) : 51 [16:21:28]line Товар: 2710194210 [16:21:28]line ДТ-К-5 [16:21:28]line 13.820 * 72.40 [16:21:28]line = 1000.57 [16:21:28]line НДС 12% НСП 1% [16:21:28]line > о реализуемом товаре [16:21:28]line ИТОГО: 1000.57 [16:21:28]line НСП 1% : 8.85 [16:21:28]line НДС 12% : 106.25 [16:21:28]line Наличными: 0.00 [16:21:28]line Безнал.: 1000.57 [16:21:28]line Место: АЗС № 108 "Партнер Нефть" [16:21:28]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:21:28]line СНО: Общий режим [16:21:28]line Чек 182 13.04.2024 16:21 [16:21:28]line Смена: 115 ФФД: 1.0 [16:21:28]line ЗНМ: 0300000027 [16:21:28]line РНМ: 0000138879044617 [16:21:28]line Версия ККМ: 001 [16:21:28]line Платежная система: АКБ Кыргызстан [16:21:28]line ФМ: 0000000000963154 [16:21:28]line ФД: 28975 [16:21:28]line ФПД: 246823331535619 [16:21:28]line 1/tax-web-control/client/api/v1/ticket?date=20240413T162132&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28975&fm=246823331535619&tin=02508201610067®Number=0000138879044617&sum=100057 [16:21:28]written 0, free lines is 4095 [16:21:28]OFD Sender: Processing packet 28975 [packets to send 8, broken 7] [16:21:28]ProducePacketName [16:21:28]name=ofd_packets/00028975 [16:21:28]OFD Sender: To server: pG, [16:21:28]CommunicateWithHost lk.salyk.kg:30040 [16:21:28]ConnectInit lk.salyk.kg [16:21:28]Connected sock=10 [16:21: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 31 35 34 0C 01 00 00 C2 58 04 01 AC 6B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 0C B1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 2F 71 00 00 35 04 06 00 E0 7C 08 FF 9B 03 BC B0 12 E9 0E 3A 66 85 [16:21:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D4 88 47 00 2D 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 31 35 34 10 04 04 00 2F 71 00 00 F4 03 04 00 B2 5B 1A 66 B6 04 01 00 00 E4 D8 B0 9A 3B 01 5F E2 [16:21:29]CommunicateWithHost err = 0 [16:21:29]CheckOFDResponse [16:21:29]1017 (14) - 77093643461234 [16:21:29]1041 (16) - 0000000000963154 [16:21:29]1040 (4) - 28975 [16:21:29]1012 (4) - 13.04.2024 10:17 [16:21:29]1206 (1) - 0 [16:21:29]OFD Sender: Remove packet 28975 [16:21:29]ProducePacketName [16:21:29]name=ofd_packets/00028975 [16:21:29]NVStorageDeleteData [16:21:29]Write to MH i2c: 01 00 00 4C 4D 99 [16:21:29]Write i2c OK [16:21:29]MH_I2C_Read... [16:21:29]Read from MH i2c: 01 [16:21:29]MH_I2C_Read... [16:21:29]Read from MH i2c: 01 07 00 [16:21:29]MH_I2C_Read... [16:21:29]Read from MH i2c: 01 07 00 4C 4D 00 00 00 00 00 E2 0C 8E [16:21:29]RasterBufferAndPrint [16:21:29]line [16:21:29]line [16:21:29]line [16:21:29]line [16:21:29]line [16:21:29]written 0, free lines is 3310 [16:21:29]MH_Cut [16:21:29]Write to MH i2c: D1 01 00 53 4D 01 72 [16:21:29]Write i2c OK [16:21:29]MH_I2C_Read... [16:21:29]Read from MH i2c: D1 [16:21:29]MH_I2C_Read... [16:21:29]Read from MH i2c: D1 01 00 [16:21:29]MH_I2C_Read... [16:21:29]Read from MH i2c: D1 01 00 53 4D 00 71 [16:21:29]Write to MH i2c: 01 00 00 54 4D A1 [16:21:29]Write i2c OK [16:21:29]MH_I2C_Read... [16:21:29]OFD Sender: No OFD packet to send [16:21:30]*** Cut start [16:21:30]*** Partial cut [16:21:30]*** CUTSNS_PIN = 1 [16:21:30]*** CUTSNS_PIN = 0 [16:21:30]*** Brake cut motor [16:21:30]Read from MH i2c: 01 [16:21:30]MH_I2C_Read... [16:21:30]*** Stop cut motor [16:21:30]*** Cut end [16:21:30]Read from MH i2c: 01 07 00 [16:21:30]MH_I2C_Read... [16:21:30]Read from MH i2c: 01 07 00 54 4D 00 00 00 00 00 FF 0F B6 [16:21:30]process_action close_receipt done [16:21:30]requested_data is exist [16:21:30]produce_requested_data [16:21:30]requested_item fm.sn is exist - process it [16:21:30]wFMCommunicate request_size=4 [16:21:30]MH_SAM_APDU [16:21:30]CAPDU: 80 11 00 00 [16:21:30]Write to MH i2c: E2 08 00 55 4D 80 11 00 00 00 00 00 00 1C [16:21:30]Write i2c OK [16:21:30]MH_I2C_Read... [16:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:30]Read from MH i2c: E2 [16:21:30]MH_I2C_Read... [16:21:30]Read from MH i2c: E2 17 00 [16:21:30]MH_I2C_Read... [16:21:30]Read from MH i2c: E2 17 00 55 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6B [16:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:21:30]wFMCommunicate OK [16:21:30]requested_item fd.num is exist - process it [16:21:30]SAM_PROTO_GetFieldsCounters [16:21:30]wFMCommunicate request_size=4 [16:21:30]MH_SAM_APDU [16:21:30]CAPDU: 80 13 00 00 [16:21:30]Write to MH i2c: E2 08 00 56 4D 80 13 00 00 00 00 00 00 1F [16:21:30]Write i2c OK [16:21:30]MH_I2C_Read... [16:21:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:30]Read from MH i2c: E2 [16:21:30]MH_I2C_Read... [16:21:30]Read from MH i2c: E2 62 00 [16:21:30]MH_I2C_Read... [16:21:30]Read from MH i2c: E2 62 00 56 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2F 71 00 00 0E 04 04 00 73 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 92 [16:21: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 2F 71 00 00 0E 04 04 00 73 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 [16:21:30]wFMCommunicate OK [16:21:30]SAM_PROTO_GetFieldsCounters done [16:21:30]requested_item shift.num is exist - process it [16:21:30]requested_item shift.opened is exist - process it [16:21:30]req_shift_opened [16:21:30]FM_GetShiftState [16:21:30]SAM_PROTO_GetShiftState [16:21:30]wFMCommunicate request_size=4 [16:21:30]MH_SAM_APDU [16:21:30]CAPDU: 80 13 01 00 [16:21:30]Write to MH i2c: E2 08 00 57 4D 80 13 01 00 00 00 00 00 21 [16:21:30]Write i2c OK [16:21:30]MH_I2C_Read... [16:21:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:30]Read from MH i2c: E2 [16:21:30]MH_I2C_Read... [16:21:30]Read from MH i2c: E2 0E 00 [16:21:30]MH_I2C_Read... [16:21:30]Read from MH i2c: E2 0E 00 57 4D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 3A [16:21:30]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:21:30]wFMCommunicate OK [16:21:30]SAM_PROTO_GetShiftState done [16:21:30]FM_GetShiftState done [16:21:30]req_shift_opened done [16:21:30]requested_item shift.open_date is exist - process it [16:21:30]req_shift_open_date [16:21:30]req_shift_open_date done [16:21:30]produce_requested_data done [16:21:30]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28975,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [16:21:30]process_action_free close_receipt [16:21:30]json_value_free [16:21:30]json_value_free done [16:21:30]process_json_proto returns [16:21:30]Send response to host [16:21:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28975,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [16:21:30]free response buf [16:21:30]execute_script done [16:21:30]execute_script returns [16:21:30]free content buf [16:21:30]Sock 9.Close socket [16:21:30]Sock 9.Thread stoped [16:21:34]OFD Sender: No OFD packet to send [16:21:39]OFD Sender: No OFD packet to send [16:21:44]OFD Sender: No OFD packet to send [16:21:49]OFD Sender: No OFD packet to send [16:21:54]OFD Sender: No OFD packet to send [16:21:59]OFD Sender: No OFD packet to send [16:22:04]OFD Sender: No OFD packet to send [16:22:09]OFD Sender: No OFD packet to send [16:22:14]OFD Sender: No OFD packet to send [16:22:19]OFD Sender: No OFD packet to send [16:22:24]OFD Sender: No OFD packet to send [16:22:29]OFD Sender: No OFD packet to send [16:22:34]OFD Sender: No OFD packet to send [16:22:39]OFD Sender: No OFD packet to send [16:22:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:54]OFD Sender: No OFD packet to send [16:22:59]OFD Sender: No OFD packet to send [16:23:04]OFD Sender: No OFD packet to send [16:23:09]OFD Sender: No OFD packet to send [16:23:14]OFD Sender: No OFD packet to send [16:23:19]OFD Sender: No OFD packet to send [16:23:24]OFD Sender: No OFD packet to send [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:37]accept exits with 7 [16:23:37]New connection [16:23:37]New thread 3066785124 created [16:23:37]Thread 3066928484 joined [16:23:37]Waiting for new connection... [16:23:37] Sock 7.Parse request [16:23:37]Sock 7.Check first char [16:23:37]Sock 7.First char is OK [16:23:37]request: POST /json_proto HTTP/1.0 [16:23:37]Method: POST [16:23:37]URL: /json_proto [16:23:37]Method is POST - this is cgi request [16:23:37]url: /json_proto [16:23:37]query_string will be loaded in cgi processing [16:23:37]execute_cgi json_proto POST (null) [16:23:37]execute_cgi path=json_proto method=POST [16:23:37]POST find Content-Length [16:23:37]Host: 172.17.33.3:8080 [16:23:37]Content-Length: 678 [16:23:37]Content-Type: application/json [16:23:37] [16:23:37]POST finish read [16:23:37]Found Content-Length = 678 [16:23:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347337", "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" : 64.30, "quantity" : 12.570, "sum" : 808.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 808.00, "total" : 808.00, "payments": [ { "type": 0, "sum" : 808.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:37]execute_script... [16:23: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)347337", "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" : 64.30, "quantity" : 12.570, "sum" : 808.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 808.00, "total" : 808.00, "payments": [ { "type": 0, "sum" : 808.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:37]POST & json_proto [16:23:37]process_json_proto [16:23:37]json parsed OK: [16:23:37]protocol is kg_v1.0 [16:23:37]action value=close_receipt [16:23:37]process_action close_receipt [16:23:37]cmd_close_receipt [16:23:37]MH_GetDate [16:23:37]Write to MH i2c: F0 00 00 58 4D 94 [16:23:37]Write i2c OK [16:23:37]MH_I2C_Read... [16:23:37]Read from MH i2c: F0 [16:23:37]MH_I2C_Read... [16:23:37]Read from MH i2c: F0 09 00 [16:23:37]MH_I2C_Read... [16:23:37]Read from MH i2c: F0 09 00 58 4D 00 8E B1 1A 66 23 5B 8F 65 CE [16:23:37]GetLastDocTimeStamp 1713025292 [16:23:37]current date 1713025422 [16:23:37]FM_GetShiftState [16:23:37]SAM_PROTO_GetShiftState [16:23:37]wFMCommunicate request_size=4 [16:23:37]MH_SAM_APDU [16:23:37]CAPDU: 80 13 01 00 [16:23:37]Write to MH i2c: E2 08 00 59 4D 80 13 01 00 00 00 00 00 23 [16:23:37]Write i2c OK [16:23:37]MH_I2C_Read... [16:23:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:37]Read from MH i2c: E2 [16:23:37]MH_I2C_Read... [16:23:37]Read from MH i2c: E2 0E 00 [16:23:37]MH_I2C_Read... [16:23:37]Read from MH i2c: E2 0E 00 59 4D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 3C [16:23:37]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:23:37]wFMCommunicate OK [16:23:37]SAM_PROTO_GetShiftState done [16:23:37]FM_GetShiftState done [16:23:37]opened in 1712967615 [16:23:37]opened+sec_in_day 1713054015 [16:23:37]quantity*price = 80825 [16:23:37]sum+1 = 80826 [16:23:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 808.00 Внесено: 808.00 СДАЧА: 0.00 НСП 1% : 7.15 НДС 12% : 85.83 Наличными: 808.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 183 13.04.2024 16:23 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28976 ФПД: 50491617967967 1/tax-web-control/client/api/v1/ticket?date=20240413T162342&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28976&fm=50491617967967&tin=02508201610067®Number=0000138879044617&sum=80800 [16:23:38]StoreToDocumentArchive [16:23:38]shift 115 fd 28976 [16:23:38]save to /storage/0115/doc_00028976 [16:23:38]save last doc name /storage/0115/doc_00028976 to /storage/kkm_last_doc_name [16:23:38]save OK [16:23:38]Clear old archive folders... [16:23:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:23:38]tlvbuf is 011CB3E0 [16:23:38]SAM_PROTO_ClearQueue [16:23:38]wFMCommunicate request_size=4 [16:23:38]MH_SAM_APDU [16:23:38]CAPDU: 80 09 00 00 [16:23:38]Write to MH i2c: E2 08 00 66 4D 80 09 00 00 00 00 00 00 25 [16:23:38]Write i2c OK [16:23:38]MH_I2C_Read... [16:23:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:23:38]Read from MH i2c: E2 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: E2 03 00 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: E2 03 00 66 4D 00 90 00 27 [16:23:38]RAPDU: 90 00 [16:23:38]wFMCommunicate OK [16:23:38]SAM_PROTO_ClearQueue done [16:23:38]KKMCreateOFDPacket [16:23:38]OFDProtocolAddRootSTLVToBuf [16:23:38]FM_MakeSignedData [16:23:38]FM_MakeSignedData [16:23:38]SAM_PROTO_SignData [16:23:38]wFMCommunicate request_size=4 [16:23:38]MH_SAM_APDU [16:23:38]CAPDU: 80 0D 01 02 [16:23:38]Write to MH i2c: E2 08 00 67 4D 80 0D 01 02 00 00 00 00 2D [16:23:38]Write i2c OK [16:23:38]MH_I2C_Read... [16:23:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:23:38]Read from MH i2c: E2 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: E2 03 00 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: E2 03 00 67 4D 00 90 00 28 [16:23:38]RAPDU: 90 00 [16:23:38]wFMCommunicate OK [16:23:38]wFMCommunicate request_size=255 [16:23:38]MH_SAM_APDU [16:23: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 1A 31 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B9 3B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 3B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 21 00 00 00 00 07 04 06 00 A0 3B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 8E B1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 30 71 00 00 35 04 06 00 2D [16:23:38]Write to MH i2c: E2 02 01 68 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 1A 31 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B9 3B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 3B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 21 00 00 00 00 07 04 06 00 A0 3B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 8E B1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 30 71 00 00 35 04 06 00 2D 00 00 AF [16:23:38]Write i2c OK [16:23:38]MH_I2C_Read... [16:23:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:38]Read from MH i2c: E2 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: E2 03 00 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: E2 03 00 68 4D 00 90 00 29 [16:23:38]RAPDU: 90 00 [16:23:38]wFMCommunicate OK [16:23:38]wFMCommunicate request_size=10 [16:23:38]MH_SAM_APDU [16:23:38]CAPDU: 80 0D 02 02 05 EB FE F3 FF 5F [16:23:38]Write to MH i2c: E2 0D 00 69 4D 80 0D 02 02 05 00 EB FE F3 FF 5F 00 00 74 [16:23:38]Write i2c OK [16:23:38]MH_I2C_Read... [16:23:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:38]Read from MH i2c: E2 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: E2 03 00 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: E2 03 00 69 4D 00 90 00 2A [16:23:38]RAPDU: 90 00 [16:23:38]wFMCommunicate OK [16:23:38]wFMCommunicate request_size=4 [16:23:38]MH_SAM_APDU [16:23:38]CAPDU: 80 0D 03 02 [16:23:38]Write to MH i2c: E2 08 00 6A 4D 80 0D 03 02 00 00 00 00 32 [16:23:38]Write i2c OK [16:23:38]MH_I2C_Read... [16:23:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:23:38]Read from MH i2c: E2 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: E2 0B 00 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: E2 0B 00 6A 4D 00 3F 3D 9C 5B A4 DA 4F 71 90 00 E4 [16:23:38]RAPDU: 3F 3D 9C 5B A4 DA 4F 71 90 00 [16:23:38]wFMCommunicate OK [16:23:38]SAM_PROTO_SignData done [16:23:38]FM_MakeSignedData done [16:23:38]CreateOFDProtocolMessage [16:23:38]wFMCommunicate request_size=4 [16:23:38]MH_SAM_APDU [16:23:38]CAPDU: 80 11 00 00 [16:23:38]Write to MH i2c: E2 08 00 6B 4D 80 11 00 00 00 00 00 00 32 [16:23:38]Write i2c OK [16:23:38]MH_I2C_Read... [16:23:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:38]Read from MH i2c: E2 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: E2 17 00 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: E2 17 00 6B 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 81 [16:23:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:23:38]wFMCommunicate OK [16:23:38]CreateOFDProtocolMessage done [16:23:38]OFDSenderStorePacket 28976 [16:23:38]StoreOFDPacket docnum=28976 [16:23:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 82 F6 07 01 02 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1A 31 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B9 3B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 3B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 21 00 00 00 00 07 04 06 00 A0 3B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 8E B1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 30 71 00 00 35 04 06 00 2D EB FE F3 FF 5F 3F 3D 9C 5B A4 DA 4F 71 [16:23:38]CheckFolder [16:23:38]dirname=/storage/ofd_packets [16:23:38]CheckFolder done [16:23:38]ProducePacketName [16:23:38]name=ofd_packets/00028976 [16:23:38]NVStorageSaveData ofd_packets/00028976 [16:23:38]File name is /storage/ofd_packets/00028976 [16:23:38]Write 301 bytes [16:23:38]NVStorageSaveData done [16:23:38]OFDSenderStorePacket done [16:23:38]KKMCreateOFDPacket done [16:23:38]NVStorageSaveData kkm_last_timestamp [16:23:38]File name is /storage/kkm_last_timestamp [16:23:38]Write 4 bytes [16:23:38]NVStorageSaveData done [16:23:38]ExternCall_PrintAddStr [16:23:38]wPrintStart [16:23:38]Write to MH i2c: 01 00 00 6C 4D B9 [16:23:38]Write i2c OK [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: 01 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: 01 07 00 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: 01 07 00 6C 4D 00 00 00 00 00 FF 0F CE [16:23:38]RasterBufferAndPrint [16:23:38]line Счет N : (1)347337 [16:23:38]line ИНН: 02508201610067 [16:23:38]line Контрольно-Кассовый Чек [16:23:38]line ПРОДАЖА [16:23:38]line ТРК (МРК, ГНК) : 42 [16:23:38]line Товар: 2710124130 [16:23:38]line Аи-92-К-5 [16:23:38]line 12.570 * 64.30 [16:23:38]line = 808.25 [16:23:38]line НДС 12% НСП 1% [16:23:38]line > о реализуемом товаре [16:23:38]line ОКРУГЛЕНИЕ: -0.25 [16:23:38]line ИТОГО: 808.00 [16:23:38]line Внесено: 808.00 [16:23:38]line СДАЧА: 0.00 [16:23:38]line НСП 1% : 7.15 [16:23:38]line НДС 12% : 85.83 [16:23:38]line Наличными: 808.00 [16:23:38]line Безнал.: 0.00 [16:23:38]line Место: АЗС № 108 "Партнер Нефть" [16:23:38]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:23:38]line СНО: Общий режим [16:23:38]line Чек 183 13.04.2024 16:23 [16:23:38]line Смена: 115 ФФД: 1.0 [16:23:38]line ЗНМ: 0300000027 [16:23:38]line РНМ: 0000138879044617 [16:23:38]line Версия ККМ: 001 [16:23:38]line ФМ: 0000000000963154 [16:23:38]line ФД: 28976 [16:23:38]line ФПД: 50491617967967 [16:23:38]line 1/tax-web-control/client/api/v1/ticket?date=20240413T162342&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28976&fm=50491617967967&tin=02508201610067®Number=0000138879044617&sum=80800 [16:23:39]OFD Sender: Processing packet 28976 [packets to send 8, broken 7] [16:23:39]ProducePacketName [16:23:39]name=ofd_packets/00028976 [16:23:39]OFD Sender: To server: pG, [16:23:39]CommunicateWithHost lk.salyk.kg:30040 [16:23:39]ConnectInit lk.salyk.kg [16:23:39]written 0, free lines is 4095 [16:23:39]Connected sock=10 [16:23: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 31 35 34 0F 01 00 00 82 F6 07 01 02 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1A 31 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B9 3B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 3B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 21 00 00 00 00 07 04 06 00 A0 3B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 8E B1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 30 71 00 00 35 04 06 00 2D EB FE F3 FF 5F 3F 3D 9C 5B A4 DA 4F 71 [16:23:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 91 BF 47 00 67 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 31 35 34 10 04 04 00 30 71 00 00 F4 03 04 00 35 5C 1A 66 B6 04 01 00 00 68 F6 75 05 B7 4E 58 F0 [16:23:39]CommunicateWithHost err = 0 [16:23:39]CheckOFDResponse [16:23:39]1017 (14) - 77093643461234 [16:23:39]1041 (16) - 0000000000963154 [16:23:39]1040 (4) - 28976 [16:23:39]1012 (4) - 13.04.2024 10:19 [16:23:39]1206 (1) - 0 [16:23:39]OFD Sender: Remove packet 28976 [16:23:39]ProducePacketName [16:23:39]name=ofd_packets/00028976 [16:23:39]NVStorageDeleteData [16:23:39]Write to MH i2c: 01 00 00 96 4D E3 [16:23:39]Write i2c OK [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: 01 [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: 01 07 00 [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: 01 07 00 96 4D 00 00 00 00 00 C2 0C B8 [16:23:39]RasterBufferAndPrint [16:23:39]line [16:23:39]line [16:23:39]line [16:23:39]line [16:23:39]line [16:23:39]written 0, free lines is 3270 [16:23:39]MH_Cut [16:23:39]Write to MH i2c: D1 01 00 9D 4D 01 BC [16:23:39]Write i2c OK [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: D1 [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: D1 01 00 [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: D1 01 00 9D 4D 00 BB [16:23:39]Write to MH i2c: 01 00 00 9E 4D EB [16:23:39]Write i2c OK [16:23:39]MH_I2C_Read... [16:23:39]OFD Sender: No OFD packet to send [16:23:40]*** Cut start [16:23:40]*** Partial cut [16:23:40]*** CUTSNS_PIN = 1 [16:23:40]*** CUTSNS_PIN = 0 [16:23:40]*** Brake cut motor [16:23:40]Read from MH i2c: 01 [16:23:40]MH_I2C_Read... [16:23:40]*** Stop cut motor [16:23:40]*** Cut end [16:23:40]Read from MH i2c: 01 07 00 [16:23:40]MH_I2C_Read... [16:23:40]Read from MH i2c: 01 07 00 9E 4D 00 00 00 00 00 FF 0F 00 [16:23:40]process_action close_receipt done [16:23:40]requested_data is exist [16:23:40]produce_requested_data [16:23:40]requested_item fm.sn is exist - process it [16:23:40]wFMCommunicate request_size=4 [16:23:40]MH_SAM_APDU [16:23:40]CAPDU: 80 11 00 00 [16:23:40]Write to MH i2c: E2 08 00 9F 4D 80 11 00 00 00 00 00 00 66 [16:23:40]Write i2c OK [16:23:40]MH_I2C_Read... [16:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:40]Read from MH i2c: E2 [16:23:40]MH_I2C_Read... [16:23:40]Read from MH i2c: E2 17 00 [16:23:40]MH_I2C_Read... [16:23:40]Read from MH i2c: E2 17 00 9F 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B5 [16:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:23:40]wFMCommunicate OK [16:23:40]requested_item fd.num is exist - process it [16:23:40]SAM_PROTO_GetFieldsCounters [16:23:40]wFMCommunicate request_size=4 [16:23:40]MH_SAM_APDU [16:23:40]CAPDU: 80 13 00 00 [16:23:40]Write to MH i2c: E2 08 00 A0 4D 80 13 00 00 00 00 00 00 69 [16:23:41]Write i2c OK [16:23:41]MH_I2C_Read... [16:23:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:41]Read from MH i2c: E2 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: E2 62 00 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: E2 62 00 A0 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 30 71 00 00 0E 04 04 00 73 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 E0 [16:23: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 30 71 00 00 0E 04 04 00 73 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 [16:23:41]wFMCommunicate OK [16:23:41]SAM_PROTO_GetFieldsCounters done [16:23:41]requested_item shift.num is exist - process it [16:23:41]requested_item shift.opened is exist - process it [16:23:41]req_shift_opened [16:23:41]FM_GetShiftState [16:23:41]SAM_PROTO_GetShiftState [16:23:41]wFMCommunicate request_size=4 [16:23:41]MH_SAM_APDU [16:23:41]CAPDU: 80 13 01 00 [16:23:41]Write to MH i2c: E2 08 00 A1 4D 80 13 01 00 00 00 00 00 6B [16:23:41]Write i2c OK [16:23:41]MH_I2C_Read... [16:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:41]Read from MH i2c: E2 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: E2 0E 00 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: E2 0E 00 A1 4D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 84 [16:23:41]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:23:41]wFMCommunicate OK [16:23:41]SAM_PROTO_GetShiftState done [16:23:41]FM_GetShiftState done [16:23:41]req_shift_opened done [16:23:41]requested_item shift.open_date is exist - process it [16:23:41]req_shift_open_date [16:23:41]req_shift_open_date done [16:23:41]produce_requested_data done [16:23:41]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28976,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [16:23:41]process_action_free close_receipt [16:23:41]json_value_free [16:23:41]json_value_free done [16:23:41]process_json_proto returns [16:23:41]Send response to host [16:23:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28976,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [16:23:41]free response buf [16:23:41]execute_script done [16:23:41]execute_script returns [16:23:41]free content buf [16:23:41]Sock 7.Close socket [16:23:41]Sock 7.Thread stoped [16:23:43]accept exits with 9 [16:23:43]New connection [16:23:43]New thread 3066928484 created [16:23:43]Thread 3066785124 joined [16:23:43]Waiting for new connection... [16:23:43] Sock 9.Parse request [16:23:43]Sock 9.Check first char [16:23:43]Sock 9.First char is OK [16:23:43]request: POST /json_proto HTTP/1.0 [16:23:43]Method: POST [16:23:43]URL: /json_proto [16:23:43]Method is POST - this is cgi request [16:23:43]url: /json_proto [16:23:43]query_string will be loaded in cgi processing [16:23:43]execute_cgi json_proto POST (null) [16:23:43]execute_cgi path=json_proto method=POST [16:23:43]POST find Content-Length [16:23:43]Host: 172.17.33.3:8080 [16:23:43]Content-Length: 1166 [16:23:43]Content-Type: application/json [16:23:43] [16:23:43]POST finish read [16:23:43]Found Content-Length = 1166 [16:23:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347336\u000A13.04.2024 16:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 3620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30139945\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:43]execute_script... [16:23:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347336\u000A13.04.2024 16:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 3620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30139945\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:43]POST & json_proto [16:23:43]process_json_proto [16:23:43]json parsed OK: [16:23:43]protocol is kg_v1.0 [16:23:43]action value=print_text [16:23:43]process_action print_text [16:23:43]cmd_print_text [16:23:43]ExternCall_PrintAddStr [16:23:43]wPrintStart [16:23:43]Write to MH i2c: 01 00 00 A2 4D EF [16:23:43]Write i2c OK [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: 01 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: 01 07 00 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: 01 07 00 A2 4D 00 00 00 00 00 FF 0F 04 [16:23:43]RasterBufferAndPrint [16:23:43]line *****ТОВАРНЫЙ ЧЕК***** [16:23:43]line АЗС 108 [16:23:43]line Партнер нефть [16:23:43]line 02508201610067 [16:23:43]line Кассир : Шадыканова Ж. [16:23:43]line Счет N : (1)347336 [16:23:43]line 13.04.2024 16:05 [16:23:43]line ПРОДАЖА [16:23:43]line ТРК (МРК, ГНК): 11 [16:23:43]line Вид ГСМ : 2710194210 [16:23:43]line ДТ-К-5 [16:23:43]line 50.000 x 72.40 [16:23:43]line ИТОГ: 3620.00 [16:23:43]line Тип оплаты: Талоны: ТК ГПНА Online [16:23:43]line 30139945 [16:23:43]line ______________________ [16:23:43]line (подпись) [16:23:43]written 0, free lines is 4095 [16:23:43]Write to MH i2c: 01 00 00 B7 4D 04 [16:23:43]Write i2c OK [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: 01 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: 01 07 00 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: 01 07 00 B7 4D 00 00 00 00 00 F3 0D 0B [16:23:43]RasterBufferAndPrint [16:23:43]line [16:23:43]line [16:23:43]line [16:23:43]line [16:23:43]line [16:23:43]written 0, free lines is 3574 [16:23:43]MH_Cut [16:23:43]Write to MH i2c: D1 01 00 BE 4D 01 DD [16:23:43]Write i2c OK [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: D1 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: D1 01 00 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: D1 01 00 BE 4D 00 DC [16:23:43]Write to MH i2c: 01 00 00 BF 4D 0C [16:23:43]Write i2c OK [16:23:43]MH_I2C_Read... [16:23:44]*** Cut start [16:23:44]*** Partial cut [16:23:44]*** CUTSNS_PIN = 1 [16:23:44]*** CUTSNS_PIN = 0 [16:23:44]*** Brake cut motor [16:23:44]Read from MH i2c: 01 [16:23:44]MH_I2C_Read... [16:23:44]*** Stop cut motor [16:23:44]*** Cut end [16:23:44]Read from MH i2c: 01 07 00 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: 01 07 00 BF 4D 00 00 00 00 00 FF 0F 21 [16:23:44]process_action print_text done [16:23:44]requested_data is exist [16:23:44]produce_requested_data [16:23:44]requested_item fm.sn is exist - process it [16:23:44]wFMCommunicate request_size=4 [16:23:44]MH_SAM_APDU [16:23:44]CAPDU: 80 11 00 00 [16:23:44]Write to MH i2c: E2 08 00 C0 4D 80 11 00 00 00 00 00 00 87 [16:23:44]Write i2c OK [16:23:44]MH_I2C_Read... [16:23:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:44]Read from MH i2c: E2 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: E2 17 00 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: E2 17 00 C0 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D6 [16:23:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:23:44]wFMCommunicate OK [16:23:44]requested_item fd.num is exist - process it [16:23:44]SAM_PROTO_GetFieldsCounters [16:23:44]wFMCommunicate request_size=4 [16:23:44]MH_SAM_APDU [16:23:44]CAPDU: 80 13 00 00 [16:23:44]Write to MH i2c: E2 08 00 C1 4D 80 13 00 00 00 00 00 00 8A [16:23:44]Write i2c OK [16:23:44]MH_I2C_Read... [16:23:44]OFD Sender: No OFD packet to send [16:23:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:44]Read from MH i2c: E2 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: E2 62 00 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: E2 62 00 C1 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 30 71 00 00 0E 04 04 00 73 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 01 [16:23: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 30 71 00 00 0E 04 04 00 73 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 [16:23:44]wFMCommunicate OK [16:23:44]SAM_PROTO_GetFieldsCounters done [16:23:44]requested_item shift.num is exist - process it [16:23:44]requested_item shift.opened is exist - process it [16:23:44]req_shift_opened [16:23:44]FM_GetShiftState [16:23:44]SAM_PROTO_GetShiftState [16:23:44]wFMCommunicate request_size=4 [16:23:44]MH_SAM_APDU [16:23:44]CAPDU: 80 13 01 00 [16:23:44]Write to MH i2c: E2 08 00 C2 4D 80 13 01 00 00 00 00 00 8C [16:23:44]Write i2c OK [16:23:44]MH_I2C_Read... [16:23:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:44]Read from MH i2c: E2 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: E2 0E 00 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: E2 0E 00 C2 4D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A5 [16:23:44]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:23:44]wFMCommunicate OK [16:23:44]SAM_PROTO_GetShiftState done [16:23:44]FM_GetShiftState done [16:23:44]req_shift_opened done [16:23:44]requested_item shift.open_date is exist - process it [16:23:44]req_shift_open_date [16:23:44]req_shift_open_date done [16:23:44]produce_requested_data done [16:23:44]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28976,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [16:23:44]process_action_free print_text [16:23:44]json_value_free [16:23:44]json_value_free done [16:23:44]process_json_proto returns [16:23:44]Send response to host [16:23:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28976,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [16:23:44]free response buf [16:23:44]execute_script done [16:23:44]execute_script returns [16:23:44]free content buf [16:23:44]Sock 9.Close socket [16:23:44]Sock 9.Thread stoped [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:19]OFD Sender: No OFD packet to send [16:24:24]OFD Sender: No OFD packet to send [16:24:29]OFD Sender: No OFD packet to send [16:24:34]OFD Sender: No OFD packet to send [16:24:39]OFD Sender: No OFD packet to send [16:24:44]OFD Sender: No OFD packet to send [16:24:49]OFD Sender: No OFD packet to send [16:24:54]OFD Sender: No OFD packet to send [16:24:59]OFD Sender: No OFD packet to send [16:25:04]OFD Sender: No OFD packet to send [16:25:09]OFD Sender: No OFD packet to send [16:25:14]OFD Sender: No OFD packet to send [16:25:19]OFD Sender: No OFD packet to send [16:25:24]OFD Sender: No OFD packet to send [16:25:29]OFD Sender: No OFD packet to send [16:25:34]OFD Sender: No OFD packet to send [16:25:39]OFD Sender: No OFD packet to send [16:25:44]OFD Sender: No OFD packet to send [16:25:49]OFD Sender: No OFD packet to send [16:25:54]OFD Sender: No OFD packet to send [16:25:59]OFD Sender: No OFD packet to send [16:26:04]OFD Sender: No OFD packet to send [16:26:09]OFD Sender: No OFD packet to send [16:26:14]OFD Sender: No OFD packet to send [16:26:19]OFD Sender: No OFD packet to send [16:26:24]OFD Sender: No OFD packet to send [16:26:29]OFD Sender: No OFD packet to send [16:26:34]OFD Sender: No OFD packet to send [16:26:39]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:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:10]OFD Sender: No OFD packet to send [16:27:15]OFD Sender: No OFD packet to send [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:30]OFD Sender: No OFD packet to send [16:27:35]OFD Sender: No OFD packet to send [16:27:40]OFD Sender: No OFD packet to send [16:27:42]accept exits with 7 [16:27:42]New connection [16:27:42]New thread 3066785124 created [16:27:42]Thread 3066928484 joined [16:27:42]Waiting for new connection... [16:27:42] Sock 7.Parse request [16:27:42]Sock 7.Check first char [16:27:42]Sock 7.First char is OK [16:27:42]request: POST /json_proto HTTP/1.0 [16:27:42]Method: POST [16:27:42]URL: /json_proto [16:27:42]Method is POST - this is cgi request [16:27:42]url: /json_proto [16:27:42]query_string will be loaded in cgi processing [16:27:42]execute_cgi json_proto POST (null) [16:27:42]execute_cgi path=json_proto method=POST [16:27:42]POST find Content-Length [16:27:42]Host: 172.17.33.3:8080 [16:27:42]Content-Length: 671 [16:27:42]Content-Type: application/json [16:27:42] [16:27:42]POST finish read [16:27:42]Found Content-Length = 671 [16:27:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 12.260, "sum" : 800.58, "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:27:42]execute_script... [16:27:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 12.260, "sum" : 800.58, "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:27:42]POST & json_proto [16:27:42]process_json_proto [16:27:42]json parsed OK: [16:27:42]protocol is kg_v1.0 [16:27:42]action value=close_receipt [16:27:42]process_action close_receipt [16:27:42]cmd_close_receipt [16:27:42]MH_GetDate [16:27:42]Write to MH i2c: F0 00 00 C3 4D FF [16:27:42]Write i2c OK [16:27:42]MH_I2C_Read... [16:27:42]Read from MH i2c: F0 [16:27:42]MH_I2C_Read... [16:27:42]Read from MH i2c: F0 09 00 [16:27:42]MH_I2C_Read... [16:27:42]Read from MH i2c: F0 09 00 C3 4D 00 84 B2 1A 66 23 5B 8F 65 30 [16:27:42]GetLastDocTimeStamp 1713025422 [16:27:42]current date 1713025668 [16:27:42]FM_GetShiftState [16:27:42]SAM_PROTO_GetShiftState [16:27:42]wFMCommunicate request_size=4 [16:27:42]MH_SAM_APDU [16:27:42]CAPDU: 80 13 01 00 [16:27:42]Write to MH i2c: E2 08 00 C4 4D 80 13 01 00 00 00 00 00 8E [16:27:42]Write i2c OK [16:27:42]MH_I2C_Read... [16:27:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:42]Read from MH i2c: E2 [16:27:42]MH_I2C_Read... [16:27:42]Read from MH i2c: E2 0E 00 [16:27:42]MH_I2C_Read... [16:27:42]Read from MH i2c: E2 0E 00 C4 4D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A7 [16:27:42]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:27:42]wFMCommunicate OK [16:27:42]SAM_PROTO_GetShiftState done [16:27:42]FM_GetShiftState done [16:27:42]opened in 1712967615 [16:27:42]opened+sec_in_day 1713054015 [16:27:42]quantity*price = 80057 [16:27:42]sum+1 = 80059 [16:27:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 184 13.04.2024 16:27 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28977 ФПД: 236574308328852 1/tax-web-control/client/api/v1/ticket?date=20240413T162748&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28977&fm=236574308328852&tin=02508201610067®Number=0000138879044617&sum=80000 [16:27:44]StoreToDocumentArchive [16:27:44]shift 115 fd 28977 [16:27:44]save to /storage/0115/doc_00028977 [16:27:44]save last doc name /storage/0115/doc_00028977 to /storage/kkm_last_doc_name [16:27:44]save OK [16:27:44]Clear old archive folders... [16:27:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:27:44]tlvbuf is 012301D0 [16:27:44]SAM_PROTO_ClearQueue [16:27:44]wFMCommunicate request_size=4 [16:27:44]MH_SAM_APDU [16:27:44]CAPDU: 80 09 00 00 [16:27:44]Write to MH i2c: E2 08 00 D1 4D 80 09 00 00 00 00 00 00 90 [16:27:44]Write i2c OK [16:27:44]MH_I2C_Read... [16:27:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:44]Read from MH i2c: E2 [16:27:44]MH_I2C_Read... [16:27:44]Read from MH i2c: E2 03 00 [16:27:44]MH_I2C_Read... [16:27:44]Read from MH i2c: E2 03 00 D1 4D 00 90 00 92 [16:27:44]RAPDU: 90 00 [16:27:44]wFMCommunicate OK [16:27:44]SAM_PROTO_ClearQueue done [16:27:44]KKMCreateOFDPacket [16:27:44]OFDProtocolAddRootSTLVToBuf [16:27:44]FM_MakeSignedData [16:27:44]FM_MakeSignedData [16:27:44]SAM_PROTO_SignData [16:27:44]wFMCommunicate request_size=4 [16:27:44]MH_SAM_APDU [16:27:44]CAPDU: 80 0D 01 02 [16:27:44]Write to MH i2c: E2 08 00 D2 4D 80 0D 01 02 00 00 00 00 98 [16:27:44]Write i2c OK [16:27:44]MH_I2C_Read... [16:27:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:44]Read from MH i2c: E2 [16:27:44]MH_I2C_Read... [16:27:44]Read from MH i2c: E2 03 00 [16:27:44]MH_I2C_Read... [16:27:44]Read from MH i2c: E2 03 00 D2 4D 00 90 00 93 [16:27:44]RAPDU: 90 00 [16:27:44]wFMCommunicate OK [16:27:44]wFMCommunicate request_size=255 [16:27:44]MH_SAM_APDU [16:27:44]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BA 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 B8 00 00 00 F4 03 04 00 84 B2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 31 71 00 00 35 04 06 00 [16:27:44]Write to MH i2c: E2 02 01 D3 4D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BA 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 B8 00 00 00 F4 03 04 00 84 B2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 31 71 00 00 35 04 06 00 00 00 1C [16:27:44]Write i2c OK [16:27:44]MH_I2C_Read... [16:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:44]Read from MH i2c: E2 [16:27:44]MH_I2C_Read... [16:27:44]Read from MH i2c: E2 03 00 [16:27:44]MH_I2C_Read... [16:27:44]Read from MH i2c: E2 03 00 D3 4D 00 90 00 94 [16:27:44]RAPDU: 90 00 [16:27:44]wFMCommunicate OK [16:27:44]wFMCommunicate request_size=11 [16:27:44]MH_SAM_APDU [16:27:44]CAPDU: 80 0D 02 02 06 D7 29 BF 9C 65 94 [16:27:44]Write to MH i2c: E2 0E 00 D4 4D 80 0D 02 02 06 00 D7 29 BF 9C 65 94 00 00 FB [16:27:44]Write i2c OK [16:27:44]MH_I2C_Read... [16:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:44]Read from MH i2c: E2 [16:27:44]MH_I2C_Read... [16:27:44]Read from MH i2c: E2 03 00 [16:27:44]MH_I2C_Read... [16:27:44]Read from MH i2c: E2 03 00 D4 4D 00 90 00 95 [16:27:44]RAPDU: 90 00 [16:27:44]wFMCommunicate OK [16:27:44]wFMCommunicate request_size=4 [16:27:44]MH_SAM_APDU [16:27:44]CAPDU: 80 0D 03 02 [16:27:44]Write to MH i2c: E2 08 00 D5 4D 80 0D 03 02 00 00 00 00 9D [16:27:44]Write i2c OK [16:27:44]MH_I2C_Read... [16:27:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:44]Read from MH i2c: E2 [16:27:44]MH_I2C_Read... [16:27:44]Read from MH i2c: E2 0B 00 [16:27:44]MH_I2C_Read... [16:27:44]Read from MH i2c: E2 0B 00 D5 4D 00 86 38 B6 85 36 FB D3 47 90 00 E2 [16:27:44]RAPDU: 86 38 B6 85 36 FB D3 47 90 00 [16:27:44]wFMCommunicate OK [16:27:44]SAM_PROTO_SignData done [16:27:44]FM_MakeSignedData done [16:27:44]CreateOFDProtocolMessage [16:27:44]wFMCommunicate request_size=4 [16:27:44]MH_SAM_APDU [16:27:44]CAPDU: 80 11 00 00 [16:27:44]Write to MH i2c: E2 08 00 D6 4D 80 11 00 00 00 00 00 00 9D [16:27:44]Write i2c OK [16:27:44]MH_I2C_Read... [16:27:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:44]Read from MH i2c: E2 [16:27:44]MH_I2C_Read... [16:27:44]Read from MH i2c: E2 17 00 [16:27:44]MH_I2C_Read... [16:27:44]Read from MH i2c: E2 17 00 D6 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EC [16:27:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:27:44]wFMCommunicate OK [16:27:44]CreateOFDProtocolMessage done [16:27:44]OFDSenderStorePacket 28977 [16:27:44]StoreOFDPacket docnum=28977 [16:27:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 CF DA 08 01 44 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BA 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 B8 00 00 00 F4 03 04 00 84 B2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 31 71 00 00 35 04 06 00 D7 29 BF 9C 65 94 86 38 B6 85 36 FB D3 47 [16:27:44]CheckFolder [16:27:44]dirname=/storage/ofd_packets [16:27:44]CheckFolder done [16:27:44]ProducePacketName [16:27:44]name=ofd_packets/00028977 [16:27:44]NVStorageSaveData ofd_packets/00028977 [16:27:44]File name is /storage/ofd_packets/00028977 [16:27:44]Write 302 bytes [16:27:44]NVStorageSaveData done [16:27:44]OFDSenderStorePacket done [16:27:44]KKMCreateOFDPacket done [16:27:44]NVStorageSaveData kkm_last_timestamp [16:27:44]File name is /storage/kkm_last_timestamp [16:27:44]Write 4 bytes [16:27:44]NVStorageSaveData done [16:27:44]ExternCall_PrintAddStr [16:27:44]wPrintStart [16:27:44]Write to MH i2c: 01 00 00 D7 4D 24 [16:27:44]Write i2c OK [16:27:44]MH_I2C_Read... [16:27:44]Read from MH i2c: 01 [16:27:44]MH_I2C_Read... [16:27:44]Read from MH i2c: 01 07 00 [16:27:44]MH_I2C_Read... [16:27:44]Read from MH i2c: 01 07 00 D7 4D 00 00 00 00 00 FF 0F 39 [16:27:44]RasterBufferAndPrint [16:27:44]line Счет N : (1)347338 [16:27:44]line ИНН: 02508201610067 [16:27:44]line Контрольно-Кассовый Чек [16:27:44]line ПРОДАЖА [16:27:44]line ТРК (МРК, ГНК) : 31 [16:27:44]line Товар: 2710124130 [16:27:44]line SUPER-92-К-5 [16:27:44]line 12.260 * 65.30 [16:27:44]line = 800.58 [16:27:44]line НДС 12% НСП 1% [16:27:44]line > о реализуемом товаре [16:27:44]line ОКРУГЛЕНИЕ: -0.58 [16:27:44]line ИТОГО: 800.00 [16:27:44]line Внесено: 800.00 [16:27:44]line СДАЧА: 0.00 [16:27:44]line НСП 1% : 7.08 [16:27:44]line НДС 12% : 85.02 [16:27:44]line Наличными: 800.00 [16:27:44]line Безнал.: 0.00 [16:27:44]line Место: АЗС № 108 "Партнер Нефть" [16:27:44]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:27:44]line СНО: Общий режим [16:27:44]line Чек 184 13.04.2024 16:27 [16:27:44]line Смена: 115 ФФД: 1.0 [16:27:44]line ЗНМ: 0300000027 [16:27:44]line РНМ: 0000138879044617 [16:27:44]line Версия ККМ: 001 [16:27:44]line ФМ: 0000000000963154 [16:27:44]line ФД: 28977 [16:27:44]line ФПД: 236574308328852 [16:27:44]line 1/tax-web-control/client/api/v1/ticket?date=20240413T162748&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28977&fm=236574308328852&tin=02508201610067®Number=0000138879044617&sum=80000 [16:27:44]written 0, free lines is 4095 [16:27:44]OFD Sender: Processing packet 28977 [packets to send 8, broken 7] [16:27:44]ProducePacketName [16:27:44]name=ofd_packets/00028977 [16:27:44]OFD Sender: To server: pG, [16:27:44]CommunicateWithHost lk.salyk.kg:30040 [16:27:44]ConnectInit lk.salyk.kg [16:27:44]Connected sock=10 [16:27:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 CF DA 08 01 44 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BA 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 B8 00 00 00 F4 03 04 00 84 B2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 31 71 00 00 35 04 06 00 D7 29 BF 9C 65 94 86 38 B6 85 36 FB D3 47 [16:27:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6B 9D 47 00 74 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 31 35 34 10 04 04 00 31 71 00 00 F4 03 04 00 2A 5D 1A 66 B6 04 01 00 00 F5 F6 2C F3 24 AB 11 23 [16:27:44]CommunicateWithHost err = 0 [16:27:44]CheckOFDResponse [16:27:44]1017 (14) - 77093643461234 [16:27:44]1041 (16) - 0000000000963154 [16:27:44]1040 (4) - 28977 [16:27:44]1012 (4) - 13.04.2024 10:23 [16:27:44]1206 (1) - 0 [16:27:44]OFD Sender: Remove packet 28977 [16:27:44]ProducePacketName [16:27:44]name=ofd_packets/00028977 [16:27:44]NVStorageDeleteData [16:27:45]Write to MH i2c: 01 00 00 01 4E 4F [16:27:45]Write i2c OK [16:27:45]MH_I2C_Read... [16:27:45]Read from MH i2c: 01 [16:27:45]MH_I2C_Read... [16:27:45]Read from MH i2c: 01 07 00 [16:27:45]MH_I2C_Read... [16:27:45]Read from MH i2c: 01 07 00 01 4E 00 00 00 00 00 D1 0C 33 [16:27:45]RasterBufferAndPrint [16:27:45]line [16:27:45]line [16:27:45]line [16:27:45]line [16:27:45]line [16:27:45]written 0, free lines is 3288 [16:27:45]MH_Cut [16:27:45]Write to MH i2c: D1 01 00 08 4E 01 28 [16:27:45]Write i2c OK [16:27:45]MH_I2C_Read... [16:27:45]Read from MH i2c: D1 [16:27:45]MH_I2C_Read... [16:27:45]Read from MH i2c: D1 01 00 [16:27:45]MH_I2C_Read... [16:27:45]Read from MH i2c: D1 01 00 08 4E 00 27 [16:27:45]Write to MH i2c: 01 00 00 09 4E 57 [16:27:45]Write i2c OK [16:27:45]MH_I2C_Read... [16:27:45]OFD Sender: No OFD packet to send [16:27:45]*** Cut start [16:27:45]*** Partial cut [16:27:45]*** CUTSNS_PIN = 1 [16:27:45]*** CUTSNS_PIN = 0 [16:27:46]*** Brake cut motor [16:27:46]Read from MH i2c: 01 [16:27:46]MH_I2C_Read... [16:27:46]*** Stop cut motor [16:27:46]*** Cut end [16:27:46]Read from MH i2c: 01 07 00 [16:27:46]MH_I2C_Read... [16:27:46]Read from MH i2c: 01 07 00 09 4E 00 00 00 00 00 FF 0F 6C [16:27:46]process_action close_receipt done [16:27:46]requested_data is exist [16:27:46]produce_requested_data [16:27:46]requested_item fm.sn is exist - process it [16:27:46]wFMCommunicate request_size=4 [16:27:46]MH_SAM_APDU [16:27:46]CAPDU: 80 11 00 00 [16:27:46]Write to MH i2c: E2 08 00 0A 4E 80 11 00 00 00 00 00 00 D2 [16:27:46]Write i2c OK [16:27:46]MH_I2C_Read... [16:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:46]Read from MH i2c: E2 [16:27:46]MH_I2C_Read... [16:27:46]Read from MH i2c: E2 17 00 [16:27:46]MH_I2C_Read... [16:27:46]Read from MH i2c: E2 17 00 0A 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 21 [16:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:27:46]wFMCommunicate OK [16:27:46]requested_item fd.num is exist - process it [16:27:46]SAM_PROTO_GetFieldsCounters [16:27:46]wFMCommunicate request_size=4 [16:27:46]MH_SAM_APDU [16:27:46]CAPDU: 80 13 00 00 [16:27:46]Write to MH i2c: E2 08 00 0B 4E 80 13 00 00 00 00 00 00 D5 [16:27:46]Write i2c OK [16:27:46]MH_I2C_Read... [16:27:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:46]Read from MH i2c: E2 [16:27:46]MH_I2C_Read... [16:27:46]Read from MH i2c: E2 62 00 [16:27:46]MH_I2C_Read... [16:27:46]Read from MH i2c: E2 62 00 0B 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 31 71 00 00 0E 04 04 00 73 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 50 [16:27:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 31 71 00 00 0E 04 04 00 73 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 [16:27:46]wFMCommunicate OK [16:27:46]SAM_PROTO_GetFieldsCounters done [16:27:46]requested_item shift.num is exist - process it [16:27:46]requested_item shift.opened is exist - process it [16:27:46]req_shift_opened [16:27:46]FM_GetShiftState [16:27:46]SAM_PROTO_GetShiftState [16:27:46]wFMCommunicate request_size=4 [16:27:46]MH_SAM_APDU [16:27:46]CAPDU: 80 13 01 00 [16:27:46]Write to MH i2c: E2 08 00 0C 4E 80 13 01 00 00 00 00 00 D7 [16:27:46]Write i2c OK [16:27:46]MH_I2C_Read... [16:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:46]Read from MH i2c: E2 [16:27:46]MH_I2C_Read... [16:27:46]Read from MH i2c: E2 0E 00 [16:27:46]MH_I2C_Read... [16:27:46]Read from MH i2c: E2 0E 00 0C 4E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F0 [16:27:46]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:27:46]wFMCommunicate OK [16:27:46]SAM_PROTO_GetShiftState done [16:27:46]FM_GetShiftState done [16:27:46]req_shift_opened done [16:27:46]requested_item shift.open_date is exist - process it [16:27:46]req_shift_open_date [16:27:46]req_shift_open_date done [16:27:46]produce_requested_data done [16:27:46]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28977,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [16:27:46]process_action_free close_receipt [16:27:46]json_value_free [16:27:46]json_value_free done [16:27:46]process_json_proto returns [16:27:46]Send response to host [16:27:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28977,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [16:27:46]free response buf [16:27:46]execute_script done [16:27:46]execute_script returns [16:27:46]free content buf [16:27:46]Sock 7.Close socket [16:27:46]Sock 7.Thread stoped [16:27:50]OFD Sender: No OFD packet to send [16:27:55]OFD Sender: No OFD packet to send [16:28:00]OFD Sender: No OFD packet to send [16:28:05]OFD Sender: No OFD packet to send [16:28:10]OFD Sender: No OFD packet to send [16:28:15]OFD Sender: No OFD packet to send [16:28:20]OFD Sender: No OFD packet to send [16:28:25]OFD Sender: No OFD packet to send [16:28:30]OFD Sender: No OFD packet to send [16:28:35]OFD Sender: No OFD packet to send [16:28:40]OFD Sender: No OFD packet to send [16:28:45]OFD Sender: No OFD packet to send [16:28:50]OFD Sender: No OFD packet to send [16:28:55]OFD Sender: No OFD packet to send [16:29:00]OFD Sender: No OFD packet to send [16:29:05]OFD Sender: No OFD packet to send [16:29:10]OFD Sender: No OFD packet to send [16:29:15]OFD Sender: No OFD packet to send [16:29:20]OFD Sender: No OFD packet to send [16:29:25]OFD Sender: No OFD packet to send [16:29:30]OFD Sender: No OFD packet to send [16:29:35]OFD Sender: No OFD packet to send [16:29:40]OFD Sender: No OFD packet to send [16:29:45]OFD Sender: No OFD packet to send [16:29:50]OFD Sender: No OFD packet to send [16:29:55]OFD Sender: No OFD packet to send [16:30:00]OFD Sender: No OFD packet to send [16:30:05]OFD Sender: No OFD packet to send [16:30:10]OFD Sender: No OFD packet to send [16:30:15]OFD Sender: No OFD packet to send [16:30:20]OFD Sender: No OFD packet to send [16:30:25]OFD Sender: No OFD packet to send [16:30:30]OFD Sender: No OFD packet to send [16:30:35]OFD Sender: No OFD packet to send [16:30:40]OFD Sender: No OFD packet to send [16:30:45]OFD Sender: No OFD packet to send [16:30:50]OFD Sender: No OFD packet to send [16:30:55]OFD Sender: No OFD packet to send [16:31:00]OFD Sender: No OFD packet to send [16:31:05]OFD Sender: No OFD packet to send [16:31:10]OFD Sender: No OFD packet to send [16:31:15]OFD Sender: No OFD packet to send [16:31:20]OFD Sender: No OFD packet to send [16:31:25]OFD Sender: No OFD packet to send [16:31:30]OFD Sender: No OFD packet to send [16:31:35]OFD Sender: No OFD packet to send [16:31:40]OFD Sender: No OFD packet to send [16:31:45]OFD Sender: No OFD packet to send [16:31:50]OFD Sender: No OFD packet to send [16:31:55]OFD Sender: No OFD packet to send [16:32:00]OFD Sender: No OFD packet to send [16:32:05]OFD Sender: No OFD packet to send [16:32:10]OFD Sender: No OFD packet to send [16:32:15]OFD Sender: No OFD packet to send [16:32:20]OFD Sender: No OFD packet to send [16:32:25]OFD Sender: No OFD packet to send [16:32:30]OFD Sender: No OFD packet to send [16:32:35]OFD Sender: No OFD packet to send [16:32:40]OFD Sender: No OFD packet to send [16:32:45]OFD Sender: No OFD packet to send [16:32:50]OFD Sender: No OFD packet to send [16:32:55]OFD Sender: No OFD packet to send [16:33:00]OFD Sender: No OFD packet to send [16:33:05]OFD Sender: No OFD packet to send [16:33:10]OFD Sender: No OFD packet to send [16:33:15]OFD Sender: No OFD packet to send [16:33:20]OFD Sender: No OFD packet to send [16:33:25]OFD Sender: No OFD packet to send [16:33:30]OFD Sender: No OFD packet to send [16:33:35]OFD Sender: No OFD packet to send [16:33:40]OFD Sender: No OFD packet to send [16:33:45]OFD Sender: No OFD packet to send [16:33:50]OFD Sender: No OFD packet to send [16:33:55]OFD Sender: No OFD packet to send [16:34:00]OFD Sender: No OFD packet to send [16:34:05]OFD Sender: No OFD packet to send [16:34:10]OFD Sender: No OFD packet to send [16:34:15]OFD Sender: No OFD packet to send [16:34:20]OFD Sender: No OFD packet to send [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:25]OFD Sender: No OFD packet to send [16:35:30]OFD Sender: No OFD packet to send [16:35:35]OFD Sender: No OFD packet to send [16:35:40]OFD Sender: No OFD packet to send [16:35:45]OFD Sender: No OFD packet to send [16:35:50]OFD Sender: No OFD packet to send [16:35:55]OFD Sender: No OFD packet to send [16:36:00]OFD Sender: No OFD packet to send [16:36:05]OFD Sender: No OFD packet to send [16:36:10]OFD Sender: No OFD packet to send [16:36:15]OFD Sender: No OFD packet to send [16:36:20]OFD Sender: No OFD packet to send [16:36:25]OFD Sender: No OFD packet to send [16:36:30]OFD Sender: No OFD packet to send [16:36:35]OFD Sender: No OFD packet to send [16:36:40]OFD Sender: No OFD packet to send [16:36:45]OFD Sender: No OFD packet to send [16:36:50]OFD Sender: No OFD packet to send [16:36:55]OFD Sender: No OFD packet to send [16:37:00]OFD Sender: No OFD packet to send [16:37:05]OFD Sender: No OFD packet to send [16:37:10]OFD Sender: No OFD packet to send [16:37:15]OFD Sender: No OFD packet to send [16:37:20]OFD Sender: No OFD packet to send [16:37:25]OFD Sender: No OFD packet to send [16:37:30]OFD Sender: No OFD packet to send [16:37:35]OFD Sender: No OFD packet to send [16:37:40]OFD Sender: No OFD packet to send [16:37:45]OFD Sender: No OFD packet to send [16:37:50]OFD Sender: No OFD packet to send [16:37:55]OFD Sender: No OFD packet to send [16:38:00]OFD Sender: No OFD packet to send [16:38:05]OFD Sender: No OFD packet to send [16:38:10]OFD Sender: No OFD packet to send [16:38:15]OFD Sender: No OFD packet to send [16:38:20]OFD Sender: No OFD packet to send [16:38:25]OFD Sender: No OFD packet to send [16:38:30]OFD Sender: No OFD packet to send [16:38:35]OFD Sender: No OFD packet to send [16:38:40]OFD Sender: No OFD packet to send [16:38:45]OFD Sender: No OFD packet to send [16:38:50]OFD Sender: No OFD packet to send [16:38:55]OFD Sender: No OFD packet to send [16:39:00]OFD Sender: No OFD packet to send [16:39:05]OFD Sender: No OFD packet to send [16:39:10]OFD Sender: No OFD packet to send [16:39:15]OFD Sender: No OFD packet to send [16:39:20]OFD Sender: No OFD packet to send [16:39:25]OFD Sender: No OFD packet to send [16:39:30]OFD Sender: No OFD packet to send [16:39:35]OFD Sender: No OFD packet to send [16:39:40]OFD Sender: No OFD packet to send [16:39:45]OFD Sender: No OFD packet to send [16:39:50]OFD Sender: No OFD packet to send [16:39:55]OFD Sender: No OFD packet to send [16:40:01]OFD Sender: No OFD packet to send [16:40:06]OFD Sender: No OFD packet to send [16:40:11]OFD Sender: No OFD packet to send [16:40:16]OFD Sender: No OFD packet to send [16:40:21]OFD Sender: No OFD packet to send [16:40:26]OFD Sender: No OFD packet to send [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:46]OFD Sender: No OFD packet to send [16:40:51]OFD Sender: No OFD packet to send [16:40:56]OFD Sender: No OFD packet to send [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:48]accept exits with 9 [16:41:48]New connection [16:41:48]New thread 3066928484 created [16:41:48]Thread 3066785124 joined [16:41:48]Waiting for new connection... [16:41:48] Sock 9.Parse request [16:41:48]Sock 9.Check first char [16:41:48]Sock 9.First char is OK [16:41:48]request: POST /json_proto HTTP/1.0 [16:41:48]Method: POST [16:41:48]URL: /json_proto [16:41:48]Method is POST - this is cgi request [16:41:48]url: /json_proto [16:41:48]query_string will be loaded in cgi processing [16:41:48]execute_cgi json_proto POST (null) [16:41:48]execute_cgi path=json_proto method=POST [16:41:48]POST find Content-Length [16:41:48]Host: 172.17.33.3:8080 [16:41:48]Content-Length: 674 [16:41:48]Content-Type: application/json [16:41:48] [16:41:48]POST finish read [16:41:48]Found Content-Length = 674 [16:41:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 6.910, "sum" : 500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:48]execute_script... [16:41: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)347339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 6.910, "sum" : 500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:48]POST & json_proto [16:41:48]process_json_proto [16:41:48]json parsed OK: [16:41:48]protocol is kg_v1.0 [16:41:48]action value=close_receipt [16:41:48]process_action close_receipt [16:41:48]cmd_close_receipt [16:41:48]MH_GetDate [16:41:48]Write to MH i2c: F0 00 00 0D 4E 4A [16:41:48]Write i2c OK [16:41:48]MH_I2C_Read... [16:41:48]Read from MH i2c: F0 [16:41:48]MH_I2C_Read... [16:41:48]Read from MH i2c: F0 09 00 [16:41:48]MH_I2C_Read... [16:41:48]Read from MH i2c: F0 09 00 0D 4E 00 D2 B5 1A 66 23 5B 8F 65 CC [16:41:48]GetLastDocTimeStamp 1713025668 [16:41:48]current date 1713026514 [16:41:48]FM_GetShiftState [16:41:48]SAM_PROTO_GetShiftState [16:41:48]wFMCommunicate request_size=4 [16:41:48]MH_SAM_APDU [16:41:48]CAPDU: 80 13 01 00 [16:41:48]Write to MH i2c: E2 08 00 0E 4E 80 13 01 00 00 00 00 00 D9 [16:41:48]Write i2c OK [16:41:48]MH_I2C_Read... [16:41:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:48]Read from MH i2c: E2 [16:41:48]MH_I2C_Read... [16:41:48]Read from MH i2c: E2 0E 00 [16:41:48]MH_I2C_Read... [16:41:48]Read from MH i2c: E2 0E 00 0E 4E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F2 [16:41:48]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:41:48]wFMCommunicate OK [16:41:48]SAM_PROTO_GetShiftState done [16:41:48]FM_GetShiftState done [16:41:48]opened in 1712967615 [16:41:48]opened+sec_in_day 1713054015 [16:41:48]quantity*price = 50028 [16:41:48]sum+1 = 50029 [16:41:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 185 13.04.2024 16:41 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28978 ФПД: 90896258661992 1/tax-web-control/client/api/v1/ticket?date=20240413T164154&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28978&fm=90896258661992&tin=02508201610067®Number=0000138879044617&sum=50000 [16:41:49]StoreToDocumentArchive [16:41:49]shift 115 fd 28978 [16:41:49]save to /storage/0115/doc_00028978 [16:41:49]save last doc name /storage/0115/doc_00028978 to /storage/kkm_last_doc_name [16:41:49]save OK [16:41:49]Clear old archive folders... [16:41:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:41:49]tlvbuf is 011CB530 [16:41:49]SAM_PROTO_ClearQueue [16:41:49]wFMCommunicate request_size=4 [16:41:49]MH_SAM_APDU [16:41:49]CAPDU: 80 09 00 00 [16:41:49]Write to MH i2c: E2 08 00 1B 4E 80 09 00 00 00 00 00 00 DB [16:41:49]Write i2c OK [16:41:49]MH_I2C_Read... [16:41:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:49]Read from MH i2c: E2 [16:41:49]MH_I2C_Read... [16:41:49]Read from MH i2c: E2 03 00 [16:41:49]MH_I2C_Read... [16:41:49]Read from MH i2c: E2 03 00 1B 4E 00 90 00 DD [16:41:49]RAPDU: 90 00 [16:41:49]wFMCommunicate OK [16:41:49]SAM_PROTO_ClearQueue done [16:41:49]KKMCreateOFDPacket [16:41:49]OFDProtocolAddRootSTLVToBuf [16:41:49]FM_MakeSignedData [16:41:49]FM_MakeSignedData [16:41:49]SAM_PROTO_SignData [16:41:49]wFMCommunicate request_size=4 [16:41:49]MH_SAM_APDU [16:41:49]CAPDU: 80 0D 01 02 [16:41:49]Write to MH i2c: E2 08 00 1C 4E 80 0D 01 02 00 00 00 00 E3 [16:41:49]Write i2c OK [16:41:49]MH_I2C_Read... [16:41:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:50]Read from MH i2c: E2 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: E2 03 00 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: E2 03 00 1C 4E 00 90 00 DE [16:41:50]RAPDU: 90 00 [16:41:50]wFMCommunicate OK [16:41:50]wFMCommunicate request_size=255 [16:41:50]MH_SAM_APDU [16:41: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 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 D2 B5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 32 71 00 00 35 04 06 00 52 AB 6F 35 [16:41:50]Write to MH i2c: E2 02 01 1D 4E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 D2 B5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 32 71 00 00 35 04 06 00 52 AB 6F 35 00 00 36 [16:41:50]Write i2c OK [16:41:50]MH_I2C_Read... [16:41:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:50]Read from MH i2c: E2 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: E2 03 00 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: E2 03 00 1D 4E 00 90 00 DF [16:41:50]RAPDU: 90 00 [16:41:50]wFMCommunicate OK [16:41:50]wFMCommunicate request_size=7 [16:41:50]MH_SAM_APDU [16:41:50]CAPDU: 80 0D 02 02 02 7E 68 [16:41:50]Write to MH i2c: E2 0A 00 1E 4E 80 0D 02 02 02 00 7E 68 00 00 D0 [16:41:50]Write i2c OK [16:41:50]MH_I2C_Read... [16:41:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:50]Read from MH i2c: E2 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: E2 03 00 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: E2 03 00 1E 4E 00 90 00 E0 [16:41:50]RAPDU: 90 00 [16:41:50]wFMCommunicate OK [16:41:50]wFMCommunicate request_size=4 [16:41:50]MH_SAM_APDU [16:41:50]CAPDU: 80 0D 03 02 [16:41:50]Write to MH i2c: E2 08 00 1F 4E 80 0D 03 02 00 00 00 00 E8 [16:41:50]Write i2c OK [16:41:50]MH_I2C_Read... [16:41:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:50]Read from MH i2c: E2 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: E2 0B 00 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: E2 0B 00 1F 4E 00 22 BC B6 39 56 7D 83 51 90 00 5D [16:41:50]RAPDU: 22 BC B6 39 56 7D 83 51 90 00 [16:41:50]wFMCommunicate OK [16:41:50]SAM_PROTO_SignData done [16:41:50]FM_MakeSignedData done [16:41:50]CreateOFDProtocolMessage [16:41:50]wFMCommunicate request_size=4 [16:41:50]MH_SAM_APDU [16:41:50]CAPDU: 80 11 00 00 [16:41:50]Write to MH i2c: E2 08 00 20 4E 80 11 00 00 00 00 00 00 E8 [16:41:50]Write i2c OK [16:41:50]MH_I2C_Read... [16:41:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:50]Read from MH i2c: E2 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: E2 17 00 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: E2 17 00 20 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 37 [16:41:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:41:50]wFMCommunicate OK [16:41:50]CreateOFDProtocolMessage done [16:41:50]OFDSenderStorePacket 28978 [16:41:50]StoreOFDPacket docnum=28978 [16:41:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 A0 B4 04 01 D0 B7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 D2 B5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 32 71 00 00 35 04 06 00 52 AB 6F 35 7E 68 22 BC B6 39 56 7D 83 51 [16:41:50]CheckFolder [16:41:50]dirname=/storage/ofd_packets [16:41:50]CheckFolder done [16:41:50]ProducePacketName [16:41:50]name=ofd_packets/00028978 [16:41:50]NVStorageSaveData ofd_packets/00028978 [16:41:50]File name is /storage/ofd_packets/00028978 [16:41:50]Write 298 bytes [16:41:50]NVStorageSaveData done [16:41:50]OFDSenderStorePacket done [16:41:50]KKMCreateOFDPacket done [16:41:50]NVStorageSaveData kkm_last_timestamp [16:41:50]File name is /storage/kkm_last_timestamp [16:41:50]Write 4 bytes [16:41:50]NVStorageSaveData done [16:41:50]ExternCall_PrintAddStr [16:41:50]wPrintStart [16:41:50]Write to MH i2c: 01 00 00 21 4E 6F [16:41:50]Write i2c OK [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: 01 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: 01 07 00 [16:41:50]MH_I2C_Read... [16:41:50]Read from MH i2c: 01 07 00 21 4E 00 00 00 00 00 FF 0F 84 [16:41:50]RasterBufferAndPrint [16:41:50]line Счет N : (1)347339 [16:41:50]line ИНН: 02508201610067 [16:41:50]line Контрольно-Кассовый Чек [16:41:50]line ПРОДАЖА [16:41:50]line ТРК (МРК, ГНК) : 11 [16:41:50]line Товар: 2710194210 [16:41:50]line ДТ-К-5 [16:41:50]line 6.910 * 72.40 [16:41:50]line = 500.28 [16:41:50]line НДС 12% НСП 1% [16:41:50]line > о реализуемом товаре [16:41:50]line ОКРУГЛЕНИЕ: -0.28 [16:41:50]line ИТОГО: 500.00 [16:41:50]line Внесено: 500.00 [16:41:50]line СДАЧА: 0.00 [16:41:50]line НСП 1% : 4.43 [16:41:50]line НДС 12% : 53.13 [16:41:50]line Наличными: 500.00 [16:41:50]line Безнал.: 0.00 [16:41:50]line Место: АЗС № 108 "Партнер Нефть" [16:41:50]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:41:50]line СНО: Общий режим [16:41:50]line Чек 185 13.04.2024 16:41 [16:41:50]line Смена: 115 ФФД: 1.0 [16:41:50]line ЗНМ: 0300000027 [16:41:50]line РНМ: 0000138879044617 [16:41:50]line Версия ККМ: 001 [16:41:50]line ФМ: 0000000000963154 [16:41:50]line ФД: 28978 [16:41:50]line ФПД: 90896258661992 [16:41:50]line 1/tax-web-control/client/api/v1/ticket?date=20240413T164154&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28978&fm=90896258661992&tin=02508201610067®Number=0000138879044617&sum=50000 [16:41:50]OFD Sender: Processing packet 28978 [packets to send 8, broken 7] [16:41:50]ProducePacketName [16:41:50]name=ofd_packets/00028978 [16:41:50]OFD Sender: To server: pG, [16:41:50]CommunicateWithHost lk.salyk.kg:30040 [16:41:50]ConnectInit lk.salyk.kg [16:41:50]written 0, free lines is 4095 [16:41:50]Connected sock=10 [16:41: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 31 35 34 0C 01 00 00 A0 B4 04 01 D0 B7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 D2 B5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 32 71 00 00 35 04 06 00 52 AB 6F 35 7E 68 22 BC B6 39 56 7D 83 51 [16:41:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 74 5F 47 00 E7 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 31 35 34 10 04 04 00 32 71 00 00 F4 03 04 00 78 60 1A 66 B6 04 01 00 00 67 ED CD 55 5D BD A7 F9 [16:41:51]CommunicateWithHost err = 0 [16:41:51]CheckOFDResponse [16:41:51]1017 (14) - 77093643461234 [16:41:51]1041 (16) - 0000000000963154 [16:41:51]1040 (4) - 28978 [16:41:51]1012 (4) - 13.04.2024 10:37 [16:41:51]1206 (1) - 0 [16:41:51]OFD Sender: Remove packet 28978 [16:41:51]ProducePacketName [16:41:51]name=ofd_packets/00028978 [16:41:51]NVStorageDeleteData [16:41:51]Write to MH i2c: 01 00 00 4B 4E 99 [16:41:51]Write i2c OK [16:41:51]MH_I2C_Read... [16:41:51]Read from MH i2c: 01 [16:41:51]MH_I2C_Read... [16:41:51]Read from MH i2c: 01 07 00 [16:41:51]MH_I2C_Read... [16:41:51]Read from MH i2c: 01 07 00 4B 4E 00 00 00 00 00 B7 0C 63 [16:41:51]RasterBufferAndPrint [16:41:51]line [16:41:51]line [16:41:51]line [16:41:51]line [16:41:51]line [16:41:51]written 0, free lines is 3260 [16:41:51]MH_Cut [16:41:51]Write to MH i2c: D1 01 00 52 4E 01 72 [16:41:51]Write i2c OK [16:41:51]MH_I2C_Read... [16:41:51]Read from MH i2c: D1 [16:41:51]MH_I2C_Read... [16:41:51]Read from MH i2c: D1 01 00 [16:41:51]MH_I2C_Read... [16:41:51]Read from MH i2c: D1 01 00 52 4E 00 71 [16:41:51]Write to MH i2c: 01 00 00 53 4E A1 [16:41:51]Write i2c OK [16:41:51]MH_I2C_Read... [16:41:51]OFD Sender: No OFD packet to send [16:41:52]*** Cut start [16:41:52]*** Partial cut [16:41:52]*** CUTSNS_PIN = 1 [16:41:52]*** CUTSNS_PIN = 0 [16:41:52]*** Brake cut motor [16:41:52]Read from MH i2c: 01 [16:41:52]MH_I2C_Read... [16:41:52]*** Stop cut motor [16:41:52]*** Cut end [16:41:52]Read from MH i2c: 01 07 00 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: 01 07 00 53 4E 00 00 00 00 00 FF 0F B6 [16:41:52]process_action close_receipt done [16:41:52]requested_data is exist [16:41:52]produce_requested_data [16:41:52]requested_item fm.sn is exist - process it [16:41:52]wFMCommunicate request_size=4 [16:41:52]MH_SAM_APDU [16:41:52]CAPDU: 80 11 00 00 [16:41:52]Write to MH i2c: E2 08 00 54 4E 80 11 00 00 00 00 00 00 1C [16:41:52]Write i2c OK [16:41:52]MH_I2C_Read... [16:41:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:52]Read from MH i2c: E2 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: E2 17 00 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: E2 17 00 54 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6B [16:41:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:41:52]wFMCommunicate OK [16:41:52]requested_item fd.num is exist - process it [16:41:52]SAM_PROTO_GetFieldsCounters [16:41:52]wFMCommunicate request_size=4 [16:41:52]MH_SAM_APDU [16:41:52]CAPDU: 80 13 00 00 [16:41:52]Write to MH i2c: E2 08 00 55 4E 80 13 00 00 00 00 00 00 1F [16:41:52]Write i2c OK [16:41:52]MH_I2C_Read... [16:41:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:52]Read from MH i2c: E2 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: E2 62 00 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: E2 62 00 55 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 32 71 00 00 0E 04 04 00 73 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 9E [16:41: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 32 71 00 00 0E 04 04 00 73 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 [16:41:52]wFMCommunicate OK [16:41:52]SAM_PROTO_GetFieldsCounters done [16:41:52]requested_item shift.num is exist - process it [16:41:52]requested_item shift.opened is exist - process it [16:41:52]req_shift_opened [16:41:52]FM_GetShiftState [16:41:52]SAM_PROTO_GetShiftState [16:41:52]wFMCommunicate request_size=4 [16:41:52]MH_SAM_APDU [16:41:52]CAPDU: 80 13 01 00 [16:41:52]Write to MH i2c: E2 08 00 56 4E 80 13 01 00 00 00 00 00 21 [16:41:52]Write i2c OK [16:41:52]MH_I2C_Read... [16:41:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:52]Read from MH i2c: E2 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: E2 0E 00 [16:41:52]MH_I2C_Read... [16:41:52]Read from MH i2c: E2 0E 00 56 4E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 3A [16:41:52]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:41:52]wFMCommunicate OK [16:41:52]SAM_PROTO_GetShiftState done [16:41:52]FM_GetShiftState done [16:41:52]req_shift_opened done [16:41:52]requested_item shift.open_date is exist - process it [16:41:52]req_shift_open_date [16:41:52]req_shift_open_date done [16:41:52]produce_requested_data done [16:41:52]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28978,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [16:41:52]process_action_free close_receipt [16:41:52]json_value_free [16:41:52]json_value_free done [16:41:52]process_json_proto returns [16:41:52]Send response to host [16:41:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28978,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [16:41:52]free response buf [16:41:52]execute_script done [16:41:52]execute_script returns [16:41:52]free content buf [16:41:52]Sock 9.Close socket [16:41:52]Sock 9.Thread stoped [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:36]OFD Sender: No OFD packet to send [16:42:41]OFD Sender: No OFD packet to send [16:42:46]OFD Sender: No OFD packet to send [16:42:51]OFD Sender: No OFD packet to send [16:42:56]OFD Sender: No OFD packet to send [16:43:01]OFD Sender: No OFD packet to send [16:43:06]OFD Sender: No OFD packet to send [16:43:11]OFD Sender: No OFD packet to send [16:43:16]OFD Sender: No OFD packet to send [16:43:21]OFD Sender: No OFD packet to send [16:43:26]OFD Sender: No OFD packet to send [16:43:31]OFD Sender: No OFD packet to send [16:43:36]OFD Sender: No OFD packet to send [16:43:41]OFD Sender: No OFD packet to send [16:43:46]OFD Sender: No OFD packet to send [16:43:51]OFD Sender: No OFD packet to send [16:43:56]OFD Sender: No OFD packet to send [16:44:01]OFD Sender: No OFD packet to send [16:44:06]OFD Sender: No OFD packet to send [16:44:11]OFD Sender: No OFD packet to send [16:44:16]OFD Sender: No OFD packet to send [16:44:21]OFD Sender: No OFD packet to send [16:44:26]OFD Sender: No OFD packet to send [16:44:31]OFD Sender: No OFD packet to send [16:44:36]OFD Sender: No OFD packet to send [16:44:41]OFD Sender: No OFD packet to send [16:44:46]OFD Sender: No OFD packet to send [16:44:51]OFD Sender: No OFD packet to send [16:44:56]OFD Sender: No OFD packet to send [16:45:01]OFD Sender: No OFD packet to send [16:45:06]OFD Sender: No OFD packet to send [16:45:11]OFD Sender: No OFD packet to send [16:45:16]OFD Sender: No OFD packet to send [16:45:21]OFD Sender: No OFD packet to send [16:45:26]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [16:46:01]OFD Sender: No OFD packet to send [16:46:06]OFD Sender: No OFD packet to send [16:46:11]OFD Sender: No OFD packet to send [16:46:16]OFD Sender: No OFD packet to send [16:46:21]OFD Sender: No OFD packet to send [16:46:26]OFD Sender: No OFD packet to send [16:46:31]OFD Sender: No OFD packet to send [16:46:36]OFD Sender: No OFD packet to send [16:46:41]OFD Sender: No OFD packet to send [16:46:46]OFD Sender: No OFD packet to send [16:46:51]OFD Sender: No OFD packet to send [16:46:56]OFD Sender: No OFD packet to send [16:46:58]accept exits with 7 [16:46:58]New connection [16:46:58]New thread 3066785124 created [16:46:58]Thread 3066928484 joined [16:46:58]Waiting for new connection... [16:46:58] Sock 7.Parse request [16:46:58]Sock 7.Check first char [16:46:58]Sock 7.First char is OK [16:46:58]request: POST /json_proto HTTP/1.0 [16:46:58]Method: POST [16:46:58]URL: /json_proto [16:46:58]Method is POST - this is cgi request [16:46:58]url: /json_proto [16:46:58]query_string will be loaded in cgi processing [16:46:58]execute_cgi json_proto POST (null) [16:46:58]execute_cgi path=json_proto method=POST [16:46:58]POST find Content-Length [16:46:58]Host: 172.17.33.3:8080 [16:46:58]Content-Length: 677 [16:46:58]Content-Type: application/json [16:46:58] [16:46:58]POST finish read [16:46:58]Found Content-Length = 677 [16:46:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347340", "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" : 64.30, "quantity" : 4.670, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:58]execute_script... [16: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)347340", "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" : 64.30, "quantity" : 4.670, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:58]POST & json_proto [16:46:58]process_json_proto [16:46:58]json parsed OK: [16:46:58]protocol is kg_v1.0 [16:46:58]action value=close_receipt [16:46:58]process_action close_receipt [16:46:58]cmd_close_receipt [16:46:58]MH_GetDate [16:46:58]Write to MH i2c: F0 00 00 57 4E 94 [16:46:58]Write i2c OK [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: F0 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: F0 09 00 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: F0 09 00 57 4E 00 08 B7 1A 66 23 5B 8F 65 4E [16:46:58]GetLastDocTimeStamp 1713026514 [16:46:58]current date 1713026824 [16:46:58]FM_GetShiftState [16:46:58]SAM_PROTO_GetShiftState [16:46:58]wFMCommunicate request_size=4 [16:46:58]MH_SAM_APDU [16:46:58]CAPDU: 80 13 01 00 [16:46:58]Write to MH i2c: E2 08 00 58 4E 80 13 01 00 00 00 00 00 23 [16:46:58]Write i2c OK [16:46:58]MH_I2C_Read... [16:46:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:58]Read from MH i2c: E2 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 0E 00 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 0E 00 58 4E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 3C [16:46:58]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:46:58]wFMCommunicate OK [16:46:58]SAM_PROTO_GetShiftState done [16:46:58]FM_GetShiftState done [16:46:58]opened in 1712967615 [16:46:58]opened+sec_in_day 1713054015 [16:46:58]quantity*price = 30028 [16:46:58]sum+1 = 30029 [16:46:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 186 13.04.2024 16:47 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28979 ФПД: 102911180032081 1/tax-web-control/client/api/v1/ticket?date=20240413T164704&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28979&fm=102911180032081&tin=02508201610067®Number=0000138879044617&sum=30000 [16:46:59]StoreToDocumentArchive [16:46:59]shift 115 fd 28979 [16:46:59]save to /storage/0115/doc_00028979 [16:46:59]save last doc name /storage/0115/doc_00028979 to /storage/kkm_last_doc_name [16:46:59]save OK [16:46:59]Clear old archive folders... [16:46:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:46:59]tlvbuf is 01214870 [16:46:59]SAM_PROTO_ClearQueue [16:46:59]wFMCommunicate request_size=4 [16:46:59]MH_SAM_APDU [16:46:59]CAPDU: 80 09 00 00 [16:46:59]Write to MH i2c: E2 08 00 65 4E 80 09 00 00 00 00 00 00 25 [16:46:59]Write i2c OK [16:46:59]MH_I2C_Read... [16:46:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:59]Read from MH i2c: E2 [16:46:59]MH_I2C_Read... [16:46:59]Read from MH i2c: E2 03 00 [16:46:59]MH_I2C_Read... [16:46:59]Read from MH i2c: E2 03 00 65 4E 00 90 00 27 [16:46:59]RAPDU: 90 00 [16:46:59]wFMCommunicate OK [16:46:59]SAM_PROTO_ClearQueue done [16:46:59]KKMCreateOFDPacket [16:46:59]OFDProtocolAddRootSTLVToBuf [16:46:59]FM_MakeSignedData [16:46:59]FM_MakeSignedData [16:46:59]SAM_PROTO_SignData [16:46:59]wFMCommunicate request_size=4 [16:46:59]MH_SAM_APDU [16:46:59]CAPDU: 80 0D 01 02 [16:46:59]Write to MH i2c: E2 08 00 66 4E 80 0D 01 02 00 00 00 00 2D [16:46:59]Write i2c OK [16:46:59]MH_I2C_Read... [16:46:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:59]Read from MH i2c: E2 [16:46:59]MH_I2C_Read... [16:46:59]Read from MH i2c: E2 03 00 [16:46:59]MH_I2C_Read... [16:46:59]Read from MH i2c: E2 03 00 66 4E 00 90 00 28 [16:46:59]RAPDU: 90 00 [16:46:59]wFMCommunicate OK [16:46:59]wFMCommunicate request_size=255 [16:46:59]MH_SAM_APDU [16: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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 08 B7 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 33 71 00 00 35 04 06 00 5D [16:46:59]Write to MH i2c: E2 02 01 67 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 08 B7 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 33 71 00 00 35 04 06 00 5D 00 00 DF [16:46:59]Write i2c OK [16:46:59]MH_I2C_Read... [16:47:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:00]Read from MH i2c: E2 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: E2 03 00 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: E2 03 00 67 4E 00 90 00 29 [16:47:00]RAPDU: 90 00 [16:47:00]wFMCommunicate OK [16:47:00]wFMCommunicate request_size=10 [16:47:00]MH_SAM_APDU [16:47:00]CAPDU: 80 0D 02 02 05 98 E0 54 48 51 [16:47:00]Write to MH i2c: E2 0D 00 68 4E 80 0D 02 02 05 00 98 E0 54 48 51 00 00 9F [16:47:00]Write i2c OK [16:47:00]MH_I2C_Read... [16:47:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:00]Read from MH i2c: E2 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: E2 03 00 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: E2 03 00 68 4E 00 90 00 2A [16:47:00]RAPDU: 90 00 [16:47:00]wFMCommunicate OK [16:47:00]wFMCommunicate request_size=4 [16:47:00]MH_SAM_APDU [16:47:00]CAPDU: 80 0D 03 02 [16:47:00]Write to MH i2c: E2 08 00 69 4E 80 0D 03 02 00 00 00 00 32 [16:47:00]Write i2c OK [16:47:00]MH_I2C_Read... [16:47:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:00]Read from MH i2c: E2 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: E2 0B 00 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: E2 0B 00 69 4E 00 2B 6F 9A 77 45 45 BA 88 90 00 AA [16:47:00]RAPDU: 2B 6F 9A 77 45 45 BA 88 90 00 [16:47:00]wFMCommunicate OK [16:47:00]SAM_PROTO_SignData done [16:47:00]FM_MakeSignedData done [16:47:00]CreateOFDProtocolMessage [16:47:00]wFMCommunicate request_size=4 [16:47:00]MH_SAM_APDU [16:47:00]CAPDU: 80 11 00 00 [16:47:00]Write to MH i2c: E2 08 00 6A 4E 80 11 00 00 00 00 00 00 32 [16:47:00]Write i2c OK [16:47:00]MH_I2C_Read... [16:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:00]Read from MH i2c: E2 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: E2 17 00 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: E2 17 00 6A 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 81 [16:47:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:47:00]wFMCommunicate OK [16:47:00]CreateOFDProtocolMessage done [16:47:00]OFDSenderStorePacket 28979 [16:47:00]StoreOFDPacket docnum=28979 [16:47:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6A D4 07 01 D6 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 08 B7 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 33 71 00 00 35 04 06 00 5D 98 E0 54 48 51 2B 6F 9A 77 45 45 BA 88 [16:47:00]CheckFolder [16:47:00]dirname=/storage/ofd_packets [16:47:00]CheckFolder done [16:47:00]ProducePacketName [16:47:00]name=ofd_packets/00028979 [16:47:00]NVStorageSaveData ofd_packets/00028979 [16:47:00]File name is /storage/ofd_packets/00028979 [16:47:00]Write 301 bytes [16:47:00]NVStorageSaveData done [16:47:00]OFDSenderStorePacket done [16:47:00]KKMCreateOFDPacket done [16:47:00]NVStorageSaveData kkm_last_timestamp [16:47:00]File name is /storage/kkm_last_timestamp [16:47:00]Write 4 bytes [16:47:00]NVStorageSaveData done [16:47:00]ExternCall_PrintAddStr [16:47:00]wPrintStart [16:47:00]Write to MH i2c: 01 00 00 6B 4E B9 [16:47:00]Write i2c OK [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: 01 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: 01 07 00 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: 01 07 00 6B 4E 00 00 00 00 00 FF 0F CE [16:47:00]RasterBufferAndPrint [16:47:00]line Счет N : (1)347340 [16:47:00]line ИНН: 02508201610067 [16:47:00]line Контрольно-Кассовый Чек [16:47:00]line ПРОДАЖА [16:47:00]line ТРК (МРК, ГНК) : 32 [16:47:00]line Товар: 2710124130 [16:47:00]line Аи-92-К-5 [16:47:00]line 4.670 * 64.30 [16:47:00]line = 300.28 [16:47:00]line НДС 12% НСП 1% [16:47:00]line > о реализуемом товаре [16:47:00]line ОКРУГЛЕНИЕ: -0.28 [16:47:00]line ИТОГО: 300.00 [16:47:00]line Внесено: 300.00 [16:47:00]line СДАЧА: 0.00 [16:47:00]line НСП 1% : 2.66 [16:47:00]line НДС 12% : 31.89 [16:47:00]line Наличными: 300.00 [16:47:00]line Безнал.: 0.00 [16:47:00]line Место: АЗС № 108 "Партнер Нефть" [16:47:00]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:47:00]line СНО: Общий режим [16:47:00]line Чек 186 13.04.2024 16:47 [16:47:00]line Смена: 115 ФФД: 1.0 [16:47:00]line ЗНМ: 0300000027 [16:47:00]line РНМ: 0000138879044617 [16:47:00]line Версия ККМ: 001 [16:47:00]line ФМ: 0000000000963154 [16:47:00]line ФД: 28979 [16:47:00]line ФПД: 102911180032081 [16:47:00]line 1/tax-web-control/client/api/v1/ticket?date=20240413T164704&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28979&fm=102911180032081&tin=02508201610067®Number=0000138879044617&sum=30000 [16:47:00]OFD Sender: Processing packet 28979 [packets to send 8, broken 7] [16:47:00]ProducePacketName [16:47:00]name=ofd_packets/00028979 [16:47:00]OFD Sender: To server: pG, [16:47:00]CommunicateWithHost lk.salyk.kg:30040 [16:47:00]ConnectInit lk.salyk.kg [16:47:00]written 0, free lines is 4095 [16:47:00]Connected sock=10 [16: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 31 35 34 0F 01 00 00 6A D4 07 01 D6 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 08 B7 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 33 71 00 00 35 04 06 00 5D 98 E0 54 48 51 2B 6F 9A 77 45 45 BA 88 [16: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 31 35 34 4F 00 00 00 B7 47 47 00 48 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 33 71 00 00 F4 03 04 00 AE 61 1A 66 B6 04 01 00 00 E5 D0 26 8A 1D 29 3A D6 [16:47:00]CommunicateWithHost err = 0 [16:47:00]CheckOFDResponse [16:47:00]1017 (14) - 77093643461234 [16:47:00]1041 (16) - 0000000000963154 [16:47:00]1040 (4) - 28979 [16:47:00]1012 (4) - 13.04.2024 10:42 [16:47:00]1206 (1) - 0 [16:47:00]OFD Sender: Remove packet 28979 [16:47:00]ProducePacketName [16:47:00]name=ofd_packets/00028979 [16:47:00]NVStorageDeleteData [16:47:00]Write to MH i2c: 01 00 00 95 4E E3 [16:47:00]Write i2c OK [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: 01 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: 01 07 00 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: 01 07 00 95 4E 00 00 00 00 00 C0 0C B6 [16:47:00]RasterBufferAndPrint [16:47:00]line [16:47:00]line [16:47:00]line [16:47:00]line [16:47:00]line [16:47:00]written 0, free lines is 3270 [16:47:00]MH_Cut [16:47:00]Write to MH i2c: D1 01 00 9C 4E 01 BC [16:47:00]Write i2c OK [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: D1 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: D1 01 00 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: D1 01 00 9C 4E 00 BB [16:47:00]Write to MH i2c: 01 00 00 9D 4E EB [16:47:00]Write i2c OK [16:47:00]MH_I2C_Read... [16:47:01]OFD Sender: No OFD packet to send [16:47:01]*** Cut start [16:47:01]*** Partial cut [16:47:01]*** CUTSNS_PIN = 1 [16:47:01]*** CUTSNS_PIN = 0 [16:47:02]*** Brake cut motor [16:47:02]Read from MH i2c: 01 [16:47:02]MH_I2C_Read... [16:47:02]*** Stop cut motor [16:47:02]*** Cut end [16:47:02]Read from MH i2c: 01 07 00 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: 01 07 00 9D 4E 00 00 00 00 00 FF 0F 00 [16:47:02]process_action close_receipt done [16:47:02]requested_data is exist [16:47:02]produce_requested_data [16:47:02]requested_item fm.sn is exist - process it [16:47:02]wFMCommunicate request_size=4 [16:47:02]MH_SAM_APDU [16:47:02]CAPDU: 80 11 00 00 [16:47:02]Write to MH i2c: E2 08 00 9E 4E 80 11 00 00 00 00 00 00 66 [16:47:02]Write i2c OK [16:47:02]MH_I2C_Read... [16:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:02]Read from MH i2c: E2 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: E2 17 00 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: E2 17 00 9E 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B5 [16:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:47:02]wFMCommunicate OK [16:47:02]requested_item fd.num is exist - process it [16:47:02]SAM_PROTO_GetFieldsCounters [16:47:02]wFMCommunicate request_size=4 [16:47:02]MH_SAM_APDU [16:47:02]CAPDU: 80 13 00 00 [16:47:02]Write to MH i2c: E2 08 00 9F 4E 80 13 00 00 00 00 00 00 69 [16:47:02]Write i2c OK [16:47:02]MH_I2C_Read... [16:47:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:02]Read from MH i2c: E2 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: E2 62 00 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: E2 62 00 9F 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 33 71 00 00 0E 04 04 00 73 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 EC [16: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 33 71 00 00 0E 04 04 00 73 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 [16:47:02]wFMCommunicate OK [16:47:02]SAM_PROTO_GetFieldsCounters done [16:47:02]requested_item shift.num is exist - process it [16:47:02]requested_item shift.opened is exist - process it [16:47:02]req_shift_opened [16:47:02]FM_GetShiftState [16:47:02]SAM_PROTO_GetShiftState [16:47:02]wFMCommunicate request_size=4 [16:47:02]MH_SAM_APDU [16:47:02]CAPDU: 80 13 01 00 [16:47:02]Write to MH i2c: E2 08 00 A0 4E 80 13 01 00 00 00 00 00 6B [16:47:02]Write i2c OK [16:47:02]MH_I2C_Read... [16:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:02]Read from MH i2c: E2 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: E2 0E 00 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: E2 0E 00 A0 4E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 84 [16:47:02]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:47:02]wFMCommunicate OK [16:47:02]SAM_PROTO_GetShiftState done [16:47:02]FM_GetShiftState done [16:47:02]req_shift_opened done [16:47:02]requested_item shift.open_date is exist - process it [16:47:02]req_shift_open_date [16:47:02]req_shift_open_date done [16:47:02]produce_requested_data done [16:47:02]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28979,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [16:47:02]process_action_free close_receipt [16:47:02]json_value_free [16:47:02]json_value_free done [16:47:02]process_json_proto returns [16:47:02]Send response to host [16:47:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28979,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [16:47:02]free response buf [16:47:02]execute_script done [16:47:02]execute_script returns [16:47:02]free content buf [16:47:02]Sock 7.Close socket [16:47:02]Sock 7.Thread stoped [16:47:06]OFD Sender: No OFD packet to send [16:47:09]accept exits with 9 [16:47:09]New connection [16:47:09]New thread 3066928484 created [16:47:09]Thread 3066785124 joined [16:47:09]Waiting for new connection... [16:47:09] Sock 9.Parse request [16:47:09]Sock 9.Check first char [16:47:09]Sock 9.First char is OK [16:47:09]request: POST /json_proto HTTP/1.0 [16:47:09]Method: POST [16:47:09]URL: /json_proto [16:47:09]Method is POST - this is cgi request [16:47:09]url: /json_proto [16:47:09]query_string will be loaded in cgi processing [16:47:09]execute_cgi json_proto POST (null) [16:47:09]execute_cgi path=json_proto method=POST [16:47:09]POST find Content-Length [16:47:09]Host: 172.17.33.3:8080 [16:47:09]Content-Length: 843 [16:47:09]Content-Type: application/json [16:47:09] [16:47:09]POST finish read [16:47:09]Found Content-Length = 843 [16:47:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:09]execute_script... [16:47: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)347341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:09]POST & json_proto [16:47:09]process_json_proto [16:47:09]json parsed OK: [16:47:09]protocol is kg_v1.0 [16:47:09]action value=close_receipt [16:47:09]process_action close_receipt [16:47:09]cmd_close_receipt [16:47:09]MH_GetDate [16:47:09]Write to MH i2c: F0 00 00 A1 4E DE [16:47:09]Write i2c OK [16:47:09]MH_I2C_Read... [16:47:09]Read from MH i2c: F0 [16:47:09]MH_I2C_Read... [16:47:09]Read from MH i2c: F0 09 00 [16:47:09]MH_I2C_Read... [16:47:09]Read from MH i2c: F0 09 00 A1 4E 00 12 B7 1A 66 23 5B 8F 65 A2 [16:47:09]GetLastDocTimeStamp 1713026824 [16:47:09]current date 1713026834 [16:47:09]FM_GetShiftState [16:47:09]SAM_PROTO_GetShiftState [16:47:09]wFMCommunicate request_size=4 [16:47:09]MH_SAM_APDU [16:47:09]CAPDU: 80 13 01 00 [16:47:09]Write to MH i2c: E2 08 00 A2 4E 80 13 01 00 00 00 00 00 6D [16:47:09]Write i2c OK [16:47:09]MH_I2C_Read... [16:47:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:09]Read from MH i2c: E2 [16:47:09]MH_I2C_Read... [16:47:09]Read from MH i2c: E2 0E 00 [16:47:09]MH_I2C_Read... [16:47:09]Read from MH i2c: E2 0E 00 A2 4E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 86 [16:47:09]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:47:09]wFMCommunicate OK [16:47:09]SAM_PROTO_GetShiftState done [16:47:09]FM_GetShiftState done [16:47:09]opened in 1712967615 [16:47:09]opened+sec_in_day 1713054015 [16:47:09]quantity*price = 100050 [16:47:09]sum+1 = 100052 [16:47:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 187 13.04.2024 16:47 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28980 ФПД: 39961164682277 1/tax-web-control/client/api/v1/ticket?date=20240413T164715&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28980&fm=39961164682277&tin=02508201610067®Number=0000138879044617&sum=100051 [16:47:10]StoreToDocumentArchive [16:47:10]shift 115 fd 28980 [16:47:10]save to /storage/0115/doc_00028980 [16:47:10]save last doc name /storage/0115/doc_00028980 to /storage/kkm_last_doc_name [16:47:10]save OK [16:47:10]Clear old archive folders... [16:47:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:47:10]tlvbuf is B6F52D30 [16:47:10]SAM_PROTO_ClearQueue [16:47:10]wFMCommunicate request_size=4 [16:47:10]MH_SAM_APDU [16:47:10]CAPDU: 80 09 00 00 [16:47:10]Write to MH i2c: E2 08 00 AF 4E 80 09 00 00 00 00 00 00 6F [16:47:10]Write i2c OK [16:47:10]MH_I2C_Read... [16:47:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:10]Read from MH i2c: E2 [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: E2 03 00 [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: E2 03 00 AF 4E 00 90 00 71 [16:47:10]RAPDU: 90 00 [16:47:10]wFMCommunicate OK [16:47:10]SAM_PROTO_ClearQueue done [16:47:10]KKMCreateOFDPacket [16:47:10]OFDProtocolAddRootSTLVToBuf [16:47:10]FM_MakeSignedData [16:47:10]FM_MakeSignedData [16:47:10]SAM_PROTO_SignData [16:47:10]wFMCommunicate request_size=4 [16:47:10]MH_SAM_APDU [16:47:10]CAPDU: 80 0D 01 02 [16:47:10]Write to MH i2c: E2 08 00 B0 4E 80 0D 01 02 00 00 00 00 77 [16:47:10]Write i2c OK [16:47:10]MH_I2C_Read... [16:47:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:10]Read from MH i2c: E2 [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: E2 03 00 [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: E2 03 00 B0 4E 00 90 00 72 [16:47:10]RAPDU: 90 00 [16:47:10]wFMCommunicate OK [16:47:10]wFMCommunicate request_size=255 [16:47:10]MH_SAM_APDU [16:47:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 BB 00 00 00 F4 03 04 00 13 B7 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 34 71 00 00 35 04 06 00 24 [16:47:10]Write to MH i2c: E2 02 01 B1 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 BB 00 00 00 F4 03 04 00 13 B7 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 34 71 00 00 35 04 06 00 24 00 00 4A [16:47:10]Write i2c OK [16:47:10]MH_I2C_Read... [16:47:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:10]Read from MH i2c: E2 [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: E2 03 00 [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: E2 03 00 B1 4E 00 90 00 73 [16:47:10]RAPDU: 90 00 [16:47:10]wFMCommunicate OK [16:47:10]wFMCommunicate request_size=10 [16:47:10]MH_SAM_APDU [16:47:10]CAPDU: 80 0D 02 02 05 58 2F 06 94 25 [16:47:10]Write to MH i2c: E2 0D 00 B2 4E 80 0D 02 02 05 00 58 2F 06 94 25 00 00 CA [16:47:10]Write i2c OK [16:47:10]MH_I2C_Read... [16:47:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:10]Read from MH i2c: E2 [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: E2 03 00 [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: E2 03 00 B2 4E 00 90 00 74 [16:47:10]RAPDU: 90 00 [16:47:10]wFMCommunicate OK [16:47:10]wFMCommunicate request_size=4 [16:47:10]MH_SAM_APDU [16:47:10]CAPDU: 80 0D 03 02 [16:47:10]Write to MH i2c: E2 08 00 B3 4E 80 0D 03 02 00 00 00 00 7C [16:47:10]Write i2c OK [16:47:10]MH_I2C_Read... [16:47:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:11]Read from MH i2c: E2 [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: E2 0B 00 [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: E2 0B 00 B3 4E 00 20 7C 88 39 06 27 D1 C0 90 00 98 [16:47:11]RAPDU: 20 7C 88 39 06 27 D1 C0 90 00 [16:47:11]wFMCommunicate OK [16:47:11]SAM_PROTO_SignData done [16:47:11]FM_MakeSignedData done [16:47:11]CreateOFDProtocolMessage [16:47:11]wFMCommunicate request_size=4 [16:47:11]MH_SAM_APDU [16:47:11]CAPDU: 80 11 00 00 [16:47:11]Write to MH i2c: E2 08 00 B4 4E 80 11 00 00 00 00 00 00 7C [16:47:11]Write i2c OK [16:47:11]MH_I2C_Read... [16:47:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:11]Read from MH i2c: E2 [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: E2 17 00 [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: E2 17 00 B4 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CB [16:47:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:47:11]wFMCommunicate OK [16:47:11]CreateOFDProtocolMessage done [16:47:11]OFDSenderStorePacket 28980 [16:47:11]StoreOFDPacket docnum=28980 [16:47:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 0E B6 07 01 97 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 BB 00 00 00 F4 03 04 00 13 B7 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 34 71 00 00 35 04 06 00 24 58 2F 06 94 25 20 7C 88 39 06 27 D1 C0 [16:47:11]CheckFolder [16:47:11]dirname=/storage/ofd_packets [16:47:11]CheckFolder done [16:47:11]ProducePacketName [16:47:11]name=ofd_packets/00028980 [16:47:11]NVStorageSaveData ofd_packets/00028980 [16:47:11]File name is /storage/ofd_packets/00028980 [16:47:11]Write 301 bytes [16:47:11]NVStorageSaveData done [16:47:11]OFDSenderStorePacket done [16:47:11]KKMCreateOFDPacket done [16:47:11]NVStorageSaveData kkm_last_timestamp [16:47:11]File name is /storage/kkm_last_timestamp [16:47:11]Write 4 bytes [16:47:11]NVStorageSaveData done [16:47:11]ExternCall_PrintAddStr [16:47:11]wPrintStart [16:47:11]Write to MH i2c: 01 00 00 B5 4E 03 [16:47:11]Write i2c OK [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: 01 [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: 01 07 00 [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: 01 07 00 B5 4E 00 00 00 00 00 FF 0F 18 [16:47:11]RasterBufferAndPrint [16:47:11]line Счет N : (1)347341 [16:47:11]line ИНН: 02508201610067 [16:47:11]line Контрольно-Кассовый Чек [16:47:11]line ПРОДАЖА [16:47:11]line ТРК (МРК, ГНК) : 13 [16:47:11]line Товар: 2710124130 [16:47:11]line Аи-92-К-5 [16:47:11]line 15.560 * 64.30 [16:47:11]line = 1000.51 [16:47:11]line НДС 12% НСП 1% [16:47:11]line > о реализуемом товаре [16:47:11]line ИТОГО: 1000.51 [16:47:11]line НСП 1% : 8.85 [16:47:11]line НДС 12% : 106.25 [16:47:11]line Наличными: 0.00 [16:47:11]line Безнал.: 1000.51 [16:47:11]line Место: АЗС № 108 "Партнер Нефть" [16:47:11]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:47:11]line СНО: Общий режим [16:47:11]line Чек 187 13.04.2024 16:47 [16:47:11]line Смена: 115 ФФД: 1.0 [16:47:11]line ЗНМ: 0300000027 [16:47:11]line РНМ: 0000138879044617 [16:47:11]line Версия ККМ: 001 [16:47:11]line Платежная система: АКБ Кыргызстан [16:47:11]line ФМ: 0000000000963154 [16:47:11]line ФД: 28980 [16:47:11]line ФПД: 39961164682277 [16:47:11]line 1/tax-web-control/client/api/v1/ticket?date=20240413T164715&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28980&fm=39961164682277&tin=02508201610067®Number=0000138879044617&sum=100051 [16:47:11]OFD Sender: Processing packet 28980 [packets to send 8, broken 7] [16:47:11]ProducePacketName [16:47:11]name=ofd_packets/00028980 [16:47:11]OFD Sender: To server: pG, [16:47:11]CommunicateWithHost lk.salyk.kg:30040 [16:47:11]ConnectInit lk.salyk.kg [16:47:11]Connected sock=10 [16:47:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 0E B6 07 01 97 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 BB 00 00 00 F4 03 04 00 13 B7 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 34 71 00 00 35 04 06 00 24 58 2F 06 94 25 20 7C 88 39 06 27 D1 C0 [16:47:11]written 0, free lines is 4095 [16:47:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 40 02 47 00 8C 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 31 35 34 10 04 04 00 34 71 00 00 F4 03 04 00 B9 61 1A 66 B6 04 01 00 00 8E 8E E9 18 5D 59 48 66 [16:47:11]CommunicateWithHost err = 0 [16:47:11]CheckOFDResponse [16:47:11]1017 (14) - 77093643461234 [16:47:11]1041 (16) - 0000000000963154 [16:47:11]1040 (4) - 28980 [16:47:11]1012 (4) - 13.04.2024 10:43 [16:47:11]1206 (1) - 0 [16:47:11]OFD Sender: Remove packet 28980 [16:47:11]ProducePacketName [16:47:11]name=ofd_packets/00028980 [16:47:11]NVStorageDeleteData [16:47:11]Write to MH i2c: 01 00 00 DE 4E 2C [16:47:11]Write i2c OK [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: 01 [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: 01 07 00 [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: 01 07 00 DE 4E 00 00 00 00 00 E6 0C 25 [16:47:11]RasterBufferAndPrint [16:47:11]line [16:47:11]line [16:47:11]line [16:47:11]line [16:47:11]line [16:47:11]written 0, free lines is 3314 [16:47:11]MH_Cut [16:47:11]Write to MH i2c: D1 01 00 E5 4E 01 05 [16:47:11]Write i2c OK [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: D1 [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: D1 01 00 [16:47:11]MH_I2C_Read... [16:47:11]Read from MH i2c: D1 01 00 E5 4E 00 04 [16:47:11]Write to MH i2c: 01 00 00 E6 4E 34 [16:47:11]Write i2c OK [16:47:11]MH_I2C_Read... [16:47:12]OFD Sender: No OFD packet to send [16:47:12]*** Cut start [16:47:12]*** Partial cut [16:47:12]*** CUTSNS_PIN = 1 [16:47:12]*** CUTSNS_PIN = 0 [16:47:13]*** Brake cut motor [16:47:13]Read from MH i2c: 01 [16:47:13]MH_I2C_Read... [16:47:13]*** Stop cut motor [16:47:13]*** Cut end [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 E6 4E 00 00 00 00 00 FF 0F 49 [16:47:13]process_action close_receipt done [16:47:13]requested_data is exist [16:47:13]produce_requested_data [16:47:13]requested_item fm.sn is exist - process it [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 E7 4E 80 11 00 00 00 00 00 00 AF [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 E7 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FE [16:47:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:47:13]wFMCommunicate OK [16:47:13]requested_item fd.num is exist - process it [16:47:13]SAM_PROTO_GetFieldsCounters [16:47:13]wFMCommunicate request_size=4 [16:47:13]MH_SAM_APDU [16:47:13]CAPDU: 80 13 00 00 [16:47:13]Write to MH i2c: E2 08 00 E8 4E 80 13 00 00 00 00 00 00 B2 [16:47:13]Write i2c OK [16:47:13]MH_I2C_Read... [16:47:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:13]Read from MH i2c: E2 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: E2 62 00 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: E2 62 00 E8 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 34 71 00 00 0E 04 04 00 73 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 39 [16:47: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 34 71 00 00 0E 04 04 00 73 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 [16:47:13]wFMCommunicate OK [16:47:13]SAM_PROTO_GetFieldsCounters done [16:47:13]requested_item shift.num is exist - process it [16:47:13]requested_item shift.opened is exist - process it [16:47:13]req_shift_opened [16:47:13]FM_GetShiftState [16:47:13]SAM_PROTO_GetShiftState [16:47:13]wFMCommunicate request_size=4 [16:47:13]MH_SAM_APDU [16:47:13]CAPDU: 80 13 01 00 [16:47:13]Write to MH i2c: E2 08 00 E9 4E 80 13 01 00 00 00 00 00 B4 [16:47:13]Write i2c OK [16:47:13]MH_I2C_Read... [16:47:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:13]Read from MH i2c: E2 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: E2 0E 00 [16:47:13]MH_I2C_Read... [16:47:13]Read from MH i2c: E2 0E 00 E9 4E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 CD [16:47:13]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:47:13]wFMCommunicate OK [16:47:13]SAM_PROTO_GetShiftState done [16:47:13]FM_GetShiftState done [16:47:13]req_shift_opened done [16:47:13]requested_item shift.open_date is exist - process it [16:47:13]req_shift_open_date [16:47:13]req_shift_open_date done [16:47:13]produce_requested_data done [16:47:13]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28980,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [16:47:13]process_action_free close_receipt [16:47:13]json_value_free [16:47:13]json_value_free done [16:47:13]process_json_proto returns [16:47:13]Send response to host [16:47:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28980,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [16:47:13]free response buf [16:47:13]execute_script done [16:47:13]execute_script returns [16:47:13]free content buf [16:47:13]Sock 9.Close socket [16:47:13]Sock 9.Thread stoped [16:47:17]OFD Sender: No OFD packet to send [16:47:22]OFD Sender: No OFD packet to send [16:47:27]OFD Sender: No OFD packet to send [16:47:32]OFD Sender: No OFD packet to send [16:47:37]OFD Sender: No OFD packet to send [16:47:42]OFD Sender: No OFD packet to send [16:47:47]OFD Sender: No OFD packet to send [16:47:52]OFD Sender: No OFD packet to send [16:47:57]OFD Sender: No OFD packet to send [16:48:02]OFD Sender: No OFD packet to send [16:48:07]OFD Sender: No OFD packet to send [16:48:12]OFD Sender: No OFD packet to send [16:48:17]OFD Sender: No OFD packet to send [16:48:22]OFD Sender: No OFD packet to send [16:48:27]OFD Sender: No OFD packet to send [16:48:32]OFD Sender: No OFD packet to send [16:48:37]OFD Sender: No OFD packet to send [16:48:42]OFD Sender: No OFD packet to send [16:48:47]OFD Sender: No OFD packet to send [16:48:52]OFD Sender: No OFD packet to send [16:48:57]OFD Sender: No OFD packet to send [16:49:02]OFD Sender: No OFD packet to send [16:49:07]OFD Sender: No OFD packet to send [16:49:12]OFD Sender: No OFD packet to send [16:49:17]OFD Sender: No OFD packet to send [16:49:22]OFD Sender: No OFD packet to send [16:49:27]OFD Sender: No OFD packet to send [16:49:32]OFD Sender: No OFD packet to send [16:49:37]OFD Sender: No OFD packet to send [16:49:42]OFD Sender: No OFD packet to send [16:49:47]OFD Sender: No OFD packet to send [16:49:52]OFD Sender: No OFD packet to send [16:49:57]OFD Sender: No OFD packet to send [16:50:02]OFD Sender: No OFD packet to send [16:50:07]OFD Sender: No OFD packet to send [16:50:12]OFD Sender: No OFD packet to send [16:50:17]OFD Sender: No OFD packet to send [16:50:22]OFD Sender: No OFD packet to send [16:50:27]OFD Sender: No OFD packet to send [16:50:32]OFD Sender: No OFD packet to send [16:50:37]OFD Sender: No OFD packet to send [16:50:42]OFD Sender: No OFD packet to send [16:50:47]OFD Sender: No OFD packet to send [16:50:52]OFD Sender: No OFD packet to send [16:50:57]OFD Sender: No OFD packet to send [16:51:02]OFD Sender: No OFD packet to send [16:51:07]OFD Sender: No OFD packet to send [16:51:12]OFD Sender: No OFD packet to send [16:51:17]OFD Sender: No OFD packet to send [16:51:22]OFD Sender: No OFD packet to send [16:51:27]OFD Sender: No OFD packet to send [16:51:32]OFD Sender: No OFD packet to send [16:51:37]OFD Sender: No OFD packet to send [16:51:42]OFD Sender: No OFD packet to send [16:51:47]OFD Sender: No OFD packet to send [16:51:52]OFD Sender: No OFD packet to send [16:51:57]OFD Sender: No OFD packet to send [16:52:02]OFD Sender: No OFD packet to send [16:52:05]accept exits with 7 [16:52:05]New connection [16:52:05]New thread 3066785124 created [16:52:05]Thread 3066928484 joined [16:52:05]Waiting for new connection... [16:52:05] Sock 7.Parse request [16:52:05]Sock 7.Check first char [16:52:05]Sock 7.First char is OK [16:52:05]request: POST /json_proto HTTP/1.0 [16:52:05]Method: POST [16:52:05]URL: /json_proto [16:52:05]Method is POST - this is cgi request [16:52:05]url: /json_proto [16:52:05]query_string will be loaded in cgi processing [16:52:05]execute_cgi json_proto POST (null) [16:52:05]execute_cgi path=json_proto method=POST [16:52:05]POST find Content-Length [16:52:05]Host: 172.17.33.3:8080 [16:52:05]Content-Length: 677 [16:52:05]Content-Type: application/json [16:52:05] [16:52:05]POST finish read [16:52:05]Found Content-Length = 677 [16:52:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347343", "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" : 64.30, "quantity" : 3.890, "sum" : 250.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:05]execute_script... [16:52:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347343", "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" : 64.30, "quantity" : 3.890, "sum" : 250.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:05]POST & json_proto [16:52:05]process_json_proto [16:52:05]json parsed OK: [16:52:05]protocol is kg_v1.0 [16:52:05]action value=close_receipt [16:52:05]process_action close_receipt [16:52:05]cmd_close_receipt [16:52:05]MH_GetDate [16:52:05]Write to MH i2c: F0 00 00 EA 4E 27 [16:52:05]Write i2c OK [16:52:05]MH_I2C_Read... [16:52:05]Read from MH i2c: F0 [16:52:05]MH_I2C_Read... [16:52:05]Read from MH i2c: F0 09 00 [16:52:05]MH_I2C_Read... [16:52:05]Read from MH i2c: F0 09 00 EA 4E 00 3A B8 1A 66 23 5B 8F 65 14 [16:52:05]GetLastDocTimeStamp 1713026835 [16:52:05]current date 1713027130 [16:52:05]FM_GetShiftState [16:52:05]SAM_PROTO_GetShiftState [16:52:05]wFMCommunicate request_size=4 [16:52:05]MH_SAM_APDU [16:52:05]CAPDU: 80 13 01 00 [16:52:05]Write to MH i2c: E2 08 00 EB 4E 80 13 01 00 00 00 00 00 B6 [16:52:05]Write i2c OK [16:52:05]MH_I2C_Read... [16:52:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:05]Read from MH i2c: E2 [16:52:05]MH_I2C_Read... [16:52:05]Read from MH i2c: E2 0E 00 [16:52:05]MH_I2C_Read... [16:52:05]Read from MH i2c: E2 0E 00 EB 4E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 CF [16:52:05]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:52:05]wFMCommunicate OK [16:52:05]SAM_PROTO_GetShiftState done [16:52:05]FM_GetShiftState done [16:52:05]opened in 1712967615 [16:52:05]opened+sec_in_day 1713054015 [16:52:05]quantity*price = 25012 [16:52:05]sum+1 = 25014 [16:52:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.56 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 188 13.04.2024 16:52 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28981 ФПД: 66168185355307 1/tax-web-control/client/api/v1/ticket?date=20240413T165210&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28981&fm=66168185355307&tin=02508201610067®Number=0000138879044617&sum=25000 [16:52:06]StoreToDocumentArchive [16:52:06]shift 115 fd 28981 [16:52:06]save to /storage/0115/doc_00028981 [16:52:06]save last doc name /storage/0115/doc_00028981 to /storage/kkm_last_doc_name [16:52:06]save OK [16:52:06]Clear old archive folders... [16:52:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:52:06]tlvbuf is 011DA940 [16:52:06]SAM_PROTO_ClearQueue [16:52:06]wFMCommunicate request_size=4 [16:52:06]MH_SAM_APDU [16:52:06]CAPDU: 80 09 00 00 [16:52:06]Write to MH i2c: E2 08 00 F8 4E 80 09 00 00 00 00 00 00 B8 [16:52:06]Write i2c OK [16:52:06]MH_I2C_Read... [16:52:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:06]Read from MH i2c: E2 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 03 00 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 03 00 F8 4E 00 90 00 BA [16:52:06]RAPDU: 90 00 [16:52:06]wFMCommunicate OK [16:52:06]SAM_PROTO_ClearQueue done [16:52:06]KKMCreateOFDPacket [16:52:06]OFDProtocolAddRootSTLVToBuf [16:52:06]FM_MakeSignedData [16:52:06]FM_MakeSignedData [16:52:06]SAM_PROTO_SignData [16:52:06]wFMCommunicate request_size=4 [16:52:06]MH_SAM_APDU [16:52:06]CAPDU: 80 0D 01 02 [16:52:06]Write to MH i2c: E2 08 00 F9 4E 80 0D 01 02 00 00 00 00 C0 [16:52:06]Write i2c OK [16:52:06]MH_I2C_Read... [16:52:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:06]Read from MH i2c: E2 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 03 00 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 03 00 F9 4E 00 90 00 BB [16:52:06]RAPDU: 90 00 [16:52:06]wFMCommunicate OK [16:52:06]wFMCommunicate request_size=255 [16:52:06]MH_SAM_APDU [16:52:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 3A B8 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 35 71 00 00 35 04 06 00 3C [16:52:06]Write to MH i2c: E2 02 01 FA 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 32 0F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 3A B8 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 35 71 00 00 35 04 06 00 3C 00 00 51 [16:52:06]Write i2c OK [16:52:06]MH_I2C_Read... [16:52:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:06]Read from MH i2c: E2 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 03 00 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 03 00 FA 4E 00 90 00 BC [16:52:06]RAPDU: 90 00 [16:52:06]wFMCommunicate OK [16:52:06]wFMCommunicate request_size=10 [16:52:06]MH_SAM_APDU [16:52:06]CAPDU: 80 0D 02 02 05 2D FB 2E FC 2B [16:52:06]Write to MH i2c: E2 0D 00 FB 4E 80 0D 02 02 05 00 2D FB 2E FC 2B 00 00 4A [16:52:06]Write i2c OK [16:52:06]MH_I2C_Read... [16:52:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:06]Read from MH i2c: E2 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 03 00 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 03 00 FB 4E 00 90 00 BD [16:52:06]RAPDU: 90 00 [16:52:06]wFMCommunicate OK [16:52:06]wFMCommunicate request_size=4 [16:52:06]MH_SAM_APDU [16:52:06]CAPDU: 80 0D 03 02 [16:52:06]Write to MH i2c: E2 08 00 FC 4E 80 0D 03 02 00 00 00 00 C5 [16:52:06]Write i2c OK [16:52:06]MH_I2C_Read... [16:52:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:06]Read from MH i2c: E2 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 0B 00 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 0B 00 FC 4E 00 BB 50 7A 8B 74 67 D0 B0 90 00 31 [16:52:06]RAPDU: BB 50 7A 8B 74 67 D0 B0 90 00 [16:52:06]wFMCommunicate OK [16:52:06]SAM_PROTO_SignData done [16:52:06]FM_MakeSignedData done [16:52:06]CreateOFDProtocolMessage [16:52:06]wFMCommunicate request_size=4 [16:52:06]MH_SAM_APDU [16:52:06]CAPDU: 80 11 00 00 [16:52:06]Write to MH i2c: E2 08 00 FD 4E 80 11 00 00 00 00 00 00 C5 [16:52:06]Write i2c OK [16:52:06]MH_I2C_Read... [16:52:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:06]Read from MH i2c: E2 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 17 00 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 17 00 FD 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 14 [16:52:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:52:06]wFMCommunicate OK [16:52:06]CreateOFDProtocolMessage done [16:52:06]OFDSenderStorePacket 28981 [16:52:06]StoreOFDPacket docnum=28981 [16:52:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 AF F9 07 01 7F 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 32 0F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 3A B8 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 35 71 00 00 35 04 06 00 3C 2D FB 2E FC 2B BB 50 7A 8B 74 67 D0 B0 [16:52:06]CheckFolder [16:52:06]dirname=/storage/ofd_packets [16:52:06]CheckFolder done [16:52:06]ProducePacketName [16:52:06]name=ofd_packets/00028981 [16:52:06]NVStorageSaveData ofd_packets/00028981 [16:52:06]File name is /storage/ofd_packets/00028981 [16:52:06]Write 301 bytes [16:52:06]NVStorageSaveData done [16:52:06]OFDSenderStorePacket done [16:52:06]KKMCreateOFDPacket done [16:52:06]NVStorageSaveData kkm_last_timestamp [16:52:06]File name is /storage/kkm_last_timestamp [16:52:06]Write 4 bytes [16:52:06]NVStorageSaveData done [16:52:06]ExternCall_PrintAddStr [16:52:06]wPrintStart [16:52:06]Write to MH i2c: 01 00 00 FE 4E 4C [16:52:06]Write i2c OK [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: 01 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: 01 07 00 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: 01 07 00 FE 4E 00 00 00 00 00 FF 0F 61 [16:52:06]RasterBufferAndPrint [16:52:06]line Счет N : (1)347343 [16:52:06]line ИНН: 02508201610067 [16:52:06]line Контрольно-Кассовый Чек [16:52:06]line ПРОДАЖА [16:52:06]line ТРК (МРК, ГНК) : 42 [16:52:06]line Товар: 2710124130 [16:52:06]line Аи-92-К-5 [16:52:06]line 3.890 * 64.30 [16:52:06]line = 250.13 [16:52:06]line НДС 12% НСП 1% [16:52:06]line > о реализуемом товаре [16:52:06]line ОКРУГЛЕНИЕ: -0.13 [16:52:06]line ИТОГО: 250.00 [16:52:06]line Внесено: 250.00 [16:52:06]line СДАЧА: 0.00 [16:52:06]line НСП 1% : 2.21 [16:52:06]line НДС 12% : 26.56 [16:52:06]line Наличными: 250.00 [16:52:06]line Безнал.: 0.00 [16:52:06]line Место: АЗС № 108 "Партнер Нефть" [16:52:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:52:06]line СНО: Общий режим [16:52:06]line Чек 188 13.04.2024 16:52 [16:52:06]line Смена: 115 ФФД: 1.0 [16:52:06]line ЗНМ: 0300000027 [16:52:06]line РНМ: 0000138879044617 [16:52:06]line Версия ККМ: 001 [16:52:06]line ФМ: 0000000000963154 [16:52:06]line ФД: 28981 [16:52:06]line ФПД: 66168185355307 [16:52:07]line 1/tax-web-control/client/api/v1/ticket?date=20240413T165210&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28981&fm=66168185355307&tin=02508201610067®Number=0000138879044617&sum=25000 [16:52:07]OFD Sender: Processing packet 28981 [packets to send 8, broken 7] [16:52:07]ProducePacketName [16:52:07]name=ofd_packets/00028981 [16:52:07]OFD Sender: To server: pG, [16:52:07]CommunicateWithHost lk.salyk.kg:30040 [16:52:07]ConnectInit lk.salyk.kg [16:52:07]written 0, free lines is 4095 [16:52:07]Connected sock=10 [16:52:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 AF F9 07 01 7F 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 32 0F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 3A B8 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 35 71 00 00 35 04 06 00 3C 2D FB 2E FC 2B BB 50 7A 8B 74 67 D0 B0 [16:52:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F6 28 47 00 2B 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 31 35 34 10 04 04 00 35 71 00 00 F4 03 04 00 E1 62 1A 66 B6 04 01 00 00 F3 7B C1 F3 E4 D0 1D A8 [16:52:07]CommunicateWithHost err = 0 [16:52:07]CheckOFDResponse [16:52:07]1017 (14) - 77093643461234 [16:52:07]1041 (16) - 0000000000963154 [16:52:07]1040 (4) - 28981 [16:52:07]1012 (4) - 13.04.2024 10:48 [16:52:07]1206 (1) - 0 [16:52:07]OFD Sender: Remove packet 28981 [16:52:07]ProducePacketName [16:52:07]name=ofd_packets/00028981 [16:52:07]NVStorageDeleteData [16:52:07]Write to MH i2c: 01 00 00 28 4F 77 [16:52:07]Write i2c OK [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: 01 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: 01 07 00 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: 01 07 00 28 4F 00 00 00 00 00 BD 0C 47 [16:52:07]RasterBufferAndPrint [16:52:07]line [16:52:07]line [16:52:07]line [16:52:07]line [16:52:07]line [16:52:07]written 0, free lines is 3267 [16:52:07]MH_Cut [16:52:07]Write to MH i2c: D1 01 00 2F 4F 01 50 [16:52:07]Write i2c OK [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: D1 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: D1 01 00 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: D1 01 00 2F 4F 00 4F [16:52:07]Write to MH i2c: 01 00 00 30 4F 7F [16:52:07]Write i2c OK [16:52:07]MH_I2C_Read... [16:52:07]OFD Sender: No OFD packet to send [16:52:08]*** Cut start [16:52:08]*** Partial cut [16:52:08]*** CUTSNS_PIN = 1 [16:52:08]*** CUTSNS_PIN = 0 [16:52:08]*** Brake cut motor [16:52:08]Read from MH i2c: 01 [16:52:08]MH_I2C_Read... [16:52:08]*** Stop cut motor [16:52:08]*** Cut end [16:52:08]Read from MH i2c: 01 07 00 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: 01 07 00 30 4F 00 00 00 00 00 FF 0F 94 [16:52:08]process_action close_receipt done [16:52:08]requested_data is exist [16:52:08]produce_requested_data [16:52:08]requested_item fm.sn is exist - process it [16:52:08]wFMCommunicate request_size=4 [16:52:08]MH_SAM_APDU [16:52:08]CAPDU: 80 11 00 00 [16:52:08]Write to MH i2c: E2 08 00 31 4F 80 11 00 00 00 00 00 00 FA [16:52:08]Write i2c OK [16:52:08]MH_I2C_Read... [16:52:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:08]Read from MH i2c: E2 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: E2 17 00 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: E2 17 00 31 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 49 [16:52:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:52:08]wFMCommunicate OK [16:52:08]requested_item fd.num is exist - process it [16:52:08]SAM_PROTO_GetFieldsCounters [16:52:08]wFMCommunicate request_size=4 [16:52:08]MH_SAM_APDU [16:52:08]CAPDU: 80 13 00 00 [16:52:08]Write to MH i2c: E2 08 00 32 4F 80 13 00 00 00 00 00 00 FD [16:52:08]Write i2c OK [16:52:08]MH_I2C_Read... [16:52:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:09]Read from MH i2c: E2 [16:52:09]MH_I2C_Read... [16:52:09]Read from MH i2c: E2 62 00 [16:52:09]MH_I2C_Read... [16:52:09]Read from MH i2c: E2 62 00 32 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 35 71 00 00 0E 04 04 00 73 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 88 [16:52:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 35 71 00 00 0E 04 04 00 73 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 [16:52:09]wFMCommunicate OK [16:52:09]SAM_PROTO_GetFieldsCounters done [16:52:09]requested_item shift.num is exist - process it [16:52:09]requested_item shift.opened is exist - process it [16:52:09]req_shift_opened [16:52:09]FM_GetShiftState [16:52:09]SAM_PROTO_GetShiftState [16:52:09]wFMCommunicate request_size=4 [16:52:09]MH_SAM_APDU [16:52:09]CAPDU: 80 13 01 00 [16:52:09]Write to MH i2c: E2 08 00 33 4F 80 13 01 00 00 00 00 00 FF [16:52:09]Write i2c OK [16:52:09]MH_I2C_Read... [16:52:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:09]Read from MH i2c: E2 [16:52:09]MH_I2C_Read... [16:52:09]Read from MH i2c: E2 0E 00 [16:52:09]MH_I2C_Read... [16:52:09]Read from MH i2c: E2 0E 00 33 4F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 18 [16:52:09]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:52:09]wFMCommunicate OK [16:52:09]SAM_PROTO_GetShiftState done [16:52:09]FM_GetShiftState done [16:52:09]req_shift_opened done [16:52:09]requested_item shift.open_date is exist - process it [16:52:09]req_shift_open_date [16:52:09]req_shift_open_date done [16:52:09]produce_requested_data done [16:52:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28981,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [16:52:09]process_action_free close_receipt [16:52:09]json_value_free [16:52:09]json_value_free done [16:52:09]process_json_proto returns [16:52:09]Send response to host [16:52:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28981,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [16:52:09]free response buf [16:52:09]execute_script done [16:52:09]execute_script returns [16:52:09]free content buf [16:52:09]Sock 7.Close socket [16:52:09]Sock 7.Thread stoped [16:52:12]OFD Sender: No OFD packet to send [16:52:17]OFD Sender: No OFD packet to send [16:52:22]OFD Sender: No OFD packet to send [16:52:27]OFD Sender: No OFD packet to send [16:52:32]OFD Sender: No OFD packet to send [16:52:37]OFD Sender: No OFD packet to send [16:52:42]OFD Sender: No OFD packet to send [16:52:47]OFD Sender: No OFD packet to send [16:52:52]OFD Sender: No OFD packet to send [16:52:57]OFD Sender: No OFD packet to send [16:53:02]OFD Sender: No OFD packet to send [16:53:07]OFD Sender: No OFD packet to send [16:53:12]OFD Sender: No OFD packet to send [16:53:17]OFD Sender: No OFD packet to send [16:53:22]OFD Sender: No OFD packet to send [16:53:26]accept exits with 9 [16:53:26]New connection [16:53:26]New thread 3066928484 created [16:53:26]Thread 3066785124 joined [16:53:26]Waiting for new connection... [16:53:26] Sock 9.Parse request [16:53:26]Sock 9.Check first char [16:53:26]Sock 9.First char is OK [16:53:26]request: POST /json_proto HTTP/1.0 [16:53:26]Method: POST [16:53:26]URL: /json_proto [16:53:26]Method is POST - this is cgi request [16:53:26]url: /json_proto [16:53:26]query_string will be loaded in cgi processing [16:53:26]execute_cgi json_proto POST (null) [16:53:26]execute_cgi path=json_proto method=POST [16:53:26]POST find Content-Length [16:53:26]Host: 172.17.33.3:8080 [16:53:26]Content-Length: 843 [16:53:26]Content-Type: application/json [16:53:26] [16:53:26]POST finish read [16:53:26]Found Content-Length = 843 [16:53:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:26]execute_script... [16: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)347344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:26]POST & json_proto [16:53:26]process_json_proto [16:53:26]json parsed OK: [16:53:26]protocol is kg_v1.0 [16:53:26]action value=close_receipt [16:53:26]process_action close_receipt [16:53:26]cmd_close_receipt [16:53:26]MH_GetDate [16:53:26]Write to MH i2c: F0 00 00 34 4F 72 [16:53:26]Write i2c OK [16:53:26]MH_I2C_Read... [16:53:26]Read from MH i2c: F0 [16:53:26]MH_I2C_Read... [16:53:26]Read from MH i2c: F0 09 00 [16:53:26]MH_I2C_Read... [16:53:26]Read from MH i2c: F0 09 00 34 4F 00 8C B8 1A 66 23 5B 8F 65 B1 [16:53:26]GetLastDocTimeStamp 1713027130 [16:53:26]current date 1713027212 [16:53:26]FM_GetShiftState [16:53:26]SAM_PROTO_GetShiftState [16:53:26]wFMCommunicate request_size=4 [16:53:26]MH_SAM_APDU [16:53:26]CAPDU: 80 13 01 00 [16:53:26]Write to MH i2c: E2 08 00 35 4F 80 13 01 00 00 00 00 00 01 [16:53:26]Write i2c OK [16:53:26]MH_I2C_Read... [16:53:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:26]Read from MH i2c: E2 [16:53:26]MH_I2C_Read... [16:53:26]Read from MH i2c: E2 0E 00 [16:53:26]MH_I2C_Read... [16:53:26]Read from MH i2c: E2 0E 00 35 4F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 1A [16:53:26]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:53:26]wFMCommunicate OK [16:53:26]SAM_PROTO_GetShiftState done [16:53:26]FM_GetShiftState done [16:53:26]opened in 1712967615 [16:53:26]opened+sec_in_day 1713054015 [16:53:26]quantity*price = 100050 [16:53:26]sum+1 = 100052 [16:53:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 189 13.04.2024 16:53 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 28982 ФПД: 82216390664870 1/tax-web-control/client/api/v1/ticket?date=20240413T165332&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28982&fm=82216390664870&tin=02508201610067®Number=0000138879044617&sum=100051 [16:53:27]StoreToDocumentArchive [16:53:27]shift 115 fd 28982 [16:53:27]save to /storage/0115/doc_00028982 [16:53:27]save last doc name /storage/0115/doc_00028982 to /storage/kkm_last_doc_name [16:53:27]save OK [16:53:27]Clear old archive folders... [16:53:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:53:27]tlvbuf is 01208C40 [16:53:27]SAM_PROTO_ClearQueue [16:53:27]wFMCommunicate request_size=4 [16:53:27]MH_SAM_APDU [16:53:27]CAPDU: 80 09 00 00 [16:53:27]Write to MH i2c: E2 08 00 42 4F 80 09 00 00 00 00 00 00 03 [16:53:27]Write i2c OK [16:53:27]MH_I2C_Read... [16:53:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:27]Read from MH i2c: E2 [16:53:27]MH_I2C_Read... [16:53:27]Read from MH i2c: E2 03 00 [16:53:27]MH_I2C_Read... [16:53:27]Read from MH i2c: E2 03 00 42 4F 00 90 00 05 [16:53:27]RAPDU: 90 00 [16:53:27]wFMCommunicate OK [16:53:27]SAM_PROTO_ClearQueue done [16:53:27]KKMCreateOFDPacket [16:53:27]OFDProtocolAddRootSTLVToBuf [16:53:27]FM_MakeSignedData [16:53:27]FM_MakeSignedData [16:53:27]SAM_PROTO_SignData [16:53:27]wFMCommunicate request_size=4 [16:53:27]MH_SAM_APDU [16:53:27]CAPDU: 80 0D 01 02 [16:53:27]Write to MH i2c: E2 08 00 43 4F 80 0D 01 02 00 00 00 00 0B [16:53:27]Write i2c OK [16:53:27]MH_I2C_Read... [16:53:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:27]Read from MH i2c: E2 [16:53:27]MH_I2C_Read... [16:53:27]Read from MH i2c: E2 03 00 [16:53:27]MH_I2C_Read... [16:53:27]Read from MH i2c: E2 03 00 43 4F 00 90 00 06 [16:53:27]RAPDU: 90 00 [16:53:27]wFMCommunicate OK [16:53:27]wFMCommunicate request_size=255 [16:53:27]MH_SAM_APDU [16:53: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 BD 00 00 00 F4 03 04 00 8C B8 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 36 71 00 00 35 04 06 00 4A [16:53:27]Write to MH i2c: E2 02 01 44 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 BD 00 00 00 F4 03 04 00 8C B8 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 36 71 00 00 35 04 06 00 4A 00 00 82 [16:53:27]Write i2c OK [16:53:27]MH_I2C_Read... [16:53:27]OFD Sender: No OFD packet to send [16:53:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:28]Read from MH i2c: E2 [16:53:28]MH_I2C_Read... [16:53:28]Read from MH i2c: E2 03 00 [16:53:28]MH_I2C_Read... [16:53:28]Read from MH i2c: E2 03 00 44 4F 00 90 00 07 [16:53:28]RAPDU: 90 00 [16:53:28]wFMCommunicate OK [16:53:28]wFMCommunicate request_size=10 [16:53:28]MH_SAM_APDU [16:53:28]CAPDU: 80 0D 02 02 05 C6 7E C2 A2 A6 [16:53:28]Write to MH i2c: E2 0D 00 45 4F 80 0D 02 02 05 00 C6 7E C2 A2 A6 00 00 66 [16:53:28]Write i2c OK [16:53:28]MH_I2C_Read... [16:53:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:28]Read from MH i2c: E2 [16:53:28]MH_I2C_Read... [16:53:28]Read from MH i2c: E2 03 00 [16:53:28]MH_I2C_Read... [16:53:28]Read from MH i2c: E2 03 00 45 4F 00 90 00 08 [16:53:28]RAPDU: 90 00 [16:53:28]wFMCommunicate OK [16:53:28]wFMCommunicate request_size=4 [16:53:28]MH_SAM_APDU [16:53:28]CAPDU: 80 0D 03 02 [16:53:28]Write to MH i2c: E2 08 00 46 4F 80 0D 03 02 00 00 00 00 10 [16:53:28]Write i2c OK [16:53:28]MH_I2C_Read... [16:53:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:28]Read from MH i2c: E2 [16:53:28]MH_I2C_Read... [16:53:28]Read from MH i2c: E2 0B 00 [16:53:28]MH_I2C_Read... [16:53:28]Read from MH i2c: E2 0B 00 46 4F 00 9C BB AA CB E3 9A F1 42 90 00 8D [16:53:28]RAPDU: 9C BB AA CB E3 9A F1 42 90 00 [16:53:28]wFMCommunicate OK [16:53:28]SAM_PROTO_SignData done [16:53:28]FM_MakeSignedData done [16:53:28]CreateOFDProtocolMessage [16:53:28]wFMCommunicate request_size=4 [16:53:28]MH_SAM_APDU [16:53:28]CAPDU: 80 11 00 00 [16:53:28]Write to MH i2c: E2 08 00 47 4F 80 11 00 00 00 00 00 00 10 [16:53:28]Write i2c OK [16:53:28]MH_I2C_Read... [16:53:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:28]Read from MH i2c: E2 [16:53:28]MH_I2C_Read... [16:53:28]Read from MH i2c: E2 17 00 [16:53:28]MH_I2C_Read... [16:53:28]Read from MH i2c: E2 17 00 47 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5F [16:53:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:53:28]wFMCommunicate OK [16:53:28]CreateOFDProtocolMessage done [16:53:28]OFDSenderStorePacket 28982 [16:53:28]StoreOFDPacket docnum=28982 [16:53:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 5B AB 07 01 76 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 BD 00 00 00 F4 03 04 00 8C B8 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 36 71 00 00 35 04 06 00 4A C6 7E C2 A2 A6 9C BB AA CB E3 9A F1 42 [16:53:28]CheckFolder [16:53:28]dirname=/storage/ofd_packets [16:53:28]CheckFolder done [16:53:28]ProducePacketName [16:53:28]name=ofd_packets/00028982 [16:53:28]NVStorageSaveData ofd_packets/00028982 [16:53:28]File name is /storage/ofd_packets/00028982 [16:53:28]Write 301 bytes [16:53:28]NVStorageSaveData done [16:53:28]OFDSenderStorePacket done [16:53:28]KKMCreateOFDPacket done [16:53:28]NVStorageSaveData kkm_last_timestamp [16:53:28]File name is /storage/kkm_last_timestamp [16:53:28]Write 4 bytes [16:53:28]NVStorageSaveData done [16:53:28]ExternCall_PrintAddStr [16:53:28]wPrintStart [16:53:28]Write to MH i2c: 01 00 00 48 4F 97 [16:53:28]Write i2c OK [16:53:28]MH_I2C_Read... [16:53:28]Read from MH i2c: 01 [16:53:28]MH_I2C_Read... [16:53:28]Read from MH i2c: 01 07 00 [16:53:28]MH_I2C_Read... [16:53:28]Read from MH i2c: 01 07 00 48 4F 00 00 00 00 00 FF 0F AC [16:53:28]RasterBufferAndPrint [16:53:28]line Счет N : (1)347344 [16:53:28]line ИНН: 02508201610067 [16:53:28]line Контрольно-Кассовый Чек [16:53:28]line ПРОДАЖА [16:53:28]line ТРК (МРК, ГНК) : 13 [16:53:28]line Товар: 2710124130 [16:53:28]line Аи-92-К-5 [16:53:28]line 15.560 * 64.30 [16:53:28]line = 1000.51 [16:53:28]line НДС 12% НСП 1% [16:53:28]line > о реализуемом товаре [16:53:28]line ИТОГО: 1000.51 [16:53:28]line НСП 1% : 8.85 [16:53:28]line НДС 12% : 106.25 [16:53:28]line Наличными: 0.00 [16:53:28]line Безнал.: 1000.51 [16:53:28]line Место: АЗС № 108 "Партнер Нефть" [16:53:28]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:53:28]line СНО: Общий режим [16:53:28]line Чек 189 13.04.2024 16:53 [16:53:28]line Смена: 115 ФФД: 1.0 [16:53:28]line ЗНМ: 0300000027 [16:53:28]line РНМ: 0000138879044617 [16:53:28]line Версия ККМ: 001 [16:53:28]line Платежная система: АКБ Кыргызстан [16:53:28]line ФМ: 0000000000963154 [16:53:28]line ФД: 28982 [16:53:28]line ФПД: 82216390664870 [16:53:28]line 1/tax-web-control/client/api/v1/ticket?date=20240413T165332&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28982&fm=82216390664870&tin=02508201610067®Number=0000138879044617&sum=100051 [16:53:28]OFD Sender: Processing packet 28982 [packets to send 8, broken 7] [16:53:28]ProducePacketName [16:53:28]name=ofd_packets/00028982 [16:53:28]OFD Sender: To server: pG, [16:53:28]CommunicateWithHost lk.salyk.kg:30040 [16:53:28]ConnectInit lk.salyk.kg [16:53:28]written 0, free lines is 4095 [16:53:28]Connected sock=10 [16: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 31 35 34 0F 01 00 00 5B AB 07 01 76 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 BD 00 00 00 F4 03 04 00 8C B8 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 36 71 00 00 35 04 06 00 4A C6 7E C2 A2 A6 9C BB AA CB E3 9A F1 42 [16: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 31 35 34 4F 00 00 00 E6 75 47 00 20 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 31 35 34 10 04 04 00 36 71 00 00 F4 03 04 00 32 63 1A 66 B6 04 01 00 00 58 35 3C 35 B8 66 13 ED [16:53:28]CommunicateWithHost err = 0 [16:53:28]CheckOFDResponse [16:53:28]1017 (14) - 77093643461234 [16:53:28]1041 (16) - 0000000000963154 [16:53:28]1040 (4) - 28982 [16:53:28]1012 (4) - 13.04.2024 10:49 [16:53:28]1206 (1) - 0 [16:53:28]OFD Sender: Remove packet 28982 [16:53:28]ProducePacketName [16:53:28]name=ofd_packets/00028982 [16:53:28]NVStorageDeleteData [16:53:28]Write to MH i2c: 01 00 00 71 4F C0 [16:53:28]Write i2c OK [16:53:28]MH_I2C_Read... [16:53:28]Read from MH i2c: 01 [16:53:28]MH_I2C_Read... [16:53:28]Read from MH i2c: 01 07 00 [16:53:28]MH_I2C_Read... [16:53:28]Read from MH i2c: 01 07 00 71 4F 00 00 00 00 00 DB 0C AE [16:53:28]RasterBufferAndPrint [16:53:28]line [16:53:28]line [16:53:28]line [16:53:28]line [16:53:28]line [16:53:28]written 0, free lines is 3299 [16:53:28]MH_Cut [16:53:28]Write to MH i2c: D1 01 00 78 4F 01 99 [16:53:28]Write i2c OK [16:53:28]MH_I2C_Read... [16:53:28]Read from MH i2c: D1 [16:53:28]MH_I2C_Read... [16:53:28]Read from MH i2c: D1 01 00 [16:53:28]MH_I2C_Read... [16:53:28]Read from MH i2c: D1 01 00 78 4F 00 98 [16:53:28]Write to MH i2c: 01 00 00 79 4F C8 [16:53:28]Write i2c OK [16:53:28]MH_I2C_Read... [16:53:29]OFD Sender: No OFD packet to send [16:53:29]*** Cut start [16:53:29]*** Partial cut [16:53:29]*** CUTSNS_PIN = 1 [16:53:29]*** CUTSNS_PIN = 0 [16:53:30]*** Brake cut motor [16:53:30]Read from MH i2c: 01 [16:53:30]MH_I2C_Read... [16:53:30]*** Stop cut motor [16:53:30]*** Cut end [16:53:30]Read from MH i2c: 01 07 00 [16:53:30]MH_I2C_Read... [16:53:30]Read from MH i2c: 01 07 00 79 4F 00 00 00 00 00 FF 0F DD [16:53:30]process_action close_receipt done [16:53:30]requested_data is exist [16:53:30]produce_requested_data [16:53:30]requested_item fm.sn is exist - process it [16:53:30]wFMCommunicate request_size=4 [16:53:30]MH_SAM_APDU [16:53:30]CAPDU: 80 11 00 00 [16:53:30]Write to MH i2c: E2 08 00 7A 4F 80 11 00 00 00 00 00 00 43 [16:53:30]Write i2c OK [16:53:30]MH_I2C_Read... [16:53:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:30]Read from MH i2c: E2 [16:53:30]MH_I2C_Read... [16:53:30]Read from MH i2c: E2 17 00 [16:53:30]MH_I2C_Read... [16:53:30]Read from MH i2c: E2 17 00 7A 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 92 [16:53:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:53:30]wFMCommunicate OK [16:53:30]requested_item fd.num is exist - process it [16:53:30]SAM_PROTO_GetFieldsCounters [16:53:30]wFMCommunicate request_size=4 [16:53:30]MH_SAM_APDU [16:53:30]CAPDU: 80 13 00 00 [16:53:30]Write to MH i2c: E2 08 00 7B 4F 80 13 00 00 00 00 00 00 46 [16:53:30]Write i2c OK [16:53:30]MH_I2C_Read... [16:53:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:30]Read from MH i2c: E2 [16:53:30]MH_I2C_Read... [16:53:30]Read from MH i2c: E2 62 00 [16:53:30]MH_I2C_Read... [16:53:30]Read from MH i2c: E2 62 00 7B 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 36 71 00 00 0E 04 04 00 73 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 D5 [16: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 36 71 00 00 0E 04 04 00 73 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 [16:53:30]wFMCommunicate OK [16:53:30]SAM_PROTO_GetFieldsCounters done [16:53:30]requested_item shift.num is exist - process it [16:53:30]requested_item shift.opened is exist - process it [16:53:30]req_shift_opened [16:53:30]FM_GetShiftState [16:53:30]SAM_PROTO_GetShiftState [16:53:30]wFMCommunicate request_size=4 [16:53:30]MH_SAM_APDU [16:53:30]CAPDU: 80 13 01 00 [16:53:30]Write to MH i2c: E2 08 00 7C 4F 80 13 01 00 00 00 00 00 48 [16:53:30]Write i2c OK [16:53:30]MH_I2C_Read... [16:53:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:30]Read from MH i2c: E2 [16:53:30]MH_I2C_Read... [16:53:30]Read from MH i2c: E2 0E 00 [16:53:30]MH_I2C_Read... [16:53:30]Read from MH i2c: E2 0E 00 7C 4F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 61 [16:53:30]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:53:30]wFMCommunicate OK [16:53:30]SAM_PROTO_GetShiftState done [16:53:30]FM_GetShiftState done [16:53:30]req_shift_opened done [16:53:30]requested_item shift.open_date is exist - process it [16:53:30]req_shift_open_date [16:53:30]req_shift_open_date done [16:53:30]produce_requested_data done [16:53:30]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28982,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [16:53:30]process_action_free close_receipt [16:53:30]json_value_free [16:53:30]json_value_free done [16:53:30]process_json_proto returns [16:53:30]Send response to host [16:53:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28982,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [16:53:30]free response buf [16:53:30]execute_script done [16:53:30]execute_script returns [16:53:30]free content buf [16:53:30]Sock 9.Close socket [16:53:30]Sock 9.Thread stoped [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:47]accept exits with 7 [16:55:47]New connection [16:55:47]New thread 3066785124 created [16:55:47]Thread 3066928484 joined [16:55:47]Waiting for new connection... [16:55:47] Sock 7.Parse request [16:55:47]Sock 7.Check first char [16:55:47]Sock 7.First char is OK [16:55:47]request: POST /json_proto HTTP/1.0 [16:55:47]Method: POST [16:55:47]URL: /json_proto [16:55:47]Method is POST - this is cgi request [16:55:47]url: /json_proto [16:55:47]query_string will be loaded in cgi processing [16:55:47]execute_cgi json_proto POST (null) [16:55:47]execute_cgi path=json_proto method=POST [16:55:47]POST find Content-Length [16:55:47]Host: 172.17.33.3:8080 [16:55:47]Content-Length: 677 [16:55:47]Content-Type: application/json [16:55:47] [16:55:47]POST finish read [16:55:47]Found Content-Length = 677 [16:55:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347345", "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" : 64.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [16:55:47]execute_script... [16:55: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)347345", "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" : 64.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [16:55:47]POST & json_proto [16:55:47]process_json_proto [16:55:47]json parsed OK: [16:55:47]protocol is kg_v1.0 [16:55:47]action value=close_receipt [16:55:47]process_action close_receipt [16:55:47]cmd_close_receipt [16:55:47]MH_GetDate [16:55:47]Write to MH i2c: F0 00 00 7D 4F BB [16:55:47]Write i2c OK [16:55:47]MH_I2C_Read... [16:55:47]Read from MH i2c: F0 [16:55:47]MH_I2C_Read... [16:55:47]Read from MH i2c: F0 09 00 [16:55:47]MH_I2C_Read... [16:55:47]Read from MH i2c: F0 09 00 7D 4F 00 19 B9 1A 66 23 5B 8F 65 88 [16:55:47]GetLastDocTimeStamp 1713027212 [16:55:47]current date 1713027353 [16:55:47]FM_GetShiftState [16:55:47]SAM_PROTO_GetShiftState [16:55:47]wFMCommunicate request_size=4 [16:55:47]MH_SAM_APDU [16:55:47]CAPDU: 80 13 01 00 [16:55:47]Write to MH i2c: E2 08 00 7E 4F 80 13 01 00 00 00 00 00 4A [16:55:47]Write i2c OK [16:55:47]MH_I2C_Read... [16:55:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:47]Read from MH i2c: E2 [16:55:47]MH_I2C_Read... [16:55:47]Read from MH i2c: E2 0E 00 [16:55:47]MH_I2C_Read... [16:55:47]Read from MH i2c: E2 0E 00 7E 4F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 63 [16:55:47]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:55:47]wFMCommunicate OK [16:55:47]SAM_PROTO_GetShiftState done [16:55:47]FM_GetShiftState done [16:55:47]opened in 1712967615 [16:55:47]opened+sec_in_day 1713054015 [16:55:47]quantity*price = 20061 [16:55:47]sum+1 = 20063 [16:55:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 190 13.04.2024 16:55 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28983 ФПД: 124858879589457 1/tax-web-control/client/api/v1/ticket?date=20240413T165553&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28983&fm=124858879589457&tin=02508201610067®Number=0000138879044617&sum=20000 [16:55:48]StoreToDocumentArchive [16:55:48]shift 115 fd 28983 [16:55:48]save to /storage/0115/doc_00028983 [16:55:48]save last doc name /storage/0115/doc_00028983 to /storage/kkm_last_doc_name [16:55:48]save OK [16:55:48]Clear old archive folders... [16:55:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:48]tlvbuf is 012248C0 [16:55:48]SAM_PROTO_ClearQueue [16:55:48]wFMCommunicate request_size=4 [16:55:48]MH_SAM_APDU [16:55:48]CAPDU: 80 09 00 00 [16:55:48]Write to MH i2c: E2 08 00 8B 4F 80 09 00 00 00 00 00 00 4C [16:55:48]Write i2c OK [16:55:48]MH_I2C_Read... [16:55:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:48]Read from MH i2c: E2 [16:55:48]MH_I2C_Read... [16:55:48]Read from MH i2c: E2 03 00 [16:55:48]MH_I2C_Read... [16:55:48]Read from MH i2c: E2 03 00 8B 4F 00 90 00 4E [16:55:48]RAPDU: 90 00 [16:55:48]wFMCommunicate OK [16:55:48]SAM_PROTO_ClearQueue done [16:55:48]KKMCreateOFDPacket [16:55:48]OFDProtocolAddRootSTLVToBuf [16:55:48]FM_MakeSignedData [16:55:48]FM_MakeSignedData [16:55:48]SAM_PROTO_SignData [16:55:48]wFMCommunicate request_size=4 [16:55:48]MH_SAM_APDU [16:55:48]CAPDU: 80 0D 01 02 [16:55:48]Write to MH i2c: E2 08 00 8C 4F 80 0D 01 02 00 00 00 00 54 [16:55:48]Write i2c OK [16:55:48]MH_I2C_Read... [16:55:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:48]Read from MH i2c: E2 [16:55:48]MH_I2C_Read... [16:55:48]Read from MH i2c: E2 03 00 [16:55:48]MH_I2C_Read... [16:55:48]Read from MH i2c: E2 03 00 8C 4F 00 90 00 4F [16:55:48]RAPDU: 90 00 [16:55:48]wFMCommunicate OK [16:55:48]wFMCommunicate request_size=255 [16:55:48]MH_SAM_APDU [16:55: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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 BE 00 00 00 F4 03 04 00 19 B9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 37 71 00 00 35 04 06 00 71 [16:55:48]Write to MH i2c: E2 02 01 8D 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 BE 00 00 00 F4 03 04 00 19 B9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 37 71 00 00 35 04 06 00 71 00 00 1D [16:55:48]Write i2c OK [16:55:48]MH_I2C_Read... [16:55:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:49]Read from MH i2c: E2 [16:55:49]MH_I2C_Read... [16:55:49]Read from MH i2c: E2 03 00 [16:55:49]MH_I2C_Read... [16:55:49]Read from MH i2c: E2 03 00 8D 4F 00 90 00 50 [16:55:49]RAPDU: 90 00 [16:55:49]wFMCommunicate OK [16:55:49]wFMCommunicate request_size=10 [16:55:49]MH_SAM_APDU [16:55:49]CAPDU: 80 0D 02 02 05 8E F9 2A 3C 51 [16:55:49]Write to MH i2c: E2 0D 00 8E 4F 80 0D 02 02 05 00 8E F9 2A 3C 51 00 00 9F [16:55:49]Write i2c OK [16:55:49]MH_I2C_Read... [16:55:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:49]Read from MH i2c: E2 [16:55:49]MH_I2C_Read... [16:55:49]Read from MH i2c: E2 03 00 [16:55:49]MH_I2C_Read... [16:55:49]Read from MH i2c: E2 03 00 8E 4F 00 90 00 51 [16:55:49]RAPDU: 90 00 [16:55:49]wFMCommunicate OK [16:55:49]wFMCommunicate request_size=4 [16:55:49]MH_SAM_APDU [16:55:49]CAPDU: 80 0D 03 02 [16:55:49]Write to MH i2c: E2 08 00 8F 4F 80 0D 03 02 00 00 00 00 59 [16:55:49]Write i2c OK [16:55:49]MH_I2C_Read... [16:55:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:49]Read from MH i2c: E2 [16:55:49]MH_I2C_Read... [16:55:49]Read from MH i2c: E2 0B 00 [16:55:49]MH_I2C_Read... [16:55:49]Read from MH i2c: E2 0B 00 8F 4F 00 40 F3 FF 80 83 B3 43 FB 90 00 80 [16:55:49]RAPDU: 40 F3 FF 80 83 B3 43 FB 90 00 [16:55:49]wFMCommunicate OK [16:55:49]SAM_PROTO_SignData done [16:55:49]FM_MakeSignedData done [16:55:49]CreateOFDProtocolMessage [16:55:49]wFMCommunicate request_size=4 [16:55:49]MH_SAM_APDU [16:55:49]CAPDU: 80 11 00 00 [16:55:49]Write to MH i2c: E2 08 00 90 4F 80 11 00 00 00 00 00 00 59 [16:55:49]Write i2c OK [16:55:49]MH_I2C_Read... [16:55:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:49]Read from MH i2c: E2 [16:55:49]MH_I2C_Read... [16:55:49]Read from MH i2c: E2 17 00 [16:55:49]MH_I2C_Read... [16:55:49]Read from MH i2c: E2 17 00 90 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A8 [16:55:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:55:49]wFMCommunicate OK [16:55:49]CreateOFDProtocolMessage done [16:55:49]OFDSenderStorePacket 28983 [16:55:49]StoreOFDPacket docnum=28983 [16:55:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 CB 25 07 01 57 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 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 BE 00 00 00 F4 03 04 00 19 B9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 37 71 00 00 35 04 06 00 71 8E F9 2A 3C 51 40 F3 FF 80 83 B3 43 FB [16:55:49]CheckFolder [16:55:49]dirname=/storage/ofd_packets [16:55:49]CheckFolder done [16:55:49]ProducePacketName [16:55:49]name=ofd_packets/00028983 [16:55:49]NVStorageSaveData ofd_packets/00028983 [16:55:49]File name is /storage/ofd_packets/00028983 [16:55:49]Write 301 bytes [16:55:49]NVStorageSaveData done [16:55:49]OFDSenderStorePacket done [16:55:49]KKMCreateOFDPacket done [16:55:49]NVStorageSaveData kkm_last_timestamp [16:55:49]File name is /storage/kkm_last_timestamp [16:55:49]Write 4 bytes [16:55:49]NVStorageSaveData done [16:55:49]ExternCall_PrintAddStr [16:55:49]wPrintStart [16:55:49]Write to MH i2c: 01 00 00 91 4F E0 [16:55:49]Write i2c OK [16:55:49]MH_I2C_Read... [16:55:49]Read from MH i2c: 01 [16:55:49]MH_I2C_Read... [16:55:49]Read from MH i2c: 01 07 00 [16:55:49]MH_I2C_Read... [16:55:49]Read from MH i2c: 01 07 00 91 4F 00 00 00 00 00 FF 0F F5 [16:55:49]RasterBufferAndPrint [16:55:49]line Счет N : (1)347345 [16:55:49]line ИНН: 02508201610067 [16:55:49]line Контрольно-Кассовый Чек [16:55:49]line ПРОДАЖА [16:55:49]line ТРК (МРК, ГНК) : 42 [16:55:49]line Товар: 2710124130 [16:55:49]line Аи-92-К-5 [16:55:49]line 3.120 * 64.30 [16:55:49]line = 200.62 [16:55:49]line НДС 12% НСП 1% [16:55:49]line > о реализуемом товаре [16:55:49]line ОКРУГЛЕНИЕ: -0.62 [16:55:49]line ИТОГО: 200.00 [16:55:49]line Внесено: 200.00 [16:55:49]line СДАЧА: 0.00 [16:55:49]line НСП 1% : 1.77 [16:55:49]line НДС 12% : 21.30 [16:55:49]line Наличными: 200.00 [16:55:49]line Безнал.: 0.00 [16:55:49]line Место: АЗС № 108 "Партнер Нефть" [16:55:49]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:55:49]line СНО: Общий режим [16:55:49]line Чек 190 13.04.2024 16:55 [16:55:49]line Смена: 115 ФФД: 1.0 [16:55:49]line ЗНМ: 0300000027 [16:55:49]line РНМ: 0000138879044617 [16:55:49]line Версия ККМ: 001 [16:55:49]line ФМ: 0000000000963154 [16:55:49]line ФД: 28983 [16:55:49]line ФПД: 124858879589457 [16:55:49]line 1/tax-web-control/client/api/v1/ticket?date=20240413T165553&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28983&fm=124858879589457&tin=02508201610067®Number=0000138879044617&sum=20000 [16:55:49]OFD Sender: Processing packet 28983 [packets to send 8, broken 7] [16:55:49]ProducePacketName [16:55:49]name=ofd_packets/00028983 [16:55:49]OFD Sender: To server: pG, [16:55:49]CommunicateWithHost lk.salyk.kg:30040 [16:55:49]ConnectInit lk.salyk.kg [16:55:49]written 0, free lines is 4095 [16:55:49]Connected sock=10 [16:55: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 31 35 34 0F 01 00 00 CB 25 07 01 57 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 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 BE 00 00 00 F4 03 04 00 19 B9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 37 71 00 00 35 04 06 00 71 8E F9 2A 3C 51 40 F3 FF 80 83 B3 43 FB [16:55:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F6 3F 47 00 F2 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 31 35 34 10 04 04 00 37 71 00 00 F4 03 04 00 BF 63 1A 66 B6 04 01 00 00 8E 92 CC C1 B4 05 56 E0 [16:55:49]CommunicateWithHost err = 0 [16:55:49]CheckOFDResponse [16:55:49]1017 (14) - 77093643461234 [16:55:49]1041 (16) - 0000000000963154 [16:55:49]1040 (4) - 28983 [16:55:49]1012 (4) - 13.04.2024 10:51 [16:55:49]1206 (1) - 0 [16:55:49]OFD Sender: Remove packet 28983 [16:55:49]ProducePacketName [16:55:49]name=ofd_packets/00028983 [16:55:49]NVStorageDeleteData [16:55:50]Write to MH i2c: 01 00 00 BB 4F 0A [16:55:50]Write i2c OK [16:55:50]MH_I2C_Read... [16:55:50]Read from MH i2c: 01 [16:55:50]MH_I2C_Read... [16:55:50]Read from MH i2c: 01 07 00 [16:55:50]MH_I2C_Read... [16:55:50]Read from MH i2c: 01 07 00 BB 4F 00 00 00 00 00 C2 0C DF [16:55:50]RasterBufferAndPrint [16:55:50]line [16:55:50]line [16:55:50]line [16:55:50]line [16:55:50]line [16:55:50]written 0, free lines is 3272 [16:55:50]MH_Cut [16:55:50]Write to MH i2c: D1 01 00 C2 4F 01 E3 [16:55:50]Write i2c OK [16:55:50]MH_I2C_Read... [16:55:50]Read from MH i2c: D1 [16:55:50]MH_I2C_Read... [16:55:50]Read from MH i2c: D1 01 00 [16:55:50]MH_I2C_Read... [16:55:50]Read from MH i2c: D1 01 00 C2 4F 00 E2 [16:55:50]Write to MH i2c: 01 00 00 C3 4F 12 [16:55:50]Write i2c OK [16:55:50]MH_I2C_Read... [16:55:50]OFD Sender: No OFD packet to send [16:55:50]*** Cut start [16:55:50]*** Partial cut [16:55:50]*** CUTSNS_PIN = 1 [16:55:50]*** CUTSNS_PIN = 0 [16:55:51]*** Brake cut motor [16:55:51]Read from MH i2c: 01 [16:55:51]MH_I2C_Read... [16:55:51]*** Stop cut motor [16:55:51]*** Cut end [16:55:51]Read from MH i2c: 01 07 00 [16:55:51]MH_I2C_Read... [16:55:51]Read from MH i2c: 01 07 00 C3 4F 00 00 00 00 00 FF 0F 27 [16:55:51]process_action close_receipt done [16:55:51]requested_data is exist [16:55:51]produce_requested_data [16:55:51]requested_item fm.sn is exist - process it [16:55:51]wFMCommunicate request_size=4 [16:55:51]MH_SAM_APDU [16:55:51]CAPDU: 80 11 00 00 [16:55:51]Write to MH i2c: E2 08 00 C4 4F 80 11 00 00 00 00 00 00 8D [16:55:51]Write i2c OK [16:55:51]MH_I2C_Read... [16:55:51]Read from MH i2c: E2 [16:55:51]MH_I2C_Read... [16:55:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:51]Read from MH i2c: E2 17 00 [16:55:51]MH_I2C_Read... [16:55:51]Read from MH i2c: E2 17 00 C4 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DC [16:55:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:55:51]wFMCommunicate OK [16:55:51]requested_item fd.num is exist - process it [16:55:51]SAM_PROTO_GetFieldsCounters [16:55:51]wFMCommunicate request_size=4 [16:55:51]MH_SAM_APDU [16:55:51]CAPDU: 80 13 00 00 [16:55:51]Write to MH i2c: E2 08 00 C5 4F 80 13 00 00 00 00 00 00 90 [16:55:51]Write i2c OK [16:55:51]MH_I2C_Read... [16:55:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:51]Read from MH i2c: E2 [16:55:51]MH_I2C_Read... [16:55:51]Read from MH i2c: E2 62 00 [16:55:51]MH_I2C_Read... [16:55:51]Read from MH i2c: E2 62 00 C5 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 37 71 00 00 0E 04 04 00 73 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 23 [16:55: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 37 71 00 00 0E 04 04 00 73 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 [16:55:51]wFMCommunicate OK [16:55:51]SAM_PROTO_GetFieldsCounters done [16:55:51]requested_item shift.num is exist - process it [16:55:51]requested_item shift.opened is exist - process it [16:55:51]req_shift_opened [16:55:51]FM_GetShiftState [16:55:51]SAM_PROTO_GetShiftState [16:55:51]wFMCommunicate request_size=4 [16:55:51]MH_SAM_APDU [16:55:51]CAPDU: 80 13 01 00 [16:55:51]Write to MH i2c: E2 08 00 C6 4F 80 13 01 00 00 00 00 00 92 [16:55:51]Write i2c OK [16:55:51]MH_I2C_Read... [16:55:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:51]Read from MH i2c: E2 [16:55:51]MH_I2C_Read... [16:55:51]Read from MH i2c: E2 0E 00 [16:55:51]MH_I2C_Read... [16:55:51]Read from MH i2c: E2 0E 00 C6 4F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 AB [16:55:51]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:55:51]wFMCommunicate OK [16:55:51]SAM_PROTO_GetShiftState done [16:55:51]FM_GetShiftState done [16:55:51]req_shift_opened done [16:55:51]requested_item shift.open_date is exist - process it [16:55:51]req_shift_open_date [16:55:51]req_shift_open_date done [16:55:51]produce_requested_data done [16:55:51]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28983,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [16:55:51]process_action_free close_receipt [16:55:51]json_value_free [16:55:51]json_value_free done [16:55:51]process_json_proto returns [16:55:51]Send response to host [16:55:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28983,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [16:55:51]free response buf [16:55:51]execute_script done [16:55:51]execute_script returns [16:55:51]free content buf [16:55:51]Sock 7.Close socket [16:55:51]Sock 7.Thread stoped [16:55:55]OFD Sender: No OFD packet to send [16:55:56]accept exits with 9 [16:55:56]New connection [16:55:56]New thread 3066928484 created [16:55:56]Thread 3066785124 joined [16:55:56]Waiting for new connection... [16:55:56] Sock 9.Parse request [16:55:56]Sock 9.Check first char [16:55:56]Sock 9.First char is OK [16:55:56]request: POST /json_proto HTTP/1.0 [16:55:56]Method: POST [16:55:56]URL: /json_proto [16:55:56]Method is POST - this is cgi request [16:55:56]url: /json_proto [16:55:56]query_string will be loaded in cgi processing [16:55:56]execute_cgi json_proto POST (null) [16:55:56]execute_cgi path=json_proto method=POST [16:55:56]POST find Content-Length [16:55:56]Host: 172.17.33.3:8080 [16:55:56]Content-Length: 677 [16:55:56]Content-Type: application/json [16:55:56] [16:55:56]POST finish read [16:55:56]Found Content-Length = 677 [16:55:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347346", "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" : 64.30, "quantity" : 7.780, "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" ] } } [16:55:56]execute_script... [16:55: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)347346", "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" : 64.30, "quantity" : 7.780, "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" ] } } [16:55:56]POST & json_proto [16:55:56]process_json_proto [16:55:56]json parsed OK: [16:55:56]protocol is kg_v1.0 [16:55:56]action value=close_receipt [16:55:56]process_action close_receipt [16:55:56]cmd_close_receipt [16:55:56]MH_GetDate [16:55:56]Write to MH i2c: F0 00 00 C7 4F 05 [16:55:56]Write i2c OK [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: F0 [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: F0 09 00 [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: F0 09 00 C7 4F 00 22 B9 1A 66 23 5B 8F 65 DB [16:55:56]GetLastDocTimeStamp 1713027353 [16:55:56]current date 1713027362 [16:55:56]FM_GetShiftState [16:55:56]SAM_PROTO_GetShiftState [16:55:56]wFMCommunicate request_size=4 [16:55:56]MH_SAM_APDU [16:55:56]CAPDU: 80 13 01 00 [16:55:56]Write to MH i2c: E2 08 00 C8 4F 80 13 01 00 00 00 00 00 94 [16:55:56]Write i2c OK [16:55:56]MH_I2C_Read... [16:55:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:56]Read from MH i2c: E2 [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: E2 0E 00 [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: E2 0E 00 C8 4F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 AD [16:55:56]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:55:56]wFMCommunicate OK [16:55:56]SAM_PROTO_GetShiftState done [16:55:56]FM_GetShiftState done [16:55:56]opened in 1712967615 [16:55:56]opened+sec_in_day 1713054015 [16:55:56]quantity*price = 50025 [16:55:56]sum+1 = 50026 [16:55: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 191 13.04.2024 16:56 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28984 ФПД: 87948533426554 1/tax-web-control/client/api/v1/ticket?date=20240413T165602&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28984&fm=87948533426554&tin=02508201610067®Number=0000138879044617&sum=50000 [16:55:57]StoreToDocumentArchive [16:55:57]shift 115 fd 28984 [16:55:57]save to /storage/0115/doc_00028984 [16:55:57]save last doc name /storage/0115/doc_00028984 to /storage/kkm_last_doc_name [16:55:57]save OK [16:55:57]Clear old archive folders... [16:55:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:57]tlvbuf is 0121C540 [16:55:57]SAM_PROTO_ClearQueue [16:55:57]wFMCommunicate request_size=4 [16:55:57]MH_SAM_APDU [16:55:57]CAPDU: 80 09 00 00 [16:55:57]Write to MH i2c: E2 08 00 D5 4F 80 09 00 00 00 00 00 00 96 [16:55:57]Write i2c OK [16:55:57]MH_I2C_Read... [16:55:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:57]Read from MH i2c: E2 [16:55:57]MH_I2C_Read... [16:55:57]Read from MH i2c: E2 03 00 [16:55:57]MH_I2C_Read... [16:55:57]Read from MH i2c: E2 03 00 D5 4F 00 90 00 98 [16:55:57]RAPDU: 90 00 [16:55:57]wFMCommunicate OK [16:55:57]SAM_PROTO_ClearQueue done [16:55:57]KKMCreateOFDPacket [16:55:57]OFDProtocolAddRootSTLVToBuf [16:55:57]FM_MakeSignedData [16:55:57]FM_MakeSignedData [16:55:57]SAM_PROTO_SignData [16:55:57]wFMCommunicate request_size=4 [16:55:57]MH_SAM_APDU [16:55:57]CAPDU: 80 0D 01 02 [16:55:57]Write to MH i2c: E2 08 00 D6 4F 80 0D 01 02 00 00 00 00 9E [16:55:57]Write i2c OK [16:55:57]MH_I2C_Read... [16:55:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:57]Read from MH i2c: E2 [16:55:57]MH_I2C_Read... [16:55:57]Read from MH i2c: E2 03 00 [16:55:57]MH_I2C_Read... [16:55:57]Read from MH i2c: E2 03 00 D6 4F 00 90 00 99 [16:55:57]RAPDU: 90 00 [16:55:57]wFMCommunicate OK [16:55:57]wFMCommunicate request_size=255 [16:55:57]MH_SAM_APDU [16:55: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 BF 00 00 00 F4 03 04 00 22 B9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 38 71 00 00 35 04 06 00 4F [16:55:57]Write to MH i2c: E2 02 01 D7 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 BF 00 00 00 F4 03 04 00 22 B9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 38 71 00 00 35 04 06 00 4F 00 00 E5 [16:55:57]Write i2c OK [16:55:57]MH_I2C_Read... [16:55:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:58]Read from MH i2c: E2 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 03 00 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 03 00 D7 4F 00 90 00 9A [16:55:58]RAPDU: 90 00 [16:55:58]wFMCommunicate OK [16:55:58]wFMCommunicate request_size=10 [16:55:58]MH_SAM_APDU [16:55:58]CAPDU: 80 0D 02 02 05 FD 1D 17 E9 7A [16:55:58]Write to MH i2c: E2 0D 00 D8 4F 80 0D 02 02 05 00 FD 1D 17 E9 7A 00 00 3F [16:55:58]Write i2c OK [16:55:58]MH_I2C_Read... [16:55:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:58]Read from MH i2c: E2 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 03 00 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 03 00 D8 4F 00 90 00 9B [16:55:58]RAPDU: 90 00 [16:55:58]wFMCommunicate OK [16:55:58]wFMCommunicate request_size=4 [16:55:58]MH_SAM_APDU [16:55:58]CAPDU: 80 0D 03 02 [16:55:58]Write to MH i2c: E2 08 00 D9 4F 80 0D 03 02 00 00 00 00 A3 [16:55:58]Write i2c OK [16:55:58]MH_I2C_Read... [16:55:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:58]Read from MH i2c: E2 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 0B 00 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 0B 00 D9 4F 00 22 FF F5 F5 38 51 60 20 90 00 B8 [16:55:58]RAPDU: 22 FF F5 F5 38 51 60 20 90 00 [16:55:58]wFMCommunicate OK [16:55:58]SAM_PROTO_SignData done [16:55:58]FM_MakeSignedData done [16:55:58]CreateOFDProtocolMessage [16:55:58]wFMCommunicate request_size=4 [16:55:58]MH_SAM_APDU [16:55:58]CAPDU: 80 11 00 00 [16:55:58]Write to MH i2c: E2 08 00 DA 4F 80 11 00 00 00 00 00 00 A3 [16:55:58]Write i2c OK [16:55:58]MH_I2C_Read... [16:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:58]Read from MH i2c: E2 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 17 00 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 17 00 DA 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F2 [16:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:55:58]wFMCommunicate OK [16:55:58]CreateOFDProtocolMessage done [16:55:58]OFDSenderStorePacket 28984 [16:55:58]StoreOFDPacket docnum=28984 [16:55:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A2 86 07 01 60 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 BF 00 00 00 F4 03 04 00 22 B9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 38 71 00 00 35 04 06 00 4F FD 1D 17 E9 7A 22 FF F5 F5 38 51 60 20 [16:55:58]CheckFolder [16:55:58]dirname=/storage/ofd_packets [16:55:58]CheckFolder done [16:55:58]ProducePacketName [16:55:58]name=ofd_packets/00028984 [16:55:58]NVStorageSaveData ofd_packets/00028984 [16:55:58]File name is /storage/ofd_packets/00028984 [16:55:58]Write 301 bytes [16:55:58]NVStorageSaveData done [16:55:58]OFDSenderStorePacket done [16:55:58]KKMCreateOFDPacket done [16:55:58]NVStorageSaveData kkm_last_timestamp [16:55:58]File name is /storage/kkm_last_timestamp [16:55:58]Write 4 bytes [16:55:58]NVStorageSaveData done [16:55:58]ExternCall_PrintAddStr [16:55:58]wPrintStart [16:55:58]Write to MH i2c: 01 00 00 DB 4F 2A [16:55:58]Write i2c OK [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: 01 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: 01 07 00 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: 01 07 00 DB 4F 00 00 00 00 00 FF 0F 3F [16:55:58]RasterBufferAndPrint [16:55:58]line Счет N : (1)347346 [16:55:58]line ИНН: 02508201610067 [16:55:58]line Контрольно-Кассовый Чек [16:55:58]line ПРОДАЖА [16:55:58]line ТРК (МРК, ГНК) : 32 [16:55:58]line Товар: 2710124130 [16:55:58]line Аи-92-К-5 [16:55:58]line 7.780 * 64.30 [16:55:58]line = 500.25 [16:55:58]line НДС 12% НСП 1% [16:55:58]line > о реализуемом товаре [16:55:58]line ОКРУГЛЕНИЕ: -0.25 [16:55:58]line ИТОГО: 500.00 [16:55:58]line Внесено: 500.00 [16:55:58]line СДАЧА: 0.00 [16:55:58]line НСП 1% : 4.43 [16:55:58]line НДС 12% : 53.12 [16:55:58]line Наличными: 500.00 [16:55:58]line Безнал.: 0.00 [16:55:58]line Место: АЗС № 108 "Партнер Нефть" [16:55:58]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [16:55:58]line СНО: Общий режим [16:55:58]line Чек 191 13.04.2024 16:56 [16:55:58]line Смена: 115 ФФД: 1.0 [16:55:58]line ЗНМ: 0300000027 [16:55:58]line РНМ: 0000138879044617 [16:55:58]line Версия ККМ: 001 [16:55:58]line ФМ: 0000000000963154 [16:55:58]line ФД: 28984 [16:55:58]line ФПД: 87948533426554 [16:55:58]line 1/tax-web-control/client/api/v1/ticket?date=20240413T165602&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28984&fm=87948533426554&tin=02508201610067®Number=0000138879044617&sum=50000 [16:55:58]OFD Sender: Processing packet 28984 [packets to send 8, broken 7] [16:55:58]ProducePacketName [16:55:58]name=ofd_packets/00028984 [16:55:58]OFD Sender: To server: pG, [16:55:58]CommunicateWithHost lk.salyk.kg:30040 [16:55:58]ConnectInit lk.salyk.kg [16:55:58]written 0, free lines is 4095 [16:55:58]Connected sock=10 [16:55: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 31 35 34 0F 01 00 00 A2 86 07 01 60 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 BF 00 00 00 F4 03 04 00 22 B9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 38 71 00 00 35 04 06 00 4F FD 1D 17 E9 7A 22 FF F5 F5 38 51 60 20 [16:55:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 BB 90 47 00 93 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 38 71 00 00 F4 03 04 00 C8 63 1A 66 B6 04 01 00 00 CF 97 02 3F 94 BD 6E 48 [16:55:58]CommunicateWithHost err = 0 [16:55:58]CheckOFDResponse [16:55:58]1017 (14) - 77093643461234 [16:55:58]1041 (16) - 0000000000963154 [16:55:58]1040 (4) - 28984 [16:55:58]1012 (4) - 13.04.2024 10:51 [16:55:58]1206 (1) - 0 [16:55:58]OFD Sender: Remove packet 28984 [16:55:58]ProducePacketName [16:55:58]name=ofd_packets/00028984 [16:55:58]NVStorageDeleteData [16:55:59]Write to MH i2c: 01 00 00 05 50 55 [16:55:59]Write i2c OK [16:55:59]MH_I2C_Read... [16:55:59]Read from MH i2c: 01 [16:55:59]MH_I2C_Read... [16:55:59]Read from MH i2c: 01 07 00 [16:55:59]MH_I2C_Read... [16:55:59]Read from MH i2c: 01 07 00 05 50 00 00 00 00 00 CE 0C 36 [16:55:59]RasterBufferAndPrint [16:55:59]line [16:55:59]line [16:55:59]line [16:55:59]line [16:55:59]line [16:55:59]written 0, free lines is 3288 [16:55:59]MH_Cut [16:55:59]Write to MH i2c: D1 01 00 0C 50 01 2E [16:55:59]Write i2c OK [16:55:59]MH_I2C_Read... [16:55:59]Read from MH i2c: D1 [16:55:59]MH_I2C_Read... [16:55:59]Read from MH i2c: D1 01 00 [16:55:59]MH_I2C_Read... [16:55:59]Read from MH i2c: D1 01 00 0C 50 00 2D [16:55:59]Write to MH i2c: 01 00 00 0D 50 5D [16:55:59]Write i2c OK [16:55:59]MH_I2C_Read... [16:55:59]OFD Sender: No OFD packet to send [16:55:59]*** Cut start [16:55:59]*** Partial cut [16:55:59]*** CUTSNS_PIN = 1 [16:55:59]*** CUTSNS_PIN = 0 [16:56:00]*** Brake cut motor [16:56:00]Read from MH i2c: 01 [16:56:00]MH_I2C_Read... [16:56:00]*** Stop cut motor [16:56:00]*** Cut end [16:56:00]Read from MH i2c: 01 07 00 [16:56:00]MH_I2C_Read... [16:56:00]Read from MH i2c: 01 07 00 0D 50 00 00 00 00 00 FF 0F 72 [16:56:00]process_action close_receipt done [16:56:00]requested_data is exist [16:56:00]produce_requested_data [16:56:00]requested_item fm.sn is exist - process it [16:56:00]wFMCommunicate request_size=4 [16:56:00]MH_SAM_APDU [16:56:00]CAPDU: 80 11 00 00 [16:56:00]Write to MH i2c: E2 08 00 0E 50 80 11 00 00 00 00 00 00 D8 [16:56:00]Write i2c OK [16:56:00]MH_I2C_Read... [16:56:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:00]Read from MH i2c: E2 [16:56:00]MH_I2C_Read... [16:56:00]Read from MH i2c: E2 17 00 [16:56:00]MH_I2C_Read... [16:56:00]Read from MH i2c: E2 17 00 0E 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 27 [16:56:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:56:00]wFMCommunicate OK [16:56:00]requested_item fd.num is exist - process it [16:56:00]SAM_PROTO_GetFieldsCounters [16:56:00]wFMCommunicate request_size=4 [16:56:00]MH_SAM_APDU [16:56:00]CAPDU: 80 13 00 00 [16:56:00]Write to MH i2c: E2 08 00 0F 50 80 13 00 00 00 00 00 00 DB [16:56:00]Write i2c OK [16:56:00]MH_I2C_Read... [16:56:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:00]Read from MH i2c: E2 [16:56:00]MH_I2C_Read... [16:56:00]Read from MH i2c: E2 62 00 [16:56:00]MH_I2C_Read... [16:56:00]Read from MH i2c: E2 62 00 0F 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 38 71 00 00 0E 04 04 00 73 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 72 [16:56: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 38 71 00 00 0E 04 04 00 73 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 [16:56:00]wFMCommunicate OK [16:56:00]SAM_PROTO_GetFieldsCounters done [16:56:00]requested_item shift.num is exist - process it [16:56:00]requested_item shift.opened is exist - process it [16:56:00]req_shift_opened [16:56:00]FM_GetShiftState [16:56:00]SAM_PROTO_GetShiftState [16:56:00]wFMCommunicate request_size=4 [16:56:00]MH_SAM_APDU [16:56:00]CAPDU: 80 13 01 00 [16:56:00]Write to MH i2c: E2 08 00 10 50 80 13 01 00 00 00 00 00 DD [16:56:00]Write i2c OK [16:56:00]MH_I2C_Read... [16:56:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:00]Read from MH i2c: E2 [16:56:00]MH_I2C_Read... [16:56:00]Read from MH i2c: E2 0E 00 [16:56:00]MH_I2C_Read... [16:56:00]Read from MH i2c: E2 0E 00 10 50 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F6 [16:56:00]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:56:00]wFMCommunicate OK [16:56:00]SAM_PROTO_GetShiftState done [16:56:00]FM_GetShiftState done [16:56:00]req_shift_opened done [16:56:00]requested_item shift.open_date is exist - process it [16:56:00]req_shift_open_date [16:56:00]req_shift_open_date done [16:56:00]produce_requested_data done [16:56:00]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28984,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [16:56:00]process_action_free close_receipt [16:56:00]json_value_free [16:56:00]json_value_free done [16:56:00]process_json_proto returns [16:56:00]Send response to host [16:56:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28984,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [16:56:00]free response buf [16:56:00]execute_script done [16:56:00]execute_script returns [16:56:00]free content buf [16:56:00]Sock 9.Close socket [16:56:00]Sock 9.Thread stoped [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:52]accept exits with 7 [16:56:52]New connection [16:56:52]New thread 3066785124 created [16:56:52]Thread 3066928484 joined [16:56:52]Waiting for new connection... [16:56:52] Sock 7.Parse request [16:56:52]Sock 7.Check first char [16:56:52]Sock 7.First char is OK [16:56:52]request: POST /json_proto HTTP/1.0 [16:56:52]Method: POST [16:56:52]URL: /json_proto [16:56:52]Method is POST - this is cgi request [16:56:52]url: /json_proto [16:56:52]query_string will be loaded in cgi processing [16:56:52]execute_cgi json_proto POST (null) [16:56:52]execute_cgi path=json_proto method=POST [16:56:52]POST find Content-Length [16:56:52]Host: 172.17.33.3:8080 [16:56:52]Content-Length: 1206 [16:56:52]Content-Type: application/json [16:56:52] [16:56:52]POST finish read [16:56:52]Found Content-Length = 1206 [16:56:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347342\u000A13.04.2024 16:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 253.300 x 72.40\u000A\u0418\u0422\u041E\u0413: 18338.92\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A57605\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:52]execute_script... [16:56:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347342\u000A13.04.2024 16:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 253.300 x 72.40\u000A\u0418\u0422\u041E\u0413: 18338.92\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A57605\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:52]POST & json_proto [16:56:52]process_json_proto [16:56:52]json parsed OK: [16:56:52]protocol is kg_v1.0 [16:56:52]action value=print_text [16:56:52]process_action print_text [16:56:52]cmd_print_text [16:56:52]ExternCall_PrintAddStr [16:56:52]wPrintStart [16:56:52]Write to MH i2c: 01 00 00 11 50 61 [16:56:52]Write i2c OK [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: 01 [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: 01 07 00 [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: 01 07 00 11 50 00 00 00 00 00 FF 0F 76 [16:56:52]RasterBufferAndPrint [16:56:52]line *****ТОВАРНЫЙ ЧЕК***** [16:56:52]line АЗС 108 [16:56:52]line Партнер нефть [16:56:52]line 02508201610067 [16:56:52]line Кассир : Шадыканова Ж. [16:56:52]line Счет N : (1)347342 [16:56:52]line 13.04.2024 16:38 [16:56:52]line ПРОДАЖА [16:56:52]line ТРК (МРК, ГНК): 51 [16:56:52]line Вид ГСМ : 2710194210 [16:56:52]line ДТ-К-5 [16:56:52]line 253.300 x 72.40 [16:56:52]line ИТОГ: 18338.92 [16:56:52]line Тип оплаты: Талоны: Топливная Карта [16:56:52]line 57605 [16:56:52]line ______________________ [16:56:52]line (подпись) [16:56:52]written 0, free lines is 4095 [16:56:52]Write to MH i2c: 01 00 00 26 50 76 [16:56:52]Write i2c OK [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: 01 [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: 01 07 00 [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: 01 07 00 26 50 00 00 00 00 00 F4 0D 7E [16:56:52]RasterBufferAndPrint [16:56:52]line [16:56:52]line [16:56:52]line [16:56:52]line [16:56:52]line [16:56:52]written 0, free lines is 3574 [16:56:52]MH_Cut [16:56:52]Write to MH i2c: D1 01 00 2D 50 01 4F [16:56:52]Write i2c OK [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: D1 [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: D1 01 00 [16:56:52]MH_I2C_Read... [16:56:52]Read from MH i2c: D1 01 00 2D 50 00 4E [16:56:52]Write to MH i2c: 01 00 00 2E 50 7E [16:56:52]Write i2c OK [16:56:52]MH_I2C_Read... [16:56:53]*** Cut start [16:56:53]*** Partial cut [16:56:53]*** CUTSNS_PIN = 1 [16:56:53]*** CUTSNS_PIN = 0 [16:56:53]*** Brake cut motor [16:56:54]Read from MH i2c: 01 [16:56:54]MH_I2C_Read... [16:56:54]Read from MH i2c: 01 07 00 [16:56:54]MH_I2C_Read... [16:56:54]*** Stop cut motor [16:56:54]*** Cut end [16:56:54]Read from MH i2c: 01 07 00 2E 50 00 00 00 00 00 FF 0F 93 [16:56:54]process_action print_text done [16:56:54]requested_data is exist [16:56:54]produce_requested_data [16:56:54]requested_item fm.sn is exist - process it [16:56:54]wFMCommunicate request_size=4 [16:56:54]MH_SAM_APDU [16:56:54]CAPDU: 80 11 00 00 [16:56:54]Write to MH i2c: E2 08 00 2F 50 80 11 00 00 00 00 00 00 F9 [16:56:54]Write i2c OK [16:56:54]MH_I2C_Read... [16:56:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:54]Read from MH i2c: E2 [16:56:54]MH_I2C_Read... [16:56:54]Read from MH i2c: E2 17 00 [16:56:54]MH_I2C_Read... [16:56:54]Read from MH i2c: E2 17 00 2F 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 48 [16:56:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [16:56:54]wFMCommunicate OK [16:56:54]requested_item fd.num is exist - process it [16:56:54]SAM_PROTO_GetFieldsCounters [16:56:54]wFMCommunicate request_size=4 [16:56:54]MH_SAM_APDU [16:56:54]CAPDU: 80 13 00 00 [16:56:54]Write to MH i2c: E2 08 00 30 50 80 13 00 00 00 00 00 00 FC [16:56:54]Write i2c OK [16:56:54]MH_I2C_Read... [16:56:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:54]Read from MH i2c: E2 [16:56:54]MH_I2C_Read... [16:56:54]Read from MH i2c: E2 62 00 [16:56:54]MH_I2C_Read... [16:56:54]Read from MH i2c: E2 62 00 30 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 38 71 00 00 0E 04 04 00 73 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 93 [16:56: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 38 71 00 00 0E 04 04 00 73 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 [16:56:54]wFMCommunicate OK [16:56:54]SAM_PROTO_GetFieldsCounters done [16:56:54]requested_item shift.num is exist - process it [16:56:54]requested_item shift.opened is exist - process it [16:56:54]req_shift_opened [16:56:54]FM_GetShiftState [16:56:54]SAM_PROTO_GetShiftState [16:56:54]wFMCommunicate request_size=4 [16:56:54]MH_SAM_APDU [16:56:54]CAPDU: 80 13 01 00 [16:56:54]Write to MH i2c: E2 08 00 31 50 80 13 01 00 00 00 00 00 FE [16:56:54]Write i2c OK [16:56:54]MH_I2C_Read... [16:56:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:54]Read from MH i2c: E2 [16:56:54]MH_I2C_Read... [16:56:54]Read from MH i2c: E2 0E 00 [16:56:54]MH_I2C_Read... [16:56:54]Read from MH i2c: E2 0E 00 31 50 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 17 [16:56:54]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [16:56:54]wFMCommunicate OK [16:56:54]SAM_PROTO_GetShiftState done [16:56:54]FM_GetShiftState done [16:56:54]req_shift_opened done [16:56:54]requested_item shift.open_date is exist - process it [16:56:54]req_shift_open_date [16:56:54]req_shift_open_date done [16:56:54]produce_requested_data done [16:56:54]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28984,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [16:56:54]process_action_free print_text [16:56:54]json_value_free [16:56:54]json_value_free done [16:56:54]process_json_proto returns [16:56:54]Send response to host [16:56:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28984,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [16:56:54]free response buf [16:56:54]execute_script done [16:56:54]execute_script returns [16:56:54]free content buf [16:56:54]Sock 7.Close socket [16:56:54]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [16:57:24]OFD Sender: No OFD packet to send [16:57:29]OFD Sender: No OFD packet to send [16:57:34]OFD Sender: No OFD packet to send [16:57:39]OFD Sender: No OFD packet to send [16:57:44]OFD Sender: No OFD packet to send [16:57:49]OFD Sender: No OFD packet to send [16:57:54]OFD Sender: No OFD packet to send [16:57:59]OFD Sender: No OFD packet to send [16:58:04]OFD Sender: No OFD packet to send [16:58:09]OFD Sender: No OFD packet to send [16:58:14]OFD Sender: No OFD packet to send [16:58:19]OFD Sender: No OFD packet to send [16:58:24]OFD Sender: No OFD packet to send [16:58:29]OFD Sender: No OFD packet to send [16:58:34]OFD Sender: No OFD packet to send [16:58:39]OFD Sender: No OFD packet to send [16:58:44]OFD Sender: No OFD packet to send [16:58:49]OFD Sender: No OFD packet to send [16:58:54]OFD Sender: No OFD packet to send [16:58:59]OFD Sender: No OFD packet to send [16:59:04]OFD Sender: No OFD packet to send [16:59:09]OFD Sender: No OFD packet to send [16:59:14]OFD Sender: No OFD packet to send [16:59:19]OFD Sender: No OFD packet to send [16:59:24]OFD Sender: No OFD packet to send [16:59:29]OFD Sender: No OFD packet to send [16:59:34]OFD Sender: No OFD packet to send [16:59:39]OFD Sender: No OFD packet to send [16:59:44]OFD Sender: No OFD packet to send [16:59:49]OFD Sender: No OFD packet to send [16:59:54]OFD Sender: No OFD packet to send [16:59:59]OFD Sender: No OFD packet to send [17:00:04]OFD Sender: No OFD packet to send [17:00:09]OFD Sender: No OFD packet to send [17:00:14]OFD Sender: No OFD packet to send [17:00:19]OFD Sender: No OFD packet to send [17:00:24]OFD Sender: No OFD packet to send [17:00:29]OFD Sender: No OFD packet to send [17:00:34]OFD Sender: No OFD packet to send [17:00:39]OFD Sender: No OFD packet to send [17:00:44]OFD Sender: No OFD packet to send [17:00:49]OFD Sender: No OFD packet to send [17:00:54]OFD Sender: No OFD packet to send [17:00:59]OFD Sender: No OFD packet to send [17:01:04]OFD Sender: No OFD packet to send [17:01:09]OFD Sender: No OFD packet to send [17:01:14]OFD Sender: No OFD packet to send [17:01:19]OFD Sender: No OFD packet to send [17:01:24]OFD Sender: No OFD packet to send [17:01:29]OFD Sender: No OFD packet to send [17:01:34]OFD Sender: No OFD packet to send [17:01:39]OFD Sender: No OFD packet to send [17:01:44]OFD Sender: No OFD packet to send [17:01:49]OFD Sender: No OFD packet to send [17:01:54]OFD Sender: No OFD packet to send [17:01:59]OFD Sender: No OFD packet to send [17:02:04]OFD Sender: No OFD packet to send [17:02:09]OFD Sender: No OFD packet to send [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:29]OFD Sender: No OFD packet to send [17:02:30]accept exits with 9 [17:02:30]New connection [17:02:30]New thread 3066928484 created [17:02:30]Thread 3066785124 joined [17:02:30]Waiting for new connection... [17:02:30] Sock 9.Parse request [17:02:30]Sock 9.Check first char [17:02:30]Sock 9.First char is OK [17:02:30]request: POST /json_proto HTTP/1.0 [17:02:30]Method: POST [17:02:30]URL: /json_proto [17:02:30]Method is POST - this is cgi request [17:02:30]url: /json_proto [17:02:30]query_string will be loaded in cgi processing [17:02:30]execute_cgi json_proto POST (null) [17:02:30]execute_cgi path=json_proto method=POST [17:02:30]POST find Content-Length [17:02:30]Host: 172.17.33.3:8080 [17:02:30]Content-Length: 808 [17:02:30]Content-Type: application/json [17:02:30] [17:02:30]POST finish read [17:02:30]Found Content-Length = 808 [17:02:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347347", "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" : 72.40, "quantity" : 146.720, "sum" : 10622.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 10622.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:30]execute_script... [17:02: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)347347", "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" : 72.40, "quantity" : 146.720, "sum" : 10622.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 10622.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:30]POST & json_proto [17:02:30]process_json_proto [17:02:30]json parsed OK: [17:02:30]protocol is kg_v1.0 [17:02:30]action value=close_receipt [17:02:30]process_action close_receipt [17:02:30]cmd_close_receipt [17:02:30]MH_GetDate [17:02:30]Write to MH i2c: F0 00 00 32 50 71 [17:02:30]Write i2c OK [17:02:30]MH_I2C_Read... [17:02:30]Read from MH i2c: F0 [17:02:30]MH_I2C_Read... [17:02:30]Read from MH i2c: F0 09 00 [17:02:30]MH_I2C_Read... [17:02:30]Read from MH i2c: F0 09 00 32 50 00 AC BA 1A 66 23 5B 8F 65 D2 [17:02:30]GetLastDocTimeStamp 1713027362 [17:02:30]current date 1713027756 [17:02:30]FM_GetShiftState [17:02:30]SAM_PROTO_GetShiftState [17:02:30]wFMCommunicate request_size=4 [17:02:30]MH_SAM_APDU [17:02:30]CAPDU: 80 13 01 00 [17:02:30]Write to MH i2c: E2 08 00 33 50 80 13 01 00 00 00 00 00 00 [17:02:30]Write i2c OK [17:02:30]MH_I2C_Read... [17:02:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:30]Read from MH i2c: E2 [17:02:30]MH_I2C_Read... [17:02:30]Read from MH i2c: E2 0E 00 [17:02:30]MH_I2C_Read... [17:02:30]Read from MH i2c: E2 0E 00 33 50 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 19 [17:02:30]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:02:30]wFMCommunicate OK [17:02:30]SAM_PROTO_GetShiftState done [17:02:30]FM_GetShiftState done [17:02:30]opened in 1712967615 [17:02:30]opened+sec_in_day 1713054015 [17:02:30]quantity*price = 1062252 [17:02:30]sum+1 = 1062254 [17:02:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10622.53 НСП 1% : 94.00 НДС 12% : 1128.06 Наличными: 0.00 Безнал.: 10622.53 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 192 13.04.2024 17:02 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28985 ФПД: 146044763913986 1/tax-web-control/client/api/v1/ticket?date=20240413T170236&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28985&fm=146044763913986&tin=02508201610067®Number=0000138879044617&sum=1062253 [17:02:31]StoreToDocumentArchive [17:02:31]shift 115 fd 28985 [17:02:31]save to /storage/0115/doc_00028985 [17:02:31]save last doc name /storage/0115/doc_00028985 to /storage/kkm_last_doc_name [17:02:31]save OK [17:02:31]Clear old archive folders... [17:02:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:02:31]tlvbuf is 011EB090 [17:02:31]SAM_PROTO_ClearQueue [17:02:31]wFMCommunicate request_size=4 [17:02:31]MH_SAM_APDU [17:02:31]CAPDU: 80 09 00 00 [17:02:31]Write to MH i2c: E2 08 00 40 50 80 09 00 00 00 00 00 00 02 [17:02:31]Write i2c OK [17:02:31]MH_I2C_Read... [17:02:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:31]Read from MH i2c: E2 [17:02:31]MH_I2C_Read... [17:02:31]Read from MH i2c: E2 03 00 [17:02:31]MH_I2C_Read... [17:02:31]Read from MH i2c: E2 03 00 40 50 00 90 00 04 [17:02:31]RAPDU: 90 00 [17:02:31]wFMCommunicate OK [17:02:31]SAM_PROTO_ClearQueue done [17:02:31]KKMCreateOFDPacket [17:02:31]OFDProtocolAddRootSTLVToBuf [17:02:31]FM_MakeSignedData [17:02:31]FM_MakeSignedData [17:02:31]SAM_PROTO_SignData [17:02:31]wFMCommunicate request_size=4 [17:02:31]MH_SAM_APDU [17:02:31]CAPDU: 80 0D 01 02 [17:02:31]Write to MH i2c: E2 08 00 41 50 80 0D 01 02 00 00 00 00 0A [17:02:31]Write i2c OK [17:02:31]MH_I2C_Read... [17:02:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:32]Read from MH i2c: E2 [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: E2 03 00 [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: E2 03 00 41 50 00 90 00 05 [17:02:32]RAPDU: 90 00 [17:02:32]wFMCommunicate OK [17:02:32]wFMCommunicate request_size=255 [17:02:32]MH_SAM_APDU [17:02: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 3D 02 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6D 35 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 35 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 24 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 B8 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6D 35 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 AC BA 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 39 71 00 00 35 04 06 00 84 D3 B2 46 [17:02:32]Write to MH i2c: E2 02 01 42 50 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 3D 02 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6D 35 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 35 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 24 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 B8 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6D 35 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 AC BA 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 39 71 00 00 35 04 06 00 84 D3 B2 46 00 00 AA [17:02:32]Write i2c OK [17:02:32]MH_I2C_Read... [17:02:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:32]Read from MH i2c: E2 [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: E2 03 00 [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: E2 03 00 42 50 00 90 00 06 [17:02:32]RAPDU: 90 00 [17:02:32]wFMCommunicate OK [17:02:32]wFMCommunicate request_size=7 [17:02:32]MH_SAM_APDU [17:02:32]CAPDU: 80 0D 02 02 02 3F 02 [17:02:32]Write to MH i2c: E2 0A 00 43 50 80 0D 02 02 02 00 3F 02 00 00 52 [17:02:32]Write i2c OK [17:02:32]MH_I2C_Read... [17:02:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:32]Read from MH i2c: E2 [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: E2 03 00 [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: E2 03 00 43 50 00 90 00 07 [17:02:32]RAPDU: 90 00 [17:02:32]wFMCommunicate OK [17:02:32]wFMCommunicate request_size=4 [17:02:32]MH_SAM_APDU [17:02:32]CAPDU: 80 0D 03 02 [17:02:32]Write to MH i2c: E2 08 00 44 50 80 0D 03 02 00 00 00 00 0F [17:02:32]Write i2c OK [17:02:32]MH_I2C_Read... [17:02:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:32]Read from MH i2c: E2 [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: E2 0B 00 [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: E2 0B 00 44 50 00 4D 7B DA 7F 61 96 85 54 90 00 01 [17:02:32]RAPDU: 4D 7B DA 7F 61 96 85 54 90 00 [17:02:32]wFMCommunicate OK [17:02:32]SAM_PROTO_SignData done [17:02:32]FM_MakeSignedData done [17:02:32]CreateOFDProtocolMessage [17:02:32]wFMCommunicate request_size=4 [17:02:32]MH_SAM_APDU [17:02:32]CAPDU: 80 11 00 00 [17:02:32]Write to MH i2c: E2 08 00 45 50 80 11 00 00 00 00 00 00 0F [17:02:32]Write i2c OK [17:02:32]MH_I2C_Read... [17:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:32]Read from MH i2c: E2 [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: E2 17 00 [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: E2 17 00 45 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5E [17:02:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:02:32]wFMCommunicate OK [17:02:32]CreateOFDProtocolMessage done [17:02:32]OFDSenderStorePacket 28985 [17:02:32]StoreOFDPacket docnum=28985 [17:02:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 67 89 04 01 82 41 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 3D 02 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6D 35 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 35 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 24 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 B8 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6D 35 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 AC BA 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 39 71 00 00 35 04 06 00 84 D3 B2 46 3F 02 4D 7B DA 7F 61 96 85 54 [17:02:32]CheckFolder [17:02:32]dirname=/storage/ofd_packets [17:02:32]CheckFolder done [17:02:32]ProducePacketName [17:02:32]name=ofd_packets/00028985 [17:02:32]NVStorageSaveData ofd_packets/00028985 [17:02:32]File name is /storage/ofd_packets/00028985 [17:02:32]Write 298 bytes [17:02:32]NVStorageSaveData done [17:02:32]OFDSenderStorePacket done [17:02:32]KKMCreateOFDPacket done [17:02:32]NVStorageSaveData kkm_last_timestamp [17:02:32]File name is /storage/kkm_last_timestamp [17:02:32]Write 4 bytes [17:02:32]NVStorageSaveData done [17:02:32]ExternCall_PrintAddStr [17:02:32]wPrintStart [17:02:32]Write to MH i2c: 01 00 00 46 50 96 [17:02:32]Write i2c OK [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: 01 [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: 01 07 00 [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: 01 07 00 46 50 00 00 00 00 00 FF 0F AB [17:02:32]RasterBufferAndPrint [17:02:32]line Счет N : (1)347347 [17:02:32]line ИНН: 02508201610067 [17:02:32]line Контрольно-Кассовый Чек [17:02:32]line ПРОДАЖА [17:02:32]line ТРК (МРК, ГНК) : 51 [17:02:32]line Товар: 2710194210 [17:02:32]line ДТ-К-5 [17:02:32]line 146.720 * 72.40 [17:02:32]line = 10622.53 [17:02:32]line НДС 12% НСП 1% [17:02:32]line > о реализуемом товаре [17:02:32]line ИТОГО: 10622.53 [17:02:32]line НСП 1% : 94.00 [17:02:32]line НДС 12% : 1128.06 [17:02:32]line Наличными: 0.00 [17:02:32]line Безнал.: 10622.53 [17:02:32]line Место: АЗС № 108 "Партнер Нефть" [17:02:32]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:02:32]line СНО: Общий режим [17:02:32]line Чек 192 13.04.2024 17:02 [17:02:32]line Смена: 115 ФФД: 1.0 [17:02:32]line ЗНМ: 0300000027 [17:02:32]line РНМ: 0000138879044617 [17:02:32]line Версия ККМ: 001 [17:02:32]line Платежная система: О! деньги [17:02:32]line ФМ: 0000000000963154 [17:02:32]line ФД: 28985 [17:02:32]line ФПД: 146044763913986 [17:02:32]line 1/tax-web-control/client/api/v1/ticket?date=20240413T170236&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28985&fm=146044763913986&tin=02508201610067®Number=0000138879044617&sum=1062253 [17:02:32]OFD Sender: Processing packet 28985 [packets to send 8, broken 7] [17:02:32]ProducePacketName [17:02:32]name=ofd_packets/00028985 [17:02:32]OFD Sender: To server: pG, [17:02:32]CommunicateWithHost lk.salyk.kg:30040 [17:02:32]ConnectInit lk.salyk.kg [17:02:32]written 0, free lines is 4095 [17:02:32]Connected sock=10 [17:02: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 31 35 34 0C 01 00 00 67 89 04 01 82 41 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 3D 02 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6D 35 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 35 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 24 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 B8 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6D 35 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 AC BA 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 39 71 00 00 35 04 06 00 84 D3 B2 46 3F 02 4D 7B DA 7F 61 96 85 54 [17:02:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1D 87 47 00 E7 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 31 35 34 10 04 04 00 39 71 00 00 F4 03 04 00 52 65 1A 66 B6 04 01 00 00 47 6F C2 0A 00 9D 61 7C [17:02:33]CommunicateWithHost err = 0 [17:02:33]CheckOFDResponse [17:02:33]1017 (14) - 77093643461234 [17:02:33]1041 (16) - 0000000000963154 [17:02:33]1040 (4) - 28985 [17:02:33]1012 (4) - 13.04.2024 10:58 [17:02:33]1206 (1) - 0 [17:02:33]OFD Sender: Remove packet 28985 [17:02:33]ProducePacketName [17:02:33]name=ofd_packets/00028985 [17:02:33]NVStorageDeleteData [17:02:33]Write to MH i2c: 01 00 00 6F 50 BF [17:02:33]Write i2c OK [17:02:33]MH_I2C_Read... [17:02:33]Read from MH i2c: 01 [17:02:33]MH_I2C_Read... [17:02:33]Read from MH i2c: 01 07 00 [17:02:33]MH_I2C_Read... [17:02:33]Read from MH i2c: 01 07 00 6F 50 00 00 00 00 00 E9 0C BB [17:02:33]RasterBufferAndPrint [17:02:33]line [17:02:33]line [17:02:33]line [17:02:33]line [17:02:33]line [17:02:33]written 0, free lines is 3311 [17:02:33]MH_Cut [17:02:33]Write to MH i2c: D1 01 00 76 50 01 98 [17:02:33]Write i2c OK [17:02:33]MH_I2C_Read... [17:02:33]Read from MH i2c: D1 [17:02:33]MH_I2C_Read... [17:02:33]Read from MH i2c: D1 01 00 [17:02:33]MH_I2C_Read... [17:02:33]Read from MH i2c: D1 01 00 76 50 00 97 [17:02:33]Write to MH i2c: 01 00 00 77 50 C7 [17:02:33]Write i2c OK [17:02:33]MH_I2C_Read... [17:02:33]OFD Sender: No OFD packet to send [17:02:34]*** Cut start [17:02:34]*** Partial cut [17:02:34]*** CUTSNS_PIN = 1 [17:02:34]*** CUTSNS_PIN = 0 [17:02:34]*** Brake cut motor [17:02:34]Read from MH i2c: 01 [17:02:34]MH_I2C_Read... [17:02:34]*** Stop cut motor [17:02:34]*** Cut end [17:02:34]Read from MH i2c: 01 07 00 [17:02:34]MH_I2C_Read... [17:02:34]Read from MH i2c: 01 07 00 77 50 00 00 00 00 00 FF 0F DC [17:02:34]process_action close_receipt done [17:02:34]requested_data is exist [17:02:34]produce_requested_data [17:02:34]requested_item fm.sn is exist - process it [17:02:34]wFMCommunicate request_size=4 [17:02:34]MH_SAM_APDU [17:02:34]CAPDU: 80 11 00 00 [17:02:34]Write to MH i2c: E2 08 00 78 50 80 11 00 00 00 00 00 00 42 [17:02:34]Write i2c OK [17:02:34]MH_I2C_Read... [17:02:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:34]Read from MH i2c: E2 [17:02:34]MH_I2C_Read... [17:02:34]Read from MH i2c: E2 17 00 [17:02:34]MH_I2C_Read... [17:02:34]Read from MH i2c: E2 17 00 78 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 91 [17:02:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:02:34]wFMCommunicate OK [17:02:34]requested_item fd.num is exist - process it [17:02:34]SAM_PROTO_GetFieldsCounters [17:02:34]wFMCommunicate request_size=4 [17:02:34]MH_SAM_APDU [17:02:34]CAPDU: 80 13 00 00 [17:02:34]Write to MH i2c: E2 08 00 79 50 80 13 00 00 00 00 00 00 45 [17:02:34]Write i2c OK [17:02:34]MH_I2C_Read... [17:02:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:34]Read from MH i2c: E2 [17:02:34]MH_I2C_Read... [17:02:34]Read from MH i2c: E2 62 00 [17:02:34]MH_I2C_Read... [17:02:34]Read from MH i2c: E2 62 00 79 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 39 71 00 00 0E 04 04 00 73 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 E0 [17:02: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 39 71 00 00 0E 04 04 00 73 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 [17:02:34]wFMCommunicate OK [17:02:34]SAM_PROTO_GetFieldsCounters done [17:02:34]requested_item shift.num is exist - process it [17:02:34]requested_item shift.opened is exist - process it [17:02:34]req_shift_opened [17:02:34]FM_GetShiftState [17:02:34]SAM_PROTO_GetShiftState [17:02:34]wFMCommunicate request_size=4 [17:02:34]MH_SAM_APDU [17:02:34]CAPDU: 80 13 01 00 [17:02:34]Write to MH i2c: E2 08 00 7A 50 80 13 01 00 00 00 00 00 47 [17:02:34]Write i2c OK [17:02:34]MH_I2C_Read... [17:02:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:34]Read from MH i2c: E2 [17:02:34]MH_I2C_Read... [17:02:34]Read from MH i2c: E2 0E 00 [17:02:34]MH_I2C_Read... [17:02:34]Read from MH i2c: E2 0E 00 7A 50 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 60 [17:02:34]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:02:34]wFMCommunicate OK [17:02:34]SAM_PROTO_GetShiftState done [17:02:34]FM_GetShiftState done [17:02:34]req_shift_opened done [17:02:34]requested_item shift.open_date is exist - process it [17:02:34]req_shift_open_date [17:02:34]req_shift_open_date done [17:02:34]produce_requested_data done [17:02:34]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28985,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [17:02:34]process_action_free close_receipt [17:02:34]json_value_free [17:02:34]json_value_free done [17:02:34]process_json_proto returns [17:02:34]Send response to host [17:02:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28985,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [17:02:34]free response buf [17:02:34]execute_script done [17:02:34]execute_script returns [17:02:34]free content buf [17:02:34]Sock 9.Close socket [17:02:34]Sock 9.Thread stoped [17:02:38]OFD Sender: No OFD packet to send [17:02:43]OFD Sender: No OFD packet to send [17:02:48]OFD Sender: No OFD packet to send [17:02:53]OFD Sender: No OFD packet to send [17:02:58]OFD Sender: No OFD packet to send [17:03:03]OFD Sender: No OFD packet to send [17:03:08]OFD Sender: No OFD packet to send [17:03:13]OFD Sender: No OFD packet to send [17:03:18]OFD Sender: No OFD packet to send [17:03:23]OFD Sender: No OFD packet to send [17:03:28]OFD Sender: No OFD packet to send [17:03:33]OFD Sender: No OFD packet to send [17:03:38]OFD Sender: No OFD packet to send [17:03:43]OFD Sender: No OFD packet to send [17:03:48]OFD Sender: No OFD packet to send [17:03:53]OFD Sender: No OFD packet to send [17:03:58]OFD Sender: No OFD packet to send [17:04:03]OFD Sender: No OFD packet to send [17:04:08]OFD Sender: No OFD packet to send [17:04:13]OFD Sender: No OFD packet to send [17:04:18]OFD Sender: No OFD packet to send [17:04:23]OFD Sender: No OFD packet to send [17:04:28]OFD Sender: No OFD packet to send [17:04:33]OFD Sender: No OFD packet to send [17:04:38]OFD Sender: No OFD packet to send [17:04:43]OFD Sender: No OFD packet to send [17:04:48]OFD Sender: No OFD packet to send [17:04:53]OFD Sender: No OFD packet to send [17:04:58]OFD Sender: No OFD packet to send [17:05:03]OFD Sender: No OFD packet to send [17:05:08]OFD Sender: No OFD packet to send [17:05:13]OFD Sender: No OFD packet to send [17:05:18]OFD Sender: No OFD packet to send [17:05:23]OFD Sender: No OFD packet to send [17:05:28]OFD Sender: No OFD packet to send [17:05:33]OFD Sender: No OFD packet to send [17:05:38]OFD Sender: No OFD packet to send [17:05:43]OFD Sender: No OFD packet to send [17:05:48]OFD Sender: No OFD packet to send [17:05:53]OFD Sender: No OFD packet to send [17:05:55]accept exits with 7 [17:05:55]New connection [17:05:55]New thread 3066785124 created [17:05:55]Thread 3066928484 joined [17:05:55]Waiting for new connection... [17:05:55] Sock 7.Parse request [17:05:55]Sock 7.Check first char [17:05:55]Sock 7.First char is OK [17:05:55]request: POST /json_proto HTTP/1.0 [17:05:55]Method: POST [17:05:55]URL: /json_proto [17:05:55]Method is POST - this is cgi request [17:05:55]url: /json_proto [17:05:55]query_string will be loaded in cgi processing [17:05:55]execute_cgi json_proto POST (null) [17:05:55]execute_cgi path=json_proto method=POST [17:05:55]POST find Content-Length [17:05:55]Host: 172.17.33.3:8080 [17:05:55]Content-Length: 677 [17:05:55]Content-Type: application/json [17:05:55] [17:05:55]POST finish read [17:05:55]Found Content-Length = 677 [17:05:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347348", "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" : 64.30, "quantity" : 7.780, "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:05:55]execute_script... [17:05: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)347348", "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" : 64.30, "quantity" : 7.780, "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:05:55]POST & json_proto [17:05:55]process_json_proto [17:05:55]json parsed OK: [17:05:55]protocol is kg_v1.0 [17:05:55]action value=close_receipt [17:05:55]process_action close_receipt [17:05:55]cmd_close_receipt [17:05:55]MH_GetDate [17:05:55]Write to MH i2c: F0 00 00 7B 50 BA [17:05:55]Write i2c OK [17:05:55]MH_I2C_Read... [17:05:55]Read from MH i2c: F0 [17:05:55]MH_I2C_Read... [17:05:55]Read from MH i2c: F0 09 00 [17:05:55]MH_I2C_Read... [17:05:55]Read from MH i2c: F0 09 00 7B 50 00 78 BB 1A 66 23 5B 8F 65 E8 [17:05:55]GetLastDocTimeStamp 1713027756 [17:05:55]current date 1713027960 [17:05:55]FM_GetShiftState [17:05:55]SAM_PROTO_GetShiftState [17:05:55]wFMCommunicate request_size=4 [17:05:55]MH_SAM_APDU [17:05:55]CAPDU: 80 13 01 00 [17:05:55]Write to MH i2c: E2 08 00 7C 50 80 13 01 00 00 00 00 00 49 [17:05:55]Write i2c OK [17:05:55]MH_I2C_Read... [17:05:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:55]Read from MH i2c: E2 [17:05:55]MH_I2C_Read... [17:05:55]Read from MH i2c: E2 0E 00 [17:05:55]MH_I2C_Read... [17:05:55]Read from MH i2c: E2 0E 00 7C 50 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 62 [17:05:55]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:05:55]wFMCommunicate OK [17:05:55]SAM_PROTO_GetShiftState done [17:05:55]FM_GetShiftState done [17:05:55]opened in 1712967615 [17:05:55]opened+sec_in_day 1713054015 [17:05:55]quantity*price = 50025 [17:05:55]sum+1 = 50026 [17:05:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 193 13.04.2024 17:06 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28986 ФПД: 46169569658312 1/tax-web-control/client/api/v1/ticket?date=20240413T170601&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28986&fm=46169569658312&tin=02508201610067®Number=0000138879044617&sum=50000 [17:05:56]StoreToDocumentArchive [17:05:56]shift 115 fd 28986 [17:05:56]save to /storage/0115/doc_00028986 [17:05:56]save last doc name /storage/0115/doc_00028986 to /storage/kkm_last_doc_name [17:05:56]save OK [17:05:56]Clear old archive folders... [17:05:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:05:56]tlvbuf is 0121A670 [17:05:56]SAM_PROTO_ClearQueue [17:05:56]wFMCommunicate request_size=4 [17:05:56]MH_SAM_APDU [17:05:56]CAPDU: 80 09 00 00 [17:05:56]Write to MH i2c: E2 08 00 89 50 80 09 00 00 00 00 00 00 4B [17:05:56]Write i2c OK [17:05:56]MH_I2C_Read... [17:05:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:56]Read from MH i2c: E2 [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: E2 03 00 [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: E2 03 00 89 50 00 90 00 4D [17:05:56]RAPDU: 90 00 [17:05:56]wFMCommunicate OK [17:05:56]SAM_PROTO_ClearQueue done [17:05:56]KKMCreateOFDPacket [17:05:56]OFDProtocolAddRootSTLVToBuf [17:05:56]FM_MakeSignedData [17:05:56]FM_MakeSignedData [17:05:56]SAM_PROTO_SignData [17:05:56]wFMCommunicate request_size=4 [17:05:56]MH_SAM_APDU [17:05:56]CAPDU: 80 0D 01 02 [17:05:56]Write to MH i2c: E2 08 00 8A 50 80 0D 01 02 00 00 00 00 53 [17:05:56]Write i2c OK [17:05:56]MH_I2C_Read... [17:05:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:56]Read from MH i2c: E2 [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: E2 03 00 [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: E2 03 00 8A 50 00 90 00 4E [17:05:56]RAPDU: 90 00 [17:05:56]wFMCommunicate OK [17:05:56]wFMCommunicate request_size=255 [17:05:56]MH_SAM_APDU [17:05: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 C1 00 00 00 F4 03 04 00 79 BB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3A 71 00 00 35 04 06 00 29 [17:05:56]Write to MH i2c: E2 02 01 8B 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 C1 00 00 00 F4 03 04 00 79 BB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3A 71 00 00 35 04 06 00 29 00 00 D1 [17:05:56]Write i2c OK [17:05:56]MH_I2C_Read... [17:05:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:56]Read from MH i2c: E2 [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: E2 03 00 [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: E2 03 00 8B 50 00 90 00 4F [17:05:56]RAPDU: 90 00 [17:05:56]wFMCommunicate OK [17:05:56]wFMCommunicate request_size=10 [17:05:56]MH_SAM_APDU [17:05:56]CAPDU: 80 0D 02 02 05 FD B0 CC 85 C8 [17:05:56]Write to MH i2c: E2 0D 00 8C 50 80 0D 02 02 05 00 FD B0 CC 85 C8 00 00 26 [17:05:56]Write i2c OK [17:05:56]MH_I2C_Read... [17:05:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:56]Read from MH i2c: E2 [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: E2 03 00 [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: E2 03 00 8C 50 00 90 00 50 [17:05:56]RAPDU: 90 00 [17:05:56]wFMCommunicate OK [17:05:56]wFMCommunicate request_size=4 [17:05:56]MH_SAM_APDU [17:05:56]CAPDU: 80 0D 03 02 [17:05:56]Write to MH i2c: E2 08 00 8D 50 80 0D 03 02 00 00 00 00 58 [17:05:56]Write i2c OK [17:05:56]MH_I2C_Read... [17:05:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:56]Read from MH i2c: E2 [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: E2 0B 00 [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: E2 0B 00 8D 50 00 BF 34 1E BF 41 F3 50 25 90 00 D2 [17:05:56]RAPDU: BF 34 1E BF 41 F3 50 25 90 00 [17:05:56]wFMCommunicate OK [17:05:56]SAM_PROTO_SignData done [17:05:56]FM_MakeSignedData done [17:05:56]CreateOFDProtocolMessage [17:05:56]wFMCommunicate request_size=4 [17:05:56]MH_SAM_APDU [17:05:56]CAPDU: 80 11 00 00 [17:05:56]Write to MH i2c: E2 08 00 8E 50 80 11 00 00 00 00 00 00 58 [17:05:56]Write i2c OK [17:05:56]MH_I2C_Read... [17:05:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:56]Read from MH i2c: E2 [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: E2 17 00 [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: E2 17 00 8E 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A7 [17:05:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:05:56]wFMCommunicate OK [17:05:56]CreateOFDProtocolMessage done [17:05:56]OFDSenderStorePacket 28986 [17:05:56]StoreOFDPacket docnum=28986 [17:05:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 5E 7F 07 01 3B 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 C1 00 00 00 F4 03 04 00 79 BB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3A 71 00 00 35 04 06 00 29 FD B0 CC 85 C8 BF 34 1E BF 41 F3 50 25 [17:05:56]CheckFolder [17:05:56]dirname=/storage/ofd_packets [17:05:56]CheckFolder done [17:05:56]ProducePacketName [17:05:56]name=ofd_packets/00028986 [17:05:56]NVStorageSaveData ofd_packets/00028986 [17:05:56]File name is /storage/ofd_packets/00028986 [17:05:56]Write 301 bytes [17:05:56]NVStorageSaveData done [17:05:56]OFDSenderStorePacket done [17:05:56]KKMCreateOFDPacket done [17:05:56]NVStorageSaveData kkm_last_timestamp [17:05:56]File name is /storage/kkm_last_timestamp [17:05:56]Write 4 bytes [17:05:56]NVStorageSaveData done [17:05:56]ExternCall_PrintAddStr [17:05:57]wPrintStart [17:05:57]Write to MH i2c: 01 00 00 8F 50 DF [17:05:57]Write i2c OK [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: 01 [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: 01 07 00 [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: 01 07 00 8F 50 00 00 00 00 00 FF 0F F4 [17:05:57]RasterBufferAndPrint [17:05:57]line Счет N : (1)347348 [17:05:57]line ИНН: 02508201610067 [17:05:57]line Контрольно-Кассовый Чек [17:05:57]line ПРОДАЖА [17:05:57]line ТРК (МРК, ГНК) : 32 [17:05:57]line Товар: 2710124130 [17:05:57]line Аи-92-К-5 [17:05:57]line 7.780 * 64.30 [17:05:57]line = 500.25 [17:05:57]line НДС 12% НСП 1% [17:05:57]line > о реализуемом товаре [17:05:57]line ОКРУГЛЕНИЕ: -0.25 [17:05:57]line ИТОГО: 500.00 [17:05:57]line Внесено: 500.00 [17:05:57]line СДАЧА: 0.00 [17:05:57]line НСП 1% : 4.43 [17:05:57]line НДС 12% : 53.12 [17:05:57]line Наличными: 500.00 [17:05:57]line Безнал.: 0.00 [17:05:57]line Место: АЗС № 108 "Партнер Нефть" [17:05:57]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:05:57]line СНО: Общий режим [17:05:57]line Чек 193 13.04.2024 17:06 [17:05:57]line Смена: 115 ФФД: 1.0 [17:05:57]line ЗНМ: 0300000027 [17:05:57]line РНМ: 0000138879044617 [17:05:57]line Версия ККМ: 001 [17:05:57]line ФМ: 0000000000963154 [17:05:57]line ФД: 28986 [17:05:57]line ФПД: 46169569658312 [17:05:57]line 1/tax-web-control/client/api/v1/ticket?date=20240413T170601&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28986&fm=46169569658312&tin=02508201610067®Number=0000138879044617&sum=50000 [17:05:57]OFD Sender: Processing packet 28986 [packets to send 8, broken 7] [17:05:57]ProducePacketName [17:05:57]name=ofd_packets/00028986 [17:05:57]OFD Sender: To server: pG, [17:05:57]CommunicateWithHost lk.salyk.kg:30040 [17:05:57]ConnectInit lk.salyk.kg [17:05:57]written 0, free lines is 4095 [17:05:57]Connected sock=10 [17:05: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 31 35 34 0F 01 00 00 5E 7F 07 01 3B 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 C1 00 00 00 F4 03 04 00 79 BB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3A 71 00 00 35 04 06 00 29 FD B0 CC 85 C8 BF 34 1E BF 41 F3 50 25 [17:05:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 64 AB 47 00 C5 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 31 35 34 10 04 04 00 3A 71 00 00 F4 03 04 00 1F 66 1A 66 B6 04 01 00 00 AC D1 7D 75 9A BF 6E CC [17:05:57]CommunicateWithHost err = 0 [17:05:57]CheckOFDResponse [17:05:57]1017 (14) - 77093643461234 [17:05:57]1041 (16) - 0000000000963154 [17:05:57]1040 (4) - 28986 [17:05:57]1012 (4) - 13.04.2024 11:01 [17:05:57]1206 (1) - 0 [17:05:57]OFD Sender: Remove packet 28986 [17:05:57]ProducePacketName [17:05:57]name=ofd_packets/00028986 [17:05:57]NVStorageDeleteData [17:05:57]Write to MH i2c: 01 00 00 B9 50 09 [17:05:57]Write i2c OK [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: 01 [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: 01 07 00 [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: 01 07 00 B9 50 00 00 00 00 00 CC 0C E8 [17:05:57]RasterBufferAndPrint [17:05:57]line [17:05:57]line [17:05:57]line [17:05:57]line [17:05:57]line [17:05:57]written 0, free lines is 3282 [17:05:57]MH_Cut [17:05:57]Write to MH i2c: D1 01 00 C0 50 01 E2 [17:05:57]Write i2c OK [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: D1 [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: D1 01 00 [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: D1 01 00 C0 50 00 E1 [17:05:57]Write to MH i2c: 01 00 00 C1 50 11 [17:05:57]Write i2c OK [17:05:57]MH_I2C_Read... [17:05:58]OFD Sender: No OFD packet to send [17:05:58]*** Cut start [17:05:58]*** Partial cut [17:05:58]*** CUTSNS_PIN = 1 [17:05:58]*** CUTSNS_PIN = 0 [17:05:58]*** Brake cut motor [17:05:59]Read from MH i2c: 01 [17:05:59]MH_I2C_Read... [17:05:59]*** Stop cut motor [17:05:59]*** Cut end [17:05:59]Read from MH i2c: 01 07 00 [17:05:59]MH_I2C_Read... [17:05:59]Read from MH i2c: 01 07 00 C1 50 00 00 00 00 00 FF 0F 26 [17:05:59]process_action close_receipt done [17:05:59]requested_data is exist [17:05:59]produce_requested_data [17:05:59]requested_item fm.sn is exist - process it [17:05:59]wFMCommunicate request_size=4 [17:05:59]MH_SAM_APDU [17:05:59]CAPDU: 80 11 00 00 [17:05:59]Write to MH i2c: E2 08 00 C2 50 80 11 00 00 00 00 00 00 8C [17:05:59]Write i2c OK [17:05:59]MH_I2C_Read... [17:05:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:59]Read from MH i2c: E2 [17:05:59]MH_I2C_Read... [17:05:59]Read from MH i2c: E2 17 00 [17:05:59]MH_I2C_Read... [17:05:59]Read from MH i2c: E2 17 00 C2 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DB [17:05:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:05:59]wFMCommunicate OK [17:05:59]requested_item fd.num is exist - process it [17:05:59]SAM_PROTO_GetFieldsCounters [17:05:59]wFMCommunicate request_size=4 [17:05:59]MH_SAM_APDU [17:05:59]CAPDU: 80 13 00 00 [17:05:59]Write to MH i2c: E2 08 00 C3 50 80 13 00 00 00 00 00 00 8F [17:05:59]Write i2c OK [17:05:59]MH_I2C_Read... [17:05:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:59]Read from MH i2c: E2 [17:05:59]MH_I2C_Read... [17:05:59]Read from MH i2c: E2 62 00 [17:05:59]MH_I2C_Read... [17:05:59]Read from MH i2c: E2 62 00 C3 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3A 71 00 00 0E 04 04 00 73 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 2E [17:05: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3A 71 00 00 0E 04 04 00 73 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 [17:05:59]wFMCommunicate OK [17:05:59]SAM_PROTO_GetFieldsCounters done [17:05:59]requested_item shift.num is exist - process it [17:05:59]requested_item shift.opened is exist - process it [17:05:59]req_shift_opened [17:05:59]FM_GetShiftState [17:05:59]SAM_PROTO_GetShiftState [17:05:59]wFMCommunicate request_size=4 [17:05:59]MH_SAM_APDU [17:05:59]CAPDU: 80 13 01 00 [17:05:59]Write to MH i2c: E2 08 00 C4 50 80 13 01 00 00 00 00 00 91 [17:05:59]Write i2c OK [17:05:59]MH_I2C_Read... [17:05:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:59]Read from MH i2c: E2 [17:05:59]MH_I2C_Read... [17:05:59]Read from MH i2c: E2 0E 00 [17:05:59]MH_I2C_Read... [17:05:59]Read from MH i2c: E2 0E 00 C4 50 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 AA [17:05:59]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:05:59]wFMCommunicate OK [17:05:59]SAM_PROTO_GetShiftState done [17:05:59]FM_GetShiftState done [17:05:59]req_shift_opened done [17:05:59]requested_item shift.open_date is exist - process it [17:05:59]req_shift_open_date [17:05:59]req_shift_open_date done [17:05:59]produce_requested_data done [17:05:59]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28986,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [17:05:59]process_action_free close_receipt [17:05:59]json_value_free [17:05:59]json_value_free done [17:05:59]process_json_proto returns [17:05:59]Send response to host [17:05:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28986,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [17:05:59]free response buf [17:05:59]execute_script done [17:05:59]execute_script returns [17:05:59]free content buf [17:05:59]Sock 7.Close socket [17:05:59]Sock 7.Thread stoped [17:06:03]OFD Sender: No OFD packet to send [17:06:08]OFD Sender: No OFD packet to send [17:06:13]OFD Sender: No OFD packet to send [17:06:18]OFD Sender: No OFD packet to send [17:06:23]OFD Sender: No OFD packet to send [17:06:28]OFD Sender: No OFD packet to send [17:06:33]OFD Sender: No OFD packet to send [17:06:38]OFD Sender: No OFD packet to send [17:06:43]OFD Sender: No OFD packet to send [17:06:48]OFD Sender: No OFD packet to send [17:06:53]OFD Sender: No OFD packet to send [17:06:58]OFD Sender: No OFD packet to send [17:07:03]OFD Sender: No OFD packet to send [17:07:08]OFD Sender: No OFD packet to send [17:07:13]OFD Sender: No OFD packet to send [17:07:18]OFD Sender: No OFD packet to send [17:07:23]OFD Sender: No OFD packet to send [17:07:28]OFD Sender: No OFD packet to send [17:07:33]OFD Sender: No OFD packet to send [17:07:38]OFD Sender: No OFD packet to send [17:07:43]OFD Sender: No OFD packet to send [17:07:48]OFD Sender: No OFD packet to send [17:07:53]OFD Sender: No OFD packet to send [17:07:58]OFD Sender: No OFD packet to send [17:08:03]OFD Sender: No OFD packet to send [17:08:08]OFD Sender: No OFD packet to send [17:08:13]OFD Sender: No OFD packet to send [17:08:18]OFD Sender: No OFD packet to send [17:08:23]OFD Sender: No OFD packet to send [17:08:28]OFD Sender: No OFD packet to send [17:08:33]OFD Sender: No OFD packet to send [17:08:38]OFD Sender: No OFD packet to send [17:08:43]OFD Sender: No OFD packet to send [17:08:48]OFD Sender: No OFD packet to send [17:08:53]OFD Sender: No OFD packet to send [17:08:58]OFD Sender: No OFD packet to send [17:09:03]OFD Sender: No OFD packet to send [17:09:08]OFD Sender: No OFD packet to send [17:09:13]OFD Sender: No OFD packet to send [17:09:18]OFD Sender: No OFD packet to send [17:09:23]OFD Sender: No OFD packet to send [17:09:28]OFD Sender: No OFD packet to send [17:09:33]OFD Sender: No OFD packet to send [17:09:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:46]accept exits with 9 [17:09:46]New connection [17:09:46]New thread 3066928484 created [17:09:46]Thread 3066785124 joined [17:09:46]Waiting for new connection... [17:09:46] Sock 9.Parse request [17:09:46]Sock 9.Check first char [17:09:46]Sock 9.First char is OK [17:09:46]request: POST /json_proto HTTP/1.0 [17:09:46]Method: POST [17:09:46]URL: /json_proto [17:09:46]Method is POST - this is cgi request [17:09:46]url: /json_proto [17:09:46]query_string will be loaded in cgi processing [17:09:46]execute_cgi json_proto POST (null) [17:09:46]execute_cgi path=json_proto method=POST [17:09:46]POST find Content-Length [17:09:46]Host: 172.17.33.3:8080 [17:09:46]Content-Length: 808 [17:09:46]Content-Type: application/json [17:09:46] [17:09:46]POST finish read [17:09:46]Found Content-Length = 808 [17:09:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347350", "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" : 64.30, "quantity" : 23.330, "sum" : 1500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:46]execute_script... [17:09: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)347350", "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" : 64.30, "quantity" : 23.330, "sum" : 1500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:46]POST & json_proto [17:09:46]process_json_proto [17:09:46]json parsed OK: [17:09:46]protocol is kg_v1.0 [17:09:46]action value=close_receipt [17:09:46]process_action close_receipt [17:09:46]cmd_close_receipt [17:09:46]MH_GetDate [17:09:46]Write to MH i2c: F0 00 00 C5 50 04 [17:09:46]Write i2c OK [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: F0 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: F0 09 00 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: F0 09 00 C5 50 00 60 BC 1A 66 23 5B 8F 65 1B [17:09:46]GetLastDocTimeStamp 1713027961 [17:09:46]current date 1713028192 [17:09:46]FM_GetShiftState [17:09:46]SAM_PROTO_GetShiftState [17:09:46]wFMCommunicate request_size=4 [17:09:46]MH_SAM_APDU [17:09:46]CAPDU: 80 13 01 00 [17:09:46]Write to MH i2c: E2 08 00 C6 50 80 13 01 00 00 00 00 00 93 [17:09:46]Write i2c OK [17:09:46]MH_I2C_Read... [17:09:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:46]Read from MH i2c: E2 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: E2 0E 00 [17:09:46]MH_I2C_Read... [17:09:46]Read from MH i2c: E2 0E 00 C6 50 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 AC [17:09:46]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:09:46]wFMCommunicate OK [17:09:46]SAM_PROTO_GetShiftState done [17:09:46]FM_GetShiftState done [17:09:46]opened in 1712967615 [17:09:46]opened+sec_in_day 1713054015 [17:09:46]quantity*price = 150011 [17:09:46]sum+1 = 150013 [17:09:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.12 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 0.00 Безнал.: 1500.12 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 194 13.04.2024 17:09 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28987 ФПД: 207689750113198 1/tax-web-control/client/api/v1/ticket?date=20240413T170952&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28987&fm=207689750113198&tin=02508201610067®Number=0000138879044617&sum=150012 [17:09:47]StoreToDocumentArchive [17:09:47]shift 115 fd 28987 [17:09:47]save to /storage/0115/doc_00028987 [17:09:47]save last doc name /storage/0115/doc_00028987 to /storage/kkm_last_doc_name [17:09:47]save OK [17:09:47]Clear old archive folders... [17:09:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:09:47]tlvbuf is 011E38A0 [17:09:47]SAM_PROTO_ClearQueue [17:09:47]wFMCommunicate request_size=4 [17:09:47]MH_SAM_APDU [17:09:47]CAPDU: 80 09 00 00 [17:09:47]Write to MH i2c: E2 08 00 D3 50 80 09 00 00 00 00 00 00 95 [17:09:47]Write i2c OK [17:09:47]MH_I2C_Read... [17:09:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:47]Read from MH i2c: E2 [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: E2 03 00 [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: E2 03 00 D3 50 00 90 00 97 [17:09:47]RAPDU: 90 00 [17:09:47]wFMCommunicate OK [17:09:47]SAM_PROTO_ClearQueue done [17:09:47]KKMCreateOFDPacket [17:09:47]OFDProtocolAddRootSTLVToBuf [17:09:47]FM_MakeSignedData [17:09:47]FM_MakeSignedData [17:09:47]SAM_PROTO_SignData [17:09:47]wFMCommunicate request_size=4 [17:09:47]MH_SAM_APDU [17:09:47]CAPDU: 80 0D 01 02 [17:09:47]Write to MH i2c: E2 08 00 D4 50 80 0D 01 02 00 00 00 00 9D [17:09:47]Write i2c OK [17:09:47]MH_I2C_Read... [17:09:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:47]Read from MH i2c: E2 [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: E2 03 00 [17:09:47]MH_I2C_Read... [17:09:47]Read from MH i2c: E2 03 00 D4 50 00 90 00 98 [17:09:47]RAPDU: 90 00 [17:09:47]wFMCommunicate OK [17:09:47]wFMCommunicate request_size=255 [17:09:47]MH_SAM_APDU [17:09: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 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 60 BC 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3B 71 00 00 35 04 06 00 BC [17:09:47]Write to MH i2c: E2 02 01 D5 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 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 60 BC 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3B 71 00 00 35 04 06 00 BC 00 00 32 [17:09:47]Write i2c OK [17:09:47]MH_I2C_Read... [17:09:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:48]Read from MH i2c: E2 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: E2 03 00 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: E2 03 00 D5 50 00 90 00 99 [17:09:48]RAPDU: 90 00 [17:09:48]wFMCommunicate OK [17:09:48]wFMCommunicate request_size=10 [17:09:48]MH_SAM_APDU [17:09:48]CAPDU: 80 0D 02 02 05 E4 89 C7 6B AE [17:09:48]Write to MH i2c: E2 0D 00 D6 50 80 0D 02 02 05 00 E4 89 C7 6B AE 00 00 F7 [17:09:48]Write i2c OK [17:09:48]MH_I2C_Read... [17:09:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:48]Read from MH i2c: E2 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: E2 03 00 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: E2 03 00 D6 50 00 90 00 9A [17:09:48]RAPDU: 90 00 [17:09:48]wFMCommunicate OK [17:09:48]wFMCommunicate request_size=4 [17:09:48]MH_SAM_APDU [17:09:48]CAPDU: 80 0D 03 02 [17:09:48]Write to MH i2c: E2 08 00 D7 50 80 0D 03 02 00 00 00 00 A2 [17:09:48]Write i2c OK [17:09:48]MH_I2C_Read... [17:09:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:48]Read from MH i2c: E2 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: E2 0B 00 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: E2 0B 00 D7 50 00 35 D7 F5 A3 FB 83 AE 18 90 00 8B [17:09:48]RAPDU: 35 D7 F5 A3 FB 83 AE 18 90 00 [17:09:48]wFMCommunicate OK [17:09:48]SAM_PROTO_SignData done [17:09:48]FM_MakeSignedData done [17:09:48]CreateOFDProtocolMessage [17:09:48]wFMCommunicate request_size=4 [17:09:48]MH_SAM_APDU [17:09:48]CAPDU: 80 11 00 00 [17:09:48]Write to MH i2c: E2 08 00 D8 50 80 11 00 00 00 00 00 00 A2 [17:09:48]Write i2c OK [17:09:48]MH_I2C_Read... [17:09:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:48]Read from MH i2c: E2 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: E2 17 00 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: E2 17 00 D8 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F1 [17:09:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:09:48]wFMCommunicate OK [17:09:48]CreateOFDProtocolMessage done [17:09:48]OFDSenderStorePacket 28987 [17:09:48]StoreOFDPacket docnum=28987 [17:09:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A5 E7 07 01 ED 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 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 60 BC 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3B 71 00 00 35 04 06 00 BC E4 89 C7 6B AE 35 D7 F5 A3 FB 83 AE 18 [17:09:48]CheckFolder [17:09:48]dirname=/storage/ofd_packets [17:09:48]CheckFolder done [17:09:48]ProducePacketName [17:09:48]name=ofd_packets/00028987 [17:09:48]NVStorageSaveData ofd_packets/00028987 [17:09:48]File name is /storage/ofd_packets/00028987 [17:09:48]Write 301 bytes [17:09:48]NVStorageSaveData done [17:09:48]OFDSenderStorePacket done [17:09:48]KKMCreateOFDPacket done [17:09:48]NVStorageSaveData kkm_last_timestamp [17:09:48]File name is /storage/kkm_last_timestamp [17:09:48]Write 4 bytes [17:09:48]NVStorageSaveData done [17:09:48]ExternCall_PrintAddStr [17:09:48]wPrintStart [17:09:48]Write to MH i2c: 01 00 00 D9 50 29 [17:09:48]Write i2c OK [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: 01 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: 01 07 00 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: 01 07 00 D9 50 00 00 00 00 00 FF 0F 3E [17:09:48]RasterBufferAndPrint [17:09:48]line Счет N : (1)347350 [17:09:48]line ИНН: 02508201610067 [17:09:48]line Контрольно-Кассовый Чек [17:09:48]line ПРОДАЖА [17:09:48]line ТРК (МРК, ГНК) : 32 [17:09:48]line Товар: 2710124130 [17:09:48]line Аи-92-К-5 [17:09:48]line 23.330 * 64.30 [17:09:48]line = 1500.12 [17:09:48]line НДС 12% НСП 1% [17:09:48]line > о реализуемом товаре [17:09:48]line ИТОГО: 1500.12 [17:09:48]line НСП 1% : 13.27 [17:09:48]line НДС 12% : 159.30 [17:09:48]line Наличными: 0.00 [17:09:48]line Безнал.: 1500.12 [17:09:48]line Место: АЗС № 108 "Партнер Нефть" [17:09:48]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:09:48]line СНО: Общий режим [17:09:48]line Чек 194 13.04.2024 17:09 [17:09:48]line Смена: 115 ФФД: 1.0 [17:09:48]line ЗНМ: 0300000027 [17:09:48]line РНМ: 0000138879044617 [17:09:48]line Версия ККМ: 001 [17:09:48]line Платежная система: О! деньги [17:09:48]line ФМ: 0000000000963154 [17:09:48]line ФД: 28987 [17:09:48]line ФПД: 207689750113198 [17:09:48]line 1/tax-web-control/client/api/v1/ticket?date=20240413T170952&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28987&fm=207689750113198&tin=02508201610067®Number=0000138879044617&sum=150012 [17:09:48]OFD Sender: Processing packet 28987 [packets to send 8, broken 7] [17:09:48]ProducePacketName [17:09:48]name=ofd_packets/00028987 [17:09:48]OFD Sender: To server: pG, [17:09:48]CommunicateWithHost lk.salyk.kg:30040 [17:09:48]ConnectInit lk.salyk.kg [17:09:48]written 0, free lines is 4095 [17:09:48]Connected sock=10 [17:09: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 31 35 34 0F 01 00 00 A5 E7 07 01 ED 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 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 60 BC 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3B 71 00 00 35 04 06 00 BC E4 89 C7 6B AE 35 D7 F5 A3 FB 83 AE 18 [17:09:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 10 C4 47 00 71 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 31 35 34 10 04 04 00 3B 71 00 00 F4 03 04 00 06 67 1A 66 B6 04 01 00 00 9E 98 6C BE 46 B7 66 F8 [17:09:48]CommunicateWithHost err = 0 [17:09:48]CheckOFDResponse [17:09:48]1017 (14) - 77093643461234 [17:09:48]1041 (16) - 0000000000963154 [17:09:48]1040 (4) - 28987 [17:09:48]1012 (4) - 13.04.2024 11:05 [17:09:48]1206 (1) - 0 [17:09:48]OFD Sender: Remove packet 28987 [17:09:48]ProducePacketName [17:09:48]name=ofd_packets/00028987 [17:09:48]NVStorageDeleteData [17:09:48]Write to MH i2c: 01 00 00 02 51 53 [17:09:48]Write i2c OK [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: 01 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: 01 07 00 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: 01 07 00 02 51 00 00 00 00 00 EA 0C 50 [17:09:48]RasterBufferAndPrint [17:09:48]line [17:09:48]line [17:09:48]line [17:09:48]line [17:09:48]line [17:09:48]written 0, free lines is 3315 [17:09:48]MH_Cut [17:09:48]Write to MH i2c: D1 01 00 09 51 01 2C [17:09:48]Write i2c OK [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: D1 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: D1 01 00 [17:09:48]MH_I2C_Read... [17:09:48]Read from MH i2c: D1 01 00 09 51 00 2B [17:09:48]Write to MH i2c: 01 00 00 0A 51 5B [17:09:48]Write i2c OK [17:09:48]MH_I2C_Read... [17:09:49]OFD Sender: No OFD packet to send [17:09:49]*** Cut start [17:09:49]*** Partial cut [17:09:49]*** CUTSNS_PIN = 1 [17:09:49]*** CUTSNS_PIN = 0 [17:09:50]*** Brake cut motor [17:09:50]Read from MH i2c: 01 [17:09:50]MH_I2C_Read... [17:09:50]*** Stop cut motor [17:09:50]*** Cut end [17:09:50]Read from MH i2c: 01 07 00 [17:09:50]MH_I2C_Read... [17:09:50]Read from MH i2c: 01 07 00 0A 51 00 00 00 00 00 FF 0F 70 [17:09:50]process_action close_receipt done [17:09:50]requested_data is exist [17:09:50]produce_requested_data [17:09:50]requested_item fm.sn is exist - process it [17:09:50]wFMCommunicate request_size=4 [17:09:50]MH_SAM_APDU [17:09:50]CAPDU: 80 11 00 00 [17:09:50]Write to MH i2c: E2 08 00 0B 51 80 11 00 00 00 00 00 00 D6 [17:09:50]Write i2c OK [17:09:50]MH_I2C_Read... [17:09:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:50]Read from MH i2c: E2 [17:09:50]MH_I2C_Read... [17:09:50]Read from MH i2c: E2 17 00 [17:09:50]MH_I2C_Read... [17:09:50]Read from MH i2c: E2 17 00 0B 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 25 [17:09:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:09:50]wFMCommunicate OK [17:09:50]requested_item fd.num is exist - process it [17:09:50]SAM_PROTO_GetFieldsCounters [17:09:50]wFMCommunicate request_size=4 [17:09:50]MH_SAM_APDU [17:09:50]CAPDU: 80 13 00 00 [17:09:50]Write to MH i2c: E2 08 00 0C 51 80 13 00 00 00 00 00 00 D9 [17:09:50]Write i2c OK [17:09:50]MH_I2C_Read... [17:09:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:50]Read from MH i2c: E2 [17:09:50]MH_I2C_Read... [17:09:50]Read from MH i2c: E2 62 00 [17:09:50]MH_I2C_Read... [17:09:50]Read from MH i2c: E2 62 00 0C 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3B 71 00 00 0E 04 04 00 73 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 7C [17:09: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3B 71 00 00 0E 04 04 00 73 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 [17:09:50]wFMCommunicate OK [17:09:50]SAM_PROTO_GetFieldsCounters done [17:09:50]requested_item shift.num is exist - process it [17:09:50]requested_item shift.opened is exist - process it [17:09:50]req_shift_opened [17:09:50]FM_GetShiftState [17:09:50]SAM_PROTO_GetShiftState [17:09:50]wFMCommunicate request_size=4 [17:09:50]MH_SAM_APDU [17:09:50]CAPDU: 80 13 01 00 [17:09:50]Write to MH i2c: E2 08 00 0D 51 80 13 01 00 00 00 00 00 DB [17:09:50]Write i2c OK [17:09:50]MH_I2C_Read... [17:09:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:50]Read from MH i2c: E2 [17:09:50]MH_I2C_Read... [17:09:50]Read from MH i2c: E2 0E 00 [17:09:50]MH_I2C_Read... [17:09:50]Read from MH i2c: E2 0E 00 0D 51 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F4 [17:09:50]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:09:50]wFMCommunicate OK [17:09:50]SAM_PROTO_GetShiftState done [17:09:50]FM_GetShiftState done [17:09:50]req_shift_opened done [17:09:50]requested_item shift.open_date is exist - process it [17:09:50]req_shift_open_date [17:09:50]req_shift_open_date done [17:09:50]produce_requested_data done [17:09:50]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28987,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [17:09:50]process_action_free close_receipt [17:09:50]json_value_free [17:09:50]json_value_free done [17:09:50]process_json_proto returns [17:09:50]Send response to host [17:09:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28987,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [17:09:50]free response buf [17:09:50]execute_script done [17:09:50]execute_script returns [17:09:50]free content buf [17:09:50]Sock 9.Close socket [17:09:50]Sock 9.Thread stoped [17:09:54]OFD Sender: No OFD packet to send [17:09:59]OFD Sender: No OFD packet to send [17:10:04]OFD Sender: No OFD packet to send [17:10:09]OFD Sender: No OFD packet to send [17:10:14]OFD Sender: No OFD packet to send [17:10:19]OFD Sender: No OFD packet to send [17:10:24]OFD Sender: No OFD packet to send [17:10:29]OFD Sender: No OFD packet to send [17:10:34]OFD Sender: No OFD packet to send [17:10:39]OFD Sender: No OFD packet to send [17:10:44]OFD Sender: No OFD packet to send [17:10:46]accept exits with 7 [17:10:46]New connection [17:10:46]New thread 3066785124 created [17:10:46]Thread 3066928484 joined [17:10:46]Waiting for new connection... [17:10:46] Sock 7.Parse request [17:10:46]Sock 7.Check first char [17:10:46]Sock 7.First char is OK [17:10:46]request: POST /json_proto HTTP/1.0 [17:10:46]Method: POST [17:10:46]URL: /json_proto [17:10:46]Method is POST - this is cgi request [17:10:46]url: /json_proto [17:10:46]query_string will be loaded in cgi processing [17:10:46]execute_cgi json_proto POST (null) [17:10:46]execute_cgi path=json_proto method=POST [17:10:46]POST find Content-Length [17:10:46]Host: 172.17.33.3:8080 [17:10:46]Content-Length: 811 [17:10:46]Content-Type: application/json [17:10:46] [17:10:46]POST finish read [17:10:46]Found Content-Length = 811 [17:10:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 45.600, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:46]execute_script... [17:10:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 45.600, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:46]POST & json_proto [17:10:46]process_json_proto [17:10:46]json parsed OK: [17:10:46]protocol is kg_v1.0 [17:10:46]action value=close_receipt [17:10:46]process_action close_receipt [17:10:46]cmd_close_receipt [17:10:46]MH_GetDate [17:10:46]Write to MH i2c: F0 00 00 0E 51 4E [17:10:46]Write i2c OK [17:10:46]MH_I2C_Read... [17:10:46]Read from MH i2c: F0 [17:10:46]MH_I2C_Read... [17:10:46]Read from MH i2c: F0 09 00 [17:10:46]MH_I2C_Read... [17:10:46]Read from MH i2c: F0 09 00 0E 51 00 9C BC 1A 66 23 5B 8F 65 A1 [17:10:46]GetLastDocTimeStamp 1713028192 [17:10:46]current date 1713028252 [17:10:46]FM_GetShiftState [17:10:46]SAM_PROTO_GetShiftState [17:10:46]wFMCommunicate request_size=4 [17:10:46]MH_SAM_APDU [17:10:46]CAPDU: 80 13 01 00 [17:10:46]Write to MH i2c: E2 08 00 0F 51 80 13 01 00 00 00 00 00 DD [17:10:46]Write i2c OK [17:10:46]MH_I2C_Read... [17:10:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:47]Read from MH i2c: E2 [17:10:47]MH_I2C_Read... [17:10:47]Read from MH i2c: E2 0E 00 [17:10:47]MH_I2C_Read... [17:10:47]Read from MH i2c: E2 0E 00 0F 51 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F6 [17:10:47]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:10:47]wFMCommunicate OK [17:10:47]SAM_PROTO_GetShiftState done [17:10:47]FM_GetShiftState done [17:10:47]opened in 1712967615 [17:10:47]opened+sec_in_day 1713054015 [17:10:47]quantity*price = 150024 [17:10:47]sum+1 = 150025 [17:10:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.24 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 0.00 Безнал.: 1500.24 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 195 13.04.2024 17:10 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 28988 ФПД: 158415076011451 1/tax-web-control/client/api/v1/ticket?date=20240413T171052&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28988&fm=158415076011451&tin=02508201610067®Number=0000138879044617&sum=150024 [17:10:48]StoreToDocumentArchive [17:10:48]shift 115 fd 28988 [17:10:48]save to /storage/0115/doc_00028988 [17:10:48]save last doc name /storage/0115/doc_00028988 to /storage/kkm_last_doc_name [17:10:48]save OK [17:10:48]Clear old archive folders... [17:10:48]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:10:48]tlvbuf is 011EC8A0 [17:10:48]SAM_PROTO_ClearQueue [17:10:48]wFMCommunicate request_size=4 [17:10:48]MH_SAM_APDU [17:10:48]CAPDU: 80 09 00 00 [17:10:48]Write to MH i2c: E2 08 00 1C 51 80 09 00 00 00 00 00 00 DF [17:10:48]Write i2c OK [17:10:48]MH_I2C_Read... [17:10:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:48]Read from MH i2c: E2 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 03 00 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 03 00 1C 51 00 90 00 E1 [17:10:48]RAPDU: 90 00 [17:10:48]wFMCommunicate OK [17:10:48]SAM_PROTO_ClearQueue done [17:10:48]KKMCreateOFDPacket [17:10:48]OFDProtocolAddRootSTLVToBuf [17:10:48]FM_MakeSignedData [17:10:48]FM_MakeSignedData [17:10:48]SAM_PROTO_SignData [17:10:48]wFMCommunicate request_size=4 [17:10:48]MH_SAM_APDU [17:10:48]CAPDU: 80 0D 01 02 [17:10:48]Write to MH i2c: E2 08 00 1D 51 80 0D 01 02 00 00 00 00 E7 [17:10:48]Write i2c OK [17:10:48]MH_I2C_Read... [17:10:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:48]Read from MH i2c: E2 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 03 00 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 03 00 1D 51 00 90 00 E2 [17:10:48]RAPDU: 90 00 [17:10:48]wFMCommunicate OK [17:10:48]wFMCommunicate request_size=255 [17:10:48]MH_SAM_APDU [17:10: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 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 9C BC 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3C 71 00 00 35 04 06 00 90 13 [17:10:48]Write to MH i2c: E2 02 01 1E 51 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 9C BC 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3C 71 00 00 35 04 06 00 90 13 00 00 7F [17:10:48]Write i2c OK [17:10:48]MH_I2C_Read... [17:10:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:48]Read from MH i2c: E2 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 03 00 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 03 00 1E 51 00 90 00 E3 [17:10:48]RAPDU: 90 00 [17:10:48]wFMCommunicate OK [17:10:48]wFMCommunicate request_size=9 [17:10:48]MH_SAM_APDU [17:10:48]CAPDU: 80 0D 02 02 04 E2 55 2D BB [17:10:48]Write to MH i2c: E2 0C 00 1F 51 80 0D 02 02 04 00 E2 55 2D BB 00 00 11 [17:10:48]Write i2c OK [17:10:48]MH_I2C_Read... [17:10:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:48]Read from MH i2c: E2 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 03 00 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 03 00 1F 51 00 90 00 E4 [17:10:48]RAPDU: 90 00 [17:10:48]wFMCommunicate OK [17:10:48]wFMCommunicate request_size=4 [17:10:48]MH_SAM_APDU [17:10:48]CAPDU: 80 0D 03 02 [17:10:48]Write to MH i2c: E2 08 00 20 51 80 0D 03 02 00 00 00 00 EC [17:10:48]Write i2c OK [17:10:48]MH_I2C_Read... [17:10:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:48]Read from MH i2c: E2 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 0B 00 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 0B 00 20 51 00 51 38 28 C3 3E B7 F6 27 90 00 73 [17:10:48]RAPDU: 51 38 28 C3 3E B7 F6 27 90 00 [17:10:48]wFMCommunicate OK [17:10:48]SAM_PROTO_SignData done [17:10:48]FM_MakeSignedData done [17:10:48]CreateOFDProtocolMessage [17:10:48]wFMCommunicate request_size=4 [17:10:48]MH_SAM_APDU [17:10:48]CAPDU: 80 11 00 00 [17:10:48]Write to MH i2c: E2 08 00 21 51 80 11 00 00 00 00 00 00 EC [17:10:48]Write i2c OK [17:10:48]MH_I2C_Read... [17:10:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:48]Read from MH i2c: E2 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 17 00 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 17 00 21 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3B [17:10:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:10:48]wFMCommunicate OK [17:10:48]CreateOFDProtocolMessage done [17:10:48]OFDSenderStorePacket 28988 [17:10:48]StoreOFDPacket docnum=28988 [17:10:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 7E 07 06 01 0F 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 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 9C BC 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3C 71 00 00 35 04 06 00 90 13 E2 55 2D BB 51 38 28 C3 3E B7 F6 27 [17:10:48]CheckFolder [17:10:48]dirname=/storage/ofd_packets [17:10:48]CheckFolder done [17:10:48]ProducePacketName [17:10:48]name=ofd_packets/00028988 [17:10:48]NVStorageSaveData ofd_packets/00028988 [17:10:48]File name is /storage/ofd_packets/00028988 [17:10:48]Write 300 bytes [17:10:48]NVStorageSaveData done [17:10:48]OFDSenderStorePacket done [17:10:48]KKMCreateOFDPacket done [17:10:48]NVStorageSaveData kkm_last_timestamp [17:10:48]File name is /storage/kkm_last_timestamp [17:10:48]Write 4 bytes [17:10:48]NVStorageSaveData done [17:10:48]ExternCall_PrintAddStr [17:10:48]wPrintStart [17:10:48]Write to MH i2c: 01 00 00 22 51 73 [17:10:48]Write i2c OK [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: 01 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: 01 07 00 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: 01 07 00 22 51 00 00 00 00 00 FF 0F 88 [17:10:48]RasterBufferAndPrint [17:10:48]line Счет N : (1)347349 [17:10:48]line ИНН: 02508201610067 [17:10:48]line Контрольно-Кассовый Чек [17:10:48]line ПРОДАЖА [17:10:48]line ТРК (МРК, ГНК) : 71 [17:10:48]line Товар: 2711129700 [17:10:48]line ГАЗ-К-5 [17:10:48]line 45.600 * 32.90 [17:10:48]line = 1500.24 [17:10:48]line НДС 12% НСП 1% [17:10:48]line > о реализуемом товаре [17:10:48]line ИТОГО: 1500.24 [17:10:48]line НСП 1% : 13.28 [17:10:48]line НДС 12% : 159.32 [17:10:48]line Наличными: 0.00 [17:10:48]line Безнал.: 1500.24 [17:10:48]line Место: АЗС № 108 "Партнер Нефть" [17:10:48]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:10:48]line СНО: Общий режим [17:10:48]line Чек 195 13.04.2024 17:10 [17:10:48]line Смена: 115 ФФД: 1.0 [17:10:48]line ЗНМ: 0300000027 [17:10:48]line РНМ: 0000138879044617 [17:10:48]line Версия ККМ: 001 [17:10:48]line Платежная система: О! деньги [17:10:48]line ФМ: 0000000000963154 [17:10:48]line ФД: 28988 [17:10:48]line ФПД: 158415076011451 [17:10:48]line 1/tax-web-control/client/api/v1/ticket?date=20240413T171052&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28988&fm=158415076011451&tin=02508201610067®Number=0000138879044617&sum=150024 [17:10:48]OFD Sender: Processing packet 28988 [packets to send 8, broken 7] [17:10:48]ProducePacketName [17:10:48]name=ofd_packets/00028988 [17:10:48]OFD Sender: To server: pG, [17:10:48]CommunicateWithHost lk.salyk.kg:30040 [17:10:48]ConnectInit lk.salyk.kg [17:10:48]written 0, free lines is 4095 [17:10:49]Connected sock=10 [17:10: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 31 35 34 0E 01 00 00 7E 07 06 01 0F 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 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 9C BC 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3C 71 00 00 35 04 06 00 90 13 E2 55 2D BB 51 38 28 C3 3E B7 F6 27 [17:10:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2A F2 47 00 72 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3C 71 00 00 F4 03 04 00 43 67 1A 66 B6 04 01 00 00 BB 60 B4 11 C8 F9 9A 1C [17:10:49]CommunicateWithHost err = 0 [17:10:49]CheckOFDResponse [17:10:49]1017 (14) - 77093643461234 [17:10:49]1041 (16) - 0000000000963154 [17:10:49]1040 (4) - 28988 [17:10:49]1012 (4) - 13.04.2024 11:06 [17:10:49]1206 (1) - 0 [17:10:49]OFD Sender: Remove packet 28988 [17:10:49]ProducePacketName [17:10:49]name=ofd_packets/00028988 [17:10:49]NVStorageDeleteData [17:10:49]Write to MH i2c: 01 00 00 4B 51 9C [17:10:49]Write i2c OK [17:10:49]MH_I2C_Read... [17:10:49]Read from MH i2c: 01 [17:10:49]MH_I2C_Read... [17:10:49]Read from MH i2c: 01 07 00 [17:10:49]MH_I2C_Read... [17:10:49]Read from MH i2c: 01 07 00 4B 51 00 00 00 00 00 E4 0C 93 [17:10:49]RasterBufferAndPrint [17:10:49]line [17:10:49]line [17:10:49]line [17:10:49]line [17:10:49]line [17:10:49]written 0, free lines is 3305 [17:10:49]MH_Cut [17:10:49]Write to MH i2c: D1 01 00 52 51 01 75 [17:10:49]Write i2c OK [17:10:49]MH_I2C_Read... [17:10:49]Read from MH i2c: D1 [17:10:49]MH_I2C_Read... [17:10:49]Read from MH i2c: D1 01 00 [17:10:49]MH_I2C_Read... [17:10:49]Read from MH i2c: D1 01 00 52 51 00 74 [17:10:49]Write to MH i2c: 01 00 00 53 51 A4 [17:10:49]Write i2c OK [17:10:49]MH_I2C_Read... [17:10:49]OFD Sender: No OFD packet to send [17:10:50]*** Cut start [17:10:50]*** Partial cut [17:10:50]*** CUTSNS_PIN = 1 [17:10:50]*** CUTSNS_PIN = 0 [17:10:50]*** Brake cut motor [17:10:50]Read from MH i2c: 01 [17:10:50]MH_I2C_Read... [17:10:50]*** Stop cut motor [17:10:50]*** Cut end [17:10:50]Read from MH i2c: 01 07 00 [17:10:50]MH_I2C_Read... [17:10:50]Read from MH i2c: 01 07 00 53 51 00 00 00 00 00 FF 0F B9 [17:10:50]process_action close_receipt done [17:10:50]requested_data is exist [17:10:50]produce_requested_data [17:10:50]requested_item fm.sn is exist - process it [17:10:50]wFMCommunicate request_size=4 [17:10:50]MH_SAM_APDU [17:10:50]CAPDU: 80 11 00 00 [17:10:50]Write to MH i2c: E2 08 00 54 51 80 11 00 00 00 00 00 00 1F [17:10:50]Write i2c OK [17:10:50]MH_I2C_Read... [17:10:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:50]Read from MH i2c: E2 [17:10:50]MH_I2C_Read... [17:10:50]Read from MH i2c: E2 17 00 [17:10:50]MH_I2C_Read... [17:10:50]Read from MH i2c: E2 17 00 54 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6E [17:10:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:10:50]wFMCommunicate OK [17:10:50]requested_item fd.num is exist - process it [17:10:50]SAM_PROTO_GetFieldsCounters [17:10:50]wFMCommunicate request_size=4 [17:10:50]MH_SAM_APDU [17:10:50]CAPDU: 80 13 00 00 [17:10:50]Write to MH i2c: E2 08 00 55 51 80 13 00 00 00 00 00 00 22 [17:10:50]Write i2c OK [17:10:50]MH_I2C_Read... [17:10:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:51]Read from MH i2c: E2 [17:10:51]MH_I2C_Read... [17:10:51]Read from MH i2c: E2 62 00 [17:10:51]MH_I2C_Read... [17:10:51]Read from MH i2c: E2 62 00 55 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3C 71 00 00 0E 04 04 00 73 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 C9 [17:10: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3C 71 00 00 0E 04 04 00 73 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 [17:10:51]wFMCommunicate OK [17:10:51]SAM_PROTO_GetFieldsCounters done [17:10:51]requested_item shift.num is exist - process it [17:10:51]requested_item shift.opened is exist - process it [17:10:51]req_shift_opened [17:10:51]FM_GetShiftState [17:10:51]SAM_PROTO_GetShiftState [17:10:51]wFMCommunicate request_size=4 [17:10:51]MH_SAM_APDU [17:10:51]CAPDU: 80 13 01 00 [17:10:51]Write to MH i2c: E2 08 00 56 51 80 13 01 00 00 00 00 00 24 [17:10:51]Write i2c OK [17:10:51]MH_I2C_Read... [17:10:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:51]Read from MH i2c: E2 [17:10:51]MH_I2C_Read... [17:10:51]Read from MH i2c: E2 0E 00 [17:10:51]MH_I2C_Read... [17:10:51]Read from MH i2c: E2 0E 00 56 51 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 3D [17:10:51]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:10:51]wFMCommunicate OK [17:10:51]SAM_PROTO_GetShiftState done [17:10:51]FM_GetShiftState done [17:10:51]req_shift_opened done [17:10:51]requested_item shift.open_date is exist - process it [17:10:51]req_shift_open_date [17:10:51]req_shift_open_date done [17:10:51]produce_requested_data done [17:10:51]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28988,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [17:10:51]process_action_free close_receipt [17:10:51]json_value_free [17:10:51]json_value_free done [17:10:51]process_json_proto returns [17:10:51]Send response to host [17:10:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28988,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [17:10:51]free response buf [17:10:51]execute_script done [17:10:51]execute_script returns [17:10:51]free content buf [17:10:51]Sock 7.Close socket [17:10:51]Sock 7.Thread stoped [17:10:54]OFD Sender: No OFD packet to send [17:10:59]OFD Sender: No OFD packet to send [17:11:04]OFD Sender: No OFD packet to send [17:11:09]OFD Sender: No OFD packet to send [17:11:14]OFD Sender: No OFD packet to send [17:11:19]OFD Sender: No OFD packet to send [17:11:24]OFD Sender: No OFD packet to send [17:11:29]OFD Sender: No OFD packet to send [17:11:34]OFD Sender: No OFD packet to send [17:11:39]OFD Sender: No OFD packet to send [17:11:44]OFD Sender: No OFD packet to send [17:11:49]OFD Sender: No OFD packet to send [17:11:54]OFD Sender: No OFD packet to send [17:11:59]OFD Sender: No OFD packet to send [17:12:04]OFD Sender: No OFD packet to send [17:12:09]OFD Sender: No OFD packet to send [17:12:14]OFD Sender: No OFD packet to send [17:12:19]OFD Sender: No OFD packet to send [17:12:24]OFD Sender: No OFD packet to send [17:12:29]OFD Sender: No OFD packet to send [17:12:34]OFD Sender: No OFD packet to send [17:12:39]OFD Sender: No OFD packet to send [17:12:44]OFD Sender: No OFD packet to send [17:12:49]OFD Sender: No OFD packet to send [17:12:54]OFD Sender: No OFD packet to send [17:12:59]OFD Sender: No OFD packet to send [17:13:04]OFD Sender: No OFD packet to send [17:13:09]OFD Sender: No OFD packet to send [17:13:14]OFD Sender: No OFD packet to send [17:13:19]OFD Sender: No OFD packet to send [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:20]accept exits with 9 [17:16:20]New connection [17:16:20]New thread 3066928484 created [17:16:20]Thread 3066785124 joined [17:16:20]Waiting for new connection... [17:16:20] Sock 9.Parse request [17:16:20]Sock 9.Check first char [17:16:20]Sock 9.First char is OK [17:16:20]request: POST /json_proto HTTP/1.0 [17:16:20]Method: POST [17:16:20]URL: /json_proto [17:16:20]Method is POST - this is cgi request [17:16:20]url: /json_proto [17:16:20]query_string will be loaded in cgi processing [17:16:20]execute_cgi json_proto POST (null) [17:16:20]execute_cgi path=json_proto method=POST [17:16:20]POST find Content-Length [17:16:20]Host: 172.17.33.3:8080 [17:16:20]Content-Length: 677 [17:16:20]Content-Type: application/json [17:16:20] [17:16:20]POST finish read [17:16:20]Found Content-Length = 677 [17:16:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347351", "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" : 64.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [17:16:20]execute_script... [17:16:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347351", "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" : 64.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [17:16:20]POST & json_proto [17:16:20]process_json_proto [17:16:20]json parsed OK: [17:16:20]protocol is kg_v1.0 [17:16:20]action value=close_receipt [17:16:20]process_action close_receipt [17:16:20]cmd_close_receipt [17:16:20]MH_GetDate [17:16:20]Write to MH i2c: F0 00 00 57 51 97 [17:16:20]Write i2c OK [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: F0 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: F0 09 00 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: F0 09 00 57 51 00 EA BD 1A 66 23 5B 8F 65 39 [17:16:20]GetLastDocTimeStamp 1713028252 [17:16:20]current date 1713028586 [17:16:20]FM_GetShiftState [17:16:20]SAM_PROTO_GetShiftState [17:16:20]wFMCommunicate request_size=4 [17:16:20]MH_SAM_APDU [17:16:20]CAPDU: 80 13 01 00 [17:16:20]Write to MH i2c: E2 08 00 58 51 80 13 01 00 00 00 00 00 26 [17:16:20]Write i2c OK [17:16:20]MH_I2C_Read... [17:16:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:20]Read from MH i2c: E2 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: E2 0E 00 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: E2 0E 00 58 51 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 3F [17:16:20]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:16:20]wFMCommunicate OK [17:16:20]SAM_PROTO_GetShiftState done [17:16:20]FM_GetShiftState done [17:16:20]opened in 1712967615 [17:16:20]opened+sec_in_day 1713054015 [17:16:20]quantity*price = 20061 [17:16:20]sum+1 = 20063 [17:16:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 196 13.04.2024 17:16 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28989 ФПД: 136081927426114 1/tax-web-control/client/api/v1/ticket?date=20240413T171626&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28989&fm=136081927426114&tin=02508201610067®Number=0000138879044617&sum=20000 [17:16:21]StoreToDocumentArchive [17:16:21]shift 115 fd 28989 [17:16:21]save to /storage/0115/doc_00028989 [17:16:21]save last doc name /storage/0115/doc_00028989 to /storage/kkm_last_doc_name [17:16:21]save OK [17:16:21]Clear old archive folders... [17:16:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:16:22]tlvbuf is 011CB210 [17:16:22]SAM_PROTO_ClearQueue [17:16:22]wFMCommunicate request_size=4 [17:16:22]MH_SAM_APDU [17:16:22]CAPDU: 80 09 00 00 [17:16:22]Write to MH i2c: E2 08 00 65 51 80 09 00 00 00 00 00 00 28 [17:16:22]Write i2c OK [17:16:22]MH_I2C_Read... [17:16:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:22]Read from MH i2c: E2 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: E2 03 00 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: E2 03 00 65 51 00 90 00 2A [17:16:22]RAPDU: 90 00 [17:16:22]wFMCommunicate OK [17:16:22]SAM_PROTO_ClearQueue done [17:16:22]KKMCreateOFDPacket [17:16:22]OFDProtocolAddRootSTLVToBuf [17:16:22]FM_MakeSignedData [17:16:22]FM_MakeSignedData [17:16:22]SAM_PROTO_SignData [17:16:22]wFMCommunicate request_size=4 [17:16:22]MH_SAM_APDU [17:16:22]CAPDU: 80 0D 01 02 [17:16:22]Write to MH i2c: E2 08 00 66 51 80 0D 01 02 00 00 00 00 30 [17:16:22]Write i2c OK [17:16:22]MH_I2C_Read... [17:16:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:22]Read from MH i2c: E2 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: E2 03 00 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: E2 03 00 66 51 00 90 00 2B [17:16:22]RAPDU: 90 00 [17:16:22]wFMCommunicate OK [17:16:22]wFMCommunicate request_size=255 [17:16:22]MH_SAM_APDU [17:16: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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 C4 00 00 00 F4 03 04 00 EA BD 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3D 71 00 00 35 04 06 00 7B [17:16:22]Write to MH i2c: E2 02 01 67 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 C4 00 00 00 F4 03 04 00 EA BD 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3D 71 00 00 35 04 06 00 7B 00 00 E4 [17:16:22]Write i2c OK [17:16:22]MH_I2C_Read... [17:16:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:22]Read from MH i2c: E2 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: E2 03 00 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: E2 03 00 67 51 00 90 00 2C [17:16:22]RAPDU: 90 00 [17:16:22]wFMCommunicate OK [17:16:22]wFMCommunicate request_size=10 [17:16:22]MH_SAM_APDU [17:16:22]CAPDU: 80 0D 02 02 05 C4 0A F1 D0 42 [17:16:22]Write to MH i2c: E2 0D 00 68 51 80 0D 02 02 05 00 C4 0A F1 D0 42 00 00 0E [17:16:22]Write i2c OK [17:16:22]MH_I2C_Read... [17:16:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:22]Read from MH i2c: E2 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: E2 03 00 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: E2 03 00 68 51 00 90 00 2D [17:16:22]RAPDU: 90 00 [17:16:22]wFMCommunicate OK [17:16:22]wFMCommunicate request_size=4 [17:16:22]MH_SAM_APDU [17:16:22]CAPDU: 80 0D 03 02 [17:16:22]Write to MH i2c: E2 08 00 69 51 80 0D 03 02 00 00 00 00 35 [17:16:22]Write i2c OK [17:16:22]MH_I2C_Read... [17:16:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:22]Read from MH i2c: E2 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: E2 0B 00 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: E2 0B 00 69 51 00 B4 B6 72 E8 34 C3 85 28 90 00 9E [17:16:22]RAPDU: B4 B6 72 E8 34 C3 85 28 90 00 [17:16:22]wFMCommunicate OK [17:16:22]SAM_PROTO_SignData done [17:16:22]FM_MakeSignedData done [17:16:22]CreateOFDProtocolMessage [17:16:22]wFMCommunicate request_size=4 [17:16:22]MH_SAM_APDU [17:16:22]CAPDU: 80 11 00 00 [17:16:22]Write to MH i2c: E2 08 00 6A 51 80 11 00 00 00 00 00 00 35 [17:16:22]Write i2c OK [17:16:22]MH_I2C_Read... [17:16:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:22]Read from MH i2c: E2 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: E2 17 00 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: E2 17 00 6A 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 84 [17:16:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:16:22]wFMCommunicate OK [17:16:22]CreateOFDProtocolMessage done [17:16:22]OFDSenderStorePacket 28989 [17:16:22]StoreOFDPacket docnum=28989 [17:16:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 85 B9 07 01 EE 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 C4 00 00 00 F4 03 04 00 EA BD 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3D 71 00 00 35 04 06 00 7B C4 0A F1 D0 42 B4 B6 72 E8 34 C3 85 28 [17:16:22]CheckFolder [17:16:22]dirname=/storage/ofd_packets [17:16:22]CheckFolder done [17:16:22]ProducePacketName [17:16:22]name=ofd_packets/00028989 [17:16:22]NVStorageSaveData ofd_packets/00028989 [17:16:22]File name is /storage/ofd_packets/00028989 [17:16:22]Write 301 bytes [17:16:22]NVStorageSaveData done [17:16:22]OFDSenderStorePacket done [17:16:22]KKMCreateOFDPacket done [17:16:22]NVStorageSaveData kkm_last_timestamp [17:16:22]File name is /storage/kkm_last_timestamp [17:16:22]Write 4 bytes [17:16:22]NVStorageSaveData done [17:16:22]ExternCall_PrintAddStr [17:16:22]wPrintStart [17:16:22]Write to MH i2c: 01 00 00 6B 51 BC [17:16:22]Write i2c OK [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: 01 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: 01 07 00 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: 01 07 00 6B 51 00 00 00 00 00 FF 0F D1 [17:16:22]RasterBufferAndPrint [17:16:22]line Счет N : (1)347351 [17:16:22]line ИНН: 02508201610067 [17:16:22]line Контрольно-Кассовый Чек [17:16:22]line ПРОДАЖА [17:16:22]line ТРК (МРК, ГНК) : 32 [17:16:22]line Товар: 2710124130 [17:16:22]line Аи-92-К-5 [17:16:22]line 3.120 * 64.30 [17:16:22]line = 200.62 [17:16:22]line НДС 12% НСП 1% [17:16:22]line > о реализуемом товаре [17:16:22]line ОКРУГЛЕНИЕ: -0.62 [17:16:22]line ИТОГО: 200.00 [17:16:22]line Внесено: 200.00 [17:16:22]line СДАЧА: 0.00 [17:16:22]line НСП 1% : 1.77 [17:16:22]line НДС 12% : 21.30 [17:16:22]line Наличными: 200.00 [17:16:22]line Безнал.: 0.00 [17:16:22]line Место: АЗС № 108 "Партнер Нефть" [17:16:22]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:16:22]line СНО: Общий режим [17:16:22]line Чек 196 13.04.2024 17:16 [17:16:22]line Смена: 115 ФФД: 1.0 [17:16:22]line ЗНМ: 0300000027 [17:16:22]line РНМ: 0000138879044617 [17:16:22]line Версия ККМ: 001 [17:16:22]line ФМ: 0000000000963154 [17:16:22]line ФД: 28989 [17:16:22]line ФПД: 136081927426114 [17:16:22]line 1/tax-web-control/client/api/v1/ticket?date=20240413T171626&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28989&fm=136081927426114&tin=02508201610067®Number=0000138879044617&sum=20000 [17:16:22]OFD Sender: Processing packet 28989 [packets to send 8, broken 7] [17:16:22]ProducePacketName [17:16:22]name=ofd_packets/00028989 [17:16:22]OFD Sender: To server: pG, [17:16:22]CommunicateWithHost lk.salyk.kg:30040 [17:16:22]ConnectInit lk.salyk.kg [17:16:22]written 0, free lines is 4095 [17:16:22]Connected sock=10 [17:16:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 85 B9 07 01 EE 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 C4 00 00 00 F4 03 04 00 EA BD 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3D 71 00 00 35 04 06 00 7B C4 0A F1 D0 42 B4 B6 72 E8 34 C3 85 28 [17:16:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C3 A6 47 00 43 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 31 35 34 10 04 04 00 3D 71 00 00 F4 03 04 00 91 68 1A 66 B6 04 01 00 00 84 66 AF 9B 49 DA 31 DB [17:16:23]CommunicateWithHost err = 0 [17:16:23]CheckOFDResponse [17:16:23]1017 (14) - 77093643461234 [17:16:23]1041 (16) - 0000000000963154 [17:16:23]1040 (4) - 28989 [17:16:23]1012 (4) - 13.04.2024 11:12 [17:16:23]1206 (1) - 0 [17:16:23]OFD Sender: Remove packet 28989 [17:16:23]ProducePacketName [17:16:23]name=ofd_packets/00028989 [17:16:23]NVStorageDeleteData [17:16:23]Write to MH i2c: 01 00 00 95 51 E6 [17:16:23]Write i2c OK [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: 01 [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: 01 07 00 [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: 01 07 00 95 51 00 00 00 00 00 D4 0C CD [17:16:23]RasterBufferAndPrint [17:16:23]line [17:16:23]line [17:16:23]line [17:16:23]line [17:16:23]line [17:16:23]written 0, free lines is 3291 [17:16:23]MH_Cut [17:16:23]Write to MH i2c: D1 01 00 9C 51 01 BF [17:16:23]Write i2c OK [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: D1 [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: D1 01 00 [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: D1 01 00 9C 51 00 BE [17:16:23]Write to MH i2c: 01 00 00 9D 51 EE [17:16:23]Write i2c OK [17:16:23]MH_I2C_Read... [17:16:23]OFD Sender: No OFD packet to send [17:16:24]*** Cut start [17:16:24]*** Partial cut [17:16:24]*** CUTSNS_PIN = 1 [17:16:24]*** CUTSNS_PIN = 0 [17:16:24]*** Brake cut motor [17:16:24]Read from MH i2c: 01 [17:16:24]MH_I2C_Read... [17:16:24]*** Stop cut motor [17:16:24]*** Cut end [17:16:24]Read from MH i2c: 01 07 00 [17:16:24]MH_I2C_Read... [17:16:24]Read from MH i2c: 01 07 00 9D 51 00 00 00 00 00 FF 0F 03 [17:16:24]process_action close_receipt done [17:16:24]requested_data is exist [17:16:24]produce_requested_data [17:16:24]requested_item fm.sn is exist - process it [17:16:24]wFMCommunicate request_size=4 [17:16:24]MH_SAM_APDU [17:16:24]CAPDU: 80 11 00 00 [17:16:24]Write to MH i2c: E2 08 00 9E 51 80 11 00 00 00 00 00 00 69 [17:16:24]Write i2c OK [17:16:24]MH_I2C_Read... [17:16:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:24]Read from MH i2c: E2 [17:16:24]MH_I2C_Read... [17:16:24]Read from MH i2c: E2 17 00 [17:16:24]MH_I2C_Read... [17:16:24]Read from MH i2c: E2 17 00 9E 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B8 [17:16:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:16:24]wFMCommunicate OK [17:16:24]requested_item fd.num is exist - process it [17:16:24]SAM_PROTO_GetFieldsCounters [17:16:24]wFMCommunicate request_size=4 [17:16:24]MH_SAM_APDU [17:16:24]CAPDU: 80 13 00 00 [17:16:24]Write to MH i2c: E2 08 00 9F 51 80 13 00 00 00 00 00 00 6C [17:16:24]Write i2c OK [17:16:24]MH_I2C_Read... [17:16:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:24]Read from MH i2c: E2 [17:16:24]MH_I2C_Read... [17:16:24]Read from MH i2c: E2 62 00 [17:16:24]MH_I2C_Read... [17:16:24]Read from MH i2c: E2 62 00 9F 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3D 71 00 00 0E 04 04 00 73 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 17 [17:16:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3D 71 00 00 0E 04 04 00 73 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 [17:16:24]wFMCommunicate OK [17:16:24]SAM_PROTO_GetFieldsCounters done [17:16:24]requested_item shift.num is exist - process it [17:16:24]requested_item shift.opened is exist - process it [17:16:24]req_shift_opened [17:16:24]FM_GetShiftState [17:16:24]SAM_PROTO_GetShiftState [17:16:24]wFMCommunicate request_size=4 [17:16:24]MH_SAM_APDU [17:16:24]CAPDU: 80 13 01 00 [17:16:24]Write to MH i2c: E2 08 00 A0 51 80 13 01 00 00 00 00 00 6E [17:16:24]Write i2c OK [17:16:24]MH_I2C_Read... [17:16:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:25]Read from MH i2c: E2 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: E2 0E 00 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: E2 0E 00 A0 51 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 87 [17:16:25]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:16:25]wFMCommunicate OK [17:16:25]SAM_PROTO_GetShiftState done [17:16:25]FM_GetShiftState done [17:16:25]req_shift_opened done [17:16:25]requested_item shift.open_date is exist - process it [17:16:25]req_shift_open_date [17:16:25]req_shift_open_date done [17:16:25]produce_requested_data done [17:16:25]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28989,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [17:16:25]process_action_free close_receipt [17:16:25]json_value_free [17:16:25]json_value_free done [17:16:25]process_json_proto returns [17:16:25]Send response to host [17:16:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28989,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [17:16:25]free response buf [17:16:25]execute_script done [17:16:25]execute_script returns [17:16:25]free content buf [17:16:25]Sock 9.Close socket [17:16:25]Sock 9.Thread stoped [17:16:28]OFD Sender: No OFD packet to send [17:16:33]OFD Sender: No OFD packet to send [17:16:38]OFD Sender: No OFD packet to send [17:16:43]OFD Sender: No OFD packet to send [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:18]OFD Sender: No OFD packet to send [17:17:23]OFD Sender: No OFD packet to send [17:17:28]OFD Sender: No OFD packet to send [17:17:33]OFD Sender: No OFD packet to send [17:17:38]OFD Sender: No OFD packet to send [17:17:43]OFD Sender: No OFD packet to send [17:17:48]OFD Sender: No OFD packet to send [17:17:53]OFD Sender: No OFD packet to send [17:17:58]OFD Sender: No OFD packet to send [17:18:03]OFD Sender: No OFD packet to send [17:18:08]OFD Sender: No OFD packet to send [17:18:13]OFD Sender: No OFD packet to send [17:18:18]OFD Sender: No OFD packet to send [17:18:23]OFD Sender: No OFD packet to send [17:18:28]OFD Sender: No OFD packet to send [17:18:33]OFD Sender: No OFD packet to send [17:18:38]OFD Sender: No OFD packet to send [17:18:43]OFD Sender: No OFD packet to send [17:18:48]OFD Sender: No OFD packet to send [17:18:53]OFD Sender: No OFD packet to send [17:18:58]OFD Sender: No OFD packet to send [17:19:03]OFD Sender: No OFD packet to send [17:19:08]OFD Sender: No OFD packet to send [17:19:13]OFD Sender: No OFD packet to send [17:19:18]OFD Sender: No OFD packet to send [17:19:23]OFD Sender: No OFD packet to send [17:19:28]OFD Sender: No OFD packet to send [17:19:33]OFD Sender: No OFD packet to send [17:19:38]OFD Sender: No OFD packet to send [17:19:43]OFD Sender: No OFD packet to send [17:19:48]OFD Sender: No OFD packet to send [17:19:53]OFD Sender: No OFD packet to send [17:19:58]OFD Sender: No OFD packet to send [17:20:03]OFD Sender: No OFD packet to send [17:20:08]OFD Sender: No OFD packet to send [17:20:13]OFD Sender: No OFD packet to send [17:20:18]OFD Sender: No OFD packet to send [17:20:23]OFD Sender: No OFD packet to send [17:20:24]accept exits with 7 [17:20:24]New connection [17:20:24]New thread 3066785124 created [17:20:24]Thread 3066928484 joined [17:20:24]Waiting for new connection... [17:20:24] Sock 7.Parse request [17:20:24]Sock 7.Check first char [17:20:24]Sock 7.First char is OK [17:20:24]request: POST /json_proto HTTP/1.0 [17:20:24]Method: POST [17:20:24]URL: /json_proto [17:20:24]Method is POST - this is cgi request [17:20:24]url: /json_proto [17:20:24]query_string will be loaded in cgi processing [17:20:24]execute_cgi json_proto POST (null) [17:20:24]execute_cgi path=json_proto method=POST [17:20:24]POST find Content-Length [17:20:24]Host: 172.17.33.3:8080 [17:20:24]Content-Length: 675 [17:20:24]Content-Type: application/json [17:20:24] [17:20:24]POST finish read [17:20:24]Found Content-Length = 675 [17:20:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:20:24]execute_script... [17:20: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)347352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:20:24]POST & json_proto [17:20:24]process_json_proto [17:20:24]json parsed OK: [17:20:24]protocol is kg_v1.0 [17:20:24]action value=close_receipt [17:20:24]process_action close_receipt [17:20:24]cmd_close_receipt [17:20:24]MH_GetDate [17:20:24]Write to MH i2c: F0 00 00 A1 51 E1 [17:20:24]Write i2c OK [17:20:24]MH_I2C_Read... [17:20:24]Read from MH i2c: F0 [17:20:24]MH_I2C_Read... [17:20:24]Read from MH i2c: F0 09 00 [17:20:24]MH_I2C_Read... [17:20:24]Read from MH i2c: F0 09 00 A1 51 00 DE BE 1A 66 23 5B 8F 65 78 [17:20:24]GetLastDocTimeStamp 1713028586 [17:20:24]current date 1713028830 [17:20:24]FM_GetShiftState [17:20:24]SAM_PROTO_GetShiftState [17:20:24]wFMCommunicate request_size=4 [17:20:24]MH_SAM_APDU [17:20:24]CAPDU: 80 13 01 00 [17:20:24]Write to MH i2c: E2 08 00 A2 51 80 13 01 00 00 00 00 00 70 [17:20:24]Write i2c OK [17:20:24]MH_I2C_Read... [17:20:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:24]Read from MH i2c: E2 [17:20:24]MH_I2C_Read... [17:20:24]Read from MH i2c: E2 0E 00 [17:20:24]MH_I2C_Read... [17:20:24]Read from MH i2c: E2 0E 00 A2 51 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 89 [17:20:24]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:20:24]wFMCommunicate OK [17:20:24]SAM_PROTO_GetShiftState done [17:20:24]FM_GetShiftState done [17:20:24]opened in 1712967615 [17:20:24]opened+sec_in_day 1713054015 [17:20:24]quantity*price = 100039 [17:20:24]sum+1 = 100041 [17:20:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 197 13.04.2024 17:20 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28990 ФПД: 134701540575742 1/tax-web-control/client/api/v1/ticket?date=20240413T172030&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28990&fm=134701540575742&tin=02508201610067®Number=0000138879044617&sum=100000 [17:20:25]StoreToDocumentArchive [17:20:25]shift 115 fd 28990 [17:20:25]save to /storage/0115/doc_00028990 [17:20:25]save last doc name /storage/0115/doc_00028990 to /storage/kkm_last_doc_name [17:20:25]save OK [17:20:25]Clear old archive folders... [17:20:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:20:25]tlvbuf is 011B72E0 [17:20:25]SAM_PROTO_ClearQueue [17:20:25]wFMCommunicate request_size=4 [17:20:25]MH_SAM_APDU [17:20:25]CAPDU: 80 09 00 00 [17:20:25]Write to MH i2c: E2 08 00 AF 51 80 09 00 00 00 00 00 00 72 [17:20:26]Write i2c OK [17:20:26]MH_I2C_Read... [17:20:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:26]Read from MH i2c: E2 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: E2 03 00 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: E2 03 00 AF 51 00 90 00 74 [17:20:26]RAPDU: 90 00 [17:20:26]wFMCommunicate OK [17:20:26]SAM_PROTO_ClearQueue done [17:20:26]KKMCreateOFDPacket [17:20:26]OFDProtocolAddRootSTLVToBuf [17:20:26]FM_MakeSignedData [17:20:26]FM_MakeSignedData [17:20:26]SAM_PROTO_SignData [17:20:26]wFMCommunicate request_size=4 [17:20:26]MH_SAM_APDU [17:20:26]CAPDU: 80 0D 01 02 [17:20:26]Write to MH i2c: E2 08 00 B0 51 80 0D 01 02 00 00 00 00 7A [17:20:26]Write i2c OK [17:20:26]MH_I2C_Read... [17:20:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:26]Read from MH i2c: E2 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: E2 03 00 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: E2 03 00 B0 51 00 90 00 75 [17:20:26]RAPDU: 90 00 [17:20:26]wFMCommunicate OK [17:20:26]wFMCommunicate request_size=255 [17:20:26]MH_SAM_APDU [17:20:26]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 DE BE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3E 71 00 00 35 04 06 00 [17:20:26]Write to MH i2c: E2 02 01 B1 51 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 DE BE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3E 71 00 00 35 04 06 00 00 00 BA [17:20:26]Write i2c OK [17:20:26]MH_I2C_Read... [17:20:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:26]Read from MH i2c: E2 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: E2 03 00 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: E2 03 00 B1 51 00 90 00 76 [17:20:26]RAPDU: 90 00 [17:20:26]wFMCommunicate OK [17:20:26]wFMCommunicate request_size=11 [17:20:26]MH_SAM_APDU [17:20:26]CAPDU: 80 0D 02 02 06 7A 82 A5 7A 09 FE [17:20:26]Write to MH i2c: E2 0E 00 B2 51 80 0D 02 02 06 00 7A 82 A5 7A 09 FE 00 00 AB [17:20:26]Write i2c OK [17:20:26]MH_I2C_Read... [17:20:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:26]Read from MH i2c: E2 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: E2 03 00 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: E2 03 00 B2 51 00 90 00 77 [17:20:26]RAPDU: 90 00 [17:20:26]wFMCommunicate OK [17:20:26]wFMCommunicate request_size=4 [17:20:26]MH_SAM_APDU [17:20:26]CAPDU: 80 0D 03 02 [17:20:26]Write to MH i2c: E2 08 00 B3 51 80 0D 03 02 00 00 00 00 7F [17:20:26]Write i2c OK [17:20:26]MH_I2C_Read... [17:20:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:26]Read from MH i2c: E2 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: E2 0B 00 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: E2 0B 00 B3 51 00 B0 2D 83 98 7D 96 8C 45 90 00 5C [17:20:26]RAPDU: B0 2D 83 98 7D 96 8C 45 90 00 [17:20:26]wFMCommunicate OK [17:20:26]SAM_PROTO_SignData done [17:20:26]FM_MakeSignedData done [17:20:26]CreateOFDProtocolMessage [17:20:26]wFMCommunicate request_size=4 [17:20:26]MH_SAM_APDU [17:20:26]CAPDU: 80 11 00 00 [17:20:26]Write to MH i2c: E2 08 00 B4 51 80 11 00 00 00 00 00 00 7F [17:20:26]Write i2c OK [17:20:26]MH_I2C_Read... [17:20:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:26]Read from MH i2c: E2 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: E2 17 00 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: E2 17 00 B4 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CE [17:20:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:20:26]wFMCommunicate OK [17:20:26]CreateOFDProtocolMessage done [17:20:26]OFDSenderStorePacket 28990 [17:20:26]StoreOFDPacket docnum=28990 [17:20:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 92 11 08 01 86 3F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 DE BE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3E 71 00 00 35 04 06 00 7A 82 A5 7A 09 FE B0 2D 83 98 7D 96 8C 45 [17:20:26]CheckFolder [17:20:26]dirname=/storage/ofd_packets [17:20:26]CheckFolder done [17:20:26]ProducePacketName [17:20:26]name=ofd_packets/00028990 [17:20:26]NVStorageSaveData ofd_packets/00028990 [17:20:26]File name is /storage/ofd_packets/00028990 [17:20:26]Write 302 bytes [17:20:26]NVStorageSaveData done [17:20:26]OFDSenderStorePacket done [17:20:26]KKMCreateOFDPacket done [17:20:26]NVStorageSaveData kkm_last_timestamp [17:20:26]File name is /storage/kkm_last_timestamp [17:20:26]Write 4 bytes [17:20:26]NVStorageSaveData done [17:20:26]ExternCall_PrintAddStr [17:20:26]wPrintStart [17:20:26]Write to MH i2c: 01 00 00 B5 51 06 [17:20:26]Write i2c OK [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: 01 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: 01 07 00 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: 01 07 00 B5 51 00 00 00 00 00 FF 0F 1B [17:20:26]RasterBufferAndPrint [17:20:26]line Счет N : (1)347352 [17:20:26]line ИНН: 02508201610067 [17:20:26]line Контрольно-Кассовый Чек [17:20:26]line ПРОДАЖА [17:20:26]line ТРК (МРК, ГНК) : 41 [17:20:26]line Товар: 2710124130 [17:20:26]line SUPER-92-К-5 [17:20:26]line 15.320 * 65.30 [17:20:26]line = 1000.40 [17:20:26]line НДС 12% НСП 1% [17:20:26]line > о реализуемом товаре [17:20:26]line ОКРУГЛЕНИЕ: -0.40 [17:20:26]line ИТОГО: 1000.00 [17:20:26]line Внесено: 1000.00 [17:20:26]line СДАЧА: 0.00 [17:20:26]line НСП 1% : 8.85 [17:20:26]line НДС 12% : 106.24 [17:20:26]line Наличными: 1000.00 [17:20:26]line Безнал.: 0.00 [17:20:26]line Место: АЗС № 108 "Партнер Нефть" [17:20:26]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:20:26]line СНО: Общий режим [17:20:26]line Чек 197 13.04.2024 17:20 [17:20:26]line Смена: 115 ФФД: 1.0 [17:20:26]line ЗНМ: 0300000027 [17:20:26]line РНМ: 0000138879044617 [17:20:26]line Версия ККМ: 001 [17:20:26]line ФМ: 0000000000963154 [17:20:26]line ФД: 28990 [17:20:26]line ФПД: 134701540575742 [17:20:26]line 1/tax-web-control/client/api/v1/ticket?date=20240413T172030&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28990&fm=134701540575742&tin=02508201610067®Number=0000138879044617&sum=100000 [17:20:26]OFD Sender: Processing packet 28990 [packets to send 8, broken 7] [17:20:26]ProducePacketName [17:20:26]name=ofd_packets/00028990 [17:20:26]OFD Sender: To server: pG, [17:20:26]CommunicateWithHost lk.salyk.kg:30040 [17:20:26]ConnectInit lk.salyk.kg [17:20:26]written 0, free lines is 4095 [17:20:26]Connected sock=10 [17:20: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 31 35 34 10 01 00 00 92 11 08 01 86 3F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 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 DE BE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3E 71 00 00 35 04 06 00 7A 82 A5 7A 09 FE B0 2D 83 98 7D 96 8C 45 [17:20:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 63 39 47 00 4D 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 31 35 34 10 04 04 00 3E 71 00 00 F4 03 04 00 85 69 1A 66 B6 04 01 00 00 6E 97 78 B8 FB 4B ED 3F [17:20:27]CommunicateWithHost err = 0 [17:20:27]CheckOFDResponse [17:20:27]1017 (14) - 77093643461234 [17:20:27]1041 (16) - 0000000000963154 [17:20:27]1040 (4) - 28990 [17:20:27]1012 (4) - 13.04.2024 11:16 [17:20:27]1206 (1) - 0 [17:20:27]OFD Sender: Remove packet 28990 [17:20:27]ProducePacketName [17:20:27]name=ofd_packets/00028990 [17:20:27]NVStorageDeleteData [17:20:27]Write to MH i2c: 01 00 00 DF 51 30 [17:20:27]Write i2c OK [17:20:27]MH_I2C_Read... [17:20:27]Read from MH i2c: 01 [17:20:27]MH_I2C_Read... [17:20:27]Read from MH i2c: 01 07 00 [17:20:27]MH_I2C_Read... [17:20:27]Read from MH i2c: 01 07 00 DF 51 00 00 00 00 00 CF 0C 12 [17:20:27]RasterBufferAndPrint [17:20:27]line [17:20:27]line [17:20:27]line [17:20:27]line [17:20:27]line [17:20:27]written 0, free lines is 3286 [17:20:27]MH_Cut [17:20:27]Write to MH i2c: D1 01 00 E6 51 01 09 [17:20:27]Write i2c OK [17:20:27]MH_I2C_Read... [17:20:27]Read from MH i2c: D1 [17:20:27]MH_I2C_Read... [17:20:27]Read from MH i2c: D1 01 00 [17:20:27]MH_I2C_Read... [17:20:27]Read from MH i2c: D1 01 00 E6 51 00 08 [17:20:27]Write to MH i2c: 01 00 00 E7 51 38 [17:20:27]Write i2c OK [17:20:27]MH_I2C_Read... [17:20:27]OFD Sender: No OFD packet to send [17:20:28]*** Cut start [17:20:28]*** Partial cut [17:20:28]*** CUTSNS_PIN = 1 [17:20:28]*** CUTSNS_PIN = 0 [17:20:28]*** Brake cut motor [17:20:28]Read from MH i2c: 01 [17:20:28]MH_I2C_Read... [17:20:28]*** Stop cut motor [17:20:28]*** Cut end [17:20:28]Read from MH i2c: 01 07 00 [17:20:28]MH_I2C_Read... [17:20:28]Read from MH i2c: 01 07 00 E7 51 00 00 00 00 00 FF 0F 4D [17:20:28]process_action close_receipt done [17:20:28]requested_data is exist [17:20:28]produce_requested_data [17:20:28]requested_item fm.sn is exist - process it [17:20:28]wFMCommunicate request_size=4 [17:20:28]MH_SAM_APDU [17:20:28]CAPDU: 80 11 00 00 [17:20:28]Write to MH i2c: E2 08 00 E8 51 80 11 00 00 00 00 00 00 B3 [17:20:28]Write i2c OK [17:20:28]MH_I2C_Read... [17:20:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:28]Read from MH i2c: E2 [17:20:28]MH_I2C_Read... [17:20:28]Read from MH i2c: E2 17 00 [17:20:28]MH_I2C_Read... [17:20:28]Read from MH i2c: E2 17 00 E8 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 02 [17:20:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:20:28]wFMCommunicate OK [17:20:28]requested_item fd.num is exist - process it [17:20:28]SAM_PROTO_GetFieldsCounters [17:20:28]wFMCommunicate request_size=4 [17:20:28]MH_SAM_APDU [17:20:28]CAPDU: 80 13 00 00 [17:20:28]Write to MH i2c: E2 08 00 E9 51 80 13 00 00 00 00 00 00 B6 [17:20:28]Write i2c OK [17:20:28]MH_I2C_Read... [17:20:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:28]Read from MH i2c: E2 [17:20:28]MH_I2C_Read... [17:20:28]Read from MH i2c: E2 62 00 [17:20:28]MH_I2C_Read... [17:20:28]Read from MH i2c: E2 62 00 E9 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3E 71 00 00 0E 04 04 00 73 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 65 [17:20: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3E 71 00 00 0E 04 04 00 73 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 [17:20:28]wFMCommunicate OK [17:20:28]SAM_PROTO_GetFieldsCounters done [17:20:28]requested_item shift.num is exist - process it [17:20:28]requested_item shift.opened is exist - process it [17:20:28]req_shift_opened [17:20:28]FM_GetShiftState [17:20:28]SAM_PROTO_GetShiftState [17:20:28]wFMCommunicate request_size=4 [17:20:28]MH_SAM_APDU [17:20:28]CAPDU: 80 13 01 00 [17:20:28]Write to MH i2c: E2 08 00 EA 51 80 13 01 00 00 00 00 00 B8 [17:20:28]Write i2c OK [17:20:28]MH_I2C_Read... [17:20:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:29]Read from MH i2c: E2 [17:20:29]MH_I2C_Read... [17:20:29]Read from MH i2c: E2 0E 00 [17:20:29]MH_I2C_Read... [17:20:29]Read from MH i2c: E2 0E 00 EA 51 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D1 [17:20:29]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:20:29]wFMCommunicate OK [17:20:29]SAM_PROTO_GetShiftState done [17:20:29]FM_GetShiftState done [17:20:29]req_shift_opened done [17:20:29]requested_item shift.open_date is exist - process it [17:20:29]req_shift_open_date [17:20:29]req_shift_open_date done [17:20:29]produce_requested_data done [17:20:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28990,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [17:20:29]process_action_free close_receipt [17:20:29]json_value_free [17:20:29]json_value_free done [17:20:29]process_json_proto returns [17:20:29]Send response to host [17:20:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28990,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [17:20:29]free response buf [17:20:29]execute_script done [17:20:29]execute_script returns [17:20:29]free content buf [17:20:29]Sock 7.Close socket [17:20:29]Sock 7.Thread stoped [17:20:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:42]OFD Sender: No OFD packet to send [17:20:47]OFD Sender: No OFD packet to send [17:20:52]OFD Sender: No OFD packet to send [17:20:57]OFD Sender: No OFD packet to send [17:21:02]OFD Sender: No OFD packet to send [17:21:07]OFD Sender: No OFD packet to send [17:21:12]OFD Sender: No OFD packet to send [17:21:17]OFD Sender: No OFD packet to send [17:21:22]OFD Sender: No OFD packet to send [17:21:27]OFD Sender: No OFD packet to send [17:21:32]OFD Sender: No OFD packet to send [17:21:37]OFD Sender: No OFD packet to send [17:21:42]OFD Sender: No OFD packet to send [17:21:47]OFD Sender: No OFD packet to send [17:21:52]OFD Sender: No OFD packet to send [17:21:57]OFD Sender: No OFD packet to send [17:22:02]OFD Sender: No OFD packet to send [17:22:07]OFD Sender: No OFD packet to send [17:22:12]OFD Sender: No OFD packet to send [17:22:17]OFD Sender: No OFD packet to send [17:22:22]OFD Sender: No OFD packet to send [17:22:27]OFD Sender: No OFD packet to send [17:22:32]OFD Sender: No OFD packet to send [17:22:37]OFD Sender: No OFD packet to send [17:22:42]OFD Sender: No OFD packet to send [17:22:47]OFD Sender: No OFD packet to send [17:22:52]OFD Sender: No OFD packet to send [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:12]OFD Sender: No OFD packet to send [17:23:17]OFD Sender: No OFD packet to send [17:23:22]OFD Sender: No OFD packet to send [17:23:27]OFD Sender: No OFD packet to send [17:23:32]OFD Sender: No OFD packet to send [17:23:37]OFD Sender: No OFD packet to send [17:23:42]OFD Sender: No OFD packet to send [17:23:47]OFD Sender: No OFD packet to send [17:23:52]OFD Sender: No OFD packet to send [17:23:57]OFD Sender: No OFD packet to send [17:24:02]OFD Sender: No OFD packet to send [17:24:07]OFD Sender: No OFD packet to send [17:24:12]OFD Sender: No OFD packet to send [17:24:17]OFD Sender: No OFD packet to send [17:24:22]OFD Sender: No OFD packet to send [17:24:27]OFD Sender: No OFD packet to send [17:24:32]OFD Sender: No OFD packet to send [17:24:37]OFD Sender: No OFD packet to send [17:24:42]OFD Sender: No OFD packet to send [17:24:47]OFD Sender: No OFD packet to send [17:24:52]OFD Sender: No OFD packet to send [17:24:57]OFD Sender: No OFD packet to send [17:25:02]OFD Sender: No OFD packet to send [17:25:07]OFD Sender: No OFD packet to send [17:25:12]OFD Sender: No OFD packet to send [17:25:17]OFD Sender: No OFD packet to send [17:25:22]OFD Sender: No OFD packet to send [17:25:27]OFD Sender: No OFD packet to send [17:25:32]OFD Sender: No OFD packet to send [17:25:37]OFD Sender: No OFD packet to send [17:25:42]OFD Sender: No OFD packet to send [17:25:47]OFD Sender: No OFD packet to send [17:25:52]OFD Sender: No OFD packet to send [17:25:57]OFD Sender: No OFD packet to send [17:26:02]OFD Sender: No OFD packet to send [17:26:07]OFD Sender: No OFD packet to send [17:26:12]OFD Sender: No OFD packet to send [17:26:17]OFD Sender: No OFD packet to send [17:26:22]OFD Sender: No OFD packet to send [17:26:27]OFD Sender: No OFD packet to send [17:26:32]OFD Sender: No OFD packet to send [17:26:37]OFD Sender: No OFD packet to send [17:26:42]OFD Sender: No OFD packet to send [17:26:47]OFD Sender: No OFD packet to send [17:26:52]OFD Sender: No OFD packet to send [17:26:57]OFD Sender: No OFD packet to send [17:27:02]OFD Sender: No OFD packet to send [17:27:07]OFD Sender: No OFD packet to send [17:27:12]OFD Sender: No OFD packet to send [17:27:17]OFD Sender: No OFD packet to send [17:27:22]OFD Sender: No OFD packet to send [17:27:27]OFD Sender: No OFD packet to send [17:27:32]OFD Sender: No OFD packet to send [17:27:35]accept exits with 9 [17:27:35]New connection [17:27:35]New thread 3066928484 created [17:27:35]Thread 3066785124 joined [17:27:35]Waiting for new connection... [17:27:35] Sock 9.Parse request [17:27:35]Sock 9.Check first char [17:27:35]Sock 9.First char is OK [17:27:35]request: POST /json_proto HTTP/1.0 [17:27:35]Method: POST [17:27:35]URL: /json_proto [17:27:35]Method is POST - this is cgi request [17:27:35]url: /json_proto [17:27:35]query_string will be loaded in cgi processing [17:27:35]execute_cgi json_proto POST (null) [17:27:35]execute_cgi path=json_proto method=POST [17:27:35]POST find Content-Length [17:27:35]Host: 172.17.33.3:8080 [17:27:35]Content-Length: 813 [17:27:35]Content-Type: application/json [17:27:35] [17:27:35]POST finish read [17:27:35]Found Content-Length = 813 [17:27:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 4.150, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:35]execute_script... [17:27: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)347354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 4.150, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:35]POST & json_proto [17:27:35]process_json_proto [17:27:35]json parsed OK: [17:27:35]protocol is kg_v1.0 [17:27:35]action value=close_receipt [17:27:35]process_action close_receipt [17:27:35]cmd_close_receipt [17:27:35]MH_GetDate [17:27:35]Write to MH i2c: F0 00 00 EB 51 2B [17:27:35]Write i2c OK [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: F0 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: F0 09 00 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: F0 09 00 EB 51 00 8D C0 1A 66 23 5B 8F 65 73 [17:27:35]GetLastDocTimeStamp 1713028830 [17:27:35]current date 1713029261 [17:27:35]FM_GetShiftState [17:27:35]SAM_PROTO_GetShiftState [17:27:35]wFMCommunicate request_size=4 [17:27:35]MH_SAM_APDU [17:27:35]CAPDU: 80 13 01 00 [17:27:35]Write to MH i2c: E2 08 00 EC 51 80 13 01 00 00 00 00 00 BA [17:27:35]Write i2c OK [17:27:35]MH_I2C_Read... [17:27:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:35]Read from MH i2c: E2 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 0E 00 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 0E 00 EC 51 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D3 [17:27:35]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:27:35]wFMCommunicate OK [17:27:35]SAM_PROTO_GetShiftState done [17:27:35]FM_GetShiftState done [17:27:35]opened in 1712967615 [17:27:35]opened+sec_in_day 1713054015 [17:27:35]quantity*price = 30046 [17:27:35]sum+1 = 30047 [17:27:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.46 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 0.00 Безнал.: 300.46 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 198 13.04.2024 17:27 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 28991 ФПД: 8480240101437 1/tax-web-control/client/api/v1/ticket?date=20240413T172741&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28991&fm=8480240101437&tin=02508201610067®Number=0000138879044617&sum=30046 [17:27:36]StoreToDocumentArchive [17:27:36]shift 115 fd 28991 [17:27:36]save to /storage/0115/doc_00028991 [17:27:36]save last doc name /storage/0115/doc_00028991 to /storage/kkm_last_doc_name [17:27:36]save OK [17:27:36]Clear old archive folders... [17:27:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:27:36]tlvbuf is 011EAC40 [17:27:36]SAM_PROTO_ClearQueue [17:27:36]wFMCommunicate request_size=4 [17:27:36]MH_SAM_APDU [17:27:36]CAPDU: 80 09 00 00 [17:27:36]Write to MH i2c: E2 08 00 F9 51 80 09 00 00 00 00 00 00 BC [17:27:36]Write i2c OK [17:27:36]MH_I2C_Read... [17:27:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:36]Read from MH i2c: E2 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: E2 03 00 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: E2 03 00 F9 51 00 90 00 BE [17:27:36]RAPDU: 90 00 [17:27:36]wFMCommunicate OK [17:27:36]SAM_PROTO_ClearQueue done [17:27:36]KKMCreateOFDPacket [17:27:36]OFDProtocolAddRootSTLVToBuf [17:27:36]FM_MakeSignedData [17:27:36]FM_MakeSignedData [17:27:36]SAM_PROTO_SignData [17:27:36]wFMCommunicate request_size=4 [17:27:36]MH_SAM_APDU [17:27:36]CAPDU: 80 0D 01 02 [17:27:36]Write to MH i2c: E2 08 00 FA 51 80 0D 01 02 00 00 00 00 C4 [17:27:36]Write i2c OK [17:27:36]MH_I2C_Read... [17:27:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:36]Read from MH i2c: E2 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: E2 03 00 [17:27:36]MH_I2C_Read... [17:27:36]Read from MH i2c: E2 03 00 FA 51 00 90 00 BF [17:27:36]RAPDU: 90 00 [17:27:36]wFMCommunicate OK [17:27:36]wFMCommunicate request_size=255 [17:27:36]MH_SAM_APDU [17:27:36]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 36 10 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 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 5E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 8D C0 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3F 71 00 00 35 04 06 00 07 B6 75 B2 [17:27:36]Write to MH i2c: E2 02 01 FB 51 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 36 10 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 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 5E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 8D C0 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3F 71 00 00 35 04 06 00 07 B6 75 B2 00 00 89 [17:27:36]Write i2c OK [17:27:36]MH_I2C_Read... [17:27:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:37]Read from MH i2c: E2 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: E2 03 00 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: E2 03 00 FB 51 00 90 00 C0 [17:27:37]RAPDU: 90 00 [17:27:37]wFMCommunicate OK [17:27:37]wFMCommunicate request_size=7 [17:27:37]MH_SAM_APDU [17:27:37]CAPDU: 80 0D 02 02 02 E8 3D [17:27:37]Write to MH i2c: E2 0A 00 FC 51 80 0D 02 02 02 00 E8 3D 00 00 F0 [17:27:37]Write i2c OK [17:27:37]MH_I2C_Read... [17:27:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:37]Read from MH i2c: E2 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: E2 03 00 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: E2 03 00 FC 51 00 90 00 C1 [17:27:37]RAPDU: 90 00 [17:27:37]wFMCommunicate OK [17:27:37]wFMCommunicate request_size=4 [17:27:37]MH_SAM_APDU [17:27:37]CAPDU: 80 0D 03 02 [17:27:37]Write to MH i2c: E2 08 00 FD 51 80 0D 03 02 00 00 00 00 C9 [17:27:37]Write i2c OK [17:27:37]MH_I2C_Read... [17:27:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:37]Read from MH i2c: E2 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: E2 0B 00 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: E2 0B 00 FD 51 00 0A A5 E8 B3 D8 80 E1 9D 90 00 EA [17:27:37]RAPDU: 0A A5 E8 B3 D8 80 E1 9D 90 00 [17:27:37]wFMCommunicate OK [17:27:37]SAM_PROTO_SignData done [17:27:37]FM_MakeSignedData done [17:27:37]CreateOFDProtocolMessage [17:27:37]wFMCommunicate request_size=4 [17:27:37]MH_SAM_APDU [17:27:37]CAPDU: 80 11 00 00 [17:27:37]Write to MH i2c: E2 08 00 FE 51 80 11 00 00 00 00 00 00 C9 [17:27:37]Write i2c OK [17:27:37]MH_I2C_Read... [17:27:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:37]Read from MH i2c: E2 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: E2 17 00 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: E2 17 00 FE 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 18 [17:27:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:27:37]wFMCommunicate OK [17:27:37]CreateOFDProtocolMessage done [17:27:37]OFDSenderStorePacket 28991 [17:27:37]StoreOFDPacket docnum=28991 [17:27:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 7B 8E 04 01 2E 3C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 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 5E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 8D C0 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3F 71 00 00 35 04 06 00 07 B6 75 B2 E8 3D 0A A5 E8 B3 D8 80 E1 9D [17:27:37]CheckFolder [17:27:37]dirname=/storage/ofd_packets [17:27:37]CheckFolder done [17:27:37]ProducePacketName [17:27:37]name=ofd_packets/00028991 [17:27:37]NVStorageSaveData ofd_packets/00028991 [17:27:37]File name is /storage/ofd_packets/00028991 [17:27:37]Write 298 bytes [17:27:37]NVStorageSaveData done [17:27:37]OFDSenderStorePacket done [17:27:37]KKMCreateOFDPacket done [17:27:37]NVStorageSaveData kkm_last_timestamp [17:27:37]File name is /storage/kkm_last_timestamp [17:27:37]Write 4 bytes [17:27:37]NVStorageSaveData done [17:27:37]ExternCall_PrintAddStr [17:27:37]wPrintStart [17:27:37]Write to MH i2c: 01 00 00 FF 51 50 [17:27:37]Write i2c OK [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: 01 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: 01 07 00 [17:27:37]MH_I2C_Read... [17:27:37]Read from MH i2c: 01 07 00 FF 51 00 00 00 00 00 FF 0F 65 [17:27:37]RasterBufferAndPrint [17:27:37]line Счет N : (1)347354 [17:27:37]line ИНН: 02508201610067 [17:27:37]line Контрольно-Кассовый Чек [17:27:37]line ПРОДАЖА [17:27:37]line ТРК (МРК, ГНК) : 21 [17:27:37]line Товар: 2710194210 [17:27:37]line ДТ-К-5 [17:27:37]line 4.150 * 72.40 [17:27:37]line = 300.46 [17:27:37]line НДС 12% НСП 1% [17:27:37]line > о реализуемом товаре [17:27:37]line ИТОГО: 300.46 [17:27:37]line НСП 1% : 2.66 [17:27:37]line НДС 12% : 31.91 [17:27:37]line Наличными: 0.00 [17:27:37]line Безнал.: 300.46 [17:27:37]line Место: АЗС № 108 "Партнер Нефть" [17:27:37]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:27:37]line СНО: Общий режим [17:27:37]line Чек 198 13.04.2024 17:27 [17:27:37]line Смена: 115 ФФД: 1.0 [17:27:37]line ЗНМ: 0300000027 [17:27:37]line РНМ: 0000138879044617 [17:27:37]line Версия ККМ: 001 [17:27:37]line Платежная система: Бакай Банк [17:27:37]line ФМ: 0000000000963154 [17:27:37]line ФД: 28991 [17:27:37]line ФПД: 8480240101437 [17:27:37]line 1/tax-web-control/client/api/v1/ticket?date=20240413T172741&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28991&fm=8480240101437&tin=02508201610067®Number=0000138879044617&sum=30046 [17:27:37]OFD Sender: Processing packet 28991 [packets to send 8, broken 7] [17:27:37]ProducePacketName [17:27:37]name=ofd_packets/00028991 [17:27:37]OFD Sender: To server: pG, [17:27:37]CommunicateWithHost lk.salyk.kg:30040 [17:27:37]ConnectInit lk.salyk.kg [17:27:37]written 0, free lines is 4095 [17:27:37]Connected sock=10 [17:27: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 31 35 34 0C 01 00 00 7B 8E 04 01 2E 3C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 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 5E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 8D C0 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 3F 71 00 00 35 04 06 00 07 B6 75 B2 E8 3D 0A A5 E8 B3 D8 80 E1 9D [17:27:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 85 FE 47 00 DC 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 31 35 34 10 04 04 00 3F 71 00 00 F4 03 04 00 33 6B 1A 66 B6 04 01 00 00 EE 75 F3 EE 52 EB 0E 96 [17:27:37]CommunicateWithHost err = 0 [17:27:37]CheckOFDResponse [17:27:37]1017 (14) - 77093643461234 [17:27:37]1041 (16) - 0000000000963154 [17:27:37]1040 (4) - 28991 [17:27:37]1012 (4) - 13.04.2024 11:23 [17:27:37]1206 (1) - 0 [17:27:37]OFD Sender: Remove packet 28991 [17:27:37]ProducePacketName [17:27:37]name=ofd_packets/00028991 [17:27:37]NVStorageDeleteData [17:27:38]Write to MH i2c: 01 00 00 28 52 7A [17:27:38]Write i2c OK [17:27:38]MH_I2C_Read... [17:27:38]Read from MH i2c: 01 [17:27:38]MH_I2C_Read... [17:27:38]Read from MH i2c: 01 07 00 [17:27:38]MH_I2C_Read... [17:27:38]Read from MH i2c: 01 07 00 28 52 00 00 00 00 00 E7 0C 74 [17:27:38]RasterBufferAndPrint [17:27:38]line [17:27:38]line [17:27:38]line [17:27:38]line [17:27:38]line [17:27:38]written 0, free lines is 3312 [17:27:38]MH_Cut [17:27:38]Write to MH i2c: D1 01 00 2F 52 01 53 [17:27:38]Write i2c OK [17:27:38]MH_I2C_Read... [17:27:38]Read from MH i2c: D1 [17:27:38]MH_I2C_Read... [17:27:38]Read from MH i2c: D1 01 00 [17:27:38]MH_I2C_Read... [17:27:38]Read from MH i2c: D1 01 00 2F 52 00 52 [17:27:38]Write to MH i2c: 01 00 00 30 52 82 [17:27:38]Write i2c OK [17:27:38]MH_I2C_Read... [17:27:38]OFD Sender: No OFD packet to send [17:27:38]*** Cut start [17:27:38]*** Partial cut [17:27:38]*** CUTSNS_PIN = 1 [17:27:39]*** CUTSNS_PIN = 0 [17:27:39]*** Brake cut motor [17:27:39]Read from MH i2c: 01 [17:27:39]MH_I2C_Read... [17:27:39]*** Stop cut motor [17:27:39]*** Cut end [17:27:39]Read from MH i2c: 01 07 00 [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: 01 07 00 30 52 00 00 00 00 00 FF 0F 97 [17:27:39]process_action close_receipt done [17:27:39]requested_data is exist [17:27:39]produce_requested_data [17:27:39]requested_item fm.sn is exist - process it [17:27:39]wFMCommunicate request_size=4 [17:27:39]MH_SAM_APDU [17:27:39]CAPDU: 80 11 00 00 [17:27:39]Write to MH i2c: E2 08 00 31 52 80 11 00 00 00 00 00 00 FD [17:27:39]Write i2c OK [17:27:39]MH_I2C_Read... [17:27:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:39]Read from MH i2c: E2 [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: E2 17 00 [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: E2 17 00 31 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4C [17:27:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:27:39]wFMCommunicate OK [17:27:39]requested_item fd.num is exist - process it [17:27:39]SAM_PROTO_GetFieldsCounters [17:27:39]wFMCommunicate request_size=4 [17:27:39]MH_SAM_APDU [17:27:39]CAPDU: 80 13 00 00 [17:27:39]Write to MH i2c: E2 08 00 32 52 80 13 00 00 00 00 00 00 00 [17:27:39]Write i2c OK [17:27:39]MH_I2C_Read... [17:27:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:39]Read from MH i2c: E2 [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: E2 62 00 [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: E2 62 00 32 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3F 71 00 00 0E 04 04 00 73 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 B3 [17:27: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 3F 71 00 00 0E 04 04 00 73 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 [17:27:39]wFMCommunicate OK [17:27:39]SAM_PROTO_GetFieldsCounters done [17:27:39]requested_item shift.num is exist - process it [17:27:39]requested_item shift.opened is exist - process it [17:27:39]req_shift_opened [17:27:39]FM_GetShiftState [17:27:39]SAM_PROTO_GetShiftState [17:27:39]wFMCommunicate request_size=4 [17:27:39]MH_SAM_APDU [17:27:39]CAPDU: 80 13 01 00 [17:27:39]Write to MH i2c: E2 08 00 33 52 80 13 01 00 00 00 00 00 02 [17:27:39]Write i2c OK [17:27:39]MH_I2C_Read... [17:27:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:39]Read from MH i2c: E2 [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: E2 0E 00 [17:27:39]MH_I2C_Read... [17:27:39]Read from MH i2c: E2 0E 00 33 52 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 1B [17:27:39]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:27:39]wFMCommunicate OK [17:27:39]SAM_PROTO_GetShiftState done [17:27:39]FM_GetShiftState done [17:27:39]req_shift_opened done [17:27:39]requested_item shift.open_date is exist - process it [17:27:39]req_shift_open_date [17:27:39]req_shift_open_date done [17:27:39]produce_requested_data done [17:27:39]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28991,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [17:27:39]process_action_free close_receipt [17:27:39]json_value_free [17:27:39]json_value_free done [17:27:39]process_json_proto returns [17:27:39]Send response to host [17:27:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28991,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [17:27:39]free response buf [17:27:39]execute_script done [17:27:39]execute_script returns [17:27:39]free content buf [17:27:39]Sock 9.Close socket [17:27:39]Sock 9.Thread stoped [17:27:43]OFD Sender: No OFD packet to send [17:27:44]accept exits with 7 [17:27:44]New connection [17:27:44]New thread 3066785124 created [17:27:44]Thread 3066928484 joined [17:27:44]Waiting for new connection... [17:27:44] Sock 7.Parse request [17:27:44]Sock 7.Check first char [17:27:44]Sock 7.First char is OK [17:27:44]request: POST /json_proto HTTP/1.0 [17:27:44]Method: POST [17:27:44]URL: /json_proto [17:27:44]Method is POST - this is cgi request [17:27:44]url: /json_proto [17:27:44]query_string will be loaded in cgi processing [17:27:44]execute_cgi json_proto POST (null) [17:27:44]execute_cgi path=json_proto method=POST [17:27:44]POST find Content-Length [17:27:44]Host: 172.17.33.3:8080 [17:27:44]Content-Length: 677 [17:27:44]Content-Type: application/json [17:27:44] [17:27:44]POST finish read [17:27:44]Found Content-Length = 677 [17:27:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347355", "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" : 64.30, "quantity" : 4.670, "sum" : 300.28, "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:27:44]execute_script... [17:27: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)347355", "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" : 64.30, "quantity" : 4.670, "sum" : 300.28, "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:27:44]POST & json_proto [17:27:44]process_json_proto [17:27:44]json parsed OK: [17:27:44]protocol is kg_v1.0 [17:27:44]action value=close_receipt [17:27:44]process_action close_receipt [17:27:44]cmd_close_receipt [17:27:44]MH_GetDate [17:27:44]Write to MH i2c: F0 00 00 34 52 75 [17:27:44]Write i2c OK [17:27:44]MH_I2C_Read... [17:27:44]Read from MH i2c: F0 [17:27:44]MH_I2C_Read... [17:27:44]Read from MH i2c: F0 09 00 [17:27:44]MH_I2C_Read... [17:27:44]Read from MH i2c: F0 09 00 34 52 00 96 C0 1A 66 23 5B 8F 65 C6 [17:27:44]GetLastDocTimeStamp 1713029261 [17:27:44]current date 1713029270 [17:27:44]FM_GetShiftState [17:27:44]SAM_PROTO_GetShiftState [17:27:44]wFMCommunicate request_size=4 [17:27:44]MH_SAM_APDU [17:27:44]CAPDU: 80 13 01 00 [17:27:44]Write to MH i2c: E2 08 00 35 52 80 13 01 00 00 00 00 00 04 [17:27:44]Write i2c OK [17:27:44]MH_I2C_Read... [17:27:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:44]Read from MH i2c: E2 [17:27:44]MH_I2C_Read... [17:27:44]Read from MH i2c: E2 0E 00 [17:27:44]MH_I2C_Read... [17:27:44]Read from MH i2c: E2 0E 00 35 52 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 1D [17:27:44]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:27:44]wFMCommunicate OK [17:27:44]SAM_PROTO_GetShiftState done [17:27:44]FM_GetShiftState done [17:27:44]opened in 1712967615 [17:27:44]opened+sec_in_day 1713054015 [17:27:44]quantity*price = 30028 [17:27:44]sum+1 = 30029 [17:27:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 199 13.04.2024 17:27 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28992 ФПД: 186257075297214 1/tax-web-control/client/api/v1/ticket?date=20240413T172750&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28992&fm=186257075297214&tin=02508201610067®Number=0000138879044617&sum=30000 [17:27:45]StoreToDocumentArchive [17:27:45]shift 115 fd 28992 [17:27:45]save to /storage/0115/doc_00028992 [17:27:45]save last doc name /storage/0115/doc_00028992 to /storage/kkm_last_doc_name [17:27:45]save OK [17:27:45]Clear old archive folders... [17:27:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:27:45]tlvbuf is 011B7210 [17:27:45]SAM_PROTO_ClearQueue [17:27:45]wFMCommunicate request_size=4 [17:27:45]MH_SAM_APDU [17:27:45]CAPDU: 80 09 00 00 [17:27:45]Write to MH i2c: E2 08 00 42 52 80 09 00 00 00 00 00 00 06 [17:27:45]Write i2c OK [17:27:45]MH_I2C_Read... [17:27:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:45]Read from MH i2c: E2 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 03 00 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 03 00 42 52 00 90 00 08 [17:27:45]RAPDU: 90 00 [17:27:45]wFMCommunicate OK [17:27:45]SAM_PROTO_ClearQueue done [17:27:45]KKMCreateOFDPacket [17:27:45]OFDProtocolAddRootSTLVToBuf [17:27:45]FM_MakeSignedData [17:27:45]FM_MakeSignedData [17:27:45]SAM_PROTO_SignData [17:27:45]wFMCommunicate request_size=4 [17:27:45]MH_SAM_APDU [17:27:45]CAPDU: 80 0D 01 02 [17:27:45]Write to MH i2c: E2 08 00 43 52 80 0D 01 02 00 00 00 00 0E [17:27:45]Write i2c OK [17:27:45]MH_I2C_Read... [17:27:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:45]Read from MH i2c: E2 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 03 00 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 03 00 43 52 00 90 00 09 [17:27:45]RAPDU: 90 00 [17:27:45]wFMCommunicate OK [17:27:45]wFMCommunicate request_size=255 [17:27:45]MH_SAM_APDU [17:27: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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 96 C0 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 40 71 00 00 35 04 06 00 A9 [17:27:45]Write to MH i2c: E2 02 01 44 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 96 C0 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 40 71 00 00 35 04 06 00 A9 00 00 BD [17:27:45]Write i2c OK [17:27:45]MH_I2C_Read... [17:27:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:46]Read from MH i2c: E2 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 03 00 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 03 00 44 52 00 90 00 0A [17:27:46]RAPDU: 90 00 [17:27:46]wFMCommunicate OK [17:27:46]wFMCommunicate request_size=10 [17:27:46]MH_SAM_APDU [17:27:46]CAPDU: 80 0D 02 02 05 66 5A CF 5B BE [17:27:46]Write to MH i2c: E2 0D 00 45 52 80 0D 02 02 05 00 66 5A CF 5B BE 00 00 C3 [17:27:46]Write i2c OK [17:27:46]MH_I2C_Read... [17:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:46]Read from MH i2c: E2 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 03 00 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 03 00 45 52 00 90 00 0B [17:27:46]RAPDU: 90 00 [17:27:46]wFMCommunicate OK [17:27:46]wFMCommunicate request_size=4 [17:27:46]MH_SAM_APDU [17:27:46]CAPDU: 80 0D 03 02 [17:27:46]Write to MH i2c: E2 08 00 46 52 80 0D 03 02 00 00 00 00 13 [17:27:46]Write i2c OK [17:27:46]MH_I2C_Read... [17:27:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:46]Read from MH i2c: E2 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 0B 00 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 0B 00 46 52 00 48 A2 72 DA D9 EC 54 C3 90 00 26 [17:27:46]RAPDU: 48 A2 72 DA D9 EC 54 C3 90 00 [17:27:46]wFMCommunicate OK [17:27:46]SAM_PROTO_SignData done [17:27:46]FM_MakeSignedData done [17:27:46]CreateOFDProtocolMessage [17:27:46]wFMCommunicate request_size=4 [17:27:46]MH_SAM_APDU [17:27:46]CAPDU: 80 11 00 00 [17:27:46]Write to MH i2c: E2 08 00 47 52 80 11 00 00 00 00 00 00 13 [17:27:46]Write i2c OK [17:27:46]MH_I2C_Read... [17:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:46]Read from MH i2c: E2 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 17 00 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: E2 17 00 47 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 62 [17:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:27:46]wFMCommunicate OK [17:27:46]CreateOFDProtocolMessage done [17:27:46]OFDSenderStorePacket 28992 [17:27:46]StoreOFDPacket docnum=28992 [17:27:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B7 F6 07 01 40 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 96 C0 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 40 71 00 00 35 04 06 00 A9 66 5A CF 5B BE 48 A2 72 DA D9 EC 54 C3 [17:27:46]CheckFolder [17:27:46]dirname=/storage/ofd_packets [17:27:46]CheckFolder done [17:27:46]ProducePacketName [17:27:46]name=ofd_packets/00028992 [17:27:46]NVStorageSaveData ofd_packets/00028992 [17:27:46]File name is /storage/ofd_packets/00028992 [17:27:46]Write 301 bytes [17:27:46]NVStorageSaveData done [17:27:46]OFDSenderStorePacket done [17:27:46]KKMCreateOFDPacket done [17:27:46]NVStorageSaveData kkm_last_timestamp [17:27:46]File name is /storage/kkm_last_timestamp [17:27:46]Write 4 bytes [17:27:46]NVStorageSaveData done [17:27:46]ExternCall_PrintAddStr [17:27:46]wPrintStart [17:27:46]Write to MH i2c: 01 00 00 48 52 9A [17:27:46]Write i2c OK [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: 01 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: 01 07 00 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: 01 07 00 48 52 00 00 00 00 00 FF 0F AF [17:27:46]RasterBufferAndPrint [17:27:46]line Счет N : (1)347355 [17:27:46]line ИНН: 02508201610067 [17:27:46]line Контрольно-Кассовый Чек [17:27:46]line ПРОДАЖА [17:27:46]line ТРК (МРК, ГНК) : 32 [17:27:46]line Товар: 2710124130 [17:27:46]line Аи-92-К-5 [17:27:46]line 4.670 * 64.30 [17:27:46]line = 300.28 [17:27:46]line НДС 12% НСП 1% [17:27:46]line > о реализуемом товаре [17:27:46]line ОКРУГЛЕНИЕ: -0.28 [17:27:46]line ИТОГО: 300.00 [17:27:46]line Внесено: 300.00 [17:27:46]line СДАЧА: 0.00 [17:27:46]line НСП 1% : 2.66 [17:27:46]line НДС 12% : 31.89 [17:27:46]line Наличными: 300.00 [17:27:46]line Безнал.: 0.00 [17:27:46]line Место: АЗС № 108 "Партнер Нефть" [17:27:46]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:27:46]line СНО: Общий режим [17:27:46]line Чек 199 13.04.2024 17:27 [17:27:46]line Смена: 115 ФФД: 1.0 [17:27:46]line ЗНМ: 0300000027 [17:27:46]line РНМ: 0000138879044617 [17:27:46]line Версия ККМ: 001 [17:27:46]line ФМ: 0000000000963154 [17:27:46]line ФД: 28992 [17:27:46]line ФПД: 186257075297214 [17:27:46]line 1/tax-web-control/client/api/v1/ticket?date=20240413T172750&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28992&fm=186257075297214&tin=02508201610067®Number=0000138879044617&sum=30000 [17:27:46]OFD Sender: Processing packet 28992 [packets to send 8, broken 7] [17:27:46]ProducePacketName [17:27:46]name=ofd_packets/00028992 [17:27:46]OFD Sender: To server: pG, [17:27:46]CommunicateWithHost lk.salyk.kg:30040 [17:27:46]ConnectInit lk.salyk.kg [17:27:46]written 0, free lines is 4095 [17:27:46]Connected sock=10 [17:27: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 31 35 34 0F 01 00 00 B7 F6 07 01 40 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 96 C0 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 40 71 00 00 35 04 06 00 A9 66 5A CF 5B BE 48 A2 72 DA D9 EC 54 C3 [17:27:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 FC CA 47 00 8E 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 31 35 34 10 04 04 00 40 71 00 00 F4 03 04 00 3C 6B 1A 66 B6 04 01 00 00 6B 14 77 45 BA E8 EB 66 [17:27:46]CommunicateWithHost err = 0 [17:27:46]CheckOFDResponse [17:27:46]1017 (14) - 77093643461234 [17:27:46]1041 (16) - 0000000000963154 [17:27:46]1040 (4) - 28992 [17:27:46]1012 (4) - 13.04.2024 11:23 [17:27:46]1206 (1) - 0 [17:27:46]OFD Sender: Remove packet 28992 [17:27:46]ProducePacketName [17:27:46]name=ofd_packets/00028992 [17:27:46]NVStorageDeleteData [17:27:46]Write to MH i2c: 01 00 00 72 52 C4 [17:27:46]Write i2c OK [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: 01 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: 01 07 00 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: 01 07 00 72 52 00 00 00 00 00 D7 0C AE [17:27:46]RasterBufferAndPrint [17:27:46]line [17:27:46]line [17:27:46]line [17:27:46]line [17:27:46]line [17:27:46]written 0, free lines is 3297 [17:27:46]MH_Cut [17:27:46]Write to MH i2c: D1 01 00 79 52 01 9D [17:27:46]Write i2c OK [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: D1 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: D1 01 00 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: D1 01 00 79 52 00 9C [17:27:46]Write to MH i2c: 01 00 00 7A 52 CC [17:27:46]Write i2c OK [17:27:46]MH_I2C_Read... [17:27:47]OFD Sender: No OFD packet to send [17:27:47]*** Cut start [17:27:47]*** Partial cut [17:27:47]*** CUTSNS_PIN = 1 [17:27:47]*** CUTSNS_PIN = 0 [17:27:48]*** Brake cut motor [17:27:48]Read from MH i2c: 01 [17:27:48]MH_I2C_Read... [17:27:48]*** Stop cut motor [17:27:48]*** Cut end [17:27:48]Read from MH i2c: 01 07 00 [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: 01 07 00 7A 52 00 00 00 00 00 FF 0F E1 [17:27:48]process_action close_receipt done [17:27:48]requested_data is exist [17:27:48]produce_requested_data [17:27:48]requested_item fm.sn is exist - process it [17:27:48]wFMCommunicate request_size=4 [17:27:48]MH_SAM_APDU [17:27:48]CAPDU: 80 11 00 00 [17:27:48]Write to MH i2c: E2 08 00 7B 52 80 11 00 00 00 00 00 00 47 [17:27:48]Write i2c OK [17:27:48]MH_I2C_Read... [17:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:48]Read from MH i2c: E2 [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: E2 17 00 [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: E2 17 00 7B 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 96 [17:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:27:48]wFMCommunicate OK [17:27:48]requested_item fd.num is exist - process it [17:27:48]SAM_PROTO_GetFieldsCounters [17:27:48]wFMCommunicate request_size=4 [17:27:48]MH_SAM_APDU [17:27:48]CAPDU: 80 13 00 00 [17:27:48]Write to MH i2c: E2 08 00 7C 52 80 13 00 00 00 00 00 00 4A [17:27:48]Write i2c OK [17:27:48]MH_I2C_Read... [17:27:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:48]Read from MH i2c: E2 [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: E2 62 00 [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: E2 62 00 7C 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 40 71 00 00 0E 04 04 00 73 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 01 [17:27: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 40 71 00 00 0E 04 04 00 73 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 [17:27:48]wFMCommunicate OK [17:27:48]SAM_PROTO_GetFieldsCounters done [17:27:48]requested_item shift.num is exist - process it [17:27:48]requested_item shift.opened is exist - process it [17:27:48]req_shift_opened [17:27:48]FM_GetShiftState [17:27:48]SAM_PROTO_GetShiftState [17:27:48]wFMCommunicate request_size=4 [17:27:48]MH_SAM_APDU [17:27:48]CAPDU: 80 13 01 00 [17:27:48]Write to MH i2c: E2 08 00 7D 52 80 13 01 00 00 00 00 00 4C [17:27:48]Write i2c OK [17:27:48]MH_I2C_Read... [17:27:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:48]Read from MH i2c: E2 [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: E2 0E 00 [17:27:48]MH_I2C_Read... [17:27:48]Read from MH i2c: E2 0E 00 7D 52 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 65 [17:27:48]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:27:48]wFMCommunicate OK [17:27:48]SAM_PROTO_GetShiftState done [17:27:48]FM_GetShiftState done [17:27:48]req_shift_opened done [17:27:48]requested_item shift.open_date is exist - process it [17:27:48]req_shift_open_date [17:27:48]req_shift_open_date done [17:27:48]produce_requested_data done [17:27:48]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28992,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [17:27:48]process_action_free close_receipt [17:27:48]json_value_free [17:27:48]json_value_free done [17:27:48]process_json_proto returns [17:27:48]Send response to host [17:27:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28992,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [17:27:48]free response buf [17:27:48]execute_script done [17:27:48]execute_script returns [17:27:48]free content buf [17:27:48]Sock 7.Close socket [17:27:48]Sock 7.Thread stoped [17:27:52]OFD Sender: No OFD packet to send [17:27:57]OFD Sender: No OFD packet to send [17:28:02]OFD Sender: No OFD packet to send [17:28:07]OFD Sender: No OFD packet to send [17:28:12]OFD Sender: No OFD packet to send [17:28:17]OFD Sender: No OFD packet to send [17:28:22]OFD Sender: No OFD packet to send [17:28:27]OFD Sender: No OFD packet to send [17:28:32]OFD Sender: No OFD packet to send [17:28:37]OFD Sender: No OFD packet to send [17:28:42]OFD Sender: No OFD packet to send [17:28:47]OFD Sender: No OFD packet to send [17:28:52]OFD Sender: No OFD packet to send [17:28:57]OFD Sender: No OFD packet to send [17:29:02]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [17:30:16]accept exits with 9 [17:30:16]New connection [17:30:16]New thread 3066928484 created [17:30:16]Thread 3066785124 joined [17:30:16]Waiting for new connection... [17:30:16] Sock 9.Parse request [17:30:16]Sock 9.Check first char [17:30:16]Sock 9.First char is OK [17:30:16]request: POST /json_proto HTTP/1.0 [17:30:16]Method: POST [17:30:16]URL: /json_proto [17:30:16]Method is POST - this is cgi request [17:30:16]url: /json_proto [17:30:16]query_string will be loaded in cgi processing [17:30:16]execute_cgi json_proto POST (null) [17:30:16]execute_cgi path=json_proto method=POST [17:30:16]POST find Content-Length [17:30:16]Host: 172.17.33.3:8080 [17:30:16]Content-Length: 637 [17:30:16]Content-Type: application/json [17:30:16] [17:30:16]POST finish read [17:30:16]Found Content-Length = 637 [17:30:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347357", "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" : 72.40, "quantity" : 12.500, "sum" : 905.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 905.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:16]execute_script... [17:30:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347357", "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" : 72.40, "quantity" : 12.500, "sum" : 905.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 905.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:16]POST & json_proto [17:30:16]process_json_proto [17:30:16]json parsed OK: [17:30:16]protocol is kg_v1.0 [17:30:16]action value=close_receipt [17:30:16]process_action close_receipt [17:30:16]cmd_close_receipt [17:30:16]MH_GetDate [17:30:16]Write to MH i2c: F0 00 00 7E 52 BF [17:30:16]Write i2c OK [17:30:16]MH_I2C_Read... [17:30:16]Read from MH i2c: F0 [17:30:16]MH_I2C_Read... [17:30:16]Read from MH i2c: F0 09 00 [17:30:16]MH_I2C_Read... [17:30:16]Read from MH i2c: F0 09 00 7E 52 00 2E C1 1A 66 23 5B 8F 65 A9 [17:30:16]GetLastDocTimeStamp 1713029270 [17:30:16]current date 1713029422 [17:30:16]FM_GetShiftState [17:30:16]SAM_PROTO_GetShiftState [17:30:16]wFMCommunicate request_size=4 [17:30:16]MH_SAM_APDU [17:30:16]CAPDU: 80 13 01 00 [17:30:16]Write to MH i2c: E2 08 00 7F 52 80 13 01 00 00 00 00 00 4E [17:30:16]Write i2c OK [17:30:16]MH_I2C_Read... [17:30:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:17]Read from MH i2c: E2 [17:30:17]MH_I2C_Read... [17:30:17]Read from MH i2c: E2 0E 00 [17:30:17]MH_I2C_Read... [17:30:17]Read from MH i2c: E2 0E 00 7F 52 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 67 [17:30:17]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:30:17]wFMCommunicate OK [17:30:17]SAM_PROTO_GetShiftState done [17:30:17]FM_GetShiftState done [17:30:17]opened in 1712967615 [17:30:17]opened+sec_in_day 1713054015 [17:30:17]quantity*price = 90500 [17:30:17]sum+1 = 90501 [17:30:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 905.00 НСП 1% : 8.01 НДС 12% : 96.11 Наличными: 905.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 200 13.04.2024 17:30 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28993 ФПД: 249951805619910 1/tax-web-control/client/api/v1/ticket?date=20240413T173022&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28993&fm=249951805619910&tin=02508201610067®Number=0000138879044617&sum=90500 [17:30:18]StoreToDocumentArchive [17:30:18]shift 115 fd 28993 [17:30:18]save to /storage/0115/doc_00028993 [17:30:18]save last doc name /storage/0115/doc_00028993 to /storage/kkm_last_doc_name [17:30:18]save OK [17:30:18]Clear old archive folders... [17:30:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:30:18]tlvbuf is 011CE0F0 [17:30:18]SAM_PROTO_ClearQueue [17:30:18]wFMCommunicate request_size=4 [17:30:18]MH_SAM_APDU [17:30:18]CAPDU: 80 09 00 00 [17:30:18]Write to MH i2c: E2 08 00 8C 52 80 09 00 00 00 00 00 00 50 [17:30:18]Write i2c OK [17:30:18]MH_I2C_Read... [17:30:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:18]Read from MH i2c: E2 [17:30:18]MH_I2C_Read... [17:30:18]Read from MH i2c: E2 03 00 [17:30:18]MH_I2C_Read... [17:30:18]Read from MH i2c: E2 03 00 8C 52 00 90 00 52 [17:30:18]RAPDU: 90 00 [17:30:18]wFMCommunicate OK [17:30:18]SAM_PROTO_ClearQueue done [17:30:18]KKMCreateOFDPacket [17:30:18]OFDProtocolAddRootSTLVToBuf [17:30:18]FM_MakeSignedData [17:30:18]FM_MakeSignedData [17:30:18]SAM_PROTO_SignData [17:30:18]wFMCommunicate request_size=4 [17:30:18]MH_SAM_APDU [17:30:18]CAPDU: 80 0D 01 02 [17:30:18]Write to MH i2c: E2 08 00 8D 52 80 0D 01 02 00 00 00 00 58 [17:30:18]Write i2c OK [17:30:18]MH_I2C_Read... [17:30:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:18]Read from MH i2c: E2 [17:30:18]MH_I2C_Read... [17:30:18]Read from MH i2c: E2 03 00 [17:30:18]MH_I2C_Read... [17:30:18]Read from MH i2c: E2 03 00 8D 52 00 90 00 53 [17:30:18]RAPDU: 90 00 [17:30:18]wFMCommunicate OK [17:30:18]wFMCommunicate request_size=255 [17:30:18]MH_SAM_APDU [17:30:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 30 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 84 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 25 00 00 00 00 07 04 06 00 84 61 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 2E C1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 41 71 00 00 35 04 06 00 E3 54 70 95 [17:30:18]Write to MH i2c: E2 02 01 8E 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 D4 30 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 84 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 25 00 00 00 00 07 04 06 00 84 61 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 2E C1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 41 71 00 00 35 04 06 00 E3 54 70 95 00 00 58 [17:30:18]Write i2c OK [17:30:18]MH_I2C_Read... [17:30:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:18]Read from MH i2c: E2 [17:30:18]MH_I2C_Read... [17:30:18]Read from MH i2c: E2 03 00 [17:30:18]MH_I2C_Read... [17:30:18]Read from MH i2c: E2 03 00 8E 52 00 90 00 54 [17:30:18]RAPDU: 90 00 [17:30:18]wFMCommunicate OK [17:30:18]wFMCommunicate request_size=7 [17:30:18]MH_SAM_APDU [17:30:18]CAPDU: 80 0D 02 02 02 BE C6 [17:30:18]Write to MH i2c: E2 0A 00 8F 52 80 0D 02 02 02 00 BE C6 00 00 E3 [17:30:18]Write i2c OK [17:30:18]MH_I2C_Read... [17:30:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:18]Read from MH i2c: E2 [17:30:18]MH_I2C_Read... [17:30:18]Read from MH i2c: E2 03 00 [17:30:18]MH_I2C_Read... [17:30:18]Read from MH i2c: E2 03 00 8F 52 00 90 00 55 [17:30:18]RAPDU: 90 00 [17:30:18]wFMCommunicate OK [17:30:18]wFMCommunicate request_size=4 [17:30:18]MH_SAM_APDU [17:30:18]CAPDU: 80 0D 03 02 [17:30:18]Write to MH i2c: E2 08 00 90 52 80 0D 03 02 00 00 00 00 5D [17:30:18]Write i2c OK [17:30:18]MH_I2C_Read... [17:30:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:18]Read from MH i2c: E2 [17:30:18]MH_I2C_Read... [17:30:18]Read from MH i2c: E2 0B 00 [17:30:18]MH_I2C_Read... [17:30:18]Read from MH i2c: E2 0B 00 90 52 00 16 57 F2 E0 E4 8F 8A FA 90 00 94 [17:30:18]RAPDU: 16 57 F2 E0 E4 8F 8A FA 90 00 [17:30:18]wFMCommunicate OK [17:30:18]SAM_PROTO_SignData done [17:30:18]FM_MakeSignedData done [17:30:18]CreateOFDProtocolMessage [17:30:18]wFMCommunicate request_size=4 [17:30:18]MH_SAM_APDU [17:30:18]CAPDU: 80 11 00 00 [17:30:18]Write to MH i2c: E2 08 00 91 52 80 11 00 00 00 00 00 00 5D [17:30:18]Write i2c OK [17:30:18]MH_I2C_Read... [17:30:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:18]Read from MH i2c: E2 [17:30:18]MH_I2C_Read... [17:30:18]Read from MH i2c: E2 17 00 [17:30:18]MH_I2C_Read... [17:30:18]Read from MH i2c: E2 17 00 91 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AC [17:30:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:30:18]wFMCommunicate OK [17:30:18]CreateOFDProtocolMessage done [17:30:18]OFDSenderStorePacket 28993 [17:30:18]StoreOFDPacket docnum=28993 [17:30:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 C9 DE 04 01 87 62 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 30 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 84 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 25 00 00 00 00 07 04 06 00 84 61 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 2E C1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 41 71 00 00 35 04 06 00 E3 54 70 95 BE C6 16 57 F2 E0 E4 8F 8A FA [17:30:18]CheckFolder [17:30:18]dirname=/storage/ofd_packets [17:30:18]CheckFolder done [17:30:18]ProducePacketName [17:30:18]name=ofd_packets/00028993 [17:30:18]NVStorageSaveData ofd_packets/00028993 [17:30:18]File name is /storage/ofd_packets/00028993 [17:30:18]Write 298 bytes [17:30:18]NVStorageSaveData done [17:30:18]OFDSenderStorePacket done [17:30:18]KKMCreateOFDPacket done [17:30:18]NVStorageSaveData kkm_last_timestamp [17:30:18]File name is /storage/kkm_last_timestamp [17:30:18]Write 4 bytes [17:30:18]NVStorageSaveData done [17:30:18]ExternCall_PrintAddStr [17:30:18]wPrintStart [17:30:18]Write to MH i2c: 01 00 00 92 52 E4 [17:30:18]Write i2c OK [17:30:18]MH_I2C_Read... [17:30:18]Read from MH i2c: 01 [17:30:18]MH_I2C_Read... [17:30:18]Read from MH i2c: 01 07 00 [17:30:18]MH_I2C_Read... [17:30:18]Read from MH i2c: 01 07 00 92 52 00 00 00 00 00 FF 0F F9 [17:30:18]RasterBufferAndPrint [17:30:18]line Счет N : (1)347357 [17:30:18]line ИНН: 02508201610067 [17:30:18]line Контрольно-Кассовый Чек [17:30:18]line ПРОДАЖА [17:30:18]line ТРК (МРК, ГНК) : 51 [17:30:18]line Товар: 2710194210 [17:30:18]line ДТ-К-5 [17:30:18]line 12.500 * 72.40 [17:30:18]line = 905.00 [17:30:18]line НДС 12% НСП 1% [17:30:18]line > о реализуемом товаре [17:30:18]line ИТОГО: 905.00 [17:30:18]line НСП 1% : 8.01 [17:30:18]line НДС 12% : 96.11 [17:30:18]line Наличными: 905.00 [17:30:18]line Безнал.: 0.00 [17:30:18]line Место: АЗС № 108 "Партнер Нефть" [17:30:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:30:18]line СНО: Общий режим [17:30:18]line Чек 200 13.04.2024 17:30 [17:30:18]line Смена: 115 ФФД: 1.0 [17:30:18]line ЗНМ: 0300000027 [17:30:18]line РНМ: 0000138879044617 [17:30:18]line Версия ККМ: 001 [17:30:18]line ФМ: 0000000000963154 [17:30:18]line ФД: 28993 [17:30:18]line ФПД: 249951805619910 [17:30:18]line 1/tax-web-control/client/api/v1/ticket?date=20240413T173022&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28993&fm=249951805619910&tin=02508201610067®Number=0000138879044617&sum=90500 [17:30:18]OFD Sender: Processing packet 28993 [packets to send 8, broken 7] [17:30:18]ProducePacketName [17:30:18]name=ofd_packets/00028993 [17:30:18]OFD Sender: To server: pG, [17:30:18]CommunicateWithHost lk.salyk.kg:30040 [17:30:18]ConnectInit lk.salyk.kg [17:30:18]written 0, free lines is 4095 [17:30:19]Connected sock=10 [17:30: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 31 35 34 0C 01 00 00 C9 DE 04 01 87 62 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 30 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 84 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 25 00 00 00 00 07 04 06 00 84 61 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 2E C1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 41 71 00 00 35 04 06 00 E3 54 70 95 BE C6 16 57 F2 E0 E4 8F 8A FA [17:30:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0E 3B 47 00 86 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 31 35 34 10 04 04 00 41 71 00 00 F4 03 04 00 D5 6B 1A 66 B6 04 01 00 00 4C 8C A3 60 71 78 06 41 [17:30:19]CommunicateWithHost err = 0 [17:30:19]CheckOFDResponse [17:30:19]1017 (14) - 77093643461234 [17:30:19]1041 (16) - 0000000000963154 [17:30:19]1040 (4) - 28993 [17:30:19]1012 (4) - 13.04.2024 11:26 [17:30:19]1206 (1) - 0 [17:30:19]OFD Sender: Remove packet 28993 [17:30:19]ProducePacketName [17:30:19]name=ofd_packets/00028993 [17:30:19]NVStorageDeleteData [17:30:19]Write to MH i2c: 01 00 00 B9 52 0B [17:30:19]Write i2c OK [17:30:19]MH_I2C_Read... [17:30:19]Read from MH i2c: 01 [17:30:19]MH_I2C_Read... [17:30:19]Read from MH i2c: 01 07 00 [17:30:19]MH_I2C_Read... [17:30:19]Read from MH i2c: 01 07 00 B9 52 00 00 00 00 00 FA 0C 18 [17:30:19]RasterBufferAndPrint [17:30:19]line [17:30:19]line [17:30:19]line [17:30:19]line [17:30:19]line [17:30:19]written 0, free lines is 3328 [17:30:19]MH_Cut [17:30:19]Write to MH i2c: D1 01 00 C0 52 01 E4 [17:30:19]Write i2c OK [17:30:19]MH_I2C_Read... [17:30:19]Read from MH i2c: D1 [17:30:19]MH_I2C_Read... [17:30:19]Read from MH i2c: D1 01 00 [17:30:19]MH_I2C_Read... [17:30:19]Read from MH i2c: D1 01 00 C0 52 00 E3 [17:30:19]Write to MH i2c: 01 00 00 C1 52 13 [17:30:19]Write i2c OK [17:30:19]MH_I2C_Read... [17:30:19]OFD Sender: No OFD packet to send [17:30:20]*** Cut start [17:30:20]*** Partial cut [17:30:20]*** CUTSNS_PIN = 1 [17:30:20]*** CUTSNS_PIN = 0 [17:30:20]*** Brake cut motor [17:30:20]Read from MH i2c: 01 [17:30:20]MH_I2C_Read... [17:30:20]*** Stop cut motor [17:30:20]*** Cut end [17:30:20]Read from MH i2c: 01 07 00 [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: 01 07 00 C1 52 00 00 00 00 00 FF 0F 28 [17:30:20]process_action close_receipt done [17:30:20]requested_data is exist [17:30:20]produce_requested_data [17:30:20]requested_item fm.sn is exist - process it [17:30:20]wFMCommunicate request_size=4 [17:30:20]MH_SAM_APDU [17:30:20]CAPDU: 80 11 00 00 [17:30:20]Write to MH i2c: E2 08 00 C2 52 80 11 00 00 00 00 00 00 8E [17:30:20]Write i2c OK [17:30:20]MH_I2C_Read... [17:30:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:20]Read from MH i2c: E2 [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: E2 17 00 [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: E2 17 00 C2 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DD [17:30:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:30:20]wFMCommunicate OK [17:30:20]requested_item fd.num is exist - process it [17:30:20]SAM_PROTO_GetFieldsCounters [17:30:20]wFMCommunicate request_size=4 [17:30:20]MH_SAM_APDU [17:30:20]CAPDU: 80 13 00 00 [17:30:20]Write to MH i2c: E2 08 00 C3 52 80 13 00 00 00 00 00 00 91 [17:30:20]Write i2c OK [17:30:20]MH_I2C_Read... [17:30:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:20]Read from MH i2c: E2 [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: E2 62 00 [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: E2 62 00 C3 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 41 71 00 00 0E 04 04 00 73 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 4C [17:30:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 41 71 00 00 0E 04 04 00 73 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 [17:30:20]wFMCommunicate OK [17:30:20]SAM_PROTO_GetFieldsCounters done [17:30:20]requested_item shift.num is exist - process it [17:30:20]requested_item shift.opened is exist - process it [17:30:20]req_shift_opened [17:30:20]FM_GetShiftState [17:30:20]SAM_PROTO_GetShiftState [17:30:20]wFMCommunicate request_size=4 [17:30:20]MH_SAM_APDU [17:30:20]CAPDU: 80 13 01 00 [17:30:20]Write to MH i2c: E2 08 00 C4 52 80 13 01 00 00 00 00 00 93 [17:30:20]Write i2c OK [17:30:20]MH_I2C_Read... [17:30:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:20]Read from MH i2c: E2 [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: E2 0E 00 [17:30:21]MH_I2C_Read... [17:30:21]Read from MH i2c: E2 0E 00 C4 52 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 AC [17:30:21]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:30:21]wFMCommunicate OK [17:30:21]SAM_PROTO_GetShiftState done [17:30:21]FM_GetShiftState done [17:30:21]req_shift_opened done [17:30:21]requested_item shift.open_date is exist - process it [17:30:21]req_shift_open_date [17:30:21]req_shift_open_date done [17:30:21]produce_requested_data done [17:30:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28993,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [17:30:21]process_action_free close_receipt [17:30:21]json_value_free [17:30:21]json_value_free done [17:30:21]process_json_proto returns [17:30:21]Send response to host [17:30:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28993,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [17:30:21]free response buf [17:30:21]execute_script done [17:30:21]execute_script returns [17:30:21]free content buf [17:30:21]Sock 9.Close socket [17:30:21]Sock 9.Thread stoped [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:27]accept exits with 7 [17:31:27]New connection [17:31:27]New thread 3066785124 created [17:31:27]Thread 3066928484 joined [17:31:27]Waiting for new connection... [17:31:27] Sock 7.Parse request [17:31:27]Sock 7.Check first char [17:31:27]Sock 7.First char is OK [17:31:27]request: POST /json_proto HTTP/1.0 [17:31:27]Method: POST [17:31:27]URL: /json_proto [17:31:27]Method is POST - this is cgi request [17:31:27]url: /json_proto [17:31:27]query_string will be loaded in cgi processing [17:31:27]execute_cgi json_proto POST (null) [17:31:27]execute_cgi path=json_proto method=POST [17:31:27]POST find Content-Length [17:31:27]Host: 172.17.33.3:8080 [17:31:27]Content-Length: 816 [17:31:27]Content-Type: application/json [17:31:27] [17:31:27]POST finish read [17:31:27]Found Content-Length = 816 [17:31:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 55.250, "sum" : 4000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 4000.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:27]execute_script... [17:31: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)347356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 55.250, "sum" : 4000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 4000.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:27]POST & json_proto [17:31:27]process_json_proto [17:31:27]json parsed OK: [17:31:27]protocol is kg_v1.0 [17:31:27]action value=close_receipt [17:31:27]process_action close_receipt [17:31:27]cmd_close_receipt [17:31:27]MH_GetDate [17:31:27]Write to MH i2c: F0 00 00 C5 52 06 [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: F0 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: F0 09 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: F0 09 00 C5 52 00 75 C1 1A 66 23 5B 8F 65 37 [17:31:27]GetLastDocTimeStamp 1713029422 [17:31:27]current date 1713029493 [17:31:27]FM_GetShiftState [17:31:27]SAM_PROTO_GetShiftState [17:31:27]wFMCommunicate request_size=4 [17:31:27]MH_SAM_APDU [17:31:27]CAPDU: 80 13 01 00 [17:31:27]Write to MH i2c: E2 08 00 C6 52 80 13 01 00 00 00 00 00 95 [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:27]Read from MH i2c: E2 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 0E 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 0E 00 C6 52 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 AE [17:31:27]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:31:27]wFMCommunicate OK [17:31:27]SAM_PROTO_GetShiftState done [17:31:27]FM_GetShiftState done [17:31:27]opened in 1712967615 [17:31:27]opened+sec_in_day 1713054015 [17:31:27]quantity*price = 400010 [17:31:27]sum+1 = 400011 [17:31:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.10 НСП 1% : 35.40 НДС 12% : 424.79 Наличными: 0.00 Безнал.: 4000.10 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 201 13.04.2024 17:31 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 28994 ФПД: 59509001513741 1/tax-web-control/client/api/v1/ticket?date=20240413T173133&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28994&fm=59509001513741&tin=02508201610067®Number=0000138879044617&sum=400010 [17:31:28]StoreToDocumentArchive [17:31:28]shift 115 fd 28994 [17:31:28]save to /storage/0115/doc_00028994 [17:31:28]save last doc name /storage/0115/doc_00028994 to /storage/kkm_last_doc_name [17:31:28]save OK [17:31:28]Clear old archive folders... [17:31:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:31:28]tlvbuf is 011DA960 [17:31:28]SAM_PROTO_ClearQueue [17:31:28]wFMCommunicate request_size=4 [17:31:28]MH_SAM_APDU [17:31:28]CAPDU: 80 09 00 00 [17:31:28]Write to MH i2c: E2 08 00 D3 52 80 09 00 00 00 00 00 00 97 [17:31:28]Write i2c OK [17:31:28]MH_I2C_Read... [17:31:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:28]Read from MH i2c: E2 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: E2 03 00 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: E2 03 00 D3 52 00 90 00 99 [17:31:28]RAPDU: 90 00 [17:31:28]wFMCommunicate OK [17:31:28]SAM_PROTO_ClearQueue done [17:31:28]KKMCreateOFDPacket [17:31:28]OFDProtocolAddRootSTLVToBuf [17:31:28]FM_MakeSignedData [17:31:28]FM_MakeSignedData [17:31:28]SAM_PROTO_SignData [17:31:28]wFMCommunicate request_size=4 [17:31:28]MH_SAM_APDU [17:31:28]CAPDU: 80 0D 01 02 [17:31:28]Write to MH i2c: E2 08 00 D4 52 80 0D 01 02 00 00 00 00 9F [17:31:28]Write i2c OK [17:31:28]MH_I2C_Read... [17:31:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:28]Read from MH i2c: E2 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: E2 03 00 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: E2 03 00 D4 52 00 90 00 9A [17:31:28]RAPDU: 90 00 [17:31:28]wFMCommunicate OK [17:31:28]wFMCommunicate request_size=255 [17:31:28]MH_SAM_APDU [17:31:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D2 D7 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 8A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 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 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 75 C1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 42 71 00 00 35 04 06 00 36 1F 84 E5 [17:31:28]Write to MH i2c: E2 02 01 D5 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 D2 D7 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 8A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 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 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 75 C1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 42 71 00 00 35 04 06 00 36 1F 84 E5 00 00 FC [17:31:29]Write i2c OK [17:31:29]MH_I2C_Read... [17:31:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:29]Read from MH i2c: E2 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: E2 03 00 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: E2 03 00 D5 52 00 90 00 9B [17:31:29]RAPDU: 90 00 [17:31:29]wFMCommunicate OK [17:31:29]wFMCommunicate request_size=7 [17:31:29]MH_SAM_APDU [17:31:29]CAPDU: 80 0D 02 02 02 6B 0D [17:31:29]Write to MH i2c: E2 0A 00 D6 52 80 0D 02 02 02 00 6B 0D 00 00 1E [17:31:29]Write i2c OK [17:31:29]MH_I2C_Read... [17:31:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:29]Read from MH i2c: E2 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: E2 03 00 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: E2 03 00 D6 52 00 90 00 9C [17:31:29]RAPDU: 90 00 [17:31:29]wFMCommunicate OK [17:31:29]wFMCommunicate request_size=4 [17:31:29]MH_SAM_APDU [17:31:29]CAPDU: 80 0D 03 02 [17:31:29]Write to MH i2c: E2 08 00 D7 52 80 0D 03 02 00 00 00 00 A4 [17:31:29]Write i2c OK [17:31:29]MH_I2C_Read... [17:31:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:29]Read from MH i2c: E2 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: E2 0B 00 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: E2 0B 00 D7 52 00 34 A1 76 76 B7 16 05 8C 90 00 C4 [17:31:29]RAPDU: 34 A1 76 76 B7 16 05 8C 90 00 [17:31:29]wFMCommunicate OK [17:31:29]SAM_PROTO_SignData done [17:31:29]FM_MakeSignedData done [17:31:29]CreateOFDProtocolMessage [17:31:29]wFMCommunicate request_size=4 [17:31:29]MH_SAM_APDU [17:31:29]CAPDU: 80 11 00 00 [17:31:29]Write to MH i2c: E2 08 00 D8 52 80 11 00 00 00 00 00 00 A4 [17:31:29]Write i2c OK [17:31:29]MH_I2C_Read... [17:31:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:29]Read from MH i2c: E2 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: E2 17 00 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: E2 17 00 D8 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F3 [17:31:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:31:29]wFMCommunicate OK [17:31:29]CreateOFDProtocolMessage done [17:31:29]OFDSenderStorePacket 28994 [17:31:29]StoreOFDPacket docnum=28994 [17:31:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 8D C0 04 01 C0 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 D2 D7 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 8A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 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 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 75 C1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 42 71 00 00 35 04 06 00 36 1F 84 E5 6B 0D 34 A1 76 76 B7 16 05 8C [17:31:29]CheckFolder [17:31:29]dirname=/storage/ofd_packets [17:31:29]CheckFolder done [17:31:29]ProducePacketName [17:31:29]name=ofd_packets/00028994 [17:31:29]NVStorageSaveData ofd_packets/00028994 [17:31:29]File name is /storage/ofd_packets/00028994 [17:31:29]Write 298 bytes [17:31:29]NVStorageSaveData done [17:31:29]OFDSenderStorePacket done [17:31:29]KKMCreateOFDPacket done [17:31:29]NVStorageSaveData kkm_last_timestamp [17:31:29]File name is /storage/kkm_last_timestamp [17:31:29]Write 4 bytes [17:31:29]NVStorageSaveData done [17:31:29]ExternCall_PrintAddStr [17:31:29]wPrintStart [17:31:29]Write to MH i2c: 01 00 00 D9 52 2B [17:31:29]Write i2c OK [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: 01 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: 01 07 00 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: 01 07 00 D9 52 00 00 00 00 00 FF 0F 40 [17:31:29]RasterBufferAndPrint [17:31:29]line Счет N : (1)347356 [17:31:29]line ИНН: 02508201610067 [17:31:29]line Контрольно-Кассовый Чек [17:31:29]line ПРОДАЖА [17:31:29]line ТРК (МРК, ГНК) : 11 [17:31:29]line Товар: 2710194210 [17:31:29]line ДТ-К-5 [17:31:29]line 55.250 * 72.40 [17:31:29]line = 4000.10 [17:31:29]line НДС 12% НСП 1% [17:31:29]line > о реализуемом товаре [17:31:29]line ИТОГО: 4000.10 [17:31:29]line НСП 1% : 35.40 [17:31:29]line НДС 12% : 424.79 [17:31:29]line Наличными: 0.00 [17:31:29]line Безнал.: 4000.10 [17:31:29]line Место: АЗС № 108 "Партнер Нефть" [17:31:29]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:31:29]line СНО: Общий режим [17:31:29]line Чек 201 13.04.2024 17:31 [17:31:29]line Смена: 115 ФФД: 1.0 [17:31:29]line ЗНМ: 0300000027 [17:31:29]line РНМ: 0000138879044617 [17:31:29]line Версия ККМ: 001 [17:31:29]line Платежная система: Бакай Банк [17:31:29]line ФМ: 0000000000963154 [17:31:29]line ФД: 28994 [17:31:29]line ФПД: 59509001513741 [17:31:29]line 1/tax-web-control/client/api/v1/ticket?date=20240413T173133&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28994&fm=59509001513741&tin=02508201610067®Number=0000138879044617&sum=400010 [17:31:29]OFD Sender: Processing packet 28994 [packets to send 8, broken 7] [17:31:29]ProducePacketName [17:31:29]name=ofd_packets/00028994 [17:31:29]OFD Sender: To server: pG, [17:31:29]CommunicateWithHost lk.salyk.kg:30040 [17:31:29]ConnectInit lk.salyk.kg [17:31:29]written 0, free lines is 4095 [17:31:29]Connected sock=10 [17:31: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 31 35 34 0C 01 00 00 8D C0 04 01 C0 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 D2 D7 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 8A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 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 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 75 C1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 42 71 00 00 35 04 06 00 36 1F 84 E5 6B 0D 34 A1 76 76 B7 16 05 8C [17:31:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C4 3B 47 00 62 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 31 35 34 10 04 04 00 42 71 00 00 F4 03 04 00 1B 6C 1A 66 B6 04 01 00 00 DF F9 25 1B 41 1D E5 5A [17:31:30]CommunicateWithHost err = 0 [17:31:30]CheckOFDResponse [17:31:30]1017 (14) - 77093643461234 [17:31:30]1041 (16) - 0000000000963154 [17:31:30]1040 (4) - 28994 [17:31:30]1012 (4) - 13.04.2024 11:27 [17:31:30]1206 (1) - 0 [17:31:30]OFD Sender: Remove packet 28994 [17:31:30]ProducePacketName [17:31:30]name=ofd_packets/00028994 [17:31:30]NVStorageDeleteData [17:31:30]Write to MH i2c: 01 00 00 02 53 55 [17:31:30]Write i2c OK [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: 01 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: 01 07 00 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: 01 07 00 02 53 00 00 00 00 00 DC 0C 44 [17:31:30]RasterBufferAndPrint [17:31:30]line [17:31:30]line [17:31:30]line [17:31:30]line [17:31:30]line [17:31:30]written 0, free lines is 3300 [17:31:30]MH_Cut [17:31:30]Write to MH i2c: D1 01 00 09 53 01 2E [17:31:30]Write i2c OK [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: D1 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: D1 01 00 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: D1 01 00 09 53 00 2D [17:31:30]Write to MH i2c: 01 00 00 0A 53 5D [17:31:30]Write i2c OK [17:31:30]MH_I2C_Read... [17:31:30]OFD Sender: No OFD packet to send [17:31:30]*** Cut start [17:31:30]*** Partial cut [17:31:30]*** CUTSNS_PIN = 1 [17:31:31]*** CUTSNS_PIN = 0 [17:31:31]*** Brake cut motor [17:31:31]Read from MH i2c: 01 [17:31:31]MH_I2C_Read... [17:31:31]*** Stop cut motor [17:31:31]*** Cut end [17:31:31]Read from MH i2c: 01 07 00 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: 01 07 00 0A 53 00 00 00 00 00 FF 0F 72 [17:31:31]process_action close_receipt done [17:31:31]requested_data is exist [17:31:31]produce_requested_data [17:31:31]requested_item fm.sn is exist - process it [17:31:31]wFMCommunicate request_size=4 [17:31:31]MH_SAM_APDU [17:31:31]CAPDU: 80 11 00 00 [17:31:31]Write to MH i2c: E2 08 00 0B 53 80 11 00 00 00 00 00 00 D8 [17:31:31]Write i2c OK [17:31:31]MH_I2C_Read... [17:31:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:31]Read from MH i2c: E2 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: E2 17 00 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: E2 17 00 0B 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 27 [17:31:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:31:31]wFMCommunicate OK [17:31:31]requested_item fd.num is exist - process it [17:31:31]SAM_PROTO_GetFieldsCounters [17:31:31]wFMCommunicate request_size=4 [17:31:31]MH_SAM_APDU [17:31:31]CAPDU: 80 13 00 00 [17:31:31]Write to MH i2c: E2 08 00 0C 53 80 13 00 00 00 00 00 00 DB [17:31:31]Write i2c OK [17:31:31]MH_I2C_Read... [17:31:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:31]Read from MH i2c: E2 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: E2 62 00 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: E2 62 00 0C 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 42 71 00 00 0E 04 04 00 73 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 9A [17:31: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 42 71 00 00 0E 04 04 00 73 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 [17:31:31]wFMCommunicate OK [17:31:31]SAM_PROTO_GetFieldsCounters done [17:31:31]requested_item shift.num is exist - process it [17:31:31]requested_item shift.opened is exist - process it [17:31:31]req_shift_opened [17:31:31]FM_GetShiftState [17:31:31]SAM_PROTO_GetShiftState [17:31:31]wFMCommunicate request_size=4 [17:31:31]MH_SAM_APDU [17:31:31]CAPDU: 80 13 01 00 [17:31:31]Write to MH i2c: E2 08 00 0D 53 80 13 01 00 00 00 00 00 DD [17:31:31]Write i2c OK [17:31:31]MH_I2C_Read... [17:31:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:31]Read from MH i2c: E2 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: E2 0E 00 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: E2 0E 00 0D 53 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F6 [17:31:31]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:31:31]wFMCommunicate OK [17:31:31]SAM_PROTO_GetShiftState done [17:31:31]FM_GetShiftState done [17:31:31]req_shift_opened done [17:31:31]requested_item shift.open_date is exist - process it [17:31:31]req_shift_open_date [17:31:31]req_shift_open_date done [17:31:31]produce_requested_data done [17:31:31]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28994,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [17:31:31]process_action_free close_receipt [17:31:31]json_value_free [17:31:31]json_value_free done [17:31:31]process_json_proto returns [17:31:31]Send response to host [17:31:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28994,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [17:31:31]free response buf [17:31:31]execute_script done [17:31:31]execute_script returns [17:31:31]free content buf [17:31:31]Sock 7.Close socket [17:31:31]Sock 7.Thread stoped [17:31:35]OFD Sender: No OFD packet to send [17:31:40]OFD Sender: No OFD packet to send [17:31:45]OFD Sender: No OFD packet to send [17:31:50]OFD Sender: No OFD packet to send [17:31:55]OFD Sender: No OFD packet to send [17:32:00]OFD Sender: No OFD packet to send [17:32:05]OFD Sender: No OFD packet to send [17:32:10]OFD Sender: No OFD packet to send [17:32:15]OFD Sender: No OFD packet to send [17:32:20]OFD Sender: No OFD packet to send [17:32:25]OFD Sender: No OFD packet to send [17:32:30]OFD Sender: No OFD packet to send [17:32:35]OFD Sender: No OFD packet to send [17:32:40]OFD Sender: No OFD packet to send [17:32:45]OFD Sender: No OFD packet to send [17:32:47]accept exits with 9 [17:32:47]New connection [17:32:47]New thread 3066928484 created [17:32:47]Thread 3066785124 joined [17:32:47]Waiting for new connection... [17:32:47] Sock 9.Parse request [17:32:47]Sock 9.Check first char [17:32:47]Sock 9.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.33.3:8080 [17:32:47]Content-Length: 685 [17:32:47]Content-Type: application/json [17:32:47] [17:32:47]POST finish read [17:32:47]Found Content-Length = 685 [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)347358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "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: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)347358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "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: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 0E 53 50 [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 0E 53 00 C5 C1 1A 66 23 5B 8F 65 D1 [17:32:47]GetLastDocTimeStamp 1713029493 [17:32:47]current date 1713029573 [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 0F 53 80 13 01 00 00 00 00 00 DF [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 0F 53 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F8 [17:32:47]RAPDU: 09 00 01 BF CF 19 66 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 1712967615 [17:32:47]opened+sec_in_day 1713054015 [17:32:47]quantity*price = 100016 [17:32:47]sum+1 = 100017 [17:32:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 202 13.04.2024 17:32 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28995 ФПД: 227681740977524 1/tax-web-control/client/api/v1/ticket?date=20240413T173253&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28995&fm=227681740977524&tin=02508201610067®Number=0000138879044617&sum=100000 [17:32:48]StoreToDocumentArchive [17:32:48]shift 115 fd 28995 [17:32:48]save to /storage/0115/doc_00028995 [17:32:48]save last doc name /storage/0115/doc_00028995 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=250 [17:32:48]tlvbuf is 011DA550 [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 1C 53 80 09 00 00 00 00 00 00 E1 [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 1C 53 00 90 00 E3 [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 1D 53 80 0D 01 02 00 00 00 00 E9 [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 1D 53 00 90 00 E4 [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 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 C5 C1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 43 71 00 00 35 04 06 00 CF 13 [17:32:48]Write to MH i2c: E2 02 01 1E 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 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 C5 C1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 43 71 00 00 35 04 06 00 CF 13 00 00 58 [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 1E 53 00 90 00 E5 [17:32:48]RAPDU: 90 00 [17:32:48]wFMCommunicate OK [17:32:48]wFMCommunicate request_size=9 [17:32:48]MH_SAM_APDU [17:32:48]CAPDU: 80 0D 02 02 04 49 4A F5 74 [17:32:48]Write to MH i2c: E2 0C 00 1F 53 80 0D 02 02 04 00 49 4A F5 74 00 00 F0 [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 1F 53 00 90 00 E6 [17:32:48]RAPDU: 90 00 [17:32:48]wFMCommunicate OK [17:32:48]wFMCommunicate request_size=4 [17:32:48]MH_SAM_APDU [17:32:48]CAPDU: 80 0D 03 02 [17:32:48]Write to MH i2c: E2 08 00 20 53 80 0D 03 02 00 00 00 00 EE [17:32:48]Write i2c OK [17:32:48]MH_I2C_Read... [17:32:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:48]Read from MH i2c: E2 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 0B 00 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 0B 00 20 53 00 FF 0A B8 E7 A2 4C F2 23 90 00 9A [17:32:48]RAPDU: FF 0A B8 E7 A2 4C F2 23 90 00 [17:32:48]wFMCommunicate OK [17:32:48]SAM_PROTO_SignData done [17:32:48]FM_MakeSignedData done [17:32:48]CreateOFDProtocolMessage [17:32:48]wFMCommunicate request_size=4 [17:32:48]MH_SAM_APDU [17:32:48]CAPDU: 80 11 00 00 [17:32:48]Write to MH i2c: E2 08 00 21 53 80 11 00 00 00 00 00 00 EE [17:32:48]Write i2c OK [17:32:48]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 21 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3D [17:32:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:32:49]wFMCommunicate OK [17:32:49]CreateOFDProtocolMessage done [17:32:49]OFDSenderStorePacket 28995 [17:32:49]StoreOFDPacket docnum=28995 [17:32:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 08 F3 06 01 51 4D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 C5 C1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 43 71 00 00 35 04 06 00 CF 13 49 4A F5 74 FF 0A B8 E7 A2 4C F2 23 [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/00028995 [17:32:49]NVStorageSaveData ofd_packets/00028995 [17:32:49]File name is /storage/ofd_packets/00028995 [17:32:49]Write 300 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 22 53 75 [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 22 53 00 00 00 00 00 FF 0F 8A [17:32:49]RasterBufferAndPrint [17:32:49]line Счет N : (1)347358 [17:32:49]line ИНН: 02508201610067 [17:32:49]line Контрольно-Кассовый Чек [17:32:49]line ПРОДАЖА [17:32:49]line ТРК (МРК, ГНК) : 71 [17:32:49]line Товар: 2711129700 [17:32:49]line ГАЗ-К-5 [17:32:49]line 30.400 * 32.90 [17:32:49]line = 1000.16 [17:32:49]line НДС 12% НСП 1% [17:32:49]line > о реализуемом товаре [17:32:49]line ОКРУГЛЕНИЕ: -0.16 [17:32:49]line ИТОГО: 1000.00 [17:32:49]line Внесено: 1000.00 [17:32:49]line СДАЧА: 0.00 [17:32:49]line НСП 1% : 8.85 [17:32:49]line НДС 12% : 106.21 [17:32:49]line Наличными: 1000.00 [17:32:49]line Безнал.: 0.00 [17:32:49]line Место: АЗС № 108 "Партнер Нефть" [17:32:49]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:32:49]line СНО: Общий режим [17:32:49]line Чек 202 13.04.2024 17:32 [17:32:49]line Смена: 115 ФФД: 1.0 [17:32:49]line ЗНМ: 0300000027 [17:32:49]line РНМ: 0000138879044617 [17:32:49]line Версия ККМ: 001 [17:32:49]line ФМ: 0000000000963154 [17:32:49]line ФД: 28995 [17:32:49]line ФПД: 227681740977524 [17:32:49]line 1/tax-web-control/client/api/v1/ticket?date=20240413T173253&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28995&fm=227681740977524&tin=02508201610067®Number=0000138879044617&sum=100000 [17:32:49]OFD Sender: Processing packet 28995 [packets to send 8, broken 7] [17:32:49]ProducePacketName [17:32:49]name=ofd_packets/00028995 [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]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 31 35 34 0E 01 00 00 08 F3 06 01 51 4D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 C5 C1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 43 71 00 00 35 04 06 00 CF 13 49 4A F5 74 FF 0A B8 E7 A2 4C F2 23 [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 31 35 34 4F 00 00 00 84 1E 47 00 01 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 43 71 00 00 F4 03 04 00 6B 6C 1A 66 B6 04 01 00 00 CB EC F2 79 6B 2D CB 4D [17:32:49]CommunicateWithHost err = 0 [17:32:49]CheckOFDResponse [17:32:49]1017 (14) - 77093643461234 [17:32:49]1041 (16) - 0000000000963154 [17:32:49]1040 (4) - 28995 [17:32:49]1012 (4) - 13.04.2024 11:28 [17:32:49]1206 (1) - 0 [17:32:49]OFD Sender: Remove packet 28995 [17:32:49]ProducePacketName [17:32:49]name=ofd_packets/00028995 [17:32:49]NVStorageDeleteData [17:32:49]Write to MH i2c: 01 00 00 4C 53 9F [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 4C 53 00 00 00 00 00 CE 0C 80 [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 3283 [17:32:49]MH_Cut [17:32:49]Write to MH i2c: D1 01 00 53 53 01 78 [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 53 53 00 77 [17:32:49]Write to MH i2c: 01 00 00 54 53 A7 [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 54 53 00 00 00 00 00 FF 0F BC [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 55 53 80 11 00 00 00 00 00 00 22 [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 55 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 71 [17:32:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 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 56 53 80 13 00 00 00 00 00 00 25 [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 56 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 43 71 00 00 0E 04 04 00 73 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 E8 [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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 43 71 00 00 0E 04 04 00 73 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 [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 57 53 80 13 01 00 00 00 00 00 27 [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 57 53 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 40 [17:32:51]RAPDU: 09 00 01 BF CF 19 66 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":"0000000000963154","fd.num":28995,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [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":"0000000000963154","fd.num":28995,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [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 9.Close socket [17:32:51]Sock 9.Thread stoped [17:32:55]OFD Sender: No OFD packet to send [17:33:00]OFD Sender: No OFD packet to send [17:33:05]OFD Sender: No OFD packet to send [17:33:10]OFD Sender: No OFD packet to send [17:33:15]OFD Sender: No OFD packet to send [17:33:20]OFD Sender: No OFD packet to send [17:33:25]OFD Sender: No OFD packet to send [17:33:30]OFD Sender: No OFD packet to send [17:33:35]OFD Sender: No OFD packet to send [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:50]OFD Sender: No OFD packet to send [17:33:55]OFD Sender: No OFD packet to send [17:34:00]OFD Sender: No OFD packet to send [17:34:05]OFD Sender: No OFD packet to send [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:20]OFD Sender: No OFD packet to send [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:35]OFD Sender: No OFD packet to send [17:34:40]OFD Sender: No OFD packet to send [17:34:45]OFD Sender: No OFD packet to send [17:34:50]OFD Sender: No OFD packet to send [17:34:55]OFD Sender: No OFD packet to send [17:35:00]OFD Sender: No OFD packet to send [17:35:05]OFD Sender: No OFD packet to send [17:35:10]OFD Sender: No OFD packet to send [17:35:15]OFD Sender: No OFD packet to send [17:35:20]OFD Sender: No OFD packet to send [17:35:25]OFD Sender: No OFD packet to send [17:35:30]OFD Sender: No OFD packet to send [17:35:35]OFD Sender: No OFD packet to send [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:05]OFD Sender: No OFD packet to send [17:36:09]accept exits with 7 [17:36:09]New connection [17:36:09]New thread 3066785124 created [17:36:09]Thread 3066928484 joined [17:36:09]Waiting for new connection... [17:36:09] Sock 7.Parse request [17:36:09]Sock 7.Check first char [17:36:09]Sock 7.First char is OK [17:36:09]request: POST /json_proto HTTP/1.0 [17:36:09]Method: POST [17:36:09]URL: /json_proto [17:36:09]Method is POST - this is cgi request [17:36:09]url: /json_proto [17:36:09]query_string will be loaded in cgi processing [17:36:09]execute_cgi json_proto POST (null) [17:36:09]execute_cgi path=json_proto method=POST [17:36:09]POST find Content-Length [17:36:09]Host: 172.17.33.3:8080 [17:36:09]Content-Length: 679 [17:36:09]Content-Type: application/json [17:36:09] [17:36:09]POST finish read [17:36:09]Found Content-Length = 679 [17:36:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:36:09]execute_script... [17:36: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)347359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:36:09]POST & json_proto [17:36:09]process_json_proto [17:36:09]json parsed OK: [17:36:09]protocol is kg_v1.0 [17:36:09]action value=close_receipt [17:36:09]process_action close_receipt [17:36:09]cmd_close_receipt [17:36:09]MH_GetDate [17:36:09]Write to MH i2c: F0 00 00 58 53 9A [17:36:09]Write i2c OK [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: F0 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: F0 09 00 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: F0 09 00 58 53 00 8E C2 1A 66 23 5B 8F 65 E5 [17:36:09]GetLastDocTimeStamp 1713029573 [17:36:09]current date 1713029774 [17:36:09]FM_GetShiftState [17:36:09]SAM_PROTO_GetShiftState [17:36:09]wFMCommunicate request_size=4 [17:36:09]MH_SAM_APDU [17:36:09]CAPDU: 80 13 01 00 [17:36:09]Write to MH i2c: E2 08 00 59 53 80 13 01 00 00 00 00 00 29 [17:36:09]Write i2c OK [17:36:09]MH_I2C_Read... [17:36:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:09]Read from MH i2c: E2 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: E2 0E 00 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: E2 0E 00 59 53 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 42 [17:36:09]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:36:09]wFMCommunicate OK [17:36:09]SAM_PROTO_GetShiftState done [17:36:09]FM_GetShiftState done [17:36:09]opened in 1712967615 [17:36:09]opened+sec_in_day 1713054015 [17:36:09]quantity*price = 100056 [17:36:09]sum+1 = 100058 [17:36:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 203 13.04.2024 17:36 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28996 ФПД: 194294426348288 1/tax-web-control/client/api/v1/ticket?date=20240413T173614&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28996&fm=194294426348288&tin=02508201610067®Number=0000138879044617&sum=100000 [17:36:10]StoreToDocumentArchive [17:36:10]shift 115 fd 28996 [17:36:10]save to /storage/0115/doc_00028996 [17:36:10]save last doc name /storage/0115/doc_00028996 to /storage/kkm_last_doc_name [17:36:10]save OK [17:36:10]Clear old archive folders... [17:36:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:36:10]tlvbuf is 011D4810 [17:36:10]SAM_PROTO_ClearQueue [17:36:10]wFMCommunicate request_size=4 [17:36:10]MH_SAM_APDU [17:36:10]CAPDU: 80 09 00 00 [17:36:10]Write to MH i2c: E2 08 00 66 53 80 09 00 00 00 00 00 00 2B [17:36:10]Write i2c OK [17:36:10]MH_I2C_Read... [17:36:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:10]OFD Sender: No OFD packet to send [17:36:10]Read from MH i2c: E2 [17:36:10]MH_I2C_Read... [17:36:10]Read from MH i2c: E2 03 00 [17:36:10]MH_I2C_Read... [17:36:10]Read from MH i2c: E2 03 00 66 53 00 90 00 2D [17:36:10]RAPDU: 90 00 [17:36:10]wFMCommunicate OK [17:36:10]SAM_PROTO_ClearQueue done [17:36:10]KKMCreateOFDPacket [17:36:10]OFDProtocolAddRootSTLVToBuf [17:36:10]FM_MakeSignedData [17:36:10]FM_MakeSignedData [17:36:10]SAM_PROTO_SignData [17:36:10]wFMCommunicate request_size=4 [17:36:10]MH_SAM_APDU [17:36:10]CAPDU: 80 0D 01 02 [17:36:10]Write to MH i2c: E2 08 00 67 53 80 0D 01 02 00 00 00 00 33 [17:36:10]Write i2c OK [17:36:10]MH_I2C_Read... [17:36:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:10]Read from MH i2c: E2 [17:36:10]MH_I2C_Read... [17:36:10]Read from MH i2c: E2 03 00 [17:36:10]MH_I2C_Read... [17:36:10]Read from MH i2c: E2 03 00 67 53 00 90 00 2E [17:36:10]RAPDU: 90 00 [17:36:10]wFMCommunicate OK [17:36:10]wFMCommunicate request_size=255 [17:36:10]MH_SAM_APDU [17:36: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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CB 00 00 00 F4 03 04 00 8E C2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 44 71 00 00 35 04 06 00 B0 B5 B2 43 [17:36:10]Write to MH i2c: E2 02 01 68 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CB 00 00 00 F4 03 04 00 8E C2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 44 71 00 00 35 04 06 00 B0 B5 B2 43 00 00 2F [17:36:10]Write i2c OK [17:36:10]MH_I2C_Read... [17:36:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:10]Read from MH i2c: E2 [17:36:10]MH_I2C_Read... [17:36:10]Read from MH i2c: E2 03 00 [17:36:10]MH_I2C_Read... [17:36:10]Read from MH i2c: E2 03 00 68 53 00 90 00 2F [17:36:10]RAPDU: 90 00 [17:36:10]wFMCommunicate OK [17:36:10]wFMCommunicate request_size=7 [17:36:10]MH_SAM_APDU [17:36:10]CAPDU: 80 0D 02 02 02 AB 00 [17:36:10]Write to MH i2c: E2 0A 00 69 53 80 0D 02 02 02 00 AB 00 00 00 E5 [17:36:10]Write i2c OK [17:36:10]MH_I2C_Read... [17:36:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:10]Read from MH i2c: E2 [17:36:10]MH_I2C_Read... [17:36:10]Read from MH i2c: E2 03 00 [17:36:10]MH_I2C_Read... [17:36:10]Read from MH i2c: E2 03 00 69 53 00 90 00 30 [17:36:10]RAPDU: 90 00 [17:36:10]wFMCommunicate OK [17:36:10]wFMCommunicate request_size=4 [17:36:10]MH_SAM_APDU [17:36:10]CAPDU: 80 0D 03 02 [17:36:10]Write to MH i2c: E2 08 00 6A 53 80 0D 03 02 00 00 00 00 38 [17:36:10]Write i2c OK [17:36:10]MH_I2C_Read... [17:36:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:10]Read from MH i2c: E2 [17:36:10]MH_I2C_Read... [17:36:10]Read from MH i2c: E2 0B 00 [17:36:10]MH_I2C_Read... [17:36:10]Read from MH i2c: E2 0B 00 6A 53 00 FA 39 79 20 B7 6C 0D B0 90 00 E5 [17:36:10]RAPDU: FA 39 79 20 B7 6C 0D B0 90 00 [17:36:10]wFMCommunicate OK [17:36:10]SAM_PROTO_SignData done [17:36:10]FM_MakeSignedData done [17:36:10]CreateOFDProtocolMessage [17:36:10]wFMCommunicate request_size=4 [17:36:10]MH_SAM_APDU [17:36:10]CAPDU: 80 11 00 00 [17:36:10]Write to MH i2c: E2 08 00 6B 53 80 11 00 00 00 00 00 00 38 [17:36:10]Write i2c OK [17:36:10]MH_I2C_Read... [17:36:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:10]Read from MH i2c: E2 [17:36:10]MH_I2C_Read... [17:36:10]Read from MH i2c: E2 17 00 [17:36:10]MH_I2C_Read... [17:36:10]Read from MH i2c: E2 17 00 6B 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 87 [17:36:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:36:10]wFMCommunicate OK [17:36:10]CreateOFDProtocolMessage done [17:36:10]OFDSenderStorePacket 28996 [17:36:10]StoreOFDPacket docnum=28996 [17:36:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 AB E3 04 01 53 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CB 00 00 00 F4 03 04 00 8E C2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 44 71 00 00 35 04 06 00 B0 B5 B2 43 AB 00 FA 39 79 20 B7 6C 0D B0 [17:36:10]CheckFolder [17:36:10]dirname=/storage/ofd_packets [17:36:10]CheckFolder done [17:36:10]ProducePacketName [17:36:10]name=ofd_packets/00028996 [17:36:10]NVStorageSaveData ofd_packets/00028996 [17:36:10]File name is /storage/ofd_packets/00028996 [17:36:10]Write 298 bytes [17:36:10]NVStorageSaveData done [17:36:10]OFDSenderStorePacket done [17:36:10]KKMCreateOFDPacket done [17:36:10]NVStorageSaveData kkm_last_timestamp [17:36:10]File name is /storage/kkm_last_timestamp [17:36:10]Write 4 bytes [17:36:10]NVStorageSaveData done [17:36:10]ExternCall_PrintAddStr [17:36:10]wPrintStart [17:36:10]Write to MH i2c: 01 00 00 6C 53 BF [17:36:10]Write i2c OK [17:36:10]MH_I2C_Read... [17:36:10]Read from MH i2c: 01 [17:36:10]MH_I2C_Read... [17:36:10]Read from MH i2c: 01 07 00 [17:36:10]MH_I2C_Read... [17:36:10]Read from MH i2c: 01 07 00 6C 53 00 00 00 00 00 FF 0F D4 [17:36:10]RasterBufferAndPrint [17:36:10]line Счет N : (1)347359 [17:36:10]line ИНН: 02508201610067 [17:36:10]line Контрольно-Кассовый Чек [17:36:10]line ПРОДАЖА [17:36:10]line ТРК (МРК, ГНК) : 21 [17:36:10]line Товар: 2710194210 [17:36:10]line ДТ-К-5 [17:36:10]line 13.820 * 72.40 [17:36:10]line = 1000.57 [17:36:10]line НДС 12% НСП 1% [17:36:10]line > о реализуемом товаре [17:36:10]line ОКРУГЛЕНИЕ: -0.57 [17:36:10]line ИТОГО: 1000.00 [17:36:10]line Внесено: 1000.00 [17:36:10]line СДАЧА: 0.00 [17:36:10]line НСП 1% : 8.85 [17:36:10]line НДС 12% : 106.25 [17:36:10]line Наличными: 1000.00 [17:36:10]line Безнал.: 0.00 [17:36:10]line Место: АЗС № 108 "Партнер Нефть" [17:36:10]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:36:10]line СНО: Общий режим [17:36:10]line Чек 203 13.04.2024 17:36 [17:36:10]line Смена: 115 ФФД: 1.0 [17:36:10]line ЗНМ: 0300000027 [17:36:10]line РНМ: 0000138879044617 [17:36:10]line Версия ККМ: 001 [17:36:10]line ФМ: 0000000000963154 [17:36:10]line ФД: 28996 [17:36:10]line ФПД: 194294426348288 [17:36:11]line 1/tax-web-control/client/api/v1/ticket?date=20240413T173614&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28996&fm=194294426348288&tin=02508201610067®Number=0000138879044617&sum=100000 [17:36:11]OFD Sender: Processing packet 28996 [packets to send 8, broken 7] [17:36:11]ProducePacketName [17:36:11]name=ofd_packets/00028996 [17:36:11]OFD Sender: To server: pG, [17:36:11]CommunicateWithHost lk.salyk.kg:30040 [17:36:11]ConnectInit lk.salyk.kg [17:36:11]written 0, free lines is 4095 [17:36:11]Connected sock=10 [17:36: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 31 35 34 0C 01 00 00 AB E3 04 01 53 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CB 00 00 00 F4 03 04 00 8E C2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 44 71 00 00 35 04 06 00 B0 B5 B2 43 AB 00 FA 39 79 20 B7 6C 0D B0 [17:36:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AB E5 47 00 E1 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 31 35 34 10 04 04 00 44 71 00 00 F4 03 04 00 35 6D 1A 66 B6 04 01 00 00 48 95 6B E4 66 23 45 E8 [17:36:11]CommunicateWithHost err = 0 [17:36:11]CheckOFDResponse [17:36:11]1017 (14) - 77093643461234 [17:36:11]1041 (16) - 0000000000963154 [17:36:11]1040 (4) - 28996 [17:36:11]1012 (4) - 13.04.2024 11:32 [17:36:11]1206 (1) - 0 [17:36:11]OFD Sender: Remove packet 28996 [17:36:11]ProducePacketName [17:36:11]name=ofd_packets/00028996 [17:36:11]NVStorageDeleteData [17:36:11]Write to MH i2c: 01 00 00 96 53 E9 [17:36:11]Write i2c OK [17:36:11]MH_I2C_Read... [17:36:11]Read from MH i2c: 01 [17:36:11]MH_I2C_Read... [17:36:11]Read from MH i2c: 01 07 00 [17:36:11]MH_I2C_Read... [17:36:11]Read from MH i2c: 01 07 00 96 53 00 00 00 00 00 D7 0C D3 [17:36:11]RasterBufferAndPrint [17:36:11]line [17:36:11]line [17:36:11]line [17:36:11]line [17:36:11]line [17:36:11]written 0, free lines is 3294 [17:36:11]MH_Cut [17:36:11]Write to MH i2c: D1 01 00 9D 53 01 C2 [17:36:11]Write i2c OK [17:36:11]MH_I2C_Read... [17:36:11]Read from MH i2c: D1 [17:36:11]MH_I2C_Read... [17:36:11]Read from MH i2c: D1 01 00 [17:36:11]MH_I2C_Read... [17:36:11]Read from MH i2c: D1 01 00 9D 53 00 C1 [17:36:11]Write to MH i2c: 01 00 00 9E 53 F1 [17:36:11]Write i2c OK [17:36:11]MH_I2C_Read... [17:36:11]OFD Sender: No OFD packet to send [17:36:12]*** Cut start [17:36:12]*** Partial cut [17:36:12]*** CUTSNS_PIN = 1 [17:36:12]*** CUTSNS_PIN = 0 [17:36:12]*** Brake cut motor [17:36:12]Read from MH i2c: 01 [17:36:13]MH_I2C_Read... [17:36:13]*** Stop cut motor [17:36:13]*** Cut end [17:36:13]Read from MH i2c: 01 07 00 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: 01 07 00 9E 53 00 00 00 00 00 FF 0F 06 [17:36:13]process_action close_receipt done [17:36:13]requested_data is exist [17:36:13]produce_requested_data [17:36:13]requested_item fm.sn is exist - process it [17:36:13]wFMCommunicate request_size=4 [17:36:13]MH_SAM_APDU [17:36:13]CAPDU: 80 11 00 00 [17:36:13]Write to MH i2c: E2 08 00 9F 53 80 11 00 00 00 00 00 00 6C [17:36:13]Write i2c OK [17:36:13]MH_I2C_Read... [17:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:13]Read from MH i2c: E2 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: E2 17 00 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: E2 17 00 9F 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BB [17:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:36:13]wFMCommunicate OK [17:36:13]requested_item fd.num is exist - process it [17:36:13]SAM_PROTO_GetFieldsCounters [17:36:13]wFMCommunicate request_size=4 [17:36:13]MH_SAM_APDU [17:36:13]CAPDU: 80 13 00 00 [17:36:13]Write to MH i2c: E2 08 00 A0 53 80 13 00 00 00 00 00 00 6F [17:36:13]Write i2c OK [17:36:13]MH_I2C_Read... [17:36:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:13]Read from MH i2c: E2 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: E2 62 00 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: E2 62 00 A0 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 44 71 00 00 0E 04 04 00 73 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 36 [17:36: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 44 71 00 00 0E 04 04 00 73 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 [17:36:13]wFMCommunicate OK [17:36:13]SAM_PROTO_GetFieldsCounters done [17:36:13]requested_item shift.num is exist - process it [17:36:13]requested_item shift.opened is exist - process it [17:36:13]req_shift_opened [17:36:13]FM_GetShiftState [17:36:13]SAM_PROTO_GetShiftState [17:36:13]wFMCommunicate request_size=4 [17:36:13]MH_SAM_APDU [17:36:13]CAPDU: 80 13 01 00 [17:36:13]Write to MH i2c: E2 08 00 A1 53 80 13 01 00 00 00 00 00 71 [17:36:13]Write i2c OK [17:36:13]MH_I2C_Read... [17:36:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:13]Read from MH i2c: E2 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: E2 0E 00 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: E2 0E 00 A1 53 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 8A [17:36:13]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:36:13]wFMCommunicate OK [17:36:13]SAM_PROTO_GetShiftState done [17:36:13]FM_GetShiftState done [17:36:13]req_shift_opened done [17:36:13]requested_item shift.open_date is exist - process it [17:36:13]req_shift_open_date [17:36:13]req_shift_open_date done [17:36:13]produce_requested_data done [17:36:13]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28996,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [17:36:13]process_action_free close_receipt [17:36:13]json_value_free [17:36:13]json_value_free done [17:36:13]process_json_proto returns [17:36:13]Send response to host [17:36:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28996,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [17:36:13]free response buf [17:36:13]execute_script done [17:36:13]execute_script returns [17:36:13]free content buf [17:36:13]Sock 7.Close socket [17:36:13]Sock 7.Thread stoped [17:36:16]OFD Sender: No OFD packet to send [17:36:21]OFD Sender: No OFD packet to send [17:36:25]accept exits with 9 [17:36:25]New connection [17:36:25]New thread 3066928484 created [17:36:25]Thread 3066785124 joined [17:36:25]Waiting for new connection... [17:36:25] Sock 9.Parse request [17:36:25]Sock 9.Check first char [17:36:25]Sock 9.First char is OK [17:36:25]request: POST /json_proto HTTP/1.0 [17:36:25]Method: POST [17:36:25]URL: /json_proto [17:36:25]Method is POST - this is cgi request [17:36:25]url: /json_proto [17:36:25]query_string will be loaded in cgi processing [17:36:25]execute_cgi json_proto POST (null) [17:36:25]execute_cgi path=json_proto method=POST [17:36:25]POST find Content-Length [17:36:25]Host: 172.17.33.3:8080 [17:36:25]Content-Length: 681 [17:36:25]Content-Type: application/json [17:36:25] [17:36:25]POST finish read [17:36:25]Found Content-Length = 681 [17:36:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 18.240, "sum" : 600.10, "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:36:25]execute_script... [17:36: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)347360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 18.240, "sum" : 600.10, "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:36:25]POST & json_proto [17:36:25]process_json_proto [17:36:25]json parsed OK: [17:36:25]protocol is kg_v1.0 [17:36:25]action value=close_receipt [17:36:25]process_action close_receipt [17:36:25]cmd_close_receipt [17:36:25]MH_GetDate [17:36:25]Write to MH i2c: F0 00 00 A2 53 E4 [17:36:25]Write i2c OK [17:36:25]MH_I2C_Read... [17:36:25]Read from MH i2c: F0 [17:36:25]MH_I2C_Read... [17:36:25]Read from MH i2c: F0 09 00 [17:36:25]MH_I2C_Read... [17:36:25]Read from MH i2c: F0 09 00 A2 53 00 9F C2 1A 66 23 5B 8F 65 40 [17:36:25]GetLastDocTimeStamp 1713029774 [17:36:25]current date 1713029791 [17:36:25]FM_GetShiftState [17:36:25]SAM_PROTO_GetShiftState [17:36:25]wFMCommunicate request_size=4 [17:36:25]MH_SAM_APDU [17:36:25]CAPDU: 80 13 01 00 [17:36:25]Write to MH i2c: E2 08 00 A3 53 80 13 01 00 00 00 00 00 73 [17:36:25]Write i2c OK [17:36:25]MH_I2C_Read... [17:36:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:25]Read from MH i2c: E2 [17:36:25]MH_I2C_Read... [17:36:25]Read from MH i2c: E2 0E 00 [17:36:25]MH_I2C_Read... [17:36:25]Read from MH i2c: E2 0E 00 A3 53 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 8C [17:36:25]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:36:25]wFMCommunicate OK [17:36:25]SAM_PROTO_GetShiftState done [17:36:25]FM_GetShiftState done [17:36:25]opened in 1712967615 [17:36:25]opened+sec_in_day 1713054015 [17:36:25]quantity*price = 60009 [17:36:25]sum+1 = 60011 [17:36:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 204 13.04.2024 17:36 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 28997 ФПД: 41903744477626 1/tax-web-control/client/api/v1/ticket?date=20240413T173631&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28997&fm=41903744477626&tin=02508201610067®Number=0000138879044617&sum=60000 [17:36:26]StoreToDocumentArchive [17:36:26]shift 115 fd 28997 [17:36:26]save to /storage/0115/doc_00028997 [17:36:26]save last doc name /storage/0115/doc_00028997 to /storage/kkm_last_doc_name [17:36:26]save OK [17:36:26]Clear old archive folders... [17:36:26]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:36:26]tlvbuf is 011D4D80 [17:36:26]SAM_PROTO_ClearQueue [17:36:26]wFMCommunicate request_size=4 [17:36:26]MH_SAM_APDU [17:36:26]CAPDU: 80 09 00 00 [17:36:26]Write to MH i2c: E2 08 00 B0 53 80 09 00 00 00 00 00 00 75 [17:36:26]Write i2c OK [17:36:26]MH_I2C_Read... [17:36:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:26]Read from MH i2c: E2 [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: E2 03 00 [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: E2 03 00 B0 53 00 90 00 77 [17:36:26]RAPDU: 90 00 [17:36:26]wFMCommunicate OK [17:36:26]SAM_PROTO_ClearQueue done [17:36:26]KKMCreateOFDPacket [17:36:26]OFDProtocolAddRootSTLVToBuf [17:36:26]FM_MakeSignedData [17:36:26]FM_MakeSignedData [17:36:26]SAM_PROTO_SignData [17:36:26]wFMCommunicate request_size=4 [17:36:26]MH_SAM_APDU [17:36:26]CAPDU: 80 0D 01 02 [17:36:26]Write to MH i2c: E2 08 00 B1 53 80 0D 01 02 00 00 00 00 7D [17:36:26]Write i2c OK [17:36:26]MH_I2C_Read... [17:36:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:26]Read from MH i2c: E2 [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: E2 03 00 [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: E2 03 00 B1 53 00 90 00 78 [17:36:26]RAPDU: 90 00 [17:36:26]wFMCommunicate OK [17:36:26]wFMCommunicate request_size=255 [17:36:26]MH_SAM_APDU [17:36:26]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 40 47 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 6A 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 CC 00 00 00 F4 03 04 00 9F C2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 45 71 00 00 35 04 06 00 26 1C [17:36:26]Write to MH i2c: E2 02 01 B2 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 35 FF 03 08 00 03 40 47 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 6A 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 CC 00 00 00 F4 03 04 00 9F C2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 45 71 00 00 35 04 06 00 26 1C 00 00 D3 [17:36:26]Write i2c OK [17:36:26]MH_I2C_Read... [17:36:26]OFD Sender: No OFD packet to send [17:36:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:27]Read from MH i2c: E2 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: E2 03 00 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: E2 03 00 B2 53 00 90 00 79 [17:36:27]RAPDU: 90 00 [17:36:27]wFMCommunicate OK [17:36:27]wFMCommunicate request_size=9 [17:36:27]MH_SAM_APDU [17:36:27]CAPDU: 80 0D 02 02 04 79 CD E9 BA [17:36:27]Write to MH i2c: E2 0C 00 B3 53 80 0D 02 02 04 00 79 CD E9 BA 00 00 71 [17:36:27]Write i2c OK [17:36:27]MH_I2C_Read... [17:36:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:27]Read from MH i2c: E2 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: E2 03 00 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: E2 03 00 B3 53 00 90 00 7A [17:36:27]RAPDU: 90 00 [17:36:27]wFMCommunicate OK [17:36:27]wFMCommunicate request_size=4 [17:36:27]MH_SAM_APDU [17:36:27]CAPDU: 80 0D 03 02 [17:36:27]Write to MH i2c: E2 08 00 B4 53 80 0D 03 02 00 00 00 00 82 [17:36:27]Write i2c OK [17:36:27]MH_I2C_Read... [17:36:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:27]Read from MH i2c: E2 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: E2 0B 00 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: E2 0B 00 B4 53 00 7A 73 E9 12 01 DF A8 FD 90 00 F0 [17:36:27]RAPDU: 7A 73 E9 12 01 DF A8 FD 90 00 [17:36:27]wFMCommunicate OK [17:36:27]SAM_PROTO_SignData done [17:36:27]FM_MakeSignedData done [17:36:27]CreateOFDProtocolMessage [17:36:27]wFMCommunicate request_size=4 [17:36:27]MH_SAM_APDU [17:36:27]CAPDU: 80 11 00 00 [17:36:27]Write to MH i2c: E2 08 00 B5 53 80 11 00 00 00 00 00 00 82 [17:36:27]Write i2c OK [17:36:27]MH_I2C_Read... [17:36:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:27]Read from MH i2c: E2 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: E2 17 00 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: E2 17 00 B5 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D1 [17:36:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:36:27]wFMCommunicate OK [17:36:27]CreateOFDProtocolMessage done [17:36:27]OFDSenderStorePacket 28997 [17:36:27]StoreOFDPacket docnum=28997 [17:36:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 DB B3 06 01 C2 75 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 40 47 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 6A 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 CC 00 00 00 F4 03 04 00 9F C2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 45 71 00 00 35 04 06 00 26 1C 79 CD E9 BA 7A 73 E9 12 01 DF A8 FD [17:36:27]CheckFolder [17:36:27]dirname=/storage/ofd_packets [17:36:27]CheckFolder done [17:36:27]ProducePacketName [17:36:27]name=ofd_packets/00028997 [17:36:27]NVStorageSaveData ofd_packets/00028997 [17:36:27]File name is /storage/ofd_packets/00028997 [17:36:27]Write 300 bytes [17:36:27]NVStorageSaveData done [17:36:27]OFDSenderStorePacket done [17:36:27]KKMCreateOFDPacket done [17:36:27]NVStorageSaveData kkm_last_timestamp [17:36:27]File name is /storage/kkm_last_timestamp [17:36:27]Write 4 bytes [17:36:27]NVStorageSaveData done [17:36:27]ExternCall_PrintAddStr [17:36:27]wPrintStart [17:36:27]Write to MH i2c: 01 00 00 B6 53 09 [17:36:27]Write i2c OK [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: 01 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: 01 07 00 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: 01 07 00 B6 53 00 00 00 00 00 FF 0F 1E [17:36:27]RasterBufferAndPrint [17:36:27]line Счет N : (1)347360 [17:36:27]line ИНН: 02508201610067 [17:36:27]line Контрольно-Кассовый Чек [17:36:27]line ПРОДАЖА [17:36:27]line ТРК (МРК, ГНК) : 71 [17:36:27]line Товар: 2711129700 [17:36:27]line ГАЗ-К-5 [17:36:27]line 18.240 * 32.90 [17:36:27]line = 600.10 [17:36:27]line НДС 12% НСП 1% [17:36:27]line > о реализуемом товаре [17:36:27]line ОКРУГЛЕНИЕ: -0.10 [17:36:27]line ИТОГО: 600.00 [17:36:27]line Внесено: 600.00 [17:36:27]line СДАЧА: 0.00 [17:36:27]line НСП 1% : 5.31 [17:36:27]line НДС 12% : 63.73 [17:36:27]line Наличными: 600.00 [17:36:27]line Безнал.: 0.00 [17:36:27]line Место: АЗС № 108 "Партнер Нефть" [17:36:27]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:36:27]line СНО: Общий режим [17:36:27]line Чек 204 13.04.2024 17:36 [17:36:27]line Смена: 115 ФФД: 1.0 [17:36:27]line ЗНМ: 0300000027 [17:36:27]line РНМ: 0000138879044617 [17:36:27]line Версия ККМ: 001 [17:36:27]line ФМ: 0000000000963154 [17:36:27]line ФД: 28997 [17:36:27]line ФПД: 41903744477626 [17:36:27]line 1/tax-web-control/client/api/v1/ticket?date=20240413T173631&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28997&fm=41903744477626&tin=02508201610067®Number=0000138879044617&sum=60000 [17:36:27]OFD Sender: Processing packet 28997 [packets to send 8, broken 7] [17:36:27]ProducePacketName [17:36:27]name=ofd_packets/00028997 [17:36:27]OFD Sender: To server: pG, [17:36:27]CommunicateWithHost lk.salyk.kg:30040 [17:36:27]ConnectInit lk.salyk.kg [17:36:27]written 0, free lines is 4095 [17:36:27]Connected sock=10 [17:36: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 31 35 34 0E 01 00 00 DB B3 06 01 C2 75 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 40 47 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 6A 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 CC 00 00 00 F4 03 04 00 9F C2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 45 71 00 00 35 04 06 00 26 1C 79 CD E9 BA 7A 73 E9 12 01 DF A8 FD [17:36:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 49 52 47 00 66 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 31 35 34 10 04 04 00 45 71 00 00 F4 03 04 00 45 6D 1A 66 B6 04 01 00 00 1A 8B 6F 3A 06 52 73 32 [17:36:27]CommunicateWithHost err = 0 [17:36:27]CheckOFDResponse [17:36:27]1017 (14) - 77093643461234 [17:36:27]1041 (16) - 0000000000963154 [17:36:27]1040 (4) - 28997 [17:36:27]1012 (4) - 13.04.2024 11:32 [17:36:27]1206 (1) - 0 [17:36:27]OFD Sender: Remove packet 28997 [17:36:27]ProducePacketName [17:36:27]name=ofd_packets/00028997 [17:36:27]NVStorageDeleteData [17:36:27]Write to MH i2c: 01 00 00 E0 53 33 [17:36:27]Write i2c OK [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: 01 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: 01 07 00 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: 01 07 00 E0 53 00 00 00 00 00 D5 0C 1B [17:36:27]RasterBufferAndPrint [17:36:27]line [17:36:27]line [17:36:27]line [17:36:27]line [17:36:27]line [17:36:27]written 0, free lines is 3292 [17:36:27]MH_Cut [17:36:27]Write to MH i2c: D1 01 00 E7 53 01 0C [17:36:27]Write i2c OK [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: D1 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: D1 01 00 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: D1 01 00 E7 53 00 0B [17:36:27]Write to MH i2c: 01 00 00 E8 53 3B [17:36:28]Write i2c OK [17:36:28]MH_I2C_Read... [17:36:28]OFD Sender: No OFD packet to send [17:36:28]*** Cut start [17:36:28]*** Partial cut [17:36:28]*** CUTSNS_PIN = 1 [17:36:28]*** CUTSNS_PIN = 0 [17:36:29]*** Brake cut motor [17:36:29]Read from MH i2c: 01 [17:36:29]MH_I2C_Read... [17:36:29]*** Stop cut motor [17:36:29]*** Cut end [17:36:29]Read from MH i2c: 01 07 00 [17:36:29]MH_I2C_Read... [17:36:29]Read from MH i2c: 01 07 00 E8 53 00 00 00 00 00 FF 0F 50 [17:36:29]process_action close_receipt done [17:36:29]requested_data is exist [17:36:29]produce_requested_data [17:36:29]requested_item fm.sn is exist - process it [17:36:29]wFMCommunicate request_size=4 [17:36:29]MH_SAM_APDU [17:36:29]CAPDU: 80 11 00 00 [17:36:29]Write to MH i2c: E2 08 00 E9 53 80 11 00 00 00 00 00 00 B6 [17:36:29]Write i2c OK [17:36:29]MH_I2C_Read... [17:36:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:29]Read from MH i2c: E2 [17:36:29]MH_I2C_Read... [17:36:29]Read from MH i2c: E2 17 00 [17:36:29]MH_I2C_Read... [17:36:29]Read from MH i2c: E2 17 00 E9 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 05 [17:36:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:36:29]wFMCommunicate OK [17:36:29]requested_item fd.num is exist - process it [17:36:29]SAM_PROTO_GetFieldsCounters [17:36:29]wFMCommunicate request_size=4 [17:36:29]MH_SAM_APDU [17:36:29]CAPDU: 80 13 00 00 [17:36:29]Write to MH i2c: E2 08 00 EA 53 80 13 00 00 00 00 00 00 B9 [17:36:29]Write i2c OK [17:36:29]MH_I2C_Read... [17:36:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:29]Read from MH i2c: E2 [17:36:29]MH_I2C_Read... [17:36:29]Read from MH i2c: E2 62 00 [17:36:29]MH_I2C_Read... [17:36:29]Read from MH i2c: E2 62 00 EA 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 45 71 00 00 0E 04 04 00 73 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 84 [17:36: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 45 71 00 00 0E 04 04 00 73 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 [17:36:29]wFMCommunicate OK [17:36:29]SAM_PROTO_GetFieldsCounters done [17:36:29]requested_item shift.num is exist - process it [17:36:29]requested_item shift.opened is exist - process it [17:36:29]req_shift_opened [17:36:29]FM_GetShiftState [17:36:29]SAM_PROTO_GetShiftState [17:36:29]wFMCommunicate request_size=4 [17:36:29]MH_SAM_APDU [17:36:29]CAPDU: 80 13 01 00 [17:36:29]Write to MH i2c: E2 08 00 EB 53 80 13 01 00 00 00 00 00 BB [17:36:29]Write i2c OK [17:36:29]MH_I2C_Read... [17:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:29]Read from MH i2c: E2 [17:36:29]MH_I2C_Read... [17:36:29]Read from MH i2c: E2 0E 00 [17:36:29]MH_I2C_Read... [17:36:29]Read from MH i2c: E2 0E 00 EB 53 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D4 [17:36:29]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:36:29]wFMCommunicate OK [17:36:29]SAM_PROTO_GetShiftState done [17:36:29]FM_GetShiftState done [17:36:29]req_shift_opened done [17:36:29]requested_item shift.open_date is exist - process it [17:36:29]req_shift_open_date [17:36:29]req_shift_open_date done [17:36:29]produce_requested_data done [17:36:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28997,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [17:36:29]process_action_free close_receipt [17:36:29]json_value_free [17:36:29]json_value_free done [17:36:29]process_json_proto returns [17:36:29]Send response to host [17:36:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28997,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [17:36:29]free response buf [17:36:29]execute_script done [17:36:29]execute_script returns [17:36:29]free content buf [17:36:29]Sock 9.Close socket [17:36:29]Sock 9.Thread stoped [17:36:33]OFD Sender: No OFD packet to send [17:36:38]OFD Sender: No OFD packet to send [17:36:43]OFD Sender: No OFD packet to send [17:36:48]OFD Sender: No OFD packet to send [17:36:53]OFD Sender: No OFD packet to send [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:38]OFD Sender: No OFD packet to send [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:07]accept exits with 7 [17:41:07]New connection [17:41:07]New thread 3066785124 created [17:41:07]Thread 3066928484 joined [17:41:07]Waiting for new connection... [17:41:07] Sock 7.Parse request [17:41:07]Sock 7.Check first char [17:41:07]Sock 7.First char is OK [17:41:07]request: POST /json_proto HTTP/1.0 [17:41:07]Method: POST [17:41:07]URL: /json_proto [17:41:07]Method is POST - this is cgi request [17:41:07]url: /json_proto [17:41:07]query_string will be loaded in cgi processing [17:41:07]execute_cgi json_proto POST (null) [17:41:07]execute_cgi path=json_proto method=POST [17:41:07]POST find Content-Length [17:41:07]Host: 172.17.33.3:8080 [17:41:07]Content-Length: 816 [17:41:07]Content-Type: application/json [17:41:07] [17:41:07]POST finish read [17:41:07]Found Content-Length = 816 [17:41:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347361", "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" : 72.50, "quantity" : 4.140, "sum" : 300.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:07]execute_script... [17:41: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)347361", "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" : 72.50, "quantity" : 4.140, "sum" : 300.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:07]POST & json_proto [17:41:07]process_json_proto [17:41:07]json parsed OK: [17:41:07]protocol is kg_v1.0 [17:41:07]action value=close_receipt [17:41:07]process_action close_receipt [17:41:07]cmd_close_receipt [17:41:07]MH_GetDate [17:41:07]Write to MH i2c: F0 00 00 EC 53 2E [17:41:07]Write i2c OK [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: F0 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: F0 09 00 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: F0 09 00 EC 53 00 B9 C3 1A 66 23 5B 8F 65 A5 [17:41:07]GetLastDocTimeStamp 1713029791 [17:41:07]current date 1713030073 [17:41:07]FM_GetShiftState [17:41:07]SAM_PROTO_GetShiftState [17:41:07]wFMCommunicate request_size=4 [17:41:07]MH_SAM_APDU [17:41:07]CAPDU: 80 13 01 00 [17:41:07]Write to MH i2c: E2 08 00 ED 53 80 13 01 00 00 00 00 00 BD [17:41:07]Write i2c OK [17:41:07]MH_I2C_Read... [17:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:07]Read from MH i2c: E2 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: E2 0E 00 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: E2 0E 00 ED 53 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D6 [17:41:07]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:41:07]wFMCommunicate OK [17:41:07]SAM_PROTO_GetShiftState done [17:41:07]FM_GetShiftState done [17:41:07]opened in 1712967615 [17:41:07]opened+sec_in_day 1713054015 [17:41:07]quantity*price = 30015 [17:41:07]sum+1 = 30016 [17:41:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.15 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 0.00 Безнал.: 300.15 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 205 13.04.2024 17:41 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 28998 ФПД: 51978560052113 1/tax-web-control/client/api/v1/ticket?date=20240413T174113&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28998&fm=51978560052113&tin=02508201610067®Number=0000138879044617&sum=30015 [17:41:08]StoreToDocumentArchive [17:41:08]shift 115 fd 28998 [17:41:08]save to /storage/0115/doc_00028998 [17:41:08]save last doc name /storage/0115/doc_00028998 to /storage/kkm_last_doc_name [17:41:08]save OK [17:41:08]Clear old archive folders... [17:41:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:41:08]tlvbuf is 012F0AE0 [17:41:08]SAM_PROTO_ClearQueue [17:41:08]wFMCommunicate request_size=4 [17:41:08]MH_SAM_APDU [17:41:08]CAPDU: 80 09 00 00 [17:41:08]Write to MH i2c: E2 08 00 FA 53 80 09 00 00 00 00 00 00 BF [17:41:08]Write i2c OK [17:41:08]MH_I2C_Read... [17:41:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:08]Read from MH i2c: E2 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: E2 03 00 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: E2 03 00 FA 53 00 90 00 C1 [17:41:08]RAPDU: 90 00 [17:41:08]wFMCommunicate OK [17:41:08]SAM_PROTO_ClearQueue done [17:41:08]KKMCreateOFDPacket [17:41:08]OFDProtocolAddRootSTLVToBuf [17:41:08]FM_MakeSignedData [17:41:08]FM_MakeSignedData [17:41:08]SAM_PROTO_SignData [17:41:08]wFMCommunicate request_size=4 [17:41:08]MH_SAM_APDU [17:41:08]CAPDU: 80 0D 01 02 [17:41:08]Write to MH i2c: E2 08 00 FB 53 80 0D 01 02 00 00 00 00 C7 [17:41:08]Write i2c OK [17:41:08]MH_I2C_Read... [17:41:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:08]Read from MH i2c: E2 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: E2 03 00 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: E2 03 00 FB 53 00 90 00 C2 [17:41:08]RAPDU: 90 00 [17:41:08]wFMCommunicate OK [17:41:08]wFMCommunicate request_size=255 [17:41:08]MH_SAM_APDU [17:41: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 2C 10 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 3F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3F 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 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3F 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 B9 C3 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 46 71 00 00 35 04 06 00 2F [17:41:08]Write to MH i2c: E2 02 01 FC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 10 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 3F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3F 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 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3F 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 B9 C3 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 46 71 00 00 35 04 06 00 2F 00 00 64 [17:41:08]OFD Sender: No OFD packet to send [17:41:08]Write i2c OK [17:41:08]MH_I2C_Read... [17:41:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:08]Read from MH i2c: E2 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: E2 03 00 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: E2 03 00 FC 53 00 90 00 C3 [17:41:08]RAPDU: 90 00 [17:41:08]wFMCommunicate OK [17:41:08]wFMCommunicate request_size=10 [17:41:08]MH_SAM_APDU [17:41:08]CAPDU: 80 0D 02 02 05 46 33 9B 9B 91 [17:41:08]Write to MH i2c: E2 0D 00 FD 53 80 0D 02 02 05 00 46 33 9B 9B 91 00 00 14 [17:41:08]Write i2c OK [17:41:08]MH_I2C_Read... [17:41:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:08]Read from MH i2c: E2 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: E2 03 00 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: E2 03 00 FD 53 00 90 00 C4 [17:41:08]RAPDU: 90 00 [17:41:08]wFMCommunicate OK [17:41:08]wFMCommunicate request_size=4 [17:41:08]MH_SAM_APDU [17:41:08]CAPDU: 80 0D 03 02 [17:41:08]Write to MH i2c: E2 08 00 FE 53 80 0D 03 02 00 00 00 00 CC [17:41:08]Write i2c OK [17:41:08]MH_I2C_Read... [17:41:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:08]Read from MH i2c: E2 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: E2 0B 00 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: E2 0B 00 FE 53 00 26 C8 73 E9 B8 EC 32 3B 90 00 28 [17:41:08]RAPDU: 26 C8 73 E9 B8 EC 32 3B 90 00 [17:41:08]wFMCommunicate OK [17:41:08]SAM_PROTO_SignData done [17:41:08]FM_MakeSignedData done [17:41:08]CreateOFDProtocolMessage [17:41:08]wFMCommunicate request_size=4 [17:41:08]MH_SAM_APDU [17:41:08]CAPDU: 80 11 00 00 [17:41:08]Write to MH i2c: E2 08 00 FF 53 80 11 00 00 00 00 00 00 CC [17:41:08]Write i2c OK [17:41:08]MH_I2C_Read... [17:41:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:08]Read from MH i2c: E2 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: E2 17 00 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: E2 17 00 FF 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1B [17:41:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:41:08]wFMCommunicate OK [17:41:08]CreateOFDProtocolMessage done [17:41:08]OFDSenderStorePacket 28998 [17:41:08]StoreOFDPacket docnum=28998 [17:41:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 92 75 07 01 FF 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 10 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 3F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3F 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 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3F 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 B9 C3 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 46 71 00 00 35 04 06 00 2F 46 33 9B 9B 91 26 C8 73 E9 B8 EC 32 3B [17:41:08]CheckFolder [17:41:08]dirname=/storage/ofd_packets [17:41:08]CheckFolder done [17:41:08]ProducePacketName [17:41:08]name=ofd_packets/00028998 [17:41:08]NVStorageSaveData ofd_packets/00028998 [17:41:08]File name is /storage/ofd_packets/00028998 [17:41:08]Write 301 bytes [17:41:08]NVStorageSaveData done [17:41:08]OFDSenderStorePacket done [17:41:08]KKMCreateOFDPacket done [17:41:08]NVStorageSaveData kkm_last_timestamp [17:41:08]File name is /storage/kkm_last_timestamp [17:41:08]Write 4 bytes [17:41:08]NVStorageSaveData done [17:41:08]ExternCall_PrintAddStr [17:41:08]wPrintStart [17:41:08]Write to MH i2c: 01 00 00 00 54 54 [17:41:08]Write i2c OK [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: 01 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: 01 07 00 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: 01 07 00 00 54 00 00 00 00 00 FF 0F 69 [17:41:08]RasterBufferAndPrint [17:41:08]line Счет N : (1)347361 [17:41:08]line ИНН: 02508201610067 [17:41:08]line Контрольно-Кассовый Чек [17:41:08]line ПРОДАЖА [17:41:08]line ТРК (МРК, ГНК) : 33 [17:41:08]line Товар: 2710124500 [17:41:08]line Аи-95-К-5 [17:41:08]line 4.140 * 72.50 [17:41:08]line = 300.15 [17:41:08]line НДС 12% НСП 1% [17:41:08]line > о реализуемом товаре [17:41:08]line ИТОГО: 300.15 [17:41:08]line НСП 1% : 2.66 [17:41:08]line НДС 12% : 31.87 [17:41:08]line Наличными: 0.00 [17:41:08]line Безнал.: 300.15 [17:41:08]line Место: АЗС № 108 "Партнер Нефть" [17:41:08]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:41:08]line СНО: Общий режим [17:41:08]line Чек 205 13.04.2024 17:41 [17:41:08]line Смена: 115 ФФД: 1.0 [17:41:08]line ЗНМ: 0300000027 [17:41:08]line РНМ: 0000138879044617 [17:41:08]line Версия ККМ: 001 [17:41:08]line Платежная система: Бакай Банк [17:41:08]line ФМ: 0000000000963154 [17:41:08]line ФД: 28998 [17:41:08]line ФПД: 51978560052113 [17:41:08]line 1/tax-web-control/client/api/v1/ticket?date=20240413T174113&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28998&fm=51978560052113&tin=02508201610067®Number=0000138879044617&sum=30015 [17:41:09]OFD Sender: Processing packet 28998 [packets to send 8, broken 7] [17:41:09]ProducePacketName [17:41:09]name=ofd_packets/00028998 [17:41:09]OFD Sender: To server: pG, [17:41:09]CommunicateWithHost lk.salyk.kg:30040 [17:41:09]ConnectInit lk.salyk.kg [17:41:09]written 0, free lines is 4095 [17:41:09]Connected sock=10 [17:41: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 31 35 34 0F 01 00 00 92 75 07 01 FF 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 10 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 3F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3F 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 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3F 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 B9 C3 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 46 71 00 00 35 04 06 00 2F 46 33 9B 9B 91 26 C8 73 E9 B8 EC 32 3B [17:41:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 FF 1B 47 00 AB F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 46 71 00 00 F4 03 04 00 5F 6E 1A 66 B6 04 01 00 00 E0 E2 52 96 F8 C0 A4 EF [17:41:09]CommunicateWithHost err = 0 [17:41:09]CheckOFDResponse [17:41:09]1017 (14) - 77093643461234 [17:41:09]1041 (16) - 0000000000963154 [17:41:09]1040 (4) - 28998 [17:41:09]1012 (4) - 13.04.2024 11:37 [17:41:09]1206 (1) - 0 [17:41:09]OFD Sender: Remove packet 28998 [17:41:09]ProducePacketName [17:41:09]name=ofd_packets/00028998 [17:41:09]NVStorageDeleteData [17:41:09]Write to MH i2c: 01 00 00 29 54 7D [17:41:09]Write i2c OK [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: 01 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: 01 07 00 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: 01 07 00 29 54 00 00 00 00 00 E1 0C 71 [17:41:09]RasterBufferAndPrint [17:41:09]line [17:41:09]line [17:41:09]line [17:41:09]line [17:41:09]line [17:41:09]written 0, free lines is 3303 [17:41:09]MH_Cut [17:41:09]Write to MH i2c: D1 01 00 30 54 01 56 [17:41:09]Write i2c OK [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: D1 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: D1 01 00 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: D1 01 00 30 54 00 55 [17:41:09]Write to MH i2c: 01 00 00 31 54 85 [17:41:09]Write i2c OK [17:41:09]MH_I2C_Read... [17:41:10]OFD Sender: No OFD packet to send [17:41:10]*** Cut start [17:41:10]*** Partial cut [17:41:10]*** CUTSNS_PIN = 1 [17:41:10]*** CUTSNS_PIN = 0 [17:41:10]*** Brake cut motor [17:41:11]Read from MH i2c: 01 [17:41:11]MH_I2C_Read... [17:41:11]*** Stop cut motor [17:41:11]*** Cut end [17:41:11]Read from MH i2c: 01 07 00 [17:41:11]MH_I2C_Read... [17:41:11]Read from MH i2c: 01 07 00 31 54 00 00 00 00 00 FF 0F 9A [17:41:11]process_action close_receipt done [17:41:11]requested_data is exist [17:41:11]produce_requested_data [17:41:11]requested_item fm.sn is exist - process it [17:41:11]wFMCommunicate request_size=4 [17:41:11]MH_SAM_APDU [17:41:11]CAPDU: 80 11 00 00 [17:41:11]Write to MH i2c: E2 08 00 32 54 80 11 00 00 00 00 00 00 00 [17:41:11]Write i2c OK [17:41:11]MH_I2C_Read... [17:41:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:11]Read from MH i2c: E2 [17:41:11]MH_I2C_Read... [17:41:11]Read from MH i2c: E2 17 00 [17:41:11]MH_I2C_Read... [17:41:11]Read from MH i2c: E2 17 00 32 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4F [17:41:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:41:11]wFMCommunicate OK [17:41:11]requested_item fd.num is exist - process it [17:41:11]SAM_PROTO_GetFieldsCounters [17:41:11]wFMCommunicate request_size=4 [17:41:11]MH_SAM_APDU [17:41:11]CAPDU: 80 13 00 00 [17:41:11]Write to MH i2c: E2 08 00 33 54 80 13 00 00 00 00 00 00 03 [17:41:11]Write i2c OK [17:41:11]MH_I2C_Read... [17:41:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:11]Read from MH i2c: E2 [17:41:11]MH_I2C_Read... [17:41:11]Read from MH i2c: E2 62 00 [17:41:11]MH_I2C_Read... [17:41:11]Read from MH i2c: E2 62 00 33 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 46 71 00 00 0E 04 04 00 73 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 D2 [17:41: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 46 71 00 00 0E 04 04 00 73 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 [17:41:11]wFMCommunicate OK [17:41:11]SAM_PROTO_GetFieldsCounters done [17:41:11]requested_item shift.num is exist - process it [17:41:11]requested_item shift.opened is exist - process it [17:41:11]req_shift_opened [17:41:11]FM_GetShiftState [17:41:11]SAM_PROTO_GetShiftState [17:41:11]wFMCommunicate request_size=4 [17:41:11]MH_SAM_APDU [17:41:11]CAPDU: 80 13 01 00 [17:41:11]Write to MH i2c: E2 08 00 34 54 80 13 01 00 00 00 00 00 05 [17:41:11]Write i2c OK [17:41:11]MH_I2C_Read... [17:41:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:11]Read from MH i2c: E2 [17:41:11]MH_I2C_Read... [17:41:11]Read from MH i2c: E2 0E 00 [17:41:11]MH_I2C_Read... [17:41:11]Read from MH i2c: E2 0E 00 34 54 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 1E [17:41:11]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:41:11]wFMCommunicate OK [17:41:11]SAM_PROTO_GetShiftState done [17:41:11]FM_GetShiftState done [17:41:11]req_shift_opened done [17:41:11]requested_item shift.open_date is exist - process it [17:41:11]req_shift_open_date [17:41:11]req_shift_open_date done [17:41:11]produce_requested_data done [17:41:11]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28998,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [17:41:11]process_action_free close_receipt [17:41:11]json_value_free [17:41:11]json_value_free done [17:41:11]process_json_proto returns [17:41:11]Send response to host [17:41:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28998,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [17:41:11]free response buf [17:41:11]execute_script done [17:41:11]execute_script returns [17:41:11]free content buf [17:41:11]Sock 7.Close socket [17:41:11]Sock 7.Thread stoped [17:41:15]OFD Sender: No OFD packet to send [17:41:20]OFD Sender: No OFD packet to send [17:41:25]OFD Sender: No OFD packet to send [17:41:30]OFD Sender: No OFD packet to send [17:41:35]OFD Sender: No OFD packet to send [17:41:40]OFD Sender: No OFD packet to send [17:41:45]OFD Sender: No OFD packet to send [17:41:50]OFD Sender: No OFD packet to send [17:41:55]OFD Sender: No OFD packet to send [17:42:00]OFD Sender: No OFD packet to send [17:42:05]OFD Sender: No OFD packet to send [17:42:10]OFD Sender: No OFD packet to send [17:42:15]OFD Sender: No OFD packet to send [17:42:20]OFD Sender: No OFD packet to send [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:45]OFD Sender: No OFD packet to send [17:42:48]accept exits with 9 [17:42:48]New connection [17:42:48]New thread 3066928484 created [17:42:48]Thread 3066785124 joined [17:42:48]Waiting for new connection... [17:42:48] Sock 9.Parse request [17:42:48]Sock 9.Check first char [17:42:48]Sock 9.First char is OK [17:42:48]request: POST /json_proto HTTP/1.0 [17:42:48]Method: POST [17:42:48]URL: /json_proto [17:42:48]Method is POST - this is cgi request [17:42:48]url: /json_proto [17:42:48]query_string will be loaded in cgi processing [17:42:48]execute_cgi json_proto POST (null) [17:42:48]execute_cgi path=json_proto method=POST [17:42:48]POST find Content-Length [17:42:48]Host: 172.17.33.3:8080 [17:42:48]Content-Length: 809 [17:42:48]Content-Type: application/json [17:42:48] [17:42:48]POST finish read [17:42:48]Found Content-Length = 809 [17:42:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 4.600, "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:48]execute_script... [17:42: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)347362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 4.600, "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:48]POST & json_proto [17:42:48]process_json_proto [17:42:48]json parsed OK: [17:42:48]protocol is kg_v1.0 [17:42:48]action value=close_receipt [17:42:48]process_action close_receipt [17:42:48]cmd_close_receipt [17:42:48]MH_GetDate [17:42:48]Write to MH i2c: F0 00 00 35 54 78 [17:42:48]Write i2c OK [17:42:48]MH_I2C_Read... [17:42:48]Read from MH i2c: F0 [17:42:48]MH_I2C_Read... [17:42:48]Read from MH i2c: F0 09 00 [17:42:48]MH_I2C_Read... [17:42:48]Read from MH i2c: F0 09 00 35 54 00 1E C4 1A 66 23 5B 8F 65 55 [17:42:48]GetLastDocTimeStamp 1713030073 [17:42:48]current date 1713030174 [17:42:48]FM_GetShiftState [17:42:48]SAM_PROTO_GetShiftState [17:42:48]wFMCommunicate request_size=4 [17:42:48]MH_SAM_APDU [17:42:48]CAPDU: 80 13 01 00 [17:42:48]Write to MH i2c: E2 08 00 36 54 80 13 01 00 00 00 00 00 07 [17:42:48]Write i2c OK [17:42:48]MH_I2C_Read... [17:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:48]Read from MH i2c: E2 [17:42:48]MH_I2C_Read... [17:42:48]Read from MH i2c: E2 0E 00 [17:42:48]MH_I2C_Read... [17:42:48]Read from MH i2c: E2 0E 00 36 54 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 20 [17:42:48]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:42:48]wFMCommunicate OK [17:42:48]SAM_PROTO_GetShiftState done [17:42:48]FM_GetShiftState done [17:42:48]opened in 1712967615 [17:42:48]opened+sec_in_day 1713054015 [17:42:48]quantity*price = 30038 [17:42:48]sum+1 = 30039 [17:42:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 206 13.04.2024 17:42 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 28999 ФПД: 141085932641643 1/tax-web-control/client/api/v1/ticket?date=20240413T174254&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28999&fm=141085932641643&tin=02508201610067®Number=0000138879044617&sum=30038 [17:42:49]StoreToDocumentArchive [17:42:49]shift 115 fd 28999 [17:42:49]save to /storage/0115/doc_00028999 [17:42:49]save last doc name /storage/0115/doc_00028999 to /storage/kkm_last_doc_name [17:42:49]save OK [17:42:49]Clear old archive folders... [17:42:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:42:49]tlvbuf is 01224400 [17:42:49]SAM_PROTO_ClearQueue [17:42:49]wFMCommunicate request_size=4 [17:42:49]MH_SAM_APDU [17:42:49]CAPDU: 80 09 00 00 [17:42:49]Write to MH i2c: E2 08 00 43 54 80 09 00 00 00 00 00 00 09 [17:42:49]Write i2c OK [17:42:49]MH_I2C_Read... [17:42:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:49]Read from MH i2c: E2 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: E2 03 00 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: E2 03 00 43 54 00 90 00 0B [17:42:49]RAPDU: 90 00 [17:42:49]wFMCommunicate OK [17:42:49]SAM_PROTO_ClearQueue done [17:42:49]KKMCreateOFDPacket [17:42:49]OFDProtocolAddRootSTLVToBuf [17:42:49]FM_MakeSignedData [17:42:49]FM_MakeSignedData [17:42:49]SAM_PROTO_SignData [17:42:49]wFMCommunicate request_size=4 [17:42:49]MH_SAM_APDU [17:42:49]CAPDU: 80 0D 01 02 [17:42:49]Write to MH i2c: E2 08 00 44 54 80 0D 01 02 00 00 00 00 11 [17:42:49]Write i2c OK [17:42:49]MH_I2C_Read... [17:42:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:49]Read from MH i2c: E2 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: E2 03 00 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: E2 03 00 44 54 00 90 00 0C [17:42:49]RAPDU: 90 00 [17:42:49]wFMCommunicate OK [17:42:49]wFMCommunicate request_size=255 [17:42:49]MH_SAM_APDU [17:42:49]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 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 CE 00 00 00 F4 03 04 00 1E C4 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 47 71 00 00 35 04 06 00 [17:42:49]Write to MH i2c: E2 02 01 45 54 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 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 CE 00 00 00 F4 03 04 00 1E C4 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 47 71 00 00 35 04 06 00 00 00 CF [17:42:49]Write i2c OK [17:42:49]MH_I2C_Read... [17:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:49]Read from MH i2c: E2 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: E2 03 00 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: E2 03 00 45 54 00 90 00 0D [17:42:49]RAPDU: 90 00 [17:42:49]wFMCommunicate OK [17:42:49]wFMCommunicate request_size=11 [17:42:49]MH_SAM_APDU [17:42:49]CAPDU: 80 0D 02 02 06 80 51 20 E5 DD 6B [17:42:49]Write to MH i2c: E2 0E 00 46 54 80 0D 02 02 06 00 80 51 20 E5 DD 6B 00 00 3E [17:42:49]Write i2c OK [17:42:49]MH_I2C_Read... [17:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:49]Read from MH i2c: E2 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: E2 03 00 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: E2 03 00 46 54 00 90 00 0E [17:42:49]RAPDU: 90 00 [17:42:49]wFMCommunicate OK [17:42:49]wFMCommunicate request_size=4 [17:42:49]MH_SAM_APDU [17:42:49]CAPDU: 80 0D 03 02 [17:42:49]Write to MH i2c: E2 08 00 47 54 80 0D 03 02 00 00 00 00 16 [17:42:49]Write i2c OK [17:42:49]MH_I2C_Read... [17:42:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:49]Read from MH i2c: E2 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: E2 0B 00 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: E2 0B 00 47 54 00 60 B2 A4 38 23 D5 D5 8A 90 00 5C [17:42:49]RAPDU: 60 B2 A4 38 23 D5 D5 8A 90 00 [17:42:49]wFMCommunicate OK [17:42:49]SAM_PROTO_SignData done [17:42:49]FM_MakeSignedData done [17:42:49]CreateOFDProtocolMessage [17:42:49]wFMCommunicate request_size=4 [17:42:49]MH_SAM_APDU [17:42:49]CAPDU: 80 11 00 00 [17:42:49]Write to MH i2c: E2 08 00 48 54 80 11 00 00 00 00 00 00 16 [17:42:49]Write i2c OK [17:42:49]MH_I2C_Read... [17:42:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:49]Read from MH i2c: E2 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: E2 17 00 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: E2 17 00 48 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 65 [17:42:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:42:49]wFMCommunicate OK [17:42:49]CreateOFDProtocolMessage done [17:42:49]OFDSenderStorePacket 28999 [17:42:49]StoreOFDPacket docnum=28999 [17:42:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 9E E8 08 01 E6 A7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 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 CE 00 00 00 F4 03 04 00 1E C4 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 47 71 00 00 35 04 06 00 80 51 20 E5 DD 6B 60 B2 A4 38 23 D5 D5 8A [17:42:49]CheckFolder [17:42:49]dirname=/storage/ofd_packets [17:42:49]CheckFolder done [17:42:49]ProducePacketName [17:42:49]name=ofd_packets/00028999 [17:42:49]NVStorageSaveData ofd_packets/00028999 [17:42:49]File name is /storage/ofd_packets/00028999 [17:42:49]Write 302 bytes [17:42:49]NVStorageSaveData done [17:42:49]OFDSenderStorePacket done [17:42:49]KKMCreateOFDPacket done [17:42:49]NVStorageSaveData kkm_last_timestamp [17:42:49]File name is /storage/kkm_last_timestamp [17:42:49]Write 4 bytes [17:42:49]NVStorageSaveData done [17:42:49]OFD Sender: Processing packet 28999 [packets to send 8, broken 7] [17:42:49]ProducePacketName [17:42:49]name=ofd_packets/00028999 [17:42:49]OFD Sender: To server: pG, [17:42:49]CommunicateWithHost lk.salyk.kg:30040 [17:42:49]ConnectInit lk.salyk.kg [17:42:49]ExternCall_PrintAddStr [17:42:49]wPrintStart [17:42:49]Write to MH i2c: 01 00 00 49 54 9D [17:42:49]Write i2c OK [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: 01 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: 01 07 00 [17:42:49]MH_I2C_Read... [17:42:49]Read from MH i2c: 01 07 00 49 54 00 00 00 00 00 FF 0F B2 [17:42:49]RasterBufferAndPrint [17:42:49]line Счет N : (1)347362 [17:42:49]line ИНН: 02508201610067 [17:42:49]line Контрольно-Кассовый Чек [17:42:49]line ПРОДАЖА [17:42:49]line ТРК (МРК, ГНК) : 31 [17:42:49]line Товар: 2710124130 [17:42:49]line SUPER-92-К-5 [17:42:49]line 4.600 * 65.30 [17:42:49]line = 300.38 [17:42:49]line НДС 12% НСП 1% [17:42:49]line > о реализуемом товаре [17:42:49]line ИТОГО: 300.38 [17:42:49]line НСП 1% : 2.66 [17:42:49]line НДС 12% : 31.90 [17:42:49]line Наличными: 0.00 [17:42:49]line Безнал.: 300.38 [17:42:49]line Место: АЗС № 108 "Партнер Нефть" [17:42:49]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:42:49]line СНО: Общий режим [17:42:49]line Чек 206 13.04.2024 17:42 [17:42:49]line Смена: 115 ФФД: 1.0 [17:42:49]line ЗНМ: 0300000027 [17:42:49]line РНМ: 0000138879044617 [17:42:49]line Версия ККМ: 001 [17:42:49]line Платежная система: Бакай Банк [17:42:49]line ФМ: 0000000000963154 [17:42:49]line ФД: 28999 [17:42:49]line ФПД: 141085932641643 [17:42:50]line 1/tax-web-control/client/api/v1/ticket?date=20240413T174254&type=1&operation_type=1&fn_number=0000000000963154&fd_number=28999&fm=141085932641643&tin=02508201610067®Number=0000138879044617&sum=30038 [17:42:50]Connected sock=11 [17:42: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 31 35 34 10 01 00 00 9E E8 08 01 E6 A7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 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 CE 00 00 00 F4 03 04 00 1E C4 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 47 71 00 00 35 04 06 00 80 51 20 E5 DD 6B 60 B2 A4 38 23 D5 D5 8A [17:42:50]written 0, free lines is 4095 [17:42:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AD 62 47 00 32 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 47 71 00 00 F4 03 04 00 C4 6E 1A 66 B6 04 01 00 00 E0 B7 1F 3D 35 7B 86 ED [17:42:50]CommunicateWithHost err = 0 [17:42:50]CheckOFDResponse [17:42:50]1017 (14) - 77093643461234 [17:42:50]1041 (16) - 0000000000963154 [17:42:50]1040 (4) - 28999 [17:42:50]1012 (4) - 13.04.2024 11:38 [17:42:50]1206 (1) - 0 [17:42:50]OFD Sender: Remove packet 28999 [17:42:50]ProducePacketName [17:42:50]name=ofd_packets/00028999 [17:42:50]NVStorageDeleteData [17:42:50]Write to MH i2c: 01 00 00 72 54 C6 [17:42:50]Write i2c OK [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: 01 [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: 01 07 00 [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: 01 07 00 72 54 00 00 00 00 00 DC 0C B5 [17:42:50]RasterBufferAndPrint [17:42:50]line [17:42:50]line [17:42:50]line [17:42:50]line [17:42:50]line [17:42:50]written 0, free lines is 3299 [17:42:50]MH_Cut [17:42:50]Write to MH i2c: D1 01 00 79 54 01 9F [17:42:50]Write i2c OK [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: D1 [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: D1 01 00 [17:42:50]MH_I2C_Read... [17:42:50]Read from MH i2c: D1 01 00 79 54 00 9E [17:42:50]Write to MH i2c: 01 00 00 7A 54 CE [17:42:50]Write i2c OK [17:42:50]MH_I2C_Read... [17:42:50]OFD Sender: No OFD packet to send [17:42:51]*** Cut start [17:42:51]*** Partial cut [17:42:51]*** CUTSNS_PIN = 1 [17:42:51]*** CUTSNS_PIN = 0 [17:42:51]*** Brake cut motor [17:42:52]Read from MH i2c: 01 [17:42:52]MH_I2C_Read... [17:42:52]*** Stop cut motor [17:42:52]*** Cut end [17:42:52]Read from MH i2c: 01 07 00 [17:42:52]MH_I2C_Read... [17:42:52]Read from MH i2c: 01 07 00 7A 54 00 00 00 00 00 FF 0F E3 [17:42:52]process_action close_receipt done [17:42:52]requested_data is exist [17:42:52]produce_requested_data [17:42:52]requested_item fm.sn is exist - process it [17:42:52]wFMCommunicate request_size=4 [17:42:52]MH_SAM_APDU [17:42:52]CAPDU: 80 11 00 00 [17:42:52]Write to MH i2c: E2 08 00 7B 54 80 11 00 00 00 00 00 00 49 [17:42:52]Write i2c OK [17:42:52]MH_I2C_Read... [17:42:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:52]Read from MH i2c: E2 [17:42:52]MH_I2C_Read... [17:42:52]Read from MH i2c: E2 17 00 [17:42:52]MH_I2C_Read... [17:42:52]Read from MH i2c: E2 17 00 7B 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 98 [17:42:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:42:52]wFMCommunicate OK [17:42:52]requested_item fd.num is exist - process it [17:42:52]SAM_PROTO_GetFieldsCounters [17:42:52]wFMCommunicate request_size=4 [17:42:52]MH_SAM_APDU [17:42:52]CAPDU: 80 13 00 00 [17:42:52]Write to MH i2c: E2 08 00 7C 54 80 13 00 00 00 00 00 00 4C [17:42:52]Write i2c OK [17:42:52]MH_I2C_Read... [17:42:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:52]Read from MH i2c: E2 [17:42:52]MH_I2C_Read... [17:42:52]Read from MH i2c: E2 62 00 [17:42:52]MH_I2C_Read... [17:42:52]Read from MH i2c: E2 62 00 7C 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 47 71 00 00 0E 04 04 00 73 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 1F [17:42: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 47 71 00 00 0E 04 04 00 73 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 [17:42:52]wFMCommunicate OK [17:42:52]SAM_PROTO_GetFieldsCounters done [17:42:52]requested_item shift.num is exist - process it [17:42:52]requested_item shift.opened is exist - process it [17:42:52]req_shift_opened [17:42:52]FM_GetShiftState [17:42:52]SAM_PROTO_GetShiftState [17:42:52]wFMCommunicate request_size=4 [17:42:52]MH_SAM_APDU [17:42:52]CAPDU: 80 13 01 00 [17:42:52]Write to MH i2c: E2 08 00 7D 54 80 13 01 00 00 00 00 00 4E [17:42:52]Write i2c OK [17:42:52]MH_I2C_Read... [17:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:52]Read from MH i2c: E2 [17:42:52]MH_I2C_Read... [17:42:52]Read from MH i2c: E2 0E 00 [17:42:52]MH_I2C_Read... [17:42:52]Read from MH i2c: E2 0E 00 7D 54 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 67 [17:42:52]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:42:52]wFMCommunicate OK [17:42:52]SAM_PROTO_GetShiftState done [17:42:52]FM_GetShiftState done [17:42:52]req_shift_opened done [17:42:52]requested_item shift.open_date is exist - process it [17:42:52]req_shift_open_date [17:42:52]req_shift_open_date done [17:42:52]produce_requested_data done [17:42:52]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28999,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [17:42:52]process_action_free close_receipt [17:42:52]json_value_free [17:42:52]json_value_free done [17:42:52]process_json_proto returns [17:42:52]Send response to host [17:42:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28999,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [17:42:52]free response buf [17:42:52]execute_script done [17:42:52]execute_script returns [17:42:52]free content buf [17:42:52]Sock 9.Close socket [17:42:52]Sock 9.Thread stoped [17:42:55]OFD Sender: No OFD packet to send [17:43:00]OFD Sender: No OFD packet to send [17:43:05]OFD Sender: No OFD packet to send [17:43:11]OFD Sender: No OFD packet to send [17:43:12]accept exits with 7 [17:43:12]New connection [17:43:12]New thread 3066785124 created [17:43:12]Thread 3066928484 joined [17:43:12]Waiting for new connection... [17:43:12] Sock 7.Parse request [17:43:12]Sock 7.Check first char [17:43:12]Sock 7.First char is OK [17:43:12]request: POST /json_proto HTTP/1.0 [17:43:12]Method: POST [17:43:12]URL: /json_proto [17:43:12]Method is POST - this is cgi request [17:43:12]url: /json_proto [17:43:12]query_string will be loaded in cgi processing [17:43:12]execute_cgi json_proto POST (null) [17:43:12]execute_cgi path=json_proto method=POST [17:43:12]POST find Content-Length [17:43:12]Host: 172.17.33.3:8080 [17:43:12]Content-Length: 1168 [17:43:12]Content-Type: application/json [17:43:12] [17:43:12]POST finish read [17:43:12]Found Content-Length = 1168 [17:43:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347353\u000A13.04.2024 17:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 550.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 39820.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30115168\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:12]execute_script... [17:43:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347353\u000A13.04.2024 17:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 550.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 39820.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30115168\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:12]POST & json_proto [17:43:12]process_json_proto [17:43:12]json parsed OK: [17:43:12]protocol is kg_v1.0 [17:43:12]action value=print_text [17:43:12]process_action print_text [17:43:12]cmd_print_text [17:43:12]ExternCall_PrintAddStr [17:43:12]wPrintStart [17:43:12]Write to MH i2c: 01 00 00 7E 54 D2 [17:43:12]Write i2c OK [17:43:12]MH_I2C_Read... [17:43:12]Read from MH i2c: 01 [17:43:12]MH_I2C_Read... [17:43:12]Read from MH i2c: 01 07 00 [17:43:12]MH_I2C_Read... [17:43:12]Read from MH i2c: 01 07 00 7E 54 00 00 00 00 00 FF 0F E7 [17:43:12]RasterBufferAndPrint [17:43:12]line *****ТОВАРНЫЙ ЧЕК***** [17:43:12]line АЗС 108 [17:43:12]line Партнер нефть [17:43:12]line 02508201610067 [17:43:12]line Кассир : Шадыканова Ж. [17:43:12]line Счет N : (1)347353 [17:43:12]line 13.04.2024 17:25 [17:43:12]line ПРОДАЖА [17:43:12]line ТРК (МРК, ГНК): 61 [17:43:12]line Вид ГСМ : 2710194210 [17:43:12]line ДТ-К-5 [17:43:12]line 550.000 x 72.40 [17:43:12]line ИТОГ: 39820.00 [17:43:12]line Тип оплаты: Талоны: ТК ГПНА Online [17:43:12]line 30115168 [17:43:12]line ______________________ [17:43:12]line (подпись) [17:43:12]written 0, free lines is 4095 [17:43:12]Write to MH i2c: 01 00 00 93 54 E7 [17:43:12]Write i2c OK [17:43:12]MH_I2C_Read... [17:43:12]Read from MH i2c: 01 [17:43:12]MH_I2C_Read... [17:43:12]Read from MH i2c: 01 07 00 [17:43:12]MH_I2C_Read... [17:43:12]Read from MH i2c: 01 07 00 93 54 00 00 00 00 00 F3 0D EE [17:43:12]RasterBufferAndPrint [17:43:12]line [17:43:12]line [17:43:12]line [17:43:12]line [17:43:12]line [17:43:12]written 0, free lines is 3573 [17:43:12]MH_Cut [17:43:12]Write to MH i2c: D1 01 00 9A 54 01 C0 [17:43:12]Write i2c OK [17:43:12]MH_I2C_Read... [17:43:12]Read from MH i2c: D1 [17:43:12]MH_I2C_Read... [17:43:12]Read from MH i2c: D1 01 00 [17:43:12]MH_I2C_Read... [17:43:12]Read from MH i2c: D1 01 00 9A 54 00 BF [17:43:12]Write to MH i2c: 01 00 00 9B 54 EF [17:43:12]Write i2c OK [17:43:12]MH_I2C_Read... [17:43:12]*** Cut start [17:43:12]*** Partial cut [17:43:12]*** CUTSNS_PIN = 1 [17:43:13]*** CUTSNS_PIN = 0 [17:43:13]*** Brake cut motor [17:43:13]Read from MH i2c: 01 [17:43:13]MH_I2C_Read... [17:43:13]*** Stop cut motor [17:43:13]*** Cut end [17:43:13]Read from MH i2c: 01 07 00 [17:43:13]MH_I2C_Read... [17:43:13]Read from MH i2c: 01 07 00 9B 54 00 00 00 00 00 FF 0F 04 [17:43:13]process_action print_text done [17:43:13]requested_data is exist [17:43:13]produce_requested_data [17:43:13]requested_item fm.sn is exist - process it [17:43:13]wFMCommunicate request_size=4 [17:43:13]MH_SAM_APDU [17:43:13]CAPDU: 80 11 00 00 [17:43:13]Write to MH i2c: E2 08 00 9C 54 80 11 00 00 00 00 00 00 6A [17:43:13]Write i2c OK [17:43:13]MH_I2C_Read... [17:43:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:13]Read from MH i2c: E2 [17:43:13]MH_I2C_Read... [17:43:13]Read from MH i2c: E2 17 00 [17:43:13]MH_I2C_Read... [17:43:13]Read from MH i2c: E2 17 00 9C 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B9 [17:43:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:43:13]wFMCommunicate OK [17:43:13]requested_item fd.num is exist - process it [17:43:13]SAM_PROTO_GetFieldsCounters [17:43:13]wFMCommunicate request_size=4 [17:43:13]MH_SAM_APDU [17:43:13]CAPDU: 80 13 00 00 [17:43:13]Write to MH i2c: E2 08 00 9D 54 80 13 00 00 00 00 00 00 6D [17:43:13]Write i2c OK [17:43:13]MH_I2C_Read... [17:43:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:13]Read from MH i2c: E2 [17:43:13]MH_I2C_Read... [17:43:13]Read from MH i2c: E2 62 00 [17:43:13]MH_I2C_Read... [17:43:13]Read from MH i2c: E2 62 00 9D 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 47 71 00 00 0E 04 04 00 73 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 40 [17: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 47 71 00 00 0E 04 04 00 73 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 [17:43:13]wFMCommunicate OK [17:43:13]SAM_PROTO_GetFieldsCounters done [17:43:13]requested_item shift.num is exist - process it [17:43:13]requested_item shift.opened is exist - process it [17:43:13]req_shift_opened [17:43:13]FM_GetShiftState [17:43:13]SAM_PROTO_GetShiftState [17:43:13]wFMCommunicate request_size=4 [17:43:13]MH_SAM_APDU [17:43:13]CAPDU: 80 13 01 00 [17:43:13]Write to MH i2c: E2 08 00 9E 54 80 13 01 00 00 00 00 00 6F [17:43:13]Write i2c OK [17:43:13]MH_I2C_Read... [17:43:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:13]Read from MH i2c: E2 [17:43:13]MH_I2C_Read... [17:43:13]Read from MH i2c: E2 0E 00 [17:43:13]MH_I2C_Read... [17:43:13]Read from MH i2c: E2 0E 00 9E 54 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 88 [17:43:13]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:43:13]wFMCommunicate OK [17:43:13]SAM_PROTO_GetShiftState done [17:43:13]FM_GetShiftState done [17:43:13]req_shift_opened done [17:43:13]requested_item shift.open_date is exist - process it [17:43:13]req_shift_open_date [17:43:13]req_shift_open_date done [17:43:13]produce_requested_data done [17:43:13]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":28999,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [17:43:13]process_action_free print_text [17:43:13]json_value_free [17:43:13]json_value_free done [17:43:13]process_json_proto returns [17:43:13]Send response to host [17:43:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":28999,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [17:43:13]free response buf [17:43:13]execute_script done [17:43:13]execute_script returns [17:43:13]free content buf [17:43:13]Sock 7.Close socket [17:43:13]Sock 7.Thread stoped [17:43:16]OFD Sender: No OFD packet to send [17:43:21]OFD Sender: No OFD packet to send [17:43:26]OFD Sender: No OFD packet to send [17:43:31]OFD Sender: No OFD packet to send [17:43:36]OFD Sender: No OFD packet to send [17:43:36]accept exits with 9 [17:43:36]New connection [17:43:36]New thread 3066928484 created [17:43:36]Thread 3066785124 joined [17:43:36]Waiting for new connection... [17:43:36] Sock 9.Parse request [17:43:36]Sock 9.Check first char [17:43:36]Sock 9.First char is OK [17:43:36]request: POST /json_proto HTTP/1.0 [17:43:36]Method: POST [17:43:36]URL: /json_proto [17:43:36]Method is POST - this is cgi request [17:43:36]url: /json_proto [17:43:36]query_string will be loaded in cgi processing [17:43:36]execute_cgi json_proto POST (null) [17:43:36]execute_cgi path=json_proto method=POST [17:43:36]POST find Content-Length [17:43:36]Host: 172.17.33.3:8080 [17:43:36]Content-Length: 677 [17:43:36]Content-Type: application/json [17:43:36] [17:43:36]POST finish read [17:43:36]Found Content-Length = 677 [17:43:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "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:43:36]execute_script... [17:43: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)347363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "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:43:36]POST & json_proto [17:43:36]process_json_proto [17:43:36]json parsed OK: [17:43:36]protocol is kg_v1.0 [17:43:36]action value=close_receipt [17:43:36]process_action close_receipt [17:43:36]cmd_close_receipt [17:43:36]MH_GetDate [17:43:36]Write to MH i2c: F0 00 00 9F 54 E2 [17:43:36]Write i2c OK [17:43:36]MH_I2C_Read... [17:43:36]Read from MH i2c: F0 [17:43:36]MH_I2C_Read... [17:43:36]Read from MH i2c: F0 09 00 [17:43:36]MH_I2C_Read... [17:43:36]Read from MH i2c: F0 09 00 9F 54 00 4E C4 1A 66 23 5B 8F 65 EF [17:43:36]GetLastDocTimeStamp 1713030174 [17:43:36]current date 1713030222 [17:43:36]FM_GetShiftState [17:43:36]SAM_PROTO_GetShiftState [17:43:36]wFMCommunicate request_size=4 [17:43:36]MH_SAM_APDU [17:43:36]CAPDU: 80 13 01 00 [17:43:36]Write to MH i2c: E2 08 00 A0 54 80 13 01 00 00 00 00 00 71 [17:43:37]Write i2c OK [17:43:37]MH_I2C_Read... [17:43:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:37]Read from MH i2c: E2 [17:43:37]MH_I2C_Read... [17:43:37]Read from MH i2c: E2 0E 00 [17:43:37]MH_I2C_Read... [17:43:37]Read from MH i2c: E2 0E 00 A0 54 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 8A [17:43:37]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:43:37]wFMCommunicate OK [17:43:37]SAM_PROTO_GetShiftState done [17:43:37]FM_GetShiftState done [17:43:37]opened in 1712967615 [17:43:37]opened+sec_in_day 1713054015 [17:43:37]quantity*price = 50025 [17:43:37]sum+1 = 50026 [17:43:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 207 13.04.2024 17:43 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29000 ФПД: 85328402384533 1/tax-web-control/client/api/v1/ticket?date=20240413T174342&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29000&fm=85328402384533&tin=02508201610067®Number=0000138879044617&sum=50000 [17:43:38]StoreToDocumentArchive [17:43:38]shift 115 fd 29000 [17:43:38]save to /storage/0115/doc_00029000 [17:43:38]save last doc name /storage/0115/doc_00029000 to /storage/kkm_last_doc_name [17:43:38]save OK [17:43:38]Clear old archive folders... [17:43:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:43:38]tlvbuf is 011EAEF0 [17:43:38]SAM_PROTO_ClearQueue [17:43:38]wFMCommunicate request_size=4 [17:43:38]MH_SAM_APDU [17:43:38]CAPDU: 80 09 00 00 [17:43:38]Write to MH i2c: E2 08 00 AD 54 80 09 00 00 00 00 00 00 73 [17:43:38]Write i2c OK [17:43:38]MH_I2C_Read... [17:43:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:38]Read from MH i2c: E2 [17:43:38]MH_I2C_Read... [17:43:38]Read from MH i2c: E2 03 00 [17:43:38]MH_I2C_Read... [17:43:38]Read from MH i2c: E2 03 00 AD 54 00 90 00 75 [17:43:38]RAPDU: 90 00 [17:43:38]wFMCommunicate OK [17:43:38]SAM_PROTO_ClearQueue done [17:43:38]KKMCreateOFDPacket [17:43:38]OFDProtocolAddRootSTLVToBuf [17:43:38]FM_MakeSignedData [17:43:38]FM_MakeSignedData [17:43:38]SAM_PROTO_SignData [17:43:38]wFMCommunicate request_size=4 [17:43:38]MH_SAM_APDU [17:43:38]CAPDU: 80 0D 01 02 [17:43:38]Write to MH i2c: E2 08 00 AE 54 80 0D 01 02 00 00 00 00 7B [17:43:38]Write i2c OK [17:43:38]MH_I2C_Read... [17:43:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:38]Read from MH i2c: E2 [17:43:38]MH_I2C_Read... [17:43:38]Read from MH i2c: E2 03 00 [17:43:38]MH_I2C_Read... [17:43:38]Read from MH i2c: E2 03 00 AE 54 00 90 00 76 [17:43:38]RAPDU: 90 00 [17:43:38]wFMCommunicate OK [17:43:38]wFMCommunicate request_size=255 [17:43:38]MH_SAM_APDU [17:43: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 CF 00 00 00 F4 03 04 00 4E C4 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 48 71 00 00 35 04 06 00 4D [17:43:38]Write to MH i2c: E2 02 01 AF 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 CF 00 00 00 F4 03 04 00 4E C4 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 48 71 00 00 35 04 06 00 4D 00 00 17 [17:43:38]Write i2c OK [17:43:38]MH_I2C_Read... [17:43:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:38]Read from MH i2c: E2 [17:43:38]MH_I2C_Read... [17:43:38]Read from MH i2c: E2 03 00 [17:43:38]MH_I2C_Read... [17:43:38]Read from MH i2c: E2 03 00 AF 54 00 90 00 77 [17:43:38]RAPDU: 90 00 [17:43:38]wFMCommunicate OK [17:43:38]wFMCommunicate request_size=10 [17:43:38]MH_SAM_APDU [17:43:38]CAPDU: 80 0D 02 02 05 9B 11 1D 06 95 [17:43:38]Write to MH i2c: E2 0D 00 B0 54 80 0D 02 02 05 00 9B 11 1D 06 95 00 00 EC [17:43:38]Write i2c OK [17:43:38]MH_I2C_Read... [17:43:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:38]Read from MH i2c: E2 [17:43:38]MH_I2C_Read... [17:43:38]Read from MH i2c: E2 03 00 [17:43:38]MH_I2C_Read... [17:43:38]Read from MH i2c: E2 03 00 B0 54 00 90 00 78 [17:43:38]RAPDU: 90 00 [17:43:38]wFMCommunicate OK [17:43:38]wFMCommunicate request_size=4 [17:43:38]MH_SAM_APDU [17:43:38]CAPDU: 80 0D 03 02 [17:43:38]Write to MH i2c: E2 08 00 B1 54 80 0D 03 02 00 00 00 00 80 [17:43:38]Write i2c OK [17:43:38]MH_I2C_Read... [17:43:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:38]Read from MH i2c: E2 [17:43:38]MH_I2C_Read... [17:43:38]Read from MH i2c: E2 0B 00 [17:43:38]MH_I2C_Read... [17:43:38]Read from MH i2c: E2 0B 00 B1 54 00 2E DD EC 93 CB 9E D3 64 90 00 AB [17:43:38]RAPDU: 2E DD EC 93 CB 9E D3 64 90 00 [17:43:38]wFMCommunicate OK [17:43:38]SAM_PROTO_SignData done [17:43:38]FM_MakeSignedData done [17:43:38]CreateOFDProtocolMessage [17:43:38]wFMCommunicate request_size=4 [17:43:38]MH_SAM_APDU [17:43:38]CAPDU: 80 11 00 00 [17:43:38]Write to MH i2c: E2 08 00 B2 54 80 11 00 00 00 00 00 00 80 [17:43:38]Write i2c OK [17:43:38]MH_I2C_Read... [17:43:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:38]Read from MH i2c: E2 [17:43:38]MH_I2C_Read... [17:43:38]Read from MH i2c: E2 17 00 [17:43:38]MH_I2C_Read... [17:43:38]Read from MH i2c: E2 17 00 B2 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CF [17:43:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:43:38]wFMCommunicate OK [17:43:38]CreateOFDProtocolMessage done [17:43:38]OFDSenderStorePacket 29000 [17:43:38]StoreOFDPacket docnum=29000 [17:43:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 10 75 07 01 B6 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 CF 00 00 00 F4 03 04 00 4E C4 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 48 71 00 00 35 04 06 00 4D 9B 11 1D 06 95 2E DD EC 93 CB 9E D3 64 [17:43:38]CheckFolder [17:43:38]dirname=/storage/ofd_packets [17:43:38]CheckFolder done [17:43:38]ProducePacketName [17:43:38]name=ofd_packets/00029000 [17:43:38]NVStorageSaveData ofd_packets/00029000 [17:43:38]File name is /storage/ofd_packets/00029000 [17:43:38]Write 301 bytes [17:43:38]NVStorageSaveData done [17:43:38]OFDSenderStorePacket done [17:43:38]KKMCreateOFDPacket done [17:43:38]NVStorageSaveData kkm_last_timestamp [17:43:38]File name is /storage/kkm_last_timestamp [17:43:38]Write 4 bytes [17:43:38]NVStorageSaveData done [17:43:38]ExternCall_PrintAddStr [17:43:38]wPrintStart [17:43:38]Write to MH i2c: 01 00 00 B3 54 07 [17:43:38]Write i2c OK [17:43:38]MH_I2C_Read... [17:43:38]Read from MH i2c: 01 [17:43:38]MH_I2C_Read... [17:43:38]Read from MH i2c: 01 07 00 [17:43:38]MH_I2C_Read... [17:43:38]Read from MH i2c: 01 07 00 B3 54 00 00 00 00 00 FF 0F 1C [17:43:38]RasterBufferAndPrint [17:43:38]line Счет N : (1)347363 [17:43:38]line ИНН: 02508201610067 [17:43:38]line Контрольно-Кассовый Чек [17:43:38]line ПРОДАЖА [17:43:38]line ТРК (МРК, ГНК) : 13 [17:43:38]line Товар: 2710124130 [17:43:38]line Аи-92-К-5 [17:43:38]line 7.780 * 64.30 [17:43:38]line = 500.25 [17:43:38]line НДС 12% НСП 1% [17:43:38]line > о реализуемом товаре [17:43:38]line ОКРУГЛЕНИЕ: -0.25 [17:43:38]line ИТОГО: 500.00 [17:43:38]line Внесено: 500.00 [17:43:38]line СДАЧА: 0.00 [17:43:38]line НСП 1% : 4.43 [17:43:38]line НДС 12% : 53.12 [17:43:38]line Наличными: 500.00 [17:43:38]line Безнал.: 0.00 [17:43:38]line Место: АЗС № 108 "Партнер Нефть" [17:43:38]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:43:38]line СНО: Общий режим [17:43:38]line Чек 207 13.04.2024 17:43 [17:43:38]line Смена: 115 ФФД: 1.0 [17:43:38]line ЗНМ: 0300000027 [17:43:38]line РНМ: 0000138879044617 [17:43:38]line Версия ККМ: 001 [17:43:38]line ФМ: 0000000000963154 [17:43:38]line ФД: 29000 [17:43:38]line ФПД: 85328402384533 [17:43:38]line 1/tax-web-control/client/api/v1/ticket?date=20240413T174342&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29000&fm=85328402384533&tin=02508201610067®Number=0000138879044617&sum=50000 [17:43:39]OFD Sender: Processing packet 29000 [packets to send 8, broken 7] [17:43:39]ProducePacketName [17:43:39]name=ofd_packets/00029000 [17:43:39]OFD Sender: To server: pG, [17:43:39]CommunicateWithHost lk.salyk.kg:30040 [17:43:39]ConnectInit lk.salyk.kg [17:43:39]written 0, free lines is 4095 [17:43:39]Connected sock=10 [17:43: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 31 35 34 0F 01 00 00 10 75 07 01 B6 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 CF 00 00 00 F4 03 04 00 4E C4 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 48 71 00 00 35 04 06 00 4D 9B 11 1D 06 95 2E DD EC 93 CB 9E D3 64 [17:43:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 67 4A 47 00 E9 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 31 35 34 10 04 04 00 48 71 00 00 F4 03 04 00 F5 6E 1A 66 B6 04 01 00 00 5E 7B CE F1 07 41 90 9A [17:43:39]CommunicateWithHost err = 0 [17:43:39]CheckOFDResponse [17:43:39]1017 (14) - 77093643461234 [17:43:39]1041 (16) - 0000000000963154 [17:43:39]1040 (4) - 29000 [17:43:39]1012 (4) - 13.04.2024 11:39 [17:43:39]1206 (1) - 0 [17:43:39]OFD Sender: Remove packet 29000 [17:43:39]ProducePacketName [17:43:39]name=ofd_packets/00029000 [17:43:39]NVStorageDeleteData [17:43:39]Write to MH i2c: 01 00 00 DD 54 31 [17:43:39]Write i2c OK [17:43:39]MH_I2C_Read... [17:43:39]Read from MH i2c: 01 [17:43:39]MH_I2C_Read... [17:43:39]Read from MH i2c: 01 07 00 [17:43:39]MH_I2C_Read... [17:43:39]Read from MH i2c: 01 07 00 DD 54 00 00 00 00 00 C2 0C 06 [17:43:39]RasterBufferAndPrint [17:43:39]line [17:43:39]line [17:43:39]line [17:43:39]line [17:43:39]line [17:43:39]written 0, free lines is 3272 [17:43:39]MH_Cut [17:43:39]Write to MH i2c: D1 01 00 E4 54 01 0A [17:43:39]Write i2c OK [17:43:39]MH_I2C_Read... [17:43:39]Read from MH i2c: D1 [17:43:39]MH_I2C_Read... [17:43:39]Read from MH i2c: D1 01 00 [17:43:39]MH_I2C_Read... [17:43:39]Read from MH i2c: D1 01 00 E4 54 00 09 [17:43:39]Write to MH i2c: 01 00 00 E5 54 39 [17:43:39]Write i2c OK [17:43:39]MH_I2C_Read... [17:43:39]OFD Sender: No OFD packet to send [17:43:40]*** Cut start [17:43:40]*** Partial cut [17:43:40]*** CUTSNS_PIN = 1 [17:43:40]*** CUTSNS_PIN = 0 [17:43:40]*** Brake cut motor [17:43:40]Read from MH i2c: 01 [17:43:40]MH_I2C_Read... [17:43:40]*** Stop cut motor [17:43:40]*** Cut end [17:43:40]Read from MH i2c: 01 07 00 [17:43:40]MH_I2C_Read... [17:43:40]Read from MH i2c: 01 07 00 E5 54 00 00 00 00 00 FF 0F 4E [17:43:40]process_action close_receipt done [17:43:40]requested_data is exist [17:43:40]produce_requested_data [17:43:40]requested_item fm.sn is exist - process it [17:43:40]wFMCommunicate request_size=4 [17:43:40]MH_SAM_APDU [17:43:40]CAPDU: 80 11 00 00 [17:43:40]Write to MH i2c: E2 08 00 E6 54 80 11 00 00 00 00 00 00 B4 [17:43:40]Write i2c OK [17:43:40]MH_I2C_Read... [17:43:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:40]Read from MH i2c: E2 [17:43:40]MH_I2C_Read... [17:43:40]Read from MH i2c: E2 17 00 [17:43:40]MH_I2C_Read... [17:43:40]Read from MH i2c: E2 17 00 E6 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 03 [17:43:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:43:40]wFMCommunicate OK [17:43:40]requested_item fd.num is exist - process it [17:43:40]SAM_PROTO_GetFieldsCounters [17:43:40]wFMCommunicate request_size=4 [17:43:40]MH_SAM_APDU [17:43:40]CAPDU: 80 13 00 00 [17:43:40]Write to MH i2c: E2 08 00 E7 54 80 13 00 00 00 00 00 00 B7 [17:43:40]Write i2c OK [17:43:40]MH_I2C_Read... [17:43:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:41]Read from MH i2c: E2 [17:43:41]MH_I2C_Read... [17:43:41]Read from MH i2c: E2 62 00 [17:43:41]MH_I2C_Read... [17:43:41]Read from MH i2c: E2 62 00 E7 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 48 71 00 00 0E 04 04 00 73 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 8E [17:43: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 48 71 00 00 0E 04 04 00 73 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 [17:43:41]wFMCommunicate OK [17:43:41]SAM_PROTO_GetFieldsCounters done [17:43:41]requested_item shift.num is exist - process it [17:43:41]requested_item shift.opened is exist - process it [17:43:41]req_shift_opened [17:43:41]FM_GetShiftState [17:43:41]SAM_PROTO_GetShiftState [17:43:41]wFMCommunicate request_size=4 [17:43:41]MH_SAM_APDU [17:43:41]CAPDU: 80 13 01 00 [17:43:41]Write to MH i2c: E2 08 00 E8 54 80 13 01 00 00 00 00 00 B9 [17:43:41]Write i2c OK [17:43:41]MH_I2C_Read... [17:43:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:41]Read from MH i2c: E2 [17:43:41]MH_I2C_Read... [17:43:41]Read from MH i2c: E2 0E 00 [17:43:41]MH_I2C_Read... [17:43:41]Read from MH i2c: E2 0E 00 E8 54 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D2 [17:43:41]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:43:41]wFMCommunicate OK [17:43:41]SAM_PROTO_GetShiftState done [17:43:41]FM_GetShiftState done [17:43:41]req_shift_opened done [17:43:41]requested_item shift.open_date is exist - process it [17:43:41]req_shift_open_date [17:43:41]req_shift_open_date done [17:43:41]produce_requested_data done [17:43:41]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29000,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [17:43:41]process_action_free close_receipt [17:43:41]json_value_free [17:43:41]json_value_free done [17:43:41]process_json_proto returns [17:43:41]Send response to host [17:43:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29000,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [17:43:41]free response buf [17:43:41]execute_script done [17:43:41]execute_script returns [17:43:41]free content buf [17:43:41]Sock 9.Close socket [17:43:41]Sock 9.Thread stoped [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:29]OFD Sender: No OFD packet to send [17:47:34]OFD Sender: No OFD packet to send [17:47:40]OFD Sender: No OFD packet to send [17:47:45]OFD Sender: No OFD packet to send [17:47:50]OFD Sender: No OFD packet to send [17:47:55]OFD Sender: No OFD packet to send [17:48:00]OFD Sender: No OFD packet to send [17:48:05]OFD Sender: No OFD packet to send [17:48:10]OFD Sender: No OFD packet to send [17:48:15]OFD Sender: No OFD packet to send [17:48:20]OFD Sender: No OFD packet to send [17:48:25]OFD Sender: No OFD packet to send [17:48:30]OFD Sender: No OFD packet to send [17:48:30]accept exits with 7 [17:48:30]New connection [17:48:30]New thread 3066785124 created [17:48:30]Thread 3066928484 joined [17:48:30]Waiting for new connection... [17:48:30] Sock 7.Parse request [17:48:30]Sock 7.Check first char [17:48:30]Sock 7.First char is OK [17:48:30]request: POST /json_proto HTTP/1.0 [17:48:30]Method: POST [17:48:30]URL: /json_proto [17:48:30]Method is POST - this is cgi request [17:48:30]url: /json_proto [17:48:30]query_string will be loaded in cgi processing [17:48:30]execute_cgi json_proto POST (null) [17:48:30]execute_cgi path=json_proto method=POST [17:48:30]POST find Content-Length [17:48:30]Host: 172.17.33.3:8080 [17:48:30]Content-Length: 679 [17:48:30]Content-Type: application/json [17:48:30] [17:48:30]POST finish read [17:48:30]Found Content-Length = 679 [17:48:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 41.440, "sum" : 3000.26, "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:48:30]execute_script... [17:48: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)347364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 41.440, "sum" : 3000.26, "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:48:30]POST & json_proto [17:48:30]process_json_proto [17:48:30]json parsed OK: [17:48:30]protocol is kg_v1.0 [17:48:30]action value=close_receipt [17:48:30]process_action close_receipt [17:48:30]cmd_close_receipt [17:48:30]MH_GetDate [17:48:30]Write to MH i2c: F0 00 00 E9 54 2C [17:48:30]Write i2c OK [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: F0 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: F0 09 00 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: F0 09 00 E9 54 00 73 C5 1A 66 23 5B 8F 65 5F [17:48:30]GetLastDocTimeStamp 1713030222 [17:48:30]current date 1713030515 [17:48:30]FM_GetShiftState [17:48:30]SAM_PROTO_GetShiftState [17:48:30]wFMCommunicate request_size=4 [17:48:30]MH_SAM_APDU [17:48:30]CAPDU: 80 13 01 00 [17:48:30]Write to MH i2c: E2 08 00 EA 54 80 13 01 00 00 00 00 00 BB [17:48:30]Write i2c OK [17:48:30]MH_I2C_Read... [17:48:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:30]Read from MH i2c: E2 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 0E 00 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 0E 00 EA 54 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D4 [17:48:30]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:48:30]wFMCommunicate OK [17:48:30]SAM_PROTO_GetShiftState done [17:48:30]FM_GetShiftState done [17:48:30]opened in 1712967615 [17:48:30]opened+sec_in_day 1713054015 [17:48:30]quantity*price = 300025 [17:48:30]sum+1 = 300027 [17:48:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.61 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 208 13.04.2024 17:48 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29001 ФПД: 151237348737276 1/tax-web-control/client/api/v1/ticket?date=20240413T174836&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29001&fm=151237348737276&tin=02508201610067®Number=0000138879044617&sum=300000 [17:48:31]StoreToDocumentArchive [17:48:31]shift 115 fd 29001 [17:48:31]save to /storage/0115/doc_00029001 [17:48:31]save last doc name /storage/0115/doc_00029001 to /storage/kkm_last_doc_name [17:48:31]save OK [17:48:31]Clear old archive folders... [17:48:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:48:31]tlvbuf is 011F80B0 [17:48:31]SAM_PROTO_ClearQueue [17:48:31]wFMCommunicate request_size=4 [17:48:31]MH_SAM_APDU [17:48:31]CAPDU: 80 09 00 00 [17:48:31]Write to MH i2c: E2 08 00 F7 54 80 09 00 00 00 00 00 00 BD [17:48:31]Write i2c OK [17:48:31]MH_I2C_Read... [17:48:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:31]Read from MH i2c: E2 [17:48:31]MH_I2C_Read... [17:48:31]Read from MH i2c: E2 03 00 [17:48:31]MH_I2C_Read... [17:48:31]Read from MH i2c: E2 03 00 F7 54 00 90 00 BF [17:48:31]RAPDU: 90 00 [17:48:31]wFMCommunicate OK [17:48:31]SAM_PROTO_ClearQueue done [17:48:31]KKMCreateOFDPacket [17:48:31]OFDProtocolAddRootSTLVToBuf [17:48:31]FM_MakeSignedData [17:48:31]FM_MakeSignedData [17:48:31]SAM_PROTO_SignData [17:48:31]wFMCommunicate request_size=4 [17:48:31]MH_SAM_APDU [17:48:31]CAPDU: 80 0D 01 02 [17:48:31]Write to MH i2c: E2 08 00 F8 54 80 0D 01 02 00 00 00 00 C5 [17:48:31]Write i2c OK [17:48:31]MH_I2C_Read... [17:48:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:31]Read from MH i2c: E2 [17:48:31]MH_I2C_Read... [17:48:31]Read from MH i2c: E2 03 00 [17:48:31]MH_I2C_Read... [17:48:31]Read from MH i2c: E2 03 00 F8 54 00 90 00 C0 [17:48:31]RAPDU: 90 00 [17:48:31]wFMCommunicate OK [17:48:31]wFMCommunicate request_size=255 [17:48:31]MH_SAM_APDU [17:48: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 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 D0 00 00 00 F4 03 04 00 74 C5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 49 71 00 00 35 04 06 00 89 8C B0 72 [17:48:31]Write to MH i2c: E2 02 01 F9 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 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 D0 00 00 00 F4 03 04 00 74 C5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 49 71 00 00 35 04 06 00 89 8C B0 72 00 00 EA [17:48:31]Write i2c OK [17:48:31]MH_I2C_Read... [17:48:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:31]Read from MH i2c: E2 [17:48:31]MH_I2C_Read... [17:48:31]Read from MH i2c: E2 03 00 [17:48:31]MH_I2C_Read... [17:48:31]Read from MH i2c: E2 03 00 F9 54 00 90 00 C1 [17:48:31]RAPDU: 90 00 [17:48:31]wFMCommunicate OK [17:48:31]wFMCommunicate request_size=7 [17:48:31]MH_SAM_APDU [17:48:31]CAPDU: 80 0D 02 02 02 C0 FC [17:48:31]Write to MH i2c: E2 0A 00 FA 54 80 0D 02 02 02 00 C0 FC 00 00 88 [17:48:31]Write i2c OK [17:48:31]MH_I2C_Read... [17:48:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:31]Read from MH i2c: E2 [17:48:31]MH_I2C_Read... [17:48:31]Read from MH i2c: E2 03 00 [17:48:31]MH_I2C_Read... [17:48:31]Read from MH i2c: E2 03 00 FA 54 00 90 00 C2 [17:48:31]RAPDU: 90 00 [17:48:31]wFMCommunicate OK [17:48:31]wFMCommunicate request_size=4 [17:48:31]MH_SAM_APDU [17:48:31]CAPDU: 80 0D 03 02 [17:48:31]Write to MH i2c: E2 08 00 FB 54 80 0D 03 02 00 00 00 00 CA [17:48:31]Write i2c OK [17:48:31]MH_I2C_Read... [17:48:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:31]Read from MH i2c: E2 [17:48:31]MH_I2C_Read... [17:48:31]Read from MH i2c: E2 0B 00 [17:48:31]MH_I2C_Read... [17:48:31]Read from MH i2c: E2 0B 00 FB 54 00 4E 78 AB ED EE 94 0E 19 90 00 D2 [17:48:31]RAPDU: 4E 78 AB ED EE 94 0E 19 90 00 [17:48:31]wFMCommunicate OK [17:48:31]SAM_PROTO_SignData done [17:48:31]FM_MakeSignedData done [17:48:31]CreateOFDProtocolMessage [17:48:31]wFMCommunicate request_size=4 [17:48:31]MH_SAM_APDU [17:48:31]CAPDU: 80 11 00 00 [17:48:31]Write to MH i2c: E2 08 00 FC 54 80 11 00 00 00 00 00 00 CA [17:48:31]Write i2c OK [17:48:31]MH_I2C_Read... [17:48:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:31]Read from MH i2c: E2 [17:48:31]MH_I2C_Read... [17:48:31]Read from MH i2c: E2 17 00 [17:48:31]MH_I2C_Read... [17:48:31]Read from MH i2c: E2 17 00 FC 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 19 [17:48:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:48:31]wFMCommunicate OK [17:48:31]CreateOFDProtocolMessage done [17:48:31]OFDSenderStorePacket 29001 [17:48:31]StoreOFDPacket docnum=29001 [17:48:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 CC 05 04 01 B8 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 D0 00 00 00 F4 03 04 00 74 C5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 49 71 00 00 35 04 06 00 89 8C B0 72 C0 FC 4E 78 AB ED EE 94 0E 19 [17:48:31]CheckFolder [17:48:31]dirname=/storage/ofd_packets [17:48:31]CheckFolder done [17:48:31]ProducePacketName [17:48:31]name=ofd_packets/00029001 [17:48:31]NVStorageSaveData ofd_packets/00029001 [17:48:31]File name is /storage/ofd_packets/00029001 [17:48:31]Write 298 bytes [17:48:31]NVStorageSaveData done [17:48:31]OFDSenderStorePacket done [17:48:31]KKMCreateOFDPacket done [17:48:31]NVStorageSaveData kkm_last_timestamp [17:48:31]File name is /storage/kkm_last_timestamp [17:48:31]Write 4 bytes [17:48:31]NVStorageSaveData done [17:48:31]ExternCall_PrintAddStr [17:48:31]wPrintStart [17:48:31]Write to MH i2c: 01 00 00 FD 54 51 [17:48:31]Write i2c OK [17:48:31]MH_I2C_Read... [17:48:31]Read from MH i2c: 01 [17:48:31]MH_I2C_Read... [17:48:31]Read from MH i2c: 01 07 00 [17:48:31]MH_I2C_Read... [17:48:31]Read from MH i2c: 01 07 00 FD 54 00 00 00 00 00 FF 0F 66 [17:48:31]RasterBufferAndPrint [17:48:31]line Счет N : (1)347364 [17:48:31]line ИНН: 02508201610067 [17:48:31]line Контрольно-Кассовый Чек [17:48:31]line ПРОДАЖА [17:48:31]line ТРК (МРК, ГНК) : 21 [17:48:31]line Товар: 2710194210 [17:48:31]line ДТ-К-5 [17:48:31]line 41.440 * 72.40 [17:48:31]line = 3000.26 [17:48:31]line НДС 12% НСП 1% [17:48:31]line > о реализуемом товаре [17:48:31]line ОКРУГЛЕНИЕ: -0.26 [17:48:31]line ИТОГО: 3000.00 [17:48:31]line Внесено: 3000.00 [17:48:31]line СДАЧА: 0.00 [17:48:31]line НСП 1% : 26.55 [17:48:31]line НДС 12% : 318.61 [17:48:31]line Наличными: 3000.00 [17:48:31]line Безнал.: 0.00 [17:48:31]line Место: АЗС № 108 "Партнер Нефть" [17:48:31]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:48:31]line СНО: Общий режим [17:48:31]line Чек 208 13.04.2024 17:48 [17:48:31]line Смена: 115 ФФД: 1.0 [17:48:31]line ЗНМ: 0300000027 [17:48:31]line РНМ: 0000138879044617 [17:48:31]line Версия ККМ: 001 [17:48:31]line ФМ: 0000000000963154 [17:48:31]line ФД: 29001 [17:48:31]line ФПД: 151237348737276 [17:48:32]line 1/tax-web-control/client/api/v1/ticket?date=20240413T174836&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29001&fm=151237348737276&tin=02508201610067®Number=0000138879044617&sum=300000 [17:48:32]OFD Sender: Processing packet 29001 [packets to send 8, broken 7] [17:48:32]ProducePacketName [17:48:32]name=ofd_packets/00029001 [17:48:32]OFD Sender: To server: pG, [17:48:32]CommunicateWithHost lk.salyk.kg:30040 [17:48:32]ConnectInit lk.salyk.kg [17:48:32]written 0, free lines is 4095 [17:48:32]Connected sock=10 [17:48: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 31 35 34 0C 01 00 00 CC 05 04 01 B8 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 D0 00 00 00 F4 03 04 00 74 C5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 49 71 00 00 35 04 06 00 89 8C B0 72 C0 FC 4E 78 AB ED EE 94 0E 19 [17:48:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 02 F7 47 00 BC 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 31 35 34 10 04 04 00 49 71 00 00 F4 03 04 00 1A 70 1A 66 B6 04 01 00 00 44 12 F9 90 1C 2F B9 EA [17:48:32]CommunicateWithHost err = 0 [17:48:32]CheckOFDResponse [17:48:32]1017 (14) - 77093643461234 [17:48:32]1041 (16) - 0000000000963154 [17:48:32]1040 (4) - 29001 [17:48:32]1012 (4) - 13.04.2024 11:44 [17:48:32]1206 (1) - 0 [17:48:32]OFD Sender: Remove packet 29001 [17:48:32]ProducePacketName [17:48:32]name=ofd_packets/00029001 [17:48:32]NVStorageDeleteData [17:48:32]Write to MH i2c: 01 00 00 27 55 7C [17:48:32]Write i2c OK [17:48:32]MH_I2C_Read... [17:48:32]Read from MH i2c: 01 [17:48:32]MH_I2C_Read... [17:48:32]Read from MH i2c: 01 07 00 [17:48:32]MH_I2C_Read... [17:48:32]Read from MH i2c: 01 07 00 27 55 00 00 00 00 00 C8 0C 57 [17:48:32]RasterBufferAndPrint [17:48:32]line [17:48:32]line [17:48:32]line [17:48:32]line [17:48:32]line [17:48:32]written 0, free lines is 3279 [17:48:32]MH_Cut [17:48:32]Write to MH i2c: D1 01 00 2E 55 01 55 [17:48:32]Write i2c OK [17:48:32]MH_I2C_Read... [17:48:32]Read from MH i2c: D1 [17:48:32]MH_I2C_Read... [17:48:32]Read from MH i2c: D1 01 00 [17:48:32]MH_I2C_Read... [17:48:32]Read from MH i2c: D1 01 00 2E 55 00 54 [17:48:32]Write to MH i2c: 01 00 00 2F 55 84 [17:48:32]Write i2c OK [17:48:32]MH_I2C_Read... [17:48:32]OFD Sender: No OFD packet to send [17:48:33]*** Cut start [17:48:33]*** Partial cut [17:48:33]*** CUTSNS_PIN = 1 [17:48:33]*** CUTSNS_PIN = 0 [17:48:33]*** Brake cut motor [17:48:34]Read from MH i2c: 01 [17:48:34]MH_I2C_Read... [17:48:34]*** Stop cut motor [17:48:34]*** Cut end [17:48:34]Read from MH i2c: 01 07 00 [17:48:34]MH_I2C_Read... [17:48:34]Read from MH i2c: 01 07 00 2F 55 00 00 00 00 00 FF 0F 99 [17:48:34]process_action close_receipt done [17:48:34]requested_data is exist [17:48:34]produce_requested_data [17:48:34]requested_item fm.sn is exist - process it [17:48:34]wFMCommunicate request_size=4 [17:48:34]MH_SAM_APDU [17:48:34]CAPDU: 80 11 00 00 [17:48:34]Write to MH i2c: E2 08 00 30 55 80 11 00 00 00 00 00 00 FF [17:48:34]Write i2c OK [17:48:34]MH_I2C_Read... [17:48:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:34]Read from MH i2c: E2 [17:48:34]MH_I2C_Read... [17:48:34]Read from MH i2c: E2 17 00 [17:48:34]MH_I2C_Read... [17:48:34]Read from MH i2c: E2 17 00 30 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4E [17:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:48:34]wFMCommunicate OK [17:48:34]requested_item fd.num is exist - process it [17:48:34]SAM_PROTO_GetFieldsCounters [17:48:34]wFMCommunicate request_size=4 [17:48:34]MH_SAM_APDU [17:48:34]CAPDU: 80 13 00 00 [17:48:34]Write to MH i2c: E2 08 00 31 55 80 13 00 00 00 00 00 00 02 [17:48:34]Write i2c OK [17:48:34]MH_I2C_Read... [17:48:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:34]Read from MH i2c: E2 [17:48:34]MH_I2C_Read... [17:48:34]Read from MH i2c: E2 62 00 [17:48:34]MH_I2C_Read... [17:48:34]Read from MH i2c: E2 62 00 31 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 49 71 00 00 0E 04 04 00 73 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 DD [17:48: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 49 71 00 00 0E 04 04 00 73 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 [17:48:34]wFMCommunicate OK [17:48:34]SAM_PROTO_GetFieldsCounters done [17:48:34]requested_item shift.num is exist - process it [17:48:34]requested_item shift.opened is exist - process it [17:48:34]req_shift_opened [17:48:34]FM_GetShiftState [17:48:34]SAM_PROTO_GetShiftState [17:48:34]wFMCommunicate request_size=4 [17:48:34]MH_SAM_APDU [17:48:34]CAPDU: 80 13 01 00 [17:48:34]Write to MH i2c: E2 08 00 32 55 80 13 01 00 00 00 00 00 04 [17:48:34]Write i2c OK [17:48:34]MH_I2C_Read... [17:48:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:34]Read from MH i2c: E2 [17:48:34]MH_I2C_Read... [17:48:34]Read from MH i2c: E2 0E 00 [17:48:34]MH_I2C_Read... [17:48:34]Read from MH i2c: E2 0E 00 32 55 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 1D [17:48:34]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:48:34]wFMCommunicate OK [17:48:34]SAM_PROTO_GetShiftState done [17:48:34]FM_GetShiftState done [17:48:34]req_shift_opened done [17:48:34]requested_item shift.open_date is exist - process it [17:48:34]req_shift_open_date [17:48:34]req_shift_open_date done [17:48:34]produce_requested_data done [17:48:34]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29001,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [17:48:34]process_action_free close_receipt [17:48:34]json_value_free [17:48:34]json_value_free done [17:48:34]process_json_proto returns [17:48:34]Send response to host [17:48:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29001,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [17:48:34]free response buf [17:48:34]execute_script done [17:48:34]execute_script returns [17:48:34]free content buf [17:48:34]Sock 7.Close socket [17:48:34]Sock 7.Thread stoped [17:48:34]accept exits with 9 [17:48:34]New connection [17:48:34]New thread 3066928484 created [17:48:34]Thread 3066785124 joined [17:48:34]Waiting for new connection... [17:48:34] Sock 9.Parse request [17:48:34]Sock 9.Check first char [17:48:34]Sock 9.First char is OK [17:48:34]request: POST /json_proto HTTP/1.0 [17:48:34]Method: POST [17:48:34]URL: /json_proto [17:48:34]Method is POST - this is cgi request [17:48:34]url: /json_proto [17:48:34]query_string will be loaded in cgi processing [17:48:34]execute_cgi json_proto POST (null) [17:48:34]execute_cgi path=json_proto method=POST [17:48:34]POST find Content-Length [17:48:34]Host: 172.17.33.3:8080 [17:48:34]Content-Length: 682 [17:48:34]Content-Type: application/json [17:48:34] [17:48:34]POST finish read [17:48:34]Found Content-Length = 682 [17:48:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347365", "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" : 64.30, "quantity" : 23.330, "sum" : 1500.12, "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:48:34]execute_script... [17:48: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)347365", "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" : 64.30, "quantity" : 23.330, "sum" : 1500.12, "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:48:34]POST & json_proto [17:48:34]process_json_proto [17:48:34]json parsed OK: [17:48:34]protocol is kg_v1.0 [17:48:34]action value=close_receipt [17:48:34]process_action close_receipt [17:48:34]cmd_close_receipt [17:48:34]MH_GetDate [17:48:34]Write to MH i2c: F0 00 00 33 55 77 [17:48:34]Write i2c OK [17:48:34]MH_I2C_Read... [17:48:34]Read from MH i2c: F0 [17:48:34]MH_I2C_Read... [17:48:34]Read from MH i2c: F0 09 00 [17:48:34]MH_I2C_Read... [17:48:34]Read from MH i2c: F0 09 00 33 55 00 78 C5 1A 66 23 5B 8F 65 AF [17:48:34]GetLastDocTimeStamp 1713030516 [17:48:34]current date 1713030520 [17:48:34]FM_GetShiftState [17:48:34]SAM_PROTO_GetShiftState [17:48:34]wFMCommunicate request_size=4 [17:48:34]MH_SAM_APDU [17:48:34]CAPDU: 80 13 01 00 [17:48:34]Write to MH i2c: E2 08 00 34 55 80 13 01 00 00 00 00 00 06 [17:48:34]Write i2c OK [17:48:34]MH_I2C_Read... [17:48:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:34]Read from MH i2c: E2 [17:48:34]MH_I2C_Read... [17:48:34]Read from MH i2c: E2 0E 00 [17:48:34]MH_I2C_Read... [17:48:34]Read from MH i2c: E2 0E 00 34 55 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 1F [17:48:34]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:48:34]wFMCommunicate OK [17:48:34]SAM_PROTO_GetShiftState done [17:48:34]FM_GetShiftState done [17:48:34]opened in 1712967615 [17:48:34]opened+sec_in_day 1713054015 [17:48:34]quantity*price = 150011 [17:48:34]sum+1 = 150013 [17:48:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 209 13.04.2024 17:48 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29002 ФПД: 11559208897132 1/tax-web-control/client/api/v1/ticket?date=20240413T174840&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29002&fm=11559208897132&tin=02508201610067®Number=0000138879044617&sum=150000 [17:48:36]StoreToDocumentArchive [17:48:36]shift 115 fd 29002 [17:48:36]save to /storage/0115/doc_00029002 [17:48:36]save last doc name /storage/0115/doc_00029002 to /storage/kkm_last_doc_name [17:48:36]save OK [17:48:36]Clear old archive folders... [17:48:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:48:36]tlvbuf is 011C1410 [17:48:36]SAM_PROTO_ClearQueue [17:48:36]wFMCommunicate request_size=4 [17:48:36]MH_SAM_APDU [17:48:36]CAPDU: 80 09 00 00 [17:48:36]Write to MH i2c: E2 08 00 41 55 80 09 00 00 00 00 00 00 08 [17:48:36]Write i2c OK [17:48:36]MH_I2C_Read... [17:48:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:36]Read from MH i2c: E2 [17:48:36]MH_I2C_Read... [17:48:36]Read from MH i2c: E2 03 00 [17:48:36]MH_I2C_Read... [17:48:36]Read from MH i2c: E2 03 00 41 55 00 90 00 0A [17:48:36]RAPDU: 90 00 [17:48:36]wFMCommunicate OK [17:48:36]SAM_PROTO_ClearQueue done [17:48:36]KKMCreateOFDPacket [17:48:36]OFDProtocolAddRootSTLVToBuf [17:48:36]FM_MakeSignedData [17:48:36]FM_MakeSignedData [17:48:36]SAM_PROTO_SignData [17:48:36]wFMCommunicate request_size=4 [17:48:36]MH_SAM_APDU [17:48:36]CAPDU: 80 0D 01 02 [17:48:36]Write to MH i2c: E2 08 00 42 55 80 0D 01 02 00 00 00 00 10 [17:48:36]Write i2c OK [17:48:36]MH_I2C_Read... [17:48:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:36]Read from MH i2c: E2 [17:48:36]MH_I2C_Read... [17:48:36]Read from MH i2c: E2 03 00 [17:48:36]MH_I2C_Read... [17:48:36]Read from MH i2c: E2 03 00 42 55 00 90 00 0B [17:48:36]RAPDU: 90 00 [17:48:36]wFMCommunicate OK [17:48:36]wFMCommunicate request_size=255 [17:48:36]MH_SAM_APDU [17:48: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 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 D1 00 00 00 F4 03 04 00 78 C5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4A 71 00 00 35 04 06 00 0A [17:48:36]Write to MH i2c: E2 02 01 43 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 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 D1 00 00 00 F4 03 04 00 78 C5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4A 71 00 00 35 04 06 00 0A 00 00 1A [17:48:36]Write i2c OK [17:48:36]MH_I2C_Read... [17:48:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:36]Read from MH i2c: E2 [17:48:36]MH_I2C_Read... [17:48:36]Read from MH i2c: E2 03 00 [17:48:36]MH_I2C_Read... [17:48:36]Read from MH i2c: E2 03 00 43 55 00 90 00 0C [17:48:36]RAPDU: 90 00 [17:48:36]wFMCommunicate OK [17:48:36]wFMCommunicate request_size=10 [17:48:36]MH_SAM_APDU [17:48:36]CAPDU: 80 0D 02 02 05 83 56 8A 4A 6C [17:48:36]Write to MH i2c: E2 0D 00 44 55 80 0D 02 02 05 00 83 56 8A 4A 6C 00 00 36 [17:48:36]Write i2c OK [17:48:36]MH_I2C_Read... [17:48:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:36]Read from MH i2c: E2 [17:48:36]MH_I2C_Read... [17:48:36]Read from MH i2c: E2 03 00 [17:48:36]MH_I2C_Read... [17:48:36]Read from MH i2c: E2 03 00 44 55 00 90 00 0D [17:48:36]RAPDU: 90 00 [17:48:36]wFMCommunicate OK [17:48:36]wFMCommunicate request_size=4 [17:48:36]MH_SAM_APDU [17:48:36]CAPDU: 80 0D 03 02 [17:48:36]Write to MH i2c: E2 08 00 45 55 80 0D 03 02 00 00 00 00 15 [17:48:36]Write i2c OK [17:48:36]MH_I2C_Read... [17:48:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:36]Read from MH i2c: E2 [17:48:36]MH_I2C_Read... [17:48:36]Read from MH i2c: E2 0B 00 [17:48:36]MH_I2C_Read... [17:48:36]Read from MH i2c: E2 0B 00 45 55 00 76 34 CE BE 72 EF 74 5E 90 00 7F [17:48:36]RAPDU: 76 34 CE BE 72 EF 74 5E 90 00 [17:48:36]wFMCommunicate OK [17:48:36]SAM_PROTO_SignData done [17:48:36]FM_MakeSignedData done [17:48:36]CreateOFDProtocolMessage [17:48:36]wFMCommunicate request_size=4 [17:48:36]MH_SAM_APDU [17:48:36]CAPDU: 80 11 00 00 [17:48:36]Write to MH i2c: E2 08 00 46 55 80 11 00 00 00 00 00 00 15 [17:48:36]Write i2c OK [17:48:36]MH_I2C_Read... [17:48:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:36]Read from MH i2c: E2 [17:48:36]MH_I2C_Read... [17:48:36]Read from MH i2c: E2 17 00 [17:48:36]MH_I2C_Read... [17:48:36]Read from MH i2c: E2 17 00 46 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 64 [17:48:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:48:36]wFMCommunicate OK [17:48:36]CreateOFDProtocolMessage done [17:48:36]OFDSenderStorePacket 29002 [17:48:36]StoreOFDPacket docnum=29002 [17:48:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B9 31 07 01 76 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 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 D1 00 00 00 F4 03 04 00 78 C5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4A 71 00 00 35 04 06 00 0A 83 56 8A 4A 6C 76 34 CE BE 72 EF 74 5E [17:48:36]CheckFolder [17:48:36]dirname=/storage/ofd_packets [17:48:36]CheckFolder done [17:48:36]ProducePacketName [17:48:36]name=ofd_packets/00029002 [17:48:36]NVStorageSaveData ofd_packets/00029002 [17:48:36]File name is /storage/ofd_packets/00029002 [17:48:36]Write 301 bytes [17:48:36]NVStorageSaveData done [17:48:36]OFDSenderStorePacket done [17:48:36]KKMCreateOFDPacket done [17:48:36]NVStorageSaveData kkm_last_timestamp [17:48:36]File name is /storage/kkm_last_timestamp [17:48:36]Write 4 bytes [17:48:36]NVStorageSaveData done [17:48:36]ExternCall_PrintAddStr [17:48:36]wPrintStart [17:48:36]Write to MH i2c: 01 00 00 47 55 9C [17:48:36]Write i2c OK [17:48:36]MH_I2C_Read... [17:48:36]Read from MH i2c: 01 [17:48:36]MH_I2C_Read... [17:48:36]Read from MH i2c: 01 07 00 [17:48:36]MH_I2C_Read... [17:48:36]Read from MH i2c: 01 07 00 47 55 00 00 00 00 00 FF 0F B1 [17:48:36]RasterBufferAndPrint [17:48:36]line Счет N : (1)347365 [17:48:36]line ИНН: 02508201610067 [17:48:36]line Контрольно-Кассовый Чек [17:48:36]line ПРОДАЖА [17:48:36]line ТРК (МРК, ГНК) : 42 [17:48:36]line Товар: 2710124130 [17:48:36]line Аи-92-К-5 [17:48:36]line 23.330 * 64.30 [17:48:36]line = 1500.12 [17:48:36]line НДС 12% НСП 1% [17:48:36]line > о реализуемом товаре [17:48:36]line ОКРУГЛЕНИЕ: -0.12 [17:48:36]line ИТОГО: 1500.00 [17:48:36]line Внесено: 1500.00 [17:48:36]line СДАЧА: 0.00 [17:48:36]line НСП 1% : 13.27 [17:48:36]line НДС 12% : 159.30 [17:48:36]line Наличными: 1500.00 [17:48:36]line Безнал.: 0.00 [17:48:36]line Место: АЗС № 108 "Партнер Нефть" [17:48:36]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:48:36]line СНО: Общий режим [17:48:36]line Чек 209 13.04.2024 17:48 [17:48:36]line Смена: 115 ФФД: 1.0 [17:48:36]line ЗНМ: 0300000027 [17:48:36]line РНМ: 0000138879044617 [17:48:36]line Версия ККМ: 001 [17:48:36]line ФМ: 0000000000963154 [17:48:36]line ФД: 29002 [17:48:36]line ФПД: 11559208897132 [17:48:36]line 1/tax-web-control/client/api/v1/ticket?date=20240413T174840&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29002&fm=11559208897132&tin=02508201610067®Number=0000138879044617&sum=150000 [17:48:36]written 0, free lines is 4095 [17:48:36]OFD Sender: Processing packet 29002 [packets to send 8, broken 7] [17:48:36]ProducePacketName [17:48:36]name=ofd_packets/00029002 [17:48:36]OFD Sender: To server: pG, [17:48:36]CommunicateWithHost lk.salyk.kg:30040 [17:48:36]ConnectInit lk.salyk.kg [17:48:36]Connected sock=10 [17:48: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 31 35 34 0F 01 00 00 B9 31 07 01 76 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 22 5B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 D1 00 00 00 F4 03 04 00 78 C5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4A 71 00 00 35 04 06 00 0A 83 56 8A 4A 6C 76 34 CE BE 72 EF 74 5E [17:48:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AA F0 47 00 DF 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 31 35 34 10 04 04 00 4A 71 00 00 F4 03 04 00 1F 70 1A 66 B6 04 01 00 00 96 EA 67 E8 27 A9 F1 46 [17:48:37]CommunicateWithHost err = 0 [17:48:37]CheckOFDResponse [17:48:37]1017 (14) - 77093643461234 [17:48:37]1041 (16) - 0000000000963154 [17:48:37]1040 (4) - 29002 [17:48:37]1012 (4) - 13.04.2024 11:44 [17:48:37]1206 (1) - 0 [17:48:37]OFD Sender: Remove packet 29002 [17:48:37]ProducePacketName [17:48:37]name=ofd_packets/00029002 [17:48:37]NVStorageDeleteData [17:48:37]Write to MH i2c: 01 00 00 71 55 C6 [17:48:37]Write i2c OK [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: 01 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: 01 07 00 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: 01 07 00 71 55 00 00 00 00 00 D8 0C B1 [17:48:37]RasterBufferAndPrint [17:48:37]line [17:48:37]line [17:48:37]line [17:48:37]line [17:48:37]line [17:48:37]written 0, free lines is 3302 [17:48:37]MH_Cut [17:48:37]Write to MH i2c: D1 01 00 78 55 01 9F [17:48:37]Write i2c OK [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: D1 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: D1 01 00 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: D1 01 00 78 55 00 9E [17:48:37]Write to MH i2c: 01 00 00 79 55 CE [17:48:37]Write i2c OK [17:48:37]MH_I2C_Read... [17:48:37]OFD Sender: No OFD packet to send [17:48:37]*** Cut start [17:48:37]*** Partial cut [17:48:37]*** CUTSNS_PIN = 1 [17:48:37]*** CUTSNS_PIN = 0 [17:48:38]*** Brake cut motor [17:48:38]Read from MH i2c: 01 [17:48:38]MH_I2C_Read... [17:48:38]*** Stop cut motor [17:48:38]*** Cut end [17:48:38]Read from MH i2c: 01 07 00 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: 01 07 00 79 55 00 00 00 00 00 FF 0F E3 [17:48:38]process_action close_receipt done [17:48:38]requested_data is exist [17:48:38]produce_requested_data [17:48:38]requested_item fm.sn is exist - process it [17:48:38]wFMCommunicate request_size=4 [17:48:38]MH_SAM_APDU [17:48:38]CAPDU: 80 11 00 00 [17:48:38]Write to MH i2c: E2 08 00 7A 55 80 11 00 00 00 00 00 00 49 [17:48:38]Write i2c OK [17:48:38]MH_I2C_Read... [17:48:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:38]Read from MH i2c: E2 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 17 00 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 17 00 7A 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 98 [17:48:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:48:38]wFMCommunicate OK [17:48:38]requested_item fd.num is exist - process it [17:48:38]SAM_PROTO_GetFieldsCounters [17:48:38]wFMCommunicate request_size=4 [17:48:38]MH_SAM_APDU [17:48:38]CAPDU: 80 13 00 00 [17:48:38]Write to MH i2c: E2 08 00 7B 55 80 13 00 00 00 00 00 00 4C [17:48:38]Write i2c OK [17:48:38]MH_I2C_Read... [17:48:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:38]Read from MH i2c: E2 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 62 00 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 62 00 7B 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4A 71 00 00 0E 04 04 00 73 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 2B [17:48: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4A 71 00 00 0E 04 04 00 73 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 [17:48:38]wFMCommunicate OK [17:48:38]SAM_PROTO_GetFieldsCounters done [17:48:38]requested_item shift.num is exist - process it [17:48:38]requested_item shift.opened is exist - process it [17:48:38]req_shift_opened [17:48:38]FM_GetShiftState [17:48:38]SAM_PROTO_GetShiftState [17:48:38]wFMCommunicate request_size=4 [17:48:38]MH_SAM_APDU [17:48:38]CAPDU: 80 13 01 00 [17:48:38]Write to MH i2c: E2 08 00 7C 55 80 13 01 00 00 00 00 00 4E [17:48:38]Write i2c OK [17:48:38]MH_I2C_Read... [17:48:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:38]Read from MH i2c: E2 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 0E 00 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 0E 00 7C 55 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 67 [17:48:38]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:48:38]wFMCommunicate OK [17:48:38]SAM_PROTO_GetShiftState done [17:48:38]FM_GetShiftState done [17:48:38]req_shift_opened done [17:48:38]requested_item shift.open_date is exist - process it [17:48:38]req_shift_open_date [17:48:38]req_shift_open_date done [17:48:38]produce_requested_data done [17:48:38]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29002,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [17:48:38]process_action_free close_receipt [17:48:38]json_value_free [17:48:38]json_value_free done [17:48:38]process_json_proto returns [17:48:38]Send response to host [17:48:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29002,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [17:48:38]free response buf [17:48:38]execute_script done [17:48:38]execute_script returns [17:48:38]free content buf [17:48:38]Sock 9.Close socket [17:48:38]Sock 9.Thread stoped [17:48:42]OFD Sender: No OFD packet to send [17:48:47]OFD Sender: No OFD packet to send [17:48:52]OFD Sender: No OFD packet to send [17:48:57]OFD Sender: No OFD packet to send [17:49:02]OFD Sender: No OFD packet to send [17:49:07]OFD Sender: No OFD packet to send [17:49:12]OFD Sender: No OFD packet to send [17:49:17]OFD Sender: No OFD packet to send [17:49:22]OFD Sender: No OFD packet to send [17:49:27]OFD Sender: No OFD packet to send [17:49:32]OFD Sender: No OFD packet to send [17:49:37]OFD Sender: No OFD packet to send [17:49:42]OFD Sender: No OFD packet to send [17:49:47]OFD Sender: No OFD packet to send [17:49:52]OFD Sender: No OFD packet to send [17:49:57]OFD Sender: No OFD packet to send [17:50:02]OFD Sender: No OFD packet to send [17:50:07]OFD Sender: No OFD packet to send [17:50:12]accept exits with 7 [17:50:12]New connection [17:50:12]New thread 3066785124 created [17:50:12]Thread 3066928484 joined [17:50:12]Waiting for new connection... [17:50:12] Sock 7.Parse request [17:50:12]Sock 7.Check first char [17:50:12]Sock 7.First char is OK [17:50:12]request: POST /json_proto HTTP/1.0 [17:50:12]Method: POST [17:50:12]URL: /json_proto [17:50:12]Method is POST - this is cgi request [17:50:12]url: /json_proto [17:50:12]query_string will be loaded in cgi processing [17:50:12]execute_cgi json_proto POST (null) [17:50:12]execute_cgi path=json_proto method=POST [17:50:12]POST find Content-Length [17:50:12]Host: 172.17.33.3:8080 [17:50:12]Content-Length: 677 [17:50:12]Content-Type: application/json [17:50:12] [17:50:12]POST finish read [17:50:12]Found Content-Length = 677 [17:50:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.300, "sum" : 405.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 405.00, "total" : 405.00, "payments": [ { "type": 0, "sum" : 405.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:12]execute_script... [17:50: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)347366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.300, "sum" : 405.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 405.00, "total" : 405.00, "payments": [ { "type": 0, "sum" : 405.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:12]POST & json_proto [17:50:12]process_json_proto [17:50:12]json parsed OK: [17:50:12]protocol is kg_v1.0 [17:50:12]action value=close_receipt [17:50:12]process_action close_receipt [17:50:12]cmd_close_receipt [17:50:12]MH_GetDate [17:50:12]Write to MH i2c: F0 00 00 7D 55 C1 [17:50:12]Write i2c OK [17:50:12]MH_I2C_Read... [17:50:12]Read from MH i2c: F0 [17:50:12]MH_I2C_Read... [17:50:12]Read from MH i2c: F0 09 00 [17:50:12]MH_I2C_Read... [17:50:12]Read from MH i2c: F0 09 00 7D 55 00 DA C5 1A 66 23 5B 8F 65 5B [17:50:12]GetLastDocTimeStamp 1713030520 [17:50:12]current date 1713030618 [17:50:12]FM_GetShiftState [17:50:12]SAM_PROTO_GetShiftState [17:50:12]wFMCommunicate request_size=4 [17:50:12]MH_SAM_APDU [17:50:12]CAPDU: 80 13 01 00 [17:50:12]Write to MH i2c: E2 08 00 7E 55 80 13 01 00 00 00 00 00 50 [17:50:12]Write i2c OK [17:50:12]MH_I2C_Read... [17:50:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:12]Read from MH i2c: E2 [17:50:12]MH_I2C_Read... [17:50:12]Read from MH i2c: E2 0E 00 [17:50:12]MH_I2C_Read... [17:50:12]Read from MH i2c: E2 0E 00 7E 55 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 69 [17:50:12]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:50:12]wFMCommunicate OK [17:50:12]SAM_PROTO_GetShiftState done [17:50:12]FM_GetShiftState done [17:50:12]opened in 1712967615 [17:50:12]opened+sec_in_day 1713054015 [17:50:12]quantity*price = 40509 [17:50:12]sum+1 = 40510 [17:50:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 405.00 Внесено: 405.00 СДАЧА: 0.00 НСП 1% : 3.58 НДС 12% : 43.02 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 210 13.04.2024 17:50 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29003 ФПД: 143271374403166 1/tax-web-control/client/api/v1/ticket?date=20240413T175018&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29003&fm=143271374403166&tin=02508201610067®Number=0000138879044617&sum=40500 [17:50:13]StoreToDocumentArchive [17:50:13]shift 115 fd 29003 [17:50:13]save to /storage/0115/doc_00029003 [17:50:13]save last doc name /storage/0115/doc_00029003 to /storage/kkm_last_doc_name [17:50:13]save OK [17:50:13]Clear old archive folders... [17:50:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:50:13]tlvbuf is 01206880 [17:50:13]SAM_PROTO_ClearQueue [17:50:13]wFMCommunicate request_size=4 [17:50:13]MH_SAM_APDU [17:50:13]CAPDU: 80 09 00 00 [17:50:13]Write to MH i2c: E2 08 00 8B 55 80 09 00 00 00 00 00 00 52 [17:50:13]Write i2c OK [17:50:13]MH_I2C_Read... [17:50:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:13]Read from MH i2c: E2 [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: E2 03 00 [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: E2 03 00 8B 55 00 90 00 54 [17:50:13]RAPDU: 90 00 [17:50:13]wFMCommunicate OK [17:50:13]SAM_PROTO_ClearQueue done [17:50:13]KKMCreateOFDPacket [17:50:13]OFDProtocolAddRootSTLVToBuf [17:50:13]FM_MakeSignedData [17:50:13]FM_MakeSignedData [17:50:13]SAM_PROTO_SignData [17:50:13]wFMCommunicate request_size=4 [17:50:13]MH_SAM_APDU [17:50:13]CAPDU: 80 0D 01 02 [17:50:13]Write to MH i2c: E2 08 00 8C 55 80 0D 01 02 00 00 00 00 5A [17:50:13]Write i2c OK [17:50:13]MH_I2C_Read... [17:50:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:13]Read from MH i2c: E2 [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: E2 03 00 [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: E2 03 00 8C 55 00 90 00 55 [17:50:13]RAPDU: 90 00 [17:50:13]wFMCommunicate OK [17:50:13]wFMCommunicate request_size=255 [17:50:13]MH_SAM_APDU [17:50: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 9C 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 3D 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 DA C5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4B 71 00 00 35 04 06 00 82 [17:50:13]Write to MH i2c: E2 02 01 8D 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 9C 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 3D 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 DA C5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4B 71 00 00 35 04 06 00 82 00 00 D2 [17:50:13]Write i2c OK [17:50:13]MH_I2C_Read... [17:50:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:13]Read from MH i2c: E2 [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: E2 03 00 [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: E2 03 00 8D 55 00 90 00 56 [17:50:13]RAPDU: 90 00 [17:50:13]wFMCommunicate OK [17:50:13]wFMCommunicate request_size=10 [17:50:13]MH_SAM_APDU [17:50:13]CAPDU: 80 0D 02 02 05 4D F7 60 B6 5E [17:50:13]Write to MH i2c: E2 0D 00 8E 55 80 0D 02 02 05 00 4D F7 60 B6 5E 00 00 1F [17:50:13]Write i2c OK [17:50:13]MH_I2C_Read... [17:50:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:13]Read from MH i2c: E2 [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: E2 03 00 [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: E2 03 00 8E 55 00 90 00 57 [17:50:13]RAPDU: 90 00 [17:50:13]wFMCommunicate OK [17:50:13]wFMCommunicate request_size=4 [17:50:13]MH_SAM_APDU [17:50:13]CAPDU: 80 0D 03 02 [17:50:13]Write to MH i2c: E2 08 00 8F 55 80 0D 03 02 00 00 00 00 5F [17:50:13]Write i2c OK [17:50:13]MH_I2C_Read... [17:50:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:14]Read from MH i2c: E2 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 0B 00 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 0B 00 8F 55 00 BB BF 91 EE 0B 87 4F 10 90 00 4A [17:50:14]RAPDU: BB BF 91 EE 0B 87 4F 10 90 00 [17:50:14]wFMCommunicate OK [17:50:14]SAM_PROTO_SignData done [17:50:14]FM_MakeSignedData done [17:50:14]CreateOFDProtocolMessage [17:50:14]wFMCommunicate request_size=4 [17:50:14]MH_SAM_APDU [17:50:14]CAPDU: 80 11 00 00 [17:50:14]Write to MH i2c: E2 08 00 90 55 80 11 00 00 00 00 00 00 5F [17:50:14]Write i2c OK [17:50:14]MH_I2C_Read... [17:50:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:14]Read from MH i2c: E2 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 17 00 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 17 00 90 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AE [17:50:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:50:14]wFMCommunicate OK [17:50:14]CreateOFDProtocolMessage done [17:50:14]OFDSenderStorePacket 29003 [17:50:14]StoreOFDPacket docnum=29003 [17:50:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E6 A4 07 01 31 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 9C 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 3D 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 DA C5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4B 71 00 00 35 04 06 00 82 4D F7 60 B6 5E BB BF 91 EE 0B 87 4F 10 [17:50:14]CheckFolder [17:50:14]dirname=/storage/ofd_packets [17:50:14]CheckFolder done [17:50:14]ProducePacketName [17:50:14]name=ofd_packets/00029003 [17:50:14]NVStorageSaveData ofd_packets/00029003 [17:50:14]File name is /storage/ofd_packets/00029003 [17:50:14]Write 301 bytes [17:50:14]NVStorageSaveData done [17:50:14]OFDSenderStorePacket done [17:50:14]KKMCreateOFDPacket done [17:50:14]NVStorageSaveData kkm_last_timestamp [17:50:14]File name is /storage/kkm_last_timestamp [17:50:14]Write 4 bytes [17:50:14]NVStorageSaveData done [17:50:14]ExternCall_PrintAddStr [17:50:14]wPrintStart [17:50:14]Write to MH i2c: 01 00 00 91 55 E6 [17:50:14]Write i2c OK [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: 01 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: 01 07 00 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: 01 07 00 91 55 00 00 00 00 00 FF 0F FB [17:50:14]RasterBufferAndPrint [17:50:14]line Счет N : (1)347366 [17:50:14]line ИНН: 02508201610067 [17:50:14]line Контрольно-Кассовый Чек [17:50:14]line ПРОДАЖА [17:50:14]line ТРК (МРК, ГНК) : 13 [17:50:14]line Товар: 2710124130 [17:50:14]line Аи-92-К-5 [17:50:14]line 6.300 * 64.30 [17:50:14]line = 405.09 [17:50:14]line НДС 12% НСП 1% [17:50:14]line > о реализуемом товаре [17:50:14]line ОКРУГЛЕНИЕ: -0.09 [17:50:14]line ИТОГО: 405.00 [17:50:14]line Внесено: 405.00 [17:50:14]line СДАЧА: 0.00 [17:50:14]line НСП 1% : 3.58 [17:50:14]line НДС 12% : 43.02 [17:50:14]line Наличными: 405.00 [17:50:14]line Безнал.: 0.00 [17:50:14]line Место: АЗС № 108 "Партнер Нефть" [17:50:14]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:50:14]line СНО: Общий режим [17:50:14]line Чек 210 13.04.2024 17:50 [17:50:14]line Смена: 115 ФФД: 1.0 [17:50:14]line ЗНМ: 0300000027 [17:50:14]line РНМ: 0000138879044617 [17:50:14]line Версия ККМ: 001 [17:50:14]line ФМ: 0000000000963154 [17:50:14]line ФД: 29003 [17:50:14]line ФПД: 143271374403166 [17:50:14]line 1/tax-web-control/client/api/v1/ticket?date=20240413T175018&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29003&fm=143271374403166&tin=02508201610067®Number=0000138879044617&sum=40500 [17:50:14]OFD Sender: Processing packet 29003 [packets to send 8, broken 7] [17:50:14]ProducePacketName [17:50:14]name=ofd_packets/00029003 [17:50:14]OFD Sender: To server: pG, [17:50:14]CommunicateWithHost lk.salyk.kg:30040 [17:50:14]ConnectInit lk.salyk.kg [17:50:14]written 0, free lines is 4095 [17:50:14]Connected sock=10 [17:50: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 31 35 34 0F 01 00 00 E6 A4 07 01 31 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 9C 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 3D 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 DA C5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4B 71 00 00 35 04 06 00 82 4D F7 60 B6 5E BB BF 91 EE 0B 87 4F 10 [17:50:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EF 52 47 00 CB 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 31 35 34 10 04 04 00 4B 71 00 00 F4 03 04 00 80 70 1A 66 B6 04 01 00 00 9C 09 4C 49 02 5E B2 EF [17:50:14]CommunicateWithHost err = 0 [17:50:14]CheckOFDResponse [17:50:14]1017 (14) - 77093643461234 [17:50:14]1041 (16) - 0000000000963154 [17:50:14]1040 (4) - 29003 [17:50:14]1012 (4) - 13.04.2024 11:46 [17:50:14]1206 (1) - 0 [17:50:14]OFD Sender: Remove packet 29003 [17:50:14]ProducePacketName [17:50:14]name=ofd_packets/00029003 [17:50:14]NVStorageDeleteData [17:50:14]Write to MH i2c: 01 00 00 BB 55 10 [17:50:14]Write i2c OK [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: 01 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: 01 07 00 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: 01 07 00 BB 55 00 00 00 00 00 C0 0C E3 [17:50:14]RasterBufferAndPrint [17:50:14]line [17:50:14]line [17:50:14]line [17:50:14]line [17:50:14]line [17:50:14]written 0, free lines is 3268 [17:50:14]MH_Cut [17:50:14]Write to MH i2c: D1 01 00 C2 55 01 E9 [17:50:14]Write i2c OK [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: D1 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: D1 01 00 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: D1 01 00 C2 55 00 E8 [17:50:14]Write to MH i2c: 01 00 00 C3 55 18 [17:50:14]Write i2c OK [17:50:14]MH_I2C_Read... [17:50:15]OFD Sender: No OFD packet to send [17:50:15]*** Cut start [17:50:15]*** Partial cut [17:50:15]*** CUTSNS_PIN = 1 [17:50:15]*** CUTSNS_PIN = 0 [17:50:15]*** Brake cut motor [17:50:16]Read from MH i2c: 01 [17:50:16]MH_I2C_Read... [17:50:16]*** Stop cut motor [17:50:16]*** Cut end [17:50:16]Read from MH i2c: 01 07 00 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: 01 07 00 C3 55 00 00 00 00 00 FF 0F 2D [17:50:16]process_action close_receipt done [17:50:16]requested_data is exist [17:50:16]produce_requested_data [17:50:16]requested_item fm.sn is exist - process it [17:50:16]wFMCommunicate request_size=4 [17:50:16]MH_SAM_APDU [17:50:16]CAPDU: 80 11 00 00 [17:50:16]Write to MH i2c: E2 08 00 C4 55 80 11 00 00 00 00 00 00 93 [17:50:16]Write i2c OK [17:50:16]MH_I2C_Read... [17:50:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:16]Read from MH i2c: E2 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 17 00 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 17 00 C4 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E2 [17:50:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:50:16]wFMCommunicate OK [17:50:16]requested_item fd.num is exist - process it [17:50:16]SAM_PROTO_GetFieldsCounters [17:50:16]wFMCommunicate request_size=4 [17:50:16]MH_SAM_APDU [17:50:16]CAPDU: 80 13 00 00 [17:50:16]Write to MH i2c: E2 08 00 C5 55 80 13 00 00 00 00 00 00 96 [17:50:16]Write i2c OK [17:50:16]MH_I2C_Read... [17:50:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:16]Read from MH i2c: E2 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 62 00 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 62 00 C5 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4B 71 00 00 0E 04 04 00 73 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 79 [17:50: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4B 71 00 00 0E 04 04 00 73 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 [17:50:16]wFMCommunicate OK [17:50:16]SAM_PROTO_GetFieldsCounters done [17:50:16]requested_item shift.num is exist - process it [17:50:16]requested_item shift.opened is exist - process it [17:50:16]req_shift_opened [17:50:16]FM_GetShiftState [17:50:16]SAM_PROTO_GetShiftState [17:50:16]wFMCommunicate request_size=4 [17:50:16]MH_SAM_APDU [17:50:16]CAPDU: 80 13 01 00 [17:50:16]Write to MH i2c: E2 08 00 C6 55 80 13 01 00 00 00 00 00 98 [17:50:16]Write i2c OK [17:50:16]MH_I2C_Read... [17:50:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:16]Read from MH i2c: E2 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 0E 00 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 0E 00 C6 55 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 B1 [17:50:16]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:50:16]wFMCommunicate OK [17:50:16]SAM_PROTO_GetShiftState done [17:50:16]FM_GetShiftState done [17:50:16]req_shift_opened done [17:50:16]requested_item shift.open_date is exist - process it [17:50:16]req_shift_open_date [17:50:16]req_shift_open_date done [17:50:16]produce_requested_data done [17:50:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29003,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [17:50:16]process_action_free close_receipt [17:50:16]json_value_free [17:50:16]json_value_free done [17:50:16]process_json_proto returns [17:50:16]Send response to host [17:50:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29003,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [17:50:16]free response buf [17:50:16]execute_script done [17:50:16]execute_script returns [17:50:16]free content buf [17:50:16]Sock 7.Close socket [17:50:16]Sock 7.Thread stoped [17:50:20]OFD Sender: No OFD packet to send [17:50:25]OFD Sender: No OFD packet to send [17:50:30]OFD Sender: No OFD packet to send [17:50:35]OFD Sender: No OFD packet to send [17:50:40]OFD Sender: No OFD packet to send [17:50:45]OFD Sender: No OFD packet to send [17:50:50]OFD Sender: No OFD packet to send [17:50:55]OFD Sender: No OFD packet to send [17:51:00]OFD Sender: No OFD packet to send [17:51:05]OFD Sender: No OFD packet to send [17:51:10]OFD Sender: No OFD packet to send [17:51:15]OFD Sender: No OFD packet to send [17:51:20]OFD Sender: No OFD packet to send [17:51:25]OFD Sender: No OFD packet to send [17:51:30]OFD Sender: No OFD packet to send [17:51:35]OFD Sender: No OFD packet to send [17:51:40]OFD Sender: No OFD packet to send [17:51:45]OFD Sender: No OFD packet to send [17:51:50]OFD Sender: No OFD packet to send [17:51:55]OFD Sender: No OFD packet to send [17:52:00]OFD Sender: No OFD packet to send [17:52:05]OFD Sender: No OFD packet to send [17:52:10]OFD Sender: No OFD packet to send [17:52:15]OFD Sender: No OFD packet to send [17:52:20]OFD Sender: No OFD packet to send [17:52:25]OFD Sender: No OFD packet to send [17:52:27]accept exits with 9 [17:52:27]New connection [17:52:27]New thread 3066928484 created [17:52:27]Thread 3066785124 joined [17:52:27]Waiting for new connection... [17:52:27] Sock 9.Parse request [17:52:27]Sock 9.Check first char [17:52:27]Sock 9.First char is OK [17:52:27]request: POST /json_proto HTTP/1.0 [17:52:27]Method: POST [17:52:27]URL: /json_proto [17:52:27]Method is POST - this is cgi request [17:52:27]url: /json_proto [17:52:27]query_string will be loaded in cgi processing [17:52:27]execute_cgi json_proto POST (null) [17:52:27]execute_cgi path=json_proto method=POST [17:52:27]POST find Content-Length [17:52:27]Host: 172.17.33.3:8080 [17:52:27]Content-Length: 681 [17:52:27]Content-Type: application/json [17:52:27] [17:52:27]POST finish read [17:52:27]Found Content-Length = 681 [17:52:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 24.630, "sum" : 810.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 810.00, "payments": [ { "type": 0, "sum" : 810.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:27]execute_script... [17:52:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 24.630, "sum" : 810.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 810.00, "payments": [ { "type": 0, "sum" : 810.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:27]POST & json_proto [17:52:27]process_json_proto [17:52:27]json parsed OK: [17:52:27]protocol is kg_v1.0 [17:52:27]action value=close_receipt [17:52:27]process_action close_receipt [17:52:27]cmd_close_receipt [17:52:27]MH_GetDate [17:52:27]Write to MH i2c: F0 00 00 C7 55 0B [17:52:27]Write i2c OK [17:52:27]MH_I2C_Read... [17:52:27]Read from MH i2c: F0 [17:52:27]MH_I2C_Read... [17:52:27]Read from MH i2c: F0 09 00 [17:52:27]MH_I2C_Read... [17:52:27]Read from MH i2c: F0 09 00 C7 55 00 61 C6 1A 66 23 5B 8F 65 2D [17:52:27]GetLastDocTimeStamp 1713030618 [17:52:27]current date 1713030753 [17:52:27]FM_GetShiftState [17:52:27]SAM_PROTO_GetShiftState [17:52:27]wFMCommunicate request_size=4 [17:52:27]MH_SAM_APDU [17:52:27]CAPDU: 80 13 01 00 [17:52:27]Write to MH i2c: E2 08 00 C8 55 80 13 01 00 00 00 00 00 9A [17:52:27]Write i2c OK [17:52:27]MH_I2C_Read... [17:52:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:27]Read from MH i2c: E2 [17:52:27]MH_I2C_Read... [17:52:27]Read from MH i2c: E2 0E 00 [17:52:27]MH_I2C_Read... [17:52:27]Read from MH i2c: E2 0E 00 C8 55 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 B3 [17:52:27]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:52:27]wFMCommunicate OK [17:52:27]SAM_PROTO_GetShiftState done [17:52:27]FM_GetShiftState done [17:52:27]opened in 1712967615 [17:52:27]opened+sec_in_day 1713054015 [17:52:27]quantity*price = 81032 [17:52:27]sum+1 = 81034 [17:52:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 810.00 Внесено: 900.00 СДАЧА: 90.00 НСП 1% : 7.17 НДС 12% : 86.05 Наличными: 810.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 211 13.04.2024 17:52 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29004 ФПД: 39709268989592 1/tax-web-control/client/api/v1/ticket?date=20240413T175233&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29004&fm=39709268989592&tin=02508201610067®Number=0000138879044617&sum=81000 [17:52:28]StoreToDocumentArchive [17:52:28]shift 115 fd 29004 [17:52:28]save to /storage/0115/doc_00029004 [17:52:28]save last doc name /storage/0115/doc_00029004 to /storage/kkm_last_doc_name [17:52:28]save OK [17:52:28]Clear old archive folders... [17:52:28]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:52:28]tlvbuf is 011EE4E0 [17:52:28]SAM_PROTO_ClearQueue [17:52:28]wFMCommunicate request_size=4 [17:52:29]MH_SAM_APDU [17:52:29]CAPDU: 80 09 00 00 [17:52:29]Write to MH i2c: E2 08 00 D5 55 80 09 00 00 00 00 00 00 9C [17:52:29]Write i2c OK [17:52:29]MH_I2C_Read... [17:52:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:29]Read from MH i2c: E2 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 03 00 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 03 00 D5 55 00 90 00 9E [17:52:29]RAPDU: 90 00 [17:52:29]wFMCommunicate OK [17:52:29]SAM_PROTO_ClearQueue done [17:52:29]KKMCreateOFDPacket [17:52:29]OFDProtocolAddRootSTLVToBuf [17:52:29]FM_MakeSignedData [17:52:29]FM_MakeSignedData [17:52:29]SAM_PROTO_SignData [17:52:29]wFMCommunicate request_size=4 [17:52:29]MH_SAM_APDU [17:52:29]CAPDU: 80 0D 01 02 [17:52:29]Write to MH i2c: E2 08 00 D6 55 80 0D 01 02 00 00 00 00 A4 [17:52:29]Write i2c OK [17:52:29]MH_I2C_Read... [17:52:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:29]Read from MH i2c: E2 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 03 00 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 03 00 D6 55 00 90 00 9F [17:52:29]RAPDU: 90 00 [17:52:29]wFMCommunicate OK [17:52:29]wFMCommunicate request_size=255 [17:52:29]MH_SAM_APDU [17:52:29]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 36 60 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 89 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 21 00 00 00 00 07 04 06 00 68 3C 01 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 61 C6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4C 71 00 00 35 04 06 00 24 1D [17:52:29]Write to MH i2c: E2 02 01 D7 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 35 FF 03 08 00 03 36 60 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 89 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 21 00 00 00 00 07 04 06 00 68 3C 01 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 61 C6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4C 71 00 00 35 04 06 00 24 1D 00 00 7F [17:52:29]Write i2c OK [17:52:29]MH_I2C_Read... [17:52:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:29]Read from MH i2c: E2 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 03 00 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 03 00 D7 55 00 90 00 A0 [17:52:29]RAPDU: 90 00 [17:52:29]wFMCommunicate OK [17:52:29]wFMCommunicate request_size=9 [17:52:29]MH_SAM_APDU [17:52:29]CAPDU: 80 0D 02 02 04 88 DF 56 98 [17:52:29]Write to MH i2c: E2 0C 00 D8 55 80 0D 02 02 04 00 88 DF 56 98 00 00 04 [17:52:29]Write i2c OK [17:52:29]MH_I2C_Read... [17:52:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:29]Read from MH i2c: E2 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 03 00 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 03 00 D8 55 00 90 00 A1 [17:52:29]RAPDU: 90 00 [17:52:29]wFMCommunicate OK [17:52:29]wFMCommunicate request_size=4 [17:52:29]MH_SAM_APDU [17:52:29]CAPDU: 80 0D 03 02 [17:52:29]Write to MH i2c: E2 08 00 D9 55 80 0D 03 02 00 00 00 00 A9 [17:52:29]Write i2c OK [17:52:29]MH_I2C_Read... [17:52:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:29]Read from MH i2c: E2 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 0B 00 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 0B 00 D9 55 00 9B 64 37 AA C1 77 89 C9 90 00 14 [17:52:29]RAPDU: 9B 64 37 AA C1 77 89 C9 90 00 [17:52:29]wFMCommunicate OK [17:52:29]SAM_PROTO_SignData done [17:52:29]FM_MakeSignedData done [17:52:29]CreateOFDProtocolMessage [17:52:29]wFMCommunicate request_size=4 [17:52:29]MH_SAM_APDU [17:52:29]CAPDU: 80 11 00 00 [17:52:29]Write to MH i2c: E2 08 00 DA 55 80 11 00 00 00 00 00 00 A9 [17:52:29]Write i2c OK [17:52:29]MH_I2C_Read... [17:52:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:29]Read from MH i2c: E2 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 17 00 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 17 00 DA 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F8 [17:52:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:52:29]wFMCommunicate OK [17:52:29]CreateOFDProtocolMessage done [17:52:29]OFDSenderStorePacket 29004 [17:52:29]StoreOFDPacket docnum=29004 [17:52:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 C1 FC 06 01 5A 10 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 36 60 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 89 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 21 00 00 00 00 07 04 06 00 68 3C 01 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 61 C6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4C 71 00 00 35 04 06 00 24 1D 88 DF 56 98 9B 64 37 AA C1 77 89 C9 [17:52:29]CheckFolder [17:52:29]dirname=/storage/ofd_packets [17:52:29]CheckFolder done [17:52:29]ProducePacketName [17:52:29]name=ofd_packets/00029004 [17:52:29]NVStorageSaveData ofd_packets/00029004 [17:52:29]File name is /storage/ofd_packets/00029004 [17:52:29]Write 300 bytes [17:52:29]NVStorageSaveData done [17:52:29]OFDSenderStorePacket done [17:52:29]KKMCreateOFDPacket done [17:52:29]NVStorageSaveData kkm_last_timestamp [17:52:29]File name is /storage/kkm_last_timestamp [17:52:29]Write 4 bytes [17:52:29]NVStorageSaveData done [17:52:29]ExternCall_PrintAddStr [17:52:29]wPrintStart [17:52:29]Write to MH i2c: 01 00 00 DB 55 30 [17:52:29]Write i2c OK [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: 01 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: 01 07 00 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: 01 07 00 DB 55 00 00 00 00 00 FF 0F 45 [17:52:29]RasterBufferAndPrint [17:52:29]line Счет N : (1)347367 [17:52:29]line ИНН: 02508201610067 [17:52:29]line Контрольно-Кассовый Чек [17:52:29]line ПРОДАЖА [17:52:29]line ТРК (МРК, ГНК) : 71 [17:52:29]line Товар: 2711129700 [17:52:29]line ГАЗ-К-5 [17:52:29]line 24.630 * 32.90 [17:52:29]line = 810.33 [17:52:29]line НДС 12% НСП 1% [17:52:29]line > о реализуемом товаре [17:52:29]line ОКРУГЛЕНИЕ: -0.33 [17:52:29]line ИТОГО: 810.00 [17:52:29]line Внесено: 900.00 [17:52:29]line СДАЧА: 90.00 [17:52:29]line НСП 1% : 7.17 [17:52:29]line НДС 12% : 86.05 [17:52:29]line Наличными: 810.00 [17:52:29]line Безнал.: 0.00 [17:52:29]line Место: АЗС № 108 "Партнер Нефть" [17:52:29]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:52:29]line СНО: Общий режим [17:52:29]line Чек 211 13.04.2024 17:52 [17:52:29]line Смена: 115 ФФД: 1.0 [17:52:29]line ЗНМ: 0300000027 [17:52:29]line РНМ: 0000138879044617 [17:52:29]line Версия ККМ: 001 [17:52:29]line ФМ: 0000000000963154 [17:52:29]line ФД: 29004 [17:52:29]line ФПД: 39709268989592 [17:52:29]line 1/tax-web-control/client/api/v1/ticket?date=20240413T175233&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29004&fm=39709268989592&tin=02508201610067®Number=0000138879044617&sum=81000 [17:52:29]OFD Sender: Processing packet 29004 [packets to send 8, broken 7] [17:52:29]ProducePacketName [17:52:29]name=ofd_packets/00029004 [17:52:29]OFD Sender: To server: pG, [17:52:29]CommunicateWithHost lk.salyk.kg:30040 [17:52:29]ConnectInit lk.salyk.kg [17:52:29]written 0, free lines is 4095 [17:52:29]Connected sock=10 [17:52: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 31 35 34 0E 01 00 00 C1 FC 06 01 5A 10 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 36 60 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 89 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 21 00 00 00 00 07 04 06 00 68 3C 01 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 61 C6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4C 71 00 00 35 04 06 00 24 1D 88 DF 56 98 9B 64 37 AA C1 77 89 C9 [17:52:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 28 E7 47 00 AE 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4C 71 00 00 F4 03 04 00 08 71 1A 66 B6 04 01 00 00 A6 DB 22 61 9B 0E 4D 03 [17:52:30]CommunicateWithHost err = 0 [17:52:30]CheckOFDResponse [17:52:30]1017 (14) - 77093643461234 [17:52:30]1041 (16) - 0000000000963154 [17:52:30]1040 (4) - 29004 [17:52:30]1012 (4) - 13.04.2024 11:48 [17:52:30]1206 (1) - 0 [17:52:30]OFD Sender: Remove packet 29004 [17:52:30]ProducePacketName [17:52:30]name=ofd_packets/00029004 [17:52:30]NVStorageDeleteData [17:52:30]Write to MH i2c: 01 00 00 05 56 5B [17:52:30]Write i2c OK [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: 01 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: 01 07 00 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: 01 07 00 05 56 00 00 00 00 00 C2 0C 30 [17:52:30]RasterBufferAndPrint [17:52:30]line [17:52:30]line [17:52:30]line [17:52:30]line [17:52:30]line [17:52:30]written 0, free lines is 3270 [17:52:30]MH_Cut [17:52:30]Write to MH i2c: D1 01 00 0C 56 01 34 [17:52:30]Write i2c OK [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: D1 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: D1 01 00 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: D1 01 00 0C 56 00 33 [17:52:30]Write to MH i2c: 01 00 00 0D 56 63 [17:52:30]Write i2c OK [17:52:30]MH_I2C_Read... [17:52:30]OFD Sender: No OFD packet to send [17:52:31]*** Cut start [17:52:31]*** Partial cut [17:52:31]*** CUTSNS_PIN = 1 [17:52:31]*** CUTSNS_PIN = 0 [17:52:31]*** Brake cut motor [17:52:31]Read from MH i2c: 01 [17:52:31]MH_I2C_Read... [17:52:31]*** Stop cut motor [17:52:31]*** Cut end [17:52:31]Read from MH i2c: 01 07 00 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: 01 07 00 0D 56 00 00 00 00 00 FF 0F 78 [17:52:31]process_action close_receipt done [17:52:31]requested_data is exist [17:52:31]produce_requested_data [17:52:31]requested_item fm.sn is exist - process it [17:52:31]wFMCommunicate request_size=4 [17:52:31]MH_SAM_APDU [17:52:31]CAPDU: 80 11 00 00 [17:52:31]Write to MH i2c: E2 08 00 0E 56 80 11 00 00 00 00 00 00 DE [17:52:31]Write i2c OK [17:52:31]MH_I2C_Read... [17:52:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:31]Read from MH i2c: E2 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: E2 17 00 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: E2 17 00 0E 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2D [17:52:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:52:31]wFMCommunicate OK [17:52:31]requested_item fd.num is exist - process it [17:52:31]SAM_PROTO_GetFieldsCounters [17:52:31]wFMCommunicate request_size=4 [17:52:31]MH_SAM_APDU [17:52:31]CAPDU: 80 13 00 00 [17:52:31]Write to MH i2c: E2 08 00 0F 56 80 13 00 00 00 00 00 00 E1 [17:52:31]Write i2c OK [17:52:31]MH_I2C_Read... [17:52:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:31]Read from MH i2c: E2 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: E2 62 00 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: E2 62 00 0F 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4C 71 00 00 0E 04 04 00 73 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 C8 [17:52: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4C 71 00 00 0E 04 04 00 73 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 [17:52:31]wFMCommunicate OK [17:52:31]SAM_PROTO_GetFieldsCounters done [17:52:31]requested_item shift.num is exist - process it [17:52:31]requested_item shift.opened is exist - process it [17:52:31]req_shift_opened [17:52:31]FM_GetShiftState [17:52:31]SAM_PROTO_GetShiftState [17:52:31]wFMCommunicate request_size=4 [17:52:31]MH_SAM_APDU [17:52:31]CAPDU: 80 13 01 00 [17:52:31]Write to MH i2c: E2 08 00 10 56 80 13 01 00 00 00 00 00 E3 [17:52:31]Write i2c OK [17:52:31]MH_I2C_Read... [17:52:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:31]Read from MH i2c: E2 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: E2 0E 00 [17:52:31]MH_I2C_Read... [17:52:31]Read from MH i2c: E2 0E 00 10 56 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 FC [17:52:31]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:52:31]wFMCommunicate OK [17:52:31]SAM_PROTO_GetShiftState done [17:52:31]FM_GetShiftState done [17:52:31]req_shift_opened done [17:52:31]requested_item shift.open_date is exist - process it [17:52:31]req_shift_open_date [17:52:31]req_shift_open_date done [17:52:31]produce_requested_data done [17:52:31]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29004,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [17:52:31]process_action_free close_receipt [17:52:31]json_value_free [17:52:31]json_value_free done [17:52:31]process_json_proto returns [17:52:31]Send response to host [17:52:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29004,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [17:52:31]free response buf [17:52:31]execute_script done [17:52:31]execute_script returns [17:52:31]free content buf [17:52:31]Sock 9.Close socket [17:52:31]Sock 9.Thread stoped [17:52:35]OFD Sender: No OFD packet to send [17:52:40]OFD Sender: No OFD packet to send [17:52:45]OFD Sender: No OFD packet to send [17:52:50]OFD Sender: No OFD packet to send [17:52:55]OFD Sender: No OFD packet to send [17:53:00]OFD Sender: No OFD packet to send [17:53:05]OFD Sender: No OFD packet to send [17:53:10]OFD Sender: No OFD packet to send [17:53:15]OFD Sender: No OFD packet to send [17:53:20]OFD Sender: No OFD packet to send [17:53:25]OFD Sender: No OFD packet to send [17:53:30]OFD Sender: No OFD packet to send [17:53:35]OFD Sender: No OFD packet to send [17:53:40]OFD Sender: No OFD packet to send [17:53:45]OFD Sender: No OFD packet to send [17:53:50]OFD Sender: No OFD packet to send [17:53:55]OFD Sender: No OFD packet to send [17:54:00]OFD Sender: No OFD packet to send [17:54:02]accept exits with 7 [17:54:02]New connection [17:54:02]New thread 3066785124 created [17:54:02]Thread 3066928484 joined [17:54:02]Waiting for new connection... [17:54:02] Sock 7.Parse request [17:54:02]Sock 7.Check first char [17:54:02]Sock 7.First char is OK [17:54:02]request: POST /json_proto HTTP/1.0 [17:54:02]Method: POST [17:54:02]URL: /json_proto [17:54:02]Method is POST - this is cgi request [17:54:02]url: /json_proto [17:54:02]query_string will be loaded in cgi processing [17:54:02]execute_cgi json_proto POST (null) [17:54:02]execute_cgi path=json_proto method=POST [17:54:02]POST find Content-Length [17:54:02]Host: 172.17.33.3:8080 [17:54:02]Content-Length: 677 [17:54:02]Content-Type: application/json [17:54:02] [17:54:02]POST finish read [17:54:02]Found Content-Length = 677 [17:54:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347368", "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" : 64.30, "quantity" : 7.780, "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:54:02]execute_script... [17:54: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)347368", "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" : 64.30, "quantity" : 7.780, "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:54:02]POST & json_proto [17:54:02]process_json_proto [17:54:02]json parsed OK: [17:54:02]protocol is kg_v1.0 [17:54:02]action value=close_receipt [17:54:02]process_action close_receipt [17:54:02]cmd_close_receipt [17:54:02]MH_GetDate [17:54:02]Write to MH i2c: F0 00 00 11 56 56 [17:54:02]Write i2c OK [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: F0 [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: F0 09 00 [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: F0 09 00 11 56 00 C0 C6 1A 66 23 5B 8F 65 D7 [17:54:02]GetLastDocTimeStamp 1713030753 [17:54:02]current date 1713030848 [17:54:02]FM_GetShiftState [17:54:02]SAM_PROTO_GetShiftState [17:54:02]wFMCommunicate request_size=4 [17:54:02]MH_SAM_APDU [17:54:02]CAPDU: 80 13 01 00 [17:54:02]Write to MH i2c: E2 08 00 12 56 80 13 01 00 00 00 00 00 E5 [17:54:02]Write i2c OK [17:54:02]MH_I2C_Read... [17:54:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:02]Read from MH i2c: E2 [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: E2 0E 00 [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: E2 0E 00 12 56 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 FE [17:54:02]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:54:02]wFMCommunicate OK [17:54:02]SAM_PROTO_GetShiftState done [17:54:02]FM_GetShiftState done [17:54:02]opened in 1712967615 [17:54:02]opened+sec_in_day 1713054015 [17:54:02]quantity*price = 50025 [17:54:02]sum+1 = 50026 [17:54:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 212 13.04.2024 17:54 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29005 ФПД: 269209110539077 1/tax-web-control/client/api/v1/ticket?date=20240413T175408&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29005&fm=269209110539077&tin=02508201610067®Number=0000138879044617&sum=50000 [17:54:03]StoreToDocumentArchive [17:54:03]shift 115 fd 29005 [17:54:03]save to /storage/0115/doc_00029005 [17:54:03]save last doc name /storage/0115/doc_00029005 to /storage/kkm_last_doc_name [17:54:03]save OK [17:54:03]Clear old archive folders... [17:54:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:54:03]tlvbuf is 01208670 [17:54:03]SAM_PROTO_ClearQueue [17:54:03]wFMCommunicate request_size=4 [17:54:03]MH_SAM_APDU [17:54:03]CAPDU: 80 09 00 00 [17:54:03]Write to MH i2c: E2 08 00 1F 56 80 09 00 00 00 00 00 00 E7 [17:54:03]Write i2c OK [17:54:03]MH_I2C_Read... [17:54:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:03]Read from MH i2c: E2 [17:54:03]MH_I2C_Read... [17:54:03]Read from MH i2c: E2 03 00 [17:54:03]MH_I2C_Read... [17:54:03]Read from MH i2c: E2 03 00 1F 56 00 90 00 E9 [17:54:03]RAPDU: 90 00 [17:54:03]wFMCommunicate OK [17:54:03]SAM_PROTO_ClearQueue done [17:54:03]KKMCreateOFDPacket [17:54:03]OFDProtocolAddRootSTLVToBuf [17:54:03]FM_MakeSignedData [17:54:03]FM_MakeSignedData [17:54:03]SAM_PROTO_SignData [17:54:03]wFMCommunicate request_size=4 [17:54:03]MH_SAM_APDU [17:54:03]CAPDU: 80 0D 01 02 [17:54:03]Write to MH i2c: E2 08 00 20 56 80 0D 01 02 00 00 00 00 EF [17:54:03]Write i2c OK [17:54:03]MH_I2C_Read... [17:54:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:03]Read from MH i2c: E2 [17:54:03]MH_I2C_Read... [17:54:03]Read from MH i2c: E2 03 00 [17:54:03]MH_I2C_Read... [17:54:03]Read from MH i2c: E2 03 00 20 56 00 90 00 EA [17:54:03]RAPDU: 90 00 [17:54:03]wFMCommunicate OK [17:54:03]wFMCommunicate request_size=255 [17:54:03]MH_SAM_APDU [17:54: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 D4 00 00 00 F4 03 04 00 C0 C6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4D 71 00 00 35 04 06 00 F4 [17:54:03]Write to MH i2c: E2 02 01 21 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 D4 00 00 00 F4 03 04 00 C0 C6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4D 71 00 00 35 04 06 00 F4 00 00 B0 [17:54:04]Write i2c OK [17:54:04]MH_I2C_Read... [17:54:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:04]Read from MH i2c: E2 [17:54:04]MH_I2C_Read... [17:54:04]Read from MH i2c: E2 03 00 [17:54:04]MH_I2C_Read... [17:54:04]Read from MH i2c: E2 03 00 21 56 00 90 00 EB [17:54:04]RAPDU: 90 00 [17:54:04]wFMCommunicate OK [17:54:04]wFMCommunicate request_size=10 [17:54:04]MH_SAM_APDU [17:54:04]CAPDU: 80 0D 02 02 05 D8 21 67 6B 45 [17:54:04]Write to MH i2c: E2 0D 00 22 56 80 0D 02 02 05 00 D8 21 67 6B 45 00 00 0C [17:54:04]Write i2c OK [17:54:04]MH_I2C_Read... [17:54:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:04]Read from MH i2c: E2 [17:54:04]MH_I2C_Read... [17:54:04]Read from MH i2c: E2 03 00 [17:54:04]MH_I2C_Read... [17:54:04]Read from MH i2c: E2 03 00 22 56 00 90 00 EC [17:54:04]RAPDU: 90 00 [17:54:04]wFMCommunicate OK [17:54:04]wFMCommunicate request_size=4 [17:54:04]MH_SAM_APDU [17:54:04]CAPDU: 80 0D 03 02 [17:54:04]Write to MH i2c: E2 08 00 23 56 80 0D 03 02 00 00 00 00 F4 [17:54:04]Write i2c OK [17:54:04]MH_I2C_Read... [17:54:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:04]Read from MH i2c: E2 [17:54:04]MH_I2C_Read... [17:54:04]Read from MH i2c: E2 0B 00 [17:54:04]MH_I2C_Read... [17:54:04]Read from MH i2c: E2 0B 00 23 56 00 E8 53 2C 43 20 B1 FB 0F 90 00 7A [17:54:04]RAPDU: E8 53 2C 43 20 B1 FB 0F 90 00 [17:54:04]wFMCommunicate OK [17:54:04]SAM_PROTO_SignData done [17:54:04]FM_MakeSignedData done [17:54:04]CreateOFDProtocolMessage [17:54:04]wFMCommunicate request_size=4 [17:54:04]MH_SAM_APDU [17:54:04]CAPDU: 80 11 00 00 [17:54:04]Write to MH i2c: E2 08 00 24 56 80 11 00 00 00 00 00 00 F4 [17:54:04]Write i2c OK [17:54:04]MH_I2C_Read... [17:54:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:04]Read from MH i2c: E2 [17:54:04]MH_I2C_Read... [17:54:04]Read from MH i2c: E2 17 00 [17:54:04]MH_I2C_Read... [17:54:04]Read from MH i2c: E2 17 00 24 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 43 [17:54:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:54:04]wFMCommunicate OK [17:54:04]CreateOFDProtocolMessage done [17:54:04]OFDSenderStorePacket 29005 [17:54:04]StoreOFDPacket docnum=29005 [17:54:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 BE A9 07 01 4D 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 D4 00 00 00 F4 03 04 00 C0 C6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4D 71 00 00 35 04 06 00 F4 D8 21 67 6B 45 E8 53 2C 43 20 B1 FB 0F [17:54:04]CheckFolder [17:54:04]dirname=/storage/ofd_packets [17:54:04]CheckFolder done [17:54:04]ProducePacketName [17:54:04]name=ofd_packets/00029005 [17:54:04]NVStorageSaveData ofd_packets/00029005 [17:54:04]File name is /storage/ofd_packets/00029005 [17:54:04]Write 301 bytes [17:54:04]NVStorageSaveData done [17:54:04]OFDSenderStorePacket done [17:54:04]KKMCreateOFDPacket done [17:54:04]NVStorageSaveData kkm_last_timestamp [17:54:04]File name is /storage/kkm_last_timestamp [17:54:04]Write 4 bytes [17:54:04]NVStorageSaveData done [17:54:04]ExternCall_PrintAddStr [17:54:04]wPrintStart [17:54:04]Write to MH i2c: 01 00 00 25 56 7B [17:54:04]Write i2c OK [17:54:04]MH_I2C_Read... [17:54:04]Read from MH i2c: 01 [17:54:04]MH_I2C_Read... [17:54:04]Read from MH i2c: 01 07 00 [17:54:04]MH_I2C_Read... [17:54:04]Read from MH i2c: 01 07 00 25 56 00 00 00 00 00 FF 0F 90 [17:54:04]RasterBufferAndPrint [17:54:04]line Счет N : (1)347368 [17:54:04]line ИНН: 02508201610067 [17:54:04]line Контрольно-Кассовый Чек [17:54:04]line ПРОДАЖА [17:54:04]line ТРК (МРК, ГНК) : 32 [17:54:04]line Товар: 2710124130 [17:54:04]line Аи-92-К-5 [17:54:04]line 7.780 * 64.30 [17:54:04]line = 500.25 [17:54:04]line НДС 12% НСП 1% [17:54:04]line > о реализуемом товаре [17:54:04]line ОКРУГЛЕНИЕ: -0.25 [17:54:04]line ИТОГО: 500.00 [17:54:04]line Внесено: 500.00 [17:54:04]line СДАЧА: 0.00 [17:54:04]line НСП 1% : 4.43 [17:54:04]line НДС 12% : 53.12 [17:54:04]line Наличными: 500.00 [17:54:04]line Безнал.: 0.00 [17:54:04]line Место: АЗС № 108 "Партнер Нефть" [17:54:04]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:54:04]line СНО: Общий режим [17:54:04]line Чек 212 13.04.2024 17:54 [17:54:04]line Смена: 115 ФФД: 1.0 [17:54:04]line ЗНМ: 0300000027 [17:54:04]line РНМ: 0000138879044617 [17:54:04]line Версия ККМ: 001 [17:54:04]line ФМ: 0000000000963154 [17:54:04]line ФД: 29005 [17:54:04]line ФПД: 269209110539077 [17:54:04]line 1/tax-web-control/client/api/v1/ticket?date=20240413T175408&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29005&fm=269209110539077&tin=02508201610067®Number=0000138879044617&sum=50000 [17:54:04]OFD Sender: Processing packet 29005 [packets to send 8, broken 7] [17:54:04]ProducePacketName [17:54:04]name=ofd_packets/00029005 [17:54:04]OFD Sender: To server: pG, [17:54:04]CommunicateWithHost lk.salyk.kg:30040 [17:54:04]ConnectInit lk.salyk.kg [17:54:04]written 0, free lines is 4095 [17:54:04]Connected sock=10 [17:54: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 31 35 34 0F 01 00 00 BE A9 07 01 4D 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 D4 00 00 00 F4 03 04 00 C0 C6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4D 71 00 00 35 04 06 00 F4 D8 21 67 6B 45 E8 53 2C 43 20 B1 FB 0F [17:54:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E6 52 47 00 F0 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 31 35 34 10 04 04 00 4D 71 00 00 F4 03 04 00 66 71 1A 66 B6 04 01 00 00 0B FA 98 48 FE 10 F2 4D [17:54:05]CommunicateWithHost err = 0 [17:54:05]CheckOFDResponse [17:54:05]1017 (14) - 77093643461234 [17:54:05]1041 (16) - 0000000000963154 [17:54:05]1040 (4) - 29005 [17:54:05]1012 (4) - 13.04.2024 11:49 [17:54:05]1206 (1) - 0 [17:54:05]OFD Sender: Remove packet 29005 [17:54:05]ProducePacketName [17:54:05]name=ofd_packets/00029005 [17:54:05]NVStorageDeleteData [17:54:05]Write to MH i2c: 01 00 00 4F 56 A5 [17:54:05]Write i2c OK [17:54:05]MH_I2C_Read... [17:54:05]Read from MH i2c: 01 [17:54:05]MH_I2C_Read... [17:54:05]Read from MH i2c: 01 07 00 [17:54:05]MH_I2C_Read... [17:54:05]Read from MH i2c: 01 07 00 4F 56 00 00 00 00 00 C2 0C 7A [17:54:05]RasterBufferAndPrint [17:54:05]line [17:54:05]line [17:54:05]line [17:54:05]line [17:54:05]line [17:54:05]written 0, free lines is 3270 [17:54:05]MH_Cut [17:54:05]Write to MH i2c: D1 01 00 56 56 01 7E [17:54:05]Write i2c OK [17:54:05]MH_I2C_Read... [17:54:05]Read from MH i2c: D1 [17:54:05]MH_I2C_Read... [17:54:05]Read from MH i2c: D1 01 00 [17:54:05]MH_I2C_Read... [17:54:05]Read from MH i2c: D1 01 00 56 56 00 7D [17:54:05]Write to MH i2c: 01 00 00 57 56 AD [17:54:05]Write i2c OK [17:54:05]MH_I2C_Read... [17:54:05]OFD Sender: No OFD packet to send [17:54:05]*** Cut start [17:54:05]*** Partial cut [17:54:05]*** CUTSNS_PIN = 1 [17:54:06]*** CUTSNS_PIN = 0 [17:54:06]*** Brake cut motor [17:54:06]Read from MH i2c: 01 [17:54:06]MH_I2C_Read... [17:54:06]*** Stop cut motor [17:54:06]*** Cut end [17:54:06]Read from MH i2c: 01 07 00 [17:54:06]MH_I2C_Read... [17:54:06]Read from MH i2c: 01 07 00 57 56 00 00 00 00 00 FF 0F C2 [17:54:06]process_action close_receipt done [17:54:06]requested_data is exist [17:54:06]produce_requested_data [17:54:06]requested_item fm.sn is exist - process it [17:54:06]wFMCommunicate request_size=4 [17:54:06]MH_SAM_APDU [17:54:06]CAPDU: 80 11 00 00 [17:54:06]Write to MH i2c: E2 08 00 58 56 80 11 00 00 00 00 00 00 28 [17:54:06]Write i2c OK [17:54:06]MH_I2C_Read... [17:54:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:06]Read from MH i2c: E2 [17:54:06]MH_I2C_Read... [17:54:06]Read from MH i2c: E2 17 00 [17:54:06]MH_I2C_Read... [17:54:06]Read from MH i2c: E2 17 00 58 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 77 [17:54:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:54:06]wFMCommunicate OK [17:54:06]requested_item fd.num is exist - process it [17:54:06]SAM_PROTO_GetFieldsCounters [17:54:06]wFMCommunicate request_size=4 [17:54:06]MH_SAM_APDU [17:54:06]CAPDU: 80 13 00 00 [17:54:06]Write to MH i2c: E2 08 00 59 56 80 13 00 00 00 00 00 00 2B [17:54:06]Write i2c OK [17:54:06]MH_I2C_Read... [17:54:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:06]Read from MH i2c: E2 [17:54:06]MH_I2C_Read... [17:54:06]Read from MH i2c: E2 62 00 [17:54:06]MH_I2C_Read... [17:54:06]Read from MH i2c: E2 62 00 59 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4D 71 00 00 0E 04 04 00 73 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 [17:54: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4D 71 00 00 0E 04 04 00 73 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 [17:54:06]wFMCommunicate OK [17:54:06]SAM_PROTO_GetFieldsCounters done [17:54:06]requested_item shift.num is exist - process it [17:54:06]requested_item shift.opened is exist - process it [17:54:06]req_shift_opened [17:54:06]FM_GetShiftState [17:54:06]SAM_PROTO_GetShiftState [17:54:06]wFMCommunicate request_size=4 [17:54:06]MH_SAM_APDU [17:54:06]CAPDU: 80 13 01 00 [17:54:06]Write to MH i2c: E2 08 00 5A 56 80 13 01 00 00 00 00 00 2D [17:54:06]Write i2c OK [17:54:06]MH_I2C_Read... [17:54:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:06]Read from MH i2c: E2 [17:54:06]MH_I2C_Read... [17:54:06]Read from MH i2c: E2 0E 00 [17:54:06]MH_I2C_Read... [17:54:06]Read from MH i2c: E2 0E 00 5A 56 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 46 [17:54:06]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:54:06]wFMCommunicate OK [17:54:06]SAM_PROTO_GetShiftState done [17:54:06]FM_GetShiftState done [17:54:06]req_shift_opened done [17:54:06]requested_item shift.open_date is exist - process it [17:54:06]req_shift_open_date [17:54:06]req_shift_open_date done [17:54:06]produce_requested_data done [17:54:06]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29005,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [17:54:06]process_action_free close_receipt [17:54:06]json_value_free [17:54:06]json_value_free done [17:54:06]process_json_proto returns [17:54:06]Send response to host [17:54:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29005,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [17:54:06]free response buf [17:54:06]execute_script done [17:54:06]execute_script returns [17:54:06]free content buf [17:54:06]Sock 7.Close socket [17:54:06]Sock 7.Thread stoped [17:54:10]OFD Sender: No OFD packet to send [17:54:15]OFD Sender: No OFD packet to send [17:54:16]accept exits with 9 [17:54:16]New connection [17:54:16]New thread 3066928484 created [17:54:16]Thread 3066785124 joined [17:54:16]Waiting for new connection... [17:54:16] Sock 9.Parse request [17:54:16]Sock 9.Check first char [17:54:16]Sock 9.First char is OK [17:54:16]request: POST /json_proto HTTP/1.0 [17:54:16]Method: POST [17:54:16]URL: /json_proto [17:54:16]Method is POST - this is cgi request [17:54:16]url: /json_proto [17:54:16]query_string will be loaded in cgi processing [17:54:16]execute_cgi json_proto POST (null) [17:54:16]execute_cgi path=json_proto method=POST [17:54:16]POST find Content-Length [17:54:16]Host: 172.17.33.3:8080 [17:54:16]Content-Length: 677 [17:54:16]Content-Type: application/json [17:54:16] [17:54:16]POST finish read [17:54:16]Found Content-Length = 677 [17:54:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.230, "sum" : 400.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:16]execute_script... [17:54:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.230, "sum" : 400.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:16]POST & json_proto [17:54:16]process_json_proto [17:54:16]json parsed OK: [17:54:16]protocol is kg_v1.0 [17:54:16]action value=close_receipt [17:54:16]process_action close_receipt [17:54:16]cmd_close_receipt [17:54:16]MH_GetDate [17:54:16]Write to MH i2c: F0 00 00 5B 56 A0 [17:54:16]Write i2c OK [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: F0 [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: F0 09 00 [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: F0 09 00 5B 56 00 CE C6 1A 66 23 5B 8F 65 2F [17:54:16]GetLastDocTimeStamp 1713030848 [17:54:16]current date 1713030862 [17:54:16]FM_GetShiftState [17:54:16]SAM_PROTO_GetShiftState [17:54:16]wFMCommunicate request_size=4 [17:54:16]MH_SAM_APDU [17:54:16]CAPDU: 80 13 01 00 [17:54:16]Write to MH i2c: E2 08 00 5C 56 80 13 01 00 00 00 00 00 2F [17:54:16]Write i2c OK [17:54:16]MH_I2C_Read... [17:54:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:16]Read from MH i2c: E2 [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: E2 0E 00 [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: E2 0E 00 5C 56 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 48 [17:54:16]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:54:16]wFMCommunicate OK [17:54:16]SAM_PROTO_GetShiftState done [17:54:16]FM_GetShiftState done [17:54:16]opened in 1712967615 [17:54:16]opened+sec_in_day 1713054015 [17:54:16]quantity*price = 40058 [17:54:16]sum+1 = 40060 [17:54:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 213 13.04.2024 17:54 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29006 ФПД: 44722374132875 1/tax-web-control/client/api/v1/ticket?date=20240413T175422&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29006&fm=44722374132875&tin=02508201610067®Number=0000138879044617&sum=40000 [17:54:17]StoreToDocumentArchive [17:54:17]shift 115 fd 29006 [17:54:17]save to /storage/0115/doc_00029006 [17:54:17]save last doc name /storage/0115/doc_00029006 to /storage/kkm_last_doc_name [17:54:17]save OK [17:54:17]Clear old archive folders... [17:54:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:54:17]tlvbuf is 011FB020 [17:54:17]SAM_PROTO_ClearQueue [17:54:17]wFMCommunicate request_size=4 [17:54:17]MH_SAM_APDU [17:54:17]CAPDU: 80 09 00 00 [17:54:17]Write to MH i2c: E2 08 00 69 56 80 09 00 00 00 00 00 00 31 [17:54:17]Write i2c OK [17:54:17]MH_I2C_Read... [17:54:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:18]Read from MH i2c: E2 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: E2 03 00 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: E2 03 00 69 56 00 90 00 33 [17:54:18]RAPDU: 90 00 [17:54:18]wFMCommunicate OK [17:54:18]SAM_PROTO_ClearQueue done [17:54:18]KKMCreateOFDPacket [17:54:18]OFDProtocolAddRootSTLVToBuf [17:54:18]FM_MakeSignedData [17:54:18]FM_MakeSignedData [17:54:18]SAM_PROTO_SignData [17:54:18]wFMCommunicate request_size=4 [17:54:18]MH_SAM_APDU [17:54:18]CAPDU: 80 0D 01 02 [17:54:18]Write to MH i2c: E2 08 00 6A 56 80 0D 01 02 00 00 00 00 39 [17:54:18]Write i2c OK [17:54:18]MH_I2C_Read... [17:54:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:18]Read from MH i2c: E2 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: E2 03 00 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: E2 03 00 6A 56 00 90 00 34 [17:54:18]RAPDU: 90 00 [17:54:18]wFMCommunicate OK [17:54:18]wFMCommunicate request_size=255 [17:54:18]MH_SAM_APDU [17:54: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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 D5 00 00 00 F4 03 04 00 CE C6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4E 71 00 00 35 04 06 00 28 [17:54:18]Write to MH i2c: E2 02 01 6B 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 D5 00 00 00 F4 03 04 00 CE C6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4E 71 00 00 35 04 06 00 28 00 00 28 [17:54:18]Write i2c OK [17:54:18]MH_I2C_Read... [17:54:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:18]Read from MH i2c: E2 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: E2 03 00 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: E2 03 00 6B 56 00 90 00 35 [17:54:18]RAPDU: 90 00 [17:54:18]wFMCommunicate OK [17:54:18]wFMCommunicate request_size=10 [17:54:18]MH_SAM_APDU [17:54:18]CAPDU: 80 0D 02 02 05 AC BD 39 44 8B [17:54:18]Write to MH i2c: E2 0D 00 6C 56 80 0D 02 02 05 00 AC BD 39 44 8B 00 00 B7 [17:54:18]Write i2c OK [17:54:18]MH_I2C_Read... [17:54:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:18]Read from MH i2c: E2 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: E2 03 00 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: E2 03 00 6C 56 00 90 00 36 [17:54:18]RAPDU: 90 00 [17:54:18]wFMCommunicate OK [17:54:18]wFMCommunicate request_size=4 [17:54:18]MH_SAM_APDU [17:54:18]CAPDU: 80 0D 03 02 [17:54:18]Write to MH i2c: E2 08 00 6D 56 80 0D 03 02 00 00 00 00 3E [17:54:18]Write i2c OK [17:54:18]MH_I2C_Read... [17:54:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:18]Read from MH i2c: E2 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: E2 0B 00 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: E2 0B 00 6D 56 00 2C 6A E7 25 93 51 CD 44 90 00 D6 [17:54:18]RAPDU: 2C 6A E7 25 93 51 CD 44 90 00 [17:54:18]wFMCommunicate OK [17:54:18]SAM_PROTO_SignData done [17:54:18]FM_MakeSignedData done [17:54:18]CreateOFDProtocolMessage [17:54:18]wFMCommunicate request_size=4 [17:54:18]MH_SAM_APDU [17:54:18]CAPDU: 80 11 00 00 [17:54:18]Write to MH i2c: E2 08 00 6E 56 80 11 00 00 00 00 00 00 3E [17:54:18]Write i2c OK [17:54:18]MH_I2C_Read... [17:54:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:18]Read from MH i2c: E2 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: E2 17 00 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: E2 17 00 6E 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8D [17:54:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:54:18]wFMCommunicate OK [17:54:18]CreateOFDProtocolMessage done [17:54:18]OFDSenderStorePacket 29006 [17:54:18]StoreOFDPacket docnum=29006 [17:54:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 51 79 07 01 02 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 D5 00 00 00 F4 03 04 00 CE C6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4E 71 00 00 35 04 06 00 28 AC BD 39 44 8B 2C 6A E7 25 93 51 CD 44 [17:54:18]CheckFolder [17:54:18]dirname=/storage/ofd_packets [17:54:18]CheckFolder done [17:54:18]ProducePacketName [17:54:18]name=ofd_packets/00029006 [17:54:18]NVStorageSaveData ofd_packets/00029006 [17:54:18]File name is /storage/ofd_packets/00029006 [17:54:18]Write 301 bytes [17:54:18]NVStorageSaveData done [17:54:18]OFDSenderStorePacket done [17:54:18]KKMCreateOFDPacket done [17:54:18]NVStorageSaveData kkm_last_timestamp [17:54:18]File name is /storage/kkm_last_timestamp [17:54:18]Write 4 bytes [17:54:18]NVStorageSaveData done [17:54:18]ExternCall_PrintAddStr [17:54:18]wPrintStart [17:54:18]Write to MH i2c: 01 00 00 6F 56 C5 [17:54:18]Write i2c OK [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: 01 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: 01 07 00 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: 01 07 00 6F 56 00 00 00 00 00 FF 0F DA [17:54:18]RasterBufferAndPrint [17:54:18]line Счет N : (1)347369 [17:54:18]line ИНН: 02508201610067 [17:54:18]line Контрольно-Кассовый Чек [17:54:18]line ПРОДАЖА [17:54:18]line ТРК (МРК, ГНК) : 13 [17:54:18]line Товар: 2710124130 [17:54:18]line Аи-92-К-5 [17:54:18]line 6.230 * 64.30 [17:54:18]line = 400.59 [17:54:18]line НДС 12% НСП 1% [17:54:18]line > о реализуемом товаре [17:54:18]line ОКРУГЛЕНИЕ: -0.59 [17:54:18]line ИТОГО: 400.00 [17:54:18]line Внесено: 400.00 [17:54:18]line СДАЧА: 0.00 [17:54:18]line НСП 1% : 3.54 [17:54:18]line НДС 12% : 42.54 [17:54:18]line Наличными: 400.00 [17:54:18]line Безнал.: 0.00 [17:54:18]line Место: АЗС № 108 "Партнер Нефть" [17:54:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:54:18]line СНО: Общий режим [17:54:18]line Чек 213 13.04.2024 17:54 [17:54:18]line Смена: 115 ФФД: 1.0 [17:54:18]line ЗНМ: 0300000027 [17:54:18]line РНМ: 0000138879044617 [17:54:18]line Версия ККМ: 001 [17:54:18]line ФМ: 0000000000963154 [17:54:18]line ФД: 29006 [17:54:18]line ФПД: 44722374132875 [17:54:18]line 1/tax-web-control/client/api/v1/ticket?date=20240413T175422&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29006&fm=44722374132875&tin=02508201610067®Number=0000138879044617&sum=40000 [17:54:18]OFD Sender: Processing packet 29006 [packets to send 8, broken 7] [17:54:18]ProducePacketName [17:54:18]name=ofd_packets/00029006 [17:54:18]OFD Sender: To server: pG, [17:54:18]CommunicateWithHost lk.salyk.kg:30040 [17:54:18]ConnectInit lk.salyk.kg [17:54:18]written 0, free lines is 4095 [17:54:18]Connected sock=10 [17:54:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 51 79 07 01 02 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 D5 00 00 00 F4 03 04 00 CE C6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4E 71 00 00 35 04 06 00 28 AC BD 39 44 8B 2C 6A E7 25 93 51 CD 44 [17: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 31 35 34 4F 00 00 00 28 56 47 00 B1 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4E 71 00 00 F4 03 04 00 75 71 1A 66 B6 04 01 00 00 CF E9 0C 73 E4 F8 F7 0B [17:54:19]CommunicateWithHost err = 0 [17:54:19]CheckOFDResponse [17:54:19]1017 (14) - 77093643461234 [17:54:19]1041 (16) - 0000000000963154 [17:54:19]1040 (4) - 29006 [17:54:19]1012 (4) - 13.04.2024 11:50 [17:54:19]1206 (1) - 0 [17:54:19]OFD Sender: Remove packet 29006 [17:54:19]ProducePacketName [17:54:19]name=ofd_packets/00029006 [17:54:19]NVStorageDeleteData [17:54:19]Write to MH i2c: 01 00 00 99 56 EF [17:54:19]Write i2c OK [17:54:19]MH_I2C_Read... [17:54:19]Read from MH i2c: 01 [17:54:19]MH_I2C_Read... [17:54:19]Read from MH i2c: 01 07 00 [17:54:19]MH_I2C_Read... [17:54:19]Read from MH i2c: 01 07 00 99 56 00 00 00 00 00 CD 0C CF [17:54:19]RasterBufferAndPrint [17:54:19]line [17:54:19]line [17:54:19]line [17:54:19]line [17:54:19]line [17:54:19]written 0, free lines is 3284 [17:54:19]MH_Cut [17:54:19]Write to MH i2c: D1 01 00 A0 56 01 C8 [17:54:19]Write i2c OK [17:54:19]MH_I2C_Read... [17:54:19]Read from MH i2c: D1 [17:54:19]MH_I2C_Read... [17:54:19]Read from MH i2c: D1 01 00 [17:54:19]MH_I2C_Read... [17:54:19]Read from MH i2c: D1 01 00 A0 56 00 C7 [17:54:19]Write to MH i2c: 01 00 00 A1 56 F7 [17:54:19]Write i2c OK [17:54:19]MH_I2C_Read... [17:54:19]OFD Sender: No OFD packet to send [17:54:20]*** Cut start [17:54:20]*** Partial cut [17:54:20]*** CUTSNS_PIN = 1 [17:54:20]*** CUTSNS_PIN = 0 [17:54:20]*** Brake cut motor [17:54:20]Read from MH i2c: 01 [17:54:20]MH_I2C_Read... [17:54:20]*** Stop cut motor [17:54:20]*** Cut end [17:54:20]Read from MH i2c: 01 07 00 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: 01 07 00 A1 56 00 00 00 00 00 FF 0F 0C [17:54:20]process_action close_receipt done [17:54:20]requested_data is exist [17:54:20]produce_requested_data [17:54:20]requested_item fm.sn is exist - process it [17:54:20]wFMCommunicate request_size=4 [17:54:20]MH_SAM_APDU [17:54:20]CAPDU: 80 11 00 00 [17:54:20]Write to MH i2c: E2 08 00 A2 56 80 11 00 00 00 00 00 00 72 [17:54:20]Write i2c OK [17:54:20]MH_I2C_Read... [17:54:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:20]Read from MH i2c: E2 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 17 00 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 17 00 A2 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C1 [17:54:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:54:20]wFMCommunicate OK [17:54:20]requested_item fd.num is exist - process it [17:54:20]SAM_PROTO_GetFieldsCounters [17:54:20]wFMCommunicate request_size=4 [17:54:20]MH_SAM_APDU [17:54:20]CAPDU: 80 13 00 00 [17:54:20]Write to MH i2c: E2 08 00 A3 56 80 13 00 00 00 00 00 00 75 [17:54:20]Write i2c OK [17:54:20]MH_I2C_Read... [17:54:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:20]Read from MH i2c: E2 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 62 00 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 62 00 A3 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4E 71 00 00 0E 04 04 00 73 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 64 [17:54:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4E 71 00 00 0E 04 04 00 73 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 [17:54:20]wFMCommunicate OK [17:54:20]SAM_PROTO_GetFieldsCounters done [17:54:20]requested_item shift.num is exist - process it [17:54:20]requested_item shift.opened is exist - process it [17:54:20]req_shift_opened [17:54:20]FM_GetShiftState [17:54:20]SAM_PROTO_GetShiftState [17:54:20]wFMCommunicate request_size=4 [17:54:20]MH_SAM_APDU [17:54:20]CAPDU: 80 13 01 00 [17:54:20]Write to MH i2c: E2 08 00 A4 56 80 13 01 00 00 00 00 00 77 [17:54:20]Write i2c OK [17:54:20]MH_I2C_Read... [17:54:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:20]Read from MH i2c: E2 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 0E 00 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 0E 00 A4 56 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 90 [17:54:20]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:54:20]wFMCommunicate OK [17:54:20]SAM_PROTO_GetShiftState done [17:54:20]FM_GetShiftState done [17:54:20]req_shift_opened done [17:54:20]requested_item shift.open_date is exist - process it [17:54:20]req_shift_open_date [17:54:20]req_shift_open_date done [17:54:20]produce_requested_data done [17:54:20]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29006,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [17:54:20]process_action_free close_receipt [17:54:20]json_value_free [17:54:20]json_value_free done [17:54:20]process_json_proto returns [17:54:20]Send response to host [17:54:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29006,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [17:54:20]free response buf [17:54:20]execute_script done [17:54:20]execute_script returns [17:54:20]free content buf [17:54:20]Sock 9.Close socket [17:54:20]Sock 9.Thread stoped [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 7 [17:56:25]New connection [17:56:25]New thread 3066785124 created [17:56:25]Thread 3066928484 joined [17:56:25]Waiting for new connection... [17:56:25] Sock 7.Parse request [17:56:25]Sock 7.Check first char [17:56:25]Sock 7.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.33.3:8080 [17:56:25]Content-Length: 820 [17:56:25]Content-Type: application/json [17:56:25] [17:56:25]POST finish read [17:56:25]Found Content-Length = 820 [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)347370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 21.280, "sum" : 700.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.11 } ] } , "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)347370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 21.280, "sum" : 700.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.11 } ] } , "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 A5 56 EA [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 A5 56 00 4F C7 1A 66 23 5B 8F 65 FB [17:56:25]GetLastDocTimeStamp 1713030862 [17:56:25]current date 1713030991 [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 A6 56 80 13 01 00 00 00 00 00 79 [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 A6 56 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 92 [17:56:25]RAPDU: 09 00 01 BF CF 19 66 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 1712967615 [17:56:25]opened+sec_in_day 1713054015 [17:56:25]quantity*price = 70011 [17:56:25]sum+1 = 70012 [17:56:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.11 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 0.00 Безнал.: 700.11 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 214 13.04.2024 17:56 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29007 ФПД: 49027032757395 1/tax-web-control/client/api/v1/ticket?date=20240413T175631&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29007&fm=49027032757395&tin=02508201610067®Number=0000138879044617&sum=70011 [17:56:26]StoreToDocumentArchive [17:56:26]shift 115 fd 29007 [17:56:26]save to /storage/0115/doc_00029007 [17:56:26]save last doc name /storage/0115/doc_00029007 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=250 [17:56:26]tlvbuf is 011FB070 [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 B3 56 80 09 00 00 00 00 00 00 7B [17:56:26]Write i2c OK [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 [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 B3 56 00 90 00 7D [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 B4 56 80 0D 01 02 00 00 00 00 83 [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 B4 56 00 90 00 7E [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 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 53 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 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 0B 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 4F C7 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4F 71 00 00 35 04 06 00 2C 96 [17:56:27]Write to MH i2c: E2 02 01 B5 56 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 53 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 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 0B 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 4F C7 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4F 71 00 00 35 04 06 00 2C 96 00 00 51 [17:56:27]Write i2c OK [17:56:27]MH_I2C_Read... [17:56:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:27]Read from MH i2c: E2 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: E2 03 00 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: E2 03 00 B5 56 00 90 00 7F [17:56:27]RAPDU: 90 00 [17:56:27]wFMCommunicate OK [17:56:27]wFMCommunicate request_size=9 [17:56:27]MH_SAM_APDU [17:56:27]CAPDU: 80 0D 02 02 04 FE DF 34 93 [17:56:27]Write to MH i2c: E2 0C 00 B6 56 80 0D 02 02 04 00 FE DF 34 93 00 00 32 [17:56:27]Write i2c OK [17:56:27]MH_I2C_Read... [17:56:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:27]Read from MH i2c: E2 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: E2 03 00 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: E2 03 00 B6 56 00 90 00 80 [17:56:27]RAPDU: 90 00 [17:56:27]wFMCommunicate OK [17:56:27]wFMCommunicate request_size=4 [17:56:27]MH_SAM_APDU [17:56:27]CAPDU: 80 0D 03 02 [17:56:27]Write to MH i2c: E2 08 00 B7 56 80 0D 03 02 00 00 00 00 88 [17:56:27]Write i2c OK [17:56:27]MH_I2C_Read... [17:56:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:27]Read from MH i2c: E2 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: E2 0B 00 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: E2 0B 00 B7 56 00 DE 6D DF 17 95 FC 8A 5D 90 00 42 [17:56:27]RAPDU: DE 6D DF 17 95 FC 8A 5D 90 00 [17:56:27]wFMCommunicate OK [17:56:27]SAM_PROTO_SignData done [17:56:27]FM_MakeSignedData done [17:56:27]CreateOFDProtocolMessage [17:56:27]wFMCommunicate request_size=4 [17:56:27]MH_SAM_APDU [17:56:27]CAPDU: 80 11 00 00 [17:56:27]Write to MH i2c: E2 08 00 B8 56 80 11 00 00 00 00 00 00 88 [17:56:27]Write i2c OK [17:56:27]MH_I2C_Read... [17:56:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:27]Read from MH i2c: E2 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: E2 17 00 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: E2 17 00 B8 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D7 [17:56:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:56:27]wFMCommunicate OK [17:56:27]CreateOFDProtocolMessage done [17:56:27]OFDSenderStorePacket 29007 [17:56:27]StoreOFDPacket docnum=29007 [17:56:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 24 57 06 01 86 4F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 53 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 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 0B 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 4F C7 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4F 71 00 00 35 04 06 00 2C 96 FE DF 34 93 DE 6D DF 17 95 FC 8A 5D [17:56:27]CheckFolder [17:56:27]dirname=/storage/ofd_packets [17:56:27]CheckFolder done [17:56:27]ProducePacketName [17:56:27]name=ofd_packets/00029007 [17:56:27]NVStorageSaveData ofd_packets/00029007 [17:56:27]File name is /storage/ofd_packets/00029007 [17:56:27]Write 300 bytes [17:56:27]NVStorageSaveData done [17:56:27]OFDSenderStorePacket done [17:56:27]KKMCreateOFDPacket done [17:56:27]NVStorageSaveData kkm_last_timestamp [17:56:27]File name is /storage/kkm_last_timestamp [17:56:27]Write 4 bytes [17:56:27]NVStorageSaveData done [17:56:27]ExternCall_PrintAddStr [17:56:27]wPrintStart [17:56:27]Write to MH i2c: 01 00 00 B9 56 0F [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 B9 56 00 00 00 00 00 FF 0F 24 [17:56:27]RasterBufferAndPrint [17:56:27]line Счет N : (1)347370 [17:56:27]line ИНН: 02508201610067 [17:56:27]line Контрольно-Кассовый Чек [17:56:27]line ПРОДАЖА [17:56:27]line ТРК (МРК, ГНК) : 71 [17:56:27]line Товар: 2711129700 [17:56:27]line ГАЗ-К-5 [17:56:27]line 21.280 * 32.90 [17:56:27]line = 700.11 [17:56:27]line НДС 12% НСП 1% [17:56:27]line > о реализуемом товаре [17:56:27]line ИТОГО: 700.11 [17:56:27]line НСП 1% : 6.20 [17:56:27]line НДС 12% : 74.35 [17:56:27]line Наличными: 0.00 [17:56:27]line Безнал.: 700.11 [17:56:27]line Место: АЗС № 108 "Партнер Нефть" [17:56:27]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:56:27]line СНО: Общий режим [17:56:27]line Чек 214 13.04.2024 17:56 [17:56:27]line Смена: 115 ФФД: 1.0 [17:56:27]line ЗНМ: 0300000027 [17:56:27]line РНМ: 0000138879044617 [17:56:27]line Версия ККМ: 001 [17:56:27]line Платежная система: Бакай Банк [17:56:27]line ФМ: 0000000000963154 [17:56:27]line ФД: 29007 [17:56:27]line ФПД: 49027032757395 [17:56:27]line 1/tax-web-control/client/api/v1/ticket?date=20240413T175631&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29007&fm=49027032757395&tin=02508201610067®Number=0000138879044617&sum=70011 [17:56:27]OFD Sender: Processing packet 29007 [packets to send 8, broken 7] [17:56:27]ProducePacketName [17:56:27]name=ofd_packets/00029007 [17:56:27]OFD Sender: To server: pG, [17:56:27]CommunicateWithHost lk.salyk.kg:30040 [17:56:27]ConnectInit lk.salyk.kg [17:56:27]written 0, free lines is 4095 [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 31 35 34 0E 01 00 00 24 57 06 01 86 4F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 53 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 7B 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 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 0B 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 4F C7 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 4F 71 00 00 35 04 06 00 2C 96 FE DF 34 93 DE 6D DF 17 95 FC 8A 5D [17: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 31 35 34 4F 00 00 00 35 18 47 00 BB 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 31 35 34 10 04 04 00 4F 71 00 00 F4 03 04 00 F6 71 1A 66 B6 04 01 00 00 4E 41 36 BE 7E 53 95 9F [17:56:28]CommunicateWithHost err = 0 [17:56:28]CheckOFDResponse [17:56:28]1017 (14) - 77093643461234 [17:56:28]1041 (16) - 0000000000963154 [17:56:28]1040 (4) - 29007 [17:56:28]1012 (4) - 13.04.2024 11:52 [17:56:28]1206 (1) - 0 [17:56:28]OFD Sender: Remove packet 29007 [17:56:28]ProducePacketName [17:56:28]name=ofd_packets/00029007 [17:56:28]NVStorageDeleteData [17:56:28]Write to MH i2c: 01 00 00 E2 56 38 [17:56:28]Write i2c OK [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: 01 [17:56:28]MH_I2C_Read... [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 E2 56 00 00 00 00 00 CE 0C 19 [17:56:28]RasterBufferAndPrint [17:56:28]line [17:56:28]line [17:56:28]line [17:56:28]line [17:56:28]line [17:56:28]written 0, free lines is 3284 [17:56:28]MH_Cut [17:56:28]Write to MH i2c: D1 01 00 E9 56 01 11 [17:56:28]Write i2c OK [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: D1 [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: D1 01 00 [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: D1 01 00 E9 56 00 10 [17:56:28]Write to MH i2c: 01 00 00 EA 56 40 [17:56:28]Write i2c OK [17:56:28]MH_I2C_Read... [17:56:28]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:29]*** CUTSNS_PIN = 0 [17:56:29]*** Brake cut motor [17:56:29]Read from MH i2c: 01 [17:56:29]MH_I2C_Read... [17:56:29]*** Stop cut motor [17:56:29]*** Cut end [17:56:29]Read from MH i2c: 01 07 00 [17:56:29]MH_I2C_Read... [17:56:29]Read from MH i2c: 01 07 00 EA 56 00 00 00 00 00 FF 0F 55 [17:56:29]process_action close_receipt done [17:56:29]requested_data is exist [17:56:29]produce_requested_data [17:56:29]requested_item fm.sn is exist - process it [17:56:29]wFMCommunicate request_size=4 [17:56:29]MH_SAM_APDU [17:56:29]CAPDU: 80 11 00 00 [17:56:29]Write to MH i2c: E2 08 00 EB 56 80 11 00 00 00 00 00 00 BB [17:56:29]Write i2c OK [17:56:29]MH_I2C_Read... [17:56:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:29]Read from MH i2c: E2 [17:56:29]MH_I2C_Read... [17:56:29]Read from MH i2c: E2 17 00 [17:56:29]MH_I2C_Read... [17:56:29]Read from MH i2c: E2 17 00 EB 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0A [17:56:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:56:29]wFMCommunicate OK [17:56:29]requested_item fd.num is exist - process it [17:56:29]SAM_PROTO_GetFieldsCounters [17:56:29]wFMCommunicate request_size=4 [17:56:29]MH_SAM_APDU [17:56:29]CAPDU: 80 13 00 00 [17:56:29]Write to MH i2c: E2 08 00 EC 56 80 13 00 00 00 00 00 00 BE [17:56:29]Write i2c OK [17:56:29]MH_I2C_Read... [17:56:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:29]Read from MH i2c: E2 [17:56:29]MH_I2C_Read... [17:56:29]Read from MH i2c: E2 62 00 [17:56:29]MH_I2C_Read... [17:56:29]Read from MH i2c: E2 62 00 EC 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4F 71 00 00 0E 04 04 00 73 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 B1 [17:56: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 4F 71 00 00 0E 04 04 00 73 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 [17:56:29]wFMCommunicate OK [17:56:29]SAM_PROTO_GetFieldsCounters done [17:56:29]requested_item shift.num is exist - process it [17:56:29]requested_item shift.opened is exist - process it [17:56:29]req_shift_opened [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 ED 56 80 13 01 00 00 00 00 00 C0 [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 ED 56 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D9 [17:56:29]RAPDU: 09 00 01 BF CF 19 66 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":"0000000000963154","fd.num":29007,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [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":"0000000000963154","fd.num":29007,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [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 7.Close socket [17:56:29]Sock 7.Thread stoped [17:56:33]OFD Sender: No OFD packet to send [17:56:38]OFD Sender: No OFD packet to send [17:56:43]OFD Sender: No OFD packet to send [17:56:48]OFD Sender: No OFD packet to send [17:56:53]OFD Sender: No OFD packet to send [17:56:58]OFD Sender: No OFD packet to send [17:57:03]OFD Sender: No OFD packet to send [17:57:08]OFD Sender: No OFD packet to send [17:57:13]OFD Sender: No OFD packet to send [17:57:18]OFD Sender: No OFD packet to send [17:57:23]OFD Sender: No OFD packet to send [17:57:28]OFD Sender: No OFD packet to send [17:57:33]OFD Sender: No OFD packet to send [17:57:38]OFD Sender: No OFD packet to send [17:57:43]OFD Sender: No OFD packet to send [17:57:48]OFD Sender: No OFD packet to send [17:57:53]OFD Sender: No OFD packet to send [17:57:58]OFD Sender: No OFD packet to send [17:58:03]OFD Sender: No OFD packet to send [17:58:08]OFD Sender: No OFD packet to send [17:58:13]OFD Sender: No OFD packet to send [17:58:18]OFD Sender: No OFD packet to send [17:58:19]accept exits with 9 [17:58:19]New connection [17:58:19]New thread 3066928484 created [17:58:19]Thread 3066785124 joined [17:58:19]Waiting for new connection... [17:58:19] Sock 9.Parse request [17:58:19]Sock 9.Check first char [17:58:19]Sock 9.First char is OK [17:58:19]request: POST /json_proto HTTP/1.0 [17:58:19]Method: POST [17:58:19]URL: /json_proto [17:58:19]Method is POST - this is cgi request [17:58:19]url: /json_proto [17:58:19]query_string will be loaded in cgi processing [17:58:19]execute_cgi json_proto POST (null) [17:58:19]execute_cgi path=json_proto method=POST [17:58:19]POST find Content-Length [17:58:19]Host: 172.17.33.3:8080 [17:58:19]Content-Length: 840 [17:58:19]Content-Type: application/json [17:58:19] [17:58:19]POST finish read [17:58:19]Found Content-Length = 840 [17:58:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:19]execute_script... [17:58: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)347371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:19]POST & json_proto [17:58:19]process_json_proto [17:58:19]json parsed OK: [17:58:19]protocol is kg_v1.0 [17:58:19]action value=close_receipt [17:58:19]process_action close_receipt [17:58:19]cmd_close_receipt [17:58:19]MH_GetDate [17:58:19]Write to MH i2c: F0 00 00 EE 56 33 [17:58:19]Write i2c OK [17:58:19]MH_I2C_Read... [17:58:19]Read from MH i2c: F0 [17:58:19]MH_I2C_Read... [17:58:19]Read from MH i2c: F0 09 00 [17:58:19]MH_I2C_Read... [17:58:19]Read from MH i2c: F0 09 00 EE 56 00 C1 C7 1A 66 23 5B 8F 65 B6 [17:58:19]GetLastDocTimeStamp 1713030991 [17:58:19]current date 1713031105 [17:58:19]FM_GetShiftState [17:58:19]SAM_PROTO_GetShiftState [17:58:19]wFMCommunicate request_size=4 [17:58:19]MH_SAM_APDU [17:58:19]CAPDU: 80 13 01 00 [17:58:19]Write to MH i2c: E2 08 00 EF 56 80 13 01 00 00 00 00 00 C2 [17:58:19]Write i2c OK [17:58:19]MH_I2C_Read... [17:58:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:19]Read from MH i2c: E2 [17:58:19]MH_I2C_Read... [17:58:19]Read from MH i2c: E2 0E 00 [17:58:19]MH_I2C_Read... [17:58:19]Read from MH i2c: E2 0E 00 EF 56 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 DB [17:58:19]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:58:19]wFMCommunicate OK [17:58:19]SAM_PROTO_GetShiftState done [17:58:19]FM_GetShiftState done [17:58:19]opened in 1712967615 [17:58:19]opened+sec_in_day 1713054015 [17:58:19]quantity*price = 100056 [17:58:19]sum+1 = 100058 [17:58:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.57 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.57 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 215 13.04.2024 17:58 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29008 ФПД: 84244747968661 1/tax-web-control/client/api/v1/ticket?date=20240413T175825&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29008&fm=84244747968661&tin=02508201610067®Number=0000138879044617&sum=100057 [17:58:20]StoreToDocumentArchive [17:58:20]shift 115 fd 29008 [17:58:20]save to /storage/0115/doc_00029008 [17:58:20]save last doc name /storage/0115/doc_00029008 to /storage/kkm_last_doc_name [17:58:20]save OK [17:58:20]Clear old archive folders... [17:58:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:58:20]tlvbuf is 012146D0 [17:58:20]SAM_PROTO_ClearQueue [17:58:20]wFMCommunicate request_size=4 [17:58:20]MH_SAM_APDU [17:58:20]CAPDU: 80 09 00 00 [17:58:20]Write to MH i2c: E2 08 00 FC 56 80 09 00 00 00 00 00 00 C4 [17:58:20]Write i2c OK [17:58:20]MH_I2C_Read... [17:58:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:20]Read from MH i2c: E2 [17:58:20]MH_I2C_Read... [17:58:20]Read from MH i2c: E2 03 00 [17:58:20]MH_I2C_Read... [17:58:20]Read from MH i2c: E2 03 00 FC 56 00 90 00 C6 [17:58:20]RAPDU: 90 00 [17:58:20]wFMCommunicate OK [17:58:20]SAM_PROTO_ClearQueue done [17:58:20]KKMCreateOFDPacket [17:58:20]OFDProtocolAddRootSTLVToBuf [17:58:20]FM_MakeSignedData [17:58:20]FM_MakeSignedData [17:58:20]SAM_PROTO_SignData [17:58:20]wFMCommunicate request_size=4 [17:58:20]MH_SAM_APDU [17:58:20]CAPDU: 80 0D 01 02 [17:58:20]Write to MH i2c: E2 08 00 FD 56 80 0D 01 02 00 00 00 00 CC [17:58:20]Write i2c OK [17:58:20]MH_I2C_Read... [17:58:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:21]Read from MH i2c: E2 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: E2 03 00 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: E2 03 00 FD 56 00 90 00 C7 [17:58:21]RAPDU: 90 00 [17:58:21]wFMCommunicate OK [17:58:21]wFMCommunicate request_size=255 [17:58:21]MH_SAM_APDU [17:58: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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 C1 C7 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 50 71 00 00 35 04 06 00 4C 9E C2 46 [17:58:21]Write to MH i2c: E2 02 01 FE 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 C1 C7 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 50 71 00 00 35 04 06 00 4C 9E C2 46 00 00 22 [17:58:21]Write i2c OK [17:58:21]MH_I2C_Read... [17:58:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:21]Read from MH i2c: E2 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: E2 03 00 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: E2 03 00 FE 56 00 90 00 C8 [17:58:21]RAPDU: 90 00 [17:58:21]wFMCommunicate OK [17:58:21]wFMCommunicate request_size=7 [17:58:21]MH_SAM_APDU [17:58:21]CAPDU: 80 0D 02 02 02 E0 95 [17:58:21]Write to MH i2c: E2 0A 00 FF 56 80 0D 02 02 02 00 E0 95 00 00 48 [17:58:21]Write i2c OK [17:58:21]MH_I2C_Read... [17:58:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:21]Read from MH i2c: E2 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: E2 03 00 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: E2 03 00 FF 56 00 90 00 C9 [17:58:21]RAPDU: 90 00 [17:58:21]wFMCommunicate OK [17:58:21]wFMCommunicate request_size=4 [17:58:21]MH_SAM_APDU [17:58:21]CAPDU: 80 0D 03 02 [17:58:21]Write to MH i2c: E2 08 00 00 57 80 0D 03 02 00 00 00 00 D2 [17:58:21]Write i2c OK [17:58:21]MH_I2C_Read... [17:58:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:21]Read from MH i2c: E2 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: E2 0B 00 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: E2 0B 00 00 57 00 0D B7 C1 10 27 CD 04 E8 90 00 48 [17:58:21]RAPDU: 0D B7 C1 10 27 CD 04 E8 90 00 [17:58:21]wFMCommunicate OK [17:58:21]SAM_PROTO_SignData done [17:58:21]FM_MakeSignedData done [17:58:21]CreateOFDProtocolMessage [17:58:21]wFMCommunicate request_size=4 [17:58:21]MH_SAM_APDU [17:58:21]CAPDU: 80 11 00 00 [17:58:21]Write to MH i2c: E2 08 00 01 57 80 11 00 00 00 00 00 00 D2 [17:58:21]Write i2c OK [17:58:21]MH_I2C_Read... [17:58:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:21]Read from MH i2c: E2 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: E2 17 00 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: E2 17 00 01 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 21 [17:58:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:58:21]wFMCommunicate OK [17:58:21]CreateOFDProtocolMessage done [17:58:21]OFDSenderStorePacket 29008 [17:58:21]StoreOFDPacket docnum=29008 [17:58:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 EE 42 04 01 1C 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 C1 C7 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 50 71 00 00 35 04 06 00 4C 9E C2 46 E0 95 0D B7 C1 10 27 CD 04 E8 [17:58:21]CheckFolder [17:58:21]dirname=/storage/ofd_packets [17:58:21]CheckFolder done [17:58:21]ProducePacketName [17:58:21]name=ofd_packets/00029008 [17:58:21]NVStorageSaveData ofd_packets/00029008 [17:58:21]File name is /storage/ofd_packets/00029008 [17:58:21]Write 298 bytes [17:58:21]NVStorageSaveData done [17:58:21]OFDSenderStorePacket done [17:58:21]KKMCreateOFDPacket done [17:58:21]NVStorageSaveData kkm_last_timestamp [17:58:21]File name is /storage/kkm_last_timestamp [17:58:21]Write 4 bytes [17:58:21]NVStorageSaveData done [17:58:21]ExternCall_PrintAddStr [17:58:21]wPrintStart [17:58:21]Write to MH i2c: 01 00 00 02 57 59 [17:58:21]Write i2c OK [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: 01 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: 01 07 00 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: 01 07 00 02 57 00 00 00 00 00 FF 0F 6E [17:58:21]RasterBufferAndPrint [17:58:21]line Счет N : (1)347371 [17:58:21]line ИНН: 02508201610067 [17:58:21]line Контрольно-Кассовый Чек [17:58:21]line ПРОДАЖА [17:58:21]line ТРК (МРК, ГНК) : 21 [17:58:21]line Товар: 2710194210 [17:58:21]line ДТ-К-5 [17:58:21]line 13.820 * 72.40 [17:58:21]line = 1000.57 [17:58:21]line НДС 12% НСП 1% [17:58:21]line > о реализуемом товаре [17:58:21]line ИТОГО: 1000.57 [17:58:21]line НСП 1% : 8.85 [17:58:21]line НДС 12% : 106.25 [17:58:21]line Наличными: 0.00 [17:58:21]line Безнал.: 1000.57 [17:58:21]line Место: АЗС № 108 "Партнер Нефть" [17:58:21]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [17:58:21]line СНО: Общий режим [17:58:21]line Чек 215 13.04.2024 17:58 [17:58:21]line Смена: 115 ФФД: 1.0 [17:58:21]line ЗНМ: 0300000027 [17:58:21]line РНМ: 0000138879044617 [17:58:21]line Версия ККМ: 001 [17:58:21]line Платежная система: АКБ Кыргызстан [17:58:21]line ФМ: 0000000000963154 [17:58:21]line ФД: 29008 [17:58:21]line ФПД: 84244747968661 [17:58:21]line 1/tax-web-control/client/api/v1/ticket?date=20240413T175825&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29008&fm=84244747968661&tin=02508201610067®Number=0000138879044617&sum=100057 [17:58:21]OFD Sender: Processing packet 29008 [packets to send 8, broken 7] [17:58:21]ProducePacketName [17:58:21]name=ofd_packets/00029008 [17:58:21]OFD Sender: To server: pG, [17:58:21]CommunicateWithHost lk.salyk.kg:30040 [17:58:21]ConnectInit lk.salyk.kg [17:58:21]written 0, free lines is 4095 [17:58:21]Connected sock=10 [17:58: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 31 35 34 0C 01 00 00 EE 42 04 01 1C 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 C1 C7 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 50 71 00 00 35 04 06 00 4C 9E C2 46 E0 95 0D B7 C1 10 27 CD 04 E8 [17:58:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 56 66 47 00 E2 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 50 71 00 00 F4 03 04 00 68 72 1A 66 B6 04 01 00 00 6C 8A 63 9B DC F6 3A 2E [17:58:22]CommunicateWithHost err = 0 [17:58:22]CheckOFDResponse [17:58:22]1017 (14) - 77093643461234 [17:58:22]1041 (16) - 0000000000963154 [17:58:22]1040 (4) - 29008 [17:58:22]1012 (4) - 13.04.2024 11:54 [17:58:22]1206 (1) - 0 [17:58:22]OFD Sender: Remove packet 29008 [17:58:22]ProducePacketName [17:58:22]name=ofd_packets/00029008 [17:58:22]NVStorageDeleteData [17:58:22]Write to MH i2c: 01 00 00 2B 57 82 [17:58:22]Write i2c OK [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: 01 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: 01 07 00 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: 01 07 00 2B 57 00 00 00 00 00 E0 0C 75 [17:58:22]RasterBufferAndPrint [17:58:22]line [17:58:22]line [17:58:22]line [17:58:22]line [17:58:22]line [17:58:22]written 0, free lines is 3302 [17:58:22]MH_Cut [17:58:22]Write to MH i2c: D1 01 00 32 57 01 5B [17:58:22]Write i2c OK [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: D1 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: D1 01 00 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: D1 01 00 32 57 00 5A [17:58:22]Write to MH i2c: 01 00 00 33 57 8A [17:58:22]Write i2c OK [17:58:22]MH_I2C_Read... [17:58:22]OFD Sender: No OFD packet to send [17:58:22]*** Cut start [17:58:22]*** Partial cut [17:58:22]*** CUTSNS_PIN = 1 [17:58:23]*** CUTSNS_PIN = 0 [17:58:23]*** Brake cut motor [17:58:23]Read from MH i2c: 01 [17:58:23]MH_I2C_Read... [17:58:23]*** Stop cut motor [17:58:23]*** Cut end [17:58:23]Read from MH i2c: 01 07 00 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: 01 07 00 33 57 00 00 00 00 00 FF 0F 9F [17:58:23]process_action close_receipt done [17:58:23]requested_data is exist [17:58:23]produce_requested_data [17:58:23]requested_item fm.sn is exist - process it [17:58:23]wFMCommunicate request_size=4 [17:58:23]MH_SAM_APDU [17:58:23]CAPDU: 80 11 00 00 [17:58:23]Write to MH i2c: E2 08 00 34 57 80 11 00 00 00 00 00 00 05 [17:58:23]Write i2c OK [17:58:23]MH_I2C_Read... [17:58:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:23]Read from MH i2c: E2 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: E2 17 00 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: E2 17 00 34 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 54 [17:58:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [17:58:23]wFMCommunicate OK [17:58:23]requested_item fd.num is exist - process it [17:58:23]SAM_PROTO_GetFieldsCounters [17:58:23]wFMCommunicate request_size=4 [17:58:23]MH_SAM_APDU [17:58:23]CAPDU: 80 13 00 00 [17:58:23]Write to MH i2c: E2 08 00 35 57 80 13 00 00 00 00 00 00 08 [17:58:23]Write i2c OK [17:58:23]MH_I2C_Read... [17:58:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:23]Read from MH i2c: E2 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: E2 62 00 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: E2 62 00 35 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 50 71 00 00 0E 04 04 00 73 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 FF [17:58: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 50 71 00 00 0E 04 04 00 73 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 [17:58:23]wFMCommunicate OK [17:58:23]SAM_PROTO_GetFieldsCounters done [17:58:23]requested_item shift.num is exist - process it [17:58:23]requested_item shift.opened is exist - process it [17:58:23]req_shift_opened [17:58:23]FM_GetShiftState [17:58:23]SAM_PROTO_GetShiftState [17:58:23]wFMCommunicate request_size=4 [17:58:23]MH_SAM_APDU [17:58:23]CAPDU: 80 13 01 00 [17:58:23]Write to MH i2c: E2 08 00 36 57 80 13 01 00 00 00 00 00 0A [17:58:23]Write i2c OK [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: E2 [17:58:23]MH_I2C_Read... [17:58:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:23]Read from MH i2c: E2 0E 00 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: E2 0E 00 36 57 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 23 [17:58:23]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:58:23]wFMCommunicate OK [17:58:23]SAM_PROTO_GetShiftState done [17:58:23]FM_GetShiftState done [17:58:23]req_shift_opened done [17:58:23]requested_item shift.open_date is exist - process it [17:58:23]req_shift_open_date [17:58:23]req_shift_open_date done [17:58:23]produce_requested_data done [17:58:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29008,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [17:58:23]process_action_free close_receipt [17:58:23]json_value_free [17:58:23]json_value_free done [17:58:23]process_json_proto returns [17:58:23]Send response to host [17:58:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29008,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [17:58:23]free response buf [17:58:23]execute_script done [17:58:23]execute_script returns [17:58:23]free content buf [17:58:23]Sock 9.Close socket [17:58:23]Sock 9.Thread stoped [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:57]OFD Sender: No OFD packet to send [17:59:02]OFD Sender: No OFD packet to send [17:59:07]OFD Sender: No OFD packet to send [17:59:12]OFD Sender: No OFD packet to send [17:59:17]OFD Sender: No OFD packet to send [17:59:22]OFD Sender: No OFD packet to send [17:59:27]OFD Sender: No OFD packet to send [17:59:32]OFD Sender: No OFD packet to send [17:59:37]OFD Sender: No OFD packet to send [17:59:42]OFD Sender: No OFD packet to send [17:59:47]OFD Sender: No OFD packet to send [17:59:52]OFD Sender: No OFD packet to send [17:59:57]OFD Sender: No OFD packet to send [17:59:59]accept exits with 7 [17:59:59]New connection [17:59:59]New thread 3066785124 created [17:59:59]Thread 3066928484 joined [17:59:59]Waiting for new connection... [17:59:59] Sock 7.Parse request [17:59:59]Sock 7.Check first char [17:59:59]Sock 7.First char is OK [17:59:59]request: POST /json_proto HTTP/1.0 [17:59:59]Method: POST [17:59:59]URL: /json_proto [17:59:59]Method is POST - this is cgi request [17:59:59]url: /json_proto [17:59:59]query_string will be loaded in cgi processing [17:59:59]execute_cgi json_proto POST (null) [17:59:59]execute_cgi path=json_proto method=POST [17:59:59]POST find Content-Length [17:59:59]Host: 172.17.33.3:8080 [17:59:59]Content-Length: 816 [17:59:59]Content-Type: application/json [17:59:59] [17:59:59]POST finish read [17:59:59]Found Content-Length = 816 [17:59:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:59]execute_script... [17:59:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:59]POST & json_proto [17:59:59]process_json_proto [17:59:59]json parsed OK: [17:59:59]protocol is kg_v1.0 [17:59:59]action value=close_receipt [17:59:59]process_action close_receipt [17:59:59]cmd_close_receipt [17:59:59]MH_GetDate [17:59:59]Write to MH i2c: F0 00 00 37 57 7D [17:59:59]Write i2c OK [17:59:59]MH_I2C_Read... [17:59:59]Read from MH i2c: F0 [17:59:59]MH_I2C_Read... [17:59:59]Read from MH i2c: F0 09 00 [17:59:59]MH_I2C_Read... [17:59:59]Read from MH i2c: F0 09 00 37 57 00 25 C8 1A 66 23 5B 8F 65 65 [17:59:59]GetLastDocTimeStamp 1713031105 [17:59:59]current date 1713031205 [17:59:59]FM_GetShiftState [17:59:59]SAM_PROTO_GetShiftState [17:59:59]wFMCommunicate request_size=4 [17:59:59]MH_SAM_APDU [17:59:59]CAPDU: 80 13 01 00 [17:59:59]Write to MH i2c: E2 08 00 38 57 80 13 01 00 00 00 00 00 0C [17:59:59]Write i2c OK [17:59:59]MH_I2C_Read... [17:59:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:59]Read from MH i2c: E2 [17:59:59]MH_I2C_Read... [17:59:59]Read from MH i2c: E2 0E 00 [17:59:59]MH_I2C_Read... [17:59:59]Read from MH i2c: E2 0E 00 38 57 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 25 [17:59:59]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [17:59:59]wFMCommunicate OK [17:59:59]SAM_PROTO_GetShiftState done [17:59:59]FM_GetShiftState done [17:59:59]opened in 1712967615 [17:59:59]opened+sec_in_day 1713054015 [17:59:59]quantity*price = 50025 [17:59:59]sum+1 = 50026 [17:59:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 216 13.04.2024 18:00 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29009 ФПД: 233862969776054 1/tax-web-control/client/api/v1/ticket?date=20240413T180005&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29009&fm=233862969776054&tin=02508201610067®Number=0000138879044617&sum=50025 [18:00:00]StoreToDocumentArchive [18:00:00]shift 115 fd 29009 [18:00:00]save to /storage/0115/doc_00029009 [18:00:00]save last doc name /storage/0115/doc_00029009 to /storage/kkm_last_doc_name [18:00:00]save OK [18:00:00]Clear old archive folders... [18:00:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:00:00]tlvbuf is 011DA640 [18:00:00]SAM_PROTO_ClearQueue [18:00:00]wFMCommunicate request_size=4 [18:00:00]MH_SAM_APDU [18:00:00]CAPDU: 80 09 00 00 [18:00:00]Write to MH i2c: E2 08 00 45 57 80 09 00 00 00 00 00 00 0E [18:00:00]Write i2c OK [18:00:00]MH_I2C_Read... [18:00:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:00:00]Read from MH i2c: E2 [18:00:00]MH_I2C_Read... [18:00:00]Read from MH i2c: E2 03 00 [18:00:00]MH_I2C_Read... [18:00:00]Read from MH i2c: E2 03 00 45 57 00 90 00 10 [18:00:00]RAPDU: 90 00 [18:00:00]wFMCommunicate OK [18:00:00]SAM_PROTO_ClearQueue done [18:00:00]KKMCreateOFDPacket [18:00:00]OFDProtocolAddRootSTLVToBuf [18:00:00]FM_MakeSignedData [18:00:00]FM_MakeSignedData [18:00:00]SAM_PROTO_SignData [18:00:00]wFMCommunicate request_size=4 [18:00:00]MH_SAM_APDU [18:00:00]CAPDU: 80 0D 01 02 [18:00:00]Write to MH i2c: E2 08 00 46 57 80 0D 01 02 00 00 00 00 16 [18:00:00]Write i2c OK [18:00:00]MH_I2C_Read... [18:00:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:00:00]Read from MH i2c: E2 [18:00:00]MH_I2C_Read... [18:00:00]Read from MH i2c: E2 03 00 [18:00:00]MH_I2C_Read... [18:00:00]Read from MH i2c: E2 03 00 46 57 00 90 00 11 [18:00:00]RAPDU: 90 00 [18:00:00]wFMCommunicate OK [18:00:00]wFMCommunicate request_size=255 [18:00:00]MH_SAM_APDU [18:00: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 D8 00 00 00 F4 03 04 00 25 C8 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 51 71 00 00 35 04 06 00 D4 [18:00:00]Write to MH i2c: E2 02 01 47 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 D8 00 00 00 F4 03 04 00 25 C8 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 51 71 00 00 35 04 06 00 D4 00 00 58 [18:00:00]Write i2c OK [18:00:00]MH_I2C_Read... [18:00:00]Read from MH i2c: E2 [18:00:00]MH_I2C_Read... [18:00:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:00]Read from MH i2c: E2 03 00 [18:00:00]MH_I2C_Read... [18:00:00]Read from MH i2c: E2 03 00 47 57 00 90 00 12 [18:00:00]RAPDU: 90 00 [18:00:00]wFMCommunicate OK [18:00:00]wFMCommunicate request_size=10 [18:00:00]MH_SAM_APDU [18:00:00]CAPDU: 80 0D 02 02 05 B2 77 3D 57 B6 [18:00:00]Write to MH i2c: E2 0D 00 48 57 80 0D 02 02 05 00 B2 77 3D 57 B6 00 00 96 [18:00:00]Write i2c OK [18:00:00]MH_I2C_Read... [18:00:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:00]Read from MH i2c: E2 [18:00:00]MH_I2C_Read... [18:00:00]Read from MH i2c: E2 03 00 [18:00:00]MH_I2C_Read... [18:00:00]Read from MH i2c: E2 03 00 48 57 00 90 00 13 [18:00:00]RAPDU: 90 00 [18:00:00]wFMCommunicate OK [18:00:00]wFMCommunicate request_size=4 [18:00:00]MH_SAM_APDU [18:00:00]CAPDU: 80 0D 03 02 [18:00:00]Write to MH i2c: E2 08 00 49 57 80 0D 03 02 00 00 00 00 1B [18:00:00]Write i2c OK [18:00:00]MH_I2C_Read... [18:00:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:00:00]Read from MH i2c: E2 [18:00:00]MH_I2C_Read... [18:00:00]Read from MH i2c: E2 0B 00 [18:00:00]MH_I2C_Read... [18:00:00]Read from MH i2c: E2 0B 00 49 57 00 0E 1B 14 53 0F 19 E2 7C 90 00 32 [18:00:00]RAPDU: 0E 1B 14 53 0F 19 E2 7C 90 00 [18:00:00]wFMCommunicate OK [18:00:00]SAM_PROTO_SignData done [18:00:00]FM_MakeSignedData done [18:00:00]CreateOFDProtocolMessage [18:00:00]wFMCommunicate request_size=4 [18:00:00]MH_SAM_APDU [18:00:00]CAPDU: 80 11 00 00 [18:00:00]Write to MH i2c: E2 08 00 4A 57 80 11 00 00 00 00 00 00 1B [18:00:00]Write i2c OK [18:00:00]MH_I2C_Read... [18:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:00]Read from MH i2c: E2 [18:00:00]MH_I2C_Read... [18:00:00]Read from MH i2c: E2 17 00 [18:00:00]MH_I2C_Read... [18:00:00]Read from MH i2c: E2 17 00 4A 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6A [18:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:00:00]wFMCommunicate OK [18:00:00]CreateOFDProtocolMessage done [18:00:00]OFDSenderStorePacket 29009 [18:00:00]StoreOFDPacket docnum=29009 [18:00:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E2 09 07 01 26 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 D8 00 00 00 F4 03 04 00 25 C8 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 51 71 00 00 35 04 06 00 D4 B2 77 3D 57 B6 0E 1B 14 53 0F 19 E2 7C [18:00:00]CheckFolder [18:00:00]dirname=/storage/ofd_packets [18:00:00]CheckFolder done [18:00:00]ProducePacketName [18:00:00]name=ofd_packets/00029009 [18:00:00]NVStorageSaveData ofd_packets/00029009 [18:00:00]File name is /storage/ofd_packets/00029009 [18:00:00]Write 301 bytes [18:00:00]NVStorageSaveData done [18:00:00]OFDSenderStorePacket done [18:00:00]KKMCreateOFDPacket done [18:00:00]NVStorageSaveData kkm_last_timestamp [18:00:00]File name is /storage/kkm_last_timestamp [18:00:00]Write 4 bytes [18:00:00]NVStorageSaveData done [18:00:00]ExternCall_PrintAddStr [18:00:00]wPrintStart [18:00:00]Write to MH i2c: 01 00 00 4B 57 A2 [18:00:00]Write i2c OK [18:00:00]MH_I2C_Read... [18:00:00]Read from MH i2c: 01 [18:00:00]MH_I2C_Read... [18:00:00]Read from MH i2c: 01 07 00 [18:00:00]MH_I2C_Read... [18:00:00]Read from MH i2c: 01 07 00 4B 57 00 00 00 00 00 FF 0F B7 [18:00:00]RasterBufferAndPrint [18:00:00]line Счет N : (1)347372 [18:00:00]line ИНН: 02508201610067 [18:00:00]line Контрольно-Кассовый Чек [18:00:00]line ПРОДАЖА [18:00:00]line ТРК (МРК, ГНК) : 13 [18:00:00]line Товар: 2710124130 [18:00:00]line Аи-92-К-5 [18:00:00]line 7.780 * 64.30 [18:00:00]line = 500.25 [18:00:00]line НДС 12% НСП 1% [18:00:00]line > о реализуемом товаре [18:00:00]line ИТОГО: 500.25 [18:00:00]line НСП 1% : 4.43 [18:00:00]line НДС 12% : 53.12 [18:00:00]line Наличными: 0.00 [18:00:00]line Безнал.: 500.25 [18:00:00]line Место: АЗС № 108 "Партнер Нефть" [18:00:00]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:00:00]line СНО: Общий режим [18:00:00]line Чек 216 13.04.2024 18:00 [18:00:00]line Смена: 115 ФФД: 1.0 [18:00:00]line ЗНМ: 0300000027 [18:00:00]line РНМ: 0000138879044617 [18:00:00]line Версия ККМ: 001 [18:00:00]line Платежная система: Бакай Банк [18:00:00]line ФМ: 0000000000963154 [18:00:00]line ФД: 29009 [18:00:00]line ФПД: 233862969776054 [18:00:01]line 1/tax-web-control/client/api/v1/ticket?date=20240413T180005&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29009&fm=233862969776054&tin=02508201610067®Number=0000138879044617&sum=50025 [18:00:01]OFD Sender: Processing packet 29009 [packets to send 8, broken 7] [18:00:01]ProducePacketName [18:00:01]name=ofd_packets/00029009 [18:00:01]OFD Sender: To server: pG, [18:00:01]CommunicateWithHost lk.salyk.kg:30040 [18:00:01]ConnectInit lk.salyk.kg [18:00:01]written 0, free lines is 4095 [18:00:01]Connected sock=10 [18:00: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 31 35 34 0F 01 00 00 E2 09 07 01 26 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 D8 00 00 00 F4 03 04 00 25 C8 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 51 71 00 00 35 04 06 00 D4 B2 77 3D 57 B6 0E 1B 14 53 0F 19 E2 7C [18:00:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 51 8F 47 00 36 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 31 35 34 10 04 04 00 51 71 00 00 F4 03 04 00 CB 72 1A 66 B6 04 01 00 00 A4 7E 68 3A 8D 49 C4 85 [18:00:01]CommunicateWithHost err = 0 [18:00:01]CheckOFDResponse [18:00:01]1017 (14) - 77093643461234 [18:00:01]1041 (16) - 0000000000963154 [18:00:01]1040 (4) - 29009 [18:00:01]1012 (4) - 13.04.2024 11:55 [18:00:01]1206 (1) - 0 [18:00:01]OFD Sender: Remove packet 29009 [18:00:01]ProducePacketName [18:00:01]name=ofd_packets/00029009 [18:00:01]NVStorageDeleteData [18:00:01]Write to MH i2c: 01 00 00 74 57 CB [18:00:01]Write i2c OK [18:00:01]MH_I2C_Read... [18:00:01]Read from MH i2c: 01 [18:00:01]MH_I2C_Read... [18:00:01]Read from MH i2c: 01 07 00 [18:00:01]MH_I2C_Read... [18:00:01]Read from MH i2c: 01 07 00 74 57 00 00 00 00 00 DC 0C BA [18:00:01]RasterBufferAndPrint [18:00:01]line [18:00:01]line [18:00:01]line [18:00:01]line [18:00:01]line [18:00:01]written 0, free lines is 3299 [18:00:01]MH_Cut [18:00:01]Write to MH i2c: D1 01 00 7B 57 01 A4 [18:00:01]Write i2c OK [18:00:01]MH_I2C_Read... [18:00:01]Read from MH i2c: D1 [18:00:01]MH_I2C_Read... [18:00:01]Read from MH i2c: D1 01 00 [18:00:01]MH_I2C_Read... [18:00:01]Read from MH i2c: D1 01 00 7B 57 00 A3 [18:00:01]Write to MH i2c: 01 00 00 7C 57 D3 [18:00:01]Write i2c OK [18:00:01]MH_I2C_Read... [18:00:02]OFD Sender: No OFD packet to send [18:00:02]*** Cut start [18:00:02]*** Partial cut [18:00:02]*** CUTSNS_PIN = 1 [18:00:02]*** CUTSNS_PIN = 0 [18:00:02]*** Brake cut motor [18:00:03]Read from MH i2c: 01 [18:00:03]MH_I2C_Read... [18:00:03]*** Stop cut motor [18:00:03]*** Cut end [18:00:03]Read from MH i2c: 01 07 00 [18:00:03]MH_I2C_Read... [18:00:03]Read from MH i2c: 01 07 00 7C 57 00 00 00 00 00 FF 0F E8 [18:00:03]process_action close_receipt done [18:00:03]requested_data is exist [18:00:03]produce_requested_data [18:00:03]requested_item fm.sn is exist - process it [18:00:03]wFMCommunicate request_size=4 [18:00:03]MH_SAM_APDU [18:00:03]CAPDU: 80 11 00 00 [18:00:03]Write to MH i2c: E2 08 00 7D 57 80 11 00 00 00 00 00 00 4E [18:00:03]Write i2c OK [18:00:03]MH_I2C_Read... [18:00:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:03]Read from MH i2c: E2 [18:00:03]MH_I2C_Read... [18:00:03]Read from MH i2c: E2 17 00 [18:00:03]MH_I2C_Read... [18:00:03]Read from MH i2c: E2 17 00 7D 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9D [18:00:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:00:03]wFMCommunicate OK [18:00:03]requested_item fd.num is exist - process it [18:00:03]SAM_PROTO_GetFieldsCounters [18:00:03]wFMCommunicate request_size=4 [18:00:03]MH_SAM_APDU [18:00:03]CAPDU: 80 13 00 00 [18:00:03]Write to MH i2c: E2 08 00 7E 57 80 13 00 00 00 00 00 00 51 [18:00:03]Write i2c OK [18:00:03]MH_I2C_Read... [18:00:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:03]Read from MH i2c: E2 [18:00:03]MH_I2C_Read... [18:00:03]Read from MH i2c: E2 62 00 [18:00:03]MH_I2C_Read... [18:00:03]Read from MH i2c: E2 62 00 7E 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 51 71 00 00 0E 04 04 00 73 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 4C [18:00: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 51 71 00 00 0E 04 04 00 73 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 [18:00:03]wFMCommunicate OK [18:00:03]SAM_PROTO_GetFieldsCounters done [18:00:03]requested_item shift.num is exist - process it [18:00:03]requested_item shift.opened is exist - process it [18:00:03]req_shift_opened [18:00:03]FM_GetShiftState [18:00:03]SAM_PROTO_GetShiftState [18:00:03]wFMCommunicate request_size=4 [18:00:03]MH_SAM_APDU [18:00:03]CAPDU: 80 13 01 00 [18:00:03]Write to MH i2c: E2 08 00 7F 57 80 13 01 00 00 00 00 00 53 [18:00:03]Write i2c OK [18:00:03]MH_I2C_Read... [18:00:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:03]Read from MH i2c: E2 [18:00:03]MH_I2C_Read... [18:00:03]Read from MH i2c: E2 0E 00 [18:00:03]MH_I2C_Read... [18:00:03]Read from MH i2c: E2 0E 00 7F 57 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 6C [18:00:03]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:00:03]wFMCommunicate OK [18:00:03]SAM_PROTO_GetShiftState done [18:00:03]FM_GetShiftState done [18:00:03]req_shift_opened done [18:00:03]requested_item shift.open_date is exist - process it [18:00:03]req_shift_open_date [18:00:03]req_shift_open_date done [18:00:03]produce_requested_data done [18:00:03]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29009,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [18:00:03]process_action_free close_receipt [18:00:03]json_value_free [18:00:03]json_value_free done [18:00:03]process_json_proto returns [18:00:03]Send response to host [18:00:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29009,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [18:00:03]free response buf [18:00:03]execute_script done [18:00:03]execute_script returns [18:00:03]free content buf [18:00:03]Sock 7.Close socket [18:00:03]Sock 7.Thread stoped [18:00:07]OFD Sender: No OFD packet to send [18:00:12]OFD Sender: No OFD packet to send [18:00:17]OFD Sender: No OFD packet to send [18:00:22]OFD Sender: No OFD packet to send [18:00:27]OFD Sender: No OFD packet to send [18:00:32]OFD Sender: No OFD packet to send [18:00:37]OFD Sender: No OFD packet to send [18:00:42]OFD Sender: No OFD packet to send [18:00:47]OFD Sender: No OFD packet to send [18:00:52]OFD Sender: No OFD packet to send [18:00:57]OFD Sender: No OFD packet to send [18:01:02]OFD Sender: No OFD packet to send [18:01:07]OFD Sender: No OFD packet to send [18:01:12]OFD Sender: No OFD packet to send [18:01:17]OFD Sender: No OFD packet to send [18:01:22]OFD Sender: No OFD packet to send [18:01:27]OFD Sender: No OFD packet to send [18:01:32]OFD Sender: No OFD packet to send [18:01:37]OFD Sender: No OFD packet to send [18:01:42]OFD Sender: No OFD packet to send [18:01:47]OFD Sender: No OFD packet to send [18:01:52]OFD Sender: No OFD packet to send [18:01:57]OFD Sender: No OFD packet to send [18:02:02]OFD Sender: No OFD packet to send [18:02:07]OFD Sender: No OFD packet to send [18:02:12]OFD Sender: No OFD packet to send [18:02:17]OFD Sender: No OFD packet to send [18:02:22]OFD Sender: No OFD packet to send [18:02:27]OFD Sender: No OFD packet to send [18:02:32]OFD Sender: No OFD packet to send [18:02:37]OFD Sender: No OFD packet to send [18:02:42]OFD Sender: No OFD packet to send [18:02:47]OFD Sender: No OFD packet to send [18:02:52]OFD Sender: No OFD packet to send [18:02:57]OFD Sender: No OFD packet to send [18:03:02]OFD Sender: No OFD packet to send [18:03:07]OFD Sender: No OFD packet to send [18:03:12]OFD Sender: No OFD packet to send [18:03:17]OFD Sender: No OFD packet to send [18:03:22]OFD Sender: No OFD packet to send [18:03:27]OFD Sender: No OFD packet to send [18:03:32]OFD Sender: No OFD packet to send [18:03:37]OFD Sender: No OFD packet to send [18:03:42]OFD Sender: No OFD packet to send [18:03:47]OFD Sender: No OFD packet to send [18:03:52]OFD Sender: No OFD packet to send [18:03:57]OFD Sender: No OFD packet to send [18:04:02]OFD Sender: No OFD packet to send [18:04:07]OFD Sender: No OFD packet to send [18:04:08]accept exits with 9 [18:04:08]New connection [18:04:08]New thread 3066928484 created [18:04:08]Thread 3066785124 joined [18:04:08]Waiting for new connection... [18:04:08] Sock 9.Parse request [18:04:08]Sock 9.Check first char [18:04:08]Sock 9.First char is OK [18:04:08]request: POST /json_proto HTTP/1.0 [18:04:08]Method: POST [18:04:08]URL: /json_proto [18:04:08]Method is POST - this is cgi request [18:04:08]url: /json_proto [18:04:08]query_string will be loaded in cgi processing [18:04:08]execute_cgi json_proto POST (null) [18:04:08]execute_cgi path=json_proto method=POST [18:04:08]POST find Content-Length [18:04:08]Host: 172.17.33.3:8080 [18:04:08]Content-Length: 685 [18:04:08]Content-Type: application/json [18:04:08] [18:04:08]POST finish read [18:04:08]Found Content-Length = 685 [18:04:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 39.520, "sum" : 1300.21, "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" ] } } [18:04:08]execute_script... [18:04: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)347373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 39.520, "sum" : 1300.21, "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" ] } } [18:04:08]POST & json_proto [18:04:08]process_json_proto [18:04:08]json parsed OK: [18:04:08]protocol is kg_v1.0 [18:04:08]action value=close_receipt [18:04:08]process_action close_receipt [18:04:08]cmd_close_receipt [18:04:08]MH_GetDate [18:04:08]Write to MH i2c: F0 00 00 80 57 C6 [18:04:08]Write i2c OK [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: F0 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: F0 09 00 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: F0 09 00 80 57 00 1E C9 1A 66 23 5B 8F 65 A8 [18:04:08]GetLastDocTimeStamp 1713031205 [18:04:08]current date 1713031454 [18:04:08]FM_GetShiftState [18:04:08]SAM_PROTO_GetShiftState [18:04:08]wFMCommunicate request_size=4 [18:04:08]MH_SAM_APDU [18:04:08]CAPDU: 80 13 01 00 [18:04:08]Write to MH i2c: E2 08 00 81 57 80 13 01 00 00 00 00 00 55 [18:04:08]Write i2c OK [18:04:08]MH_I2C_Read... [18:04:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:08]Read from MH i2c: E2 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: E2 0E 00 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: E2 0E 00 81 57 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 6E [18:04:08]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:04:08]wFMCommunicate OK [18:04:08]SAM_PROTO_GetShiftState done [18:04:08]FM_GetShiftState done [18:04:08]opened in 1712967615 [18:04:08]opened+sec_in_day 1713054015 [18:04:08]quantity*price = 130020 [18:04:08]sum+1 = 130022 [18:04:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.07 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 217 13.04.2024 18:04 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29010 ФПД: 188652278935186 1/tax-web-control/client/api/v1/ticket?date=20240413T180414&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29010&fm=188652278935186&tin=02508201610067®Number=0000138879044617&sum=130000 [18:04:09]StoreToDocumentArchive [18:04:09]shift 115 fd 29010 [18:04:09]save to /storage/0115/doc_00029010 [18:04:09]save last doc name /storage/0115/doc_00029010 to /storage/kkm_last_doc_name [18:04:09]save OK [18:04:09]Clear old archive folders... [18:04:09]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:04:09]tlvbuf is 012863B0 [18:04:09]SAM_PROTO_ClearQueue [18:04:09]wFMCommunicate request_size=4 [18:04:09]MH_SAM_APDU [18:04:09]CAPDU: 80 09 00 00 [18:04:09]Write to MH i2c: E2 08 00 8E 57 80 09 00 00 00 00 00 00 57 [18:04:09]Write i2c OK [18:04:09]MH_I2C_Read... [18:04:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:09]Read from MH i2c: E2 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 03 00 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 03 00 8E 57 00 90 00 59 [18:04:09]RAPDU: 90 00 [18:04:09]wFMCommunicate OK [18:04:09]SAM_PROTO_ClearQueue done [18:04:09]KKMCreateOFDPacket [18:04:09]OFDProtocolAddRootSTLVToBuf [18:04:09]FM_MakeSignedData [18:04:09]FM_MakeSignedData [18:04:09]SAM_PROTO_SignData [18:04:09]wFMCommunicate request_size=4 [18:04:09]MH_SAM_APDU [18:04:09]CAPDU: 80 0D 01 02 [18:04:09]Write to MH i2c: E2 08 00 8F 57 80 0D 01 02 00 00 00 00 5F [18:04:09]Write i2c OK [18:04:09]MH_I2C_Read... [18:04:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:10]Read from MH i2c: E2 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: E2 03 00 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: E2 03 00 8F 57 00 90 00 5A [18:04:10]RAPDU: 90 00 [18:04:10]wFMCommunicate OK [18:04:10]wFMCommunicate request_size=255 [18:04:10]MH_SAM_APDU [18:04: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 35 FF 03 08 00 03 60 9A 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 E5 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 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 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 D9 00 00 00 F4 03 04 00 1E C9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 52 71 00 00 35 04 06 00 AB 94 [18:04:10]Write to MH i2c: E2 02 01 90 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 35 FF 03 08 00 03 60 9A 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 E5 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 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 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 D9 00 00 00 F4 03 04 00 1E C9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 52 71 00 00 35 04 06 00 AB 94 00 00 EB [18:04:10]Write i2c OK [18:04:10]MH_I2C_Read... [18:04:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:10]Read from MH i2c: E2 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: E2 03 00 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: E2 03 00 90 57 00 90 00 5B [18:04:10]RAPDU: 90 00 [18:04:10]wFMCommunicate OK [18:04:10]wFMCommunicate request_size=9 [18:04:10]MH_SAM_APDU [18:04:10]CAPDU: 80 0D 02 02 04 08 12 6E 92 [18:04:10]Write to MH i2c: E2 0C 00 91 57 80 0D 02 02 04 00 08 12 6E 92 00 00 84 [18:04:10]Write i2c OK [18:04:10]MH_I2C_Read... [18:04:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:10]Read from MH i2c: E2 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: E2 03 00 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: E2 03 00 91 57 00 90 00 5C [18:04:10]RAPDU: 90 00 [18:04:10]wFMCommunicate OK [18:04:10]wFMCommunicate request_size=4 [18:04:10]MH_SAM_APDU [18:04:10]CAPDU: 80 0D 03 02 [18:04:10]Write to MH i2c: E2 08 00 92 57 80 0D 03 02 00 00 00 00 64 [18:04:10]Write i2c OK [18:04:10]MH_I2C_Read... [18:04:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:10]Read from MH i2c: E2 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: E2 0B 00 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: E2 0B 00 92 57 00 45 E1 21 A1 12 18 DF B4 90 00 0A [18:04:10]RAPDU: 45 E1 21 A1 12 18 DF B4 90 00 [18:04:10]wFMCommunicate OK [18:04:10]SAM_PROTO_SignData done [18:04:10]FM_MakeSignedData done [18:04:10]CreateOFDProtocolMessage [18:04:10]wFMCommunicate request_size=4 [18:04:10]MH_SAM_APDU [18:04:10]CAPDU: 80 11 00 00 [18:04:10]Write to MH i2c: E2 08 00 93 57 80 11 00 00 00 00 00 00 64 [18:04:10]Write i2c OK [18:04:10]MH_I2C_Read... [18:04:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:10]Read from MH i2c: E2 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: E2 17 00 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: E2 17 00 93 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B3 [18:04:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:04:10]wFMCommunicate OK [18:04:10]CreateOFDProtocolMessage done [18:04:10]OFDSenderStorePacket 29010 [18:04:10]StoreOFDPacket docnum=29010 [18:04:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 42 1C 06 01 83 A4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 9A 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 E5 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 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 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 D9 00 00 00 F4 03 04 00 1E C9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 52 71 00 00 35 04 06 00 AB 94 08 12 6E 92 45 E1 21 A1 12 18 DF B4 [18:04:10]CheckFolder [18:04:10]dirname=/storage/ofd_packets [18:04:10]CheckFolder done [18:04:10]ProducePacketName [18:04:10]name=ofd_packets/00029010 [18:04:10]NVStorageSaveData ofd_packets/00029010 [18:04:10]File name is /storage/ofd_packets/00029010 [18:04:10]Write 300 bytes [18:04:10]NVStorageSaveData done [18:04:10]OFDSenderStorePacket done [18:04:10]KKMCreateOFDPacket done [18:04:10]NVStorageSaveData kkm_last_timestamp [18:04:10]File name is /storage/kkm_last_timestamp [18:04:10]Write 4 bytes [18:04:10]NVStorageSaveData done [18:04:10]ExternCall_PrintAddStr [18:04:10]wPrintStart [18:04:10]Write to MH i2c: 01 00 00 94 57 EB [18:04:10]Write i2c OK [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: 01 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: 01 07 00 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: 01 07 00 94 57 00 00 00 00 00 FF 0F 00 [18:04:10]RasterBufferAndPrint [18:04:10]line Счет N : (1)347373 [18:04:10]line ИНН: 02508201610067 [18:04:10]line Контрольно-Кассовый Чек [18:04:10]line ПРОДАЖА [18:04:10]line ТРК (МРК, ГНК) : 71 [18:04:10]line Товар: 2711129700 [18:04:10]line ГАЗ-К-5 [18:04:10]line 39.520 * 32.90 [18:04:10]line = 1300.21 [18:04:10]line НДС 12% НСП 1% [18:04:10]line > о реализуемом товаре [18:04:10]line ОКРУГЛЕНИЕ: -0.21 [18:04:10]line ИТОГО: 1300.00 [18:04:10]line Внесено: 1300.00 [18:04:10]line СДАЧА: 0.00 [18:04:10]line НСП 1% : 11.51 [18:04:10]line НДС 12% : 138.07 [18:04:10]line Наличными: 1300.00 [18:04:10]line Безнал.: 0.00 [18:04:10]line Место: АЗС № 108 "Партнер Нефть" [18:04:10]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:04:10]line СНО: Общий режим [18:04:10]line Чек 217 13.04.2024 18:04 [18:04:10]line Смена: 115 ФФД: 1.0 [18:04:10]line ЗНМ: 0300000027 [18:04:10]line РНМ: 0000138879044617 [18:04:10]line Версия ККМ: 001 [18:04:10]line ФМ: 0000000000963154 [18:04:10]line ФД: 29010 [18:04:10]line ФПД: 188652278935186 [18:04:10]line 1/tax-web-control/client/api/v1/ticket?date=20240413T180414&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29010&fm=188652278935186&tin=02508201610067®Number=0000138879044617&sum=130000 [18:04:10]OFD Sender: Processing packet 29010 [packets to send 8, broken 7] [18:04:10]ProducePacketName [18:04:10]name=ofd_packets/00029010 [18:04:10]OFD Sender: To server: pG, [18:04:10]CommunicateWithHost lk.salyk.kg:30040 [18:04:10]ConnectInit lk.salyk.kg [18:04:10]written 0, free lines is 4095 [18:04:10]Connected sock=10 [18:04: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 31 35 34 0E 01 00 00 42 1C 06 01 83 A4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 9A 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 E5 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 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 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 D9 00 00 00 F4 03 04 00 1E C9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 52 71 00 00 35 04 06 00 AB 94 08 12 6E 92 45 E1 21 A1 12 18 DF B4 [18:04:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 23 07 47 00 CF 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 31 35 34 10 04 04 00 52 71 00 00 F4 03 04 00 C5 73 1A 66 B6 04 01 00 00 11 C2 B4 13 AD CE 49 30 [18:04:11]CommunicateWithHost err = 0 [18:04:11]CheckOFDResponse [18:04:11]1017 (14) - 77093643461234 [18:04:11]1041 (16) - 0000000000963154 [18:04:11]1040 (4) - 29010 [18:04:11]1012 (4) - 13.04.2024 12:00 [18:04:11]1206 (1) - 0 [18:04:11]OFD Sender: Remove packet 29010 [18:04:11]ProducePacketName [18:04:11]name=ofd_packets/00029010 [18:04:11]NVStorageDeleteData [18:04:11]Write to MH i2c: 01 00 00 BE 57 15 [18:04:11]Write i2c OK [18:04:11]MH_I2C_Read... [18:04:11]Read from MH i2c: 01 [18:04:11]MH_I2C_Read... [18:04:11]Read from MH i2c: 01 07 00 [18:04:11]MH_I2C_Read... [18:04:11]Read from MH i2c: 01 07 00 BE 57 00 00 00 00 00 C3 0C EB [18:04:11]RasterBufferAndPrint [18:04:11]line [18:04:11]line [18:04:11]line [18:04:11]line [18:04:11]line [18:04:11]written 0, free lines is 3272 [18:04:11]MH_Cut [18:04:11]Write to MH i2c: D1 01 00 C5 57 01 EE [18:04:11]Write i2c OK [18:04:11]MH_I2C_Read... [18:04:11]Read from MH i2c: D1 [18:04:11]MH_I2C_Read... [18:04:11]Read from MH i2c: D1 01 00 [18:04:11]MH_I2C_Read... [18:04:11]Read from MH i2c: D1 01 00 C5 57 00 ED [18:04:11]Write to MH i2c: 01 00 00 C6 57 1D [18:04:11]Write i2c OK [18:04:11]MH_I2C_Read... [18:04:11]OFD Sender: No OFD packet to send [18:04:12]*** Cut start [18:04:12]*** Partial cut [18:04:12]*** CUTSNS_PIN = 1 [18:04:12]*** CUTSNS_PIN = 0 [18:04:12]*** Brake cut motor [18:04:12]Read from MH i2c: 01 [18:04:12]MH_I2C_Read... [18:04:12]*** Stop cut motor [18:04:12]*** Cut end [18:04:12]Read from MH i2c: 01 07 00 [18:04:12]MH_I2C_Read... [18:04:12]Read from MH i2c: 01 07 00 C6 57 00 00 00 00 00 FF 0F 32 [18:04:12]process_action close_receipt done [18:04:12]requested_data is exist [18:04:12]produce_requested_data [18:04:12]requested_item fm.sn is exist - process it [18:04:12]wFMCommunicate request_size=4 [18:04:12]MH_SAM_APDU [18:04:12]CAPDU: 80 11 00 00 [18:04:12]Write to MH i2c: E2 08 00 C7 57 80 11 00 00 00 00 00 00 98 [18:04:12]Write i2c OK [18:04:12]MH_I2C_Read... [18:04:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:12]Read from MH i2c: E2 [18:04:12]MH_I2C_Read... [18:04:12]Read from MH i2c: E2 17 00 [18:04:12]MH_I2C_Read... [18:04:12]Read from MH i2c: E2 17 00 C7 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E7 [18:04:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:04:12]wFMCommunicate OK [18:04:12]requested_item fd.num is exist - process it [18:04:12]SAM_PROTO_GetFieldsCounters [18:04:12]wFMCommunicate request_size=4 [18:04:12]MH_SAM_APDU [18:04:12]CAPDU: 80 13 00 00 [18:04:12]Write to MH i2c: E2 08 00 C8 57 80 13 00 00 00 00 00 00 9B [18:04:12]Write i2c OK [18:04:12]MH_I2C_Read... [18:04:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:12]Read from MH i2c: E2 [18:04:12]MH_I2C_Read... [18:04:12]Read from MH i2c: E2 62 00 [18:04:12]MH_I2C_Read... [18:04:12]Read from MH i2c: E2 62 00 C8 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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 52 71 00 00 0E 04 04 00 73 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 9A [18:04: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 52 71 00 00 0E 04 04 00 73 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 [18:04:12]wFMCommunicate OK [18:04:12]SAM_PROTO_GetFieldsCounters done [18:04:12]requested_item shift.num is exist - process it [18:04:12]requested_item shift.opened is exist - process it [18:04:12]req_shift_opened [18:04:12]FM_GetShiftState [18:04:12]SAM_PROTO_GetShiftState [18:04:12]wFMCommunicate request_size=4 [18:04:12]MH_SAM_APDU [18:04:12]CAPDU: 80 13 01 00 [18:04:12]Write to MH i2c: E2 08 00 C9 57 80 13 01 00 00 00 00 00 9D [18:04:12]Write i2c OK [18:04:12]MH_I2C_Read... [18:04:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:12]Read from MH i2c: E2 [18:04:12]MH_I2C_Read... [18:04:12]Read from MH i2c: E2 0E 00 [18:04:12]MH_I2C_Read... [18:04:12]Read from MH i2c: E2 0E 00 C9 57 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 B6 [18:04:12]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:04:12]wFMCommunicate OK [18:04:12]SAM_PROTO_GetShiftState done [18:04:12]FM_GetShiftState done [18:04:12]req_shift_opened done [18:04:12]requested_item shift.open_date is exist - process it [18:04:12]req_shift_open_date [18:04:12]req_shift_open_date done [18:04:12]produce_requested_data done [18:04:12]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29010,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [18:04:12]process_action_free close_receipt [18:04:12]json_value_free [18:04:12]json_value_free done [18:04:12]process_json_proto returns [18:04:12]Send response to host [18:04:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29010,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [18:04:12]free response buf [18:04:12]execute_script done [18:04:12]execute_script returns [18:04:12]free content buf [18:04:12]Sock 9.Close socket [18:04:12]Sock 9.Thread stoped [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:26]OFD Sender: No OFD packet to send [18:04:31]accept exits with 7 [18:04:31]New connection [18:04:31]New thread 3066785124 created [18:04:31]Thread 3066928484 joined [18:04:31]Waiting for new connection... [18:04:31] Sock 7.Parse request [18:04:31]Sock 7.Check first char [18:04:31]Sock 7.First char is OK [18:04:31]request: POST /json_proto HTTP/1.0 [18:04:31]Method: POST [18:04:31]URL: /json_proto [18:04:31]Method is POST - this is cgi request [18:04:31]url: /json_proto [18:04:31]query_string will be loaded in cgi processing [18:04:31]execute_cgi json_proto POST (null) [18:04:31]execute_cgi path=json_proto method=POST [18:04:31]POST find Content-Length [18:04:31]Host: 172.17.33.3:8080 [18:04:31]Content-Length: 816 [18:04:31]Content-Type: application/json [18:04:31] [18:04:31]POST finish read [18:04:31]Found Content-Length = 816 [18:04:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347374", "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" : 64.30, "quantity" : 9.340, "sum" : 600.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:31]execute_script... [18:04: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)347374", "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" : 64.30, "quantity" : 9.340, "sum" : 600.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:31]POST & json_proto [18:04:31]process_json_proto [18:04:31]json parsed OK: [18:04:31]protocol is kg_v1.0 [18:04:31]action value=close_receipt [18:04:31]process_action close_receipt [18:04:31]cmd_close_receipt [18:04:31]MH_GetDate [18:04:31]Write to MH i2c: F0 00 00 CA 57 10 [18:04:31]Write i2c OK [18:04:31]MH_I2C_Read... [18:04:31]Read from MH i2c: F0 [18:04:31]MH_I2C_Read... [18:04:31]Read from MH i2c: F0 09 00 [18:04:31]MH_I2C_Read... [18:04:31]Read from MH i2c: F0 09 00 CA 57 00 35 C9 1A 66 23 5B 8F 65 09 [18:04:31]GetLastDocTimeStamp 1713031454 [18:04:31]current date 1713031477 [18:04:31]FM_GetShiftState [18:04:31]SAM_PROTO_GetShiftState [18:04:31]wFMCommunicate request_size=4 [18:04:31]MH_SAM_APDU [18:04:31]CAPDU: 80 13 01 00 [18:04:31]Write to MH i2c: E2 08 00 CB 57 80 13 01 00 00 00 00 00 9F [18:04:31]Write i2c OK [18:04:31]MH_I2C_Read... [18:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:31]Read from MH i2c: E2 [18:04:31]MH_I2C_Read... [18:04:31]Read from MH i2c: E2 0E 00 [18:04:31]MH_I2C_Read... [18:04:31]Read from MH i2c: E2 0E 00 CB 57 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 B8 [18:04:31]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:04:31]wFMCommunicate OK [18:04:31]SAM_PROTO_GetShiftState done [18:04:31]FM_GetShiftState done [18:04:31]opened in 1712967615 [18:04:31]opened+sec_in_day 1713054015 [18:04:31]quantity*price = 60056 [18:04:31]sum+1 = 60057 [18:04:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.56 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 0.00 Безнал.: 600.56 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 218 13.04.2024 18:04 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29011 ФПД: 106354990745968 1/tax-web-control/client/api/v1/ticket?date=20240413T180437&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29011&fm=106354990745968&tin=02508201610067®Number=0000138879044617&sum=60056 [18:04:32]StoreToDocumentArchive [18:04:32]shift 115 fd 29011 [18:04:32]save to /storage/0115/doc_00029011 [18:04:32]save last doc name /storage/0115/doc_00029011 to /storage/kkm_last_doc_name [18:04:32]save OK [18:04:32]Clear old archive folders... [18:04:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:04:32]tlvbuf is 0120EB40 [18:04:32]SAM_PROTO_ClearQueue [18:04:32]wFMCommunicate request_size=4 [18:04:32]MH_SAM_APDU [18:04:32]CAPDU: 80 09 00 00 [18:04:32]Write to MH i2c: E2 08 00 D8 57 80 09 00 00 00 00 00 00 A1 [18:04:32]Write i2c OK [18:04:32]MH_I2C_Read... [18:04:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:32]Read from MH i2c: E2 [18:04:32]MH_I2C_Read... [18:04:32]Read from MH i2c: E2 03 00 [18:04:32]MH_I2C_Read... [18:04:32]Read from MH i2c: E2 03 00 D8 57 00 90 00 A3 [18:04:32]RAPDU: 90 00 [18:04:32]wFMCommunicate OK [18:04:32]SAM_PROTO_ClearQueue done [18:04:32]KKMCreateOFDPacket [18:04:32]OFDProtocolAddRootSTLVToBuf [18:04:32]FM_MakeSignedData [18:04:32]FM_MakeSignedData [18:04:32]SAM_PROTO_SignData [18:04:32]wFMCommunicate request_size=4 [18:04:32]MH_SAM_APDU [18:04:32]CAPDU: 80 0D 01 02 [18:04:32]Write to MH i2c: E2 08 00 D9 57 80 0D 01 02 00 00 00 00 A9 [18:04:32]Write i2c OK [18:04:32]MH_I2C_Read... [18:04:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:32]Read from MH i2c: E2 [18:04:32]MH_I2C_Read... [18:04:32]Read from MH i2c: E2 03 00 [18:04:32]MH_I2C_Read... [18:04:32]Read from MH i2c: E2 03 00 D9 57 00 90 00 A4 [18:04:32]RAPDU: 90 00 [18:04:32]wFMCommunicate OK [18:04:32]wFMCommunicate request_size=255 [18:04:32]MH_SAM_APDU [18:04: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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 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 00 00 00 00 00 00 39 04 06 00 98 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 35 C9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 53 71 00 00 35 04 06 00 60 [18:04:32]Write to MH i2c: E2 02 01 DA 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 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 00 00 00 00 00 00 39 04 06 00 98 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 35 C9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 53 71 00 00 35 04 06 00 60 00 00 33 [18:04:32]Write i2c OK [18:04:32]MH_I2C_Read... [18:04:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:32]Read from MH i2c: E2 [18:04:32]MH_I2C_Read... [18:04:32]Read from MH i2c: E2 03 00 [18:04:32]MH_I2C_Read... [18:04:32]Read from MH i2c: E2 03 00 DA 57 00 90 00 A5 [18:04:32]RAPDU: 90 00 [18:04:32]wFMCommunicate OK [18:04:32]wFMCommunicate request_size=10 [18:04:32]MH_SAM_APDU [18:04:32]CAPDU: 80 0D 02 02 05 BA B3 71 89 70 [18:04:32]Write to MH i2c: E2 0D 00 DB 57 80 0D 02 02 05 00 BA B3 71 89 70 00 00 8D [18:04:32]Write i2c OK [18:04:32]MH_I2C_Read... [18:04:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:32]Read from MH i2c: E2 [18:04:32]MH_I2C_Read... [18:04:32]Read from MH i2c: E2 03 00 [18:04:32]MH_I2C_Read... [18:04:32]Read from MH i2c: E2 03 00 DB 57 00 90 00 A6 [18:04:32]RAPDU: 90 00 [18:04:32]wFMCommunicate OK [18:04:32]wFMCommunicate request_size=4 [18:04:32]MH_SAM_APDU [18:04:32]CAPDU: 80 0D 03 02 [18:04:32]Write to MH i2c: E2 08 00 DC 57 80 0D 03 02 00 00 00 00 AE [18:04:32]Write i2c OK [18:04:32]MH_I2C_Read... [18:04:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:32]Read from MH i2c: E2 [18:04:32]MH_I2C_Read... [18:04:32]Read from MH i2c: E2 0B 00 [18:04:32]MH_I2C_Read... [18:04:32]Read from MH i2c: E2 0B 00 DC 57 00 C0 EF 28 77 F4 3C 17 FD 90 00 41 [18:04:32]RAPDU: C0 EF 28 77 F4 3C 17 FD 90 00 [18:04:32]wFMCommunicate OK [18:04:32]SAM_PROTO_SignData done [18:04:32]FM_MakeSignedData done [18:04:32]CreateOFDProtocolMessage [18:04:32]wFMCommunicate request_size=4 [18:04:32]MH_SAM_APDU [18:04:32]CAPDU: 80 11 00 00 [18:04:32]Write to MH i2c: E2 08 00 DD 57 80 11 00 00 00 00 00 00 AE [18:04:32]Write i2c OK [18:04:32]MH_I2C_Read... [18:04:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:32]Read from MH i2c: E2 [18:04:32]MH_I2C_Read... [18:04:32]Read from MH i2c: E2 17 00 [18:04:32]MH_I2C_Read... [18:04:32]Read from MH i2c: E2 17 00 DD 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FD [18:04:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:04:32]wFMCommunicate OK [18:04:32]CreateOFDProtocolMessage done [18:04:32]OFDSenderStorePacket 29011 [18:04:32]StoreOFDPacket docnum=29011 [18:04:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E5 2C 07 01 6A 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 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 00 00 00 00 00 00 39 04 06 00 98 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 35 C9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 53 71 00 00 35 04 06 00 60 BA B3 71 89 70 C0 EF 28 77 F4 3C 17 FD [18:04:32]CheckFolder [18:04:32]dirname=/storage/ofd_packets [18:04:32]CheckFolder done [18:04:32]ProducePacketName [18:04:32]name=ofd_packets/00029011 [18:04:32]NVStorageSaveData ofd_packets/00029011 [18:04:32]File name is /storage/ofd_packets/00029011 [18:04:32]Write 301 bytes [18:04:32]NVStorageSaveData done [18:04:32]OFDSenderStorePacket done [18:04:32]KKMCreateOFDPacket done [18:04:32]NVStorageSaveData kkm_last_timestamp [18:04:32]File name is /storage/kkm_last_timestamp [18:04:32]Write 4 bytes [18:04:32]NVStorageSaveData done [18:04:32]ExternCall_PrintAddStr [18:04:32]wPrintStart [18:04:32]Write to MH i2c: 01 00 00 DE 57 35 [18:04:32]Write i2c OK [18:04:32]MH_I2C_Read... [18:04:32]Read from MH i2c: 01 [18:04:32]MH_I2C_Read... [18:04:32]Read from MH i2c: 01 07 00 [18:04:32]MH_I2C_Read... [18:04:32]Read from MH i2c: 01 07 00 DE 57 00 00 00 00 00 FF 0F 4A [18:04:32]RasterBufferAndPrint [18:04:32]line Счет N : (1)347374 [18:04:32]line ИНН: 02508201610067 [18:04:32]line Контрольно-Кассовый Чек [18:04:32]line ПРОДАЖА [18:04:32]line ТРК (МРК, ГНК) : 42 [18:04:32]line Товар: 2710124130 [18:04:32]line Аи-92-К-5 [18:04:32]line 9.340 * 64.30 [18:04:32]line = 600.56 [18:04:32]line НДС 12% НСП 1% [18:04:32]line > о реализуемом товаре [18:04:32]line ИТОГО: 600.56 [18:04:32]line НСП 1% : 5.31 [18:04:32]line НДС 12% : 63.78 [18:04:32]line Наличными: 0.00 [18:04:32]line Безнал.: 600.56 [18:04:32]line Место: АЗС № 108 "Партнер Нефть" [18:04:32]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:04:32]line СНО: Общий режим [18:04:32]line Чек 218 13.04.2024 18:04 [18:04:32]line Смена: 115 ФФД: 1.0 [18:04:32]line ЗНМ: 0300000027 [18:04:32]line РНМ: 0000138879044617 [18:04:32]line Версия ККМ: 001 [18:04:32]line Платежная система: Бакай Банк [18:04:32]line ФМ: 0000000000963154 [18:04:32]line ФД: 29011 [18:04:32]line ФПД: 106354990745968 [18:04:33]line 1/tax-web-control/client/api/v1/ticket?date=20240413T180437&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29011&fm=106354990745968&tin=02508201610067®Number=0000138879044617&sum=60056 [18:04:33]OFD Sender: Processing packet 29011 [packets to send 8, broken 7] [18:04:33]ProducePacketName [18:04:33]name=ofd_packets/00029011 [18:04:33]OFD Sender: To server: pG, [18:04:33]CommunicateWithHost lk.salyk.kg:30040 [18:04:33]ConnectInit lk.salyk.kg [18:04:33]written 0, free lines is 4095 [18:04:33]Connected sock=10 [18:04: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 31 35 34 0F 01 00 00 E5 2C 07 01 6A 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 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 00 00 00 00 00 00 39 04 06 00 98 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 35 C9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 53 71 00 00 35 04 06 00 60 BA B3 71 89 70 C0 EF 28 77 F4 3C 17 FD [18:04:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2E 44 47 00 3C 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 31 35 34 10 04 04 00 53 71 00 00 F4 03 04 00 DB 73 1A 66 B6 04 01 00 00 1B 0A D1 D6 A0 69 AA 11 [18:04:33]CommunicateWithHost err = 0 [18:04:33]CheckOFDResponse [18:04:33]1017 (14) - 77093643461234 [18:04:33]1041 (16) - 0000000000963154 [18:04:33]1040 (4) - 29011 [18:04:33]1012 (4) - 13.04.2024 12:00 [18:04:33]1206 (1) - 0 [18:04:33]OFD Sender: Remove packet 29011 [18:04:33]ProducePacketName [18:04:33]name=ofd_packets/00029011 [18:04:33]NVStorageDeleteData [18:04:33]Write to MH i2c: 01 00 00 07 58 5F [18:04:33]Write i2c OK [18:04:33]MH_I2C_Read... [18:04:33]Read from MH i2c: 01 [18:04:33]MH_I2C_Read... [18:04:33]Read from MH i2c: 01 07 00 [18:04:33]MH_I2C_Read... [18:04:33]Read from MH i2c: 01 07 00 07 58 00 00 00 00 00 E9 0C 5B [18:04:33]RasterBufferAndPrint [18:04:33]line [18:04:33]line [18:04:33]line [18:04:33]line [18:04:33]line [18:04:33]written 0, free lines is 3311 [18:04:33]MH_Cut [18:04:33]Write to MH i2c: D1 01 00 0E 58 01 38 [18:04:33]Write i2c OK [18:04:33]MH_I2C_Read... [18:04:33]Read from MH i2c: D1 [18:04:33]MH_I2C_Read... [18:04:33]Read from MH i2c: D1 01 00 [18:04:33]MH_I2C_Read... [18:04:33]Read from MH i2c: D1 01 00 0E 58 00 37 [18:04:33]Write to MH i2c: 01 00 00 0F 58 67 [18:04:33]Write i2c OK [18:04:33]MH_I2C_Read... [18:04:34]OFD Sender: No OFD packet to send [18:04:34]*** Cut start [18:04:34]*** Partial cut [18:04:34]*** CUTSNS_PIN = 1 [18:04:34]*** CUTSNS_PIN = 0 [18:04:34]*** Brake cut motor [18:04:35]Read from MH i2c: 01 [18:04:35]MH_I2C_Read... [18:04:35]*** Stop cut motor [18:04:35]*** Cut end [18:04:35]Read from MH i2c: 01 07 00 [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: 01 07 00 0F 58 00 00 00 00 00 FF 0F 7C [18:04:35]process_action close_receipt done [18:04:35]requested_data is exist [18:04:35]produce_requested_data [18:04:35]requested_item fm.sn is exist - process it [18:04:35]wFMCommunicate request_size=4 [18:04:35]MH_SAM_APDU [18:04:35]CAPDU: 80 11 00 00 [18:04:35]Write to MH i2c: E2 08 00 10 58 80 11 00 00 00 00 00 00 E2 [18:04:35]Write i2c OK [18:04:35]MH_I2C_Read... [18:04:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:35]Read from MH i2c: E2 [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: E2 17 00 [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: E2 17 00 10 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 31 [18:04:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:04:35]wFMCommunicate OK [18:04:35]requested_item fd.num is exist - process it [18:04:35]SAM_PROTO_GetFieldsCounters [18:04:35]wFMCommunicate request_size=4 [18:04:35]MH_SAM_APDU [18:04:35]CAPDU: 80 13 00 00 [18:04:35]Write to MH i2c: E2 08 00 11 58 80 13 00 00 00 00 00 00 E5 [18:04:35]Write i2c OK [18:04:35]MH_I2C_Read... [18:04:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:35]Read from MH i2c: E2 [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: E2 62 00 [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: E2 62 00 11 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 53 71 00 00 0E 04 04 00 73 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 E8 [18:04: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 53 71 00 00 0E 04 04 00 73 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 [18:04:35]wFMCommunicate OK [18:04:35]SAM_PROTO_GetFieldsCounters done [18:04:35]requested_item shift.num is exist - process it [18:04:35]requested_item shift.opened is exist - process it [18:04:35]req_shift_opened [18:04:35]FM_GetShiftState [18:04:35]SAM_PROTO_GetShiftState [18:04:35]wFMCommunicate request_size=4 [18:04:35]MH_SAM_APDU [18:04:35]CAPDU: 80 13 01 00 [18:04:35]Write to MH i2c: E2 08 00 12 58 80 13 01 00 00 00 00 00 E7 [18:04:35]Write i2c OK [18:04:35]MH_I2C_Read... [18:04:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:35]Read from MH i2c: E2 [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: E2 0E 00 [18:04:35]MH_I2C_Read... [18:04:35]Read from MH i2c: E2 0E 00 12 58 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 00 [18:04:35]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:04:35]wFMCommunicate OK [18:04:35]SAM_PROTO_GetShiftState done [18:04:35]FM_GetShiftState done [18:04:35]req_shift_opened done [18:04:35]requested_item shift.open_date is exist - process it [18:04:35]req_shift_open_date [18:04:35]req_shift_open_date done [18:04:35]produce_requested_data done [18:04:35]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29011,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [18:04:35]process_action_free close_receipt [18:04:35]json_value_free [18:04:35]json_value_free done [18:04:35]process_json_proto returns [18:04:35]Send response to host [18:04:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29011,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [18:04:35]free response buf [18:04:35]execute_script done [18:04:35]execute_script returns [18:04:35]free content buf [18:04:35]Sock 7.Close socket [18:04:35]Sock 7.Thread stoped [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:37]accept exits with 9 [18:05:37]New connection [18:05:37]New thread 3066928484 created [18:05:37]Thread 3066785124 joined [18:05:37]Waiting for new connection... [18:05:37] Sock 9.Parse request [18:05:37]Sock 9.Check first char [18:05:37]Sock 9.First char is OK [18:05:37]request: POST /json_proto HTTP/1.0 [18:05:37]Method: POST [18:05:37]URL: /json_proto [18:05:37]Method is POST - this is cgi request [18:05:37]url: /json_proto [18:05:37]query_string will be loaded in cgi processing [18:05:37]execute_cgi json_proto POST (null) [18:05:37]execute_cgi path=json_proto method=POST [18:05:37]POST find Content-Length [18:05:37]Host: 172.17.33.3:8080 [18:05:37]Content-Length: 682 [18:05:37]Content-Type: application/json [18:05:37] [18:05:37]POST finish read [18:05:37]Found Content-Length = 682 [18:05:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:05:37]execute_script... [18:05: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)347375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:05:37]POST & json_proto [18:05:37]process_json_proto [18:05:37]json parsed OK: [18:05:37]protocol is kg_v1.0 [18:05:37]action value=close_receipt [18:05:37]process_action close_receipt [18:05:37]cmd_close_receipt [18:05:37]MH_GetDate [18:05:37]Write to MH i2c: F0 00 00 13 58 5A [18:05:37]Write i2c OK [18:05:37]MH_I2C_Read... [18:05:37]Read from MH i2c: F0 [18:05:37]MH_I2C_Read... [18:05:37]Read from MH i2c: F0 09 00 [18:05:37]MH_I2C_Read... [18:05:37]Read from MH i2c: F0 09 00 13 58 00 77 C9 1A 66 23 5B 8F 65 95 [18:05:37]GetLastDocTimeStamp 1713031477 [18:05:37]current date 1713031543 [18:05:37]FM_GetShiftState [18:05:37]SAM_PROTO_GetShiftState [18:05:37]wFMCommunicate request_size=4 [18:05:37]MH_SAM_APDU [18:05:37]CAPDU: 80 13 01 00 [18:05:37]Write to MH i2c: E2 08 00 14 58 80 13 01 00 00 00 00 00 E9 [18:05:37]Write i2c OK [18:05:37]MH_I2C_Read... [18:05:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:37]Read from MH i2c: E2 [18:05:37]MH_I2C_Read... [18:05:37]Read from MH i2c: E2 0E 00 [18:05:37]MH_I2C_Read... [18:05:37]Read from MH i2c: E2 0E 00 14 58 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 02 [18:05:37]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:05:37]wFMCommunicate OK [18:05:37]SAM_PROTO_GetShiftState done [18:05:37]FM_GetShiftState done [18:05:37]opened in 1712967615 [18:05:37]opened+sec_in_day 1713054015 [18:05:37]quantity*price = 100050 [18:05:37]sum+1 = 100052 [18:05:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 219 13.04.2024 18:05 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29012 ФПД: 103215926711790 1/tax-web-control/client/api/v1/ticket?date=20240413T180543&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29012&fm=103215926711790&tin=02508201610067®Number=0000138879044617&sum=100000 [18:05:38]StoreToDocumentArchive [18:05:38]shift 115 fd 29012 [18:05:38]save to /storage/0115/doc_00029012 [18:05:38]save last doc name /storage/0115/doc_00029012 to /storage/kkm_last_doc_name [18:05:38]save OK [18:05:38]Clear old archive folders... [18:05:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:05:38]tlvbuf is 011B6F40 [18:05:38]SAM_PROTO_ClearQueue [18:05:38]wFMCommunicate request_size=4 [18:05:38]MH_SAM_APDU [18:05:38]CAPDU: 80 09 00 00 [18:05:38]Write to MH i2c: E2 08 00 21 58 80 09 00 00 00 00 00 00 EB [18:05:38]Write i2c OK [18:05:38]MH_I2C_Read... [18:05:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:38]Read from MH i2c: E2 [18:05:38]MH_I2C_Read... [18:05:38]Read from MH i2c: E2 03 00 [18:05:38]MH_I2C_Read... [18:05:38]Read from MH i2c: E2 03 00 21 58 00 90 00 ED [18:05:38]RAPDU: 90 00 [18:05:38]wFMCommunicate OK [18:05:38]SAM_PROTO_ClearQueue done [18:05:38]KKMCreateOFDPacket [18:05:38]OFDProtocolAddRootSTLVToBuf [18:05:38]FM_MakeSignedData [18:05:38]FM_MakeSignedData [18:05:38]SAM_PROTO_SignData [18:05:38]wFMCommunicate request_size=4 [18:05:38]MH_SAM_APDU [18:05:38]CAPDU: 80 0D 01 02 [18:05:38]Write to MH i2c: E2 08 00 22 58 80 0D 01 02 00 00 00 00 F3 [18:05:38]Write i2c OK [18:05:38]MH_I2C_Read... [18:05:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:38]Read from MH i2c: E2 [18:05:38]MH_I2C_Read... [18:05:38]Read from MH i2c: E2 03 00 [18:05:38]MH_I2C_Read... [18:05:38]Read from MH i2c: E2 03 00 22 58 00 90 00 EE [18:05:38]RAPDU: 90 00 [18:05:38]wFMCommunicate OK [18:05:38]wFMCommunicate request_size=255 [18:05:38]MH_SAM_APDU [18:05: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 DB 00 00 00 F4 03 04 00 77 C9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 54 71 00 00 35 04 06 00 5D [18:05:38]Write to MH i2c: E2 02 01 23 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 DB 00 00 00 F4 03 04 00 77 C9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 54 71 00 00 35 04 06 00 5D 00 00 4F [18:05:38]Write i2c OK [18:05:38]MH_I2C_Read... [18:05:39]OFD Sender: No OFD packet to send [18:05:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:39]Read from MH i2c: E2 [18:05:39]MH_I2C_Read... [18:05:39]Read from MH i2c: E2 03 00 [18:05:39]MH_I2C_Read... [18:05:39]Read from MH i2c: E2 03 00 23 58 00 90 00 EF [18:05:39]RAPDU: 90 00 [18:05:39]wFMCommunicate OK [18:05:39]wFMCommunicate request_size=10 [18:05:39]MH_SAM_APDU [18:05:39]CAPDU: 80 0D 02 02 05 DF D4 A5 95 EE [18:05:39]Write to MH i2c: E2 0D 00 24 58 80 0D 02 02 05 00 DF D4 A5 95 EE 00 00 DB [18:05:39]Write i2c OK [18:05:39]MH_I2C_Read... [18:05:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:39]Read from MH i2c: E2 [18:05:39]MH_I2C_Read... [18:05:39]Read from MH i2c: E2 03 00 [18:05:39]MH_I2C_Read... [18:05:39]Read from MH i2c: E2 03 00 24 58 00 90 00 F0 [18:05:39]RAPDU: 90 00 [18:05:39]wFMCommunicate OK [18:05:39]wFMCommunicate request_size=4 [18:05:39]MH_SAM_APDU [18:05:39]CAPDU: 80 0D 03 02 [18:05:39]Write to MH i2c: E2 08 00 25 58 80 0D 03 02 00 00 00 00 F8 [18:05:39]Write i2c OK [18:05:39]MH_I2C_Read... [18:05:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:39]Read from MH i2c: E2 [18:05:39]MH_I2C_Read... [18:05:39]Read from MH i2c: E2 0B 00 [18:05:39]MH_I2C_Read... [18:05:39]Read from MH i2c: E2 0B 00 25 58 00 4D 47 6F 39 91 22 09 EA 90 00 DB [18:05:39]RAPDU: 4D 47 6F 39 91 22 09 EA 90 00 [18:05:39]wFMCommunicate OK [18:05:39]SAM_PROTO_SignData done [18:05:39]FM_MakeSignedData done [18:05:39]CreateOFDProtocolMessage [18:05:39]wFMCommunicate request_size=4 [18:05:39]MH_SAM_APDU [18:05:39]CAPDU: 80 11 00 00 [18:05:39]Write to MH i2c: E2 08 00 26 58 80 11 00 00 00 00 00 00 F8 [18:05:39]Write i2c OK [18:05:39]MH_I2C_Read... [18:05:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:39]Read from MH i2c: E2 [18:05:39]MH_I2C_Read... [18:05:39]Read from MH i2c: E2 17 00 [18:05:39]MH_I2C_Read... [18:05:39]Read from MH i2c: E2 17 00 26 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 47 [18:05:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:05:39]wFMCommunicate OK [18:05:39]CreateOFDProtocolMessage done [18:05:39]OFDSenderStorePacket 29012 [18:05:39]StoreOFDPacket docnum=29012 [18:05:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D5 C4 07 01 43 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 DB 00 00 00 F4 03 04 00 77 C9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 54 71 00 00 35 04 06 00 5D DF D4 A5 95 EE 4D 47 6F 39 91 22 09 EA [18:05:39]CheckFolder [18:05:39]dirname=/storage/ofd_packets [18:05:39]CheckFolder done [18:05:39]ProducePacketName [18:05:39]name=ofd_packets/00029012 [18:05:39]NVStorageSaveData ofd_packets/00029012 [18:05:39]File name is /storage/ofd_packets/00029012 [18:05:39]Write 301 bytes [18:05:39]NVStorageSaveData done [18:05:39]OFDSenderStorePacket done [18:05:39]KKMCreateOFDPacket done [18:05:39]NVStorageSaveData kkm_last_timestamp [18:05:39]File name is /storage/kkm_last_timestamp [18:05:39]Write 4 bytes [18:05:39]NVStorageSaveData done [18:05:39]ExternCall_PrintAddStr [18:05:39]wPrintStart [18:05:39]Write to MH i2c: 01 00 00 27 58 7F [18:05:39]Write i2c OK [18:05:39]MH_I2C_Read... [18:05:39]Read from MH i2c: 01 [18:05:39]MH_I2C_Read... [18:05:39]Read from MH i2c: 01 07 00 [18:05:39]MH_I2C_Read... [18:05:39]Read from MH i2c: 01 07 00 27 58 00 00 00 00 00 FF 0F 94 [18:05:39]RasterBufferAndPrint [18:05:39]line Счет N : (1)347375 [18:05:39]line ИНН: 02508201610067 [18:05:39]line Контрольно-Кассовый Чек [18:05:39]line ПРОДАЖА [18:05:39]line ТРК (МРК, ГНК) : 23 [18:05:39]line Товар: 2710124130 [18:05:39]line Аи-92-К-5 [18:05:39]line 15.560 * 64.30 [18:05:39]line = 1000.51 [18:05:39]line НДС 12% НСП 1% [18:05:39]line > о реализуемом товаре [18:05:39]line ОКРУГЛЕНИЕ: -0.51 [18:05:39]line ИТОГО: 1000.00 [18:05:39]line Внесено: 1000.00 [18:05:39]line СДАЧА: 0.00 [18:05:39]line НСП 1% : 8.85 [18:05:39]line НДС 12% : 106.25 [18:05:39]line Наличными: 1000.00 [18:05:39]line Безнал.: 0.00 [18:05:39]line Место: АЗС № 108 "Партнер Нефть" [18:05:39]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:05:39]line СНО: Общий режим [18:05:39]line Чек 219 13.04.2024 18:05 [18:05:39]line Смена: 115 ФФД: 1.0 [18:05:39]line ЗНМ: 0300000027 [18:05:39]line РНМ: 0000138879044617 [18:05:39]line Версия ККМ: 001 [18:05:39]line ФМ: 0000000000963154 [18:05:39]line ФД: 29012 [18:05:39]line ФПД: 103215926711790 [18:05:39]line 1/tax-web-control/client/api/v1/ticket?date=20240413T180543&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29012&fm=103215926711790&tin=02508201610067®Number=0000138879044617&sum=100000 [18:05:39]OFD Sender: Processing packet 29012 [packets to send 8, broken 7] [18:05:39]ProducePacketName [18:05:39]name=ofd_packets/00029012 [18:05:39]OFD Sender: To server: pG, [18:05:39]CommunicateWithHost lk.salyk.kg:30040 [18:05:39]ConnectInit lk.salyk.kg [18:05:39]written 0, free lines is 4095 [18:05:39]Connected sock=10 [18:05: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 31 35 34 0F 01 00 00 D5 C4 07 01 43 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 DB 00 00 00 F4 03 04 00 77 C9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 54 71 00 00 35 04 06 00 5D DF D4 A5 95 EE 4D 47 6F 39 91 22 09 EA [18:05:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 40 EC 47 00 C8 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 54 71 00 00 F4 03 04 00 1D 74 1A 66 B6 04 01 00 00 A7 42 B9 44 2D 1B CE 17 [18:05:39]CommunicateWithHost err = 0 [18:05:39]CheckOFDResponse [18:05:39]1017 (14) - 77093643461234 [18:05:39]1041 (16) - 0000000000963154 [18:05:39]1040 (4) - 29012 [18:05:39]1012 (4) - 13.04.2024 12:01 [18:05:39]1206 (1) - 0 [18:05:39]OFD Sender: Remove packet 29012 [18:05:39]ProducePacketName [18:05:39]name=ofd_packets/00029012 [18:05:39]NVStorageDeleteData [18:05:40]Write to MH i2c: 01 00 00 51 58 A9 [18:05:40]Write i2c OK [18:05:40]MH_I2C_Read... [18:05:40]Read from MH i2c: 01 [18:05:40]MH_I2C_Read... [18:05:40]Read from MH i2c: 01 07 00 [18:05:40]MH_I2C_Read... [18:05:40]Read from MH i2c: 01 07 00 51 58 00 00 00 00 00 CE 0C 8A [18:05:40]RasterBufferAndPrint [18:05:40]line [18:05:40]line [18:05:40]line [18:05:40]line [18:05:40]line [18:05:40]written 0, free lines is 3285 [18:05:40]MH_Cut [18:05:40]Write to MH i2c: D1 01 00 58 58 01 82 [18:05:40]Write i2c OK [18:05:40]MH_I2C_Read... [18:05:40]Read from MH i2c: D1 [18:05:40]MH_I2C_Read... [18:05:40]Read from MH i2c: D1 01 00 [18:05:40]MH_I2C_Read... [18:05:40]Read from MH i2c: D1 01 00 58 58 00 81 [18:05:40]Write to MH i2c: 01 00 00 59 58 B1 [18:05:40]Write i2c OK [18:05:40]MH_I2C_Read... [18:05:40]OFD Sender: No OFD packet to send [18:05:40]*** Cut start [18:05:40]*** Partial cut [18:05:40]*** CUTSNS_PIN = 1 [18:05:40]*** CUTSNS_PIN = 0 [18:05:41]*** Brake cut motor [18:05:41]Read from MH i2c: 01 [18:05:41]MH_I2C_Read... [18:05:41]*** Stop cut motor [18:05:41]*** Cut end [18:05:41]Read from MH i2c: 01 07 00 [18:05:41]MH_I2C_Read... [18:05:41]Read from MH i2c: 01 07 00 59 58 00 00 00 00 00 FF 0F C6 [18:05:41]process_action close_receipt done [18:05:41]requested_data is exist [18:05:41]produce_requested_data [18:05:41]requested_item fm.sn is exist - process it [18:05:41]wFMCommunicate request_size=4 [18:05:41]MH_SAM_APDU [18:05:41]CAPDU: 80 11 00 00 [18:05:41]Write to MH i2c: E2 08 00 5A 58 80 11 00 00 00 00 00 00 2C [18:05:41]Write i2c OK [18:05:41]MH_I2C_Read... [18:05:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:41]Read from MH i2c: E2 [18:05:41]MH_I2C_Read... [18:05:41]Read from MH i2c: E2 17 00 [18:05:41]MH_I2C_Read... [18:05:41]Read from MH i2c: E2 17 00 5A 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7B [18:05:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:05:41]wFMCommunicate OK [18:05:41]requested_item fd.num is exist - process it [18:05:41]SAM_PROTO_GetFieldsCounters [18:05:41]wFMCommunicate request_size=4 [18:05:41]MH_SAM_APDU [18:05:41]CAPDU: 80 13 00 00 [18:05:41]Write to MH i2c: E2 08 00 5B 58 80 13 00 00 00 00 00 00 2F [18:05:41]Write i2c OK [18:05:41]MH_I2C_Read... [18:05:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:41]Read from MH i2c: E2 [18:05:41]MH_I2C_Read... [18:05:41]Read from MH i2c: E2 62 00 [18:05:41]MH_I2C_Read... [18:05:41]Read from MH i2c: E2 62 00 5B 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 54 71 00 00 0E 04 04 00 73 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 36 [18:05: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 54 71 00 00 0E 04 04 00 73 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 [18:05:41]wFMCommunicate OK [18:05:41]SAM_PROTO_GetFieldsCounters done [18:05:41]requested_item shift.num is exist - process it [18:05:41]requested_item shift.opened is exist - process it [18:05:41]req_shift_opened [18:05:41]FM_GetShiftState [18:05:41]SAM_PROTO_GetShiftState [18:05:41]wFMCommunicate request_size=4 [18:05:41]MH_SAM_APDU [18:05:41]CAPDU: 80 13 01 00 [18:05:41]Write to MH i2c: E2 08 00 5C 58 80 13 01 00 00 00 00 00 31 [18:05:41]Write i2c OK [18:05:41]MH_I2C_Read... [18:05:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:41]Read from MH i2c: E2 [18:05:41]MH_I2C_Read... [18:05:41]Read from MH i2c: E2 0E 00 [18:05:41]MH_I2C_Read... [18:05:41]Read from MH i2c: E2 0E 00 5C 58 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 4A [18:05:41]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:05:41]wFMCommunicate OK [18:05:41]SAM_PROTO_GetShiftState done [18:05:41]FM_GetShiftState done [18:05:41]req_shift_opened done [18:05:41]requested_item shift.open_date is exist - process it [18:05:41]req_shift_open_date [18:05:41]req_shift_open_date done [18:05:41]produce_requested_data done [18:05:41]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29012,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [18:05:41]process_action_free close_receipt [18:05:41]json_value_free [18:05:41]json_value_free done [18:05:41]process_json_proto returns [18:05:41]Send response to host [18:05:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29012,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [18:05:41]free response buf [18:05:41]execute_script done [18:05:41]execute_script returns [18:05:41]free content buf [18:05:41]Sock 9.Close socket [18:05:41]Sock 9.Thread stoped [18:05:45]OFD Sender: No OFD packet to send [18:05:50]OFD Sender: No OFD packet to send [18:05:55]OFD Sender: No OFD packet to send [18:06:00]OFD Sender: No OFD packet to send [18:06:05]OFD Sender: No OFD packet to send [18:06:10]OFD Sender: No OFD packet to send [18:06:15]OFD Sender: No OFD packet to send [18:06:20]OFD Sender: No OFD packet to send [18:06:25]OFD Sender: No OFD packet to send [18:06:30]OFD Sender: No OFD packet to send [18:06:35]OFD Sender: No OFD packet to send [18:06:40]OFD Sender: No OFD packet to send [18:06:45]OFD Sender: No OFD packet to send [18:06:50]OFD Sender: No OFD packet to send [18:06:55]OFD Sender: No OFD packet to send [18:07:00]OFD Sender: No OFD packet to send [18:07:05]OFD Sender: No OFD packet to send [18:07:10]OFD Sender: No OFD packet to send [18:07:15]OFD Sender: No OFD packet to send [18:07:20]OFD Sender: No OFD packet to send [18:07:25]OFD Sender: No OFD packet to send [18:07:30]OFD Sender: No OFD packet to send [18:07:35]OFD Sender: No OFD packet to send [18:07:40]OFD Sender: No OFD packet to send [18:07:45]OFD Sender: No OFD packet to send [18:07:50]OFD Sender: No OFD packet to send [18:07:55]OFD Sender: No OFD packet to send [18:08:00]OFD Sender: No OFD packet to send [18:08:05]OFD Sender: No OFD packet to send [18:08:10]OFD Sender: No OFD packet to send [18:08:15]OFD Sender: No OFD packet to send [18:08:20]OFD Sender: No OFD packet to send [18:08:25]OFD Sender: No OFD packet to send [18:08:30]OFD Sender: No OFD packet to send [18:08:35]OFD Sender: No OFD packet to send [18:08:40]OFD Sender: No OFD packet to send [18:08:45]OFD Sender: No OFD packet to send [18:08:50]OFD Sender: No OFD packet to send [18:08:55]OFD Sender: No OFD packet to send [18:09:00]OFD Sender: No OFD packet to send [18:09:05]OFD Sender: No OFD packet to send [18:09:10]OFD Sender: No OFD packet to send [18:09:15]OFD Sender: No OFD packet to send [18:09:20]OFD Sender: No OFD packet to send [18:09:25]OFD Sender: No OFD packet to send [18:09:30]OFD Sender: No OFD packet to send [18:09:35]OFD Sender: No OFD packet to send [18:09:40]OFD Sender: No OFD packet to send [18:09:45]OFD Sender: No OFD packet to send [18:09:50]OFD Sender: No OFD packet to send [18:09:53]accept exits with 7 [18:09:53]New connection [18:09:53]New thread 3066785124 created [18:09:53]Thread 3066928484 joined [18:09:53]Waiting for new connection... [18:09:53] Sock 7.Parse request [18:09:53]Sock 7.Check first char [18:09:53]Sock 7.First char is OK [18:09:53]request: POST /json_proto HTTP/1.0 [18:09:53]Method: POST [18:09:53]URL: /json_proto [18:09:53]Method is POST - this is cgi request [18:09:53]url: /json_proto [18:09:53]query_string will be loaded in cgi processing [18:09:53]execute_cgi json_proto POST (null) [18:09:53]execute_cgi path=json_proto method=POST [18:09:53]POST find Content-Length [18:09:53]Host: 172.17.33.3:8080 [18:09:53]Content-Length: 682 [18:09:53]Content-Type: application/json [18:09:53] [18:09:53]POST finish read [18:09:53]Found Content-Length = 682 [18:09:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347376", "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" : 64.30, "quantity" : 18.670, "sum" : 1200.48, "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" ] } } [18:09:53]execute_script... [18:09: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)347376", "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" : 64.30, "quantity" : 18.670, "sum" : 1200.48, "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" ] } } [18:09:53]POST & json_proto [18:09:53]process_json_proto [18:09:53]json parsed OK: [18:09:53]protocol is kg_v1.0 [18:09:53]action value=close_receipt [18:09:53]process_action close_receipt [18:09:53]cmd_close_receipt [18:09:53]MH_GetDate [18:09:53]Write to MH i2c: F0 00 00 5D 58 A4 [18:09:53]Write i2c OK [18:09:53]MH_I2C_Read... [18:09:53]Read from MH i2c: F0 [18:09:53]MH_I2C_Read... [18:09:53]Read from MH i2c: F0 09 00 [18:09:53]MH_I2C_Read... [18:09:53]Read from MH i2c: F0 09 00 5D 58 00 77 CA 1A 66 23 5B 8F 65 E0 [18:09:53]GetLastDocTimeStamp 1713031543 [18:09:53]current date 1713031799 [18:09:53]FM_GetShiftState [18:09:53]SAM_PROTO_GetShiftState [18:09:53]wFMCommunicate request_size=4 [18:09:53]MH_SAM_APDU [18:09:53]CAPDU: 80 13 01 00 [18:09:53]Write to MH i2c: E2 08 00 5E 58 80 13 01 00 00 00 00 00 33 [18:09:53]Write i2c OK [18:09:53]MH_I2C_Read... [18:09:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:53]Read from MH i2c: E2 [18:09:53]MH_I2C_Read... [18:09:53]Read from MH i2c: E2 0E 00 [18:09:53]MH_I2C_Read... [18:09:53]Read from MH i2c: E2 0E 00 5E 58 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 4C [18:09:53]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:09:53]wFMCommunicate OK [18:09:53]SAM_PROTO_GetShiftState done [18:09:53]FM_GetShiftState done [18:09:53]opened in 1712967615 [18:09:53]opened+sec_in_day 1713054015 [18:09:53]quantity*price = 120048 [18:09:53]sum+1 = 120049 [18:09:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 220 13.04.2024 18:09 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29013 ФПД: 45245874834422 1/tax-web-control/client/api/v1/ticket?date=20240413T180959&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29013&fm=45245874834422&tin=02508201610067®Number=0000138879044617&sum=120000 [18:09:54]StoreToDocumentArchive [18:09:54]shift 115 fd 29013 [18:09:54]save to /storage/0115/doc_00029013 [18:09:54]save last doc name /storage/0115/doc_00029013 to /storage/kkm_last_doc_name [18:09:54]save OK [18:09:54]Clear old archive folders... [18:09:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:09:54]tlvbuf is 011B6FA0 [18:09:54]SAM_PROTO_ClearQueue [18:09:54]wFMCommunicate request_size=4 [18:09:54]MH_SAM_APDU [18:09:54]CAPDU: 80 09 00 00 [18:09:54]Write to MH i2c: E2 08 00 6B 58 80 09 00 00 00 00 00 00 35 [18:09:54]Write i2c OK [18:09:54]MH_I2C_Read... [18:09:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:09:54]Read from MH i2c: E2 [18:09:54]MH_I2C_Read... [18:09:54]Read from MH i2c: E2 03 00 [18:09:54]MH_I2C_Read... [18:09:54]Read from MH i2c: E2 03 00 6B 58 00 90 00 37 [18:09:54]RAPDU: 90 00 [18:09:54]wFMCommunicate OK [18:09:54]SAM_PROTO_ClearQueue done [18:09:54]KKMCreateOFDPacket [18:09:54]OFDProtocolAddRootSTLVToBuf [18:09:54]FM_MakeSignedData [18:09:54]FM_MakeSignedData [18:09:54]SAM_PROTO_SignData [18:09:54]wFMCommunicate request_size=4 [18:09:54]MH_SAM_APDU [18:09:54]CAPDU: 80 0D 01 02 [18:09:54]Write to MH i2c: E2 08 00 6C 58 80 0D 01 02 00 00 00 00 3D [18:09:54]Write i2c OK [18:09:54]MH_I2C_Read... [18:09:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:09:54]Read from MH i2c: E2 [18:09:54]MH_I2C_Read... [18:09:54]Read from MH i2c: E2 03 00 [18:09:54]MH_I2C_Read... [18:09:54]Read from MH i2c: E2 03 00 6C 58 00 90 00 38 [18:09:54]RAPDU: 90 00 [18:09:54]wFMCommunicate OK [18:09:54]wFMCommunicate request_size=255 [18:09:54]MH_SAM_APDU [18:09: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 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 77 CA 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 55 71 00 00 35 04 06 00 29 [18:09:54]Write to MH i2c: E2 02 01 6D 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 77 CA 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 55 71 00 00 35 04 06 00 29 00 00 E6 [18:09:54]Write i2c OK [18:09:54]MH_I2C_Read... [18:09:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:54]Read from MH i2c: E2 [18:09:54]MH_I2C_Read... [18:09:54]Read from MH i2c: E2 03 00 [18:09:54]MH_I2C_Read... [18:09:54]Read from MH i2c: E2 03 00 6D 58 00 90 00 39 [18:09:54]RAPDU: 90 00 [18:09:54]wFMCommunicate OK [18:09:54]wFMCommunicate request_size=10 [18:09:54]MH_SAM_APDU [18:09:54]CAPDU: 80 0D 02 02 05 26 A0 4C 0B F6 [18:09:54]Write to MH i2c: E2 0D 00 6E 58 80 0D 02 02 05 00 26 A0 4C 0B F6 00 00 5D [18:09:54]Write i2c OK [18:09:54]MH_I2C_Read... [18:09:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:54]Read from MH i2c: E2 [18:09:54]MH_I2C_Read... [18:09:54]Read from MH i2c: E2 03 00 [18:09:54]MH_I2C_Read... [18:09:54]Read from MH i2c: E2 03 00 6E 58 00 90 00 3A [18:09:54]RAPDU: 90 00 [18:09:54]wFMCommunicate OK [18:09:54]wFMCommunicate request_size=4 [18:09:54]MH_SAM_APDU [18:09:54]CAPDU: 80 0D 03 02 [18:09:54]Write to MH i2c: E2 08 00 6F 58 80 0D 03 02 00 00 00 00 42 [18:09:54]Write i2c OK [18:09:54]MH_I2C_Read... [18:09:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:09:54]Read from MH i2c: E2 [18:09:54]MH_I2C_Read... [18:09:54]Read from MH i2c: E2 0B 00 [18:09:54]MH_I2C_Read... [18:09:54]Read from MH i2c: E2 0B 00 6F 58 00 66 7A 20 A0 7C 7F D9 5C 90 00 13 [18:09:54]RAPDU: 66 7A 20 A0 7C 7F D9 5C 90 00 [18:09:54]wFMCommunicate OK [18:09:54]SAM_PROTO_SignData done [18:09:54]FM_MakeSignedData done [18:09:54]CreateOFDProtocolMessage [18:09:54]wFMCommunicate request_size=4 [18:09:54]MH_SAM_APDU [18:09:54]CAPDU: 80 11 00 00 [18:09:54]Write to MH i2c: E2 08 00 70 58 80 11 00 00 00 00 00 00 42 [18:09:54]Write i2c OK [18:09:54]MH_I2C_Read... [18:09:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:54]Read from MH i2c: E2 [18:09:54]MH_I2C_Read... [18:09:54]Read from MH i2c: E2 17 00 [18:09:54]MH_I2C_Read... [18:09:54]Read from MH i2c: E2 17 00 70 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 91 [18:09:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:09:54]wFMCommunicate OK [18:09:54]CreateOFDProtocolMessage done [18:09:54]OFDSenderStorePacket 29013 [18:09:54]StoreOFDPacket docnum=29013 [18:09:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D8 18 07 01 38 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 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 77 CA 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 55 71 00 00 35 04 06 00 29 26 A0 4C 0B F6 66 7A 20 A0 7C 7F D9 5C [18:09:54]CheckFolder [18:09:54]dirname=/storage/ofd_packets [18:09:54]CheckFolder done [18:09:54]ProducePacketName [18:09:54]name=ofd_packets/00029013 [18:09:54]NVStorageSaveData ofd_packets/00029013 [18:09:54]File name is /storage/ofd_packets/00029013 [18:09:54]Write 301 bytes [18:09:54]NVStorageSaveData done [18:09:54]OFDSenderStorePacket done [18:09:54]KKMCreateOFDPacket done [18:09:54]NVStorageSaveData kkm_last_timestamp [18:09:54]File name is /storage/kkm_last_timestamp [18:09:54]Write 4 bytes [18:09:54]NVStorageSaveData done [18:09:54]OFD Sender: Processing packet 29013 [packets to send 8, broken 7] [18:09:54]ProducePacketName [18:09:54]name=ofd_packets/00029013 [18:09:54]OFD Sender: To server: pG, [18:09:54]CommunicateWithHost lk.salyk.kg:30040 [18:09:54]ConnectInit lk.salyk.kg [18:09:54]ExternCall_PrintAddStr [18:09:54]wPrintStart [18:09:55]Write to MH i2c: 01 00 00 71 58 C9 [18:09:55]Write i2c OK [18:09:55]MH_I2C_Read... [18:09:55]Read from MH i2c: 01 [18:09:55]MH_I2C_Read... [18:09:55]Read from MH i2c: 01 07 00 [18:09:55]MH_I2C_Read... [18:09:55]Read from MH i2c: 01 07 00 71 58 00 00 00 00 00 FF 0F DE [18:09:55]RasterBufferAndPrint [18:09:55]line Счет N : (1)347376 [18:09:55]line ИНН: 02508201610067 [18:09:55]line Контрольно-Кассовый Чек [18:09:55]line ПРОДАЖА [18:09:55]line ТРК (МРК, ГНК) : 42 [18:09:55]line Товар: 2710124130 [18:09:55]line Аи-92-К-5 [18:09:55]line 18.670 * 64.30 [18:09:55]line = 1200.48 [18:09:55]line НДС 12% НСП 1% [18:09:55]line > о реализуемом товаре [18:09:55]line ОКРУГЛЕНИЕ: -0.48 [18:09:55]line ИТОГО: 1200.00 [18:09:55]line Внесено: 1200.00 [18:09:55]line СДАЧА: 0.00 [18:09:55]line НСП 1% : 10.62 [18:09:55]line НДС 12% : 127.48 [18:09:55]line Наличными: 1200.00 [18:09:55]line Безнал.: 0.00 [18:09:55]line Место: АЗС № 108 "Партнер Нефть" [18:09:55]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:09:55]line СНО: Общий режим [18:09:55]line Чек 220 13.04.2024 18:09 [18:09:55]line Смена: 115 ФФД: 1.0 [18:09:55]line ЗНМ: 0300000027 [18:09:55]line РНМ: 0000138879044617 [18:09:55]line Версия ККМ: 001 [18:09:55]line ФМ: 0000000000963154 [18:09:55]line ФД: 29013 [18:09:55]line ФПД: 45245874834422 [18:09:55]line 1/tax-web-control/client/api/v1/ticket?date=20240413T180959&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29013&fm=45245874834422&tin=02508201610067®Number=0000138879044617&sum=120000 [18:09:55]Connected sock=11 [18:09: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 31 35 34 0F 01 00 00 D8 18 07 01 38 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 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 77 CA 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 55 71 00 00 35 04 06 00 29 26 A0 4C 0B F6 66 7A 20 A0 7C 7F D9 5C [18:09:55]written 0, free lines is 4095 [18:09:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 29 DA 47 00 8C 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 31 35 34 10 04 04 00 55 71 00 00 F4 03 04 00 1D 75 1A 66 B6 04 01 00 00 61 05 26 6D 1D 4A B7 A3 [18:09:55]CommunicateWithHost err = 0 [18:09:55]CheckOFDResponse [18:09:55]1017 (14) - 77093643461234 [18:09:55]1041 (16) - 0000000000963154 [18:09:55]1040 (4) - 29013 [18:09:55]1012 (4) - 13.04.2024 12:05 [18:09:55]1206 (1) - 0 [18:09:55]OFD Sender: Remove packet 29013 [18:09:55]ProducePacketName [18:09:55]name=ofd_packets/00029013 [18:09:55]NVStorageDeleteData [18:09:55]Write to MH i2c: 01 00 00 9B 58 F3 [18:09:55]Write i2c OK [18:09:55]MH_I2C_Read... [18:09:55]Read from MH i2c: 01 [18:09:55]MH_I2C_Read... [18:09:55]Read from MH i2c: 01 07 00 [18:09:55]MH_I2C_Read... [18:09:55]Read from MH i2c: 01 07 00 9B 58 00 00 00 00 00 C8 0C CE [18:09:55]RasterBufferAndPrint [18:09:55]line [18:09:55]line [18:09:55]line [18:09:55]line [18:09:55]line [18:09:55]written 0, free lines is 3277 [18:09:55]MH_Cut [18:09:55]Write to MH i2c: D1 01 00 A2 58 01 CC [18:09:55]Write i2c OK [18:09:55]MH_I2C_Read... [18:09:55]Read from MH i2c: D1 [18:09:55]MH_I2C_Read... [18:09:55]Read from MH i2c: D1 01 00 [18:09:55]MH_I2C_Read... [18:09:55]Read from MH i2c: D1 01 00 A2 58 00 CB [18:09:55]Write to MH i2c: 01 00 00 A3 58 FB [18:09:55]Write i2c OK [18:09:55]MH_I2C_Read... [18:09:56]OFD Sender: No OFD packet to send [18:09:56]*** Cut start [18:09:56]*** Partial cut [18:09:56]*** CUTSNS_PIN = 1 [18:09:56]*** CUTSNS_PIN = 0 [18:09:56]*** Brake cut motor [18:09:57]Read from MH i2c: 01 [18:09:57]MH_I2C_Read... [18:09:57]*** Stop cut motor [18:09:57]*** Cut end [18:09:57]Read from MH i2c: 01 07 00 [18:09:57]MH_I2C_Read... [18:09:57]Read from MH i2c: 01 07 00 A3 58 00 00 00 00 00 FF 0F 10 [18:09:57]process_action close_receipt done [18:09:57]requested_data is exist [18:09:57]produce_requested_data [18:09:57]requested_item fm.sn is exist - process it [18:09:57]wFMCommunicate request_size=4 [18:09:57]MH_SAM_APDU [18:09:57]CAPDU: 80 11 00 00 [18:09:57]Write to MH i2c: E2 08 00 A4 58 80 11 00 00 00 00 00 00 76 [18:09:57]Write i2c OK [18:09:57]MH_I2C_Read... [18:09:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:57]Read from MH i2c: E2 [18:09:57]MH_I2C_Read... [18:09:57]Read from MH i2c: E2 17 00 [18:09:57]MH_I2C_Read... [18:09:57]Read from MH i2c: E2 17 00 A4 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C5 [18:09:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:09:57]wFMCommunicate OK [18:09:57]requested_item fd.num is exist - process it [18:09:57]SAM_PROTO_GetFieldsCounters [18:09:57]wFMCommunicate request_size=4 [18:09:57]MH_SAM_APDU [18:09:57]CAPDU: 80 13 00 00 [18:09:57]Write to MH i2c: E2 08 00 A5 58 80 13 00 00 00 00 00 00 79 [18:09:57]Write i2c OK [18:09:57]MH_I2C_Read... [18:09:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:09:57]Read from MH i2c: E2 [18:09:57]MH_I2C_Read... [18:09:57]Read from MH i2c: E2 62 00 [18:09:57]MH_I2C_Read... [18:09:57]Read from MH i2c: E2 62 00 A5 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 55 71 00 00 0E 04 04 00 73 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 84 [18:09: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 55 71 00 00 0E 04 04 00 73 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 [18:09:57]wFMCommunicate OK [18:09:57]SAM_PROTO_GetFieldsCounters done [18:09:57]requested_item shift.num is exist - process it [18:09:57]requested_item shift.opened is exist - process it [18:09:57]req_shift_opened [18:09:57]FM_GetShiftState [18:09:57]SAM_PROTO_GetShiftState [18:09:57]wFMCommunicate request_size=4 [18:09:57]MH_SAM_APDU [18:09:57]CAPDU: 80 13 01 00 [18:09:57]Write to MH i2c: E2 08 00 A6 58 80 13 01 00 00 00 00 00 7B [18:09:57]Write i2c OK [18:09:57]MH_I2C_Read... [18:09:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:57]Read from MH i2c: E2 [18:09:57]MH_I2C_Read... [18:09:57]Read from MH i2c: E2 0E 00 [18:09:57]MH_I2C_Read... [18:09:57]Read from MH i2c: E2 0E 00 A6 58 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 94 [18:09:57]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:09:57]wFMCommunicate OK [18:09:57]SAM_PROTO_GetShiftState done [18:09:57]FM_GetShiftState done [18:09:57]req_shift_opened done [18:09:57]requested_item shift.open_date is exist - process it [18:09:57]req_shift_open_date [18:09:57]req_shift_open_date done [18:09:57]produce_requested_data done [18:09:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29013,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [18:09:57]process_action_free close_receipt [18:09:57]json_value_free [18:09:57]json_value_free done [18:09:57]process_json_proto returns [18:09:57]Send response to host [18:09:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29013,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [18:09:57]free response buf [18:09:57]execute_script done [18:09:57]execute_script returns [18:09:57]free content buf [18:09:57]Sock 7.Close socket [18:09:57]Sock 7.Thread stoped [18:10:01]OFD Sender: No OFD packet to send [18:10:06]OFD Sender: No OFD packet to send [18:10:11]OFD Sender: No OFD packet to send [18:10:16]OFD Sender: No OFD packet to send [18:10:21]OFD Sender: No OFD packet to send [18:10:26]OFD Sender: No OFD packet to send [18:10:31]OFD Sender: No OFD packet to send [18:10:36]OFD Sender: No OFD packet to send [18:10:41]OFD Sender: No OFD packet to send [18:10:46]OFD Sender: No OFD packet to send [18:10:51]OFD Sender: No OFD packet to send [18:10:56]OFD Sender: No OFD packet to send [18:11:01]OFD Sender: No OFD packet to send [18:11:06]OFD Sender: No OFD packet to send [18:11:11]OFD Sender: No OFD packet to send [18:11:16]OFD Sender: No OFD packet to send [18:11:21]OFD Sender: No OFD packet to send [18:11:26]OFD Sender: No OFD packet to send [18:11:31]OFD Sender: No OFD packet to send [18:11:36]OFD Sender: No OFD packet to send [18:11:41]OFD Sender: No OFD packet to send [18:11:46]OFD Sender: No OFD packet to send [18:11:51]OFD Sender: No OFD packet to send [18:11:56]OFD Sender: No OFD packet to send [18:12:01]OFD Sender: No OFD packet to send [18:12:06]OFD Sender: No OFD packet to send [18:12:11]OFD Sender: No OFD packet to send [18:12:16]OFD Sender: No OFD packet to send [18:12:21]OFD Sender: No OFD packet to send [18:12:25]accept exits with 9 [18:12:25]New connection [18:12:25]New thread 3066928484 created [18:12:25]Thread 3066785124 joined [18:12:25]Waiting for new connection... [18:12:25] Sock 9.Parse request [18:12:25]Sock 9.Check first char [18:12:25]Sock 9.First char is OK [18:12:25]request: POST /json_proto HTTP/1.0 [18:12:25]Method: POST [18:12:25]URL: /json_proto [18:12:25]Method is POST - this is cgi request [18:12:25]url: /json_proto [18:12:25]query_string will be loaded in cgi processing [18:12:25]execute_cgi json_proto POST (null) [18:12:25]execute_cgi path=json_proto method=POST [18:12:25]POST find Content-Length [18:12:25]Host: 172.17.33.3:8080 [18:12:25]Content-Length: 674 [18:12:25]Content-Type: application/json [18:12:25] [18:12:25]POST finish read [18:12:25]Found Content-Length = 674 [18:12:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347377", "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" : 72.40, "quantity" : 6.910, "sum" : 500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:25]execute_script... [18:12:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347377", "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" : 72.40, "quantity" : 6.910, "sum" : 500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:25]POST & json_proto [18:12:25]process_json_proto [18:12:25]json parsed OK: [18:12:25]protocol is kg_v1.0 [18:12:25]action value=close_receipt [18:12:25]process_action close_receipt [18:12:25]cmd_close_receipt [18:12:25]MH_GetDate [18:12:25]Write to MH i2c: F0 00 00 A7 58 EE [18:12:25]Write i2c OK [18:12:25]MH_I2C_Read... [18:12:25]Read from MH i2c: F0 [18:12:25]MH_I2C_Read... [18:12:25]Read from MH i2c: F0 09 00 [18:12:25]MH_I2C_Read... [18:12:25]Read from MH i2c: F0 09 00 A7 58 00 0F CB 1A 66 23 5B 8F 65 C3 [18:12:25]GetLastDocTimeStamp 1713031799 [18:12:25]current date 1713031951 [18:12:25]FM_GetShiftState [18:12:25]SAM_PROTO_GetShiftState [18:12:25]wFMCommunicate request_size=4 [18:12:25]MH_SAM_APDU [18:12:25]CAPDU: 80 13 01 00 [18:12:25]Write to MH i2c: E2 08 00 A8 58 80 13 01 00 00 00 00 00 7D [18:12:25]Write i2c OK [18:12:25]MH_I2C_Read... [18:12:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:25]Read from MH i2c: E2 [18:12:25]MH_I2C_Read... [18:12:25]Read from MH i2c: E2 0E 00 [18:12:25]MH_I2C_Read... [18:12:25]Read from MH i2c: E2 0E 00 A8 58 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 96 [18:12:25]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:12:25]wFMCommunicate OK [18:12:25]SAM_PROTO_GetShiftState done [18:12:25]FM_GetShiftState done [18:12:25]opened in 1712967615 [18:12:25]opened+sec_in_day 1713054015 [18:12:25]quantity*price = 50028 [18:12:25]sum+1 = 50029 [18:12:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 221 13.04.2024 18:12 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29014 ФПД: 48986875325576 1/tax-web-control/client/api/v1/ticket?date=20240413T181231&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29014&fm=48986875325576&tin=02508201610067®Number=0000138879044617&sum=50000 [18:12:26]StoreToDocumentArchive [18:12:26]shift 115 fd 29014 [18:12:26]save to /storage/0115/doc_00029014 [18:12:26]save last doc name /storage/0115/doc_00029014 to /storage/kkm_last_doc_name [18:12:26]save OK [18:12:26]Clear old archive folders... [18:12:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:12:26]tlvbuf is 0121A140 [18:12:26]SAM_PROTO_ClearQueue [18:12:26]wFMCommunicate request_size=4 [18:12:26]MH_SAM_APDU [18:12:26]CAPDU: 80 09 00 00 [18:12:26]Write to MH i2c: E2 08 00 B5 58 80 09 00 00 00 00 00 00 7F [18:12:26]Write i2c OK [18:12:26]MH_I2C_Read... [18:12:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:26]Read from MH i2c: E2 [18:12:26]MH_I2C_Read... [18:12:26]Read from MH i2c: E2 03 00 [18:12:26]MH_I2C_Read... [18:12:26]Read from MH i2c: E2 03 00 B5 58 00 90 00 81 [18:12:26]RAPDU: 90 00 [18:12:26]wFMCommunicate OK [18:12:26]SAM_PROTO_ClearQueue done [18:12:26]KKMCreateOFDPacket [18:12:26]OFDProtocolAddRootSTLVToBuf [18:12:26]FM_MakeSignedData [18:12:26]FM_MakeSignedData [18:12:26]SAM_PROTO_SignData [18:12:26]wFMCommunicate request_size=4 [18:12:26]MH_SAM_APDU [18:12:26]CAPDU: 80 0D 01 02 [18:12:26]Write to MH i2c: E2 08 00 B6 58 80 0D 01 02 00 00 00 00 87 [18:12:26]Write i2c OK [18:12:26]MH_I2C_Read... [18:12:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:26]Read from MH i2c: E2 [18:12:26]MH_I2C_Read... [18:12:26]Read from MH i2c: E2 03 00 [18:12:26]MH_I2C_Read... [18:12:26]Read from MH i2c: E2 03 00 B6 58 00 90 00 82 [18:12:26]RAPDU: 90 00 [18:12:26]wFMCommunicate OK [18:12:26]wFMCommunicate request_size=255 [18:12:26]MH_SAM_APDU [18:12:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 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 0F CB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 56 71 00 00 35 04 06 00 2C 8D A5 4D [18:12:26]Write to MH i2c: E2 02 01 B7 58 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 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 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 0F CB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 56 71 00 00 35 04 06 00 2C 8D A5 4D 00 00 7F [18:12:26]Write i2c OK [18:12:26]MH_I2C_Read... [18:12:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:27]Read from MH i2c: E2 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: E2 03 00 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: E2 03 00 B7 58 00 90 00 83 [18:12:27]RAPDU: 90 00 [18:12:27]wFMCommunicate OK [18:12:27]wFMCommunicate request_size=7 [18:12:27]MH_SAM_APDU [18:12:27]CAPDU: 80 0D 02 02 02 6C 88 [18:12:27]Write to MH i2c: E2 0A 00 B8 58 80 0D 02 02 02 00 6C 88 00 00 82 [18:12:27]Write i2c OK [18:12:27]MH_I2C_Read... [18:12:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:27]Read from MH i2c: E2 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: E2 03 00 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: E2 03 00 B8 58 00 90 00 84 [18:12:27]RAPDU: 90 00 [18:12:27]wFMCommunicate OK [18:12:27]wFMCommunicate request_size=4 [18:12:27]MH_SAM_APDU [18:12:27]CAPDU: 80 0D 03 02 [18:12:27]Write to MH i2c: E2 08 00 B9 58 80 0D 03 02 00 00 00 00 8C [18:12:27]Write i2c OK [18:12:27]MH_I2C_Read... [18:12:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:27]Read from MH i2c: E2 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: E2 0B 00 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: E2 0B 00 B9 58 00 B4 25 6F 3C DD C3 A1 AE 90 00 00 [18:12:27]RAPDU: B4 25 6F 3C DD C3 A1 AE 90 00 [18:12:27]wFMCommunicate OK [18:12:27]SAM_PROTO_SignData done [18:12:27]FM_MakeSignedData done [18:12:27]CreateOFDProtocolMessage [18:12:27]wFMCommunicate request_size=4 [18:12:27]MH_SAM_APDU [18:12:27]CAPDU: 80 11 00 00 [18:12:27]Write to MH i2c: E2 08 00 BA 58 80 11 00 00 00 00 00 00 8C [18:12:27]Write i2c OK [18:12:27]MH_I2C_Read... [18:12:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:27]Read from MH i2c: E2 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: E2 17 00 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: E2 17 00 BA 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DB [18:12:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:12:27]wFMCommunicate OK [18:12:27]CreateOFDProtocolMessage done [18:12:27]OFDSenderStorePacket 29014 [18:12:27]StoreOFDPacket docnum=29014 [18:12:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 02 4A 04 01 0E 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 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 0F CB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 56 71 00 00 35 04 06 00 2C 8D A5 4D 6C 88 B4 25 6F 3C DD C3 A1 AE [18:12:27]CheckFolder [18:12:27]dirname=/storage/ofd_packets [18:12:27]CheckFolder done [18:12:27]ProducePacketName [18:12:27]name=ofd_packets/00029014 [18:12:27]NVStorageSaveData ofd_packets/00029014 [18:12:27]File name is /storage/ofd_packets/00029014 [18:12:27]Write 298 bytes [18:12:27]NVStorageSaveData done [18:12:27]OFDSenderStorePacket done [18:12:27]KKMCreateOFDPacket done [18:12:27]NVStorageSaveData kkm_last_timestamp [18:12:27]File name is /storage/kkm_last_timestamp [18:12:27]Write 4 bytes [18:12:27]NVStorageSaveData done [18:12:27]ExternCall_PrintAddStr [18:12:27]wPrintStart [18:12:27]Write to MH i2c: 01 00 00 BB 58 13 [18:12:27]Write i2c OK [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: 01 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: 01 07 00 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: 01 07 00 BB 58 00 00 00 00 00 FF 0F 28 [18:12:27]RasterBufferAndPrint [18:12:27]line Счет N : (1)347377 [18:12:27]line ИНН: 02508201610067 [18:12:27]line Контрольно-Кассовый Чек [18:12:27]line ПРОДАЖА [18:12:27]line ТРК (МРК, ГНК) : 61 [18:12:27]line Товар: 2710194210 [18:12:27]line ДТ-К-5 [18:12:27]line 6.910 * 72.40 [18:12:27]line = 500.28 [18:12:27]line НДС 12% НСП 1% [18:12:27]line > о реализуемом товаре [18:12:27]line ОКРУГЛЕНИЕ: -0.28 [18:12:27]line ИТОГО: 500.00 [18:12:27]line Внесено: 500.00 [18:12:27]line СДАЧА: 0.00 [18:12:27]line НСП 1% : 4.43 [18:12:27]line НДС 12% : 53.13 [18:12:27]line Наличными: 500.00 [18:12:27]line Безнал.: 0.00 [18:12:27]line Место: АЗС № 108 "Партнер Нефть" [18:12:27]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:12:27]line СНО: Общий режим [18:12:27]line Чек 221 13.04.2024 18:12 [18:12:27]line Смена: 115 ФФД: 1.0 [18:12:27]line ЗНМ: 0300000027 [18:12:27]line РНМ: 0000138879044617 [18:12:27]line Версия ККМ: 001 [18:12:27]line ФМ: 0000000000963154 [18:12:27]line ФД: 29014 [18:12:27]line ФПД: 48986875325576 [18:12:27]line 1/tax-web-control/client/api/v1/ticket?date=20240413T181231&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29014&fm=48986875325576&tin=02508201610067®Number=0000138879044617&sum=50000 [18:12:27]OFD Sender: Processing packet 29014 [packets to send 8, broken 7] [18:12:27]ProducePacketName [18:12:27]name=ofd_packets/00029014 [18:12:27]OFD Sender: To server: pG, [18:12:27]CommunicateWithHost lk.salyk.kg:30040 [18:12:27]ConnectInit lk.salyk.kg [18:12:27]written 0, free lines is 4095 [18:12:27]Connected sock=10 [18:12:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 02 4A 04 01 0E 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 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 0F CB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 56 71 00 00 35 04 06 00 2C 8D A5 4D 6C 88 B4 25 6F 3C DD C3 A1 AE [18:12:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 8C E5 47 00 06 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 31 35 34 10 04 04 00 56 71 00 00 F4 03 04 00 B5 75 1A 66 B6 04 01 00 00 D6 3A EC FC 5A BA 6C 56 [18:12:27]CommunicateWithHost err = 0 [18:12:27]CheckOFDResponse [18:12:27]1017 (14) - 77093643461234 [18:12:27]1041 (16) - 0000000000963154 [18:12:27]1040 (4) - 29014 [18:12:27]1012 (4) - 13.04.2024 12:08 [18:12:27]1206 (1) - 0 [18:12:27]OFD Sender: Remove packet 29014 [18:12:27]ProducePacketName [18:12:27]name=ofd_packets/00029014 [18:12:27]NVStorageDeleteData [18:12:27]Write to MH i2c: 01 00 00 E5 58 3D [18:12:27]Write i2c OK [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: 01 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: 01 07 00 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: 01 07 00 E5 58 00 00 00 00 00 BC 0C 0C [18:12:27]RasterBufferAndPrint [18:12:27]line [18:12:27]line [18:12:27]line [18:12:27]line [18:12:27]line [18:12:27]written 0, free lines is 3266 [18:12:27]MH_Cut [18:12:27]Write to MH i2c: D1 01 00 EC 58 01 16 [18:12:27]Write i2c OK [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: D1 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: D1 01 00 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: D1 01 00 EC 58 00 15 [18:12:27]Write to MH i2c: 01 00 00 ED 58 45 [18:12:27]Write i2c OK [18:12:27]MH_I2C_Read... [18:12:28]OFD Sender: No OFD packet to send [18:12:28]*** Cut start [18:12:28]*** Partial cut [18:12:28]*** CUTSNS_PIN = 1 [18:12:28]*** CUTSNS_PIN = 0 [18:12:29]*** Brake cut motor [18:12:29]Read from MH i2c: 01 [18:12:29]MH_I2C_Read... [18:12:29]*** Stop cut motor [18:12:29]*** Cut end [18:12:29]Read from MH i2c: 01 07 00 [18:12:29]MH_I2C_Read... [18:12:29]Read from MH i2c: 01 07 00 ED 58 00 00 00 00 00 FF 0F 5A [18:12:29]process_action close_receipt done [18:12:29]requested_data is exist [18:12:29]produce_requested_data [18:12:29]requested_item fm.sn is exist - process it [18:12:29]wFMCommunicate request_size=4 [18:12:29]MH_SAM_APDU [18:12:29]CAPDU: 80 11 00 00 [18:12:29]Write to MH i2c: E2 08 00 EE 58 80 11 00 00 00 00 00 00 C0 [18:12:29]Write i2c OK [18:12:29]MH_I2C_Read... [18:12:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:29]Read from MH i2c: E2 [18:12:29]MH_I2C_Read... [18:12:29]Read from MH i2c: E2 17 00 [18:12:29]MH_I2C_Read... [18:12:29]Read from MH i2c: E2 17 00 EE 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0F [18:12:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:12:29]wFMCommunicate OK [18:12:29]requested_item fd.num is exist - process it [18:12:29]SAM_PROTO_GetFieldsCounters [18:12:29]wFMCommunicate request_size=4 [18:12:29]MH_SAM_APDU [18:12:29]CAPDU: 80 13 00 00 [18:12:29]Write to MH i2c: E2 08 00 EF 58 80 13 00 00 00 00 00 00 C3 [18:12:29]Write i2c OK [18:12:29]MH_I2C_Read... [18:12:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:29]Read from MH i2c: E2 [18:12:29]MH_I2C_Read... [18:12:29]Read from MH i2c: E2 62 00 [18:12:29]MH_I2C_Read... [18:12:29]Read from MH i2c: E2 62 00 EF 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 56 71 00 00 0E 04 04 00 73 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 D2 [18:12:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 56 71 00 00 0E 04 04 00 73 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 [18:12:29]wFMCommunicate OK [18:12:29]SAM_PROTO_GetFieldsCounters done [18:12:29]requested_item shift.num is exist - process it [18:12:29]requested_item shift.opened is exist - process it [18:12:29]req_shift_opened [18:12:29]FM_GetShiftState [18:12:29]SAM_PROTO_GetShiftState [18:12:29]wFMCommunicate request_size=4 [18:12:29]MH_SAM_APDU [18:12:29]CAPDU: 80 13 01 00 [18:12:29]Write to MH i2c: E2 08 00 F0 58 80 13 01 00 00 00 00 00 C5 [18:12:29]Write i2c OK [18:12:29]MH_I2C_Read... [18:12:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:29]Read from MH i2c: E2 [18:12:29]MH_I2C_Read... [18:12:29]Read from MH i2c: E2 0E 00 [18:12:29]MH_I2C_Read... [18:12:29]Read from MH i2c: E2 0E 00 F0 58 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 DE [18:12:29]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:12:29]wFMCommunicate OK [18:12:29]SAM_PROTO_GetShiftState done [18:12:29]FM_GetShiftState done [18:12:29]req_shift_opened done [18:12:29]requested_item shift.open_date is exist - process it [18:12:29]req_shift_open_date [18:12:29]req_shift_open_date done [18:12:29]produce_requested_data done [18:12:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29014,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [18:12:29]process_action_free close_receipt [18:12:29]json_value_free [18:12:29]json_value_free done [18:12:29]process_json_proto returns [18:12:29]Send response to host [18:12:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29014,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [18:12:29]free response buf [18:12:29]execute_script done [18:12:29]execute_script returns [18:12:29]free content buf [18:12:29]Sock 9.Close socket [18:12:29]Sock 9.Thread stoped [18:12:33]OFD Sender: No OFD packet to send [18:12:38]OFD Sender: No OFD packet to send [18:12:43]OFD Sender: No OFD packet to send [18:12:48]OFD Sender: No OFD packet to send [18:12:53]OFD Sender: No OFD packet to send [18:12:58]OFD Sender: No OFD packet to send [18:13:03]OFD Sender: No OFD packet to send [18:13:08]OFD Sender: No OFD packet to send [18:13:13]OFD Sender: No OFD packet to send [18:13:18]OFD Sender: No OFD packet to send [18:13:23]OFD Sender: No OFD packet to send [18:13:28]OFD Sender: No OFD packet to send [18:13:33]OFD Sender: No OFD packet to send [18:13:38]OFD Sender: No OFD packet to send [18:13:43]OFD Sender: No OFD packet to send [18:13:48]OFD Sender: No OFD packet to send [18:13:53]OFD Sender: No OFD packet to send [18:13:58]OFD Sender: No OFD packet to send [18:14:03]OFD Sender: No OFD packet to send [18:14:08]OFD Sender: No OFD packet to send [18:14:13]OFD Sender: No OFD packet to send [18:14:18]OFD Sender: No OFD packet to send [18:14:23]OFD Sender: No OFD packet to send [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:58]OFD Sender: No OFD packet to send [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:38]OFD Sender: No OFD packet to send [18:17:43]OFD Sender: No OFD packet to send [18:17:48]OFD Sender: No OFD packet to send [18:17:53]OFD Sender: No OFD packet to send [18:17:58]OFD Sender: No OFD packet to send [18:18:03]OFD Sender: No OFD packet to send [18:18:08]OFD Sender: No OFD packet to send [18:18:13]OFD Sender: No OFD packet to send [18:18:18]OFD Sender: No OFD packet to send [18:18:23]OFD Sender: No OFD packet to send [18:18:28]OFD Sender: No OFD packet to send [18:18:33]OFD Sender: No OFD packet to send [18:18:38]OFD Sender: No OFD packet to send [18:18:43]OFD Sender: No OFD packet to send [18:18:48]OFD Sender: No OFD packet to send [18:18:53]OFD Sender: No OFD packet to send [18:18:58]OFD Sender: No OFD packet to send [18:19:03]OFD Sender: No OFD packet to send [18:19:08]OFD Sender: No OFD packet to send [18:19:13]OFD Sender: No OFD packet to send [18:19:18]OFD Sender: No OFD packet to send [18:19:23]OFD Sender: No OFD packet to send [18:19:28]OFD Sender: No OFD packet to send [18:19:33]OFD Sender: No OFD packet to send [18:19:38]OFD Sender: No OFD packet to send [18:19:43]OFD Sender: No OFD packet to send [18:19:48]OFD Sender: No OFD packet to send [18:19:53]OFD Sender: No OFD packet to send [18:19:58]OFD Sender: No OFD packet to send [18:20:03]OFD Sender: No OFD packet to send [18:20:08]OFD Sender: No OFD packet to send [18:20:13]OFD Sender: No OFD packet to send [18:20:18]OFD Sender: No OFD packet to send [18:20:23]OFD Sender: No OFD packet to send [18:20:28]OFD Sender: No OFD packet to send [18:20:33]OFD Sender: No OFD packet to send [18:20:38]OFD Sender: No OFD packet to send [18:20:43]OFD Sender: No OFD packet to send [18:20:48]OFD Sender: No OFD packet to send [18:20:53]OFD Sender: No OFD packet to send [18:20:58]OFD Sender: No OFD packet to send [18:21:03]OFD Sender: No OFD packet to send [18:21:08]OFD Sender: No OFD packet to send [18:21:13]OFD Sender: No OFD packet to send [18:21:18]OFD Sender: No OFD packet to send [18:21:23]OFD Sender: No OFD packet to send [18:21:28]OFD Sender: No OFD packet to send [18:21:33]OFD Sender: No OFD packet to send [18:21:38]OFD Sender: No OFD packet to send [18:21:43]OFD Sender: No OFD packet to send [18:21:48]OFD Sender: No OFD packet to send [18:21:53]OFD Sender: No OFD packet to send [18:21:58]OFD Sender: No OFD packet to send [18:22:03]OFD Sender: No OFD packet to send [18:22:08]OFD Sender: No OFD packet to send [18:22:13]OFD Sender: No OFD packet to send [18:22:18]OFD Sender: No OFD packet to send [18:22:23]OFD Sender: No OFD packet to send [18:22:28]OFD Sender: No OFD packet to send [18:22:33]OFD Sender: No OFD packet to send [18:22:38]OFD Sender: No OFD packet to send [18:22:43]OFD Sender: No OFD packet to send [18:22:48]OFD Sender: No OFD packet to send [18:22:53]OFD Sender: No OFD packet to send [18:22:58]OFD Sender: No OFD packet to send [18:23:03]OFD Sender: No OFD packet to send [18:23:08]OFD Sender: No OFD packet to send [18:23:13]OFD Sender: No OFD packet to send [18:23:18]OFD Sender: No OFD packet to send [18:23:23]OFD Sender: No OFD packet to send [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:28]OFD Sender: No OFD packet to send [18:25:33]OFD Sender: No OFD packet to send [18:25:38]OFD Sender: No OFD packet to send [18:25:43]OFD Sender: No OFD packet to send [18:25:48]OFD Sender: No OFD packet to send [18:25:53]OFD Sender: No OFD packet to send [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:59]OFD Sender: No OFD packet to send [18:27:04]OFD Sender: No OFD packet to send [18:27:09]OFD Sender: No OFD packet to send [18:27:14]OFD Sender: No OFD packet to send [18:27:19]OFD Sender: No OFD packet to send [18:27:24]OFD Sender: No OFD packet to send [18:27:29]OFD Sender: No OFD packet to send [18:27:34]OFD Sender: No OFD packet to send [18:27:39]OFD Sender: No OFD packet to send [18:27:44]OFD Sender: No OFD packet to send [18:27:49]OFD Sender: No OFD packet to send [18:27:54]OFD Sender: No OFD packet to send [18:27:59]OFD Sender: No OFD packet to send [18:28:04]OFD Sender: No OFD packet to send [18:28:09]OFD Sender: No OFD packet to send [18:28:14]OFD Sender: No OFD packet to send [18:28:19]OFD Sender: No OFD packet to send [18:28:24]OFD Sender: No OFD packet to send [18:28:29]OFD Sender: No OFD packet to send [18:28:34]OFD Sender: No OFD packet to send [18:28:39]OFD Sender: No OFD packet to send [18:28:42]accept exits with 7 [18:28:42]New connection [18:28:42]New thread 3066785124 created [18:28:42]Thread 3066928484 joined [18:28:42]Waiting for new connection... [18:28:42] Sock 7.Parse request [18:28:42]Sock 7.Check first char [18:28:42]Sock 7.First char is OK [18:28:42]request: POST /json_proto HTTP/1.0 [18:28:42]Method: POST [18:28:42]URL: /json_proto [18:28:42]Method is POST - this is cgi request [18:28:42]url: /json_proto [18:28:42]query_string will be loaded in cgi processing [18:28:42]execute_cgi json_proto POST (null) [18:28:42]execute_cgi path=json_proto method=POST [18:28:42]POST find Content-Length [18:28:42]Host: 172.17.33.3:8080 [18:28:42]Content-Length: 637 [18:28:42]Content-Type: application/json [18:28:42] [18:28:42]POST finish read [18:28:42]Found Content-Length = 637 [18:28:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347378", "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" : 72.40, "quantity" : 12.500, "sum" : 905.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 905.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:42]execute_script... [18:28: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)347378", "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" : 72.40, "quantity" : 12.500, "sum" : 905.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 905.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:42]POST & json_proto [18:28:42]process_json_proto [18:28:42]json parsed OK: [18:28:42]protocol is kg_v1.0 [18:28:42]action value=close_receipt [18:28:42]process_action close_receipt [18:28:42]cmd_close_receipt [18:28:42]MH_GetDate [18:28:42]Write to MH i2c: F0 00 00 F1 58 38 [18:28:42]Write i2c OK [18:28:42]MH_I2C_Read... [18:28:42]Read from MH i2c: F0 [18:28:42]MH_I2C_Read... [18:28:42]Read from MH i2c: F0 09 00 [18:28:42]MH_I2C_Read... [18:28:42]Read from MH i2c: F0 09 00 F1 58 00 E0 CE 1A 66 23 5B 8F 65 E1 [18:28:42]GetLastDocTimeStamp 1713031951 [18:28:42]current date 1713032928 [18:28:42]FM_GetShiftState [18:28:42]SAM_PROTO_GetShiftState [18:28:42]wFMCommunicate request_size=4 [18:28:42]MH_SAM_APDU [18:28:42]CAPDU: 80 13 01 00 [18:28:42]Write to MH i2c: E2 08 00 F2 58 80 13 01 00 00 00 00 00 C7 [18:28:42]Write i2c OK [18:28:42]MH_I2C_Read... [18:28:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:42]Read from MH i2c: E2 [18:28:42]MH_I2C_Read... [18:28:42]Read from MH i2c: E2 0E 00 [18:28:42]MH_I2C_Read... [18:28:42]Read from MH i2c: E2 0E 00 F2 58 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 E0 [18:28:42]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:28:42]wFMCommunicate OK [18:28:42]SAM_PROTO_GetShiftState done [18:28:42]FM_GetShiftState done [18:28:42]opened in 1712967615 [18:28:42]opened+sec_in_day 1713054015 [18:28:42]quantity*price = 90500 [18:28:42]sum+1 = 90501 [18:28:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 905.00 НСП 1% : 8.01 НДС 12% : 96.11 Наличными: 905.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 222 13.04.2024 18:28 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29015 ФПД: 247220927626357 1/tax-web-control/client/api/v1/ticket?date=20240413T182848&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29015&fm=247220927626357&tin=02508201610067®Number=0000138879044617&sum=90500 [18:28:43]StoreToDocumentArchive [18:28:43]shift 115 fd 29015 [18:28:43]save to /storage/0115/doc_00029015 [18:28:43]save last doc name /storage/0115/doc_00029015 to /storage/kkm_last_doc_name [18:28:43]save OK [18:28:43]Clear old archive folders... [18:28:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:28:43]tlvbuf is 0121A160 [18:28:43]SAM_PROTO_ClearQueue [18:28:43]wFMCommunicate request_size=4 [18:28:43]MH_SAM_APDU [18:28:43]CAPDU: 80 09 00 00 [18:28:43]Write to MH i2c: E2 08 00 FF 58 80 09 00 00 00 00 00 00 C9 [18:28:43]Write i2c OK [18:28:43]MH_I2C_Read... [18:28:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:28:43]Read from MH i2c: E2 [18:28:43]MH_I2C_Read... [18:28:43]Read from MH i2c: E2 03 00 [18:28:43]MH_I2C_Read... [18:28:43]Read from MH i2c: E2 03 00 FF 58 00 90 00 CB [18:28:43]RAPDU: 90 00 [18:28:43]wFMCommunicate OK [18:28:43]SAM_PROTO_ClearQueue done [18:28:43]KKMCreateOFDPacket [18:28:43]OFDProtocolAddRootSTLVToBuf [18:28:43]FM_MakeSignedData [18:28:43]FM_MakeSignedData [18:28:43]SAM_PROTO_SignData [18:28:43]wFMCommunicate request_size=4 [18:28:43]MH_SAM_APDU [18:28:43]CAPDU: 80 0D 01 02 [18:28:43]Write to MH i2c: E2 08 00 00 59 80 0D 01 02 00 00 00 00 D2 [18:28:43]Write i2c OK [18:28:43]MH_I2C_Read... [18:28:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:28:43]Read from MH i2c: E2 [18:28:43]MH_I2C_Read... [18:28:43]Read from MH i2c: E2 03 00 [18:28:43]MH_I2C_Read... [18:28:43]Read from MH i2c: E2 03 00 00 59 00 90 00 CD [18:28:43]RAPDU: 90 00 [18:28:43]wFMCommunicate OK [18:28:43]wFMCommunicate request_size=255 [18:28:43]MH_SAM_APDU [18:28: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 D4 30 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 84 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 25 00 00 00 00 07 04 06 00 84 61 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 E0 CE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 57 71 00 00 35 04 06 00 E0 D8 9B 92 [18:28:43]Write to MH i2c: E2 02 01 01 59 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 30 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 84 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 25 00 00 00 00 07 04 06 00 84 61 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 E0 CE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 57 71 00 00 35 04 06 00 E0 D8 9B 92 00 00 66 [18:28:43]Write i2c OK [18:28:43]MH_I2C_Read... [18:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:43]Read from MH i2c: E2 [18:28:43]MH_I2C_Read... [18:28:43]Read from MH i2c: E2 03 00 [18:28:43]MH_I2C_Read... [18:28:43]Read from MH i2c: E2 03 00 01 59 00 90 00 CE [18:28:43]RAPDU: 90 00 [18:28:43]wFMCommunicate OK [18:28:43]wFMCommunicate request_size=7 [18:28:43]MH_SAM_APDU [18:28:43]CAPDU: 80 0D 02 02 02 7C 75 [18:28:43]Write to MH i2c: E2 0A 00 02 59 80 0D 02 02 02 00 7C 75 00 00 CA [18:28:43]Write i2c OK [18:28:43]MH_I2C_Read... [18:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:43]Read from MH i2c: E2 [18:28:43]MH_I2C_Read... [18:28:43]Read from MH i2c: E2 03 00 [18:28:43]MH_I2C_Read... [18:28:43]Read from MH i2c: E2 03 00 02 59 00 90 00 CF [18:28:43]RAPDU: 90 00 [18:28:43]wFMCommunicate OK [18:28:43]wFMCommunicate request_size=4 [18:28:43]MH_SAM_APDU [18:28:43]CAPDU: 80 0D 03 02 [18:28:43]Write to MH i2c: E2 08 00 03 59 80 0D 03 02 00 00 00 00 D7 [18:28:43]Write i2c OK [18:28:43]MH_I2C_Read... [18:28:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:28:43]Read from MH i2c: E2 [18:28:43]MH_I2C_Read... [18:28:43]Read from MH i2c: E2 0B 00 [18:28:43]MH_I2C_Read... [18:28:43]Read from MH i2c: E2 0B 00 03 59 00 B6 FD 97 A4 5B 44 1E 4C 90 00 CF [18:28:43]RAPDU: B6 FD 97 A4 5B 44 1E 4C 90 00 [18:28:43]wFMCommunicate OK [18:28:43]SAM_PROTO_SignData done [18:28:43]FM_MakeSignedData done [18:28:43]CreateOFDProtocolMessage [18:28:43]wFMCommunicate request_size=4 [18:28:43]MH_SAM_APDU [18:28:43]CAPDU: 80 11 00 00 [18:28:43]Write to MH i2c: E2 08 00 04 59 80 11 00 00 00 00 00 00 D7 [18:28:43]Write i2c OK [18:28:43]MH_I2C_Read... [18:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:43]Read from MH i2c: E2 [18:28:43]MH_I2C_Read... [18:28:43]Read from MH i2c: E2 17 00 [18:28:43]MH_I2C_Read... [18:28:43]Read from MH i2c: E2 17 00 04 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 26 [18:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:28:43]wFMCommunicate OK [18:28:43]CreateOFDProtocolMessage done [18:28:43]OFDSenderStorePacket 29015 [18:28:43]StoreOFDPacket docnum=29015 [18:28:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 D2 E2 04 01 7E 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 30 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 84 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 25 00 00 00 00 07 04 06 00 84 61 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 E0 CE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 57 71 00 00 35 04 06 00 E0 D8 9B 92 7C 75 B6 FD 97 A4 5B 44 1E 4C [18:28:43]CheckFolder [18:28:43]dirname=/storage/ofd_packets [18:28:43]CheckFolder done [18:28:43]ProducePacketName [18:28:43]name=ofd_packets/00029015 [18:28:43]NVStorageSaveData ofd_packets/00029015 [18:28:43]File name is /storage/ofd_packets/00029015 [18:28:43]Write 298 bytes [18:28:43]NVStorageSaveData done [18:28:43]OFDSenderStorePacket done [18:28:43]KKMCreateOFDPacket done [18:28:43]NVStorageSaveData kkm_last_timestamp [18:28:43]File name is /storage/kkm_last_timestamp [18:28:43]Write 4 bytes [18:28:43]NVStorageSaveData done [18:28:43]ExternCall_PrintAddStr [18:28:43]wPrintStart [18:28:43]Write to MH i2c: 01 00 00 05 59 5E [18:28:43]Write i2c OK [18:28:43]MH_I2C_Read... [18:28:43]Read from MH i2c: 01 [18:28:43]MH_I2C_Read... [18:28:43]Read from MH i2c: 01 07 00 [18:28:43]MH_I2C_Read... [18:28:43]Read from MH i2c: 01 07 00 05 59 00 00 00 00 00 FF 0F 73 [18:28:43]RasterBufferAndPrint [18:28:43]line Счет N : (1)347378 [18:28:43]line ИНН: 02508201610067 [18:28:43]line Контрольно-Кассовый Чек [18:28:43]line ПРОДАЖА [18:28:43]line ТРК (МРК, ГНК) : 51 [18:28:43]line Товар: 2710194210 [18:28:43]line ДТ-К-5 [18:28:43]line 12.500 * 72.40 [18:28:43]line = 905.00 [18:28:43]line НДС 12% НСП 1% [18:28:43]line > о реализуемом товаре [18:28:43]line ИТОГО: 905.00 [18:28:43]line НСП 1% : 8.01 [18:28:43]line НДС 12% : 96.11 [18:28:43]line Наличными: 905.00 [18:28:43]line Безнал.: 0.00 [18:28:43]line Место: АЗС № 108 "Партнер Нефть" [18:28:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:28:43]line СНО: Общий режим [18:28:43]line Чек 222 13.04.2024 18:28 [18:28:43]line Смена: 115 ФФД: 1.0 [18:28:43]line ЗНМ: 0300000027 [18:28:43]line РНМ: 0000138879044617 [18:28:43]line Версия ККМ: 001 [18:28:43]line ФМ: 0000000000963154 [18:28:43]line ФД: 29015 [18:28:43]line ФПД: 247220927626357 [18:28:43]line 1/tax-web-control/client/api/v1/ticket?date=20240413T182848&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29015&fm=247220927626357&tin=02508201610067®Number=0000138879044617&sum=90500 [18:28:44]OFD Sender: Processing packet 29015 [packets to send 8, broken 7] [18:28:44]ProducePacketName [18:28:44]name=ofd_packets/00029015 [18:28:44]OFD Sender: To server: pG, [18:28:44]CommunicateWithHost lk.salyk.kg:30040 [18:28:44]ConnectInit lk.salyk.kg [18:28:44]written 0, free lines is 4095 [18:28:44]Connected sock=10 [18:28: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 31 35 34 0C 01 00 00 D2 E2 04 01 7E 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 30 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 84 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 25 00 00 00 00 07 04 06 00 84 61 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 E0 CE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 57 71 00 00 35 04 06 00 E0 D8 9B 92 7C 75 B6 FD 97 A4 5B 44 1E 4C [18:28:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B5 A4 47 00 C5 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 31 35 34 10 04 04 00 57 71 00 00 F4 03 04 00 86 79 1A 66 B6 04 01 00 00 72 C6 85 C5 A3 40 7B EA [18:28:44]CommunicateWithHost err = 0 [18:28:44]CheckOFDResponse [18:28:44]1017 (14) - 77093643461234 [18:28:44]1041 (16) - 0000000000963154 [18:28:44]1040 (4) - 29015 [18:28:44]1012 (4) - 13.04.2024 12:24 [18:28:44]1206 (1) - 0 [18:28:44]OFD Sender: Remove packet 29015 [18:28:44]ProducePacketName [18:28:44]name=ofd_packets/00029015 [18:28:44]NVStorageDeleteData [18:28:44]Write to MH i2c: 01 00 00 2C 59 85 [18:28:44]Write i2c OK [18:28:44]MH_I2C_Read... [18:28:44]Read from MH i2c: 01 [18:28:44]MH_I2C_Read... [18:28:44]Read from MH i2c: 01 07 00 [18:28:44]MH_I2C_Read... [18:28:44]Read from MH i2c: 01 07 00 2C 59 00 00 00 00 00 FE 0C 96 [18:28:44]RasterBufferAndPrint [18:28:44]line [18:28:44]line [18:28:44]line [18:28:44]line [18:28:44]line [18:28:44]written 0, free lines is 3332 [18:28:44]MH_Cut [18:28:44]Write to MH i2c: D1 01 00 33 59 01 5E [18:28:44]Write i2c OK [18:28:44]MH_I2C_Read... [18:28:44]Read from MH i2c: D1 [18:28:44]MH_I2C_Read... [18:28:44]Read from MH i2c: D1 01 00 [18:28:44]MH_I2C_Read... [18:28:44]Read from MH i2c: D1 01 00 33 59 00 5D [18:28:44]Write to MH i2c: 01 00 00 34 59 8D [18:28:44]Write i2c OK [18:28:44]MH_I2C_Read... [18:28:44]OFD Sender: No OFD packet to send [18:28:45]*** Cut start [18:28:45]*** Partial cut [18:28:45]*** CUTSNS_PIN = 1 [18:28:45]*** CUTSNS_PIN = 0 [18:28:45]*** Brake cut motor [18:28:46]Read from MH i2c: 01 [18:28:46]MH_I2C_Read... [18:28:46]*** Stop cut motor [18:28:46]*** Cut end [18:28:46]Read from MH i2c: 01 07 00 [18:28:46]MH_I2C_Read... [18:28:46]Read from MH i2c: 01 07 00 34 59 00 00 00 00 00 FF 0F A2 [18:28:46]process_action close_receipt done [18:28:46]requested_data is exist [18:28:46]produce_requested_data [18:28:46]requested_item fm.sn is exist - process it [18:28:46]wFMCommunicate request_size=4 [18:28:46]MH_SAM_APDU [18:28:46]CAPDU: 80 11 00 00 [18:28:46]Write to MH i2c: E2 08 00 35 59 80 11 00 00 00 00 00 00 08 [18:28:46]Write i2c OK [18:28:46]MH_I2C_Read... [18:28:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:46]Read from MH i2c: E2 [18:28:46]MH_I2C_Read... [18:28:46]Read from MH i2c: E2 17 00 [18:28:46]MH_I2C_Read... [18:28:46]Read from MH i2c: E2 17 00 35 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 57 [18:28:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:28:46]wFMCommunicate OK [18:28:46]requested_item fd.num is exist - process it [18:28:46]SAM_PROTO_GetFieldsCounters [18:28:46]wFMCommunicate request_size=4 [18:28:46]MH_SAM_APDU [18:28:46]CAPDU: 80 13 00 00 [18:28:46]Write to MH i2c: E2 08 00 36 59 80 13 00 00 00 00 00 00 0B [18:28:46]Write i2c OK [18:28:46]MH_I2C_Read... [18:28:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:46]Read from MH i2c: E2 [18:28:46]MH_I2C_Read... [18:28:46]Read from MH i2c: E2 62 00 [18:28:46]MH_I2C_Read... [18:28:46]Read from MH i2c: E2 62 00 36 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 57 71 00 00 0E 04 04 00 73 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 1E [18:28: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 57 71 00 00 0E 04 04 00 73 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 [18:28:46]wFMCommunicate OK [18:28:46]SAM_PROTO_GetFieldsCounters done [18:28:46]requested_item shift.num is exist - process it [18:28:46]requested_item shift.opened is exist - process it [18:28:46]req_shift_opened [18:28:46]FM_GetShiftState [18:28:46]SAM_PROTO_GetShiftState [18:28:46]wFMCommunicate request_size=4 [18:28:46]MH_SAM_APDU [18:28:46]CAPDU: 80 13 01 00 [18:28:46]Write to MH i2c: E2 08 00 37 59 80 13 01 00 00 00 00 00 0D [18:28:46]Write i2c OK [18:28:46]MH_I2C_Read... [18:28:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:46]Read from MH i2c: E2 [18:28:46]MH_I2C_Read... [18:28:46]Read from MH i2c: E2 0E 00 [18:28:46]MH_I2C_Read... [18:28:46]Read from MH i2c: E2 0E 00 37 59 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 26 [18:28:46]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:28:46]wFMCommunicate OK [18:28:46]SAM_PROTO_GetShiftState done [18:28:46]FM_GetShiftState done [18:28:46]req_shift_opened done [18:28:46]requested_item shift.open_date is exist - process it [18:28:46]req_shift_open_date [18:28:46]req_shift_open_date done [18:28:46]produce_requested_data done [18:28:46]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29015,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [18:28:46]process_action_free close_receipt [18:28:46]json_value_free [18:28:46]json_value_free done [18:28:46]process_json_proto returns [18:28:46]Send response to host [18:28:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29015,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [18:28:46]free response buf [18:28:46]execute_script done [18:28:46]execute_script returns [18:28:46]free content buf [18:28:46]Sock 7.Close socket [18:28:46]Sock 7.Thread stoped [18:28:49]OFD Sender: No OFD packet to send [18:28:54]OFD Sender: No OFD packet to send [18:28:59]OFD Sender: No OFD packet to send [18:29:04]OFD Sender: No OFD packet to send [18:29:09]OFD Sender: No OFD packet to send [18:29:15]OFD Sender: No OFD packet to send [18:29:20]OFD Sender: No OFD packet to send [18:29:25]OFD Sender: No OFD packet to send [18:29:30]OFD Sender: No OFD packet to send [18:29:35]OFD Sender: No OFD packet to send [18:29:40]OFD Sender: No OFD packet to send [18:29:45]OFD Sender: No OFD packet to send [18:29:50]OFD Sender: No OFD packet to send [18:29:55]OFD Sender: No OFD packet to send [18:30:00]OFD Sender: No OFD packet to send [18:30:01]accept exits with 9 [18:30:01]New connection [18:30:01]New thread 3066928484 created [18:30:01]Thread 3066785124 joined [18:30:01]Waiting for new connection... [18:30:01] Sock 9.Parse request [18:30:01]Sock 9.Check first char [18:30:01]Sock 9.First char is OK [18:30:01]request: POST /json_proto HTTP/1.0 [18:30:01]Method: POST [18:30:01]URL: /json_proto [18:30:01]Method is POST - this is cgi request [18:30:01]url: /json_proto [18:30:01]query_string will be loaded in cgi processing [18:30:01]execute_cgi json_proto POST (null) [18:30:01]execute_cgi path=json_proto method=POST [18:30:01]POST find Content-Length [18:30:01]Host: 172.17.33.3:8080 [18:30:01]Content-Length: 656 [18:30:01]Content-Type: application/json [18:30:01] [18:30:01]POST finish read [18:30:01]Found Content-Length = 656 [18:30:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347379", "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" : 72.40, "quantity" : 5.000, "sum" : 362.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "payments": [ { "type": 0, "sum" : 362.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:01]execute_script... [18: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)347379", "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" : 72.40, "quantity" : 5.000, "sum" : 362.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "payments": [ { "type": 0, "sum" : 362.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:01]POST & json_proto [18:30:01]process_json_proto [18:30:01]json parsed OK: [18:30:01]protocol is kg_v1.0 [18:30:01]action value=close_receipt [18:30:01]process_action close_receipt [18:30:01]cmd_close_receipt [18:30:01]MH_GetDate [18:30:01]Write to MH i2c: F0 00 00 38 59 80 [18:30:01]Write i2c OK [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: F0 [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: F0 09 00 [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: F0 09 00 38 59 00 2F CF 1A 66 23 5B 8F 65 79 [18:30:01]GetLastDocTimeStamp 1713032928 [18:30:01]current date 1713033007 [18:30:01]FM_GetShiftState [18:30:01]SAM_PROTO_GetShiftState [18:30:01]wFMCommunicate request_size=4 [18:30:01]MH_SAM_APDU [18:30:01]CAPDU: 80 13 01 00 [18:30:01]Write to MH i2c: E2 08 00 39 59 80 13 01 00 00 00 00 00 0F [18:30:01]Write i2c OK [18:30:01]MH_I2C_Read... [18:30:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:01]Read from MH i2c: E2 [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: E2 0E 00 [18:30:01]MH_I2C_Read... [18:30:01]Read from MH i2c: E2 0E 00 39 59 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 28 [18:30:01]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:30:01]wFMCommunicate OK [18:30:01]SAM_PROTO_GetShiftState done [18:30:01]FM_GetShiftState done [18:30:01]opened in 1712967615 [18:30:01]opened+sec_in_day 1713054015 [18:30:01]quantity*price = 36200 [18:30:01]sum+1 = 36201 [18:30:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 362.00 Внесено: 500.00 СДАЧА: 138.00 НСП 1% : 3.20 НДС 12% : 38.44 Наличными: 362.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 223 13.04.2024 18:30 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29016 ФПД: 121105841547476 1/tax-web-control/client/api/v1/ticket?date=20240413T183007&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29016&fm=121105841547476&tin=02508201610067®Number=0000138879044617&sum=36200 [18:30:02]StoreToDocumentArchive [18:30:02]shift 115 fd 29016 [18:30:02]save to /storage/0115/doc_00029016 [18:30:02]save last doc name /storage/0115/doc_00029016 to /storage/kkm_last_doc_name [18:30:02]save OK [18:30:02]Clear old archive folders... [18:30:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:30:02]tlvbuf is 011EB150 [18:30:02]SAM_PROTO_ClearQueue [18:30:02]wFMCommunicate request_size=4 [18:30:02]MH_SAM_APDU [18:30:02]CAPDU: 80 09 00 00 [18:30:02]Write to MH i2c: E2 08 00 46 59 80 09 00 00 00 00 00 00 11 [18:30:02]Write i2c OK [18:30:02]MH_I2C_Read... [18:30:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:02]Read from MH i2c: E2 [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: E2 03 00 [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: E2 03 00 46 59 00 90 00 13 [18:30:02]RAPDU: 90 00 [18:30:02]wFMCommunicate OK [18:30:02]SAM_PROTO_ClearQueue done [18:30:02]KKMCreateOFDPacket [18:30:02]OFDProtocolAddRootSTLVToBuf [18:30:02]FM_MakeSignedData [18:30:02]FM_MakeSignedData [18:30:02]SAM_PROTO_SignData [18:30:02]wFMCommunicate request_size=4 [18:30:02]MH_SAM_APDU [18:30:02]CAPDU: 80 0D 01 02 [18:30:02]Write to MH i2c: E2 08 00 47 59 80 0D 01 02 00 00 00 00 19 [18:30:02]Write i2c OK [18:30:02]MH_I2C_Read... [18:30:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:02]Read from MH i2c: E2 [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: E2 03 00 [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: E2 03 00 47 59 00 90 00 14 [18:30:02]RAPDU: 90 00 [18:30:02]wFMCommunicate OK [18:30:02]wFMCommunicate request_size=255 [18:30:02]MH_SAM_APDU [18:30:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 68 8D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 8D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 0F 00 00 00 00 07 04 06 00 68 8D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 2F CF 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 58 71 00 00 35 04 06 00 6E 25 26 AA [18:30:02]Write to MH i2c: E2 02 01 48 59 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 88 13 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 68 8D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 8D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 0F 00 00 00 00 07 04 06 00 68 8D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 2F CF 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 58 71 00 00 35 04 06 00 6E 25 26 AA 00 00 C1 [18:30:02]Write i2c OK [18:30:02]MH_I2C_Read... [18:30:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:02]Read from MH i2c: E2 [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: E2 03 00 [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: E2 03 00 48 59 00 90 00 15 [18:30:02]RAPDU: 90 00 [18:30:02]wFMCommunicate OK [18:30:02]wFMCommunicate request_size=7 [18:30:02]MH_SAM_APDU [18:30:02]CAPDU: 80 0D 02 02 02 68 D4 [18:30:02]Write to MH i2c: E2 0A 00 49 59 80 0D 02 02 02 00 68 D4 00 00 5C [18:30:02]Write i2c OK [18:30:02]MH_I2C_Read... [18:30:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:02]Read from MH i2c: E2 [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: E2 03 00 [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: E2 03 00 49 59 00 90 00 16 [18:30:02]RAPDU: 90 00 [18:30:02]wFMCommunicate OK [18:30:02]wFMCommunicate request_size=4 [18:30:02]MH_SAM_APDU [18:30:02]CAPDU: 80 0D 03 02 [18:30:02]Write to MH i2c: E2 08 00 4A 59 80 0D 03 02 00 00 00 00 1E [18:30:02]Write i2c OK [18:30:02]MH_I2C_Read... [18:30:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:02]Read from MH i2c: E2 [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: E2 0B 00 [18:30:02]MH_I2C_Read... [18:30:02]Read from MH i2c: E2 0B 00 4A 59 00 ED 60 B2 25 FA 69 92 07 90 00 3F [18:30:02]RAPDU: ED 60 B2 25 FA 69 92 07 90 00 [18:30:02]wFMCommunicate OK [18:30:02]SAM_PROTO_SignData done [18:30:02]FM_MakeSignedData done [18:30:02]CreateOFDProtocolMessage [18:30:02]wFMCommunicate request_size=4 [18:30:02]MH_SAM_APDU [18:30:02]CAPDU: 80 11 00 00 [18:30:02]Write to MH i2c: E2 08 00 4B 59 80 11 00 00 00 00 00 00 1E [18:30:02]Write i2c OK [18:30:02]MH_I2C_Read... [18:30:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:03]Read from MH i2c: E2 [18:30:03]MH_I2C_Read... [18:30:03]Read from MH i2c: E2 17 00 [18:30:03]MH_I2C_Read... [18:30:03]Read from MH i2c: E2 17 00 4B 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6D [18:30:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:30:03]wFMCommunicate OK [18:30:03]CreateOFDProtocolMessage done [18:30:03]OFDSenderStorePacket 29016 [18:30:03]StoreOFDPacket docnum=29016 [18:30:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 88 B1 04 01 65 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 68 8D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 8D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 0F 00 00 00 00 07 04 06 00 68 8D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 2F CF 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 58 71 00 00 35 04 06 00 6E 25 26 AA 68 D4 ED 60 B2 25 FA 69 92 07 [18:30:03]CheckFolder [18:30:03]dirname=/storage/ofd_packets [18:30:03]CheckFolder done [18:30:03]ProducePacketName [18:30:03]name=ofd_packets/00029016 [18:30:03]NVStorageSaveData ofd_packets/00029016 [18:30:03]File name is /storage/ofd_packets/00029016 [18:30:03]Write 298 bytes [18:30:03]NVStorageSaveData done [18:30:03]OFDSenderStorePacket done [18:30:03]KKMCreateOFDPacket done [18:30:03]NVStorageSaveData kkm_last_timestamp [18:30:03]File name is /storage/kkm_last_timestamp [18:30:03]Write 4 bytes [18:30:03]NVStorageSaveData done [18:30:03]ExternCall_PrintAddStr [18:30:03]wPrintStart [18:30:03]Write to MH i2c: 01 00 00 4C 59 A5 [18:30:03]Write i2c OK [18:30:03]MH_I2C_Read... [18:30:03]Read from MH i2c: 01 [18:30:03]MH_I2C_Read... [18:30:03]Read from MH i2c: 01 07 00 [18:30:03]MH_I2C_Read... [18:30:03]Read from MH i2c: 01 07 00 4C 59 00 00 00 00 00 FF 0F BA [18:30:03]RasterBufferAndPrint [18:30:03]line Счет N : (1)347379 [18:30:03]line ИНН: 02508201610067 [18:30:03]line Контрольно-Кассовый Чек [18:30:03]line ПРОДАЖА [18:30:03]line ТРК (МРК, ГНК) : 51 [18:30:03]line Товар: 2710194210 [18:30:03]line ДТ-К-5 [18:30:03]line 5.000 * 72.40 [18:30:03]line = 362.00 [18:30:03]line НДС 12% НСП 1% [18:30:03]line > о реализуемом товаре [18:30:03]line ИТОГО: 362.00 [18:30:03]line Внесено: 500.00 [18:30:03]line СДАЧА: 138.00 [18:30:03]line НСП 1% : 3.20 [18:30:03]line НДС 12% : 38.44 [18:30:03]line Наличными: 362.00 [18:30:03]line Безнал.: 0.00 [18:30:03]line Место: АЗС № 108 "Партнер Нефть" [18:30:03]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:30:03]line СНО: Общий режим [18:30:03]line Чек 223 13.04.2024 18:30 [18:30:03]line Смена: 115 ФФД: 1.0 [18:30:03]line ЗНМ: 0300000027 [18:30:03]line РНМ: 0000138879044617 [18:30:03]line Версия ККМ: 001 [18:30:03]line ФМ: 0000000000963154 [18:30:03]line ФД: 29016 [18:30:03]line ФПД: 121105841547476 [18:30:03]line 1/tax-web-control/client/api/v1/ticket?date=20240413T183007&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29016&fm=121105841547476&tin=02508201610067®Number=0000138879044617&sum=36200 [18:30:03]OFD Sender: Processing packet 29016 [packets to send 8, broken 7] [18:30:03]ProducePacketName [18:30:03]name=ofd_packets/00029016 [18:30:03]OFD Sender: To server: pG, [18:30:03]CommunicateWithHost lk.salyk.kg:30040 [18:30:03]ConnectInit lk.salyk.kg [18:30:03]written 0, free lines is 4095 [18:30:03]Connected sock=10 [18: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 31 35 34 0C 01 00 00 88 B1 04 01 65 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 68 8D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 8D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 0F 00 00 00 00 07 04 06 00 68 8D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 2F CF 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 58 71 00 00 35 04 06 00 6E 25 26 AA 68 D4 ED 60 B2 25 FA 69 92 07 [18:30:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 50 DD 47 00 00 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 31 35 34 10 04 04 00 58 71 00 00 F4 03 04 00 D5 79 1A 66 B6 04 01 00 00 18 76 A5 0D B9 74 3F 23 [18:30:03]CommunicateWithHost err = 0 [18:30:03]CheckOFDResponse [18:30:03]1017 (14) - 77093643461234 [18:30:03]1041 (16) - 0000000000963154 [18:30:03]1040 (4) - 29016 [18:30:03]1012 (4) - 13.04.2024 12:25 [18:30:03]1206 (1) - 0 [18:30:03]OFD Sender: Remove packet 29016 [18:30:03]ProducePacketName [18:30:03]name=ofd_packets/00029016 [18:30:03]NVStorageDeleteData [18:30:03]Write to MH i2c: 01 00 00 75 59 CE [18:30:03]Write i2c OK [18:30:03]MH_I2C_Read... [18:30:03]Read from MH i2c: 01 [18:30:03]MH_I2C_Read... [18:30:03]Read from MH i2c: 01 07 00 [18:30:03]MH_I2C_Read... [18:30:03]Read from MH i2c: 01 07 00 75 59 00 00 00 00 00 D8 0C B9 [18:30:03]RasterBufferAndPrint [18:30:03]line [18:30:03]line [18:30:03]line [18:30:03]line [18:30:03]line [18:30:03]written 0, free lines is 3295 [18:30:03]MH_Cut [18:30:03]Write to MH i2c: D1 01 00 7C 59 01 A7 [18:30:03]Write i2c OK [18:30:03]MH_I2C_Read... [18:30:03]Read from MH i2c: D1 [18:30:03]MH_I2C_Read... [18:30:03]Read from MH i2c: D1 01 00 [18:30:03]MH_I2C_Read... [18:30:03]Read from MH i2c: D1 01 00 7C 59 00 A6 [18:30:03]Write to MH i2c: 01 00 00 7D 59 D6 [18:30:03]Write i2c OK [18:30:03]MH_I2C_Read... [18:30:04]OFD Sender: No OFD packet to send [18:30:04]*** Cut start [18:30:04]*** Partial cut [18:30:04]*** CUTSNS_PIN = 1 [18:30:04]*** CUTSNS_PIN = 0 [18:30:04]*** Brake cut motor [18:30:05]Read from MH i2c: 01 [18:30:05]MH_I2C_Read... [18:30:05]*** Stop cut motor [18:30:05]*** Cut end [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 7D 59 00 00 00 00 00 FF 0F EB [18:30:05]process_action close_receipt done [18:30:05]requested_data is exist [18:30:05]produce_requested_data [18:30:05]requested_item fm.sn is exist - process it [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 7E 59 80 11 00 00 00 00 00 00 51 [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 7E 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A0 [18:30:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:30:05]wFMCommunicate OK [18:30:05]requested_item fd.num is exist - process it [18:30:05]SAM_PROTO_GetFieldsCounters [18:30:05]wFMCommunicate request_size=4 [18:30:05]MH_SAM_APDU [18:30:05]CAPDU: 80 13 00 00 [18:30:05]Write to MH i2c: E2 08 00 7F 59 80 13 00 00 00 00 00 00 54 [18:30:05]Write i2c OK [18:30:05]MH_I2C_Read... [18:30:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:05]Read from MH i2c: E2 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 62 00 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 62 00 7F 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 58 71 00 00 0E 04 04 00 73 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 6B [18: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 58 71 00 00 0E 04 04 00 73 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 [18:30:05]wFMCommunicate OK [18:30:05]SAM_PROTO_GetFieldsCounters done [18:30:05]requested_item shift.num is exist - process it [18:30:05]requested_item shift.opened is exist - process it [18:30:05]req_shift_opened [18:30:05]FM_GetShiftState [18:30:05]SAM_PROTO_GetShiftState [18:30:05]wFMCommunicate request_size=4 [18:30:05]MH_SAM_APDU [18:30:05]CAPDU: 80 13 01 00 [18:30:05]Write to MH i2c: E2 08 00 80 59 80 13 01 00 00 00 00 00 56 [18:30:05]Write i2c OK [18:30:05]MH_I2C_Read... [18:30:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:05]Read from MH i2c: E2 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 0E 00 [18:30:05]MH_I2C_Read... [18:30:05]Read from MH i2c: E2 0E 00 80 59 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 6F [18:30:05]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:30:05]wFMCommunicate OK [18:30:05]SAM_PROTO_GetShiftState done [18:30:05]FM_GetShiftState done [18:30:05]req_shift_opened done [18:30:05]requested_item shift.open_date is exist - process it [18:30:05]req_shift_open_date [18:30:05]req_shift_open_date done [18:30:05]produce_requested_data done [18:30:05]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29016,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [18:30:05]process_action_free close_receipt [18:30:05]json_value_free [18:30:05]json_value_free done [18:30:05]process_json_proto returns [18:30:05]Send response to host [18:30:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29016,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [18:30:05]free response buf [18:30:05]execute_script done [18:30:05]execute_script returns [18:30:05]free content buf [18:30:05]Sock 9.Close socket [18:30:05]Sock 9.Thread stoped [18:30:09]OFD Sender: No OFD packet to send [18:30:14]OFD Sender: No OFD packet to send [18:30:19]OFD Sender: No OFD packet to send [18:30:24]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:34]OFD Sender: No OFD packet to send [18:30:39]OFD Sender: No OFD packet to send [18:30:44]OFD Sender: No OFD packet to send [18:30:49]OFD Sender: No OFD packet to send [18:30:54]OFD Sender: No OFD packet to send [18:30:59]OFD Sender: No OFD packet to send [18:31:04]OFD Sender: No OFD packet to send [18:31:09]OFD Sender: No OFD packet to send [18:31:11]accept exits with 7 [18:31:11]New connection [18:31:11]New thread 3066785124 created [18:31:11]Thread 3066928484 joined [18:31:11]Waiting for new connection... [18:31:11] Sock 7.Parse request [18:31:11]Sock 7.Check first char [18:31:11]Sock 7.First char is OK [18:31:11]request: POST /json_proto HTTP/1.0 [18:31:11]Method: POST [18:31:11]URL: /json_proto [18:31:11]Method is POST - this is cgi request [18:31:11]url: /json_proto [18:31:11]query_string will be loaded in cgi processing [18:31:11]execute_cgi json_proto POST (null) [18:31:11]execute_cgi path=json_proto method=POST [18:31:11]POST find Content-Length [18:31:11]Host: 172.17.33.3:8080 [18:31:11]Content-Length: 674 [18:31:11]Content-Type: application/json [18:31:11] [18:31:11]POST finish read [18:31:11]Found Content-Length = 674 [18:31:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347380", "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" : 72.40, "quantity" : 2.770, "sum" : 200.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:11]execute_script... [18:31: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)347380", "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" : 72.40, "quantity" : 2.770, "sum" : 200.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:11]POST & json_proto [18:31:11]process_json_proto [18:31:11]json parsed OK: [18:31:11]protocol is kg_v1.0 [18:31:11]action value=close_receipt [18:31:11]process_action close_receipt [18:31:11]cmd_close_receipt [18:31:11]MH_GetDate [18:31:11]Write to MH i2c: F0 00 00 81 59 C9 [18:31:11]Write i2c OK [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: F0 [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: F0 09 00 [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: F0 09 00 81 59 00 75 CF 1A 66 23 5B 8F 65 08 [18:31:11]GetLastDocTimeStamp 1713033007 [18:31:11]current date 1713033077 [18:31:11]FM_GetShiftState [18:31:11]SAM_PROTO_GetShiftState [18:31:11]wFMCommunicate request_size=4 [18:31:11]MH_SAM_APDU [18:31:11]CAPDU: 80 13 01 00 [18:31:11]Write to MH i2c: E2 08 00 82 59 80 13 01 00 00 00 00 00 58 [18:31:11]Write i2c OK [18:31:11]MH_I2C_Read... [18:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:11]Read from MH i2c: E2 [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: E2 0E 00 [18:31:11]MH_I2C_Read... [18:31:11]Read from MH i2c: E2 0E 00 82 59 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 71 [18:31:11]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:31:11]wFMCommunicate OK [18:31:11]SAM_PROTO_GetShiftState done [18:31:11]FM_GetShiftState done [18:31:11]opened in 1712967615 [18:31:11]opened+sec_in_day 1713054015 [18:31:11]quantity*price = 20054 [18:31:11]sum+1 = 20056 [18:31:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 224 13.04.2024 18:31 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29017 ФПД: 112673156131364 1/tax-web-control/client/api/v1/ticket?date=20240413T183117&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29017&fm=112673156131364&tin=02508201610067®Number=0000138879044617&sum=20000 [18:31:12]StoreToDocumentArchive [18:31:12]shift 115 fd 29017 [18:31:12]save to /storage/0115/doc_00029017 [18:31:12]save last doc name /storage/0115/doc_00029017 to /storage/kkm_last_doc_name [18:31:12]save OK [18:31:12]Clear old archive folders... [18:31:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:31:12]tlvbuf is 01216220 [18:31:12]SAM_PROTO_ClearQueue [18:31:12]wFMCommunicate request_size=4 [18:31:12]MH_SAM_APDU [18:31:12]CAPDU: 80 09 00 00 [18:31:12]Write to MH i2c: E2 08 00 8F 59 80 09 00 00 00 00 00 00 5A [18:31:12]Write i2c OK [18:31:12]MH_I2C_Read... [18:31:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:12]Read from MH i2c: E2 [18:31:12]MH_I2C_Read... [18:31:12]Read from MH i2c: E2 03 00 [18:31:12]MH_I2C_Read... [18:31:12]Read from MH i2c: E2 03 00 8F 59 00 90 00 5C [18:31:12]RAPDU: 90 00 [18:31:12]wFMCommunicate OK [18:31:12]SAM_PROTO_ClearQueue done [18:31:12]KKMCreateOFDPacket [18:31:12]OFDProtocolAddRootSTLVToBuf [18:31:12]FM_MakeSignedData [18:31:12]FM_MakeSignedData [18:31:12]SAM_PROTO_SignData [18:31:12]wFMCommunicate request_size=4 [18:31:12]MH_SAM_APDU [18:31:12]CAPDU: 80 0D 01 02 [18:31:12]Write to MH i2c: E2 08 00 90 59 80 0D 01 02 00 00 00 00 62 [18:31:12]Write i2c OK [18:31:12]MH_I2C_Read... [18:31:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:12]Read from MH i2c: E2 [18:31:12]MH_I2C_Read... [18:31:12]Read from MH i2c: E2 03 00 [18:31:12]MH_I2C_Read... [18:31:12]Read from MH i2c: E2 03 00 90 59 00 90 00 5D [18:31:12]RAPDU: 90 00 [18:31:12]wFMCommunicate OK [18:31:12]wFMCommunicate request_size=255 [18:31:12]MH_SAM_APDU [18:31: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 D2 0A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 57 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 52 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 E0 00 00 00 F4 03 04 00 75 CF 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 59 71 00 00 35 04 06 00 66 79 C3 72 [18:31:12]Write to MH i2c: E2 02 01 91 59 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 D2 0A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 57 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 52 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 E0 00 00 00 F4 03 04 00 75 CF 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 59 71 00 00 35 04 06 00 66 79 C3 72 00 00 9D [18:31:12]Write i2c OK [18:31:12]MH_I2C_Read... [18:31:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:13]Read from MH i2c: E2 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: E2 03 00 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: E2 03 00 91 59 00 90 00 5E [18:31:13]RAPDU: 90 00 [18:31:13]wFMCommunicate OK [18:31:13]wFMCommunicate request_size=7 [18:31:13]MH_SAM_APDU [18:31:13]CAPDU: 80 0D 02 02 02 6A 24 [18:31:13]Write to MH i2c: E2 0A 00 92 59 80 0D 02 02 02 00 6A 24 00 00 F7 [18:31:13]Write i2c OK [18:31:13]MH_I2C_Read... [18:31:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:13]Read from MH i2c: E2 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: E2 03 00 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: E2 03 00 92 59 00 90 00 5F [18:31:13]RAPDU: 90 00 [18:31:13]wFMCommunicate OK [18:31:13]wFMCommunicate request_size=4 [18:31:13]MH_SAM_APDU [18:31:13]CAPDU: 80 0D 03 02 [18:31:13]Write to MH i2c: E2 08 00 93 59 80 0D 03 02 00 00 00 00 67 [18:31:13]Write i2c OK [18:31:13]MH_I2C_Read... [18:31:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:13]Read from MH i2c: E2 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: E2 0B 00 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: E2 0B 00 93 59 00 E9 9E 4E E2 AE 59 E4 E0 90 00 EA [18:31:13]RAPDU: E9 9E 4E E2 AE 59 E4 E0 90 00 [18:31:13]wFMCommunicate OK [18:31:13]SAM_PROTO_SignData done [18:31:13]FM_MakeSignedData done [18:31:13]CreateOFDProtocolMessage [18:31:13]wFMCommunicate request_size=4 [18:31:13]MH_SAM_APDU [18:31:13]CAPDU: 80 11 00 00 [18:31:13]Write to MH i2c: E2 08 00 94 59 80 11 00 00 00 00 00 00 67 [18:31:13]Write i2c OK [18:31:13]MH_I2C_Read... [18:31:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:13]Read from MH i2c: E2 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: E2 17 00 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: E2 17 00 94 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B6 [18:31:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:31:13]wFMCommunicate OK [18:31:13]CreateOFDProtocolMessage done [18:31:13]OFDSenderStorePacket 29017 [18:31:13]StoreOFDPacket docnum=29017 [18:31:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 12 4E 04 01 A0 C2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D2 0A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 57 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 52 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 E0 00 00 00 F4 03 04 00 75 CF 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 59 71 00 00 35 04 06 00 66 79 C3 72 6A 24 E9 9E 4E E2 AE 59 E4 E0 [18:31:13]CheckFolder [18:31:13]dirname=/storage/ofd_packets [18:31:13]CheckFolder done [18:31:13]ProducePacketName [18:31:13]name=ofd_packets/00029017 [18:31:13]NVStorageSaveData ofd_packets/00029017 [18:31:13]File name is /storage/ofd_packets/00029017 [18:31:13]Write 298 bytes [18:31:13]NVStorageSaveData done [18:31:13]OFDSenderStorePacket done [18:31:13]KKMCreateOFDPacket done [18:31:13]NVStorageSaveData kkm_last_timestamp [18:31:13]File name is /storage/kkm_last_timestamp [18:31:13]Write 4 bytes [18:31:13]NVStorageSaveData done [18:31:13]ExternCall_PrintAddStr [18:31:13]wPrintStart [18:31:13]Write to MH i2c: 01 00 00 95 59 EE [18:31:13]Write i2c OK [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: 01 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: 01 07 00 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: 01 07 00 95 59 00 00 00 00 00 FF 0F 03 [18:31:13]RasterBufferAndPrint [18:31:13]line Счет N : (1)347380 [18:31:13]line ИНН: 02508201610067 [18:31:13]line Контрольно-Кассовый Чек [18:31:13]line ПРОДАЖА [18:31:13]line ТРК (МРК, ГНК) : 61 [18:31:13]line Товар: 2710194210 [18:31:13]line ДТ-К-5 [18:31:13]line 2.770 * 72.40 [18:31:13]line = 200.55 [18:31:13]line НДС 12% НСП 1% [18:31:13]line > о реализуемом товаре [18:31:13]line ОКРУГЛЕНИЕ: -0.55 [18:31:13]line ИТОГО: 200.00 [18:31:13]line Внесено: 200.00 [18:31:13]line СДАЧА: 0.00 [18:31:13]line НСП 1% : 1.77 [18:31:13]line НДС 12% : 21.30 [18:31:13]line Наличными: 200.00 [18:31:13]line Безнал.: 0.00 [18:31:13]line Место: АЗС № 108 "Партнер Нефть" [18:31:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:31:13]line СНО: Общий режим [18:31:13]line Чек 224 13.04.2024 18:31 [18:31:13]line Смена: 115 ФФД: 1.0 [18:31:13]line ЗНМ: 0300000027 [18:31:13]line РНМ: 0000138879044617 [18:31:13]line Версия ККМ: 001 [18:31:13]line ФМ: 0000000000963154 [18:31:13]line ФД: 29017 [18:31:13]line ФПД: 112673156131364 [18:31:13]line 1/tax-web-control/client/api/v1/ticket?date=20240413T183117&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29017&fm=112673156131364&tin=02508201610067®Number=0000138879044617&sum=20000 [18:31:13]OFD Sender: Processing packet 29017 [packets to send 8, broken 7] [18:31:13]ProducePacketName [18:31:13]name=ofd_packets/00029017 [18:31:13]OFD Sender: To server: pG, [18:31:13]CommunicateWithHost lk.salyk.kg:30040 [18:31:13]ConnectInit lk.salyk.kg [18:31:13]written 0, free lines is 4095 [18:31:13]Connected sock=10 [18:31: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 31 35 34 0C 01 00 00 12 4E 04 01 A0 C2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D2 0A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 57 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 52 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 E0 00 00 00 F4 03 04 00 75 CF 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 59 71 00 00 35 04 06 00 66 79 C3 72 6A 24 E9 9E 4E E2 AE 59 E4 E0 [18:31:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C5 DB 47 00 DA 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 59 71 00 00 F4 03 04 00 1C 7A 1A 66 B6 04 01 00 00 12 6F 67 28 39 E2 EF 46 [18:31:13]CommunicateWithHost err = 0 [18:31:13]CheckOFDResponse [18:31:13]1017 (14) - 77093643461234 [18:31:13]1041 (16) - 0000000000963154 [18:31:13]1040 (4) - 29017 [18:31:13]1012 (4) - 13.04.2024 12:27 [18:31:13]1206 (1) - 0 [18:31:13]OFD Sender: Remove packet 29017 [18:31:13]ProducePacketName [18:31:13]name=ofd_packets/00029017 [18:31:13]NVStorageDeleteData [18:31:14]Write to MH i2c: 01 00 00 BF 59 18 [18:31:14]Write i2c OK [18:31:14]MH_I2C_Read... [18:31:14]Read from MH i2c: 01 [18:31:14]MH_I2C_Read... [18:31:14]Read from MH i2c: 01 07 00 [18:31:14]MH_I2C_Read... [18:31:14]Read from MH i2c: 01 07 00 BF 59 00 00 00 00 00 BB 0C E6 [18:31:14]RasterBufferAndPrint [18:31:14]line [18:31:14]line [18:31:14]line [18:31:14]line [18:31:14]line [18:31:14]written 0, free lines is 3264 [18:31:14]MH_Cut [18:31:14]Write to MH i2c: D1 01 00 C6 59 01 F1 [18:31:14]Write i2c OK [18:31:14]MH_I2C_Read... [18:31:14]Read from MH i2c: D1 [18:31:14]MH_I2C_Read... [18:31:14]Read from MH i2c: D1 01 00 [18:31:14]MH_I2C_Read... [18:31:14]Read from MH i2c: D1 01 00 C6 59 00 F0 [18:31:14]Write to MH i2c: 01 00 00 C7 59 20 [18:31:14]Write i2c OK [18:31:14]MH_I2C_Read... [18:31:14]OFD Sender: No OFD packet to send [18:31:14]*** Cut start [18:31:14]*** Partial cut [18:31:14]*** CUTSNS_PIN = 1 [18:31:14]*** CUTSNS_PIN = 0 [18:31:15]*** Brake cut motor [18:31:15]Read from MH i2c: 01 [18:31:15]MH_I2C_Read... [18:31:15]*** Stop cut motor [18:31:15]*** Cut end [18:31:15]Read from MH i2c: 01 07 00 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: 01 07 00 C7 59 00 00 00 00 00 FF 0F 35 [18:31:15]process_action close_receipt done [18:31:15]requested_data is exist [18:31:15]produce_requested_data [18:31:15]requested_item fm.sn is exist - process it [18:31:15]wFMCommunicate request_size=4 [18:31:15]MH_SAM_APDU [18:31:15]CAPDU: 80 11 00 00 [18:31:15]Write to MH i2c: E2 08 00 C8 59 80 11 00 00 00 00 00 00 9B [18:31:15]Write i2c OK [18:31:15]MH_I2C_Read... [18:31:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:15]Read from MH i2c: E2 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: E2 17 00 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: E2 17 00 C8 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EA [18:31:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:31:15]wFMCommunicate OK [18:31:15]requested_item fd.num is exist - process it [18:31:15]SAM_PROTO_GetFieldsCounters [18:31:15]wFMCommunicate request_size=4 [18:31:15]MH_SAM_APDU [18:31:15]CAPDU: 80 13 00 00 [18:31:15]Write to MH i2c: E2 08 00 C9 59 80 13 00 00 00 00 00 00 9E [18:31:15]Write i2c OK [18:31:15]MH_I2C_Read... [18:31:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:15]Read from MH i2c: E2 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: E2 62 00 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: E2 62 00 C9 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 59 71 00 00 0E 04 04 00 73 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 B9 [18:31: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 59 71 00 00 0E 04 04 00 73 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 [18:31:15]wFMCommunicate OK [18:31:15]SAM_PROTO_GetFieldsCounters done [18:31:15]requested_item shift.num is exist - process it [18:31:15]requested_item shift.opened is exist - process it [18:31:15]req_shift_opened [18:31:15]FM_GetShiftState [18:31:15]SAM_PROTO_GetShiftState [18:31:15]wFMCommunicate request_size=4 [18:31:15]MH_SAM_APDU [18:31:15]CAPDU: 80 13 01 00 [18:31:15]Write to MH i2c: E2 08 00 CA 59 80 13 01 00 00 00 00 00 A0 [18:31:15]Write i2c OK [18:31:15]MH_I2C_Read... [18:31:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:15]Read from MH i2c: E2 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: E2 0E 00 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: E2 0E 00 CA 59 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 B9 [18:31:15]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:31:15]wFMCommunicate OK [18:31:15]SAM_PROTO_GetShiftState done [18:31:15]FM_GetShiftState done [18:31:15]req_shift_opened done [18:31:15]requested_item shift.open_date is exist - process it [18:31:15]req_shift_open_date [18:31:15]req_shift_open_date done [18:31:15]produce_requested_data done [18:31:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29017,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [18:31:15]process_action_free close_receipt [18:31:15]json_value_free [18:31:15]json_value_free done [18:31:15]process_json_proto returns [18:31:15]Send response to host [18:31:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29017,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [18:31:15]free response buf [18:31:15]execute_script done [18:31:15]execute_script returns [18:31:15]free content buf [18:31:15]Sock 7.Close socket [18:31:15]Sock 7.Thread stoped [18:31:19]OFD Sender: No OFD packet to send [18:31:24]OFD Sender: No OFD packet to send [18:31:29]OFD Sender: No OFD packet to send [18:31:34]OFD Sender: No OFD packet to send [18:31:39]OFD Sender: No OFD packet to send [18:31:44]OFD Sender: No OFD packet to send [18:31:49]OFD Sender: No OFD packet to send [18:31:54]OFD Sender: No OFD packet to send [18:31:59]OFD Sender: No OFD packet to send [18:32:04]OFD Sender: No OFD packet to send [18:32:09]OFD Sender: No OFD packet to send [18:32:14]OFD Sender: No OFD packet to send [18:32:19]OFD Sender: No OFD packet to send [18:32:24]OFD Sender: No OFD packet to send [18:32:29]OFD Sender: No OFD packet to send [18:32:34]OFD Sender: No OFD packet to send [18:32:39]OFD Sender: No OFD packet to send [18:32:43]accept exits with 9 [18:32:43]New connection [18:32:43]New thread 3066928484 created [18:32:43]Thread 3066785124 joined [18:32:43]Waiting for new connection... [18:32:43] Sock 9.Parse request [18:32:43]Sock 9.Check first char [18:32:43]Sock 9.First char is OK [18:32:43]request: POST /json_proto HTTP/1.0 [18:32:43]Method: POST [18:32:43]URL: /json_proto [18:32:43]Method is POST - this is cgi request [18:32:43]url: /json_proto [18:32:43]query_string will be loaded in cgi processing [18:32:43]execute_cgi json_proto POST (null) [18:32:43]execute_cgi path=json_proto method=POST [18:32:43]POST find Content-Length [18:32:43]Host: 172.17.33.3:8080 [18:32:43]Content-Length: 840 [18:32:43]Content-Type: application/json [18:32:43] [18:32:43]POST finish read [18:32:43]Found Content-Length = 840 [18:32:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347381", "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" : 64.30, "quantity" : 7.780, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:43]execute_script... [18:32: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)347381", "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" : 64.30, "quantity" : 7.780, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:43]POST & json_proto [18:32:43]process_json_proto [18:32:43]json parsed OK: [18:32:43]protocol is kg_v1.0 [18:32:43]action value=close_receipt [18:32:43]process_action close_receipt [18:32:43]cmd_close_receipt [18:32:43]MH_GetDate [18:32:43]Write to MH i2c: F0 00 00 CB 59 13 [18:32:43]Write i2c OK [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: F0 [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: F0 09 00 [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: F0 09 00 CB 59 00 D1 CF 1A 66 23 5B 8F 65 AE [18:32:43]GetLastDocTimeStamp 1713033077 [18:32:43]current date 1713033169 [18:32:43]FM_GetShiftState [18:32:43]SAM_PROTO_GetShiftState [18:32:43]wFMCommunicate request_size=4 [18:32:43]MH_SAM_APDU [18:32:43]CAPDU: 80 13 01 00 [18:32:43]Write to MH i2c: E2 08 00 CC 59 80 13 01 00 00 00 00 00 A2 [18:32:43]Write i2c OK [18:32:43]MH_I2C_Read... [18:32:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:43]Read from MH i2c: E2 [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: E2 0E 00 [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: E2 0E 00 CC 59 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 BB [18:32:43]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:32:43]wFMCommunicate OK [18:32:43]SAM_PROTO_GetShiftState done [18:32:43]FM_GetShiftState done [18:32:43]opened in 1712967615 [18:32:43]opened+sec_in_day 1713054015 [18:32:43]quantity*price = 50025 [18:32:43]sum+1 = 50026 [18:32:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 225 13.04.2024 18:32 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29018 ФПД: 148663348980519 1/tax-web-control/client/api/v1/ticket?date=20240413T183249&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29018&fm=148663348980519&tin=02508201610067®Number=0000138879044617&sum=50025 [18:32:44]StoreToDocumentArchive [18:32:44]shift 115 fd 29018 [18:32:44]save to /storage/0115/doc_00029018 [18:32:44]save last doc name /storage/0115/doc_00029018 to /storage/kkm_last_doc_name [18:32:44]save OK [18:32:44]Clear old archive folders... [18:32:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:32:44]tlvbuf is 0121DCF0 [18:32:44]SAM_PROTO_ClearQueue [18:32:44]wFMCommunicate request_size=4 [18:32:44]MH_SAM_APDU [18:32:44]CAPDU: 80 09 00 00 [18:32:44]Write to MH i2c: E2 08 00 D9 59 80 09 00 00 00 00 00 00 A4 [18:32:44]Write i2c OK [18:32:44]MH_I2C_Read... [18:32:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:44]Read from MH i2c: E2 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: E2 03 00 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: E2 03 00 D9 59 00 90 00 A6 [18:32:44]RAPDU: 90 00 [18:32:44]wFMCommunicate OK [18:32:44]SAM_PROTO_ClearQueue done [18:32:44]KKMCreateOFDPacket [18:32:44]OFDProtocolAddRootSTLVToBuf [18:32:44]FM_MakeSignedData [18:32:44]FM_MakeSignedData [18:32:44]SAM_PROTO_SignData [18:32:44]wFMCommunicate request_size=4 [18:32:44]MH_SAM_APDU [18:32:44]CAPDU: 80 0D 01 02 [18:32:44]Write to MH i2c: E2 08 00 DA 59 80 0D 01 02 00 00 00 00 AC [18:32:44]Write i2c OK [18:32:44]MH_I2C_Read... [18:32:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:44]Read from MH i2c: E2 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: E2 03 00 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: E2 03 00 DA 59 00 90 00 A7 [18:32:44]RAPDU: 90 00 [18:32:44]wFMCommunicate OK [18:32:44]wFMCommunicate request_size=255 [18:32:44]MH_SAM_APDU [18:32: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 E1 00 00 00 F4 03 04 00 D1 CF 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5A 71 00 00 35 04 06 00 87 [18:32:44]Write to MH i2c: E2 02 01 DB 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 E1 00 00 00 F4 03 04 00 D1 CF 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5A 71 00 00 35 04 06 00 87 00 00 66 [18:32:44]Write i2c OK [18:32:44]MH_I2C_Read... [18:32:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:44]OFD Sender: No OFD packet to send [18:32:44]Read from MH i2c: E2 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: E2 03 00 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: E2 03 00 DB 59 00 90 00 A8 [18:32:44]RAPDU: 90 00 [18:32:44]wFMCommunicate OK [18:32:44]wFMCommunicate request_size=10 [18:32:44]MH_SAM_APDU [18:32:44]CAPDU: 80 0D 02 02 05 35 62 1B 6B 27 [18:32:44]Write to MH i2c: E2 0D 00 DC 59 80 0D 02 02 05 00 35 62 1B 6B 27 00 00 FD [18:32:44]Write i2c OK [18:32:44]MH_I2C_Read... [18:32:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:44]Read from MH i2c: E2 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: E2 03 00 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: E2 03 00 DC 59 00 90 00 A9 [18:32:44]RAPDU: 90 00 [18:32:44]wFMCommunicate OK [18:32:44]wFMCommunicate request_size=4 [18:32:44]MH_SAM_APDU [18:32:44]CAPDU: 80 0D 03 02 [18:32:44]Write to MH i2c: E2 08 00 DD 59 80 0D 03 02 00 00 00 00 B1 [18:32:44]Write i2c OK [18:32:44]MH_I2C_Read... [18:32:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:44]Read from MH i2c: E2 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: E2 0B 00 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: E2 0B 00 DD 59 00 AD F8 88 97 A1 F1 E9 36 90 00 27 [18:32:44]RAPDU: AD F8 88 97 A1 F1 E9 36 90 00 [18:32:44]wFMCommunicate OK [18:32:44]SAM_PROTO_SignData done [18:32:44]FM_MakeSignedData done [18:32:44]CreateOFDProtocolMessage [18:32:44]wFMCommunicate request_size=4 [18:32:44]MH_SAM_APDU [18:32:44]CAPDU: 80 11 00 00 [18:32:44]Write to MH i2c: E2 08 00 DE 59 80 11 00 00 00 00 00 00 B1 [18:32:44]Write i2c OK [18:32:44]MH_I2C_Read... [18:32:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:44]Read from MH i2c: E2 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: E2 17 00 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: E2 17 00 DE 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 00 [18:32:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:32:44]wFMCommunicate OK [18:32:44]CreateOFDProtocolMessage done [18:32:44]OFDSenderStorePacket 29018 [18:32:44]StoreOFDPacket docnum=29018 [18:32:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 EA 9D 07 01 4C 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 E1 00 00 00 F4 03 04 00 D1 CF 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5A 71 00 00 35 04 06 00 87 35 62 1B 6B 27 AD F8 88 97 A1 F1 E9 36 [18:32:44]CheckFolder [18:32:44]dirname=/storage/ofd_packets [18:32:44]CheckFolder done [18:32:44]ProducePacketName [18:32:44]name=ofd_packets/00029018 [18:32:44]NVStorageSaveData ofd_packets/00029018 [18:32:44]File name is /storage/ofd_packets/00029018 [18:32:44]Write 301 bytes [18:32:44]NVStorageSaveData done [18:32:44]OFDSenderStorePacket done [18:32:44]KKMCreateOFDPacket done [18:32:44]NVStorageSaveData kkm_last_timestamp [18:32:44]File name is /storage/kkm_last_timestamp [18:32:44]Write 4 bytes [18:32:44]NVStorageSaveData done [18:32:44]ExternCall_PrintAddStr [18:32:44]wPrintStart [18:32:44]Write to MH i2c: 01 00 00 DF 59 38 [18:32:44]Write i2c OK [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: 01 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: 01 07 00 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: 01 07 00 DF 59 00 00 00 00 00 FF 0F 4D [18:32:44]RasterBufferAndPrint [18:32:44]line Счет N : (1)347381 [18:32:44]line ИНН: 02508201610067 [18:32:44]line Контрольно-Кассовый Чек [18:32:44]line ПРОДАЖА [18:32:44]line ТРК (МРК, ГНК) : 42 [18:32:44]line Товар: 2710124130 [18:32:44]line Аи-92-К-5 [18:32:44]line 7.780 * 64.30 [18:32:44]line = 500.25 [18:32:44]line НДС 12% НСП 1% [18:32:44]line > о реализуемом товаре [18:32:44]line ИТОГО: 500.25 [18:32:44]line НСП 1% : 4.43 [18:32:44]line НДС 12% : 53.12 [18:32:44]line Наличными: 0.00 [18:32:44]line Безнал.: 500.25 [18:32:44]line Место: АЗС № 108 "Партнер Нефть" [18:32:44]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:32:44]line СНО: Общий режим [18:32:44]line Чек 225 13.04.2024 18:32 [18:32:44]line Смена: 115 ФФД: 1.0 [18:32:44]line ЗНМ: 0300000027 [18:32:44]line РНМ: 0000138879044617 [18:32:44]line Версия ККМ: 001 [18:32:44]line Платежная система: АКБ Кыргызстан [18:32:44]line ФМ: 0000000000963154 [18:32:44]line ФД: 29018 [18:32:44]line ФПД: 148663348980519 [18:32:44]line 1/tax-web-control/client/api/v1/ticket?date=20240413T183249&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29018&fm=148663348980519&tin=02508201610067®Number=0000138879044617&sum=50025 [18:32:44]OFD Sender: Processing packet 29018 [packets to send 8, broken 7] [18:32:44]ProducePacketName [18:32:44]name=ofd_packets/00029018 [18:32:44]OFD Sender: To server: pG, [18:32:44]CommunicateWithHost lk.salyk.kg:30040 [18:32:44]ConnectInit lk.salyk.kg [18:32:44]written 0, free lines is 4095 [18:32:45]Connected sock=10 [18:32: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 31 35 34 0F 01 00 00 EA 9D 07 01 4C 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 E1 00 00 00 F4 03 04 00 D1 CF 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5A 71 00 00 35 04 06 00 87 35 62 1B 6B 27 AD F8 88 97 A1 F1 E9 36 [18: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 31 35 34 4F 00 00 00 C7 04 47 00 03 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 31 35 34 10 04 04 00 5A 71 00 00 F4 03 04 00 77 7A 1A 66 B6 04 01 00 00 3F 41 1C D3 62 7C 52 78 [18:32:45]CommunicateWithHost err = 0 [18:32:45]CheckOFDResponse [18:32:45]1017 (14) - 77093643461234 [18:32:45]1041 (16) - 0000000000963154 [18:32:45]1040 (4) - 29018 [18:32:45]1012 (4) - 13.04.2024 12:28 [18:32:45]1206 (1) - 0 [18:32:45]OFD Sender: Remove packet 29018 [18:32:45]ProducePacketName [18:32:45]name=ofd_packets/00029018 [18:32:45]NVStorageDeleteData [18:32:45]Write to MH i2c: 01 00 00 08 5A 62 [18:32:45]Write i2c OK [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: 01 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: 01 07 00 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: 01 07 00 08 5A 00 00 00 00 00 DE 0C 53 [18:32:45]RasterBufferAndPrint [18:32:45]line [18:32:45]line [18:32:45]line [18:32:45]line [18:32:45]line [18:32:45]written 0, free lines is 3300 [18:32:45]MH_Cut [18:32:45]Write to MH i2c: D1 01 00 0F 5A 01 3B [18:32:45]Write i2c OK [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: D1 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: D1 01 00 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: D1 01 00 0F 5A 00 3A [18:32:45]Write to MH i2c: 01 00 00 10 5A 6A [18:32:45]Write i2c OK [18:32:45]MH_I2C_Read... [18:32:45]OFD Sender: No OFD packet to send [18:32:46]*** Cut start [18:32:46]*** Partial cut [18:32:46]*** CUTSNS_PIN = 1 [18:32:46]*** CUTSNS_PIN = 0 [18:32:46]*** Brake cut motor [18:32:46]Read from MH i2c: 01 [18:32:46]MH_I2C_Read... [18:32:46]*** Stop cut motor [18:32:46]*** Cut end [18:32:46]Read from MH i2c: 01 07 00 [18:32:46]MH_I2C_Read... [18:32:46]Read from MH i2c: 01 07 00 10 5A 00 00 00 00 00 FF 0F 7F [18:32:46]process_action close_receipt done [18:32:46]requested_data is exist [18:32:46]produce_requested_data [18:32:46]requested_item fm.sn is exist - process it [18:32:46]wFMCommunicate request_size=4 [18:32:46]MH_SAM_APDU [18:32:46]CAPDU: 80 11 00 00 [18:32:46]Write to MH i2c: E2 08 00 11 5A 80 11 00 00 00 00 00 00 E5 [18:32:46]Write i2c OK [18:32:46]MH_I2C_Read... [18:32:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:46]Read from MH i2c: E2 [18:32:46]MH_I2C_Read... [18:32:46]Read from MH i2c: E2 17 00 [18:32:46]MH_I2C_Read... [18:32:46]Read from MH i2c: E2 17 00 11 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 34 [18:32:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:32:46]wFMCommunicate OK [18:32:46]requested_item fd.num is exist - process it [18:32:46]SAM_PROTO_GetFieldsCounters [18:32:46]wFMCommunicate request_size=4 [18:32:46]MH_SAM_APDU [18:32:46]CAPDU: 80 13 00 00 [18:32:46]Write to MH i2c: E2 08 00 12 5A 80 13 00 00 00 00 00 00 E8 [18:32:46]Write i2c OK [18:32:46]MH_I2C_Read... [18:32:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:46]Read from MH i2c: E2 [18:32:46]MH_I2C_Read... [18:32:46]Read from MH i2c: E2 62 00 [18:32:46]MH_I2C_Read... [18:32:46]Read from MH i2c: E2 62 00 12 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5A 71 00 00 0E 04 04 00 73 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 07 [18:32: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5A 71 00 00 0E 04 04 00 73 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 [18:32:47]wFMCommunicate OK [18:32:47]SAM_PROTO_GetFieldsCounters done [18:32:47]requested_item shift.num is exist - process it [18:32:47]requested_item shift.opened is exist - process it [18:32:47]req_shift_opened [18:32:47]FM_GetShiftState [18:32:47]SAM_PROTO_GetShiftState [18:32:47]wFMCommunicate request_size=4 [18:32:47]MH_SAM_APDU [18:32:47]CAPDU: 80 13 01 00 [18:32:47]Write to MH i2c: E2 08 00 13 5A 80 13 01 00 00 00 00 00 EA [18:32:47]Write i2c OK [18:32:47]MH_I2C_Read... [18:32:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:47]Read from MH i2c: E2 [18:32:47]MH_I2C_Read... [18:32:47]Read from MH i2c: E2 0E 00 [18:32:47]MH_I2C_Read... [18:32:47]Read from MH i2c: E2 0E 00 13 5A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 03 [18:32:47]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:32:47]wFMCommunicate OK [18:32:47]SAM_PROTO_GetShiftState done [18:32:47]FM_GetShiftState done [18:32:47]req_shift_opened done [18:32:47]requested_item shift.open_date is exist - process it [18:32:47]req_shift_open_date [18:32:47]req_shift_open_date done [18:32:47]produce_requested_data done [18:32:47]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29018,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [18:32:47]process_action_free close_receipt [18:32:47]json_value_free [18:32:47]json_value_free done [18:32:47]process_json_proto returns [18:32:47]Send response to host [18:32:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29018,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [18:32:47]free response buf [18:32:47]execute_script done [18:32:47]execute_script returns [18:32:47]free content buf [18:32:47]Sock 9.Close socket [18:32:47]Sock 9.Thread stoped [18:32:50]OFD Sender: No OFD packet to send [18:32:55]OFD Sender: No OFD packet to send [18:33:00]OFD Sender: No OFD packet to send [18:33:05]OFD Sender: No OFD packet to send [18:33:10]OFD Sender: No OFD packet to send [18:33:15]OFD Sender: No OFD packet to send [18:33:20]OFD Sender: No OFD packet to send [18:33:25]OFD Sender: No OFD packet to send [18:33:30]OFD Sender: No OFD packet to send [18:33:35]OFD Sender: No OFD packet to send [18:33:40]OFD Sender: No OFD packet to send [18:33:45]OFD Sender: No OFD packet to send [18:33:50]OFD Sender: No OFD packet to send [18:33:55]OFD Sender: No OFD packet to send [18:34:00]OFD Sender: No OFD packet to send [18:34:05]OFD Sender: No OFD packet to send [18:34:10]OFD Sender: No OFD packet to send [18:34:15]OFD Sender: No OFD packet to send [18:34:20]OFD Sender: No OFD packet to send [18:34:25]OFD Sender: No OFD packet to send [18:34:30]OFD Sender: No OFD packet to send [18:34:35]OFD Sender: No OFD packet to send [18:34:40]OFD Sender: No OFD packet to send [18:34:45]OFD Sender: No OFD packet to send [18:34:50]OFD Sender: No OFD packet to send [18:34:55]OFD Sender: No OFD packet to send [18:35:00]OFD Sender: No OFD packet to send [18:35:05]OFD Sender: No OFD packet to send [18:35:10]OFD Sender: No OFD packet to send [18:35:15]OFD Sender: No OFD packet to send [18:35:20]OFD Sender: No OFD packet to send [18:35:25]OFD Sender: No OFD packet to send [18:35:30]OFD Sender: No OFD packet to send [18:35:35]OFD Sender: No OFD packet to send [18:35:40]OFD Sender: No OFD packet to send [18:35:45]OFD Sender: No OFD packet to send [18:35:50]OFD Sender: No OFD packet to send [18:35:55]OFD Sender: No OFD packet to send [18:36:00]OFD Sender: No OFD packet to send [18:36:05]OFD Sender: No OFD packet to send [18:36:10]OFD Sender: No OFD packet to send [18:36:15]OFD Sender: No OFD packet to send [18:36:20]OFD Sender: No OFD packet to send [18:36:25]OFD Sender: No OFD packet to send [18:36:30]OFD Sender: No OFD packet to send [18:36:35]OFD Sender: No OFD packet to send [18:36:40]OFD Sender: No OFD packet to send [18:36:45]OFD Sender: No OFD packet to send [18:36:50]OFD Sender: No OFD packet to send [18:36:55]OFD Sender: No OFD packet to send [18:37:00]OFD Sender: No OFD packet to send [18:37:05]OFD Sender: No OFD packet to send [18:37:10]OFD Sender: No OFD packet to send [18:37:15]OFD Sender: No OFD packet to send [18:37:20]OFD Sender: No OFD packet to send [18:37:25]OFD Sender: No OFD packet to send [18:37:30]OFD Sender: No OFD packet to send [18:37: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:15]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:25]accept exits with 7 [18:40:25]New connection [18:40:25]New thread 3066785124 created [18:40:25]Thread 3066928484 joined [18:40:25]Waiting for new connection... [18:40:25] Sock 7.Parse request [18:40:25]Sock 7.Check first char [18:40:25]Sock 7.First char is OK [18:40:25]request: POST /json_proto HTTP/1.0 [18:40:25]Method: POST [18:40:25]URL: /json_proto [18:40:25]Method is POST - this is cgi request [18:40:25]url: /json_proto [18:40:25]query_string will be loaded in cgi processing [18:40:25]execute_cgi json_proto POST (null) [18:40:25]execute_cgi path=json_proto method=POST [18:40:25]POST find Content-Length [18:40:25]Host: 172.17.33.3:8080 [18:40:25]Content-Length: 816 [18:40:25]Content-Type: application/json [18:40:25] [18:40:25]POST finish read [18:40:25]Found Content-Length = 816 [18:40:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.470, "sum" : 480.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 480.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:25]execute_script... [18:40:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.470, "sum" : 480.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 480.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:25]POST & json_proto [18:40:25]process_json_proto [18:40:25]json parsed OK: [18:40:25]protocol is kg_v1.0 [18:40:25]action value=close_receipt [18:40:25]process_action close_receipt [18:40:25]cmd_close_receipt [18:40:25]MH_GetDate [18:40:25]Write to MH i2c: F0 00 00 14 5A 5D [18:40:25]Write i2c OK [18:40:25]MH_I2C_Read... [18:40:25]Read from MH i2c: F0 [18:40:25]MH_I2C_Read... [18:40:25]Read from MH i2c: F0 09 00 [18:40:25]MH_I2C_Read... [18:40:25]Read from MH i2c: F0 09 00 14 5A 00 9F D1 1A 66 23 5B 8F 65 C8 [18:40:25]GetLastDocTimeStamp 1713033169 [18:40:25]current date 1713033631 [18:40:25]FM_GetShiftState [18:40:25]SAM_PROTO_GetShiftState [18:40:25]wFMCommunicate request_size=4 [18:40:25]MH_SAM_APDU [18:40:25]CAPDU: 80 13 01 00 [18:40:25]Write to MH i2c: E2 08 00 15 5A 80 13 01 00 00 00 00 00 EC [18:40:25]Write i2c OK [18:40:25]MH_I2C_Read... [18:40:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:25]Read from MH i2c: E2 [18:40:25]MH_I2C_Read... [18:40:25]Read from MH i2c: E2 0E 00 [18:40:25]MH_I2C_Read... [18:40:25]Read from MH i2c: E2 0E 00 15 5A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 05 [18:40:25]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:40:25]wFMCommunicate OK [18:40:25]SAM_PROTO_GetShiftState done [18:40:25]FM_GetShiftState done [18:40:25]opened in 1712967615 [18:40:25]opened+sec_in_day 1713054015 [18:40:25]quantity*price = 48032 [18:40:25]sum+1 = 48033 [18:40:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 480.32 НСП 1% : 4.25 НДС 12% : 51.01 Наличными: 0.00 Безнал.: 480.32 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 226 13.04.2024 18:40 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29019 ФПД: 249203878393224 1/tax-web-control/client/api/v1/ticket?date=20240413T184031&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29019&fm=249203878393224&tin=02508201610067®Number=0000138879044617&sum=48032 [18:40:26]StoreToDocumentArchive [18:40:26]shift 115 fd 29019 [18:40:26]save to /storage/0115/doc_00029019 [18:40:26]save last doc name /storage/0115/doc_00029019 to /storage/kkm_last_doc_name [18:40:26]save OK [18:40:26]Clear old archive folders... [18:40:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:40:26]tlvbuf is 012086C0 [18:40:26]SAM_PROTO_ClearQueue [18:40:26]wFMCommunicate request_size=4 [18:40:26]MH_SAM_APDU [18:40:26]CAPDU: 80 09 00 00 [18:40:26]Write to MH i2c: E2 08 00 22 5A 80 09 00 00 00 00 00 00 EE [18:40:26]Write i2c OK [18:40:26]MH_I2C_Read... [18:40:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:26]Read from MH i2c: E2 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 03 00 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 03 00 22 5A 00 90 00 F0 [18:40:26]RAPDU: 90 00 [18:40:26]wFMCommunicate OK [18:40:26]SAM_PROTO_ClearQueue done [18:40:26]KKMCreateOFDPacket [18:40:26]OFDProtocolAddRootSTLVToBuf [18:40:26]FM_MakeSignedData [18:40:26]FM_MakeSignedData [18:40:26]SAM_PROTO_SignData [18:40:26]wFMCommunicate request_size=4 [18:40:26]MH_SAM_APDU [18:40:26]CAPDU: 80 0D 01 02 [18:40:26]Write to MH i2c: E2 08 00 23 5A 80 0D 01 02 00 00 00 00 F6 [18:40:26]Write i2c OK [18:40:26]MH_I2C_Read... [18:40:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:26]Read from MH i2c: E2 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 03 00 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 03 00 23 5A 00 90 00 F1 [18:40:26]RAPDU: 90 00 [18:40:26]wFMCommunicate OK [18:40:26]wFMCommunicate request_size=255 [18:40:26]MH_SAM_APDU [18: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 2E 1D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 A0 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 BB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 9F D1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5B 71 00 00 35 04 06 00 E2 [18:40:26]Write to MH i2c: E2 02 01 24 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 A0 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 BB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 9F D1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5B 71 00 00 35 04 06 00 E2 00 00 4D [18:40:26]Write i2c OK [18:40:26]MH_I2C_Read... [18:40:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:26]Read from MH i2c: E2 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 03 00 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 03 00 24 5A 00 90 00 F2 [18:40:26]RAPDU: 90 00 [18:40:26]wFMCommunicate OK [18:40:26]wFMCommunicate request_size=10 [18:40:26]MH_SAM_APDU [18:40:26]CAPDU: 80 0D 02 02 05 A6 4C A5 F5 88 [18:40:26]Write to MH i2c: E2 0D 00 25 5A 80 0D 02 02 05 00 A6 4C A5 F5 88 00 00 17 [18:40:26]Write i2c OK [18:40:26]MH_I2C_Read... [18:40:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:26]Read from MH i2c: E2 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 03 00 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 03 00 25 5A 00 90 00 F3 [18:40:26]RAPDU: 90 00 [18:40:26]wFMCommunicate OK [18:40:26]wFMCommunicate request_size=4 [18:40:26]MH_SAM_APDU [18:40:26]CAPDU: 80 0D 03 02 [18:40:26]Write to MH i2c: E2 08 00 26 5A 80 0D 03 02 00 00 00 00 FB [18:40:26]Write i2c OK [18:40:26]MH_I2C_Read... [18:40:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:40:26]Read from MH i2c: E2 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 0B 00 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 0B 00 26 5A 00 C3 46 21 24 AF 10 5F 40 90 00 A8 [18:40:26]RAPDU: C3 46 21 24 AF 10 5F 40 90 00 [18:40:26]wFMCommunicate OK [18:40:26]SAM_PROTO_SignData done [18:40:26]FM_MakeSignedData done [18:40:26]CreateOFDProtocolMessage [18:40:26]wFMCommunicate request_size=4 [18:40:26]MH_SAM_APDU [18:40:26]CAPDU: 80 11 00 00 [18:40:26]Write to MH i2c: E2 08 00 27 5A 80 11 00 00 00 00 00 00 FB [18:40:26]Write i2c OK [18:40:26]MH_I2C_Read... [18:40:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:26]Read from MH i2c: E2 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 17 00 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 17 00 27 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4A [18:40:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:40:26]wFMCommunicate OK [18:40:26]CreateOFDProtocolMessage done [18:40:26]OFDSenderStorePacket 29019 [18:40:26]StoreOFDPacket docnum=29019 [18:40:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 82 CC 07 01 18 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 2E 1D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 A0 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 BB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 9F D1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5B 71 00 00 35 04 06 00 E2 A6 4C A5 F5 88 C3 46 21 24 AF 10 5F 40 [18:40:26]CheckFolder [18:40:26]dirname=/storage/ofd_packets [18:40:26]CheckFolder done [18:40:26]ProducePacketName [18:40:26]name=ofd_packets/00029019 [18:40:26]NVStorageSaveData ofd_packets/00029019 [18:40:26]File name is /storage/ofd_packets/00029019 [18:40:26]Write 301 bytes [18:40:26]NVStorageSaveData done [18:40:26]OFDSenderStorePacket done [18:40:26]KKMCreateOFDPacket done [18:40:26]NVStorageSaveData kkm_last_timestamp [18:40:26]File name is /storage/kkm_last_timestamp [18:40:26]Write 4 bytes [18:40:26]NVStorageSaveData done [18:40:26]OFD Sender: Processing packet 29019 [packets to send 8, broken 7] [18:40:26]ProducePacketName [18:40:26]name=ofd_packets/00029019 [18:40:26]OFD Sender: To server: pG, [18:40:26]CommunicateWithHost lk.salyk.kg:30040 [18:40:26]ConnectInit lk.salyk.kg [18:40:26]ExternCall_PrintAddStr [18:40:26]wPrintStart [18:40:26]Write to MH i2c: 01 00 00 28 5A 82 [18:40:26]Write i2c OK [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: 01 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: 01 07 00 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: 01 07 00 28 5A 00 00 00 00 00 FF 0F 97 [18:40:26]RasterBufferAndPrint [18:40:26]line Счет N : (1)347382 [18:40:26]line ИНН: 02508201610067 [18:40:26]line Контрольно-Кассовый Чек [18:40:26]line ПРОДАЖА [18:40:26]line ТРК (МРК, ГНК) : 23 [18:40:26]line Товар: 2710124130 [18:40:26]line Аи-92-К-5 [18:40:26]line 7.470 * 64.30 [18:40:26]line = 480.32 [18:40:26]line НДС 12% НСП 1% [18:40:26]line > о реализуемом товаре [18:40:26]line ИТОГО: 480.32 [18:40:26]line НСП 1% : 4.25 [18:40:26]line НДС 12% : 51.01 [18:40:26]line Наличными: 0.00 [18:40:26]line Безнал.: 480.32 [18:40:26]line Место: АЗС № 108 "Партнер Нефть" [18:40:26]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:40:26]line СНО: Общий режим [18:40:26]line Чек 226 13.04.2024 18:40 [18:40:26]line Смена: 115 ФФД: 1.0 [18:40:26]line ЗНМ: 0300000027 [18:40:26]line РНМ: 0000138879044617 [18:40:26]line Версия ККМ: 001 [18:40:26]line Платежная система: Бакай Банк [18:40:26]line ФМ: 0000000000963154 [18:40:26]line ФД: 29019 [18:40:26]line ФПД: 249203878393224 [18:40:27]line 1/tax-web-control/client/api/v1/ticket?date=20240413T184031&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29019&fm=249203878393224&tin=02508201610067®Number=0000138879044617&sum=48032 [18:40:27]Connected sock=11 [18: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 31 35 34 0F 01 00 00 82 CC 07 01 18 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 2E 1D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 A0 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 BB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 9F D1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5B 71 00 00 35 04 06 00 E2 A6 4C A5 F5 88 C3 46 21 24 AF 10 5F 40 [18:40:27]written 0, free lines is 4095 [18: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 31 35 34 4F 00 00 00 2A FE 47 00 0C 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 31 35 34 10 04 04 00 5B 71 00 00 F4 03 04 00 45 7C 1A 66 B6 04 01 00 00 E9 57 19 3D 5B FF 9D 12 [18:40:27]CommunicateWithHost err = 0 [18:40:27]CheckOFDResponse [18:40:27]1017 (14) - 77093643461234 [18:40:27]1041 (16) - 0000000000963154 [18:40:27]1040 (4) - 29019 [18:40:27]1012 (4) - 13.04.2024 12:36 [18:40:27]1206 (1) - 0 [18:40:27]OFD Sender: Remove packet 29019 [18:40:27]ProducePacketName [18:40:27]name=ofd_packets/00029019 [18:40:27]NVStorageDeleteData [18:40:27]Write to MH i2c: 01 00 00 51 5A AB [18:40:27]Write i2c OK [18:40:27]MH_I2C_Read... [18:40:27]Read from MH i2c: 01 [18:40:27]MH_I2C_Read... [18:40:27]Read from MH i2c: 01 07 00 [18:40:27]MH_I2C_Read... [18:40:27]Read from MH i2c: 01 07 00 51 5A 00 00 00 00 00 E4 0C A2 [18:40:27]RasterBufferAndPrint [18:40:27]line [18:40:27]line [18:40:27]line [18:40:27]line [18:40:27]line [18:40:27]written 0, free lines is 3309 [18:40:27]MH_Cut [18:40:27]Write to MH i2c: D1 01 00 58 5A 01 84 [18:40:27]Write i2c OK [18:40:27]MH_I2C_Read... [18:40:27]Read from MH i2c: D1 [18:40:27]MH_I2C_Read... [18:40:27]Read from MH i2c: D1 01 00 [18:40:27]MH_I2C_Read... [18:40:27]Read from MH i2c: D1 01 00 58 5A 00 83 [18:40:27]Write to MH i2c: 01 00 00 59 5A B3 [18:40:27]Write i2c OK [18:40:27]MH_I2C_Read... [18:40:27]OFD Sender: No OFD packet to send [18:40:28]*** Cut start [18:40:28]*** Partial cut [18:40:28]*** CUTSNS_PIN = 1 [18:40:28]*** CUTSNS_PIN = 0 [18:40:28]*** Brake cut motor [18:40:29]Read from MH i2c: 01 [18:40:29]MH_I2C_Read... [18:40:29]*** Stop cut motor [18:40:29]*** Cut end [18:40:29]Read from MH i2c: 01 07 00 [18:40:29]MH_I2C_Read... [18:40:29]Read from MH i2c: 01 07 00 59 5A 00 00 00 00 00 FF 0F C8 [18:40:29]process_action close_receipt done [18:40:29]requested_data is exist [18:40:29]produce_requested_data [18:40:29]requested_item fm.sn is exist - process it [18:40:29]wFMCommunicate request_size=4 [18:40:29]MH_SAM_APDU [18:40:29]CAPDU: 80 11 00 00 [18:40:29]Write to MH i2c: E2 08 00 5A 5A 80 11 00 00 00 00 00 00 2E [18:40:29]Write i2c OK [18:40:29]MH_I2C_Read... [18:40:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:29]Read from MH i2c: E2 [18:40:29]MH_I2C_Read... [18:40:29]Read from MH i2c: E2 17 00 [18:40:29]MH_I2C_Read... [18:40:29]Read from MH i2c: E2 17 00 5A 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7D [18:40:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:40:29]wFMCommunicate OK [18:40:29]requested_item fd.num is exist - process it [18:40:29]SAM_PROTO_GetFieldsCounters [18:40:29]wFMCommunicate request_size=4 [18:40:29]MH_SAM_APDU [18:40:29]CAPDU: 80 13 00 00 [18:40:29]Write to MH i2c: E2 08 00 5B 5A 80 13 00 00 00 00 00 00 31 [18:40:29]Write i2c OK [18:40:29]MH_I2C_Read... [18:40:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:29]Read from MH i2c: E2 [18:40:29]MH_I2C_Read... [18:40:29]Read from MH i2c: E2 62 00 [18:40:29]MH_I2C_Read... [18:40:29]Read from MH i2c: E2 62 00 5B 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5B 71 00 00 0E 04 04 00 73 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 54 [18:40: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5B 71 00 00 0E 04 04 00 73 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 [18:40:29]wFMCommunicate OK [18:40:29]SAM_PROTO_GetFieldsCounters done [18:40:29]requested_item shift.num is exist - process it [18:40:29]requested_item shift.opened is exist - process it [18:40:29]req_shift_opened [18:40:29]FM_GetShiftState [18:40:29]SAM_PROTO_GetShiftState [18:40:29]wFMCommunicate request_size=4 [18:40:29]MH_SAM_APDU [18:40:29]CAPDU: 80 13 01 00 [18:40:29]Write to MH i2c: E2 08 00 5C 5A 80 13 01 00 00 00 00 00 33 [18:40:29]Write i2c OK [18:40:29]MH_I2C_Read... [18:40:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:29]Read from MH i2c: E2 [18:40:29]MH_I2C_Read... [18:40:29]Read from MH i2c: E2 0E 00 [18:40:29]MH_I2C_Read... [18:40:29]Read from MH i2c: E2 0E 00 5C 5A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 4C [18:40:29]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:40:29]wFMCommunicate OK [18:40:29]SAM_PROTO_GetShiftState done [18:40:29]FM_GetShiftState done [18:40:29]req_shift_opened done [18:40:29]requested_item shift.open_date is exist - process it [18:40:29]req_shift_open_date [18:40:29]req_shift_open_date done [18:40:29]produce_requested_data done [18:40:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29019,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [18:40:29]process_action_free close_receipt [18:40:29]json_value_free [18:40:29]json_value_free done [18:40:29]process_json_proto returns [18:40:29]Send response to host [18:40:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29019,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [18:40:29]free response buf [18:40:29]execute_script done [18:40:29]execute_script returns [18:40:29]free content buf [18:40:29]Sock 7.Close socket [18:40:29]Sock 7.Thread stoped [18:40:32]OFD Sender: No OFD packet to send [18:40:37]OFD Sender: No OFD packet to send [18:40:42]OFD Sender: No OFD packet to send [18:40:47]OFD Sender: No OFD packet to send [18:40:52]OFD Sender: No OFD packet to send [18:40:57]OFD Sender: No OFD packet to send [18:41:02]OFD Sender: No OFD packet to send [18:41:07]OFD Sender: No OFD packet to send [18:41:12]OFD Sender: No OFD packet to send [18:41:17]OFD Sender: No OFD packet to send [18:41:22]OFD Sender: No OFD packet to send [18:41:27]OFD Sender: No OFD packet to send [18:41:32]OFD Sender: No OFD packet to send [18:41:37]OFD Sender: No OFD packet to send [18:41:39]accept exits with 9 [18:41:39]New connection [18:41:39]New thread 3066928484 created [18:41:39]Thread 3066785124 joined [18:41:39]Waiting for new connection... [18:41:39] Sock 9.Parse request [18:41:39]Sock 9.Check first char [18:41:39]Sock 9.First char is OK [18:41:39]request: POST /json_proto HTTP/1.0 [18:41:39]Method: POST [18:41:39]URL: /json_proto [18:41:39]Method is POST - this is cgi request [18:41:39]url: /json_proto [18:41:39]query_string will be loaded in cgi processing [18:41:39]execute_cgi json_proto POST (null) [18:41:39]execute_cgi path=json_proto method=POST [18:41:39]POST find Content-Length [18:41:39]Host: 172.17.33.3:8080 [18:41:39]Content-Length: 678 [18:41:39]Content-Type: application/json [18:41:39] [18:41:39]POST finish read [18:41:39]Found Content-Length = 678 [18:41:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347383", "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" : 64.30, "quantity" : 10.890, "sum" : 700.23, "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:41:39]execute_script... [18:41: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)347383", "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" : 64.30, "quantity" : 10.890, "sum" : 700.23, "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:41:39]POST & json_proto [18:41:39]process_json_proto [18:41:39]json parsed OK: [18:41:39]protocol is kg_v1.0 [18:41:39]action value=close_receipt [18:41:39]process_action close_receipt [18:41:39]cmd_close_receipt [18:41:39]MH_GetDate [18:41:39]Write to MH i2c: F0 00 00 5D 5A A6 [18:41:39]Write i2c OK [18:41:39]MH_I2C_Read... [18:41:39]Read from MH i2c: F0 [18:41:39]MH_I2C_Read... [18:41:39]Read from MH i2c: F0 09 00 [18:41:39]MH_I2C_Read... [18:41:39]Read from MH i2c: F0 09 00 5D 5A 00 E9 D1 1A 66 23 5B 8F 65 5B [18:41:39]GetLastDocTimeStamp 1713033631 [18:41:39]current date 1713033705 [18:41:39]FM_GetShiftState [18:41:39]SAM_PROTO_GetShiftState [18:41:39]wFMCommunicate request_size=4 [18:41:39]MH_SAM_APDU [18:41:39]CAPDU: 80 13 01 00 [18:41:39]Write to MH i2c: E2 08 00 5E 5A 80 13 01 00 00 00 00 00 35 [18:41:39]Write i2c OK [18:41:39]MH_I2C_Read... [18:41:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:39]Read from MH i2c: E2 [18:41:39]MH_I2C_Read... [18:41:39]Read from MH i2c: E2 0E 00 [18:41:39]MH_I2C_Read... [18:41:39]Read from MH i2c: E2 0E 00 5E 5A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 4E [18:41:39]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:41:39]wFMCommunicate OK [18:41:39]SAM_PROTO_GetShiftState done [18:41:39]FM_GetShiftState done [18:41:39]opened in 1712967615 [18:41:39]opened+sec_in_day 1713054015 [18:41:39]quantity*price = 70022 [18:41:39]sum+1 = 70024 [18:41:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 227 13.04.2024 18:41 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29020 ФПД: 213050963184139 1/tax-web-control/client/api/v1/ticket?date=20240413T184145&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29020&fm=213050963184139&tin=02508201610067®Number=0000138879044617&sum=70000 [18:41:40]StoreToDocumentArchive [18:41:40]shift 115 fd 29020 [18:41:40]save to /storage/0115/doc_00029020 [18:41:40]save last doc name /storage/0115/doc_00029020 to /storage/kkm_last_doc_name [18:41:40]save OK [18:41:40]Clear old archive folders... [18:41:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:41:40]tlvbuf is 011ECCD0 [18:41:40]SAM_PROTO_ClearQueue [18:41:40]wFMCommunicate request_size=4 [18:41:40]MH_SAM_APDU [18:41:40]CAPDU: 80 09 00 00 [18:41:40]Write to MH i2c: E2 08 00 6B 5A 80 09 00 00 00 00 00 00 37 [18:41:40]Write i2c OK [18:41:40]MH_I2C_Read... [18:41:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:41:40]Read from MH i2c: E2 [18:41:40]MH_I2C_Read... [18:41:40]Read from MH i2c: E2 03 00 [18:41:40]MH_I2C_Read... [18:41:40]Read from MH i2c: E2 03 00 6B 5A 00 90 00 39 [18:41:40]RAPDU: 90 00 [18:41:40]wFMCommunicate OK [18:41:40]SAM_PROTO_ClearQueue done [18:41:40]KKMCreateOFDPacket [18:41:40]OFDProtocolAddRootSTLVToBuf [18:41:40]FM_MakeSignedData [18:41:40]FM_MakeSignedData [18:41:40]SAM_PROTO_SignData [18:41:40]wFMCommunicate request_size=4 [18:41:40]MH_SAM_APDU [18:41:40]CAPDU: 80 0D 01 02 [18:41:40]Write to MH i2c: E2 08 00 6C 5A 80 0D 01 02 00 00 00 00 3F [18:41:40]Write i2c OK [18:41:40]MH_I2C_Read... [18:41:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:41:40]Read from MH i2c: E2 [18:41:40]MH_I2C_Read... [18:41:40]Read from MH i2c: E2 03 00 [18:41:40]MH_I2C_Read... [18:41:40]Read from MH i2c: E2 03 00 6C 5A 00 90 00 3A [18:41:40]RAPDU: 90 00 [18:41:40]wFMCommunicate OK [18:41:40]wFMCommunicate request_size=255 [18:41:40]MH_SAM_APDU [18:41: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 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 E9 D1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5C 71 00 00 35 04 06 00 C1 [18:41:40]Write to MH i2c: E2 02 01 6D 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 E9 D1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5C 71 00 00 35 04 06 00 C1 00 00 A3 [18:41:40]Write i2c OK [18:41:40]MH_I2C_Read... [18:41:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:40]Read from MH i2c: E2 [18:41:40]MH_I2C_Read... [18:41:40]Read from MH i2c: E2 03 00 [18:41:40]MH_I2C_Read... [18:41:40]Read from MH i2c: E2 03 00 6D 5A 00 90 00 3B [18:41:40]RAPDU: 90 00 [18:41:40]wFMCommunicate OK [18:41:40]wFMCommunicate request_size=10 [18:41:40]MH_SAM_APDU [18:41:40]CAPDU: 80 0D 02 02 05 C4 CA FA CA 0B [18:41:40]Write to MH i2c: E2 0D 00 6E 5A 80 0D 02 02 05 00 C4 CA FA CA 0B 00 00 A9 [18:41:40]Write i2c OK [18:41:40]MH_I2C_Read... [18:41:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:40]Read from MH i2c: E2 [18:41:40]MH_I2C_Read... [18:41:40]Read from MH i2c: E2 03 00 [18:41:40]MH_I2C_Read... [18:41:40]Read from MH i2c: E2 03 00 6E 5A 00 90 00 3C [18:41:40]RAPDU: 90 00 [18:41:40]wFMCommunicate OK [18:41:40]wFMCommunicate request_size=4 [18:41:40]MH_SAM_APDU [18:41:40]CAPDU: 80 0D 03 02 [18:41:40]Write to MH i2c: E2 08 00 6F 5A 80 0D 03 02 00 00 00 00 44 [18:41:40]Write i2c OK [18:41:40]MH_I2C_Read... [18:41:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:40]Read from MH i2c: E2 [18:41:40]MH_I2C_Read... [18:41:40]Read from MH i2c: E2 0B 00 [18:41:40]MH_I2C_Read... [18:41:40]Read from MH i2c: E2 0B 00 6F 5A 00 ED 3B BF 50 4D 5A DC D1 90 00 D0 [18:41:40]RAPDU: ED 3B BF 50 4D 5A DC D1 90 00 [18:41:40]wFMCommunicate OK [18:41:40]SAM_PROTO_SignData done [18:41:40]FM_MakeSignedData done [18:41:40]CreateOFDProtocolMessage [18:41:40]wFMCommunicate request_size=4 [18:41:40]MH_SAM_APDU [18:41:40]CAPDU: 80 11 00 00 [18:41:40]Write to MH i2c: E2 08 00 70 5A 80 11 00 00 00 00 00 00 44 [18:41:40]Write i2c OK [18:41:40]MH_I2C_Read... [18:41:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:40]Read from MH i2c: E2 [18:41:40]MH_I2C_Read... [18:41:40]Read from MH i2c: E2 17 00 [18:41:40]MH_I2C_Read... [18:41:40]Read from MH i2c: E2 17 00 70 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 93 [18:41:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:41:40]wFMCommunicate OK [18:41:40]CreateOFDProtocolMessage done [18:41:40]OFDSenderStorePacket 29020 [18:41:40]StoreOFDPacket docnum=29020 [18:41:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C6 33 07 01 F6 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 E9 D1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5C 71 00 00 35 04 06 00 C1 C4 CA FA CA 0B ED 3B BF 50 4D 5A DC D1 [18:41:40]CheckFolder [18:41:40]dirname=/storage/ofd_packets [18:41:40]CheckFolder done [18:41:40]ProducePacketName [18:41:40]name=ofd_packets/00029020 [18:41:40]NVStorageSaveData ofd_packets/00029020 [18:41:40]File name is /storage/ofd_packets/00029020 [18:41:40]Write 301 bytes [18:41:40]NVStorageSaveData done [18:41:40]OFDSenderStorePacket done [18:41:40]KKMCreateOFDPacket done [18:41:40]NVStorageSaveData kkm_last_timestamp [18:41:40]File name is /storage/kkm_last_timestamp [18:41:40]Write 4 bytes [18:41:40]NVStorageSaveData done [18:41:40]ExternCall_PrintAddStr [18:41:40]wPrintStart [18:41:40]Write to MH i2c: 01 00 00 71 5A CB [18:41:40]Write i2c OK [18:41:40]MH_I2C_Read... [18:41:40]Read from MH i2c: 01 [18:41:40]MH_I2C_Read... [18:41:40]Read from MH i2c: 01 07 00 [18:41:40]MH_I2C_Read... [18:41:40]Read from MH i2c: 01 07 00 71 5A 00 00 00 00 00 FF 0F E0 [18:41:40]RasterBufferAndPrint [18:41:40]line Счет N : (1)347383 [18:41:40]line ИНН: 02508201610067 [18:41:40]line Контрольно-Кассовый Чек [18:41:40]line ПРОДАЖА [18:41:40]line ТРК (МРК, ГНК) : 32 [18:41:40]line Товар: 2710124130 [18:41:40]line Аи-92-К-5 [18:41:40]line 10.890 * 64.30 [18:41:40]line = 700.23 [18:41:40]line НДС 12% НСП 1% [18:41:40]line > о реализуемом товаре [18:41:40]line ОКРУГЛЕНИЕ: -0.23 [18:41:40]line ИТОГО: 700.00 [18:41:40]line Внесено: 700.00 [18:41:40]line СДАЧА: 0.00 [18:41:40]line НСП 1% : 6.20 [18:41:40]line НДС 12% : 74.36 [18:41:40]line Наличными: 700.00 [18:41:40]line Безнал.: 0.00 [18:41:40]line Место: АЗС № 108 "Партнер Нефть" [18:41:40]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:41:40]line СНО: Общий режим [18:41:40]line Чек 227 13.04.2024 18:41 [18:41:40]line Смена: 115 ФФД: 1.0 [18:41:40]line ЗНМ: 0300000027 [18:41:40]line РНМ: 0000138879044617 [18:41:40]line Версия ККМ: 001 [18:41:40]line ФМ: 0000000000963154 [18:41:40]line ФД: 29020 [18:41:40]line ФПД: 213050963184139 [18:41:40]line 1/tax-web-control/client/api/v1/ticket?date=20240413T184145&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29020&fm=213050963184139&tin=02508201610067®Number=0000138879044617&sum=70000 [18:41:41]OFD Sender: Processing packet 29020 [packets to send 8, broken 7] [18:41:41]ProducePacketName [18:41:41]name=ofd_packets/00029020 [18:41:41]OFD Sender: To server: pG, [18:41:41]CommunicateWithHost lk.salyk.kg:30040 [18:41:41]ConnectInit lk.salyk.kg [18:41:41]written 0, free lines is 4095 [18:41:41]Connected sock=10 [18:41: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 31 35 34 0F 01 00 00 C6 33 07 01 F6 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 E9 D1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5C 71 00 00 35 04 06 00 C1 C4 CA FA CA 0B ED 3B BF 50 4D 5A DC D1 [18:41:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 5A 95 47 00 5B 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 31 35 34 10 04 04 00 5C 71 00 00 F4 03 04 00 8F 7C 1A 66 B6 04 01 00 00 E4 27 25 7F 3B D1 D5 22 [18:41:41]CommunicateWithHost err = 0 [18:41:41]CheckOFDResponse [18:41:41]1017 (14) - 77093643461234 [18:41:41]1041 (16) - 0000000000963154 [18:41:41]1040 (4) - 29020 [18:41:41]1012 (4) - 13.04.2024 12:37 [18:41:41]1206 (1) - 0 [18:41:41]OFD Sender: Remove packet 29020 [18:41:41]ProducePacketName [18:41:41]name=ofd_packets/00029020 [18:41:41]NVStorageDeleteData [18:41:41]Write to MH i2c: 01 00 00 9B 5A F5 [18:41:41]Write i2c OK [18:41:41]MH_I2C_Read... [18:41:41]Read from MH i2c: 01 [18:41:41]MH_I2C_Read... [18:41:41]Read from MH i2c: 01 07 00 [18:41:41]MH_I2C_Read... [18:41:41]Read from MH i2c: 01 07 00 9B 5A 00 00 00 00 00 C4 0C CC [18:41:41]RasterBufferAndPrint [18:41:41]line [18:41:41]line [18:41:41]line [18:41:41]line [18:41:41]line [18:41:41]written 0, free lines is 3274 [18:41:41]MH_Cut [18:41:41]Write to MH i2c: D1 01 00 A2 5A 01 CE [18:41:41]Write i2c OK [18:41:41]MH_I2C_Read... [18:41:41]Read from MH i2c: D1 [18:41:41]MH_I2C_Read... [18:41:41]Read from MH i2c: D1 01 00 [18:41:41]MH_I2C_Read... [18:41:41]Read from MH i2c: D1 01 00 A2 5A 00 CD [18:41:41]Write to MH i2c: 01 00 00 A3 5A FD [18:41:41]Write i2c OK [18:41:41]MH_I2C_Read... [18:41:41]OFD Sender: No OFD packet to send [18:41:42]*** Cut start [18:41:42]*** Partial cut [18:41:42]*** CUTSNS_PIN = 1 [18:41:42]*** CUTSNS_PIN = 0 [18:41:42]*** Brake cut motor [18:41:42]Read from MH i2c: 01 [18:41:42]MH_I2C_Read... [18:41:43]*** Stop cut motor [18:41:43]*** Cut end [18:41:43]Read from MH i2c: 01 07 00 [18:41:43]MH_I2C_Read... [18:41:43]Read from MH i2c: 01 07 00 A3 5A 00 00 00 00 00 FF 0F 12 [18:41:43]process_action close_receipt done [18:41:43]requested_data is exist [18:41:43]produce_requested_data [18:41:43]requested_item fm.sn is exist - process it [18:41:43]wFMCommunicate request_size=4 [18:41:43]MH_SAM_APDU [18:41:43]CAPDU: 80 11 00 00 [18:41:43]Write to MH i2c: E2 08 00 A4 5A 80 11 00 00 00 00 00 00 78 [18:41:43]Write i2c OK [18:41:43]MH_I2C_Read... [18:41:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:43]Read from MH i2c: E2 [18:41:43]MH_I2C_Read... [18:41:43]Read from MH i2c: E2 17 00 [18:41:43]MH_I2C_Read... [18:41:43]Read from MH i2c: E2 17 00 A4 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C7 [18:41:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:41:43]wFMCommunicate OK [18:41:43]requested_item fd.num is exist - process it [18:41:43]SAM_PROTO_GetFieldsCounters [18:41:43]wFMCommunicate request_size=4 [18:41:43]MH_SAM_APDU [18:41:43]CAPDU: 80 13 00 00 [18:41:43]Write to MH i2c: E2 08 00 A5 5A 80 13 00 00 00 00 00 00 7B [18:41:43]Write i2c OK [18:41:43]MH_I2C_Read... [18:41:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:43]Read from MH i2c: E2 [18:41:43]MH_I2C_Read... [18:41:43]Read from MH i2c: E2 62 00 [18:41:43]MH_I2C_Read... [18:41:43]Read from MH i2c: E2 62 00 A5 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5C 71 00 00 0E 04 04 00 73 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 A2 [18:41: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5C 71 00 00 0E 04 04 00 73 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 [18:41:43]wFMCommunicate OK [18:41:43]SAM_PROTO_GetFieldsCounters done [18:41:43]requested_item shift.num is exist - process it [18:41:43]requested_item shift.opened is exist - process it [18:41:43]req_shift_opened [18:41:43]FM_GetShiftState [18:41:43]SAM_PROTO_GetShiftState [18:41:43]wFMCommunicate request_size=4 [18:41:43]MH_SAM_APDU [18:41:43]CAPDU: 80 13 01 00 [18:41:43]Write to MH i2c: E2 08 00 A6 5A 80 13 01 00 00 00 00 00 7D [18:41:43]Write i2c OK [18:41:43]MH_I2C_Read... [18:41:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:43]Read from MH i2c: E2 [18:41:43]MH_I2C_Read... [18:41:43]Read from MH i2c: E2 0E 00 [18:41:43]MH_I2C_Read... [18:41:43]Read from MH i2c: E2 0E 00 A6 5A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 96 [18:41:43]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:41:43]wFMCommunicate OK [18:41:43]SAM_PROTO_GetShiftState done [18:41:43]FM_GetShiftState done [18:41:43]req_shift_opened done [18:41:43]requested_item shift.open_date is exist - process it [18:41:43]req_shift_open_date [18:41:43]req_shift_open_date done [18:41:43]produce_requested_data done [18:41:43]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29020,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [18:41:43]process_action_free close_receipt [18:41:43]json_value_free [18:41:43]json_value_free done [18:41:43]process_json_proto returns [18:41:43]Send response to host [18:41:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29020,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [18:41:43]free response buf [18:41:43]execute_script done [18:41:43]execute_script returns [18:41:43]free content buf [18:41:43]Sock 9.Close socket [18:41:43]Sock 9.Thread stoped [18:41:46]OFD Sender: No OFD packet to send [18:41:51]OFD Sender: No OFD packet to send [18:41:56]OFD Sender: No OFD packet to send [18:42:01]OFD Sender: No OFD packet to send [18:42:06]OFD Sender: No OFD packet to send [18:42:11]OFD Sender: No OFD packet to send [18:42:16]OFD Sender: No OFD packet to send [18:42:21]OFD Sender: No OFD packet to send [18:42:26]OFD Sender: No OFD packet to send [18:42:31]OFD Sender: No OFD packet to send [18:42:36]OFD Sender: No OFD packet to send [18:42:41]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:42]OFD Sender: No OFD packet to send [18:43:47]OFD Sender: No OFD packet to send [18:43:52]OFD Sender: No OFD packet to send [18:43:57]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:10]accept exits with 7 [18:44:10]New connection [18:44:10]New thread 3066785124 created [18:44:10]Thread 3066928484 joined [18:44:10]Waiting for new connection... [18:44:10] Sock 7.Parse request [18:44:10]Sock 7.Check first char [18:44:10]Sock 7.First char is OK [18:44:10]request: POST /json_proto HTTP/1.0 [18:44:10]Method: POST [18:44:10]URL: /json_proto [18:44:10]Method is POST - this is cgi request [18:44:10]url: /json_proto [18:44:10]query_string will be loaded in cgi processing [18:44:10]execute_cgi json_proto POST (null) [18:44:10]execute_cgi path=json_proto method=POST [18:44:10]POST find Content-Length [18:44:10]Host: 172.17.33.3:8080 [18:44:10]Content-Length: 677 [18:44:10]Content-Type: application/json [18:44:10] [18:44:10]POST finish read [18:44:10]Found Content-Length = 677 [18:44:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.980, "sum" : 320.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:10]execute_script... [18:44: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)347384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.980, "sum" : 320.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:10]POST & json_proto [18:44:10]process_json_proto [18:44:10]json parsed OK: [18:44:10]protocol is kg_v1.0 [18:44:10]action value=close_receipt [18:44:10]process_action close_receipt [18:44:10]cmd_close_receipt [18:44:10]MH_GetDate [18:44:10]Write to MH i2c: F0 00 00 A7 5A F0 [18:44:10]Write i2c OK [18:44:10]MH_I2C_Read... [18:44:10]Read from MH i2c: F0 [18:44:10]MH_I2C_Read... [18:44:10]Read from MH i2c: F0 09 00 [18:44:10]MH_I2C_Read... [18:44:10]Read from MH i2c: F0 09 00 A7 5A 00 80 D2 1A 66 23 5B 8F 65 3D [18:44:10]GetLastDocTimeStamp 1713033705 [18:44:10]current date 1713033856 [18:44:10]FM_GetShiftState [18:44:10]SAM_PROTO_GetShiftState [18:44:10]wFMCommunicate request_size=4 [18:44:10]MH_SAM_APDU [18:44:10]CAPDU: 80 13 01 00 [18:44:10]Write to MH i2c: E2 08 00 A8 5A 80 13 01 00 00 00 00 00 7F [18:44:10]Write i2c OK [18:44:10]MH_I2C_Read... [18:44:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:10]Read from MH i2c: E2 [18:44:10]MH_I2C_Read... [18:44:10]Read from MH i2c: E2 0E 00 [18:44:10]MH_I2C_Read... [18:44:10]Read from MH i2c: E2 0E 00 A8 5A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 98 [18:44:10]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:44:10]wFMCommunicate OK [18:44:10]SAM_PROTO_GetShiftState done [18:44:10]FM_GetShiftState done [18:44:10]opened in 1712967615 [18:44:10]opened+sec_in_day 1713054015 [18:44:10]quantity*price = 32021 [18:44:10]sum+1 = 32022 [18:44:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.83 НДС 12% : 34.00 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 228 13.04.2024 18:44 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29021 ФПД: 208004620698210 1/tax-web-control/client/api/v1/ticket?date=20240413T184417&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29021&fm=208004620698210&tin=02508201610067®Number=0000138879044617&sum=32000 [18:44:12]StoreToDocumentArchive [18:44:12]shift 115 fd 29021 [18:44:12]save to /storage/0115/doc_00029021 [18:44:12]save last doc name /storage/0115/doc_00029021 to /storage/kkm_last_doc_name [18:44:12]save OK [18:44:12]Clear old archive folders... [18:44:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:12]tlvbuf is 011EE660 [18:44:12]SAM_PROTO_ClearQueue [18:44:12]wFMCommunicate request_size=4 [18:44:12]MH_SAM_APDU [18:44:12]CAPDU: 80 09 00 00 [18:44:12]Write to MH i2c: E2 08 00 B5 5A 80 09 00 00 00 00 00 00 81 [18:44:12]Write i2c OK [18:44:12]MH_I2C_Read... [18:44:12]Read from MH i2c: E2 [18:44:12]MH_I2C_Read... [18:44:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:12]Read from MH i2c: E2 03 00 [18:44:12]MH_I2C_Read... [18:44:12]Read from MH i2c: E2 03 00 B5 5A 00 90 00 83 [18:44:12]RAPDU: 90 00 [18:44:12]wFMCommunicate OK [18:44:12]SAM_PROTO_ClearQueue done [18:44:12]KKMCreateOFDPacket [18:44:12]OFDProtocolAddRootSTLVToBuf [18:44:12]FM_MakeSignedData [18:44:12]FM_MakeSignedData [18:44:12]SAM_PROTO_SignData [18:44:12]wFMCommunicate request_size=4 [18:44:12]MH_SAM_APDU [18:44:12]CAPDU: 80 0D 01 02 [18:44:12]Write to MH i2c: E2 08 00 B6 5A 80 0D 01 02 00 00 00 00 89 [18:44:12]Write i2c OK [18:44:12]MH_I2C_Read... [18:44:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:12]Read from MH i2c: E2 [18:44:12]MH_I2C_Read... [18:44:12]Read from MH i2c: E2 03 00 [18:44:12]MH_I2C_Read... [18:44:12]Read from MH i2c: E2 03 00 B6 5A 00 90 00 84 [18:44:12]RAPDU: 90 00 [18:44:12]wFMCommunicate OK [18:44:12]wFMCommunicate request_size=255 [18:44:12]MH_SAM_APDU [18:44:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 15 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0D 00 00 00 00 07 04 06 00 00 7D 00 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 81 D2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5D 71 00 00 35 04 06 00 BD [18:44:12]Write to MH i2c: E2 02 01 B7 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 15 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0D 00 00 00 00 07 04 06 00 00 7D 00 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 81 D2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5D 71 00 00 35 04 06 00 BD 00 00 20 [18:44:12]Write i2c OK [18:44:12]MH_I2C_Read... [18:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:12]Read from MH i2c: E2 [18:44:12]MH_I2C_Read... [18:44:12]Read from MH i2c: E2 03 00 [18:44:12]MH_I2C_Read... [18:44:12]Read from MH i2c: E2 03 00 B7 5A 00 90 00 85 [18:44:12]RAPDU: 90 00 [18:44:12]wFMCommunicate OK [18:44:12]wFMCommunicate request_size=10 [18:44:12]MH_SAM_APDU [18:44:12]CAPDU: 80 0D 02 02 05 2D D9 87 42 62 [18:44:12]Write to MH i2c: E2 0D 00 B8 5A 80 0D 02 02 05 00 2D D9 87 42 62 00 00 C7 [18:44:12]Write i2c OK [18:44:12]MH_I2C_Read... [18:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:12]Read from MH i2c: E2 [18:44:12]MH_I2C_Read... [18:44:12]Read from MH i2c: E2 03 00 [18:44:12]MH_I2C_Read... [18:44:12]Read from MH i2c: E2 03 00 B8 5A 00 90 00 86 [18:44:12]RAPDU: 90 00 [18:44:12]wFMCommunicate OK [18:44:12]wFMCommunicate request_size=4 [18:44:12]MH_SAM_APDU [18:44:12]CAPDU: 80 0D 03 02 [18:44:12]Write to MH i2c: E2 08 00 B9 5A 80 0D 03 02 00 00 00 00 8E [18:44:12]Write i2c OK [18:44:12]MH_I2C_Read... [18:44:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:12]Read from MH i2c: E2 [18:44:12]MH_I2C_Read... [18:44:12]Read from MH i2c: E2 0B 00 [18:44:12]MH_I2C_Read... [18:44:12]Read from MH i2c: E2 0B 00 B9 5A 00 9C 78 4C 61 6B 06 FB 72 90 00 2E [18:44:12]RAPDU: 9C 78 4C 61 6B 06 FB 72 90 00 [18:44:12]wFMCommunicate OK [18:44:12]SAM_PROTO_SignData done [18:44:12]FM_MakeSignedData done [18:44:12]CreateOFDProtocolMessage [18:44:12]wFMCommunicate request_size=4 [18:44:12]MH_SAM_APDU [18:44:12]CAPDU: 80 11 00 00 [18:44:12]Write to MH i2c: E2 08 00 BA 5A 80 11 00 00 00 00 00 00 8E [18:44:12]Write i2c OK [18:44:12]MH_I2C_Read... [18:44:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:12]Read from MH i2c: E2 [18:44:12]MH_I2C_Read... [18:44:12]Read from MH i2c: E2 17 00 [18:44:12]MH_I2C_Read... [18:44:12]Read from MH i2c: E2 17 00 BA 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DD [18:44:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:44:12]wFMCommunicate OK [18:44:12]CreateOFDProtocolMessage done [18:44:12]OFDSenderStorePacket 29021 [18:44:12]StoreOFDPacket docnum=29021 [18:44:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 CB 15 07 01 A2 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 15 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0D 00 00 00 00 07 04 06 00 00 7D 00 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 81 D2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5D 71 00 00 35 04 06 00 BD 2D D9 87 42 62 9C 78 4C 61 6B 06 FB 72 [18:44:12]CheckFolder [18:44:12]dirname=/storage/ofd_packets [18:44:12]CheckFolder done [18:44:12]ProducePacketName [18:44:12]name=ofd_packets/00029021 [18:44:12]NVStorageSaveData ofd_packets/00029021 [18:44:12]File name is /storage/ofd_packets/00029021 [18:44:12]Write 301 bytes [18:44:12]NVStorageSaveData done [18:44:12]OFDSenderStorePacket done [18:44:12]KKMCreateOFDPacket done [18:44:12]NVStorageSaveData kkm_last_timestamp [18:44:12]File name is /storage/kkm_last_timestamp [18:44:12]Write 4 bytes [18:44:12]NVStorageSaveData done [18:44:12]ExternCall_PrintAddStr [18:44:12]wPrintStart [18:44:12]Write to MH i2c: 01 00 00 BB 5A 15 [18:44:12]Write i2c OK [18:44:12]MH_I2C_Read... [18:44:12]Read from MH i2c: 01 [18:44:12]MH_I2C_Read... [18:44:12]Read from MH i2c: 01 07 00 [18:44:12]MH_I2C_Read... [18:44:12]Read from MH i2c: 01 07 00 BB 5A 00 00 00 00 00 FF 0F 2A [18:44:12]RasterBufferAndPrint [18:44:12]line Счет N : (1)347384 [18:44:12]line ИНН: 02508201610067 [18:44:12]line Контрольно-Кассовый Чек [18:44:12]line ПРОДАЖА [18:44:12]line ТРК (МРК, ГНК) : 23 [18:44:12]line Товар: 2710124130 [18:44:12]line Аи-92-К-5 [18:44:12]line 4.980 * 64.30 [18:44:12]line = 320.21 [18:44:12]line НДС 12% НСП 1% [18:44:12]line > о реализуемом товаре [18:44:12]line ОКРУГЛЕНИЕ: -0.21 [18:44:12]line ИТОГО: 320.00 [18:44:12]line Внесено: 320.00 [18:44:12]line СДАЧА: 0.00 [18:44:12]line НСП 1% : 2.83 [18:44:12]line НДС 12% : 34.00 [18:44:12]line Наличными: 320.00 [18:44:12]line Безнал.: 0.00 [18:44:12]line Место: АЗС № 108 "Партнер Нефть" [18:44:12]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:44:12]line СНО: Общий режим [18:44:12]line Чек 228 13.04.2024 18:44 [18:44:12]line Смена: 115 ФФД: 1.0 [18:44:12]line ЗНМ: 0300000027 [18:44:12]line РНМ: 0000138879044617 [18:44:12]line Версия ККМ: 001 [18:44:12]line ФМ: 0000000000963154 [18:44:12]line ФД: 29021 [18:44:12]line ФПД: 208004620698210 [18:44:12]line 1/tax-web-control/client/api/v1/ticket?date=20240413T184417&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29021&fm=208004620698210&tin=02508201610067®Number=0000138879044617&sum=32000 [18:44:12]OFD Sender: Processing packet 29021 [packets to send 8, broken 7] [18:44:12]ProducePacketName [18:44:12]name=ofd_packets/00029021 [18:44:12]OFD Sender: To server: pG, [18:44:12]CommunicateWithHost lk.salyk.kg:30040 [18:44:12]ConnectInit lk.salyk.kg [18:44:12]written 0, free lines is 4095 [18:44:13]Connected sock=10 [18:44: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 31 35 34 0F 01 00 00 CB 15 07 01 A2 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 15 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0D 00 00 00 00 07 04 06 00 00 7D 00 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 81 D2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5D 71 00 00 35 04 06 00 BD 2D D9 87 42 62 9C 78 4C 61 6B 06 FB 72 [18:44:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 05 05 47 00 CF 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 31 35 34 10 04 04 00 5D 71 00 00 F4 03 04 00 27 7D 1A 66 B6 04 01 00 00 D2 6D 48 A2 56 33 5A 83 [18:44:13]CommunicateWithHost err = 0 [18:44:13]CheckOFDResponse [18:44:13]1017 (14) - 77093643461234 [18:44:13]1041 (16) - 0000000000963154 [18:44:13]1040 (4) - 29021 [18:44:13]1012 (4) - 13.04.2024 12:40 [18:44:13]1206 (1) - 0 [18:44:13]OFD Sender: Remove packet 29021 [18:44:13]ProducePacketName [18:44:13]name=ofd_packets/00029021 [18:44:13]NVStorageDeleteData [18:44:13]Write to MH i2c: 01 00 00 E5 5A 3F [18:44:13]Write i2c OK [18:44:13]MH_I2C_Read... [18:44:13]Read from MH i2c: 01 [18:44:13]MH_I2C_Read... [18:44:13]Read from MH i2c: 01 07 00 [18:44:13]MH_I2C_Read... [18:44:13]Read from MH i2c: 01 07 00 E5 5A 00 00 00 00 00 C4 0C 16 [18:44:13]RasterBufferAndPrint [18:44:13]line [18:44:13]line [18:44:13]line [18:44:13]line [18:44:13]line [18:44:13]written 0, free lines is 3274 [18:44:13]MH_Cut [18:44:13]Write to MH i2c: D1 01 00 EC 5A 01 18 [18:44:13]Write i2c OK [18:44:13]MH_I2C_Read... [18:44:13]Read from MH i2c: D1 [18:44:13]MH_I2C_Read... [18:44:13]Read from MH i2c: D1 01 00 [18:44:13]MH_I2C_Read... [18:44:13]Read from MH i2c: D1 01 00 EC 5A 00 17 [18:44:13]Write to MH i2c: 01 00 00 ED 5A 47 [18:44:13]Write i2c OK [18:44:13]MH_I2C_Read... [18:44:13]OFD Sender: No OFD packet to send [18:44:14]*** Cut start [18:44:14]*** Partial cut [18:44:14]*** CUTSNS_PIN = 1 [18:44:14]*** CUTSNS_PIN = 0 [18:44:14]*** Brake cut motor [18:44:14]Read from MH i2c: 01 [18:44:14]MH_I2C_Read... [18:44:14]*** Stop cut motor [18:44:14]*** Cut end [18:44:14]Read from MH i2c: 01 07 00 [18:44:14]MH_I2C_Read... [18:44:14]Read from MH i2c: 01 07 00 ED 5A 00 00 00 00 00 FF 0F 5C [18:44:14]process_action close_receipt done [18:44:14]requested_data is exist [18:44:14]produce_requested_data [18:44:14]requested_item fm.sn is exist - process it [18:44:14]wFMCommunicate request_size=4 [18:44:14]MH_SAM_APDU [18:44:14]CAPDU: 80 11 00 00 [18:44:14]Write to MH i2c: E2 08 00 EE 5A 80 11 00 00 00 00 00 00 C2 [18:44:14]Write i2c OK [18:44:14]MH_I2C_Read... [18:44:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:14]Read from MH i2c: E2 [18:44:14]MH_I2C_Read... [18:44:14]Read from MH i2c: E2 17 00 [18:44:14]MH_I2C_Read... [18:44:14]Read from MH i2c: E2 17 00 EE 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 11 [18:44:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:44:14]wFMCommunicate OK [18:44:14]requested_item fd.num is exist - process it [18:44:14]SAM_PROTO_GetFieldsCounters [18:44:14]wFMCommunicate request_size=4 [18:44:14]MH_SAM_APDU [18:44:14]CAPDU: 80 13 00 00 [18:44:14]Write to MH i2c: E2 08 00 EF 5A 80 13 00 00 00 00 00 00 C5 [18:44:14]Write i2c OK [18:44:14]MH_I2C_Read... [18:44:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:14]Read from MH i2c: E2 [18:44:14]MH_I2C_Read... [18:44:14]Read from MH i2c: E2 62 00 [18:44:14]MH_I2C_Read... [18:44:14]Read from MH i2c: E2 62 00 EF 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5D 71 00 00 0E 04 04 00 73 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 F0 [18:44: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5D 71 00 00 0E 04 04 00 73 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 [18:44:15]wFMCommunicate OK [18:44:15]SAM_PROTO_GetFieldsCounters done [18:44:15]requested_item shift.num is exist - process it [18:44:15]requested_item shift.opened is exist - process it [18:44:15]req_shift_opened [18:44:15]FM_GetShiftState [18:44:15]SAM_PROTO_GetShiftState [18:44:15]wFMCommunicate request_size=4 [18:44:15]MH_SAM_APDU [18:44:15]CAPDU: 80 13 01 00 [18:44:15]Write to MH i2c: E2 08 00 F0 5A 80 13 01 00 00 00 00 00 C7 [18:44:15]Write i2c OK [18:44:15]MH_I2C_Read... [18:44:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:15]Read from MH i2c: E2 [18:44:15]MH_I2C_Read... [18:44:15]Read from MH i2c: E2 0E 00 [18:44:15]MH_I2C_Read... [18:44:15]Read from MH i2c: E2 0E 00 F0 5A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 E0 [18:44:15]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:44:15]wFMCommunicate OK [18:44:15]SAM_PROTO_GetShiftState done [18:44:15]FM_GetShiftState done [18:44:15]req_shift_opened done [18:44:15]requested_item shift.open_date is exist - process it [18:44:15]req_shift_open_date [18:44:15]req_shift_open_date done [18:44:15]produce_requested_data done [18:44:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29021,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [18:44:15]process_action_free close_receipt [18:44:15]json_value_free [18:44:15]json_value_free done [18:44:15]process_json_proto returns [18:44:15]Send response to host [18:44:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29021,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [18:44:15]free response buf [18:44:15]execute_script done [18:44:15]execute_script returns [18:44:15]free content buf [18:44:15]Sock 7.Close socket [18:44:15]Sock 7.Thread stoped [18:44:18]OFD Sender: No OFD packet to send [18:44:23]OFD Sender: No OFD packet to send [18:44:28]OFD Sender: No OFD packet to send [18:44:33]OFD Sender: No OFD packet to send [18:44:38]OFD Sender: No OFD packet to send [18:44:43]OFD Sender: No OFD packet to send [18:44:48]OFD Sender: No OFD packet to send [18:44:53]OFD Sender: No OFD packet to send [18:44:58]OFD Sender: No OFD packet to send [18:45:03]OFD Sender: No OFD packet to send [18:45:08]OFD Sender: No OFD packet to send [18:45:13]OFD Sender: No OFD packet to send [18:45:18]OFD Sender: No OFD packet to send [18:45:23]OFD Sender: No OFD packet to send [18:45:28]OFD Sender: No OFD packet to send [18:45:33]OFD Sender: No OFD packet to send [18:45:38]OFD Sender: No OFD packet to send [18:45:43]OFD Sender: No OFD packet to send [18:45:48]OFD Sender: No OFD packet to send [18:45:53]OFD Sender: No OFD packet to send [18:45:58]OFD Sender: No OFD packet to send [18:46:03]OFD Sender: No OFD packet to send [18:46:08]OFD Sender: No OFD packet to send [18:46:13]OFD Sender: No OFD packet to send [18:46:18]OFD Sender: No OFD packet to send [18:46:23]OFD Sender: No OFD packet to send [18:46:28]OFD Sender: No OFD packet to send [18:46:33]OFD Sender: No OFD packet to send [18:46:38]OFD Sender: No OFD packet to send [18:46:43]OFD Sender: No OFD packet to send [18:46:48]OFD Sender: No OFD packet to send [18:46:53]OFD Sender: No OFD packet to send [18:46:58]OFD Sender: No OFD packet to send [18:47:03]OFD Sender: No OFD packet to send [18:47:08]OFD Sender: No OFD packet to send [18:47:13]OFD Sender: No OFD packet to send [18:47:18]OFD Sender: No OFD packet to send [18:47:23]OFD Sender: No OFD packet to send [18:47:28]OFD Sender: No OFD packet to send [18:47:33]OFD Sender: No OFD packet to send [18:47:38]OFD Sender: No OFD packet to send [18:47:43]OFD Sender: No OFD packet to send [18:47:48]OFD Sender: No OFD packet to send [18:47:53]OFD Sender: No OFD packet to send [18:47:58]OFD Sender: No OFD packet to send [18:48:03]OFD Sender: No OFD packet to send [18:48:08]OFD Sender: No OFD packet to send [18:48:13]OFD Sender: No OFD packet to send [18:48:18]OFD Sender: No OFD packet to send [18:48:23]OFD Sender: No OFD packet to send [18:48:28]OFD Sender: No OFD packet to send [18:48:33]OFD Sender: No OFD packet to send [18:48:38]OFD Sender: No OFD packet to send [18:48:43]OFD Sender: No OFD packet to send [18:48:48]OFD Sender: No OFD packet to send [18:48:53]OFD Sender: No OFD packet to send [18:48:58]OFD Sender: No OFD packet to send [18:49:03]OFD Sender: No OFD packet to send [18:49:08]OFD Sender: No OFD packet to send [18:49:13]OFD Sender: No OFD packet to send [18:49:18]OFD Sender: No OFD packet to send [18:49:23]OFD Sender: No OFD packet to send [18:49:28]OFD Sender: No OFD packet to send [18:49:33]OFD Sender: No OFD packet to send [18:49:38]OFD Sender: No OFD packet to send [18:49:43]OFD Sender: No OFD packet to send [18:49:48]OFD Sender: No OFD packet to send [18:49:53]OFD Sender: No OFD packet to send [18:49: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:49]OFD Sender: No OFD packet to send [18:50:54]OFD Sender: No OFD packet to send [18:50:59]OFD Sender: No OFD packet to send [18:51:04]OFD Sender: No OFD packet to send [18:51:09]OFD Sender: No OFD packet to send [18:51:14]OFD Sender: No OFD packet to send [18:51:19]OFD Sender: No OFD packet to send [18:51:24]OFD Sender: No OFD packet to send [18:51:29]OFD Sender: No OFD packet to send [18:51:34]OFD Sender: No OFD packet to send [18:51:39]OFD Sender: No OFD packet to send [18:51:44]OFD Sender: No OFD packet to send [18:51:49]OFD Sender: No OFD packet to send [18:51:54]OFD Sender: No OFD packet to send [18:51:59]OFD Sender: No OFD packet to send [18:52:04]OFD Sender: No OFD packet to send [18:52:04]accept exits with 9 [18:52:04]New connection [18:52:04]New thread 3066928484 created [18:52:04]Thread 3066785124 joined [18:52:04]Waiting for new connection... [18:52:04] Sock 9.Parse request [18:52:04]Sock 9.Check first char [18:52:04]Sock 9.First char is OK [18:52:04]request: POST /json_proto HTTP/1.0 [18:52:04]Method: POST [18:52:04]URL: /json_proto [18:52:04]Method is POST - this is cgi request [18:52:04]url: /json_proto [18:52:04]query_string will be loaded in cgi processing [18:52:04]execute_cgi json_proto POST (null) [18:52:04]execute_cgi path=json_proto method=POST [18:52:04]POST find Content-Length [18:52:04]Host: 172.17.33.3:8080 [18:52:04]Content-Length: 677 [18:52:04]Content-Type: application/json [18:52:04] [18:52:04]POST finish read [18:52:04]Found Content-Length = 677 [18:52:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 8.560, "sum" : 550.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:04]execute_script... [18:52: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)347386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 8.560, "sum" : 550.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:04]POST & json_proto [18:52:04]process_json_proto [18:52:04]json parsed OK: [18:52:04]protocol is kg_v1.0 [18:52:04]action value=close_receipt [18:52:04]process_action close_receipt [18:52:04]cmd_close_receipt [18:52:04]MH_GetDate [18:52:04]Write to MH i2c: F0 00 00 F1 5A 3A [18:52:04]Write i2c OK [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: F0 [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: F0 09 00 [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: F0 09 00 F1 5A 00 5A D4 1A 66 23 5B 8F 65 63 [18:52:04]GetLastDocTimeStamp 1713033857 [18:52:04]current date 1713034330 [18:52:04]FM_GetShiftState [18:52:04]SAM_PROTO_GetShiftState [18:52:04]wFMCommunicate request_size=4 [18:52:04]MH_SAM_APDU [18:52:04]CAPDU: 80 13 01 00 [18:52:04]Write to MH i2c: E2 08 00 F2 5A 80 13 01 00 00 00 00 00 C9 [18:52:04]Write i2c OK [18:52:04]MH_I2C_Read... [18:52:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:04]Read from MH i2c: E2 [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: E2 0E 00 [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: E2 0E 00 F2 5A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 E2 [18:52:04]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:52:04]wFMCommunicate OK [18:52:04]SAM_PROTO_GetShiftState done [18:52:04]FM_GetShiftState done [18:52:04]opened in 1712967615 [18:52:04]opened+sec_in_day 1713054015 [18:52:04]quantity*price = 55040 [18:52:04]sum+1 = 55042 [18:52:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.45 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 229 13.04.2024 18:52 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29022 ФПД: 261824928577372 1/tax-web-control/client/api/v1/ticket?date=20240413T185210&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29022&fm=261824928577372&tin=02508201610067®Number=0000138879044617&sum=55000 [18:52:05]StoreToDocumentArchive [18:52:05]shift 115 fd 29022 [18:52:05]save to /storage/0115/doc_00029022 [18:52:05]save last doc name /storage/0115/doc_00029022 to /storage/kkm_last_doc_name [18:52:05]save OK [18:52:05]Clear old archive folders... [18:52:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:52:05]tlvbuf is 012F36F0 [18:52:05]SAM_PROTO_ClearQueue [18:52:05]wFMCommunicate request_size=4 [18:52:05]MH_SAM_APDU [18:52:05]CAPDU: 80 09 00 00 [18:52:05]Write to MH i2c: E2 08 00 FF 5A 80 09 00 00 00 00 00 00 CB [18:52:05]Write i2c OK [18:52:05]MH_I2C_Read... [18:52:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:52:05]Read from MH i2c: E2 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 03 00 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 03 00 FF 5A 00 90 00 CD [18:52:05]RAPDU: 90 00 [18:52:05]wFMCommunicate OK [18:52:05]SAM_PROTO_ClearQueue done [18:52:05]KKMCreateOFDPacket [18:52:05]OFDProtocolAddRootSTLVToBuf [18:52:05]FM_MakeSignedData [18:52:05]FM_MakeSignedData [18:52:05]SAM_PROTO_SignData [18:52:05]wFMCommunicate request_size=4 [18:52:05]MH_SAM_APDU [18:52:05]CAPDU: 80 0D 01 02 [18:52:05]Write to MH i2c: E2 08 00 00 5B 80 0D 01 02 00 00 00 00 D4 [18:52:05]Write i2c OK [18:52:05]MH_I2C_Read... [18:52:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:52:05]Read from MH i2c: E2 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 03 00 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 03 00 00 5B 00 90 00 CF [18:52:05]RAPDU: 90 00 [18:52:05]wFMCommunicate OK [18:52:05]wFMCommunicate request_size=255 [18:52:05]MH_SAM_APDU [18:52: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 70 21 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 01 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 5A D4 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5E 71 00 00 35 04 06 00 EE [18:52:05]Write to MH i2c: E2 02 01 01 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 21 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 01 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 5A D4 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5E 71 00 00 35 04 06 00 EE 00 00 8D [18:52:05]Write i2c OK [18:52:05]MH_I2C_Read... [18:52:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:05]Read from MH i2c: E2 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 03 00 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 03 00 01 5B 00 90 00 D0 [18:52:05]RAPDU: 90 00 [18:52:05]wFMCommunicate OK [18:52:05]wFMCommunicate request_size=10 [18:52:05]MH_SAM_APDU [18:52:05]CAPDU: 80 0D 02 02 05 20 DD DC 77 5C [18:52:05]Write to MH i2c: E2 0D 00 02 5B 80 0D 02 02 05 00 20 DD DC 77 5C 00 00 8D [18:52:05]Write i2c OK [18:52:05]MH_I2C_Read... [18:52:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:05]Read from MH i2c: E2 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 03 00 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 03 00 02 5B 00 90 00 D1 [18:52:05]RAPDU: 90 00 [18:52:05]wFMCommunicate OK [18:52:05]wFMCommunicate request_size=4 [18:52:05]MH_SAM_APDU [18:52:05]CAPDU: 80 0D 03 02 [18:52:05]Write to MH i2c: E2 08 00 03 5B 80 0D 03 02 00 00 00 00 D9 [18:52:05]Write i2c OK [18:52:05]MH_I2C_Read... [18:52:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:05]Read from MH i2c: E2 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 0B 00 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 0B 00 03 5B 00 27 0A F8 27 07 32 58 F1 90 00 AC [18:52:05]RAPDU: 27 0A F8 27 07 32 58 F1 90 00 [18:52:05]wFMCommunicate OK [18:52:05]SAM_PROTO_SignData done [18:52:05]FM_MakeSignedData done [18:52:05]CreateOFDProtocolMessage [18:52:05]wFMCommunicate request_size=4 [18:52:05]MH_SAM_APDU [18:52:05]CAPDU: 80 11 00 00 [18:52:05]Write to MH i2c: E2 08 00 04 5B 80 11 00 00 00 00 00 00 D9 [18:52:05]Write i2c OK [18:52:05]MH_I2C_Read... [18:52:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:05]Read from MH i2c: E2 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 17 00 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 17 00 04 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 28 [18:52:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:52:05]wFMCommunicate OK [18:52:05]CreateOFDProtocolMessage done [18:52:05]OFDSenderStorePacket 29022 [18:52:05]StoreOFDPacket docnum=29022 [18:52:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 D2 44 07 01 D0 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 21 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 01 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 5A D4 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5E 71 00 00 35 04 06 00 EE 20 DD DC 77 5C 27 0A F8 27 07 32 58 F1 [18:52:05]CheckFolder [18:52:05]dirname=/storage/ofd_packets [18:52:05]CheckFolder done [18:52:05]ProducePacketName [18:52:05]name=ofd_packets/00029022 [18:52:05]NVStorageSaveData ofd_packets/00029022 [18:52:05]File name is /storage/ofd_packets/00029022 [18:52:05]Write 301 bytes [18:52:05]NVStorageSaveData done [18:52:05]OFDSenderStorePacket done [18:52:05]KKMCreateOFDPacket done [18:52:05]NVStorageSaveData kkm_last_timestamp [18:52:05]File name is /storage/kkm_last_timestamp [18:52:05]Write 4 bytes [18:52:05]NVStorageSaveData done [18:52:05]ExternCall_PrintAddStr [18:52:05]wPrintStart [18:52:05]Write to MH i2c: 01 00 00 05 5B 60 [18:52:05]Write i2c OK [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: 01 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: 01 07 00 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: 01 07 00 05 5B 00 00 00 00 00 FF 0F 75 [18:52:05]RasterBufferAndPrint [18:52:05]line Счет N : (1)347386 [18:52:05]line ИНН: 02508201610067 [18:52:05]line Контрольно-Кассовый Чек [18:52:05]line ПРОДАЖА [18:52:05]line ТРК (МРК, ГНК) : 13 [18:52:05]line Товар: 2710124130 [18:52:05]line Аи-92-К-5 [18:52:05]line 8.560 * 64.30 [18:52:05]line = 550.41 [18:52:05]line НДС 12% НСП 1% [18:52:05]line > о реализуемом товаре [18:52:05]line ОКРУГЛЕНИЕ: -0.41 [18:52:05]line ИТОГО: 550.00 [18:52:05]line Внесено: 550.00 [18:52:05]line СДАЧА: 0.00 [18:52:05]line НСП 1% : 4.87 [18:52:05]line НДС 12% : 58.45 [18:52:05]line Наличными: 550.00 [18:52:05]line Безнал.: 0.00 [18:52:05]line Место: АЗС № 108 "Партнер Нефть" [18:52:05]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:52:05]line СНО: Общий режим [18:52:05]line Чек 229 13.04.2024 18:52 [18:52:05]line Смена: 115 ФФД: 1.0 [18:52:05]line ЗНМ: 0300000027 [18:52:05]line РНМ: 0000138879044617 [18:52:05]line Версия ККМ: 001 [18:52:05]line ФМ: 0000000000963154 [18:52:05]line ФД: 29022 [18:52:05]line ФПД: 261824928577372 [18:52:05]line 1/tax-web-control/client/api/v1/ticket?date=20240413T185210&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29022&fm=261824928577372&tin=02508201610067®Number=0000138879044617&sum=55000 [18:52:06]OFD Sender: Processing packet 29022 [packets to send 8, broken 7] [18:52:06]ProducePacketName [18:52:06]name=ofd_packets/00029022 [18:52:06]OFD Sender: To server: pG, [18:52:06]CommunicateWithHost lk.salyk.kg:30040 [18:52:06]ConnectInit lk.salyk.kg [18:52:06]written 0, free lines is 4095 [18:52:06]Connected sock=11 [18:52: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 31 35 34 0F 01 00 00 D2 44 07 01 D0 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 21 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 01 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 5A D4 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5E 71 00 00 35 04 06 00 EE 20 DD DC 77 5C 27 0A F8 27 07 32 58 F1 [18:52:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C3 DD 47 00 7A 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 31 35 34 10 04 04 00 5E 71 00 00 F4 03 04 00 00 7F 1A 66 B6 04 01 00 00 AA 2C 9F CD 36 BF 17 14 [18:52:06]CommunicateWithHost err = 0 [18:52:06]CheckOFDResponse [18:52:06]1017 (14) - 77093643461234 [18:52:06]1041 (16) - 0000000000963154 [18:52:06]1040 (4) - 29022 [18:52:06]1012 (4) - 13.04.2024 12:48 [18:52:06]1206 (1) - 0 [18:52:06]OFD Sender: Remove packet 29022 [18:52:06]ProducePacketName [18:52:06]name=ofd_packets/00029022 [18:52:06]NVStorageDeleteData [18:52:06]Write to MH i2c: 01 00 00 2F 5B 8A [18:52:06]Write i2c OK [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: 01 [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: 01 07 00 [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: 01 07 00 2F 5B 00 00 00 00 00 C5 0C 62 [18:52:06]RasterBufferAndPrint [18:52:06]line [18:52:06]line [18:52:06]line [18:52:06]line [18:52:06]line [18:52:06]written 0, free lines is 3274 [18:52:06]MH_Cut [18:52:06]Write to MH i2c: D1 01 00 36 5B 01 63 [18:52:06]Write i2c OK [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: D1 [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: D1 01 00 [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: D1 01 00 36 5B 00 62 [18:52:06]Write to MH i2c: 01 00 00 37 5B 92 [18:52:06]Write i2c OK [18:52:06]MH_I2C_Read... [18:52:06]OFD Sender: No OFD packet to send [18:52:07]*** Cut start [18:52:07]*** Partial cut [18:52:07]*** CUTSNS_PIN = 1 [18:52:07]*** CUTSNS_PIN = 0 [18:52:07]*** Brake cut motor [18:52:08]Read from MH i2c: 01 [18:52:08]MH_I2C_Read... [18:52:08]*** Stop cut motor [18:52:08]*** Cut end [18:52:08]Read from MH i2c: 01 07 00 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: 01 07 00 37 5B 00 00 00 00 00 FF 0F A7 [18:52:08]process_action close_receipt done [18:52:08]requested_data is exist [18:52:08]produce_requested_data [18:52:08]requested_item fm.sn is exist - process it [18:52:08]wFMCommunicate request_size=4 [18:52:08]MH_SAM_APDU [18:52:08]CAPDU: 80 11 00 00 [18:52:08]Write to MH i2c: E2 08 00 38 5B 80 11 00 00 00 00 00 00 0D [18:52:08]Write i2c OK [18:52:08]MH_I2C_Read... [18:52:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:08]Read from MH i2c: E2 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 17 00 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 17 00 38 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5C [18:52:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:52:08]wFMCommunicate OK [18:52:08]requested_item fd.num is exist - process it [18:52:08]SAM_PROTO_GetFieldsCounters [18:52:08]wFMCommunicate request_size=4 [18:52:08]MH_SAM_APDU [18:52:08]CAPDU: 80 13 00 00 [18:52:08]Write to MH i2c: E2 08 00 39 5B 80 13 00 00 00 00 00 00 10 [18:52:08]Write i2c OK [18:52:08]MH_I2C_Read... [18:52:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:08]Read from MH i2c: E2 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 62 00 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 62 00 39 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5E 71 00 00 0E 04 04 00 73 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 3F [18:52: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5E 71 00 00 0E 04 04 00 73 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 [18:52:08]wFMCommunicate OK [18:52:08]SAM_PROTO_GetFieldsCounters done [18:52:08]requested_item shift.num is exist - process it [18:52:08]requested_item shift.opened is exist - process it [18:52:08]req_shift_opened [18:52:08]FM_GetShiftState [18:52:08]SAM_PROTO_GetShiftState [18:52:08]wFMCommunicate request_size=4 [18:52:08]MH_SAM_APDU [18:52:08]CAPDU: 80 13 01 00 [18:52:08]Write to MH i2c: E2 08 00 3A 5B 80 13 01 00 00 00 00 00 12 [18:52:08]Write i2c OK [18:52:08]MH_I2C_Read... [18:52:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:08]Read from MH i2c: E2 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 0E 00 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 0E 00 3A 5B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 2B [18:52:08]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:52:08]wFMCommunicate OK [18:52:08]SAM_PROTO_GetShiftState done [18:52:08]FM_GetShiftState done [18:52:08]req_shift_opened done [18:52:08]requested_item shift.open_date is exist - process it [18:52:08]req_shift_open_date [18:52:08]req_shift_open_date done [18:52:08]produce_requested_data done [18:52:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29022,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [18:52:08]process_action_free close_receipt [18:52:08]json_value_free [18:52:08]json_value_free done [18:52:08]process_json_proto returns [18:52:08]Send response to host [18:52:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29022,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [18:52:08]free response buf [18:52:08]execute_script done [18:52:08]execute_script returns [18:52:08]free content buf [18:52:08]Sock 9.Close socket [18:52:08]Sock 9.Thread stoped [18:52:11]OFD Sender: No OFD packet to send [18:52:16]accept exits with 7 [18:52:16]New connection [18:52:16]New thread 3066785124 created [18:52:16]Thread 3066928484 joined [18:52:16]Waiting for new connection... [18:52:16] Sock 7.Parse request [18:52:16]Sock 7.Check first char [18:52:16]Sock 7.First char is OK [18:52:16]request: POST /json_proto HTTP/1.0 [18:52:16]Method: POST [18:52:16]URL: /json_proto [18:52:16]Method is POST - this is cgi request [18:52:16]url: /json_proto [18:52:16]query_string will be loaded in cgi processing [18:52:16]execute_cgi json_proto POST (null) [18:52:16]execute_cgi path=json_proto method=POST [18:52:16]POST find Content-Length [18:52:16]Host: 172.17.33.3:8080 [18:52:16]Content-Length: 846 [18:52:16]Content-Type: application/json [18:52:16] [18:52:16]POST finish read [18:52:16]Found Content-Length = 846 [18:52:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:16]execute_script... [18:52: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)347385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:16]POST & json_proto [18:52:16]process_json_proto [18:52:16]json parsed OK: [18:52:16]protocol is kg_v1.0 [18:52:16]action value=close_receipt [18:52:16]process_action close_receipt [18:52:16]cmd_close_receipt [18:52:16]MH_GetDate [18:52:16]Write to MH i2c: F0 00 00 3B 5B 85 [18:52:16]Write i2c OK [18:52:16]MH_I2C_Read... [18:52:16]Read from MH i2c: F0 [18:52:16]MH_I2C_Read... [18:52:16]Read from MH i2c: F0 09 00 [18:52:16]MH_I2C_Read... [18:52:16]Read from MH i2c: F0 09 00 3B 5B 00 66 D4 1A 66 23 5B 8F 65 BA [18:52:16]GetLastDocTimeStamp 1713034330 [18:52:16]current date 1713034342 [18:52:16]FM_GetShiftState [18:52:16]SAM_PROTO_GetShiftState [18:52:16]wFMCommunicate request_size=4 [18:52:16]MH_SAM_APDU [18:52:16]CAPDU: 80 13 01 00 [18:52:16]Write to MH i2c: E2 08 00 3C 5B 80 13 01 00 00 00 00 00 14 [18:52:16]Write i2c OK [18:52:16]MH_I2C_Read... [18:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:16]Read from MH i2c: E2 [18:52:16]MH_I2C_Read... [18:52:16]Read from MH i2c: E2 0E 00 [18:52:16]MH_I2C_Read... [18:52:16]Read from MH i2c: E2 0E 00 3C 5B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 2D [18:52:16]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:52:16]wFMCommunicate OK [18:52:16]SAM_PROTO_GetShiftState done [18:52:16]FM_GetShiftState done [18:52:16]opened in 1712967615 [18:52:16]opened+sec_in_day 1713054015 [18:52:16]quantity*price = 100016 [18:52:16]sum+1 = 100017 [18:52:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 230 13.04.2024 18:52 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29023 ФПД: 12142883472223 1/tax-web-control/client/api/v1/ticket?date=20240413T185222&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29023&fm=12142883472223&tin=02508201610067®Number=0000138879044617&sum=100016 [18:52:17]StoreToDocumentArchive [18:52:17]shift 115 fd 29023 [18:52:17]save to /storage/0115/doc_00029023 [18:52:17]save last doc name /storage/0115/doc_00029023 to /storage/kkm_last_doc_name [18:52:17]save OK [18:52:17]Clear old archive folders... [18:52:17]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:52:17]tlvbuf is 011E3300 [18:52:17]SAM_PROTO_ClearQueue [18:52:17]wFMCommunicate request_size=4 [18:52:17]MH_SAM_APDU [18:52:17]CAPDU: 80 09 00 00 [18:52:17]Write to MH i2c: E2 08 00 49 5B 80 09 00 00 00 00 00 00 16 [18:52:17]Write i2c OK [18:52:17]MH_I2C_Read... [18:52:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:52:17]Read from MH i2c: E2 [18:52:17]MH_I2C_Read... [18:52:17]Read from MH i2c: E2 03 00 [18:52:17]MH_I2C_Read... [18:52:17]Read from MH i2c: E2 03 00 49 5B 00 90 00 18 [18:52:17]RAPDU: 90 00 [18:52:17]wFMCommunicate OK [18:52:17]SAM_PROTO_ClearQueue done [18:52:17]KKMCreateOFDPacket [18:52:17]OFDProtocolAddRootSTLVToBuf [18:52:17]FM_MakeSignedData [18:52:17]FM_MakeSignedData [18:52:17]SAM_PROTO_SignData [18:52:17]wFMCommunicate request_size=4 [18:52:17]MH_SAM_APDU [18:52:17]CAPDU: 80 0D 01 02 [18:52:17]Write to MH i2c: E2 08 00 4A 5B 80 0D 01 02 00 00 00 00 1E [18:52:17]Write i2c OK [18:52:17]MH_I2C_Read... [18:52:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:52:17]Read from MH i2c: E2 [18:52:17]MH_I2C_Read... [18:52:17]Read from MH i2c: E2 03 00 [18:52:17]MH_I2C_Read... [18:52:17]Read from MH i2c: E2 03 00 4A 5B 00 90 00 19 [18:52:17]RAPDU: 90 00 [18:52:17]wFMCommunicate OK [18:52:17]wFMCommunicate request_size=255 [18:52:17]MH_SAM_APDU [18:52:17]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 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 E6 00 00 00 F4 03 04 00 66 D4 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5F 71 00 00 35 04 06 00 0B 0B [18:52:17]Write to MH i2c: E2 02 01 4B 5B 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 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 E6 00 00 00 F4 03 04 00 66 D4 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5F 71 00 00 35 04 06 00 0B 0B 00 00 CD [18:52:17]Write i2c OK [18:52:17]MH_I2C_Read... [18:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:18]Read from MH i2c: E2 [18:52:18]MH_I2C_Read... [18:52:18]Read from MH i2c: E2 03 00 [18:52:18]MH_I2C_Read... [18:52:18]Read from MH i2c: E2 03 00 4B 5B 00 90 00 1A [18:52:18]RAPDU: 90 00 [18:52:18]wFMCommunicate OK [18:52:18]wFMCommunicate request_size=9 [18:52:18]MH_SAM_APDU [18:52:18]CAPDU: 80 0D 02 02 04 3C 41 83 5F [18:52:18]Write to MH i2c: E2 0C 00 4C 5B 80 0D 02 02 04 00 3C 41 83 5F 00 00 88 [18:52:18]Write i2c OK [18:52:18]MH_I2C_Read... [18:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:18]Read from MH i2c: E2 [18:52:18]MH_I2C_Read... [18:52:18]Read from MH i2c: E2 03 00 [18:52:18]MH_I2C_Read... [18:52:18]Read from MH i2c: E2 03 00 4C 5B 00 90 00 1B [18:52:18]RAPDU: 90 00 [18:52:18]wFMCommunicate OK [18:52:18]wFMCommunicate request_size=4 [18:52:18]MH_SAM_APDU [18:52:18]CAPDU: 80 0D 03 02 [18:52:18]Write to MH i2c: E2 08 00 4D 5B 80 0D 03 02 00 00 00 00 23 [18:52:18]Write i2c OK [18:52:18]MH_I2C_Read... [18:52:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:18]Read from MH i2c: E2 [18:52:18]MH_I2C_Read... [18:52:18]Read from MH i2c: E2 0B 00 [18:52:18]MH_I2C_Read... [18:52:18]Read from MH i2c: E2 0B 00 4D 5B 00 9D F2 65 5D 8A DD 06 5C 90 00 3E [18:52:18]RAPDU: 9D F2 65 5D 8A DD 06 5C 90 00 [18:52:18]wFMCommunicate OK [18:52:18]SAM_PROTO_SignData done [18:52:18]FM_MakeSignedData done [18:52:18]CreateOFDProtocolMessage [18:52:18]wFMCommunicate request_size=4 [18:52:18]MH_SAM_APDU [18:52:18]CAPDU: 80 11 00 00 [18:52:18]Write to MH i2c: E2 08 00 4E 5B 80 11 00 00 00 00 00 00 23 [18:52:18]Write i2c OK [18:52:18]MH_I2C_Read... [18:52:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:18]Read from MH i2c: E2 [18:52:18]MH_I2C_Read... [18:52:18]Read from MH i2c: E2 17 00 [18:52:18]MH_I2C_Read... [18:52:18]Read from MH i2c: E2 17 00 4E 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 72 [18:52:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:52:18]wFMCommunicate OK [18:52:18]CreateOFDProtocolMessage done [18:52:18]OFDSenderStorePacket 29023 [18:52:18]StoreOFDPacket docnum=29023 [18:52:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 C8 69 06 01 DF 6D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 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 E6 00 00 00 F4 03 04 00 66 D4 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5F 71 00 00 35 04 06 00 0B 0B 3C 41 83 5F 9D F2 65 5D 8A DD 06 5C [18:52:18]CheckFolder [18:52:18]dirname=/storage/ofd_packets [18:52:18]CheckFolder done [18:52:18]ProducePacketName [18:52:18]name=ofd_packets/00029023 [18:52:18]NVStorageSaveData ofd_packets/00029023 [18:52:18]File name is /storage/ofd_packets/00029023 [18:52:18]Write 300 bytes [18:52:18]NVStorageSaveData done [18:52:18]OFDSenderStorePacket done [18:52:18]KKMCreateOFDPacket done [18:52:18]NVStorageSaveData kkm_last_timestamp [18:52:18]File name is /storage/kkm_last_timestamp [18:52:18]Write 4 bytes [18:52:18]NVStorageSaveData done [18:52:18]ExternCall_PrintAddStr [18:52:18]wPrintStart [18:52:18]Write to MH i2c: 01 00 00 4F 5B AA [18:52:18]Write i2c OK [18:52:18]MH_I2C_Read... [18:52:18]Read from MH i2c: 01 [18:52:18]MH_I2C_Read... [18:52:18]Read from MH i2c: 01 07 00 [18:52:18]MH_I2C_Read... [18:52:18]Read from MH i2c: 01 07 00 4F 5B 00 00 00 00 00 FF 0F BF [18:52:18]RasterBufferAndPrint [18:52:18]line Счет N : (1)347385 [18:52:18]line ИНН: 02508201610067 [18:52:18]line Контрольно-Кассовый Чек [18:52:18]line ПРОДАЖА [18:52:18]line ТРК (МРК, ГНК) : 71 [18:52:18]line Товар: 2711129700 [18:52:18]line ГАЗ-К-5 [18:52:18]line 30.400 * 32.90 [18:52:18]line = 1000.16 [18:52:18]line НДС 12% НСП 1% [18:52:18]line > о реализуемом товаре [18:52:18]line ИТОГО: 1000.16 [18:52:18]line НСП 1% : 8.85 [18:52:18]line НДС 12% : 106.21 [18:52:18]line Наличными: 0.00 [18:52:18]line Безнал.: 1000.16 [18:52:18]line Место: АЗС № 108 "Партнер Нефть" [18:52:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:52:18]line СНО: Общий режим [18:52:18]line Чек 230 13.04.2024 18:52 [18:52:18]line Смена: 115 ФФД: 1.0 [18:52:18]line ЗНМ: 0300000027 [18:52:18]line РНМ: 0000138879044617 [18:52:18]line Версия ККМ: 001 [18:52:18]line Платежная система: АКБ Кыргызстан [18:52:18]line ФМ: 0000000000963154 [18:52:18]line ФД: 29023 [18:52:18]line ФПД: 12142883472223 [18:52:18]line 1/tax-web-control/client/api/v1/ticket?date=20240413T185222&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29023&fm=12142883472223&tin=02508201610067®Number=0000138879044617&sum=100016 [18:52:18]OFD Sender: Processing packet 29023 [packets to send 8, broken 7] [18:52:18]ProducePacketName [18:52:18]name=ofd_packets/00029023 [18:52:18]OFD Sender: To server: pG, [18:52:18]CommunicateWithHost lk.salyk.kg:30040 [18:52:18]ConnectInit lk.salyk.kg [18:52:18]written 0, free lines is 4095 [18:52:18]Connected sock=9 [18:52: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 31 35 34 0E 01 00 00 C8 69 06 01 DF 6D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 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 E6 00 00 00 F4 03 04 00 66 D4 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 5F 71 00 00 35 04 06 00 0B 0B 3C 41 83 5F 9D F2 65 5D 8A DD 06 5C [18:52:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 97 3B 47 00 06 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 31 35 34 10 04 04 00 5F 71 00 00 F4 03 04 00 0D 7F 1A 66 B6 04 01 00 00 7D 18 2E B0 36 FB 79 2B [18:52:18]CommunicateWithHost err = 0 [18:52:18]CheckOFDResponse [18:52:18]1017 (14) - 77093643461234 [18:52:18]1041 (16) - 0000000000963154 [18:52:18]1040 (4) - 29023 [18:52:18]1012 (4) - 13.04.2024 12:48 [18:52:18]1206 (1) - 0 [18:52:18]OFD Sender: Remove packet 29023 [18:52:18]ProducePacketName [18:52:18]name=ofd_packets/00029023 [18:52:18]NVStorageDeleteData [18:52:19]Write to MH i2c: 01 00 00 78 5B D3 [18:52:19]Write i2c OK [18:52:19]MH_I2C_Read... [18:52:19]Read from MH i2c: 01 [18:52:19]MH_I2C_Read... [18:52:19]Read from MH i2c: 01 07 00 [18:52:19]MH_I2C_Read... [18:52:19]Read from MH i2c: 01 07 00 78 5B 00 00 00 00 00 DE 0C C4 [18:52:19]RasterBufferAndPrint [18:52:19]line [18:52:19]line [18:52:19]line [18:52:19]line [18:52:19]line [18:52:19]written 0, free lines is 3300 [18:52:19]MH_Cut [18:52:19]Write to MH i2c: D1 01 00 7F 5B 01 AC [18:52:19]Write i2c OK [18:52:19]MH_I2C_Read... [18:52:19]Read from MH i2c: D1 [18:52:19]MH_I2C_Read... [18:52:19]Read from MH i2c: D1 01 00 [18:52:19]MH_I2C_Read... [18:52:19]Read from MH i2c: D1 01 00 7F 5B 00 AB [18:52:19]Write to MH i2c: 01 00 00 80 5B DB [18:52:19]Write i2c OK [18:52:19]MH_I2C_Read... [18:52:19]OFD Sender: No OFD packet to send [18:52:19]*** Cut start [18:52:19]*** Partial cut [18:52:19]*** CUTSNS_PIN = 1 [18:52:19]*** CUTSNS_PIN = 0 [18:52:20]*** Brake cut motor [18:52:20]Read from MH i2c: 01 [18:52:20]MH_I2C_Read... [18:52:20]*** Stop cut motor [18:52:20]*** Cut end [18:52:20]Read from MH i2c: 01 07 00 [18:52:20]MH_I2C_Read... [18:52:20]Read from MH i2c: 01 07 00 80 5B 00 00 00 00 00 FF 0F F0 [18:52:20]process_action close_receipt done [18:52:20]requested_data is exist [18:52:20]produce_requested_data [18:52:20]requested_item fm.sn is exist - process it [18:52:20]wFMCommunicate request_size=4 [18:52:20]MH_SAM_APDU [18:52:20]CAPDU: 80 11 00 00 [18:52:20]Write to MH i2c: E2 08 00 81 5B 80 11 00 00 00 00 00 00 56 [18:52:20]Write i2c OK [18:52:20]MH_I2C_Read... [18:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:20]Read from MH i2c: E2 [18:52:20]MH_I2C_Read... [18:52:20]Read from MH i2c: E2 17 00 [18:52:20]MH_I2C_Read... [18:52:20]Read from MH i2c: E2 17 00 81 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A5 [18:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:52:20]wFMCommunicate OK [18:52:20]requested_item fd.num is exist - process it [18:52:20]SAM_PROTO_GetFieldsCounters [18:52:20]wFMCommunicate request_size=4 [18:52:20]MH_SAM_APDU [18:52:20]CAPDU: 80 13 00 00 [18:52:20]Write to MH i2c: E2 08 00 82 5B 80 13 00 00 00 00 00 00 59 [18:52:20]Write i2c OK [18:52:20]MH_I2C_Read... [18:52:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:20]Read from MH i2c: E2 [18:52:20]MH_I2C_Read... [18:52:20]Read from MH i2c: E2 62 00 [18:52:20]MH_I2C_Read... [18:52:20]Read from MH i2c: E2 62 00 82 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5F 71 00 00 0E 04 04 00 73 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 8C [18:52: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 5F 71 00 00 0E 04 04 00 73 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 [18:52:20]wFMCommunicate OK [18:52:20]SAM_PROTO_GetFieldsCounters done [18:52:20]requested_item shift.num is exist - process it [18:52:20]requested_item shift.opened is exist - process it [18:52:20]req_shift_opened [18:52:20]FM_GetShiftState [18:52:20]SAM_PROTO_GetShiftState [18:52:20]wFMCommunicate request_size=4 [18:52:20]MH_SAM_APDU [18:52:20]CAPDU: 80 13 01 00 [18:52:20]Write to MH i2c: E2 08 00 83 5B 80 13 01 00 00 00 00 00 5B [18:52:20]Write i2c OK [18:52:20]MH_I2C_Read... [18:52:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:20]Read from MH i2c: E2 [18:52:20]MH_I2C_Read... [18:52:20]Read from MH i2c: E2 0E 00 [18:52:20]MH_I2C_Read... [18:52:20]Read from MH i2c: E2 0E 00 83 5B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 74 [18:52:20]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:52:20]wFMCommunicate OK [18:52:20]SAM_PROTO_GetShiftState done [18:52:20]FM_GetShiftState done [18:52:20]req_shift_opened done [18:52:20]requested_item shift.open_date is exist - process it [18:52:20]req_shift_open_date [18:52:20]req_shift_open_date done [18:52:20]produce_requested_data done [18:52:20]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29023,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [18:52:20]process_action_free close_receipt [18:52:20]json_value_free [18:52:20]json_value_free done [18:52:20]process_json_proto returns [18:52:20]Send response to host [18:52:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29023,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [18:52:20]free response buf [18:52:20]execute_script done [18:52:20]execute_script returns [18:52:20]free content buf [18:52:20]Sock 7.Close socket [18:52:20]Sock 7.Thread stoped [18:52:24]OFD Sender: No OFD packet to send [18:52:29]OFD Sender: No OFD packet to send [18:52:34]OFD Sender: No OFD packet to send [18:52:39]OFD Sender: No OFD packet to send [18:52:44]OFD Sender: No OFD packet to send [18:52:49]OFD Sender: No OFD packet to send [18:52:54]OFD Sender: No OFD packet to send [18:52:59]OFD Sender: No OFD packet to send [18:53:04]OFD Sender: No OFD packet to send [18:53:09]OFD Sender: No OFD packet to send [18:53:14]OFD Sender: No OFD packet to send [18:53:19]OFD Sender: No OFD packet to send [18:53:24]OFD Sender: No OFD packet to send [18:53:29]OFD Sender: No OFD packet to send [18:53:34]OFD Sender: No OFD packet to send [18:53:39]OFD Sender: No OFD packet to send [18:53:44]OFD Sender: No OFD packet to send [18:53:49]OFD Sender: No OFD packet to send [18:53:54]OFD Sender: No OFD packet to send [18:53:59]OFD Sender: No OFD packet to send [18:54:04]OFD Sender: No OFD packet to send [18:54:09]OFD Sender: No OFD packet to send [18:54:14]OFD Sender: No OFD packet to send [18:54:19]OFD Sender: No OFD packet to send [18:54:24]OFD Sender: No OFD packet to send [18:54:29]OFD Sender: No OFD packet to send [18:54:34]OFD Sender: No OFD packet to send [18:54:39]OFD Sender: No OFD packet to send [18:54:44]OFD Sender: No OFD packet to send [18:54:49]OFD Sender: No OFD packet to send [18:54:54]OFD Sender: No OFD packet to send [18:54:59]OFD Sender: No OFD packet to send [18:55:04]OFD Sender: No OFD packet to send [18:55:09]OFD Sender: No OFD packet to send [18:55:14]OFD Sender: No OFD packet to send [18:55:19]OFD Sender: No OFD packet to send [18:55:24]OFD Sender: No OFD packet to send [18:55:29]OFD Sender: No OFD packet to send [18:55:34]OFD Sender: No OFD packet to send [18:55:39]OFD Sender: No OFD packet to send [18:55:44]OFD Sender: No OFD packet to send [18:55:49]OFD Sender: No OFD packet to send [18:55:54]OFD Sender: No OFD packet to send [18:55:59]OFD Sender: No OFD packet to send [18:56:04]OFD Sender: No OFD packet to send [18:56:04]accept exits with 10 [18:56:04]New connection [18:56:04]New thread 3066928484 created [18:56:04]Thread 3066785124 joined [18:56:04]Waiting for new connection... [18:56:04] Sock 10.Parse request [18:56:04]Sock 10.Check first char [18:56:04]Sock 10.First char is OK [18:56:04]request: POST /json_proto HTTP/1.0 [18:56:04]Method: POST [18:56:04]URL: /json_proto [18:56:04]Method is POST - this is cgi request [18:56:04]url: /json_proto [18:56:04]query_string will be loaded in cgi processing [18:56:04]execute_cgi json_proto POST (null) [18:56:04]execute_cgi path=json_proto method=POST [18:56:04]POST find Content-Length [18:56:04]Host: 172.17.33.3:8080 [18:56:04]Content-Length: 808 [18:56:04]Content-Type: application/json [18:56:04] [18:56:04]POST finish read [18:56:04]Found Content-Length = 808 [18:56:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347387", "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" : 64.30, "quantity" : 46.660, "sum" : 3000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:04]execute_script... [18:56: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)347387", "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" : 64.30, "quantity" : 46.660, "sum" : 3000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:04]POST & json_proto [18:56:04]process_json_proto [18:56:04]json parsed OK: [18:56:04]protocol is kg_v1.0 [18:56:04]action value=close_receipt [18:56:04]process_action close_receipt [18:56:04]cmd_close_receipt [18:56:04]MH_GetDate [18:56:04]Write to MH i2c: F0 00 00 84 5B CE [18:56:04]Write i2c OK [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: F0 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: F0 09 00 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: F0 09 00 84 5B 00 4A D5 1A 66 23 5B 8F 65 E8 [18:56:04]GetLastDocTimeStamp 1713034342 [18:56:04]current date 1713034570 [18:56:04]FM_GetShiftState [18:56:04]SAM_PROTO_GetShiftState [18:56:04]wFMCommunicate request_size=4 [18:56:04]MH_SAM_APDU [18:56:04]CAPDU: 80 13 01 00 [18:56:04]Write to MH i2c: E2 08 00 85 5B 80 13 01 00 00 00 00 00 5D [18:56:04]Write i2c OK [18:56:04]MH_I2C_Read... [18:56:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:04]Read from MH i2c: E2 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 0E 00 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 0E 00 85 5B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 76 [18:56:04]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:56:04]wFMCommunicate OK [18:56:04]SAM_PROTO_GetShiftState done [18:56:04]FM_GetShiftState done [18:56:04]opened in 1712967615 [18:56:04]opened+sec_in_day 1713054015 [18:56:04]quantity*price = 300023 [18:56:04]sum+1 = 300025 [18:56:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.24 НСП 1% : 26.55 НДС 12% : 318.61 Наличными: 0.00 Безнал.: 3000.24 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 231 13.04.2024 18:56 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29024 ФПД: 57823016649919 1/tax-web-control/client/api/v1/ticket?date=20240413T185610&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29024&fm=57823016649919&tin=02508201610067®Number=0000138879044617&sum=300024 [18:56:06]StoreToDocumentArchive [18:56:06]shift 115 fd 29024 [18:56:06]save to /storage/0115/doc_00029024 [18:56:06]save last doc name /storage/0115/doc_00029024 to /storage/kkm_last_doc_name [18:56:06]save OK [18:56:06]Clear old archive folders... [18:56:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:56:06]tlvbuf is 011B6FD0 [18:56:06]SAM_PROTO_ClearQueue [18:56:06]wFMCommunicate request_size=4 [18:56:06]MH_SAM_APDU [18:56:06]CAPDU: 80 09 00 00 [18:56:06]Write to MH i2c: E2 08 00 92 5B 80 09 00 00 00 00 00 00 5F [18:56:06]Write i2c OK [18:56:06]MH_I2C_Read... [18:56:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:06]Read from MH i2c: E2 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 03 00 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 03 00 92 5B 00 90 00 61 [18:56:06]RAPDU: 90 00 [18:56:06]wFMCommunicate OK [18:56:06]SAM_PROTO_ClearQueue done [18:56:06]KKMCreateOFDPacket [18:56:06]OFDProtocolAddRootSTLVToBuf [18:56:06]FM_MakeSignedData [18:56:06]FM_MakeSignedData [18:56:06]SAM_PROTO_SignData [18:56:06]wFMCommunicate request_size=4 [18:56:06]MH_SAM_APDU [18:56:06]CAPDU: 80 0D 01 02 [18:56:06]Write to MH i2c: E2 08 00 93 5B 80 0D 01 02 00 00 00 00 67 [18:56:06]Write i2c OK [18:56:06]MH_I2C_Read... [18:56:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:06]Read from MH i2c: E2 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 03 00 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 03 00 93 5B 00 90 00 62 [18:56:06]RAPDU: 90 00 [18:56:06]wFMCommunicate OK [18:56:06]wFMCommunicate request_size=255 [18:56:06]MH_SAM_APDU [18:56: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 44 B6 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F8 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 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 75 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 4A D5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 60 71 00 00 35 04 06 00 34 [18:56:06]Write to MH i2c: E2 02 01 94 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 B6 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F8 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 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 75 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 4A D5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 60 71 00 00 35 04 06 00 34 00 00 C4 [18:56:06]Write i2c OK [18:56:06]MH_I2C_Read... [18:56:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:06]Read from MH i2c: E2 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 03 00 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 03 00 94 5B 00 90 00 63 [18:56:06]RAPDU: 90 00 [18:56:06]wFMCommunicate OK [18:56:06]wFMCommunicate request_size=10 [18:56:06]MH_SAM_APDU [18:56:06]CAPDU: 80 0D 02 02 05 96 F8 5E 04 BF [18:56:06]Write to MH i2c: E2 0D 00 95 5B 80 0D 02 02 05 00 96 F8 5E 04 BF 00 00 23 [18:56:06]Write i2c OK [18:56:06]MH_I2C_Read... [18:56:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:06]Read from MH i2c: E2 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 03 00 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 03 00 95 5B 00 90 00 64 [18:56:06]RAPDU: 90 00 [18:56:06]wFMCommunicate OK [18:56:06]wFMCommunicate request_size=4 [18:56:06]MH_SAM_APDU [18:56:06]CAPDU: 80 0D 03 02 [18:56:06]Write to MH i2c: E2 08 00 96 5B 80 0D 03 02 00 00 00 00 6C [18:56:06]Write i2c OK [18:56:06]MH_I2C_Read... [18:56:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:06]Read from MH i2c: E2 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 0B 00 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 0B 00 96 5B 00 D0 43 75 D8 48 2C B6 69 90 00 60 [18:56:06]RAPDU: D0 43 75 D8 48 2C B6 69 90 00 [18:56:06]wFMCommunicate OK [18:56:06]SAM_PROTO_SignData done [18:56:06]FM_MakeSignedData done [18:56:06]CreateOFDProtocolMessage [18:56:06]wFMCommunicate request_size=4 [18:56:06]MH_SAM_APDU [18:56:06]CAPDU: 80 11 00 00 [18:56:06]Write to MH i2c: E2 08 00 97 5B 80 11 00 00 00 00 00 00 6C [18:56:06]Write i2c OK [18:56:06]MH_I2C_Read... [18:56:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:06]Read from MH i2c: E2 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 17 00 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 17 00 97 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BB [18:56:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:56:06]wFMCommunicate OK [18:56:06]CreateOFDProtocolMessage done [18:56:06]OFDSenderStorePacket 29024 [18:56:06]StoreOFDPacket docnum=29024 [18:56:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 10 26 07 01 95 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 44 B6 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F8 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 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 75 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 4A D5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 60 71 00 00 35 04 06 00 34 96 F8 5E 04 BF D0 43 75 D8 48 2C B6 69 [18:56:06]CheckFolder [18:56:06]dirname=/storage/ofd_packets [18:56:06]CheckFolder done [18:56:06]ProducePacketName [18:56:06]name=ofd_packets/00029024 [18:56:06]NVStorageSaveData ofd_packets/00029024 [18:56:06]File name is /storage/ofd_packets/00029024 [18:56:06]Write 301 bytes [18:56:06]NVStorageSaveData done [18:56:06]OFDSenderStorePacket done [18:56:06]KKMCreateOFDPacket done [18:56:06]NVStorageSaveData kkm_last_timestamp [18:56:06]File name is /storage/kkm_last_timestamp [18:56:06]Write 4 bytes [18:56:06]NVStorageSaveData done [18:56:06]ExternCall_PrintAddStr [18:56:06]wPrintStart [18:56:06]Write to MH i2c: 01 00 00 98 5B F3 [18:56:06]Write i2c OK [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: 01 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: 01 07 00 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: 01 07 00 98 5B 00 00 00 00 00 FF 0F 08 [18:56:06]RasterBufferAndPrint [18:56:06]line Счет N : (1)347387 [18:56:06]line ИНН: 02508201610067 [18:56:06]line Контрольно-Кассовый Чек [18:56:06]line ПРОДАЖА [18:56:06]line ТРК (МРК, ГНК) : 32 [18:56:06]line Товар: 2710124130 [18:56:06]line Аи-92-К-5 [18:56:06]line 46.660 * 64.30 [18:56:06]line = 3000.24 [18:56:06]line НДС 12% НСП 1% [18:56:06]line > о реализуемом товаре [18:56:06]line ИТОГО: 3000.24 [18:56:06]line НСП 1% : 26.55 [18:56:06]line НДС 12% : 318.61 [18:56:06]line Наличными: 0.00 [18:56:06]line Безнал.: 3000.24 [18:56:06]line Место: АЗС № 108 "Партнер Нефть" [18:56:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:56:06]line СНО: Общий режим [18:56:06]line Чек 231 13.04.2024 18:56 [18:56:06]line Смена: 115 ФФД: 1.0 [18:56:06]line ЗНМ: 0300000027 [18:56:06]line РНМ: 0000138879044617 [18:56:06]line Версия ККМ: 001 [18:56:06]line Платежная система: О! деньги [18:56:06]line ФМ: 0000000000963154 [18:56:06]line ФД: 29024 [18:56:06]line ФПД: 57823016649919 [18:56:06]line 1/tax-web-control/client/api/v1/ticket?date=20240413T185610&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29024&fm=57823016649919&tin=02508201610067®Number=0000138879044617&sum=300024 [18:56:06]OFD Sender: Processing packet 29024 [packets to send 8, broken 7] [18:56:06]ProducePacketName [18:56:06]name=ofd_packets/00029024 [18:56:06]OFD Sender: To server: pG, [18:56:06]CommunicateWithHost lk.salyk.kg:30040 [18:56:06]ConnectInit lk.salyk.kg [18:56:06]written 0, free lines is 4095 [18:56:06]Connected sock=9 [18:56: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 31 35 34 0F 01 00 00 10 26 07 01 95 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 44 B6 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F8 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 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 75 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 4A D5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 60 71 00 00 35 04 06 00 34 96 F8 5E 04 BF D0 43 75 D8 48 2C B6 69 [18:56:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A3 9C 47 00 42 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 31 35 34 10 04 04 00 60 71 00 00 F4 03 04 00 F1 7F 1A 66 B6 04 01 00 00 53 68 F4 C4 5B 58 6A 2D [18:56:07]CommunicateWithHost err = 0 [18:56:07]CheckOFDResponse [18:56:07]1017 (14) - 77093643461234 [18:56:07]1041 (16) - 0000000000963154 [18:56:07]1040 (4) - 29024 [18:56:07]1012 (4) - 13.04.2024 12:52 [18:56:07]1206 (1) - 0 [18:56:07]OFD Sender: Remove packet 29024 [18:56:07]ProducePacketName [18:56:07]name=ofd_packets/00029024 [18:56:07]NVStorageDeleteData [18:56:07]Write to MH i2c: 01 00 00 C1 5B 1C [18:56:07]Write i2c OK [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: 01 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: 01 07 00 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: 01 07 00 C1 5B 00 00 00 00 00 E0 0C 0F [18:56:07]RasterBufferAndPrint [18:56:07]line [18:56:07]line [18:56:07]line [18:56:07]line [18:56:07]line [18:56:07]written 0, free lines is 3302 [18:56:07]MH_Cut [18:56:07]Write to MH i2c: D1 01 00 C8 5B 01 F5 [18:56:07]Write i2c OK [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: D1 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: D1 01 00 [18:56:07]MH_I2C_Read... [18:56:07]Read from MH i2c: D1 01 00 C8 5B 00 F4 [18:56:07]Write to MH i2c: 01 00 00 C9 5B 24 [18:56:07]Write i2c OK [18:56:07]MH_I2C_Read... [18:56:07]OFD Sender: No OFD packet to send [18:56:08]*** Cut start [18:56:08]*** Partial cut [18:56:08]*** CUTSNS_PIN = 1 [18:56:08]*** CUTSNS_PIN = 0 [18:56:08]*** Brake cut motor [18:56:08]Read from MH i2c: 01 [18:56:08]MH_I2C_Read... [18:56:08]*** Stop cut motor [18:56:08]*** Cut end [18:56:08]Read from MH i2c: 01 07 00 [18:56:08]MH_I2C_Read... [18:56:08]Read from MH i2c: 01 07 00 C9 5B 00 00 00 00 00 FF 0F 39 [18:56:08]process_action close_receipt done [18:56:08]requested_data is exist [18:56:08]produce_requested_data [18:56:08]requested_item fm.sn is exist - process it [18:56:08]wFMCommunicate request_size=4 [18:56:08]MH_SAM_APDU [18:56:08]CAPDU: 80 11 00 00 [18:56:08]Write to MH i2c: E2 08 00 CA 5B 80 11 00 00 00 00 00 00 9F [18:56:08]Write i2c OK [18:56:08]MH_I2C_Read... [18:56:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:08]Read from MH i2c: E2 [18:56:08]MH_I2C_Read... [18:56:08]Read from MH i2c: E2 17 00 [18:56:08]MH_I2C_Read... [18:56:08]Read from MH i2c: E2 17 00 CA 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EE [18:56:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:56:08]wFMCommunicate OK [18:56:08]requested_item fd.num is exist - process it [18:56:08]SAM_PROTO_GetFieldsCounters [18:56:08]wFMCommunicate request_size=4 [18:56:08]MH_SAM_APDU [18:56:08]CAPDU: 80 13 00 00 [18:56:08]Write to MH i2c: E2 08 00 CB 5B 80 13 00 00 00 00 00 00 A2 [18:56:08]Write i2c OK [18:56:08]MH_I2C_Read... [18:56:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:08]Read from MH i2c: E2 [18:56:08]MH_I2C_Read... [18:56:08]Read from MH i2c: E2 62 00 [18:56:08]MH_I2C_Read... [18:56:08]Read from MH i2c: E2 62 00 CB 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 60 71 00 00 0E 04 04 00 73 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 D9 [18:56: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 60 71 00 00 0E 04 04 00 73 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 [18:56:08]wFMCommunicate OK [18:56:08]SAM_PROTO_GetFieldsCounters done [18:56:08]requested_item shift.num is exist - process it [18:56:08]requested_item shift.opened is exist - process it [18:56:08]req_shift_opened [18:56:08]FM_GetShiftState [18:56:08]SAM_PROTO_GetShiftState [18:56:08]wFMCommunicate request_size=4 [18:56:08]MH_SAM_APDU [18:56:08]CAPDU: 80 13 01 00 [18:56:08]Write to MH i2c: E2 08 00 CC 5B 80 13 01 00 00 00 00 00 A4 [18:56:08]Write i2c OK [18:56:08]MH_I2C_Read... [18:56:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:08]Read from MH i2c: E2 [18:56:08]MH_I2C_Read... [18:56:08]Read from MH i2c: E2 0E 00 [18:56:08]MH_I2C_Read... [18:56:08]Read from MH i2c: E2 0E 00 CC 5B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 BD [18:56:08]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:56:08]wFMCommunicate OK [18:56:08]SAM_PROTO_GetShiftState done [18:56:08]FM_GetShiftState done [18:56:08]req_shift_opened done [18:56:08]requested_item shift.open_date is exist - process it [18:56:08]req_shift_open_date [18:56:08]req_shift_open_date done [18:56:08]produce_requested_data done [18:56:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29024,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [18:56:08]process_action_free close_receipt [18:56:08]json_value_free [18:56:08]json_value_free done [18:56:08]process_json_proto returns [18:56:08]Send response to host [18:56:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29024,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [18:56:08]free response buf [18:56:08]execute_script done [18:56:08]execute_script returns [18:56:08]free content buf [18:56:08]Sock 10.Close socket [18:56:08]Sock 10.Thread stoped [18:56:12]OFD Sender: No OFD packet to send [18:56:17]OFD Sender: No OFD packet to send [18:56:22]OFD Sender: No OFD packet to send [18:56:27]OFD Sender: No OFD packet to send [18:56:32]OFD Sender: No OFD packet to send [18:56:37]OFD Sender: No OFD packet to send [18:56:42]OFD Sender: No OFD packet to send [18:56:47]OFD Sender: No OFD packet to send [18:56:52]OFD Sender: No OFD packet to send [18:56:57]OFD Sender: No OFD packet to send [18:57:02]OFD Sender: No OFD packet to send [18:57:07]OFD Sender: No OFD packet to send [18:57:12]OFD Sender: No OFD packet to send [18:57:17]OFD Sender: No OFD packet to send [18:57:22]accept exits with 7 [18:57:22]New connection [18:57:22]New thread 3066785124 created [18:57:22]Thread 3066928484 joined [18:57:22]Waiting for new connection... [18:57:22] Sock 7.Parse request [18:57:22]Sock 7.Check first char [18:57:22]Sock 7.First char is OK [18:57:22]request: POST /json_proto HTTP/1.0 [18:57:22]Method: POST [18:57:22]URL: /json_proto [18:57:22]Method is POST - this is cgi request [18:57:22]url: /json_proto [18:57:22]query_string will be loaded in cgi processing [18:57:22]execute_cgi json_proto POST (null) [18:57:22]execute_cgi path=json_proto method=POST [18:57:22]POST find Content-Length [18:57:22]Host: 172.17.33.3:8080 [18:57:22]Content-Length: 1166 [18:57:22]Content-Type: application/json [18:57:22] [18:57:22]POST finish read [18:57:22]Found Content-Length = 1166 [18:57:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347388\u000A13.04.2024 18:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.820 x 72.40\u000A\u0418\u0422\u041E\u0413: 1000.57\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30115168\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:22]execute_script... [18:57:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347388\u000A13.04.2024 18:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.820 x 72.40\u000A\u0418\u0422\u041E\u0413: 1000.57\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30115168\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:22]POST & json_proto [18:57:22]process_json_proto [18:57:22]json parsed OK: [18:57:22]protocol is kg_v1.0 [18:57:22]action value=print_text [18:57:22]process_action print_text [18:57:22]cmd_print_text [18:57:22]ExternCall_PrintAddStr [18:57:22]wPrintStart [18:57:22]Write to MH i2c: 01 00 00 CD 5B 28 [18:57:22]Write i2c OK [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: 01 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: 01 07 00 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: 01 07 00 CD 5B 00 00 00 00 00 FF 0F 3D [18:57:22]RasterBufferAndPrint [18:57:22]line *****ТОВАРНЫЙ ЧЕК***** [18:57:22]line АЗС 108 [18:57:22]line Партнер нефть [18:57:22]line 02508201610067 [18:57:22]line Кассир : Шадыканова Ж. [18:57:22]line Счет N : (1)347388 [18:57:22]line 13.04.2024 18:39 [18:57:22]line ПРОДАЖА [18:57:22]line ТРК (МРК, ГНК): 51 [18:57:22]line Вид ГСМ : 2710194210 [18:57:22]line ДТ-К-5 [18:57:22]line 13.820 x 72.40 [18:57:22]line ИТОГ: 1000.57 [18:57:22]line Тип оплаты: Талоны: ТК ГПНА Online [18:57:22]line 30115168 [18:57:22]line ______________________ [18:57:22]line (подпись) [18:57:22]written 0, free lines is 4095 [18:57:22]OFD Sender: No OFD packet to send [18:57:22]Write to MH i2c: 01 00 00 E2 5B 3D [18:57:22]Write i2c OK [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: 01 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: 01 07 00 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: 01 07 00 E2 5B 00 00 00 00 00 F3 0D 44 [18:57:22]RasterBufferAndPrint [18:57:22]line [18:57:22]line [18:57:22]line [18:57:22]line [18:57:22]line [18:57:22]written 0, free lines is 3572 [18:57:22]MH_Cut [18:57:22]Write to MH i2c: D1 01 00 E9 5B 01 16 [18:57:22]Write i2c OK [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: D1 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: D1 01 00 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: D1 01 00 E9 5B 00 15 [18:57:22]Write to MH i2c: 01 00 00 EA 5B 45 [18:57:22]Write i2c OK [18:57:22]MH_I2C_Read... [18:57:23]*** Cut start [18:57:23]*** Partial cut [18:57:23]*** CUTSNS_PIN = 1 [18:57:23]*** CUTSNS_PIN = 0 [18:57:23]*** Brake cut motor [18:57:23]Read from MH i2c: 01 [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: 01 07 00 [18:57:23]MH_I2C_Read... [18:57:23]*** Stop cut motor [18:57:23]*** Cut end [18:57:23]Read from MH i2c: 01 07 00 EA 5B 00 00 00 00 00 FF 0F 5A [18:57:23]process_action print_text done [18:57:23]requested_data is exist [18:57:23]produce_requested_data [18:57:23]requested_item fm.sn is exist - process it [18:57:23]wFMCommunicate request_size=4 [18:57:23]MH_SAM_APDU [18:57:23]CAPDU: 80 11 00 00 [18:57:23]Write to MH i2c: E2 08 00 EB 5B 80 11 00 00 00 00 00 00 C0 [18:57:23]Write i2c OK [18:57:23]MH_I2C_Read... [18:57:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:24]Read from MH i2c: E2 [18:57:24]MH_I2C_Read... [18:57:24]Read from MH i2c: E2 17 00 [18:57:24]MH_I2C_Read... [18:57:24]Read from MH i2c: E2 17 00 EB 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0F [18:57:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:57:24]wFMCommunicate OK [18:57:24]requested_item fd.num is exist - process it [18:57:24]SAM_PROTO_GetFieldsCounters [18:57:24]wFMCommunicate request_size=4 [18:57:24]MH_SAM_APDU [18:57:24]CAPDU: 80 13 00 00 [18:57:24]Write to MH i2c: E2 08 00 EC 5B 80 13 00 00 00 00 00 00 C3 [18:57:24]Write i2c OK [18:57:24]MH_I2C_Read... [18:57:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:24]Read from MH i2c: E2 [18:57:24]MH_I2C_Read... [18:57:24]Read from MH i2c: E2 62 00 [18:57:24]MH_I2C_Read... [18:57:24]Read from MH i2c: E2 62 00 EC 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 60 71 00 00 0E 04 04 00 73 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 FA [18:57: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 60 71 00 00 0E 04 04 00 73 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 [18:57:24]wFMCommunicate OK [18:57:24]SAM_PROTO_GetFieldsCounters done [18:57:24]requested_item shift.num is exist - process it [18:57:24]requested_item shift.opened is exist - process it [18:57:24]req_shift_opened [18:57:24]FM_GetShiftState [18:57:24]SAM_PROTO_GetShiftState [18:57:24]wFMCommunicate request_size=4 [18:57:24]MH_SAM_APDU [18:57:24]CAPDU: 80 13 01 00 [18:57:24]Write to MH i2c: E2 08 00 ED 5B 80 13 01 00 00 00 00 00 C5 [18:57:24]Write i2c OK [18:57:24]MH_I2C_Read... [18:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:24]Read from MH i2c: E2 [18:57:24]MH_I2C_Read... [18:57:24]Read from MH i2c: E2 0E 00 [18:57:24]MH_I2C_Read... [18:57:24]Read from MH i2c: E2 0E 00 ED 5B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 DE [18:57:24]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:57:24]wFMCommunicate OK [18:57:24]SAM_PROTO_GetShiftState done [18:57:24]FM_GetShiftState done [18:57:24]req_shift_opened done [18:57:24]requested_item shift.open_date is exist - process it [18:57:24]req_shift_open_date [18:57:24]req_shift_open_date done [18:57:24]produce_requested_data done [18:57:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29024,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [18:57:24]process_action_free print_text [18:57:24]json_value_free [18:57:24]json_value_free done [18:57:24]process_json_proto returns [18:57:24]Send response to host [18:57:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29024,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [18:57:24]free response buf [18:57:24]execute_script done [18:57:24]execute_script returns [18:57:24]free content buf [18:57:24]Sock 7.Close socket [18:57:24]Sock 7.Thread stoped [18:57:27]OFD Sender: No OFD packet to send [18:57:32]OFD Sender: No OFD packet to send [18:57:37]OFD Sender: No OFD packet to send [18:57:42]OFD Sender: No OFD packet to send [18:57:47]OFD Sender: No OFD packet to send [18:57:52]OFD Sender: No OFD packet to send [18:57:57]OFD Sender: No OFD packet to send [18:58:02]OFD Sender: No OFD packet to send [18:58:07]OFD Sender: No OFD packet to send [18:58:12]OFD Sender: No OFD packet to send [18:58:17]OFD Sender: No OFD packet to send [18:58:22]OFD Sender: No OFD packet to send [18:58:27]OFD Sender: No OFD packet to send [18:58:31]accept exits with 9 [18:58:31]New connection [18:58:31]New thread 3066928484 created [18:58:31]Thread 3066785124 joined [18:58:31]Waiting for new connection... [18:58:31] Sock 9.Parse request [18:58:31]Sock 9.Check first char [18:58:31]Sock 9.First char is OK [18:58:31]request: POST /json_proto HTTP/1.0 [18:58:31]Method: POST [18:58:31]URL: /json_proto [18:58:31]Method is POST - this is cgi request [18:58:31]url: /json_proto [18:58:31]query_string will be loaded in cgi processing [18:58:31]execute_cgi json_proto POST (null) [18:58:31]execute_cgi path=json_proto method=POST [18:58:31]POST find Content-Length [18:58:31]Host: 172.17.33.3:8080 [18:58:31]Content-Length: 685 [18:58:31]Content-Type: application/json [18:58:31] [18:58:31]POST finish read [18:58:31]Found Content-Length = 685 [18:58:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 45.600, "sum" : 1500.24, "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:58:31]execute_script... [18:58: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)347389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 45.600, "sum" : 1500.24, "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:58:31]POST & json_proto [18:58:31]process_json_proto [18:58:31]json parsed OK: [18:58:31]protocol is kg_v1.0 [18:58:31]action value=close_receipt [18:58:31]process_action close_receipt [18:58:31]cmd_close_receipt [18:58:31]MH_GetDate [18:58:31]Write to MH i2c: F0 00 00 EE 5B 38 [18:58:31]Write i2c OK [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: F0 [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: F0 09 00 [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: F0 09 00 EE 5B 00 DD D5 1A 66 23 5B 8F 65 E5 [18:58:31]GetLastDocTimeStamp 1713034570 [18:58:31]current date 1713034717 [18:58:31]FM_GetShiftState [18:58:31]SAM_PROTO_GetShiftState [18:58:31]wFMCommunicate request_size=4 [18:58:31]MH_SAM_APDU [18:58:31]CAPDU: 80 13 01 00 [18:58:31]Write to MH i2c: E2 08 00 EF 5B 80 13 01 00 00 00 00 00 C7 [18:58:31]Write i2c OK [18:58:31]MH_I2C_Read... [18:58:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:31]Read from MH i2c: E2 [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: E2 0E 00 [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: E2 0E 00 EF 5B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 E0 [18:58:31]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:58:31]wFMCommunicate OK [18:58:31]SAM_PROTO_GetShiftState done [18:58:31]FM_GetShiftState done [18:58:31]opened in 1712967615 [18:58:31]opened+sec_in_day 1713054015 [18:58:31]quantity*price = 150024 [18:58:31]sum+1 = 150025 [18:58:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 232 13.04.2024 18:58 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29025 ФПД: 51189041323919 1/tax-web-control/client/api/v1/ticket?date=20240413T185837&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29025&fm=51189041323919&tin=02508201610067®Number=0000138879044617&sum=150000 [18:58:33]StoreToDocumentArchive [18:58:33]shift 115 fd 29025 [18:58:33]save to /storage/0115/doc_00029025 [18:58:33]save last doc name /storage/0115/doc_00029025 to /storage/kkm_last_doc_name [18:58:33]save OK [18:58:33]Clear old archive folders... [18:58:33]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:58:33]tlvbuf is 011FB070 [18:58:33]SAM_PROTO_ClearQueue [18:58:33]wFMCommunicate request_size=4 [18:58:33]MH_SAM_APDU [18:58:33]CAPDU: 80 09 00 00 [18:58:33]Write to MH i2c: E2 08 00 FC 5B 80 09 00 00 00 00 00 00 C9 [18:58:33]Write i2c OK [18:58:33]MH_I2C_Read... [18:58:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:33]Read from MH i2c: E2 [18:58:33]MH_I2C_Read... [18:58:33]Read from MH i2c: E2 03 00 [18:58:33]MH_I2C_Read... [18:58:33]Read from MH i2c: E2 03 00 FC 5B 00 90 00 CB [18:58:33]RAPDU: 90 00 [18:58:33]wFMCommunicate OK [18:58:33]SAM_PROTO_ClearQueue done [18:58:33]KKMCreateOFDPacket [18:58:33]OFDProtocolAddRootSTLVToBuf [18:58:33]FM_MakeSignedData [18:58:33]FM_MakeSignedData [18:58:33]SAM_PROTO_SignData [18:58:33]wFMCommunicate request_size=4 [18:58:33]MH_SAM_APDU [18:58:33]CAPDU: 80 0D 01 02 [18:58:33]Write to MH i2c: E2 08 00 FD 5B 80 0D 01 02 00 00 00 00 D1 [18:58:33]Write i2c OK [18:58:33]MH_I2C_Read... [18:58:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:33]Read from MH i2c: E2 [18:58:33]MH_I2C_Read... [18:58:33]Read from MH i2c: E2 03 00 [18:58:33]MH_I2C_Read... [18:58:33]Read from MH i2c: E2 03 00 FD 5B 00 90 00 CC [18:58:33]RAPDU: 90 00 [18:58:33]wFMCommunicate OK [18:58:33]wFMCommunicate request_size=255 [18:58:33]MH_SAM_APDU [18:58:33]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 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 3C 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 E8 00 00 00 F4 03 04 00 DD D5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 61 71 00 00 35 04 06 00 2E 8E [18:58:33]Write to MH i2c: E2 02 01 FE 5B 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 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 3C 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 E8 00 00 00 F4 03 04 00 DD D5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 61 71 00 00 35 04 06 00 2E 8E 00 00 F4 [18:58:33]Write i2c OK [18:58:33]MH_I2C_Read... [18:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:33]Read from MH i2c: E2 [18:58:33]MH_I2C_Read... [18:58:33]Read from MH i2c: E2 03 00 [18:58:33]MH_I2C_Read... [18:58:33]Read from MH i2c: E2 03 00 FE 5B 00 90 00 CD [18:58:33]RAPDU: 90 00 [18:58:33]wFMCommunicate OK [18:58:33]wFMCommunicate request_size=9 [18:58:33]MH_SAM_APDU [18:58:33]CAPDU: 80 0D 02 02 04 60 9F DF 8F [18:58:33]Write to MH i2c: E2 0C 00 FF 5B 80 0D 02 02 04 00 60 9F DF 8F 00 00 49 [18:58:33]Write i2c OK [18:58:33]MH_I2C_Read... [18:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:33]Read from MH i2c: E2 [18:58:33]MH_I2C_Read... [18:58:33]Read from MH i2c: E2 03 00 [18:58:33]MH_I2C_Read... [18:58:33]Read from MH i2c: E2 03 00 FF 5B 00 90 00 CE [18:58:33]RAPDU: 90 00 [18:58:33]wFMCommunicate OK [18:58:33]wFMCommunicate request_size=4 [18:58:33]MH_SAM_APDU [18:58:33]CAPDU: 80 0D 03 02 [18:58:33]Write to MH i2c: E2 08 00 00 5C 80 0D 03 02 00 00 00 00 D7 [18:58:33]Write i2c OK [18:58:33]MH_I2C_Read... [18:58:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:33]Read from MH i2c: E2 [18:58:33]MH_I2C_Read... [18:58:33]Read from MH i2c: E2 0B 00 [18:58:33]MH_I2C_Read... [18:58:33]Read from MH i2c: E2 0B 00 00 5C 00 06 A1 6E C4 06 A4 25 7E 90 00 FE [18:58:33]RAPDU: 06 A1 6E C4 06 A4 25 7E 90 00 [18:58:33]wFMCommunicate OK [18:58:33]SAM_PROTO_SignData done [18:58:33]FM_MakeSignedData done [18:58:33]CreateOFDProtocolMessage [18:58:33]wFMCommunicate request_size=4 [18:58:33]MH_SAM_APDU [18:58:33]CAPDU: 80 11 00 00 [18:58:33]Write to MH i2c: E2 08 00 01 5C 80 11 00 00 00 00 00 00 D7 [18:58:33]Write i2c OK [18:58:33]MH_I2C_Read... [18:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:33]Read from MH i2c: E2 [18:58:33]MH_I2C_Read... [18:58:33]Read from MH i2c: E2 17 00 [18:58:33]MH_I2C_Read... [18:58:33]Read from MH i2c: E2 17 00 01 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 26 [18:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:58:33]wFMCommunicate OK [18:58:33]CreateOFDProtocolMessage done [18:58:33]OFDSenderStorePacket 29025 [18:58:33]StoreOFDPacket docnum=29025 [18:58:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 AD EB 06 01 5D 07 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 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 3C 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 E8 00 00 00 F4 03 04 00 DD D5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 61 71 00 00 35 04 06 00 2E 8E 60 9F DF 8F 06 A1 6E C4 06 A4 25 7E [18:58:33]CheckFolder [18:58:33]dirname=/storage/ofd_packets [18:58:33]CheckFolder done [18:58:33]ProducePacketName [18:58:33]name=ofd_packets/00029025 [18:58:33]NVStorageSaveData ofd_packets/00029025 [18:58:33]File name is /storage/ofd_packets/00029025 [18:58:33]Write 300 bytes [18:58:33]NVStorageSaveData done [18:58:33]OFDSenderStorePacket done [18:58:33]KKMCreateOFDPacket done [18:58:33]NVStorageSaveData kkm_last_timestamp [18:58:33]File name is /storage/kkm_last_timestamp [18:58:33]Write 4 bytes [18:58:33]NVStorageSaveData done [18:58:33]ExternCall_PrintAddStr [18:58:33]wPrintStart [18:58:33]Write to MH i2c: 01 00 00 02 5C 5E [18:58:33]Write i2c OK [18:58:33]MH_I2C_Read... [18:58:33]Read from MH i2c: 01 [18:58:33]MH_I2C_Read... [18:58:33]Read from MH i2c: 01 07 00 [18:58:33]MH_I2C_Read... [18:58:33]Read from MH i2c: 01 07 00 02 5C 00 00 00 00 00 FF 0F 73 [18:58:33]RasterBufferAndPrint [18:58:33]line Счет N : (1)347389 [18:58:33]line ИНН: 02508201610067 [18:58:33]line Контрольно-Кассовый Чек [18:58:33]line ПРОДАЖА [18:58:33]line ТРК (МРК, ГНК) : 71 [18:58:33]line Товар: 2711129700 [18:58:33]line ГАЗ-К-5 [18:58:33]line 45.600 * 32.90 [18:58:33]line = 1500.24 [18:58:33]line НДС 12% НСП 1% [18:58:33]line > о реализуемом товаре [18:58:33]line ОКРУГЛЕНИЕ: -0.24 [18:58:33]line ИТОГО: 1500.00 [18:58:33]line Внесено: 1500.00 [18:58:33]line СДАЧА: 0.00 [18:58:33]line НСП 1% : 13.28 [18:58:33]line НДС 12% : 159.32 [18:58:33]line Наличными: 1500.00 [18:58:33]line Безнал.: 0.00 [18:58:33]line Место: АЗС № 108 "Партнер Нефть" [18:58:33]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [18:58:33]line СНО: Общий режим [18:58:33]line Чек 232 13.04.2024 18:58 [18:58:33]line Смена: 115 ФФД: 1.0 [18:58:33]line ЗНМ: 0300000027 [18:58:33]line РНМ: 0000138879044617 [18:58:33]line Версия ККМ: 001 [18:58:33]line ФМ: 0000000000963154 [18:58:33]line ФД: 29025 [18:58:33]line ФПД: 51189041323919 [18:58:33]line 1/tax-web-control/client/api/v1/ticket?date=20240413T185837&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29025&fm=51189041323919&tin=02508201610067®Number=0000138879044617&sum=150000 [18:58:33]OFD Sender: Processing packet 29025 [packets to send 8, broken 7] [18:58:33]ProducePacketName [18:58:33]name=ofd_packets/00029025 [18:58:33]OFD Sender: To server: pG, [18:58:33]CommunicateWithHost lk.salyk.kg:30040 [18:58:33]ConnectInit lk.salyk.kg [18:58:33]written 0, free lines is 4095 [18:58:33]Connected sock=10 [18:58: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 31 35 34 0E 01 00 00 AD EB 06 01 5D 07 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 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 3C 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 E8 00 00 00 F4 03 04 00 DD D5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 61 71 00 00 35 04 06 00 2E 8E 60 9F DF 8F 06 A1 6E C4 06 A4 25 7E [18:58:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 2B 35 47 00 1A 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 61 71 00 00 F4 03 04 00 84 80 1A 66 B6 04 01 00 00 D3 E3 73 61 1A 28 49 ED [18:58:34]CommunicateWithHost err = 0 [18:58:34]CheckOFDResponse [18:58:34]1017 (14) - 77093643461234 [18:58:34]1041 (16) - 0000000000963154 [18:58:34]1040 (4) - 29025 [18:58:34]1012 (4) - 13.04.2024 12:54 [18:58:34]1206 (1) - 0 [18:58:34]OFD Sender: Remove packet 29025 [18:58:34]ProducePacketName [18:58:34]name=ofd_packets/00029025 [18:58:34]NVStorageDeleteData [18:58:34]Write to MH i2c: 01 00 00 2C 5C 88 [18:58:34]Write i2c OK [18:58:34]MH_I2C_Read... [18:58:34]Read from MH i2c: 01 [18:58:34]MH_I2C_Read... [18:58:34]Read from MH i2c: 01 07 00 [18:58:34]MH_I2C_Read... [18:58:34]Read from MH i2c: 01 07 00 2C 5C 00 00 00 00 00 D2 0C 6D [18:58:34]RasterBufferAndPrint [18:58:34]line [18:58:34]line [18:58:34]line [18:58:34]line [18:58:34]line [18:58:34]written 0, free lines is 3288 [18:58:34]MH_Cut [18:58:34]Write to MH i2c: D1 01 00 33 5C 01 61 [18:58:34]Write i2c OK [18:58:34]MH_I2C_Read... [18:58:34]Read from MH i2c: D1 [18:58:34]MH_I2C_Read... [18:58:34]Read from MH i2c: D1 01 00 [18:58:34]MH_I2C_Read... [18:58:34]Read from MH i2c: D1 01 00 33 5C 00 60 [18:58:34]Write to MH i2c: 01 00 00 34 5C 90 [18:58:34]Write i2c OK [18:58:34]MH_I2C_Read... [18:58:34]OFD Sender: No OFD packet to send [18:58:35]*** Cut start [18:58:35]*** Partial cut [18:58:35]*** CUTSNS_PIN = 1 [18:58:35]*** CUTSNS_PIN = 0 [18:58:35]*** Brake cut motor [18:58:35]Read from MH i2c: 01 [18:58:35]MH_I2C_Read... [18:58:35]*** Stop cut motor [18:58:35]*** Cut end [18:58:35]Read from MH i2c: 01 07 00 [18:58:35]MH_I2C_Read... [18:58:35]Read from MH i2c: 01 07 00 34 5C 00 00 00 00 00 FF 0F A5 [18:58:35]process_action close_receipt done [18:58:35]requested_data is exist [18:58:35]produce_requested_data [18:58:35]requested_item fm.sn is exist - process it [18:58:35]wFMCommunicate request_size=4 [18:58:35]MH_SAM_APDU [18:58:35]CAPDU: 80 11 00 00 [18:58:35]Write to MH i2c: E2 08 00 35 5C 80 11 00 00 00 00 00 00 0B [18:58:35]Write i2c OK [18:58:35]MH_I2C_Read... [18:58:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:35]Read from MH i2c: E2 [18:58:35]MH_I2C_Read... [18:58:35]Read from MH i2c: E2 17 00 [18:58:35]MH_I2C_Read... [18:58:35]Read from MH i2c: E2 17 00 35 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5A [18:58:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [18:58:35]wFMCommunicate OK [18:58:35]requested_item fd.num is exist - process it [18:58:35]SAM_PROTO_GetFieldsCounters [18:58:35]wFMCommunicate request_size=4 [18:58:35]MH_SAM_APDU [18:58:35]CAPDU: 80 13 00 00 [18:58:35]Write to MH i2c: E2 08 00 36 5C 80 13 00 00 00 00 00 00 0E [18:58:35]Write i2c OK [18:58:35]MH_I2C_Read... [18:58:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:35]Read from MH i2c: E2 [18:58:35]MH_I2C_Read... [18:58:35]Read from MH i2c: E2 62 00 [18:58:35]MH_I2C_Read... [18:58:35]Read from MH i2c: E2 62 00 36 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 61 71 00 00 0E 04 04 00 73 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 49 [18:58: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 61 71 00 00 0E 04 04 00 73 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 [18:58:35]wFMCommunicate OK [18:58:35]SAM_PROTO_GetFieldsCounters done [18:58:35]requested_item shift.num is exist - process it [18:58:35]requested_item shift.opened is exist - process it [18:58:35]req_shift_opened [18:58:35]FM_GetShiftState [18:58:35]SAM_PROTO_GetShiftState [18:58:35]wFMCommunicate request_size=4 [18:58:35]MH_SAM_APDU [18:58:35]CAPDU: 80 13 01 00 [18:58:35]Write to MH i2c: E2 08 00 37 5C 80 13 01 00 00 00 00 00 10 [18:58:35]Write i2c OK [18:58:35]MH_I2C_Read... [18:58:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:36]Read from MH i2c: E2 [18:58:36]MH_I2C_Read... [18:58:36]Read from MH i2c: E2 0E 00 [18:58:36]MH_I2C_Read... [18:58:36]Read from MH i2c: E2 0E 00 37 5C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 29 [18:58:36]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [18:58:36]wFMCommunicate OK [18:58:36]SAM_PROTO_GetShiftState done [18:58:36]FM_GetShiftState done [18:58:36]req_shift_opened done [18:58:36]requested_item shift.open_date is exist - process it [18:58:36]req_shift_open_date [18:58:36]req_shift_open_date done [18:58:36]produce_requested_data done [18:58:36]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29025,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [18:58:36]process_action_free close_receipt [18:58:36]json_value_free [18:58:36]json_value_free done [18:58:36]process_json_proto returns [18:58:36]Send response to host [18:58:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29025,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [18:58:36]free response buf [18:58:36]execute_script done [18:58:36]execute_script returns [18:58:36]free content buf [18:58:36]Sock 9.Close socket [18:58:36]Sock 9.Thread stoped [18:58:39]OFD Sender: No OFD packet to send [18:58:44]OFD Sender: No OFD packet to send [18:58:49]OFD Sender: No OFD packet to send [18:58:54]OFD Sender: No OFD packet to send [18:58:59]OFD Sender: No OFD packet to send [18:59:04]OFD Sender: No OFD packet to send [18:59:09]OFD Sender: No OFD packet to send [18:59:14]OFD Sender: No OFD packet to send [18:59:19]OFD Sender: No OFD packet to send [18:59:24]OFD Sender: No OFD packet to send [18:59:29]OFD Sender: No OFD packet to send [18:59:34]OFD Sender: No OFD packet to send [18:59:39]OFD Sender: No OFD packet to send [18:59:44]OFD Sender: No OFD packet to send [18:59:49]OFD Sender: No OFD packet to send [18:59:54]OFD Sender: No OFD packet to send [18:59:59]OFD Sender: No OFD packet to send [19:00:04]OFD Sender: No OFD packet to send [19:00:09]OFD Sender: No OFD packet to send [19:00:14]OFD Sender: No OFD packet to send [19:00:19]OFD Sender: No OFD packet to send [19:00:24]OFD Sender: No OFD packet to send [19:00:29]OFD Sender: No OFD packet to send [19:00:34]OFD Sender: No OFD packet to send [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:19]OFD Sender: No OFD packet to send [19:01:24]OFD Sender: No OFD packet to send [19:01:29]OFD Sender: No OFD packet to send [19:01:33]accept exits with 7 [19:01:33]New connection [19:01:33]New thread 3066785124 created [19:01:33]Thread 3066928484 joined [19:01:33]Waiting for new connection... [19:01:33] Sock 7.Parse request [19:01:33]Sock 7.Check first char [19:01:33]Sock 7.First char is OK [19:01:33]request: POST /json_proto HTTP/1.0 [19:01:33]Method: POST [19:01:33]URL: /json_proto [19:01:33]Method is POST - this is cgi request [19:01:33]url: /json_proto [19:01:33]query_string will be loaded in cgi processing [19:01:33]execute_cgi json_proto POST (null) [19:01:33]execute_cgi path=json_proto method=POST [19:01:33]POST find Content-Length [19:01:33]Host: 172.17.33.3:8080 [19:01:33]Content-Length: 1207 [19:01:33]Content-Type: application/json [19:01:33] [19:01:33]POST finish read [19:01:33]Found Content-Length = 1207 [19:01:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347390\u000A13.04.2024 18:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 40.000 x 72.50\u000A\u0418\u0422\u041E\u0413: 2900.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53118\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:33]execute_script... [19:01:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347390\u000A13.04.2024 18:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 40.000 x 72.50\u000A\u0418\u0422\u041E\u0413: 2900.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53118\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:33]POST & json_proto [19:01:33]process_json_proto [19:01:33]json parsed OK: [19:01:33]protocol is kg_v1.0 [19:01:33]action value=print_text [19:01:33]process_action print_text [19:01:33]cmd_print_text [19:01:33]ExternCall_PrintAddStr [19:01:33]wPrintStart [19:01:33]Write to MH i2c: 01 00 00 38 5C 94 [19:01:33]Write i2c OK [19:01:33]MH_I2C_Read... [19:01:33]Read from MH i2c: 01 [19:01:33]MH_I2C_Read... [19:01:33]Read from MH i2c: 01 07 00 [19:01:33]MH_I2C_Read... [19:01:33]Read from MH i2c: 01 07 00 38 5C 00 00 00 00 00 FF 0F A9 [19:01:33]RasterBufferAndPrint [19:01:33]line *****ТОВАРНЫЙ ЧЕК***** [19:01:33]line АЗС 108 [19:01:33]line Партнер нефть [19:01:33]line 02508201610067 [19:01:33]line Кассир : Шадыканова Ж. [19:01:33]line Счет N : (1)347390 [19:01:33]line 13.04.2024 18:43 [19:01:33]line ПРОДАЖА [19:01:33]line ТРК (МРК, ГНК): 33 [19:01:33]line Вид ГСМ : 2710124500 [19:01:33]line Аи-95-К-5 [19:01:33]line 40.000 x 72.50 [19:01:33]line ИТОГ: 2900.00 [19:01:33]line Тип оплаты: Талоны: Топливная Карта [19:01:33]line 53118 [19:01:33]line ______________________ [19:01:33]line (подпись) [19:01:33]written 0, free lines is 4095 [19:01:34]Write to MH i2c: 01 00 00 4D 5C A9 [19:01:34]Write i2c OK [19:01:34]MH_I2C_Read... [19:01:34]Read from MH i2c: 01 [19:01:34]MH_I2C_Read... [19:01:34]Read from MH i2c: 01 07 00 [19:01:34]MH_I2C_Read... [19:01:34]Read from MH i2c: 01 07 00 4D 5C 00 00 00 00 00 F6 0D B3 [19:01:34]RasterBufferAndPrint [19:01:34]line [19:01:34]line [19:01:34]line [19:01:34]line [19:01:34]line [19:01:34]written 0, free lines is 3576 [19:01:34]MH_Cut [19:01:34]Write to MH i2c: D1 01 00 54 5C 01 82 [19:01:34]Write i2c OK [19:01:34]MH_I2C_Read... [19:01:34]Read from MH i2c: D1 [19:01:34]MH_I2C_Read... [19:01:34]Read from MH i2c: D1 01 00 [19:01:34]MH_I2C_Read... [19:01:34]Read from MH i2c: D1 01 00 54 5C 00 81 [19:01:34]Write to MH i2c: 01 00 00 55 5C B1 [19:01:34]Write i2c OK [19:01:34]MH_I2C_Read... [19:01:34]*** Cut start [19:01:34]*** Partial cut [19:01:34]*** CUTSNS_PIN = 1 [19:01:34]*** CUTSNS_PIN = 0 [19:01:34]OFD Sender: No OFD packet to send [19:01:34]*** Brake cut motor [19:01:35]Read from MH i2c: 01 [19:01:35]MH_I2C_Read... [19:01:35]Read from MH i2c: 01 07 00 [19:01:35]MH_I2C_Read... [19:01:35]*** Stop cut motor [19:01:35]*** Cut end [19:01:35]Read from MH i2c: 01 07 00 55 5C 00 00 00 00 00 FF 0F C6 [19:01:35]process_action print_text done [19:01:35]requested_data is exist [19:01:35]produce_requested_data [19:01:35]requested_item fm.sn is exist - process it [19:01:35]wFMCommunicate request_size=4 [19:01:35]MH_SAM_APDU [19:01:35]CAPDU: 80 11 00 00 [19:01:35]Write to MH i2c: E2 08 00 56 5C 80 11 00 00 00 00 00 00 2C [19:01:35]Write i2c OK [19:01:35]MH_I2C_Read... [19:01:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:35]Read from MH i2c: E2 [19:01:35]MH_I2C_Read... [19:01:35]Read from MH i2c: E2 17 00 [19:01:35]MH_I2C_Read... [19:01:35]Read from MH i2c: E2 17 00 56 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7B [19:01:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:01:35]wFMCommunicate OK [19:01:35]requested_item fd.num is exist - process it [19:01:35]SAM_PROTO_GetFieldsCounters [19:01:35]wFMCommunicate request_size=4 [19:01:35]MH_SAM_APDU [19:01:35]CAPDU: 80 13 00 00 [19:01:35]Write to MH i2c: E2 08 00 57 5C 80 13 00 00 00 00 00 00 2F [19:01:35]Write i2c OK [19:01:35]MH_I2C_Read... [19:01:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:35]Read from MH i2c: E2 [19:01:35]MH_I2C_Read... [19:01:35]Read from MH i2c: E2 62 00 [19:01:35]MH_I2C_Read... [19:01:35]Read from MH i2c: E2 62 00 57 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 61 71 00 00 0E 04 04 00 73 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 6A [19:01: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 61 71 00 00 0E 04 04 00 73 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 [19:01:35]wFMCommunicate OK [19:01:35]SAM_PROTO_GetFieldsCounters done [19:01:35]requested_item shift.num is exist - process it [19:01:35]requested_item shift.opened is exist - process it [19:01:35]req_shift_opened [19:01:35]FM_GetShiftState [19:01:35]SAM_PROTO_GetShiftState [19:01:35]wFMCommunicate request_size=4 [19:01:35]MH_SAM_APDU [19:01:35]CAPDU: 80 13 01 00 [19:01:35]Write to MH i2c: E2 08 00 58 5C 80 13 01 00 00 00 00 00 31 [19:01:35]Write i2c OK [19:01:35]MH_I2C_Read... [19:01:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:35]Read from MH i2c: E2 [19:01:35]MH_I2C_Read... [19:01:35]Read from MH i2c: E2 0E 00 [19:01:35]MH_I2C_Read... [19:01:35]Read from MH i2c: E2 0E 00 58 5C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 4A [19:01:35]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:01:35]wFMCommunicate OK [19:01:35]SAM_PROTO_GetShiftState done [19:01:35]FM_GetShiftState done [19:01:35]req_shift_opened done [19:01:35]requested_item shift.open_date is exist - process it [19:01:35]req_shift_open_date [19:01:35]req_shift_open_date done [19:01:35]produce_requested_data done [19:01:35]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29025,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [19:01:35]process_action_free print_text [19:01:35]json_value_free [19:01:35]json_value_free done [19:01:35]process_json_proto returns [19:01:35]Send response to host [19:01:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29025,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [19:01:35]free response buf [19:01:35]execute_script done [19:01:35]execute_script returns [19:01:35]free content buf [19:01:35]Sock 7.Close socket [19:01:35]Sock 7.Thread stoped [19:01:39]OFD Sender: No OFD packet to send [19:01:44]OFD Sender: No OFD packet to send [19:01:49]OFD Sender: No OFD packet to send [19:01:54]OFD Sender: No OFD packet to send [19:01:59]OFD Sender: No OFD packet to send [19:02:04]OFD Sender: No OFD packet to send [19:02:09]OFD Sender: No OFD packet to send [19:02:14]OFD Sender: No OFD packet to send [19:02:19]OFD Sender: No OFD packet to send [19:02:24]OFD Sender: No OFD packet to send [19:02:29]OFD Sender: No OFD packet to send [19:02:34]OFD Sender: No OFD packet to send [19:02:39]OFD Sender: No OFD packet to send [19:02:44]OFD Sender: No OFD packet to send [19:02:49]OFD Sender: No OFD packet to send [19:02:53]accept exits with 9 [19:02:53]New connection [19:02:53]New thread 3066928484 created [19:02:53]Thread 3066785124 joined [19:02:53]Waiting for new connection... [19:02:53] Sock 9.Parse request [19:02:53]Sock 9.Check first char [19:02:53]Sock 9.First char is OK [19:02:53]request: POST /json_proto HTTP/1.0 [19:02:53]Method: POST [19:02:53]URL: /json_proto [19:02:53]Method is POST - this is cgi request [19:02:53]url: /json_proto [19:02:53]query_string will be loaded in cgi processing [19:02:53]execute_cgi json_proto POST (null) [19:02:53]execute_cgi path=json_proto method=POST [19:02:53]POST find Content-Length [19:02:53]Host: 172.17.33.3:8080 [19:02:53]Content-Length: 677 [19:02:53]Content-Type: application/json [19:02:53] [19:02:53]POST finish read [19:02:53]Found Content-Length = 677 [19:02:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.630, "sum" : 490.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 490.00, "total" : 490.00, "payments": [ { "type": 0, "sum" : 490.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:53]execute_script... [19: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)347392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.630, "sum" : 490.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 490.00, "total" : 490.00, "payments": [ { "type": 0, "sum" : 490.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:53]POST & json_proto [19:02:53]process_json_proto [19:02:53]json parsed OK: [19:02:53]protocol is kg_v1.0 [19:02:53]action value=close_receipt [19:02:53]process_action close_receipt [19:02:53]cmd_close_receipt [19:02:53]MH_GetDate [19:02:53]Write to MH i2c: F0 00 00 59 5C A4 [19:02:53]Write i2c OK [19:02:53]MH_I2C_Read... [19:02:53]Read from MH i2c: F0 [19:02:53]MH_I2C_Read... [19:02:53]Read from MH i2c: F0 09 00 [19:02:53]MH_I2C_Read... [19:02:53]Read from MH i2c: F0 09 00 59 5C 00 E3 D6 1A 66 23 5B 8F 65 58 [19:02:53]GetLastDocTimeStamp 1713034717 [19:02:53]current date 1713034979 [19:02:53]FM_GetShiftState [19:02:53]SAM_PROTO_GetShiftState [19:02:53]wFMCommunicate request_size=4 [19:02:53]MH_SAM_APDU [19:02:53]CAPDU: 80 13 01 00 [19:02:53]Write to MH i2c: E2 08 00 5A 5C 80 13 01 00 00 00 00 00 33 [19:02:53]Write i2c OK [19:02:53]MH_I2C_Read... [19:02:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:53]Read from MH i2c: E2 [19:02:53]MH_I2C_Read... [19:02:53]Read from MH i2c: E2 0E 00 [19:02:53]MH_I2C_Read... [19:02:53]Read from MH i2c: E2 0E 00 5A 5C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 4C [19:02:53]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:02:53]wFMCommunicate OK [19:02:53]SAM_PROTO_GetShiftState done [19:02:53]FM_GetShiftState done [19:02:53]opened in 1712967615 [19:02:53]opened+sec_in_day 1713054015 [19:02:53]quantity*price = 49060 [19:02:53]sum+1 = 49062 [19:02:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 490.00 Внесено: 490.00 СДАЧА: 0.00 НСП 1% : 4.34 НДС 12% : 52.10 Наличными: 490.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 233 13.04.2024 19:02 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29026 ФПД: 76136416684019 1/tax-web-control/client/api/v1/ticket?date=20240413T190259&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29026&fm=76136416684019&tin=02508201610067®Number=0000138879044617&sum=49000 [19:02:54]StoreToDocumentArchive [19:02:54]shift 115 fd 29026 [19:02:54]save to /storage/0115/doc_00029026 [19:02:54]save last doc name /storage/0115/doc_00029026 to /storage/kkm_last_doc_name [19:02:54]save OK [19:02:54]Clear old archive folders... [19:02:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:02:54]tlvbuf is 01208620 [19:02:54]SAM_PROTO_ClearQueue [19:02:54]wFMCommunicate request_size=4 [19:02:54]MH_SAM_APDU [19:02:54]CAPDU: 80 09 00 00 [19:02:54]Write to MH i2c: E2 08 00 67 5C 80 09 00 00 00 00 00 00 35 [19:02:54]OFD Sender: No OFD packet to send [19:02:54]Write i2c OK [19:02:54]MH_I2C_Read... [19:02:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:54]Read from MH i2c: E2 [19:02:54]MH_I2C_Read... [19:02:54]Read from MH i2c: E2 03 00 [19:02:54]MH_I2C_Read... [19:02:54]Read from MH i2c: E2 03 00 67 5C 00 90 00 37 [19:02:54]RAPDU: 90 00 [19:02:54]wFMCommunicate OK [19:02:54]SAM_PROTO_ClearQueue done [19:02:54]KKMCreateOFDPacket [19:02:54]OFDProtocolAddRootSTLVToBuf [19:02:54]FM_MakeSignedData [19:02:54]FM_MakeSignedData [19:02:54]SAM_PROTO_SignData [19:02:54]wFMCommunicate request_size=4 [19:02:54]MH_SAM_APDU [19:02:54]CAPDU: 80 0D 01 02 [19:02:54]Write to MH i2c: E2 08 00 68 5C 80 0D 01 02 00 00 00 00 3D [19:02:54]Write i2c OK [19:02:54]MH_I2C_Read... [19:02:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:54]Read from MH i2c: E2 [19:02:54]MH_I2C_Read... [19:02:54]Read from MH i2c: E2 03 00 [19:02:54]MH_I2C_Read... [19:02:54]Read from MH i2c: E2 03 00 68 5C 00 90 00 38 [19:02:54]RAPDU: 90 00 [19:02:54]wFMCommunicate OK [19:02:54]wFMCommunicate request_size=255 [19:02:54]MH_SAM_APDU [19: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 1D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 A5 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 14 00 00 00 00 07 04 06 00 68 BF 00 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 E3 D6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 62 71 00 00 35 04 06 00 45 [19:02:54]Write to MH i2c: E2 02 01 69 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 1D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 A5 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 14 00 00 00 00 07 04 06 00 68 BF 00 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 E3 D6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 62 71 00 00 35 04 06 00 45 00 00 06 [19:02:54]Write i2c OK [19:02:54]MH_I2C_Read... [19:02:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:55]Read from MH i2c: E2 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: E2 03 00 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: E2 03 00 69 5C 00 90 00 39 [19:02:55]RAPDU: 90 00 [19:02:55]wFMCommunicate OK [19:02:55]wFMCommunicate request_size=10 [19:02:55]MH_SAM_APDU [19:02:55]CAPDU: 80 0D 02 02 05 3E E4 12 27 F3 [19:02:55]Write to MH i2c: E2 0D 00 6A 5C 80 0D 02 02 05 00 3E E4 12 27 F3 00 00 98 [19:02:55]Write i2c OK [19:02:55]MH_I2C_Read... [19:02:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:55]Read from MH i2c: E2 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: E2 03 00 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: E2 03 00 6A 5C 00 90 00 3A [19:02:55]RAPDU: 90 00 [19:02:55]wFMCommunicate OK [19:02:55]wFMCommunicate request_size=4 [19:02:55]MH_SAM_APDU [19:02:55]CAPDU: 80 0D 03 02 [19:02:55]Write to MH i2c: E2 08 00 6B 5C 80 0D 03 02 00 00 00 00 42 [19:02:55]Write i2c OK [19:02:55]MH_I2C_Read... [19:02:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:55]Read from MH i2c: E2 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: E2 0B 00 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: E2 0B 00 6B 5C 00 BF D1 B9 01 AD F1 2E CB 90 00 24 [19:02:55]RAPDU: BF D1 B9 01 AD F1 2E CB 90 00 [19:02:55]wFMCommunicate OK [19:02:55]SAM_PROTO_SignData done [19:02:55]FM_MakeSignedData done [19:02:55]CreateOFDProtocolMessage [19:02:55]wFMCommunicate request_size=4 [19:02:55]MH_SAM_APDU [19:02:55]CAPDU: 80 11 00 00 [19:02:55]Write to MH i2c: E2 08 00 6C 5C 80 11 00 00 00 00 00 00 42 [19:02:55]Write i2c OK [19:02:55]MH_I2C_Read... [19:02:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:55]Read from MH i2c: E2 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: E2 17 00 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: E2 17 00 6C 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 91 [19:02:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:02:55]wFMCommunicate OK [19:02:55]CreateOFDProtocolMessage done [19:02:55]OFDSenderStorePacket 29026 [19:02:55]StoreOFDPacket docnum=29026 [19:02:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 9F 2B 07 01 CB 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 CE 1D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 A5 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 14 00 00 00 00 07 04 06 00 68 BF 00 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 E3 D6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 62 71 00 00 35 04 06 00 45 3E E4 12 27 F3 BF D1 B9 01 AD F1 2E CB [19:02:55]CheckFolder [19:02:55]dirname=/storage/ofd_packets [19:02:55]CheckFolder done [19:02:55]ProducePacketName [19:02:55]name=ofd_packets/00029026 [19:02:55]NVStorageSaveData ofd_packets/00029026 [19:02:55]File name is /storage/ofd_packets/00029026 [19:02:55]Write 301 bytes [19:02:55]NVStorageSaveData done [19:02:55]OFDSenderStorePacket done [19:02:55]KKMCreateOFDPacket done [19:02:55]NVStorageSaveData kkm_last_timestamp [19:02:55]File name is /storage/kkm_last_timestamp [19:02:55]Write 4 bytes [19:02:55]NVStorageSaveData done [19:02:55]ExternCall_PrintAddStr [19:02:55]wPrintStart [19:02:55]Write to MH i2c: 01 00 00 6D 5C C9 [19:02:55]Write i2c OK [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: 01 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: 01 07 00 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: 01 07 00 6D 5C 00 00 00 00 00 FF 0F DE [19:02:55]RasterBufferAndPrint [19:02:55]line Счет N : (1)347392 [19:02:55]line ИНН: 02508201610067 [19:02:55]line Контрольно-Кассовый Чек [19:02:55]line ПРОДАЖА [19:02:55]line ТРК (МРК, ГНК) : 23 [19:02:55]line Товар: 2710124130 [19:02:55]line Аи-92-К-5 [19:02:55]line 7.630 * 64.30 [19:02:55]line = 490.61 [19:02:55]line НДС 12% НСП 1% [19:02:55]line > о реализуемом товаре [19:02:55]line ОКРУГЛЕНИЕ: -0.61 [19:02:55]line ИТОГО: 490.00 [19:02:55]line Внесено: 490.00 [19:02:55]line СДАЧА: 0.00 [19:02:55]line НСП 1% : 4.34 [19:02:55]line НДС 12% : 52.10 [19:02:55]line Наличными: 490.00 [19:02:55]line Безнал.: 0.00 [19:02:55]line Место: АЗС № 108 "Партнер Нефть" [19:02:55]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:02:55]line СНО: Общий режим [19:02:55]line Чек 233 13.04.2024 19:02 [19:02:55]line Смена: 115 ФФД: 1.0 [19:02:55]line ЗНМ: 0300000027 [19:02:55]line РНМ: 0000138879044617 [19:02:55]line Версия ККМ: 001 [19:02:55]line ФМ: 0000000000963154 [19:02:55]line ФД: 29026 [19:02:55]line ФПД: 76136416684019 [19:02:55]line 1/tax-web-control/client/api/v1/ticket?date=20240413T190259&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29026&fm=76136416684019&tin=02508201610067®Number=0000138879044617&sum=49000 [19:02:55]OFD Sender: Processing packet 29026 [packets to send 8, broken 7] [19:02:55]ProducePacketName [19:02:55]name=ofd_packets/00029026 [19:02:55]OFD Sender: To server: pG, [19:02:55]CommunicateWithHost lk.salyk.kg:30040 [19:02:55]ConnectInit lk.salyk.kg [19:02:55]written 0, free lines is 4095 [19:02:55]Connected sock=10 [19: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 31 35 34 0F 01 00 00 9F 2B 07 01 CB 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 CE 1D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 A5 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 14 00 00 00 00 07 04 06 00 68 BF 00 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 E3 D6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 62 71 00 00 35 04 06 00 45 3E E4 12 27 F3 BF D1 B9 01 AD F1 2E CB [19: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 31 35 34 4F 00 00 00 6F 18 47 00 A2 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 31 35 34 10 04 04 00 62 71 00 00 F4 03 04 00 8A 81 1A 66 B6 04 01 00 00 4B CC 7E 34 08 AB 2C 30 [19:02:56]CommunicateWithHost err = 0 [19:02:56]CheckOFDResponse [19:02:56]1017 (14) - 77093643461234 [19:02:56]1041 (16) - 0000000000963154 [19:02:56]1040 (4) - 29026 [19:02:56]1012 (4) - 13.04.2024 12:58 [19:02:56]1206 (1) - 0 [19:02:56]OFD Sender: Remove packet 29026 [19:02:56]ProducePacketName [19:02:56]name=ofd_packets/00029026 [19:02:56]NVStorageDeleteData [19:02:56]Write to MH i2c: 01 00 00 97 5C F3 [19:02:56]Write i2c OK [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: 01 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: 01 07 00 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: 01 07 00 97 5C 00 00 00 00 00 DD 0C E3 [19:02:56]RasterBufferAndPrint [19:02:56]line [19:02:56]line [19:02:56]line [19:02:56]line [19:02:56]line [19:02:56]written 0, free lines is 3299 [19:02:56]MH_Cut [19:02:56]Write to MH i2c: D1 01 00 9E 5C 01 CC [19:02:56]Write i2c OK [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: D1 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: D1 01 00 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: D1 01 00 9E 5C 00 CB [19:02:56]Write to MH i2c: 01 00 00 9F 5C FB [19:02:56]Write i2c OK [19:02:56]MH_I2C_Read... [19:02:56]OFD Sender: No OFD packet to send [19:02:56]*** Cut start [19:02:56]*** Partial cut [19:02:56]*** CUTSNS_PIN = 1 [19:02:57]*** CUTSNS_PIN = 0 [19:02:57]*** Brake cut motor [19:02:57]Read from MH i2c: 01 [19:02:57]MH_I2C_Read... [19:02:57]*** Stop cut motor [19:02:57]*** Cut end [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 9F 5C 00 00 00 00 00 FF 0F 10 [19:02:57]process_action close_receipt done [19:02:57]requested_data is exist [19:02:57]produce_requested_data [19:02:57]requested_item fm.sn is exist - process it [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 A0 5C 80 11 00 00 00 00 00 00 76 [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 A0 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C5 [19:02:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:02:57]wFMCommunicate OK [19:02:57]requested_item fd.num is exist - process it [19:02:57]SAM_PROTO_GetFieldsCounters [19:02:57]wFMCommunicate request_size=4 [19:02:57]MH_SAM_APDU [19:02:57]CAPDU: 80 13 00 00 [19:02:57]Write to MH i2c: E2 08 00 A1 5C 80 13 00 00 00 00 00 00 79 [19:02:57]Write i2c OK [19:02:57]MH_I2C_Read... [19:02:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:57]Read from MH i2c: E2 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: E2 62 00 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: E2 62 00 A1 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 62 71 00 00 0E 04 04 00 73 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 B8 [19: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 62 71 00 00 0E 04 04 00 73 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 [19:02:57]wFMCommunicate OK [19:02:57]SAM_PROTO_GetFieldsCounters done [19:02:57]requested_item shift.num is exist - process it [19:02:57]requested_item shift.opened is exist - process it [19:02:57]req_shift_opened [19:02:57]FM_GetShiftState [19:02:57]SAM_PROTO_GetShiftState [19:02:57]wFMCommunicate request_size=4 [19:02:57]MH_SAM_APDU [19:02:57]CAPDU: 80 13 01 00 [19:02:57]Write to MH i2c: E2 08 00 A2 5C 80 13 01 00 00 00 00 00 7B [19:02:57]Write i2c OK [19:02:57]MH_I2C_Read... [19:02:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:57]Read from MH i2c: E2 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: E2 0E 00 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: E2 0E 00 A2 5C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 94 [19:02:57]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:02:57]wFMCommunicate OK [19:02:57]SAM_PROTO_GetShiftState done [19:02:57]FM_GetShiftState done [19:02:57]req_shift_opened done [19:02:57]requested_item shift.open_date is exist - process it [19:02:57]req_shift_open_date [19:02:57]req_shift_open_date done [19:02:57]produce_requested_data done [19:02:57]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29026,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [19:02:57]process_action_free close_receipt [19:02:57]json_value_free [19:02:57]json_value_free done [19:02:57]process_json_proto returns [19:02:57]Send response to host [19:02:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29026,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [19:02:57]free response buf [19:02:57]execute_script done [19:02:57]execute_script returns [19:02:57]free content buf [19:02:57]Sock 9.Close socket [19:02:57]Sock 9.Thread stoped [19:03:01]OFD Sender: No OFD packet to send [19:03:06]OFD Sender: No OFD packet to send [19:03:11]OFD Sender: No OFD packet to send [19:03:16]OFD Sender: No OFD packet to send [19:03:21]OFD Sender: No OFD packet to send [19:03:26]OFD Sender: No OFD packet to send [19:03:31]OFD Sender: No OFD packet to send [19:03:36]OFD Sender: No OFD packet to send [19:03:41]OFD Sender: No OFD packet to send [19:03:46]OFD Sender: No OFD packet to send [19:03:51]OFD Sender: No OFD packet to send [19:03:56]OFD Sender: No OFD packet to send [19:03:57]accept exits with 7 [19:03:57]New connection [19:03:57]New thread 3066785124 created [19:03:57]Thread 3066928484 joined [19:03:57]Waiting for new connection... [19:03:57] Sock 7.Parse request [19:03:57]Sock 7.Check first char [19:03:57]Sock 7.First char is OK [19:03:57]request: POST /json_proto HTTP/1.0 [19:03:57]Method: POST [19:03:57]URL: /json_proto [19:03:57]Method is POST - this is cgi request [19:03:57]url: /json_proto [19:03:57]query_string will be loaded in cgi processing [19:03:57]execute_cgi json_proto POST (null) [19:03:57]execute_cgi path=json_proto method=POST [19:03:57]POST find Content-Length [19:03:57]Host: 172.17.33.3:8080 [19:03:57]Content-Length: 682 [19:03:57]Content-Type: application/json [19:03:57] [19:03:57]POST finish read [19:03:57]Found Content-Length = 682 [19:03:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:03:57]execute_script... [19:03: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)347393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:03:57]POST & json_proto [19:03:57]process_json_proto [19:03:57]json parsed OK: [19:03:57]protocol is kg_v1.0 [19:03:57]action value=close_receipt [19:03:57]process_action close_receipt [19:03:57]cmd_close_receipt [19:03:57]MH_GetDate [19:03:57]Write to MH i2c: F0 00 00 A3 5C EE [19:03:57]Write i2c OK [19:03:57]MH_I2C_Read... [19:03:57]Read from MH i2c: F0 [19:03:57]MH_I2C_Read... [19:03:57]Read from MH i2c: F0 09 00 [19:03:57]MH_I2C_Read... [19:03:57]Read from MH i2c: F0 09 00 A3 5C 00 23 D7 1A 66 23 5B 8F 65 E3 [19:03:57]GetLastDocTimeStamp 1713034979 [19:03:57]current date 1713035043 [19:03:57]FM_GetShiftState [19:03:57]SAM_PROTO_GetShiftState [19:03:57]wFMCommunicate request_size=4 [19:03:57]MH_SAM_APDU [19:03:57]CAPDU: 80 13 01 00 [19:03:57]Write to MH i2c: E2 08 00 A4 5C 80 13 01 00 00 00 00 00 7D [19:03:57]Write i2c OK [19:03:57]MH_I2C_Read... [19:03:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:57]Read from MH i2c: E2 [19:03:57]MH_I2C_Read... [19:03:57]Read from MH i2c: E2 0E 00 [19:03:57]MH_I2C_Read... [19:03:57]Read from MH i2c: E2 0E 00 A4 5C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 96 [19:03:57]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:03:57]wFMCommunicate OK [19:03:57]SAM_PROTO_GetShiftState done [19:03:57]FM_GetShiftState done [19:03:57]opened in 1712967615 [19:03:57]opened+sec_in_day 1713054015 [19:03:57]quantity*price = 100050 [19:03:57]sum+1 = 100052 [19:03: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 234 13.04.2024 19:04 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29027 ФПД: 200800254748347 1/tax-web-control/client/api/v1/ticket?date=20240413T190403&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29027&fm=200800254748347&tin=02508201610067®Number=0000138879044617&sum=100000 [19:03:58]StoreToDocumentArchive [19:03:58]shift 115 fd 29027 [19:03:58]save to /storage/0115/doc_00029027 [19:03:58]save last doc name /storage/0115/doc_00029027 to /storage/kkm_last_doc_name [19:03:58]save OK [19:03:58]Clear old archive folders... [19:03:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:03:58]tlvbuf is 0121DCA0 [19:03:58]SAM_PROTO_ClearQueue [19:03:58]wFMCommunicate request_size=4 [19:03:58]MH_SAM_APDU [19:03:58]CAPDU: 80 09 00 00 [19:03:58]Write to MH i2c: E2 08 00 B1 5C 80 09 00 00 00 00 00 00 7F [19:03:58]Write i2c OK [19:03:58]MH_I2C_Read... [19:03:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:58]Read from MH i2c: E2 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: E2 03 00 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: E2 03 00 B1 5C 00 90 00 81 [19:03:58]RAPDU: 90 00 [19:03:58]wFMCommunicate OK [19:03:58]SAM_PROTO_ClearQueue done [19:03:58]KKMCreateOFDPacket [19:03:58]OFDProtocolAddRootSTLVToBuf [19:03:58]FM_MakeSignedData [19:03:58]FM_MakeSignedData [19:03:58]SAM_PROTO_SignData [19:03:58]wFMCommunicate request_size=4 [19:03:58]MH_SAM_APDU [19:03:58]CAPDU: 80 0D 01 02 [19:03:58]Write to MH i2c: E2 08 00 B2 5C 80 0D 01 02 00 00 00 00 87 [19:03:58]Write i2c OK [19:03:58]MH_I2C_Read... [19:03:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:58]Read from MH i2c: E2 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: E2 03 00 [19:03:58]MH_I2C_Read... [19:03:58]Read from MH i2c: E2 03 00 B2 5C 00 90 00 82 [19:03:58]RAPDU: 90 00 [19:03:58]wFMCommunicate OK [19:03:58]wFMCommunicate request_size=255 [19:03:58]MH_SAM_APDU [19:03: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 EA 00 00 00 F4 03 04 00 23 D7 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 63 71 00 00 35 04 06 00 B6 [19:03:58]Write to MH i2c: E2 02 01 B3 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 EA 00 00 00 F4 03 04 00 23 D7 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 63 71 00 00 35 04 06 00 B6 00 00 14 [19:03:58]Write i2c OK [19:03:58]MH_I2C_Read... [19:03:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:59]Read from MH i2c: E2 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 03 00 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 03 00 B3 5C 00 90 00 83 [19:03:59]RAPDU: 90 00 [19:03:59]wFMCommunicate OK [19:03:59]wFMCommunicate request_size=10 [19:03:59]MH_SAM_APDU [19:03:59]CAPDU: 80 0D 02 02 05 A0 73 DA E6 BB [19:03:59]Write to MH i2c: E2 0D 00 B4 5C 80 0D 02 02 05 00 A0 73 DA E6 BB 00 00 22 [19:03:59]Write i2c OK [19:03:59]MH_I2C_Read... [19:03:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:59]Read from MH i2c: E2 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 03 00 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 03 00 B4 5C 00 90 00 84 [19:03:59]RAPDU: 90 00 [19:03:59]wFMCommunicate OK [19:03:59]wFMCommunicate request_size=4 [19:03:59]MH_SAM_APDU [19:03:59]CAPDU: 80 0D 03 02 [19:03:59]Write to MH i2c: E2 08 00 B5 5C 80 0D 03 02 00 00 00 00 8C [19:03:59]Write i2c OK [19:03:59]MH_I2C_Read... [19:03:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:59]Read from MH i2c: E2 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 0B 00 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 0B 00 B5 5C 00 7A 47 2E 49 20 25 21 DF 90 00 0A [19:03:59]RAPDU: 7A 47 2E 49 20 25 21 DF 90 00 [19:03:59]wFMCommunicate OK [19:03:59]SAM_PROTO_SignData done [19:03:59]FM_MakeSignedData done [19:03:59]CreateOFDProtocolMessage [19:03:59]wFMCommunicate request_size=4 [19:03:59]MH_SAM_APDU [19:03:59]CAPDU: 80 11 00 00 [19:03:59]Write to MH i2c: E2 08 00 B6 5C 80 11 00 00 00 00 00 00 8C [19:03:59]Write i2c OK [19:03:59]MH_I2C_Read... [19:03:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:59]Read from MH i2c: E2 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 17 00 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: E2 17 00 B6 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DB [19:03:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:03:59]wFMCommunicate OK [19:03:59]CreateOFDProtocolMessage done [19:03:59]OFDSenderStorePacket 29027 [19:03:59]StoreOFDPacket docnum=29027 [19:03:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 C4 98 07 01 25 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 EA 00 00 00 F4 03 04 00 23 D7 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 63 71 00 00 35 04 06 00 B6 A0 73 DA E6 BB 7A 47 2E 49 20 25 21 DF [19:03:59]CheckFolder [19:03:59]dirname=/storage/ofd_packets [19:03:59]CheckFolder done [19:03:59]ProducePacketName [19:03:59]name=ofd_packets/00029027 [19:03:59]NVStorageSaveData ofd_packets/00029027 [19:03:59]File name is /storage/ofd_packets/00029027 [19:03:59]Write 301 bytes [19:03:59]NVStorageSaveData done [19:03:59]OFDSenderStorePacket done [19:03:59]KKMCreateOFDPacket done [19:03:59]NVStorageSaveData kkm_last_timestamp [19:03:59]File name is /storage/kkm_last_timestamp [19:03:59]Write 4 bytes [19:03:59]NVStorageSaveData done [19:03:59]ExternCall_PrintAddStr [19:03:59]wPrintStart [19:03:59]Write to MH i2c: 01 00 00 B7 5C 13 [19:03:59]Write i2c OK [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: 01 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: 01 07 00 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: 01 07 00 B7 5C 00 00 00 00 00 FF 0F 28 [19:03:59]RasterBufferAndPrint [19:03:59]line Счет N : (1)347393 [19:03:59]line ИНН: 02508201610067 [19:03:59]line Контрольно-Кассовый Чек [19:03:59]line ПРОДАЖА [19:03:59]line ТРК (МРК, ГНК) : 23 [19:03:59]line Товар: 2710124130 [19:03:59]line Аи-92-К-5 [19:03:59]line 15.560 * 64.30 [19:03:59]line = 1000.51 [19:03:59]line НДС 12% НСП 1% [19:03:59]line > о реализуемом товаре [19:03:59]line ОКРУГЛЕНИЕ: -0.51 [19:03:59]line ИТОГО: 1000.00 [19:03:59]line Внесено: 1000.00 [19:03:59]line СДАЧА: 0.00 [19:03:59]line НСП 1% : 8.85 [19:03:59]line НДС 12% : 106.25 [19:03:59]line Наличными: 1000.00 [19:03:59]line Безнал.: 0.00 [19:03:59]line Место: АЗС № 108 "Партнер Нефть" [19:03:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:03:59]line СНО: Общий режим [19:03:59]line Чек 234 13.04.2024 19:04 [19:03:59]line Смена: 115 ФФД: 1.0 [19:03:59]line ЗНМ: 0300000027 [19:03:59]line РНМ: 0000138879044617 [19:03:59]line Версия ККМ: 001 [19:03:59]line ФМ: 0000000000963154 [19:03:59]line ФД: 29027 [19:03:59]line ФПД: 200800254748347 [19:03:59]line 1/tax-web-control/client/api/v1/ticket?date=20240413T190403&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29027&fm=200800254748347&tin=02508201610067®Number=0000138879044617&sum=100000 [19:03:59]OFD Sender: Processing packet 29027 [packets to send 8, broken 7] [19:03:59]ProducePacketName [19:03:59]name=ofd_packets/00029027 [19:03:59]OFD Sender: To server: pG, [19:03:59]CommunicateWithHost lk.salyk.kg:30040 [19:03:59]ConnectInit lk.salyk.kg [19:03:59]written 0, free lines is 4095 [19:03:59]Connected sock=10 [19:03: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 31 35 34 0F 01 00 00 C4 98 07 01 25 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 EA 00 00 00 F4 03 04 00 23 D7 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 63 71 00 00 35 04 06 00 B6 A0 73 DA E6 BB 7A 47 2E 49 20 25 21 DF [19:03:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AF FA 47 00 A5 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 31 35 34 10 04 04 00 63 71 00 00 F4 03 04 00 C9 81 1A 66 B6 04 01 00 00 50 1C 3A E7 86 6B 3C DD [19:03:59]CommunicateWithHost err = 0 [19:03:59]CheckOFDResponse [19:03:59]1017 (14) - 77093643461234 [19:03:59]1041 (16) - 0000000000963154 [19:03:59]1040 (4) - 29027 [19:03:59]1012 (4) - 13.04.2024 12:59 [19:03:59]1206 (1) - 0 [19:03:59]OFD Sender: Remove packet 29027 [19:03:59]ProducePacketName [19:03:59]name=ofd_packets/00029027 [19:03:59]NVStorageDeleteData [19:03:59]Write to MH i2c: 01 00 00 E1 5C 3D [19:03:59]Write i2c OK [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: 01 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: 01 07 00 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: 01 07 00 E1 5C 00 00 00 00 00 D0 0C 20 [19:03:59]RasterBufferAndPrint [19:03:59]line [19:03:59]line [19:03:59]line [19:03:59]line [19:03:59]line [19:03:59]written 0, free lines is 3286 [19:03:59]MH_Cut [19:03:59]Write to MH i2c: D1 01 00 E8 5C 01 16 [19:03:59]Write i2c OK [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: D1 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: D1 01 00 [19:03:59]MH_I2C_Read... [19:03:59]Read from MH i2c: D1 01 00 E8 5C 00 15 [19:03:59]Write to MH i2c: 01 00 00 E9 5C 45 [19:03:59]Write i2c OK [19:03:59]MH_I2C_Read... [19:04:00]OFD Sender: No OFD packet to send [19:04:00]*** Cut start [19:04:00]*** Partial cut [19:04:00]*** CUTSNS_PIN = 1 [19:04:00]*** CUTSNS_PIN = 0 [19:04:01]*** Brake cut motor [19:04:01]Read from MH i2c: 01 [19:04:01]MH_I2C_Read... [19:04:01]*** Stop cut motor [19:04:01]*** Cut end [19:04:01]Read from MH i2c: 01 07 00 [19:04:01]MH_I2C_Read... [19:04:01]Read from MH i2c: 01 07 00 E9 5C 00 00 00 00 00 FF 0F 5A [19:04:01]process_action close_receipt done [19:04:01]requested_data is exist [19:04:01]produce_requested_data [19:04:01]requested_item fm.sn is exist - process it [19:04:01]wFMCommunicate request_size=4 [19:04:01]MH_SAM_APDU [19:04:01]CAPDU: 80 11 00 00 [19:04:01]Write to MH i2c: E2 08 00 EA 5C 80 11 00 00 00 00 00 00 C0 [19:04:01]Write i2c OK [19:04:01]MH_I2C_Read... [19:04:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:01]Read from MH i2c: E2 [19:04:01]MH_I2C_Read... [19:04:01]Read from MH i2c: E2 17 00 [19:04:01]MH_I2C_Read... [19:04:01]Read from MH i2c: E2 17 00 EA 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0F [19:04:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:04:01]wFMCommunicate OK [19:04:01]requested_item fd.num is exist - process it [19:04:01]SAM_PROTO_GetFieldsCounters [19:04:01]wFMCommunicate request_size=4 [19:04:01]MH_SAM_APDU [19:04:01]CAPDU: 80 13 00 00 [19:04:01]Write to MH i2c: E2 08 00 EB 5C 80 13 00 00 00 00 00 00 C3 [19:04:01]Write i2c OK [19:04:01]MH_I2C_Read... [19:04:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:01]Read from MH i2c: E2 [19:04:01]MH_I2C_Read... [19:04:01]Read from MH i2c: E2 62 00 [19:04:01]MH_I2C_Read... [19:04:01]Read from MH i2c: E2 62 00 EB 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 63 71 00 00 0E 04 04 00 73 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 06 [19:04: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 63 71 00 00 0E 04 04 00 73 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 [19:04:01]wFMCommunicate OK [19:04:01]SAM_PROTO_GetFieldsCounters done [19:04:01]requested_item shift.num is exist - process it [19:04:01]requested_item shift.opened is exist - process it [19:04:01]req_shift_opened [19:04:01]FM_GetShiftState [19:04:01]SAM_PROTO_GetShiftState [19:04:01]wFMCommunicate request_size=4 [19:04:01]MH_SAM_APDU [19:04:01]CAPDU: 80 13 01 00 [19:04:01]Write to MH i2c: E2 08 00 EC 5C 80 13 01 00 00 00 00 00 C5 [19:04:01]Write i2c OK [19:04:01]MH_I2C_Read... [19:04:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:01]Read from MH i2c: E2 [19:04:01]MH_I2C_Read... [19:04:01]Read from MH i2c: E2 0E 00 [19:04:01]MH_I2C_Read... [19:04:01]Read from MH i2c: E2 0E 00 EC 5C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 DE [19:04:01]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:04:01]wFMCommunicate OK [19:04:01]SAM_PROTO_GetShiftState done [19:04:01]FM_GetShiftState done [19:04:01]req_shift_opened done [19:04:01]requested_item shift.open_date is exist - process it [19:04:01]req_shift_open_date [19:04:01]req_shift_open_date done [19:04:01]produce_requested_data done [19:04:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29027,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [19:04:01]process_action_free close_receipt [19:04:01]json_value_free [19:04:01]json_value_free done [19:04:01]process_json_proto returns [19:04:01]Send response to host [19:04:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29027,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [19:04:01]free response buf [19:04:01]execute_script done [19:04:01]execute_script returns [19:04:01]free content buf [19:04:01]Sock 7.Close socket [19:04:01]Sock 7.Thread stoped [19:04:05]OFD Sender: No OFD packet to send [19:04:10]OFD Sender: No OFD packet to send [19:04:15]OFD Sender: No OFD packet to send [19:04:20]OFD Sender: No OFD packet to send [19:04:25]OFD Sender: No OFD packet to send [19:04:30]OFD Sender: No OFD packet to send [19:04:35]OFD Sender: No OFD packet to send [19:04:40]OFD Sender: No OFD packet to send [19:04:43]accept exits with 9 [19:04:43]New connection [19:04:43]New thread 3066928484 created [19:04:43]Thread 3066785124 joined [19:04:43]Waiting for new connection... [19:04:43] Sock 9.Parse request [19:04:43]Sock 9.Check first char [19:04:43]Sock 9.First char is OK [19:04:43]request: POST /json_proto HTTP/1.0 [19:04:43]Method: POST [19:04:43]URL: /json_proto [19:04:43]Method is POST - this is cgi request [19:04:43]url: /json_proto [19:04:43]query_string will be loaded in cgi processing [19:04:43]execute_cgi json_proto POST (null) [19:04:43]execute_cgi path=json_proto method=POST [19:04:43]POST find Content-Length [19:04:43]Host: 172.17.33.3:8080 [19:04:43]Content-Length: 1166 [19:04:43]Content-Type: application/json [19:04:43] [19:04:43]POST finish read [19:04:43]Found Content-Length = 1166 [19:04:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347391\u000A13.04.2024 18:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 82.880 x 72.40\u000A\u0418\u0422\u041E\u0413: 6000.51\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30115168\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:43]execute_script... [19:04:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347391\u000A13.04.2024 18:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 82.880 x 72.40\u000A\u0418\u0422\u041E\u0413: 6000.51\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30115168\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:43]POST & json_proto [19:04:43]process_json_proto [19:04:43]json parsed OK: [19:04:43]protocol is kg_v1.0 [19:04:43]action value=print_text [19:04:43]process_action print_text [19:04:43]cmd_print_text [19:04:43]ExternCall_PrintAddStr [19:04:43]wPrintStart [19:04:43]Write to MH i2c: 01 00 00 ED 5C 49 [19:04:43]Write i2c OK [19:04:43]MH_I2C_Read... [19:04:43]Read from MH i2c: 01 [19:04:43]MH_I2C_Read... [19:04:43]Read from MH i2c: 01 07 00 [19:04:43]MH_I2C_Read... [19:04:43]Read from MH i2c: 01 07 00 ED 5C 00 00 00 00 00 FF 0F 5E [19:04:43]RasterBufferAndPrint [19:04:43]line *****ТОВАРНЫЙ ЧЕК***** [19:04:43]line АЗС 108 [19:04:43]line Партнер нефть [19:04:43]line 02508201610067 [19:04:43]line Кассир : Шадыканова Ж. [19:04:43]line Счет N : (1)347391 [19:04:43]line 13.04.2024 18:46 [19:04:43]line ПРОДАЖА [19:04:43]line ТРК (МРК, ГНК): 51 [19:04:43]line Вид ГСМ : 2710194210 [19:04:43]line ДТ-К-5 [19:04:43]line 82.880 x 72.40 [19:04:43]line ИТОГ: 6000.51 [19:04:43]line Тип оплаты: Талоны: ТК ГПНА Online [19:04:43]line 30115168 [19:04:43]line ______________________ [19:04:43]line (подпись) [19:04:43]written 0, free lines is 4095 [19:04:43]Write to MH i2c: 01 00 00 02 5D 5F [19:04:43]Write i2c OK [19:04:43]MH_I2C_Read... [19:04:43]Read from MH i2c: 01 [19:04:43]MH_I2C_Read... [19:04:43]Read from MH i2c: 01 07 00 [19:04:43]MH_I2C_Read... [19:04:43]Read from MH i2c: 01 07 00 02 5D 00 00 00 00 00 F4 0D 67 [19:04:43]RasterBufferAndPrint [19:04:43]line [19:04:43]line [19:04:43]line [19:04:43]line [19:04:43]line [19:04:43]written 0, free lines is 3574 [19:04:43]MH_Cut [19:04:43]Write to MH i2c: D1 01 00 09 5D 01 38 [19:04:43]Write i2c OK [19:04:43]MH_I2C_Read... [19:04:43]Read from MH i2c: D1 [19:04:43]MH_I2C_Read... [19:04:43]Read from MH i2c: D1 01 00 [19:04:43]MH_I2C_Read... [19:04:43]Read from MH i2c: D1 01 00 09 5D 00 37 [19:04:43]Write to MH i2c: 01 00 00 0A 5D 67 [19:04:43]Write i2c OK [19:04:43]MH_I2C_Read... [19:04:44]*** Cut start [19:04:44]*** Partial cut [19:04:44]*** CUTSNS_PIN = 1 [19:04:44]*** CUTSNS_PIN = 0 [19:04:44]*** Brake cut motor [19:04:45]Read from MH i2c: 01 [19:04:45]MH_I2C_Read... [19:04:45]*** Stop cut motor [19:04:45]*** Cut end [19:04:45]Read from MH i2c: 01 07 00 [19:04:45]MH_I2C_Read... [19:04:45]Read from MH i2c: 01 07 00 0A 5D 00 00 00 00 00 FF 0F 7C [19:04:45]process_action print_text done [19:04:45]requested_data is exist [19:04:45]produce_requested_data [19:04:45]requested_item fm.sn is exist - process it [19:04:45]wFMCommunicate request_size=4 [19:04:45]MH_SAM_APDU [19:04:45]CAPDU: 80 11 00 00 [19:04:45]Write to MH i2c: E2 08 00 0B 5D 80 11 00 00 00 00 00 00 E2 [19:04:45]Write i2c OK [19:04:45]MH_I2C_Read... [19:04:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:45]Read from MH i2c: E2 [19:04:45]MH_I2C_Read... [19:04:45]Read from MH i2c: E2 17 00 [19:04:45]MH_I2C_Read... [19:04:45]Read from MH i2c: E2 17 00 0B 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 31 [19:04:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:04:45]wFMCommunicate OK [19:04:45]requested_item fd.num is exist - process it [19:04:45]SAM_PROTO_GetFieldsCounters [19:04:45]wFMCommunicate request_size=4 [19:04:45]MH_SAM_APDU [19:04:45]CAPDU: 80 13 00 00 [19:04:45]Write to MH i2c: E2 08 00 0C 5D 80 13 00 00 00 00 00 00 E5 [19:04:45]Write i2c OK [19:04:45]MH_I2C_Read... [19:04:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:45]Read from MH i2c: E2 [19:04:45]MH_I2C_Read... [19:04:45]Read from MH i2c: E2 62 00 [19:04:45]MH_I2C_Read... [19:04:45]Read from MH i2c: E2 62 00 0C 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 63 71 00 00 0E 04 04 00 73 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 28 [19:04: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 63 71 00 00 0E 04 04 00 73 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 [19:04:45]wFMCommunicate OK [19:04:45]SAM_PROTO_GetFieldsCounters done [19:04:45]requested_item shift.num is exist - process it [19:04:45]requested_item shift.opened is exist - process it [19:04:45]req_shift_opened [19:04:45]FM_GetShiftState [19:04:45]SAM_PROTO_GetShiftState [19:04:45]wFMCommunicate request_size=4 [19:04:45]MH_SAM_APDU [19:04:45]CAPDU: 80 13 01 00 [19:04:45]Write to MH i2c: E2 08 00 0D 5D 80 13 01 00 00 00 00 00 E7 [19:04:45]Write i2c OK [19:04:45]MH_I2C_Read... [19:04:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:45]Read from MH i2c: E2 [19:04:45]MH_I2C_Read... [19:04:45]Read from MH i2c: E2 0E 00 [19:04:45]MH_I2C_Read... [19:04:45]Read from MH i2c: E2 0E 00 0D 5D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 00 [19:04:45]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:04:45]wFMCommunicate OK [19:04:45]SAM_PROTO_GetShiftState done [19:04:45]FM_GetShiftState done [19:04:45]req_shift_opened done [19:04:45]requested_item shift.open_date is exist - process it [19:04:45]req_shift_open_date [19:04:45]req_shift_open_date done [19:04:45]produce_requested_data done [19:04:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29027,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [19:04:45]process_action_free print_text [19:04:45]json_value_free [19:04:45]json_value_free done [19:04:45]process_json_proto returns [19:04:45]Send response to host [19:04:45]OFD Sender: No OFD packet to send [19:04:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29027,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [19:04:45]free response buf [19:04:45]execute_script done [19:04:45]execute_script returns [19:04:45]free content buf [19:04:45]Sock 9.Close socket [19:04:45]Sock 9.Thread stoped [19:04:50]OFD Sender: No OFD packet to send [19:04:55]OFD Sender: No OFD packet to send [19:05:00]OFD Sender: No OFD packet to send [19:05:05]OFD Sender: No OFD packet to send [19:05:10]OFD Sender: No OFD packet to send [19:05:15]OFD Sender: No OFD packet to send [19:05:20]OFD Sender: No OFD packet to send [19:05:25]OFD Sender: No OFD packet to send [19:05:30]OFD Sender: No OFD packet to send [19:05:35]OFD Sender: No OFD packet to send [19:05:40]OFD Sender: No OFD packet to send [19:05:45]OFD Sender: No OFD packet to send [19:05:50]OFD Sender: No OFD packet to send [19:05:55]OFD Sender: No OFD packet to send [19:06:00]OFD Sender: No OFD packet to send [19:06:05]OFD Sender: No OFD packet to send [19:06:10]OFD Sender: No OFD packet to send [19:06:15]OFD Sender: No OFD packet to send [19:06:20]OFD Sender: No OFD packet to send [19:06:25]OFD Sender: No OFD packet to send [19:06:30]OFD Sender: No OFD packet to send [19:06:35]OFD Sender: No OFD packet to send [19:06:40]OFD Sender: No OFD packet to send [19:06:45]OFD Sender: No OFD packet to send [19:06:50]OFD Sender: No OFD packet to send [19:06:55]OFD Sender: No OFD packet to send [19:07:00]OFD Sender: No OFD packet to send [19:07:05]OFD Sender: No OFD packet to send [19:07:10]OFD Sender: No OFD packet to send [19:07:15]OFD Sender: No OFD packet to send [19:07:20]accept exits with 7 [19:07:20]New connection [19:07:20]New thread 3066785124 created [19:07:20]Thread 3066928484 joined [19:07:20]Waiting for new connection... [19:07:20] Sock 7.Parse request [19:07:20]Sock 7.Check first char [19:07:20]Sock 7.First char is OK [19:07:20]request: POST /json_proto HTTP/1.0 [19:07:20]Method: POST [19:07:20]URL: /json_proto [19:07:20]Method is POST - this is cgi request [19:07:20]url: /json_proto [19:07:20]query_string will be loaded in cgi processing [19:07:20]execute_cgi json_proto POST (null) [19:07:20]execute_cgi path=json_proto method=POST [19:07:20]POST find Content-Length [19:07:20]Host: 172.17.33.3:8080 [19:07:20]Content-Length: 653 [19:07:20]Content-Type: application/json [19:07:20] [19:07:20]POST finish read [19:07:20]Found Content-Length = 653 [19:07:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 10.000, "sum" : 653.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "payments": [ { "type": 0, "sum" : 653.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:20]execute_script... [19:07:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 10.000, "sum" : 653.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "payments": [ { "type": 0, "sum" : 653.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:20]POST & json_proto [19:07:20]process_json_proto [19:07:20]json parsed OK: [19:07:20]protocol is kg_v1.0 [19:07:20]action value=close_receipt [19:07:20]process_action close_receipt [19:07:20]cmd_close_receipt [19:07:20]MH_GetDate [19:07:20]Write to MH i2c: F0 00 00 0E 5D 5A [19:07:20]Write i2c OK [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: F0 [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: F0 09 00 [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: F0 09 00 0E 5D 00 EE D7 1A 66 23 5B 8F 65 1A [19:07:20]GetLastDocTimeStamp 1713035043 [19:07:20]current date 1713035246 [19:07:20]FM_GetShiftState [19:07:20]SAM_PROTO_GetShiftState [19:07:20]wFMCommunicate request_size=4 [19:07:20]MH_SAM_APDU [19:07:20]CAPDU: 80 13 01 00 [19:07:20]Write to MH i2c: E2 08 00 0F 5D 80 13 01 00 00 00 00 00 E9 [19:07:20]Write i2c OK [19:07:20]MH_I2C_Read... [19:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:20]Read from MH i2c: E2 [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: E2 0E 00 [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: E2 0E 00 0F 5D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 02 [19:07:20]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:07:20]wFMCommunicate OK [19:07:20]SAM_PROTO_GetShiftState done [19:07:20]FM_GetShiftState done [19:07:20]opened in 1712967615 [19:07:20]opened+sec_in_day 1713054015 [19:07:20]quantity*price = 65300 [19:07:20]sum+1 = 65301 [19:07:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 653.00 Внесено: 800.00 СДАЧА: 147.00 НСП 1% : 5.78 НДС 12% : 69.34 Наличными: 653.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 235 13.04.2024 19:07 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29028 ФПД: 255662291199629 1/tax-web-control/client/api/v1/ticket?date=20240413T190726&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29028&fm=255662291199629&tin=02508201610067®Number=0000138879044617&sum=65300 [19:07:21]StoreToDocumentArchive [19:07:21]shift 115 fd 29028 [19:07:21]save to /storage/0115/doc_00029028 [19:07:21]save last doc name /storage/0115/doc_00029028 to /storage/kkm_last_doc_name [19:07:21]save OK [19:07:21]Clear old archive folders... [19:07:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:07:21]tlvbuf is 011E3510 [19:07:21]SAM_PROTO_ClearQueue [19:07:21]wFMCommunicate request_size=4 [19:07:21]MH_SAM_APDU [19:07:21]CAPDU: 80 09 00 00 [19:07:21]Write to MH i2c: E2 08 00 1C 5D 80 09 00 00 00 00 00 00 EB [19:07:21]Write i2c OK [19:07:21]MH_I2C_Read... [19:07:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:07:21]Read from MH i2c: E2 [19:07:21]MH_I2C_Read... [19:07:21]Read from MH i2c: E2 03 00 [19:07:21]MH_I2C_Read... [19:07:21]Read from MH i2c: E2 03 00 1C 5D 00 90 00 ED [19:07:21]RAPDU: 90 00 [19:07:21]wFMCommunicate OK [19:07:21]SAM_PROTO_ClearQueue done [19:07:21]KKMCreateOFDPacket [19:07:21]OFDProtocolAddRootSTLVToBuf [19:07:21]FM_MakeSignedData [19:07:21]FM_MakeSignedData [19:07:21]SAM_PROTO_SignData [19:07:21]wFMCommunicate request_size=4 [19:07:21]MH_SAM_APDU [19:07:21]CAPDU: 80 0D 01 02 [19:07:21]Write to MH i2c: E2 08 00 1D 5D 80 0D 01 02 00 00 00 00 F3 [19:07:21]Write i2c OK [19:07:21]MH_I2C_Read... [19:07:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:07:21]Read from MH i2c: E2 [19:07:21]MH_I2C_Read... [19:07:21]Read from MH i2c: E2 03 00 [19:07:21]MH_I2C_Read... [19:07:21]Read from MH i2c: E2 03 00 1D 5D 00 90 00 EE [19:07:21]RAPDU: 90 00 [19:07:21]wFMCommunicate OK [19:07:21]wFMCommunicate request_size=255 [19:07:21]MH_SAM_APDU [19:07:21]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 14 FF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 FF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1B 00 00 00 00 07 04 06 00 14 FF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 EE D7 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 64 71 00 00 35 04 06 00 [19:07:21]Write to MH i2c: E2 02 01 1E 5D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 14 FF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 FF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1B 00 00 00 00 07 04 06 00 14 FF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 EE D7 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 64 71 00 00 35 04 06 00 00 00 BC [19:07:21]Write i2c OK [19:07:21]MH_I2C_Read... [19:07:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:21]Read from MH i2c: E2 [19:07:21]MH_I2C_Read... [19:07:21]Read from MH i2c: E2 03 00 [19:07:21]MH_I2C_Read... [19:07:21]Read from MH i2c: E2 03 00 1E 5D 00 90 00 EF [19:07:21]RAPDU: 90 00 [19:07:21]wFMCommunicate OK [19:07:21]wFMCommunicate request_size=11 [19:07:21]MH_SAM_APDU [19:07:21]CAPDU: 80 0D 02 02 06 E8 86 04 0C A6 8D [19:07:21]Write to MH i2c: E2 0E 00 1F 5D 80 0D 02 02 06 00 E8 86 04 0C A6 8D 00 00 B3 [19:07:21]Write i2c OK [19:07:21]MH_I2C_Read... [19:07:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:21]Read from MH i2c: E2 [19:07:21]MH_I2C_Read... [19:07:21]Read from MH i2c: E2 03 00 [19:07:21]MH_I2C_Read... [19:07:21]Read from MH i2c: E2 03 00 1F 5D 00 90 00 F0 [19:07:21]RAPDU: 90 00 [19:07:21]wFMCommunicate OK [19:07:21]wFMCommunicate request_size=4 [19:07:21]MH_SAM_APDU [19:07:21]CAPDU: 80 0D 03 02 [19:07:21]Write to MH i2c: E2 08 00 20 5D 80 0D 03 02 00 00 00 00 F8 [19:07:21]Write i2c OK [19:07:21]MH_I2C_Read... [19:07:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:07:21]Read from MH i2c: E2 [19:07:21]MH_I2C_Read... [19:07:21]Read from MH i2c: E2 0B 00 [19:07:21]MH_I2C_Read... [19:07:21]Read from MH i2c: E2 0B 00 20 5D 00 0E B7 C5 41 2B D5 B8 C4 90 00 40 [19:07:21]RAPDU: 0E B7 C5 41 2B D5 B8 C4 90 00 [19:07:21]wFMCommunicate OK [19:07:21]SAM_PROTO_SignData done [19:07:21]FM_MakeSignedData done [19:07:21]CreateOFDProtocolMessage [19:07:21]wFMCommunicate request_size=4 [19:07:21]MH_SAM_APDU [19:07:21]CAPDU: 80 11 00 00 [19:07:21]Write to MH i2c: E2 08 00 21 5D 80 11 00 00 00 00 00 00 F8 [19:07:21]Write i2c OK [19:07:21]MH_I2C_Read... [19:07:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:21]Read from MH i2c: E2 [19:07:21]MH_I2C_Read... [19:07:21]Read from MH i2c: E2 17 00 [19:07:21]MH_I2C_Read... [19:07:21]Read from MH i2c: E2 17 00 21 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 47 [19:07:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:07:21]wFMCommunicate OK [19:07:21]CreateOFDProtocolMessage done [19:07:21]OFDSenderStorePacket 29028 [19:07:21]StoreOFDPacket docnum=29028 [19:07:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 CE 12 08 01 75 25 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 14 FF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 FF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1B 00 00 00 00 07 04 06 00 14 FF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 EE D7 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 64 71 00 00 35 04 06 00 E8 86 04 0C A6 8D 0E B7 C5 41 2B D5 B8 C4 [19:07:21]CheckFolder [19:07:21]dirname=/storage/ofd_packets [19:07:21]CheckFolder done [19:07:21]ProducePacketName [19:07:21]name=ofd_packets/00029028 [19:07:21]NVStorageSaveData ofd_packets/00029028 [19:07:21]File name is /storage/ofd_packets/00029028 [19:07:21]Write 302 bytes [19:07:21]NVStorageSaveData done [19:07:21]OFDSenderStorePacket done [19:07:21]KKMCreateOFDPacket done [19:07:21]NVStorageSaveData kkm_last_timestamp [19:07:21]File name is /storage/kkm_last_timestamp [19:07:21]Write 4 bytes [19:07:21]NVStorageSaveData done [19:07:21]ExternCall_PrintAddStr [19:07:21]wPrintStart [19:07:21]Write to MH i2c: 01 00 00 22 5D 7F [19:07:21]Write i2c OK [19:07:21]MH_I2C_Read... [19:07:21]Read from MH i2c: 01 [19:07:21]MH_I2C_Read... [19:07:21]Read from MH i2c: 01 07 00 [19:07:21]MH_I2C_Read... [19:07:21]Read from MH i2c: 01 07 00 22 5D 00 00 00 00 00 FF 0F 94 [19:07:21]RasterBufferAndPrint [19:07:21]line Счет N : (1)347395 [19:07:21]line ИНН: 02508201610067 [19:07:21]line Контрольно-Кассовый Чек [19:07:21]line ПРОДАЖА [19:07:21]line ТРК (МРК, ГНК) : 31 [19:07:21]line Товар: 2710124130 [19:07:21]line SUPER-92-К-5 [19:07:21]line 10.000 * 65.30 [19:07:21]line = 653.00 [19:07:21]line НДС 12% НСП 1% [19:07:21]line > о реализуемом товаре [19:07:21]line ИТОГО: 653.00 [19:07:21]line Внесено: 800.00 [19:07:21]line СДАЧА: 147.00 [19:07:21]line НСП 1% : 5.78 [19:07:21]line НДС 12% : 69.34 [19:07:21]line Наличными: 653.00 [19:07:21]line Безнал.: 0.00 [19:07:21]line Место: АЗС № 108 "Партнер Нефть" [19:07:21]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:07:21]line СНО: Общий режим [19:07:21]line Чек 235 13.04.2024 19:07 [19:07:21]line Смена: 115 ФФД: 1.0 [19:07:21]line ЗНМ: 0300000027 [19:07:21]line РНМ: 0000138879044617 [19:07:21]line Версия ККМ: 001 [19:07:21]line ФМ: 0000000000963154 [19:07:21]line ФД: 29028 [19:07:21]line ФПД: 255662291199629 [19:07:21]line 1/tax-web-control/client/api/v1/ticket?date=20240413T190726&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29028&fm=255662291199629&tin=02508201610067®Number=0000138879044617&sum=65300 [19:07:22]OFD Sender: Processing packet 29028 [packets to send 8, broken 7] [19:07:22]ProducePacketName [19:07:22]name=ofd_packets/00029028 [19:07:22]OFD Sender: To server: pG, [19:07:22]CommunicateWithHost lk.salyk.kg:30040 [19:07:22]ConnectInit lk.salyk.kg [19:07:22]written 0, free lines is 4095 [19:07:22]Connected sock=10 [19:07:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 CE 12 08 01 75 25 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 14 FF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 FF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1B 00 00 00 00 07 04 06 00 14 FF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 EE D7 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 64 71 00 00 35 04 06 00 E8 86 04 0C A6 8D 0E B7 C5 41 2B D5 B8 C4 [19:07:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6E 19 47 00 F7 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 31 35 34 10 04 04 00 64 71 00 00 F4 03 04 00 94 82 1A 66 B6 04 01 00 00 9C 7B A5 58 69 F6 52 84 [19:07:22]CommunicateWithHost err = 0 [19:07:22]CheckOFDResponse [19:07:22]1017 (14) - 77093643461234 [19:07:22]1041 (16) - 0000000000963154 [19:07:22]1040 (4) - 29028 [19:07:22]1012 (4) - 13.04.2024 13:03 [19:07:22]1206 (1) - 0 [19:07:22]OFD Sender: Remove packet 29028 [19:07:22]ProducePacketName [19:07:22]name=ofd_packets/00029028 [19:07:22]NVStorageDeleteData [19:07:22]Write to MH i2c: 01 00 00 4B 5D A8 [19:07:22]Write i2c OK [19:07:22]MH_I2C_Read... [19:07:22]Read from MH i2c: 01 [19:07:22]MH_I2C_Read... [19:07:22]Read from MH i2c: 01 07 00 [19:07:22]MH_I2C_Read... [19:07:22]Read from MH i2c: 01 07 00 4B 5D 00 00 00 00 00 F4 0C AF [19:07:22]RasterBufferAndPrint [19:07:22]line [19:07:22]line [19:07:22]line [19:07:22]line [19:07:22]line [19:07:22]written 0, free lines is 3324 [19:07:22]MH_Cut [19:07:22]Write to MH i2c: D1 01 00 52 5D 01 81 [19:07:22]Write i2c OK [19:07:22]MH_I2C_Read... [19:07:22]Read from MH i2c: D1 [19:07:22]MH_I2C_Read... [19:07:22]Read from MH i2c: D1 01 00 [19:07:22]MH_I2C_Read... [19:07:22]Read from MH i2c: D1 01 00 52 5D 00 80 [19:07:22]Write to MH i2c: 01 00 00 53 5D B0 [19:07:22]Write i2c OK [19:07:22]MH_I2C_Read... [19:07:22]OFD Sender: No OFD packet to send [19:07:23]*** Cut start [19:07:23]*** Partial cut [19:07:23]*** CUTSNS_PIN = 1 [19:07:23]*** CUTSNS_PIN = 0 [19:07:23]*** Brake cut motor [19:07:24]Read from MH i2c: 01 [19:07:24]MH_I2C_Read... [19:07:24]*** Stop cut motor [19:07:24]*** Cut end [19:07:24]Read from MH i2c: 01 07 00 [19:07:24]MH_I2C_Read... [19:07:24]Read from MH i2c: 01 07 00 53 5D 00 00 00 00 00 FF 0F C5 [19:07:24]process_action close_receipt done [19:07:24]requested_data is exist [19:07:24]produce_requested_data [19:07:24]requested_item fm.sn is exist - process it [19:07:24]wFMCommunicate request_size=4 [19:07:24]MH_SAM_APDU [19:07:24]CAPDU: 80 11 00 00 [19:07:24]Write to MH i2c: E2 08 00 54 5D 80 11 00 00 00 00 00 00 2B [19:07:24]Write i2c OK [19:07:24]MH_I2C_Read... [19:07:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:24]Read from MH i2c: E2 [19:07:24]MH_I2C_Read... [19:07:24]Read from MH i2c: E2 17 00 [19:07:24]MH_I2C_Read... [19:07:24]Read from MH i2c: E2 17 00 54 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7A [19:07:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:07:24]wFMCommunicate OK [19:07:24]requested_item fd.num is exist - process it [19:07:24]SAM_PROTO_GetFieldsCounters [19:07:24]wFMCommunicate request_size=4 [19:07:24]MH_SAM_APDU [19:07:24]CAPDU: 80 13 00 00 [19:07:24]Write to MH i2c: E2 08 00 55 5D 80 13 00 00 00 00 00 00 2E [19:07:24]Write i2c OK [19:07:24]MH_I2C_Read... [19:07:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:07:24]Read from MH i2c: E2 [19:07:24]MH_I2C_Read... [19:07:24]Read from MH i2c: E2 62 00 [19:07:24]MH_I2C_Read... [19:07:24]Read from MH i2c: E2 62 00 55 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 64 71 00 00 0E 04 04 00 73 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 75 [19:07:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 64 71 00 00 0E 04 04 00 73 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 [19:07:24]wFMCommunicate OK [19:07:24]SAM_PROTO_GetFieldsCounters done [19:07:24]requested_item shift.num is exist - process it [19:07:24]requested_item shift.opened is exist - process it [19:07:24]req_shift_opened [19:07:24]FM_GetShiftState [19:07:24]SAM_PROTO_GetShiftState [19:07:24]wFMCommunicate request_size=4 [19:07:24]MH_SAM_APDU [19:07:24]CAPDU: 80 13 01 00 [19:07:24]Write to MH i2c: E2 08 00 56 5D 80 13 01 00 00 00 00 00 30 [19:07:24]Write i2c OK [19:07:24]MH_I2C_Read... [19:07:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:24]Read from MH i2c: E2 [19:07:24]MH_I2C_Read... [19:07:24]Read from MH i2c: E2 0E 00 [19:07:24]MH_I2C_Read... [19:07:24]Read from MH i2c: E2 0E 00 56 5D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 49 [19:07:24]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:07:24]wFMCommunicate OK [19:07:24]SAM_PROTO_GetShiftState done [19:07:24]FM_GetShiftState done [19:07:24]req_shift_opened done [19:07:24]requested_item shift.open_date is exist - process it [19:07:24]req_shift_open_date [19:07:24]req_shift_open_date done [19:07:24]produce_requested_data done [19:07:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29028,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [19:07:24]process_action_free close_receipt [19:07:24]json_value_free [19:07:24]json_value_free done [19:07:24]process_json_proto returns [19:07:24]Send response to host [19:07:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29028,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [19:07:24]free response buf [19:07:24]execute_script done [19:07:24]execute_script returns [19:07:24]free content buf [19:07:24]Sock 7.Close socket [19:07:24]Sock 7.Thread stoped [19:07:27]OFD Sender: No OFD packet to send [19:07:32]OFD Sender: No OFD packet to send [19:07:37]OFD Sender: No OFD packet to send [19:07:42]OFD Sender: No OFD packet to send [19:07:47]OFD Sender: No OFD packet to send [19:07:52]OFD Sender: No OFD packet to send [19:07:57]OFD Sender: No OFD packet to send [19:08:03]OFD Sender: No OFD packet to send [19:08:08]OFD Sender: No OFD packet to send [19:08:13]OFD Sender: No OFD packet to send [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:58]OFD Sender: No OFD packet to send [19:09:03]OFD Sender: No OFD packet to send [19:09:08]OFD Sender: No OFD packet to send [19:09:11]accept exits with 9 [19:09:11]New connection [19:09:11]New thread 3066928484 created [19:09:11]Thread 3066785124 joined [19:09:11]Waiting for new connection... [19:09:11] Sock 9.Parse request [19:09:11]Sock 9.Check first char [19:09:11]Sock 9.First char is OK [19:09:11]request: POST /json_proto HTTP/1.0 [19:09:11]Method: POST [19:09:11]URL: /json_proto [19:09:11]Method is POST - this is cgi request [19:09:11]url: /json_proto [19:09:11]query_string will be loaded in cgi processing [19:09:11]execute_cgi json_proto POST (null) [19:09:11]execute_cgi path=json_proto method=POST [19:09:11]POST find Content-Length [19:09:11]Host: 172.17.33.3:8080 [19:09:11]Content-Length: 1166 [19:09:11]Content-Type: application/json [19:09:11] [19:09:11]POST finish read [19:09:11]Found Content-Length = 1166 [19:09:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347394\u000A13.04.2024 18:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 3620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30115168\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:11]execute_script... [19:09:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347394\u000A13.04.2024 18:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 3620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30115168\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:11]POST & json_proto [19:09:11]process_json_proto [19:09:11]json parsed OK: [19:09:11]protocol is kg_v1.0 [19:09:11]action value=print_text [19:09:11]process_action print_text [19:09:11]cmd_print_text [19:09:11]ExternCall_PrintAddStr [19:09:11]wPrintStart [19:09:11]Write to MH i2c: 01 00 00 57 5D B4 [19:09:11]Write i2c OK [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: 01 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: 01 07 00 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: 01 07 00 57 5D 00 00 00 00 00 FF 0F C9 [19:09:11]RasterBufferAndPrint [19:09:11]line *****ТОВАРНЫЙ ЧЕК***** [19:09:11]line АЗС 108 [19:09:11]line Партнер нефть [19:09:11]line 02508201610067 [19:09:11]line Кассир : Шадыканова Ж. [19:09:11]line Счет N : (1)347394 [19:09:11]line 13.04.2024 18:51 [19:09:11]line ПРОДАЖА [19:09:11]line ТРК (МРК, ГНК): 51 [19:09:11]line Вид ГСМ : 2710194210 [19:09:11]line ДТ-К-5 [19:09:11]line 50.000 x 72.40 [19:09:11]line ИТОГ: 3620.00 [19:09:11]line Тип оплаты: Талоны: ТК ГПНА Online [19:09:11]line 30115168 [19:09:11]line ______________________ [19:09:11]line (подпись) [19:09:11]written 0, free lines is 4095 [19:09:11]Write to MH i2c: 01 00 00 6C 5D C9 [19:09:11]Write i2c OK [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: 01 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: 01 07 00 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: 01 07 00 6C 5D 00 00 00 00 00 F3 0D D0 [19:09:11]RasterBufferAndPrint [19:09:11]line [19:09:11]line [19:09:11]line [19:09:11]line [19:09:11]line [19:09:11]written 0, free lines is 3573 [19:09:11]MH_Cut [19:09:11]Write to MH i2c: D1 01 00 73 5D 01 A2 [19:09:11]Write i2c OK [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: D1 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: D1 01 00 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: D1 01 00 73 5D 00 A1 [19:09:11]Write to MH i2c: 01 00 00 74 5D D1 [19:09:11]Write i2c OK [19:09:11]MH_I2C_Read... [19:09:12]*** Cut start [19:09:12]*** Partial cut [19:09:12]*** CUTSNS_PIN = 1 [19:09:12]*** CUTSNS_PIN = 0 [19:09:12]*** Brake cut motor [19:09:12]Read from MH i2c: 01 [19:09:12]MH_I2C_Read... [19:09:12]*** Stop cut motor [19:09:12]*** Cut end [19:09:12]Read from MH i2c: 01 07 00 [19:09:12]MH_I2C_Read... [19:09:12]Read from MH i2c: 01 07 00 74 5D 00 00 00 00 00 FF 0F E6 [19:09:12]process_action print_text done [19:09:12]requested_data is exist [19:09:12]produce_requested_data [19:09:12]requested_item fm.sn is exist - process it [19:09:12]wFMCommunicate request_size=4 [19:09:12]MH_SAM_APDU [19:09:12]CAPDU: 80 11 00 00 [19:09:12]Write to MH i2c: E2 08 00 75 5D 80 11 00 00 00 00 00 00 4C [19:09:12]Write i2c OK [19:09:12]MH_I2C_Read... [19:09:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:12]Read from MH i2c: E2 [19:09:12]MH_I2C_Read... [19:09:12]Read from MH i2c: E2 17 00 [19:09:12]MH_I2C_Read... [19:09:12]Read from MH i2c: E2 17 00 75 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9B [19:09:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:09:12]wFMCommunicate OK [19:09:12]requested_item fd.num is exist - process it [19:09:12]SAM_PROTO_GetFieldsCounters [19:09:12]wFMCommunicate request_size=4 [19:09:12]MH_SAM_APDU [19:09:12]CAPDU: 80 13 00 00 [19:09:12]Write to MH i2c: E2 08 00 76 5D 80 13 00 00 00 00 00 00 4F [19:09:12]Write i2c OK [19:09:12]MH_I2C_Read... [19:09:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:12]Read from MH i2c: E2 [19:09:12]MH_I2C_Read... [19:09:12]Read from MH i2c: E2 62 00 [19:09:12]MH_I2C_Read... [19:09:12]Read from MH i2c: E2 62 00 76 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 64 71 00 00 0E 04 04 00 73 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 96 [19:09: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 64 71 00 00 0E 04 04 00 73 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 [19:09:12]wFMCommunicate OK [19:09:12]SAM_PROTO_GetFieldsCounters done [19:09:12]requested_item shift.num is exist - process it [19:09:12]requested_item shift.opened is exist - process it [19:09:12]req_shift_opened [19:09:12]FM_GetShiftState [19:09:12]SAM_PROTO_GetShiftState [19:09:12]wFMCommunicate request_size=4 [19:09:12]MH_SAM_APDU [19:09:12]CAPDU: 80 13 01 00 [19:09:12]Write to MH i2c: E2 08 00 77 5D 80 13 01 00 00 00 00 00 51 [19:09:12]Write i2c OK [19:09:12]MH_I2C_Read... [19:09:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:12]Read from MH i2c: E2 [19:09:12]MH_I2C_Read... [19:09:12]Read from MH i2c: E2 0E 00 [19:09:12]MH_I2C_Read... [19:09:12]Read from MH i2c: E2 0E 00 77 5D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 6A [19:09:12]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:09:12]wFMCommunicate OK [19:09:12]SAM_PROTO_GetShiftState done [19:09:12]FM_GetShiftState done [19:09:12]req_shift_opened done [19:09:12]requested_item shift.open_date is exist - process it [19:09:12]req_shift_open_date [19:09:12]req_shift_open_date done [19:09:12]produce_requested_data done [19:09:12]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29028,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [19:09:12]process_action_free print_text [19:09:12]json_value_free [19:09:12]json_value_free done [19:09:12]process_json_proto returns [19:09:12]Send response to host [19:09:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29028,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [19:09:12]free response buf [19:09:12]execute_script done [19:09:12]execute_script returns [19:09:12]free content buf [19:09:12]Sock 9.Close socket [19:09:12]Sock 9.Thread stoped [19:09:13]OFD Sender: No OFD packet to send [19:09:18]OFD Sender: No OFD packet to send [19:09:23]OFD Sender: No OFD packet to send [19:09:28]OFD Sender: No OFD packet to send [19:09:33]OFD Sender: No OFD packet to send [19:09:38]OFD Sender: No OFD packet to send [19:09:43]OFD Sender: No OFD packet to send [19:09:48]OFD Sender: No OFD packet to send [19:09:53]OFD Sender: No OFD packet to send [19:09:58]OFD Sender: No OFD packet to send [19:10:03]OFD Sender: No OFD packet to send [19:10:08]OFD Sender: No OFD packet to send [19:10:13]OFD Sender: No OFD packet to send [19:10:18]OFD Sender: No OFD packet to send [19:10:23]OFD Sender: No OFD packet to send [19:10:28]OFD Sender: No OFD packet to send [19:10:33]OFD Sender: No OFD packet to send [19:10:38]OFD Sender: No OFD packet to send [19:10:43]OFD Sender: No OFD packet to send [19:10:48]OFD Sender: No OFD packet to send [19:10:53]OFD Sender: No OFD packet to send [19:10:58]OFD Sender: No OFD packet to send [19:11:03]OFD Sender: No OFD packet to send [19:11:08]OFD Sender: No OFD packet to send [19:11:13]OFD Sender: No OFD packet to send [19:11:18]OFD Sender: No OFD packet to send [19:11:23]OFD Sender: No OFD packet to send [19:11:28]OFD Sender: No OFD packet to send [19:11:33]OFD Sender: No OFD packet to send [19:11:38]OFD Sender: No OFD packet to send [19:11:43]OFD Sender: No OFD packet to send [19:11:48]OFD Sender: No OFD packet to send [19:11:53]OFD Sender: No OFD packet to send [19:11:58]OFD Sender: No OFD packet to send [19:12:03]OFD Sender: No OFD packet to send [19:12:08]OFD Sender: No OFD packet to send [19:12:13]OFD Sender: No OFD packet to send [19:12:18]OFD Sender: No OFD packet to send [19:12:23]OFD Sender: No OFD packet to send [19:12:28]OFD Sender: No OFD packet to send [19:12:33]OFD Sender: No OFD packet to send [19:12:38]OFD Sender: No OFD packet to send [19:12:43]OFD Sender: No OFD packet to send [19:12:48]OFD Sender: No OFD packet to send [19:12:53]OFD Sender: No OFD packet to send [19:12:58]OFD Sender: No OFD packet to send [19:13:03]OFD Sender: No OFD packet to send [19:13:08]OFD Sender: No OFD packet to send [19:13:13]OFD Sender: No OFD packet to send [19:13:18]OFD Sender: No OFD packet to send [19:13:23]OFD Sender: No OFD packet to send [19:13:28]OFD Sender: No OFD packet to send [19:13:33]OFD Sender: No OFD packet to send [19:13:38]OFD Sender: No OFD packet to send [19:13:43]OFD Sender: No OFD packet to send [19:13:48]OFD Sender: No OFD packet to send [19:13:53]OFD Sender: No OFD packet to send [19:13:58]OFD Sender: No OFD packet to send [19:14:03]OFD Sender: No OFD packet to send [19:14:08]OFD Sender: No OFD packet to send [19:14:13]OFD Sender: No OFD packet to send [19:14:18]OFD Sender: No OFD packet to send [19:14:23]OFD Sender: No OFD packet to send [19:14:28]OFD Sender: No OFD packet to send [19:14:33]OFD Sender: No OFD packet to send [19:14:38]OFD Sender: No OFD packet to send [19:14:43]OFD Sender: No OFD packet to send [19:14:48]OFD Sender: No OFD packet to send [19:14:53]OFD Sender: No OFD packet to send [19:14:58]OFD Sender: No OFD packet to send [19:15:03]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:47]accept exits with 7 [19:15:47]New connection [19:15:47]New thread 3066785124 created [19:15:47]Thread 3066928484 joined [19:15:47]Waiting for new connection... [19:15:47] Sock 7.Parse request [19:15:47]Sock 7.Check first char [19:15:47]Sock 7.First char is OK [19:15:47]request: POST /json_proto HTTP/1.0 [19:15:47]Method: POST [19:15:47]URL: /json_proto [19:15:47]Method is POST - this is cgi request [19:15:47]url: /json_proto [19:15:47]query_string will be loaded in cgi processing [19:15:47]execute_cgi json_proto POST (null) [19:15:47]execute_cgi path=json_proto method=POST [19:15:47]POST find Content-Length [19:15:47]Host: 172.17.33.3:8080 [19:15:47]Content-Length: 679 [19:15:47]Content-Type: application/json [19:15:47] [19:15:47]POST finish read [19:15:47]Found Content-Length = 679 [19:15:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:15:47]execute_script... [19:15: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)347396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:15:47]POST & json_proto [19:15:47]process_json_proto [19:15:47]json parsed OK: [19:15:47]protocol is kg_v1.0 [19:15:47]action value=close_receipt [19:15:47]process_action close_receipt [19:15:47]cmd_close_receipt [19:15:47]MH_GetDate [19:15:47]Write to MH i2c: F0 00 00 78 5D C4 [19:15:47]Write i2c OK [19:15:47]MH_I2C_Read... [19:15:47]Read from MH i2c: F0 [19:15:47]MH_I2C_Read... [19:15:47]Read from MH i2c: F0 09 00 [19:15:47]MH_I2C_Read... [19:15:47]Read from MH i2c: F0 09 00 78 5D 00 E9 D9 1A 66 23 5B 8F 65 81 [19:15:47]GetLastDocTimeStamp 1713035246 [19:15:47]current date 1713035753 [19:15:47]FM_GetShiftState [19:15:47]SAM_PROTO_GetShiftState [19:15:47]wFMCommunicate request_size=4 [19:15:47]MH_SAM_APDU [19:15:47]CAPDU: 80 13 01 00 [19:15:47]Write to MH i2c: E2 08 00 79 5D 80 13 01 00 00 00 00 00 53 [19:15:47]Write i2c OK [19:15:47]MH_I2C_Read... [19:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:47]Read from MH i2c: E2 [19:15:47]MH_I2C_Read... [19:15:47]Read from MH i2c: E2 0E 00 [19:15:47]MH_I2C_Read... [19:15:47]Read from MH i2c: E2 0E 00 79 5D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 6C [19:15:47]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:15:47]wFMCommunicate OK [19:15:47]SAM_PROTO_GetShiftState done [19:15:47]FM_GetShiftState done [19:15:47]opened in 1712967615 [19:15:47]opened+sec_in_day 1713054015 [19:15:47]quantity*price = 100056 [19:15:47]sum+1 = 100058 [19:15:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 236 13.04.2024 19:15 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29029 ФПД: 122904852157381 1/tax-web-control/client/api/v1/ticket?date=20240413T191553&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29029&fm=122904852157381&tin=02508201610067®Number=0000138879044617&sum=100000 [19:15:48]StoreToDocumentArchive [19:15:48]shift 115 fd 29029 [19:15:48]save to /storage/0115/doc_00029029 [19:15:48]save last doc name /storage/0115/doc_00029029 to /storage/kkm_last_doc_name [19:15:48]save OK [19:15:48]Clear old archive folders... [19:15:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:15:48]tlvbuf is 012143F0 [19:15:48]SAM_PROTO_ClearQueue [19:15:48]wFMCommunicate request_size=4 [19:15:48]MH_SAM_APDU [19:15:48]CAPDU: 80 09 00 00 [19:15:48]Write to MH i2c: E2 08 00 86 5D 80 09 00 00 00 00 00 00 55 [19:15:48]Write i2c OK [19:15:48]MH_I2C_Read... [19:15:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:48]Read from MH i2c: E2 [19:15:48]MH_I2C_Read... [19:15:48]Read from MH i2c: E2 03 00 [19:15:48]MH_I2C_Read... [19:15:48]Read from MH i2c: E2 03 00 86 5D 00 90 00 57 [19:15:48]RAPDU: 90 00 [19:15:48]wFMCommunicate OK [19:15:48]SAM_PROTO_ClearQueue done [19:15:48]KKMCreateOFDPacket [19:15:48]OFDProtocolAddRootSTLVToBuf [19:15:48]FM_MakeSignedData [19:15:48]FM_MakeSignedData [19:15:48]SAM_PROTO_SignData [19:15:48]wFMCommunicate request_size=4 [19:15:48]MH_SAM_APDU [19:15:48]CAPDU: 80 0D 01 02 [19:15:48]Write to MH i2c: E2 08 00 87 5D 80 0D 01 02 00 00 00 00 5D [19:15:48]Write i2c OK [19:15:48]MH_I2C_Read... [19:15:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:48]Read from MH i2c: E2 [19:15:48]MH_I2C_Read... [19:15:48]Read from MH i2c: E2 03 00 [19:15:48]MH_I2C_Read... [19:15:48]Read from MH i2c: E2 03 00 87 5D 00 90 00 58 [19:15:48]RAPDU: 90 00 [19:15:48]wFMCommunicate OK [19:15:48]wFMCommunicate request_size=255 [19:15:48]MH_SAM_APDU [19:15: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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 EC 00 00 00 F4 03 04 00 E9 D9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 65 71 00 00 35 04 06 00 6F C8 04 0D [19:15:48]Write to MH i2c: E2 02 01 88 5D 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 EC 00 00 00 F4 03 04 00 E9 D9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 65 71 00 00 35 04 06 00 6F C8 04 0D 00 00 FB [19:15:48]Write i2c OK [19:15:48]MH_I2C_Read... [19:15:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:49]Read from MH i2c: E2 [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: E2 03 00 [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: E2 03 00 88 5D 00 90 00 59 [19:15:49]RAPDU: 90 00 [19:15:49]wFMCommunicate OK [19:15:49]wFMCommunicate request_size=7 [19:15:49]MH_SAM_APDU [19:15:49]CAPDU: 80 0D 02 02 02 D3 C5 [19:15:49]Write to MH i2c: E2 0A 00 89 5D 80 0D 02 02 02 00 D3 C5 00 00 FC [19:15:49]Write i2c OK [19:15:49]MH_I2C_Read... [19:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:49]Read from MH i2c: E2 [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: E2 03 00 [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: E2 03 00 89 5D 00 90 00 5A [19:15:49]RAPDU: 90 00 [19:15:49]wFMCommunicate OK [19:15:49]wFMCommunicate request_size=4 [19:15:49]MH_SAM_APDU [19:15:49]CAPDU: 80 0D 03 02 [19:15:49]Write to MH i2c: E2 08 00 8A 5D 80 0D 03 02 00 00 00 00 62 [19:15:49]Write i2c OK [19:15:49]MH_I2C_Read... [19:15:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:49]Read from MH i2c: E2 [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: E2 0B 00 [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: E2 0B 00 8A 5D 00 20 B8 50 F5 AD 2C 01 94 90 00 EE [19:15:49]RAPDU: 20 B8 50 F5 AD 2C 01 94 90 00 [19:15:49]wFMCommunicate OK [19:15:49]SAM_PROTO_SignData done [19:15:49]FM_MakeSignedData done [19:15:49]CreateOFDProtocolMessage [19:15:49]wFMCommunicate request_size=4 [19:15:49]MH_SAM_APDU [19:15:49]CAPDU: 80 11 00 00 [19:15:49]Write to MH i2c: E2 08 00 8B 5D 80 11 00 00 00 00 00 00 62 [19:15:49]Write i2c OK [19:15:49]MH_I2C_Read... [19:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:49]Read from MH i2c: E2 [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: E2 17 00 [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: E2 17 00 8B 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B1 [19:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:15:49]wFMCommunicate OK [19:15:49]CreateOFDProtocolMessage done [19:15:49]OFDSenderStorePacket 29029 [19:15:49]StoreOFDPacket docnum=29029 [19:15:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 C2 4C 04 01 4A A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 EC 00 00 00 F4 03 04 00 E9 D9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 65 71 00 00 35 04 06 00 6F C8 04 0D D3 C5 20 B8 50 F5 AD 2C 01 94 [19:15:49]CheckFolder [19:15:49]dirname=/storage/ofd_packets [19:15:49]CheckFolder done [19:15:49]ProducePacketName [19:15:49]name=ofd_packets/00029029 [19:15:49]NVStorageSaveData ofd_packets/00029029 [19:15:49]File name is /storage/ofd_packets/00029029 [19:15:49]Write 298 bytes [19:15:49]NVStorageSaveData done [19:15:49]OFDSenderStorePacket done [19:15:49]KKMCreateOFDPacket done [19:15:49]NVStorageSaveData kkm_last_timestamp [19:15:49]File name is /storage/kkm_last_timestamp [19:15:49]Write 4 bytes [19:15:49]NVStorageSaveData done [19:15:49]ExternCall_PrintAddStr [19:15:49]wPrintStart [19:15:49]Write to MH i2c: 01 00 00 8C 5D E9 [19:15:49]Write i2c OK [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: 01 [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: 01 07 00 [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: 01 07 00 8C 5D 00 00 00 00 00 FF 0F FE [19:15:49]RasterBufferAndPrint [19:15:49]line Счет N : (1)347396 [19:15:49]line ИНН: 02508201610067 [19:15:49]line Контрольно-Кассовый Чек [19:15:49]line ПРОДАЖА [19:15:49]line ТРК (МРК, ГНК) : 11 [19:15:49]line Товар: 2710194210 [19:15:49]line ДТ-К-5 [19:15:49]line 13.820 * 72.40 [19:15:49]line = 1000.57 [19:15:49]line НДС 12% НСП 1% [19:15:49]line > о реализуемом товаре [19:15:49]line ОКРУГЛЕНИЕ: -0.57 [19:15:49]line ИТОГО: 1000.00 [19:15:49]line Внесено: 1000.00 [19:15:49]line СДАЧА: 0.00 [19:15:49]line НСП 1% : 8.85 [19:15:49]line НДС 12% : 106.25 [19:15:49]line Наличными: 1000.00 [19:15:49]line Безнал.: 0.00 [19:15:49]line Место: АЗС № 108 "Партнер Нефть" [19:15:49]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:15:49]line СНО: Общий режим [19:15:49]line Чек 236 13.04.2024 19:15 [19:15:49]line Смена: 115 ФФД: 1.0 [19:15:49]line ЗНМ: 0300000027 [19:15:49]line РНМ: 0000138879044617 [19:15:49]line Версия ККМ: 001 [19:15:49]line ФМ: 0000000000963154 [19:15:49]line ФД: 29029 [19:15:49]line ФПД: 122904852157381 [19:15:49]line 1/tax-web-control/client/api/v1/ticket?date=20240413T191553&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29029&fm=122904852157381&tin=02508201610067®Number=0000138879044617&sum=100000 [19:15:49]OFD Sender: Processing packet 29029 [packets to send 8, broken 7] [19:15:49]ProducePacketName [19:15:49]name=ofd_packets/00029029 [19:15:49]OFD Sender: To server: pG, [19:15:49]CommunicateWithHost lk.salyk.kg:30040 [19:15:49]ConnectInit lk.salyk.kg [19:15:49]written 0, free lines is 4095 [19:15:49]Connected sock=10 [19:15: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 31 35 34 0C 01 00 00 C2 4C 04 01 4A A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 EC 00 00 00 F4 03 04 00 E9 D9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 65 71 00 00 35 04 06 00 6F C8 04 0D D3 C5 20 B8 50 F5 AD 2C 01 94 [19:15:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B4 DD 47 00 7E 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 31 35 34 10 04 04 00 65 71 00 00 F4 03 04 00 8F 84 1A 66 B6 04 01 00 00 96 73 78 A0 07 BF 9C E1 [19:15:49]CommunicateWithHost err = 0 [19:15:49]CheckOFDResponse [19:15:49]1017 (14) - 77093643461234 [19:15:49]1041 (16) - 0000000000963154 [19:15:49]1040 (4) - 29029 [19:15:49]1012 (4) - 13.04.2024 13:11 [19:15:49]1206 (1) - 0 [19:15:49]OFD Sender: Remove packet 29029 [19:15:49]ProducePacketName [19:15:49]name=ofd_packets/00029029 [19:15:49]NVStorageDeleteData [19:15:49]Write to MH i2c: 01 00 00 B6 5D 13 [19:15:49]Write i2c OK [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: 01 [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: 01 07 00 [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: 01 07 00 B6 5D 00 00 00 00 00 D7 0C FD [19:15:49]RasterBufferAndPrint [19:15:49]line [19:15:49]line [19:15:49]line [19:15:49]line [19:15:49]line [19:15:49]written 0, free lines is 3294 [19:15:49]MH_Cut [19:15:49]Write to MH i2c: D1 01 00 BD 5D 01 EC [19:15:49]Write i2c OK [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: D1 [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: D1 01 00 [19:15:49]MH_I2C_Read... [19:15:49]Read from MH i2c: D1 01 00 BD 5D 00 EB [19:15:49]Write to MH i2c: 01 00 00 BE 5D 1B [19:15:49]Write i2c OK [19:15:49]MH_I2C_Read... [19:15:50]OFD Sender: No OFD packet to send [19:15:50]*** Cut start [19:15:50]*** Partial cut [19:15:50]*** CUTSNS_PIN = 1 [19:15:50]*** CUTSNS_PIN = 0 [19:15:51]*** Brake cut motor [19:15:51]Read from MH i2c: 01 [19:15:51]MH_I2C_Read... [19:15:51]*** Stop cut motor [19:15:51]*** Cut end [19:15:51]Read from MH i2c: 01 07 00 [19:15:51]MH_I2C_Read... [19:15:51]Read from MH i2c: 01 07 00 BE 5D 00 00 00 00 00 FF 0F 30 [19:15:51]process_action close_receipt done [19:15:51]requested_data is exist [19:15:51]produce_requested_data [19:15:51]requested_item fm.sn is exist - process it [19:15:51]wFMCommunicate request_size=4 [19:15:51]MH_SAM_APDU [19:15:51]CAPDU: 80 11 00 00 [19:15:51]Write to MH i2c: E2 08 00 BF 5D 80 11 00 00 00 00 00 00 96 [19:15:51]Write i2c OK [19:15:51]MH_I2C_Read... [19:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:51]Read from MH i2c: E2 [19:15:51]MH_I2C_Read... [19:15:51]Read from MH i2c: E2 17 00 [19:15:51]MH_I2C_Read... [19:15:51]Read from MH i2c: E2 17 00 BF 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E5 [19:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:15:51]wFMCommunicate OK [19:15:51]requested_item fd.num is exist - process it [19:15:51]SAM_PROTO_GetFieldsCounters [19:15:51]wFMCommunicate request_size=4 [19:15:51]MH_SAM_APDU [19:15:51]CAPDU: 80 13 00 00 [19:15:51]Write to MH i2c: E2 08 00 C0 5D 80 13 00 00 00 00 00 00 99 [19:15:51]Write i2c OK [19:15:51]MH_I2C_Read... [19:15:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:51]Read from MH i2c: E2 [19:15:51]MH_I2C_Read... [19:15:51]Read from MH i2c: E2 62 00 [19:15:51]MH_I2C_Read... [19:15:51]Read from MH i2c: E2 62 00 C0 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 65 71 00 00 0E 04 04 00 73 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 E4 [19:15: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 65 71 00 00 0E 04 04 00 73 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 [19:15:51]wFMCommunicate OK [19:15:51]SAM_PROTO_GetFieldsCounters done [19:15:51]requested_item shift.num is exist - process it [19:15:51]requested_item shift.opened is exist - process it [19:15:51]req_shift_opened [19:15:51]FM_GetShiftState [19:15:51]SAM_PROTO_GetShiftState [19:15:51]wFMCommunicate request_size=4 [19:15:51]MH_SAM_APDU [19:15:51]CAPDU: 80 13 01 00 [19:15:51]Write to MH i2c: E2 08 00 C1 5D 80 13 01 00 00 00 00 00 9B [19:15:51]Write i2c OK [19:15:51]MH_I2C_Read... [19:15:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:51]Read from MH i2c: E2 [19:15:51]MH_I2C_Read... [19:15:51]Read from MH i2c: E2 0E 00 [19:15:51]MH_I2C_Read... [19:15:51]Read from MH i2c: E2 0E 00 C1 5D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 B4 [19:15:51]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:15:51]wFMCommunicate OK [19:15:51]SAM_PROTO_GetShiftState done [19:15:51]FM_GetShiftState done [19:15:51]req_shift_opened done [19:15:51]requested_item shift.open_date is exist - process it [19:15:51]req_shift_open_date [19:15:51]req_shift_open_date done [19:15:51]produce_requested_data done [19:15:51]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29029,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [19:15:51]process_action_free close_receipt [19:15:51]json_value_free [19:15:51]json_value_free done [19:15:51]process_json_proto returns [19:15:51]Send response to host [19:15:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29029,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [19:15:51]free response buf [19:15:51]execute_script done [19:15:51]execute_script returns [19:15:51]free content buf [19:15:51]Sock 7.Close socket [19:15:51]Sock 7.Thread stoped [19:15:55]OFD Sender: No OFD packet to send [19:16:00]OFD Sender: No OFD packet to send [19:16:05]OFD Sender: No OFD packet to send [19:16:10]OFD Sender: No OFD packet to send [19:16:15]OFD Sender: No OFD packet to send [19:16:20]OFD Sender: No OFD packet to send [19:16:25]OFD Sender: No OFD packet to send [19:16:30]OFD Sender: No OFD packet to send [19:16:35]OFD Sender: No OFD packet to send [19:16:40]OFD Sender: No OFD packet to send [19:16:42]accept exits with 9 [19:16:42]New connection [19:16:42]New thread 3066928484 created [19:16:42]Thread 3066785124 joined [19:16:42]Waiting for new connection... [19:16:42] Sock 9.Parse request [19:16:42]Sock 9.Check first char [19:16:42]Sock 9.First char is OK [19:16:42]request: POST /json_proto HTTP/1.0 [19:16:42]Method: POST [19:16:42]URL: /json_proto [19:16:42]Method is POST - this is cgi request [19:16:42]url: /json_proto [19:16:42]query_string will be loaded in cgi processing [19:16:42]execute_cgi json_proto POST (null) [19:16:42]execute_cgi path=json_proto method=POST [19:16:42]POST find Content-Length [19:16:42]Host: 172.17.33.3:8080 [19:16:42]Content-Length: 810 [19:16:42]Content-Type: application/json [19:16:42] [19:16:42]POST finish read [19:16:42]Found Content-Length = 810 [19:16:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 10.720, "sum" : 700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:42]execute_script... [19:16:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 10.720, "sum" : 700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:42]POST & json_proto [19:16:42]process_json_proto [19:16:42]json parsed OK: [19:16:42]protocol is kg_v1.0 [19:16:42]action value=close_receipt [19:16:42]process_action close_receipt [19:16:42]cmd_close_receipt [19:16:42]MH_GetDate [19:16:42]Write to MH i2c: F0 00 00 C2 5D 0E [19:16:42]Write i2c OK [19:16:42]MH_I2C_Read... [19:16:42]Read from MH i2c: F0 [19:16:42]MH_I2C_Read... [19:16:42]Read from MH i2c: F0 09 00 [19:16:42]MH_I2C_Read... [19:16:42]Read from MH i2c: F0 09 00 C2 5D 00 20 DA 1A 66 23 5B 8F 65 03 [19:16:42]GetLastDocTimeStamp 1713035753 [19:16:42]current date 1713035808 [19:16:42]FM_GetShiftState [19:16:42]SAM_PROTO_GetShiftState [19:16:42]wFMCommunicate request_size=4 [19:16:42]MH_SAM_APDU [19:16:42]CAPDU: 80 13 01 00 [19:16:42]Write to MH i2c: E2 08 00 C3 5D 80 13 01 00 00 00 00 00 9D [19:16:42]Write i2c OK [19:16:42]MH_I2C_Read... [19:16:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:42]Read from MH i2c: E2 [19:16:42]MH_I2C_Read... [19:16:42]Read from MH i2c: E2 0E 00 [19:16:42]MH_I2C_Read... [19:16:42]Read from MH i2c: E2 0E 00 C3 5D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 B6 [19:16:42]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:16:42]wFMCommunicate OK [19:16:42]SAM_PROTO_GetShiftState done [19:16:42]FM_GetShiftState done [19:16:42]opened in 1712967615 [19:16:42]opened+sec_in_day 1713054015 [19:16:42]quantity*price = 70001 [19:16:42]sum+1 = 70003 [19:16:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.02 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 0.00 Безнал.: 700.02 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 237 13.04.2024 19:16 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29030 ФПД: 4063994016100 1/tax-web-control/client/api/v1/ticket?date=20240413T191648&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29030&fm=4063994016100&tin=02508201610067®Number=0000138879044617&sum=70002 [19:16:43]StoreToDocumentArchive [19:16:43]shift 115 fd 29030 [19:16:43]save to /storage/0115/doc_00029030 [19:16:43]save last doc name /storage/0115/doc_00029030 to /storage/kkm_last_doc_name [19:16:43]save OK [19:16:43]Clear old archive folders... [19:16:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:16:43]tlvbuf is 01208620 [19:16:43]SAM_PROTO_ClearQueue [19:16:43]wFMCommunicate request_size=4 [19:16:43]MH_SAM_APDU [19:16:43]CAPDU: 80 09 00 00 [19:16:43]Write to MH i2c: E2 08 00 D0 5D 80 09 00 00 00 00 00 00 9F [19:16:43]Write i2c OK [19:16:43]MH_I2C_Read... [19:16:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:43]Read from MH i2c: E2 [19:16:43]MH_I2C_Read... [19:16:43]Read from MH i2c: E2 03 00 [19:16:43]MH_I2C_Read... [19:16:43]Read from MH i2c: E2 03 00 D0 5D 00 90 00 A1 [19:16:43]RAPDU: 90 00 [19:16:43]wFMCommunicate OK [19:16:43]SAM_PROTO_ClearQueue done [19:16:43]KKMCreateOFDPacket [19:16:43]OFDProtocolAddRootSTLVToBuf [19:16:43]FM_MakeSignedData [19:16:43]FM_MakeSignedData [19:16:43]SAM_PROTO_SignData [19:16:43]wFMCommunicate request_size=4 [19:16:43]MH_SAM_APDU [19:16:43]CAPDU: 80 0D 01 02 [19:16:43]Write to MH i2c: E2 08 00 D1 5D 80 0D 01 02 00 00 00 00 A7 [19:16:43]Write i2c OK [19:16:43]MH_I2C_Read... [19:16:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:43]Read from MH i2c: E2 [19:16:43]MH_I2C_Read... [19:16:43]Read from MH i2c: E2 03 00 [19:16:43]MH_I2C_Read... [19:16:43]Read from MH i2c: E2 03 00 D1 5D 00 90 00 A2 [19:16:43]RAPDU: 90 00 [19:16:43]wFMCommunicate OK [19:16:43]wFMCommunicate request_size=255 [19:16:43]MH_SAM_APDU [19:16:43]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 72 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 72 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 20 DA 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 66 71 00 00 35 04 06 00 [19:16:43]Write to MH i2c: E2 02 01 D2 5D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 72 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 72 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 20 DA 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 66 71 00 00 35 04 06 00 00 00 ED [19:16:43]Write i2c OK [19:16:43]MH_I2C_Read... [19:16:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:44]Read from MH i2c: E2 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: E2 03 00 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: E2 03 00 D2 5D 00 90 00 A3 [19:16:44]RAPDU: 90 00 [19:16:44]wFMCommunicate OK [19:16:44]wFMCommunicate request_size=11 [19:16:44]MH_SAM_APDU [19:16:44]CAPDU: 80 0D 02 02 06 03 B2 38 EB 71 64 [19:16:44]Write to MH i2c: E2 0E 00 D3 5D 80 0D 02 02 06 00 03 B2 38 EB 71 64 00 00 63 [19:16:44]Write i2c OK [19:16:44]MH_I2C_Read... [19:16:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:44]Read from MH i2c: E2 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: E2 03 00 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: E2 03 00 D3 5D 00 90 00 A4 [19:16:44]RAPDU: 90 00 [19:16:44]wFMCommunicate OK [19:16:44]wFMCommunicate request_size=4 [19:16:44]MH_SAM_APDU [19:16:44]CAPDU: 80 0D 03 02 [19:16:44]Write to MH i2c: E2 08 00 D4 5D 80 0D 03 02 00 00 00 00 AC [19:16:44]Write i2c OK [19:16:44]MH_I2C_Read... [19:16:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:44]Read from MH i2c: E2 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: E2 0B 00 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: E2 0B 00 D4 5D 00 B4 17 0F CD C4 C6 D1 C6 90 00 75 [19:16:44]RAPDU: B4 17 0F CD C4 C6 D1 C6 90 00 [19:16:44]wFMCommunicate OK [19:16:44]SAM_PROTO_SignData done [19:16:44]FM_MakeSignedData done [19:16:44]CreateOFDProtocolMessage [19:16:44]wFMCommunicate request_size=4 [19:16:44]MH_SAM_APDU [19:16:44]CAPDU: 80 11 00 00 [19:16:44]Write to MH i2c: E2 08 00 D5 5D 80 11 00 00 00 00 00 00 AC [19:16:44]Write i2c OK [19:16:44]MH_I2C_Read... [19:16:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:44]Read from MH i2c: E2 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: E2 17 00 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: E2 17 00 D5 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FB [19:16:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:16:44]wFMCommunicate OK [19:16:44]CreateOFDProtocolMessage done [19:16:44]OFDSenderStorePacket 29030 [19:16:44]StoreOFDPacket docnum=29030 [19:16:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 4C F3 08 01 79 9E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 72 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 72 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 20 DA 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 66 71 00 00 35 04 06 00 03 B2 38 EB 71 64 B4 17 0F CD C4 C6 D1 C6 [19:16:44]CheckFolder [19:16:44]dirname=/storage/ofd_packets [19:16:44]CheckFolder done [19:16:44]ProducePacketName [19:16:44]name=ofd_packets/00029030 [19:16:44]NVStorageSaveData ofd_packets/00029030 [19:16:44]File name is /storage/ofd_packets/00029030 [19:16:44]Write 302 bytes [19:16:44]NVStorageSaveData done [19:16:44]OFDSenderStorePacket done [19:16:44]KKMCreateOFDPacket done [19:16:44]NVStorageSaveData kkm_last_timestamp [19:16:44]File name is /storage/kkm_last_timestamp [19:16:44]Write 4 bytes [19:16:44]NVStorageSaveData done [19:16:44]ExternCall_PrintAddStr [19:16:44]wPrintStart [19:16:44]Write to MH i2c: 01 00 00 D6 5D 33 [19:16:44]Write i2c OK [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: 01 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: 01 07 00 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: 01 07 00 D6 5D 00 00 00 00 00 FF 0F 48 [19:16:44]RasterBufferAndPrint [19:16:44]line Счет N : (1)347397 [19:16:44]line ИНН: 02508201610067 [19:16:44]line Контрольно-Кассовый Чек [19:16:44]line ПРОДАЖА [19:16:44]line ТРК (МРК, ГНК) : 31 [19:16:44]line Товар: 2710124130 [19:16:44]line SUPER-92-К-5 [19:16:44]line 10.720 * 65.30 [19:16:44]line = 700.02 [19:16:44]line НДС 12% НСП 1% [19:16:44]line > о реализуемом товаре [19:16:44]line ИТОГО: 700.02 [19:16:44]line НСП 1% : 6.19 [19:16:44]line НДС 12% : 74.34 [19:16:44]line Наличными: 0.00 [19:16:44]line Безнал.: 700.02 [19:16:44]line Место: АЗС № 108 "Партнер Нефть" [19:16:44]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:16:44]line СНО: Общий режим [19:16:44]line Чек 237 13.04.2024 19:16 [19:16:44]line Смена: 115 ФФД: 1.0 [19:16:44]line ЗНМ: 0300000027 [19:16:44]line РНМ: 0000138879044617 [19:16:44]line Версия ККМ: 001 [19:16:44]line Платежная система: Бакай Банк [19:16:44]line ФМ: 0000000000963154 [19:16:44]line ФД: 29030 [19:16:44]line ФПД: 4063994016100 [19:16:44]line 1/tax-web-control/client/api/v1/ticket?date=20240413T191648&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29030&fm=4063994016100&tin=02508201610067®Number=0000138879044617&sum=70002 [19:16:44]written 0, free lines is 4095 [19:16:44]OFD Sender: Processing packet 29030 [packets to send 8, broken 7] [19:16:44]ProducePacketName [19:16:44]name=ofd_packets/00029030 [19:16:44]OFD Sender: To server: pG, [19:16:44]CommunicateWithHost lk.salyk.kg:30040 [19:16:44]ConnectInit lk.salyk.kg [19:16:44]Connected sock=11 [19:16:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 4C F3 08 01 79 9E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 72 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 72 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 20 DA 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 66 71 00 00 35 04 06 00 03 B2 38 EB 71 64 B4 17 0F CD C4 C6 D1 C6 [19:16:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6E 76 47 00 E3 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 31 35 34 10 04 04 00 66 71 00 00 F4 03 04 00 C6 84 1A 66 B6 04 01 00 00 95 E7 B7 54 68 C0 49 94 [19:16:44]CommunicateWithHost err = 0 [19:16:44]CheckOFDResponse [19:16:44]1017 (14) - 77093643461234 [19:16:44]1041 (16) - 0000000000963154 [19:16:44]1040 (4) - 29030 [19:16:44]1012 (4) - 13.04.2024 13:12 [19:16:44]1206 (1) - 0 [19:16:44]OFD Sender: Remove packet 29030 [19:16:44]ProducePacketName [19:16:44]name=ofd_packets/00029030 [19:16:44]NVStorageDeleteData [19:16:44]Write to MH i2c: 01 00 00 FF 5D 5C [19:16:44]Write i2c OK [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: 01 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: 01 07 00 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: 01 07 00 FF 5D 00 00 00 00 00 EF 0C 5E [19:16:44]RasterBufferAndPrint [19:16:44]line [19:16:44]line [19:16:44]line [19:16:44]line [19:16:44]line [19:16:44]written 0, free lines is 3318 [19:16:44]MH_Cut [19:16:44]Write to MH i2c: D1 01 00 06 5E 01 36 [19:16:44]Write i2c OK [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: D1 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: D1 01 00 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: D1 01 00 06 5E 00 35 [19:16:44]Write to MH i2c: 01 00 00 07 5E 65 [19:16:44]Write i2c OK [19:16:44]MH_I2C_Read... [19:16:45]OFD Sender: No OFD packet to send [19:16:45]*** Cut start [19:16:45]*** Partial cut [19:16:45]*** CUTSNS_PIN = 1 [19:16:45]*** CUTSNS_PIN = 0 [19:16:45]*** Brake cut motor [19:16:46]Read from MH i2c: 01 [19:16:46]MH_I2C_Read... [19:16:46]*** Stop cut motor [19:16:46]*** Cut end [19:16:46]Read from MH i2c: 01 07 00 [19:16:46]MH_I2C_Read... [19:16:46]Read from MH i2c: 01 07 00 07 5E 00 00 00 00 00 FF 0F 7A [19:16:46]process_action close_receipt done [19:16:46]requested_data is exist [19:16:46]produce_requested_data [19:16:46]requested_item fm.sn is exist - process it [19:16:46]wFMCommunicate request_size=4 [19:16:46]MH_SAM_APDU [19:16:46]CAPDU: 80 11 00 00 [19:16:46]Write to MH i2c: E2 08 00 08 5E 80 11 00 00 00 00 00 00 E0 [19:16:46]Write i2c OK [19:16:46]MH_I2C_Read... [19:16:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:46]Read from MH i2c: E2 [19:16:46]MH_I2C_Read... [19:16:46]Read from MH i2c: E2 17 00 [19:16:46]MH_I2C_Read... [19:16:46]Read from MH i2c: E2 17 00 08 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2F [19:16:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:16:46]wFMCommunicate OK [19:16:46]requested_item fd.num is exist - process it [19:16:46]SAM_PROTO_GetFieldsCounters [19:16:46]wFMCommunicate request_size=4 [19:16:46]MH_SAM_APDU [19:16:46]CAPDU: 80 13 00 00 [19:16:46]Write to MH i2c: E2 08 00 09 5E 80 13 00 00 00 00 00 00 E3 [19:16:46]Write i2c OK [19:16:46]MH_I2C_Read... [19:16:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:46]Read from MH i2c: E2 [19:16:46]MH_I2C_Read... [19:16:46]Read from MH i2c: E2 62 00 [19:16:46]MH_I2C_Read... [19:16:46]Read from MH i2c: E2 62 00 09 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 66 71 00 00 0E 04 04 00 73 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 32 [19:16:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 66 71 00 00 0E 04 04 00 73 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 [19:16:46]wFMCommunicate OK [19:16:46]SAM_PROTO_GetFieldsCounters done [19:16:46]requested_item shift.num is exist - process it [19:16:46]requested_item shift.opened is exist - process it [19:16:46]req_shift_opened [19:16:46]FM_GetShiftState [19:16:46]SAM_PROTO_GetShiftState [19:16:46]wFMCommunicate request_size=4 [19:16:46]MH_SAM_APDU [19:16:46]CAPDU: 80 13 01 00 [19:16:46]Write to MH i2c: E2 08 00 0A 5E 80 13 01 00 00 00 00 00 E5 [19:16:46]Write i2c OK [19:16:46]MH_I2C_Read... [19:16:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:46]Read from MH i2c: E2 [19:16:46]MH_I2C_Read... [19:16:46]Read from MH i2c: E2 0E 00 [19:16:46]MH_I2C_Read... [19:16:46]Read from MH i2c: E2 0E 00 0A 5E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 FE [19:16:46]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:16:46]wFMCommunicate OK [19:16:46]SAM_PROTO_GetShiftState done [19:16:46]FM_GetShiftState done [19:16:46]req_shift_opened done [19:16:46]requested_item shift.open_date is exist - process it [19:16:46]req_shift_open_date [19:16:46]req_shift_open_date done [19:16:46]produce_requested_data done [19:16:46]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29030,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [19:16:46]process_action_free close_receipt [19:16:46]json_value_free [19:16:46]json_value_free done [19:16:46]process_json_proto returns [19:16:46]Send response to host [19:16:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29030,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [19:16:46]free response buf [19:16:46]execute_script done [19:16:46]execute_script returns [19:16:46]free content buf [19:16:46]Sock 9.Close socket [19:16:46]Sock 9.Thread stoped [19:16:50]OFD Sender: No OFD packet to send [19:16:55]OFD Sender: No OFD packet to send [19:17:00]OFD Sender: No OFD packet to send [19:17:05]OFD Sender: No OFD packet to send [19:17:10]OFD Sender: No OFD packet to send [19:17:15]OFD Sender: No OFD packet to send [19:17:20]OFD Sender: No OFD packet to send [19:17:25]OFD Sender: No OFD packet to send [19:17:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:10]OFD Sender: No OFD packet to send [19:18:15]OFD Sender: No OFD packet to send [19:18:20]OFD Sender: No OFD packet to send [19:18:25]OFD Sender: No OFD packet to send [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:55]OFD Sender: No OFD packet to send [19:19:00]OFD Sender: No OFD packet to send [19:19:05]OFD Sender: No OFD packet to send [19:19:10]OFD Sender: No OFD packet to send [19:19:15]OFD Sender: No OFD packet to send [19:19:20]OFD Sender: No OFD packet to send [19:19:25]OFD Sender: No OFD packet to send [19:19:30]OFD Sender: No OFD packet to send [19:19:35]OFD Sender: No OFD packet to send [19:19:40]OFD Sender: No OFD packet to send [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:55]OFD Sender: No OFD packet to send [19:20:00]OFD Sender: No OFD packet to send [19:20:05]OFD Sender: No OFD packet to send [19:20:10]OFD Sender: No OFD packet to send [19:20:15]OFD Sender: No OFD packet to send [19:20:20]OFD Sender: No OFD packet to send [19:20:25]OFD Sender: No OFD packet to send [19:20:30]OFD Sender: No OFD packet to send [19:20:35]OFD Sender: No OFD packet to send [19:20:40]OFD Sender: No OFD packet to send [19:20:45]OFD Sender: No OFD packet to send [19:20:50]OFD Sender: No OFD packet to send [19:20:55]OFD Sender: No OFD packet to send [19:21:00]OFD Sender: No OFD packet to send [19:21:05]OFD Sender: No OFD packet to send [19:21:10]OFD Sender: No OFD packet to send [19:21:15]OFD Sender: No OFD packet to send [19:21:20]OFD Sender: No OFD packet to send [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:45]OFD Sender: No OFD packet to send [19:21:50]OFD Sender: No OFD packet to send [19:21:55]accept exits with 7 [19:21:55]New connection [19:21:55]New thread 3066785124 created [19:21:55]Thread 3066928484 joined [19:21:55]Waiting for new connection... [19:21:55] Sock 7.Parse request [19:21:55]Sock 7.Check first char [19:21:55]Sock 7.First char is OK [19:21:55]request: POST /json_proto HTTP/1.0 [19:21:55]Method: POST [19:21:55]URL: /json_proto [19:21:55]Method is POST - this is cgi request [19:21:55]url: /json_proto [19:21:55]query_string will be loaded in cgi processing [19:21:55]execute_cgi json_proto POST (null) [19:21:55]execute_cgi path=json_proto method=POST [19:21:55]POST find Content-Length [19:21:55]Host: 172.17.33.3:8080 [19:21:55]Content-Length: 677 [19:21:55]Content-Type: application/json [19:21:55] [19:21:55]POST finish read [19:21:55]Found Content-Length = 677 [19:21:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "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" ] } } [19:21:55]execute_script... [19:21: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)347400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "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" ] } } [19:21:55]POST & json_proto [19:21:55]process_json_proto [19:21:55]json parsed OK: [19:21:55]protocol is kg_v1.0 [19:21:55]action value=close_receipt [19:21:55]process_action close_receipt [19:21:55]cmd_close_receipt [19:21:55]MH_GetDate [19:21:55]Write to MH i2c: F0 00 00 0B 5E 58 [19:21:55]Write i2c OK [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: F0 [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: F0 09 00 [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: F0 09 00 0B 5E 00 59 DB 1A 66 23 5B 8F 65 87 [19:21:55]GetLastDocTimeStamp 1713035808 [19:21:55]current date 1713036121 [19:21:55]FM_GetShiftState [19:21:55]SAM_PROTO_GetShiftState [19:21:55]wFMCommunicate request_size=4 [19:21:55]MH_SAM_APDU [19:21:55]CAPDU: 80 13 01 00 [19:21:55]Write to MH i2c: E2 08 00 0C 5E 80 13 01 00 00 00 00 00 E7 [19:21:55]Write i2c OK [19:21:55]MH_I2C_Read... [19:21:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:55]Read from MH i2c: E2 [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: E2 0E 00 [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: E2 0E 00 0C 5E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 00 [19:21:55]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:21:55]wFMCommunicate OK [19:21:55]SAM_PROTO_GetShiftState done [19:21:55]FM_GetShiftState done [19:21:55]opened in 1712967615 [19:21:55]opened+sec_in_day 1713054015 [19:21:55]quantity*price = 50025 [19:21:55]sum+1 = 50026 [19:21:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 238 13.04.2024 19:22 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29031 ФПД: 41076364301397 1/tax-web-control/client/api/v1/ticket?date=20240413T192201&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29031&fm=41076364301397&tin=02508201610067®Number=0000138879044617&sum=50000 [19:21:56]StoreToDocumentArchive [19:21:56]shift 115 fd 29031 [19:21:56]save to /storage/0115/doc_00029031 [19:21:56]save last doc name /storage/0115/doc_00029031 to /storage/kkm_last_doc_name [19:21:56]save OK [19:21:56]Clear old archive folders... [19:21:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:21:56]tlvbuf is 0121A460 [19:21:56]SAM_PROTO_ClearQueue [19:21:56]wFMCommunicate request_size=4 [19:21:56]MH_SAM_APDU [19:21:56]CAPDU: 80 09 00 00 [19:21:56]Write to MH i2c: E2 08 00 19 5E 80 09 00 00 00 00 00 00 E9 [19:21:56]Write i2c OK [19:21:56]MH_I2C_Read... [19:21:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:56]Read from MH i2c: E2 [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: E2 03 00 [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: E2 03 00 19 5E 00 90 00 EB [19:21:56]RAPDU: 90 00 [19:21:56]wFMCommunicate OK [19:21:56]SAM_PROTO_ClearQueue done [19:21:56]KKMCreateOFDPacket [19:21:56]OFDProtocolAddRootSTLVToBuf [19:21:56]FM_MakeSignedData [19:21:56]FM_MakeSignedData [19:21:56]SAM_PROTO_SignData [19:21:56]wFMCommunicate request_size=4 [19:21:56]MH_SAM_APDU [19:21:56]CAPDU: 80 0D 01 02 [19:21:56]Write to MH i2c: E2 08 00 1A 5E 80 0D 01 02 00 00 00 00 F1 [19:21:56]Write i2c OK [19:21:56]MH_I2C_Read... [19:21:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:56]Read from MH i2c: E2 [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: E2 03 00 [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: E2 03 00 1A 5E 00 90 00 EC [19:21:56]RAPDU: 90 00 [19:21:56]wFMCommunicate OK [19:21:56]wFMCommunicate request_size=255 [19:21:56]MH_SAM_APDU [19:21:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 EE 00 00 00 F4 03 04 00 59 DB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 67 71 00 00 35 04 06 00 25 [19:21:56]Write to MH i2c: E2 02 01 1B 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 EE 00 00 00 F4 03 04 00 59 DB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 67 71 00 00 35 04 06 00 25 00 00 C5 [19:21:56]Write i2c OK [19:21:56]MH_I2C_Read... [19:21:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:56]Read from MH i2c: E2 [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: E2 03 00 [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: E2 03 00 1B 5E 00 90 00 ED [19:21:56]RAPDU: 90 00 [19:21:56]wFMCommunicate OK [19:21:56]wFMCommunicate request_size=10 [19:21:56]MH_SAM_APDU [19:21:56]CAPDU: 80 0D 02 02 05 5B D6 1A 54 55 [19:21:56]Write to MH i2c: E2 0D 00 1C 5E 80 0D 02 02 05 00 5B D6 1A 54 55 00 00 F2 [19:21:56]Write i2c OK [19:21:56]MH_I2C_Read... [19:21:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:56]Read from MH i2c: E2 [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: E2 03 00 [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: E2 03 00 1C 5E 00 90 00 EE [19:21:56]RAPDU: 90 00 [19:21:56]wFMCommunicate OK [19:21:56]wFMCommunicate request_size=4 [19:21:56]MH_SAM_APDU [19:21:56]CAPDU: 80 0D 03 02 [19:21:56]Write to MH i2c: E2 08 00 1D 5E 80 0D 03 02 00 00 00 00 F6 [19:21:56]Write i2c OK [19:21:56]MH_I2C_Read... [19:21:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:56]Read from MH i2c: E2 [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: E2 0B 00 [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: E2 0B 00 1D 5E 00 C5 45 42 5C D7 BC 48 1A 90 00 94 [19:21:56]RAPDU: C5 45 42 5C D7 BC 48 1A 90 00 [19:21:56]wFMCommunicate OK [19:21:56]SAM_PROTO_SignData done [19:21:56]FM_MakeSignedData done [19:21:56]CreateOFDProtocolMessage [19:21:56]wFMCommunicate request_size=4 [19:21:56]MH_SAM_APDU [19:21:56]CAPDU: 80 11 00 00 [19:21:56]Write to MH i2c: E2 08 00 1E 5E 80 11 00 00 00 00 00 00 F6 [19:21:56]Write i2c OK [19:21:56]MH_I2C_Read... [19:21:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:56]Read from MH i2c: E2 [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: E2 17 00 [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: E2 17 00 1E 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 45 [19:21:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:21:56]wFMCommunicate OK [19:21:56]CreateOFDProtocolMessage done [19:21:56]OFDSenderStorePacket 29031 [19:21:56]StoreOFDPacket docnum=29031 [19:21:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 3E DA 07 01 CD D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 EE 00 00 00 F4 03 04 00 59 DB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 67 71 00 00 35 04 06 00 25 5B D6 1A 54 55 C5 45 42 5C D7 BC 48 1A [19:21:56]CheckFolder [19:21:56]dirname=/storage/ofd_packets [19:21:56]CheckFolder done [19:21:56]ProducePacketName [19:21:56]name=ofd_packets/00029031 [19:21:56]NVStorageSaveData ofd_packets/00029031 [19:21:56]File name is /storage/ofd_packets/00029031 [19:21:56]Write 301 bytes [19:21:56]NVStorageSaveData done [19:21:56]OFDSenderStorePacket done [19:21:56]KKMCreateOFDPacket done [19:21:56]NVStorageSaveData kkm_last_timestamp [19:21:56]File name is /storage/kkm_last_timestamp [19:21:56]Write 4 bytes [19:21:56]NVStorageSaveData done [19:21:56]ExternCall_PrintAddStr [19:21:56]wPrintStart [19:21:56]Write to MH i2c: 01 00 00 1F 5E 7D [19:21:56]Write i2c OK [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: 01 [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: 01 07 00 [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: 01 07 00 1F 5E 00 00 00 00 00 FF 0F 92 [19:21:56]RasterBufferAndPrint [19:21:56]line Счет N : (1)347400 [19:21:56]line ИНН: 02508201610067 [19:21:56]line Контрольно-Кассовый Чек [19:21:56]line ПРОДАЖА [19:21:56]line ТРК (МРК, ГНК) : 23 [19:21:56]line Товар: 2710124130 [19:21:56]line Аи-92-К-5 [19:21:56]line 7.780 * 64.30 [19:21:56]line = 500.25 [19:21:56]line НДС 12% НСП 1% [19:21:56]line > о реализуемом товаре [19:21:56]line ОКРУГЛЕНИЕ: -0.25 [19:21:56]line ИТОГО: 500.00 [19:21:56]line Внесено: 500.00 [19:21:56]line СДАЧА: 0.00 [19:21:56]line НСП 1% : 4.43 [19:21:56]line НДС 12% : 53.12 [19:21:56]line Наличными: 500.00 [19:21:56]line Безнал.: 0.00 [19:21:56]line Место: АЗС № 108 "Партнер Нефть" [19:21:56]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:21:56]line СНО: Общий режим [19:21:56]line Чек 238 13.04.2024 19:22 [19:21:56]line Смена: 115 ФФД: 1.0 [19:21:56]line ЗНМ: 0300000027 [19:21:56]line РНМ: 0000138879044617 [19:21:56]line Версия ККМ: 001 [19:21:56]line ФМ: 0000000000963154 [19:21:56]line ФД: 29031 [19:21:56]line ФПД: 41076364301397 [19:21:57]line 1/tax-web-control/client/api/v1/ticket?date=20240413T192201&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29031&fm=41076364301397&tin=02508201610067®Number=0000138879044617&sum=50000 [19:21:57]OFD Sender: Processing packet 29031 [packets to send 8, broken 7] [19:21:57]ProducePacketName [19:21:57]name=ofd_packets/00029031 [19:21:57]OFD Sender: To server: pG, [19:21:57]CommunicateWithHost lk.salyk.kg:30040 [19:21:57]ConnectInit lk.salyk.kg [19:21:57]written 0, free lines is 4095 [19:21:57]Connected sock=10 [19:21: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 31 35 34 0F 01 00 00 3E DA 07 01 CD D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 EE 00 00 00 F4 03 04 00 59 DB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 67 71 00 00 35 04 06 00 25 5B D6 1A 54 55 C5 45 42 5C D7 BC 48 1A [19:21:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B9 B5 47 00 46 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 67 71 00 00 F4 03 04 00 FF 85 1A 66 B6 04 01 00 00 2F 22 BD 4F 86 06 F8 DB [19:21:57]CommunicateWithHost err = 0 [19:21:57]CheckOFDResponse [19:21:57]1017 (14) - 77093643461234 [19:21:57]1041 (16) - 0000000000963154 [19:21:57]1040 (4) - 29031 [19:21:57]1012 (4) - 13.04.2024 13:17 [19:21:57]1206 (1) - 0 [19:21:57]OFD Sender: Remove packet 29031 [19:21:57]ProducePacketName [19:21:57]name=ofd_packets/00029031 [19:21:57]NVStorageDeleteData [19:21:57]Write to MH i2c: 01 00 00 49 5E A7 [19:21:57]Write i2c OK [19:21:57]MH_I2C_Read... [19:21:57]Read from MH i2c: 01 [19:21:57]MH_I2C_Read... [19:21:57]Read from MH i2c: 01 07 00 [19:21:57]MH_I2C_Read... [19:21:57]Read from MH i2c: 01 07 00 49 5E 00 00 00 00 00 D7 0C 91 [19:21:57]RasterBufferAndPrint [19:21:57]line [19:21:57]line [19:21:57]line [19:21:57]line [19:21:57]line [19:21:57]written 0, free lines is 3294 [19:21:57]MH_Cut [19:21:57]Write to MH i2c: D1 01 00 50 5E 01 80 [19:21:57]Write i2c OK [19:21:57]MH_I2C_Read... [19:21:57]Read from MH i2c: D1 [19:21:57]MH_I2C_Read... [19:21:57]Read from MH i2c: D1 01 00 [19:21:57]MH_I2C_Read... [19:21:57]Read from MH i2c: D1 01 00 50 5E 00 7F [19:21:57]Write to MH i2c: 01 00 00 51 5E AF [19:21:57]Write i2c OK [19:21:57]MH_I2C_Read... [19:21:57]OFD Sender: No OFD packet to send [19:21:58]*** Cut start [19:21:58]*** Partial cut [19:21:58]*** CUTSNS_PIN = 1 [19:21:58]*** CUTSNS_PIN = 0 [19:21:58]*** Brake cut motor [19:21:59]Read from MH i2c: 01 [19:21:59]MH_I2C_Read... [19:21:59]*** Stop cut motor [19:21:59]Read from MH i2c: 01 *** Cut end [19:21:59]07 00 [19:21:59]MH_I2C_Read... [19:21:59]Read from MH i2c: 01 07 00 51 5E 00 00 00 00 00 FF 0F C4 [19:21:59]process_action close_receipt done [19:21:59]requested_data is exist [19:21:59]produce_requested_data [19:21:59]requested_item fm.sn is exist - process it [19:21:59]wFMCommunicate request_size=4 [19:21:59]MH_SAM_APDU [19:21:59]CAPDU: 80 11 00 00 [19:21:59]Write to MH i2c: E2 08 00 52 5E 80 11 00 00 00 00 00 00 2A [19:21:59]Write i2c OK [19:21:59]MH_I2C_Read... [19:21:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:59]Read from MH i2c: E2 [19:21:59]MH_I2C_Read... [19:21:59]Read from MH i2c: E2 17 00 [19:21:59]MH_I2C_Read... [19:21:59]Read from MH i2c: E2 17 00 52 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 79 [19:21:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:21:59]wFMCommunicate OK [19:21:59]requested_item fd.num is exist - process it [19:21:59]SAM_PROTO_GetFieldsCounters [19:21:59]wFMCommunicate request_size=4 [19:21:59]MH_SAM_APDU [19:21:59]CAPDU: 80 13 00 00 [19:21:59]Write to MH i2c: E2 08 00 53 5E 80 13 00 00 00 00 00 00 2D [19:21:59]Write i2c OK [19:21:59]MH_I2C_Read... [19:21:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:59]Read from MH i2c: E2 [19:21:59]MH_I2C_Read... [19:21:59]Read from MH i2c: E2 62 00 [19:21:59]MH_I2C_Read... [19:21:59]Read from MH i2c: E2 62 00 53 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 67 71 00 00 0E 04 04 00 73 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 80 [19:21: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 67 71 00 00 0E 04 04 00 73 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 [19:21:59]wFMCommunicate OK [19:21:59]SAM_PROTO_GetFieldsCounters done [19:21:59]requested_item shift.num is exist - process it [19:21:59]requested_item shift.opened is exist - process it [19:21:59]req_shift_opened [19:21:59]FM_GetShiftState [19:21:59]SAM_PROTO_GetShiftState [19:21:59]wFMCommunicate request_size=4 [19:21:59]MH_SAM_APDU [19:21:59]CAPDU: 80 13 01 00 [19:21:59]Write to MH i2c: E2 08 00 54 5E 80 13 01 00 00 00 00 00 2F [19:21:59]Write i2c OK [19:21:59]MH_I2C_Read... [19:21:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:59]Read from MH i2c: E2 [19:21:59]MH_I2C_Read... [19:21:59]Read from MH i2c: E2 0E 00 [19:21:59]MH_I2C_Read... [19:21:59]Read from MH i2c: E2 0E 00 54 5E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 48 [19:21:59]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:21:59]wFMCommunicate OK [19:21:59]SAM_PROTO_GetShiftState done [19:21:59]FM_GetShiftState done [19:21:59]req_shift_opened done [19:21:59]requested_item shift.open_date is exist - process it [19:21:59]req_shift_open_date [19:21:59]req_shift_open_date done [19:21:59]produce_requested_data done [19:21:59]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29031,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [19:21:59]process_action_free close_receipt [19:21:59]json_value_free [19:21:59]json_value_free done [19:21:59]process_json_proto returns [19:21:59]Send response to host [19:21:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29031,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [19:21:59]free response buf [19:21:59]execute_script done [19:21:59]execute_script returns [19:21:59]free content buf [19:21:59]Sock 7.Close socket [19:21:59]Sock 7.Thread stoped [19:22:02]OFD Sender: No OFD packet to send [19:22:07]OFD Sender: No OFD packet to send [19:22:12]OFD Sender: No OFD packet to send [19:22:17]OFD Sender: No OFD packet to send [19:22:22]OFD Sender: No OFD packet to send [19:22:27]OFD Sender: No OFD packet to send [19:22:32]OFD Sender: No OFD packet to send [19:22:37]OFD Sender: No OFD packet to send [19:22:38]accept exits with 9 [19:22:38]New connection [19:22:38]New thread 3066928484 created [19:22:38]Thread 3066785124 joined [19:22:38]Waiting for new connection... [19:22:38] Sock 9.Parse request [19:22:38]Sock 9.Check first char [19:22:38]Sock 9.First char is OK [19:22:38]request: POST /json_proto HTTP/1.0 [19:22:38]Method: POST [19:22:38]URL: /json_proto [19:22:38]Method is POST - this is cgi request [19:22:38]url: /json_proto [19:22:38]query_string will be loaded in cgi processing [19:22:38]execute_cgi json_proto POST (null) [19:22:38]execute_cgi path=json_proto method=POST [19:22:38]POST find Content-Length [19:22:38]Host: 172.17.33.3:8080 [19:22:38]Content-Length: 843 [19:22:38]Content-Type: application/json [19:22:38] [19:22:38]POST finish read [19:22:38]Found Content-Length = 843 [19:22:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347399", "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" : 64.30, "quantity" : 31.110, "sum" : 2000.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:38]execute_script... [19:22:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347399", "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" : 64.30, "quantity" : 31.110, "sum" : 2000.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:38]POST & json_proto [19:22:38]process_json_proto [19:22:38]json parsed OK: [19:22:38]protocol is kg_v1.0 [19:22:38]action value=close_receipt [19:22:38]process_action close_receipt [19:22:38]cmd_close_receipt [19:22:38]MH_GetDate [19:22:38]Write to MH i2c: F0 00 00 55 5E A2 [19:22:38]Write i2c OK [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: F0 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: F0 09 00 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: F0 09 00 55 5E 00 84 DB 1A 66 23 5B 8F 65 FC [19:22:38]GetLastDocTimeStamp 1713036121 [19:22:38]current date 1713036164 [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 56 5E 80 13 01 00 00 00 00 00 31 [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 56 5E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 4A [19:22:38]RAPDU: 09 00 01 BF CF 19 66 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]opened in 1712967615 [19:22:38]opened+sec_in_day 1713054015 [19:22:38]quantity*price = 200037 [19:22:38]sum+1 = 200038 [19:22:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.37 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.37 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 239 13.04.2024 19:22 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29032 ФПД: 27027583862807 1/tax-web-control/client/api/v1/ticket?date=20240413T192244&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29032&fm=27027583862807&tin=02508201610067®Number=0000138879044617&sum=200037 [19:22:39]StoreToDocumentArchive [19:22:39]shift 115 fd 29032 [19:22:39]save to /storage/0115/doc_00029032 [19:22:39]save last doc name /storage/0115/doc_00029032 to /storage/kkm_last_doc_name [19:22:39]save OK [19:22:39]Clear old archive folders... [19:22:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:22:39]tlvbuf is 011FB290 [19:22:39]SAM_PROTO_ClearQueue [19:22:39]wFMCommunicate request_size=4 [19:22:39]MH_SAM_APDU [19:22:39]CAPDU: 80 09 00 00 [19:22:39]Write to MH i2c: E2 08 00 63 5E 80 09 00 00 00 00 00 00 33 [19:22:39]Write i2c OK [19:22:39]MH_I2C_Read... [19:22:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:39]Read from MH i2c: E2 [19:22:39]MH_I2C_Read... [19:22:39]Read from MH i2c: E2 03 00 [19:22:39]MH_I2C_Read... [19:22:39]Read from MH i2c: E2 03 00 63 5E 00 90 00 35 [19:22:39]RAPDU: 90 00 [19:22:39]wFMCommunicate OK [19:22:39]SAM_PROTO_ClearQueue done [19:22:39]KKMCreateOFDPacket [19:22:39]OFDProtocolAddRootSTLVToBuf [19:22:39]FM_MakeSignedData [19:22:39]FM_MakeSignedData [19:22:39]SAM_PROTO_SignData [19:22:39]wFMCommunicate request_size=4 [19:22:39]MH_SAM_APDU [19:22:39]CAPDU: 80 0D 01 02 [19:22:39]Write to MH i2c: E2 08 00 64 5E 80 0D 01 02 00 00 00 00 3B [19:22:39]Write i2c OK [19:22:39]MH_I2C_Read... [19:22:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:39]Read from MH i2c: E2 [19:22:39]MH_I2C_Read... [19:22:39]Read from MH i2c: E2 03 00 [19:22:39]MH_I2C_Read... [19:22:39]Read from MH i2c: E2 03 00 64 5E 00 90 00 36 [19:22:39]RAPDU: 90 00 [19:22:39]wFMCommunicate OK [19:22:39]wFMCommunicate request_size=255 [19:22:39]MH_SAM_APDU [19:22: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 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 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 65 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 84 DB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 68 71 00 00 35 04 06 00 18 [19:22:39]Write to MH i2c: E2 02 01 65 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 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 65 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 84 DB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 68 71 00 00 35 04 06 00 18 00 00 66 [19:22:39]Write i2c OK [19:22:39]MH_I2C_Read... [19:22:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:40]Read from MH i2c: E2 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 03 00 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 03 00 65 5E 00 90 00 37 [19:22:40]RAPDU: 90 00 [19:22:40]wFMCommunicate OK [19:22:40]wFMCommunicate request_size=10 [19:22:40]MH_SAM_APDU [19:22:40]CAPDU: 80 0D 02 02 05 94 D9 89 08 17 [19:22:40]Write to MH i2c: E2 0D 00 66 5E 80 0D 02 02 05 00 94 D9 89 08 17 00 00 5D [19:22:40]Write i2c OK [19:22:40]MH_I2C_Read... [19:22:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:40]Read from MH i2c: E2 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 03 00 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 03 00 66 5E 00 90 00 38 [19:22:40]RAPDU: 90 00 [19:22:40]wFMCommunicate OK [19:22:40]wFMCommunicate request_size=4 [19:22:40]MH_SAM_APDU [19:22:40]CAPDU: 80 0D 03 02 [19:22:40]Write to MH i2c: E2 08 00 67 5E 80 0D 03 02 00 00 00 00 40 [19:22:40]Write i2c OK [19:22:40]MH_I2C_Read... [19:22:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:40]Read from MH i2c: E2 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 0B 00 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 0B 00 67 5E 00 56 75 72 3D 9C E6 E3 6B 90 00 8B [19:22:40]RAPDU: 56 75 72 3D 9C E6 E3 6B 90 00 [19:22:40]wFMCommunicate OK [19:22:40]SAM_PROTO_SignData done [19:22:40]FM_MakeSignedData done [19:22:40]CreateOFDProtocolMessage [19:22:40]wFMCommunicate request_size=4 [19:22:40]MH_SAM_APDU [19:22:40]CAPDU: 80 11 00 00 [19:22:40]Write to MH i2c: E2 08 00 68 5E 80 11 00 00 00 00 00 00 40 [19:22:40]Write i2c OK [19:22:40]MH_I2C_Read... [19:22:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:40]Read from MH i2c: E2 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 17 00 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 17 00 68 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8F [19:22:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:22:40]wFMCommunicate OK [19:22:40]CreateOFDProtocolMessage done [19:22:40]OFDSenderStorePacket 29032 [19:22:40]StoreOFDPacket docnum=29032 [19:22:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 5D AD 07 01 B2 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 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 65 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 84 DB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 68 71 00 00 35 04 06 00 18 94 D9 89 08 17 56 75 72 3D 9C E6 E3 6B [19:22:40]CheckFolder [19:22:40]dirname=/storage/ofd_packets [19:22:40]CheckFolder done [19:22:40]ProducePacketName [19:22:40]name=ofd_packets/00029032 [19:22:40]NVStorageSaveData ofd_packets/00029032 [19:22:40]File name is /storage/ofd_packets/00029032 [19:22:40]Write 301 bytes [19:22:40]NVStorageSaveData done [19:22:40]OFDSenderStorePacket done [19:22:40]KKMCreateOFDPacket done [19:22:40]NVStorageSaveData kkm_last_timestamp [19:22:40]File name is /storage/kkm_last_timestamp [19:22:40]Write 4 bytes [19:22:40]NVStorageSaveData done [19:22:40]ExternCall_PrintAddStr [19:22:40]wPrintStart [19:22:40]Write to MH i2c: 01 00 00 69 5E C7 [19:22:40]Write i2c OK [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: 01 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: 01 07 00 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: 01 07 00 69 5E 00 00 00 00 00 FF 0F DC [19:22:40]RasterBufferAndPrint [19:22:40]line Счет N : (1)347399 [19:22:40]line ИНН: 02508201610067 [19:22:40]line Контрольно-Кассовый Чек [19:22:40]line ПРОДАЖА [19:22:40]line ТРК (МРК, ГНК) : 42 [19:22:40]line Товар: 2710124130 [19:22:40]line Аи-92-К-5 [19:22:40]line 31.110 * 64.30 [19:22:40]line = 2000.37 [19:22:40]line НДС 12% НСП 1% [19:22:40]line > о реализуемом товаре [19:22:40]line ИТОГО: 2000.37 [19:22:40]line НСП 1% : 17.70 [19:22:40]line НДС 12% : 212.43 [19:22:40]line Наличными: 0.00 [19:22:40]line Безнал.: 2000.37 [19:22:40]line Место: АЗС № 108 "Партнер Нефть" [19:22:40]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:22:40]line СНО: Общий режим [19:22:40]line Чек 239 13.04.2024 19:22 [19:22:40]line Смена: 115 ФФД: 1.0 [19:22:40]line ЗНМ: 0300000027 [19:22:40]line РНМ: 0000138879044617 [19:22:40]line Версия ККМ: 001 [19:22:40]line Платежная система: АКБ Кыргызстан [19:22:40]line ФМ: 0000000000963154 [19:22:40]line ФД: 29032 [19:22:40]line ФПД: 27027583862807 [19:22:40]line 1/tax-web-control/client/api/v1/ticket?date=20240413T192244&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29032&fm=27027583862807&tin=02508201610067®Number=0000138879044617&sum=200037 [19:22:40]OFD Sender: Processing packet 29032 [packets to send 8, broken 7] [19:22:40]ProducePacketName [19:22:40]name=ofd_packets/00029032 [19:22:40]OFD Sender: To server: pG, [19:22:40]CommunicateWithHost lk.salyk.kg:30040 [19:22:40]ConnectInit lk.salyk.kg [19:22:40]written 0, free lines is 4095 [19:22:40]Connected sock=10 [19:22: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 31 35 34 0F 01 00 00 5D AD 07 01 B2 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 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 65 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 84 DB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 68 71 00 00 35 04 06 00 18 94 D9 89 08 17 56 75 72 3D 9C E6 E3 6B [19:22:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4A 5D 47 00 48 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 31 35 34 10 04 04 00 68 71 00 00 F4 03 04 00 2B 86 1A 66 B6 04 01 00 00 52 AC 6A B3 61 46 AE 58 [19:22:40]CommunicateWithHost err = 0 [19:22:40]CheckOFDResponse [19:22:40]1017 (14) - 77093643461234 [19:22:40]1041 (16) - 0000000000963154 [19:22:40]1040 (4) - 29032 [19:22:40]1012 (4) - 13.04.2024 13:18 [19:22:40]1206 (1) - 0 [19:22:40]OFD Sender: Remove packet 29032 [19:22:40]ProducePacketName [19:22:40]name=ofd_packets/00029032 [19:22:40]NVStorageDeleteData [19:22:41]Write to MH i2c: 01 00 00 92 5E F0 [19:22:41]Write i2c OK [19:22:41]MH_I2C_Read... [19:22:41]Read from MH i2c: 01 [19:22:41]MH_I2C_Read... [19:22:41]Read from MH i2c: 01 07 00 [19:22:41]MH_I2C_Read... [19:22:41]Read from MH i2c: 01 07 00 92 5E 00 00 00 00 00 F3 0C F6 [19:22:41]RasterBufferAndPrint [19:22:41]line [19:22:41]line [19:22:41]line [19:22:41]line [19:22:41]line [19:22:41]written 0, free lines is 3320 [19:22:41]MH_Cut [19:22:41]Write to MH i2c: D1 01 00 99 5E 01 C9 [19:22:41]Write i2c OK [19:22:41]MH_I2C_Read... [19:22:41]Read from MH i2c: D1 [19:22:41]MH_I2C_Read... [19:22:41]Read from MH i2c: D1 01 00 [19:22:41]MH_I2C_Read... [19:22:41]Read from MH i2c: D1 01 00 99 5E 00 C8 [19:22:41]Write to MH i2c: 01 00 00 9A 5E F8 [19:22:41]Write i2c OK [19:22:41]MH_I2C_Read... [19:22:41]OFD Sender: No OFD packet to send [19:22:41]*** Cut start [19:22:41]*** Partial cut [19:22:41]*** CUTSNS_PIN = 1 [19:22:41]*** CUTSNS_PIN = 0 [19:22:42]*** Brake cut motor [19:22:42]Read from MH i2c: 01 [19:22:42]MH_I2C_Read... [19:22:42]*** Stop cut motor [19:22:42]*** Cut end [19:22:42]Read from MH i2c: 01 07 00 [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: 01 07 00 9A 5E 00 00 00 00 00 FF 0F 0D [19:22:42]process_action close_receipt done [19:22:42]requested_data is exist [19:22:42]produce_requested_data [19:22:42]requested_item fm.sn is exist - process it [19:22:42]wFMCommunicate request_size=4 [19:22:42]MH_SAM_APDU [19:22:42]CAPDU: 80 11 00 00 [19:22:42]Write to MH i2c: E2 08 00 9B 5E 80 11 00 00 00 00 00 00 73 [19:22:42]Write i2c OK [19:22:42]MH_I2C_Read... [19:22:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:42]Read from MH i2c: E2 [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: E2 17 00 [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: E2 17 00 9B 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C2 [19:22:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:22:42]wFMCommunicate OK [19:22:42]requested_item fd.num is exist - process it [19:22:42]SAM_PROTO_GetFieldsCounters [19:22:42]wFMCommunicate request_size=4 [19:22:42]MH_SAM_APDU [19:22:42]CAPDU: 80 13 00 00 [19:22:42]Write to MH i2c: E2 08 00 9C 5E 80 13 00 00 00 00 00 00 76 [19:22:42]Write i2c OK [19:22:42]MH_I2C_Read... [19:22:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:42]Read from MH i2c: E2 [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: E2 62 00 [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: E2 62 00 9C 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 68 71 00 00 0E 04 04 00 73 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 CD [19:22: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 68 71 00 00 0E 04 04 00 73 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 [19:22:42]wFMCommunicate OK [19:22:42]SAM_PROTO_GetFieldsCounters done [19:22:42]requested_item shift.num is exist - process it [19:22:42]requested_item shift.opened is exist - process it [19:22:42]req_shift_opened [19:22:42]FM_GetShiftState [19:22:42]SAM_PROTO_GetShiftState [19:22:42]wFMCommunicate request_size=4 [19:22:42]MH_SAM_APDU [19:22:42]CAPDU: 80 13 01 00 [19:22:42]Write to MH i2c: E2 08 00 9D 5E 80 13 01 00 00 00 00 00 78 [19:22:42]Write i2c OK [19:22:42]MH_I2C_Read... [19:22:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:42]Read from MH i2c: E2 [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: E2 0E 00 [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: E2 0E 00 9D 5E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 91 [19:22:42]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:22:42]wFMCommunicate OK [19:22:42]SAM_PROTO_GetShiftState done [19:22:42]FM_GetShiftState done [19:22:42]req_shift_opened done [19:22:42]requested_item shift.open_date is exist - process it [19:22:42]req_shift_open_date [19:22:42]req_shift_open_date done [19:22:42]produce_requested_data done [19:22:42]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29032,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [19:22:42]process_action_free close_receipt [19:22:42]json_value_free [19:22:42]json_value_free done [19:22:42]process_json_proto returns [19:22:42]Send response to host [19:22:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29032,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [19:22:42]free response buf [19:22:42]execute_script done [19:22:42]execute_script returns [19:22:42]free content buf [19:22:42]Sock 9.Close socket [19:22:42]Sock 9.Thread stoped [19:22:46]OFD Sender: No OFD packet to send [19:22:51]OFD Sender: No OFD packet to send [19:22:56]OFD Sender: No OFD packet to send [19:23:01]OFD Sender: No OFD packet to send [19:23:06]OFD Sender: No OFD packet to send [19:23:11]OFD Sender: No OFD packet to send [19:23:16]OFD Sender: No OFD packet to send [19:23:21]OFD Sender: No OFD packet to send [19:23:26]OFD Sender: No OFD packet to send [19:23:31]OFD Sender: No OFD packet to send [19:23:36]OFD Sender: No OFD packet to send [19:23:41]OFD Sender: No OFD packet to send [19:23:46]OFD Sender: No OFD packet to send [19:23:51]OFD Sender: No OFD packet to send [19:23:56]OFD Sender: No OFD packet to send [19:24:01]OFD Sender: No OFD packet to send [19:24:06]OFD Sender: No OFD packet to send [19:24:11]OFD Sender: No OFD packet to send [19:24:16]OFD Sender: No OFD packet to send [19:24:21]OFD Sender: No OFD packet to send [19:24:26]OFD Sender: No OFD packet to send [19:24:31]OFD Sender: No OFD packet to send [19:24:36]OFD Sender: No OFD packet to send [19:24:41]OFD Sender: No OFD packet to send [19:24:46]OFD Sender: No OFD packet to send [19:24:51]OFD Sender: No OFD packet to send [19:24:56]OFD Sender: No OFD packet to send [19:25:01]OFD Sender: No OFD packet to send [19:25:06]OFD Sender: No OFD packet to send [19:25:11]OFD Sender: No OFD packet to send [19:25:16]OFD Sender: No OFD packet to send [19:25:21]OFD Sender: No OFD packet to send [19:25:26]OFD Sender: No OFD packet to send [19:25:31]OFD Sender: No OFD packet to send [19:25:36]OFD Sender: No OFD packet to send [19:25:41]OFD Sender: No OFD packet to send [19:25:46]OFD Sender: No OFD packet to send [19:25:51]OFD Sender: No OFD packet to send [19:25:56]OFD Sender: No OFD packet to send [19:26:01]OFD Sender: No OFD packet to send [19:26:06]OFD Sender: No OFD packet to send [19:26:11]OFD Sender: No OFD packet to send [19:26:16]OFD Sender: No OFD packet to send [19:26:21]OFD Sender: No OFD packet to send [19:26:26]OFD Sender: No OFD packet to send [19:26:31]OFD Sender: No OFD packet to send [19:26:36]OFD Sender: No OFD packet to send [19:26:41]OFD Sender: No OFD packet to send [19:26:46]OFD Sender: No OFD packet to send [19:26:51]OFD Sender: No OFD packet to send [19:26:56]OFD Sender: No OFD packet to send [19:27:01]OFD Sender: No OFD packet to send [19:27:06]OFD Sender: No OFD packet to send [19:27:11]OFD Sender: No OFD packet to send [19:27:16]OFD Sender: No OFD packet to send [19:27:21]OFD Sender: No OFD packet to send [19:27:26]OFD Sender: No OFD packet to send [19:27:31]OFD Sender: No OFD packet to send [19:27:36]OFD Sender: No OFD packet to send [19:27:41]OFD Sender: No OFD packet to send [19:27:44]accept exits with 7 [19:27:44]New connection [19:27:44]New thread 3066785124 created [19:27:44]Thread 3066928484 joined [19:27:44]Waiting for new connection... [19:27:44] Sock 7.Parse request [19:27:44]Sock 7.Check first char [19:27:44]Sock 7.First char is OK [19:27:44]request: POST /json_proto HTTP/1.0 [19:27:44]Method: POST [19:27:44]URL: /json_proto [19:27:44]Method is POST - this is cgi request [19:27:44]url: /json_proto [19:27:44]query_string will be loaded in cgi processing [19:27:44]execute_cgi json_proto POST (null) [19:27:44]execute_cgi path=json_proto method=POST [19:27:44]POST find Content-Length [19:27:44]Host: 172.17.33.3:8080 [19:27:44]Content-Length: 844 [19:27:44]Content-Type: application/json [19:27:44] [19:27:44]POST finish read [19:27:44]Found Content-Length = 844 [19:27:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 10.340, "sum" : 340.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 340.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:44]execute_script... [19:27: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)347401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 10.340, "sum" : 340.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 340.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:44]POST & json_proto [19:27:44]process_json_proto [19:27:44]json parsed OK: [19:27:44]protocol is kg_v1.0 [19:27:44]action value=close_receipt [19:27:44]process_action close_receipt [19:27:44]cmd_close_receipt [19:27:44]MH_GetDate [19:27:44]Write to MH i2c: F0 00 00 9E 5E EB [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: F0 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: F0 09 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: F0 09 00 9E 5E 00 B6 DC 1A 66 23 5B 8F 65 78 [19:27:44]GetLastDocTimeStamp 1713036164 [19:27:44]current date 1713036470 [19:27:44]FM_GetShiftState [19:27:44]SAM_PROTO_GetShiftState [19:27:44]wFMCommunicate request_size=4 [19:27:44]MH_SAM_APDU [19:27:44]CAPDU: 80 13 01 00 [19:27:44]Write to MH i2c: E2 08 00 9F 5E 80 13 01 00 00 00 00 00 7A [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:44]Read from MH i2c: E2 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 0E 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 0E 00 9F 5E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 93 [19:27:44]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:27:44]wFMCommunicate OK [19:27:44]SAM_PROTO_GetShiftState done [19:27:44]FM_GetShiftState done [19:27:44]opened in 1712967615 [19:27:44]opened+sec_in_day 1713054015 [19:27:44]quantity*price = 34018 [19:27:44]sum+1 = 34020 [19:27:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 340.19 НСП 1% : 3.01 НДС 12% : 36.13 Наличными: 0.00 Безнал.: 340.19 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 240 13.04.2024 19:27 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29033 ФПД: 163671008135591 1/tax-web-control/client/api/v1/ticket?date=20240413T192750&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29033&fm=163671008135591&tin=02508201610067®Number=0000138879044617&sum=34019 [19:27:45]StoreToDocumentArchive [19:27:45]shift 115 fd 29033 [19:27:45]save to /storage/0115/doc_00029033 [19:27:45]save last doc name /storage/0115/doc_00029033 to /storage/kkm_last_doc_name [19:27:45]save OK [19:27:45]Clear old archive folders... [19:27:45]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:27:45]tlvbuf is 012F3640 [19:27:45]SAM_PROTO_ClearQueue [19:27:45]wFMCommunicate request_size=4 [19:27:45]MH_SAM_APDU [19:27:45]CAPDU: 80 09 00 00 [19:27:45]Write to MH i2c: E2 08 00 AC 5E 80 09 00 00 00 00 00 00 7C [19:27:45]Write i2c OK [19:27:45]MH_I2C_Read... [19:27:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:45]Read from MH i2c: E2 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: E2 03 00 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: E2 03 00 AC 5E 00 90 00 7E [19:27:45]RAPDU: 90 00 [19:27:45]wFMCommunicate OK [19:27:45]SAM_PROTO_ClearQueue done [19:27:45]KKMCreateOFDPacket [19:27:45]OFDProtocolAddRootSTLVToBuf [19:27:45]FM_MakeSignedData [19:27:45]FM_MakeSignedData [19:27:45]SAM_PROTO_SignData [19:27:45]wFMCommunicate request_size=4 [19:27:45]MH_SAM_APDU [19:27:45]CAPDU: 80 0D 01 02 [19:27:45]Write to MH i2c: E2 08 00 AD 5E 80 0D 01 02 00 00 00 00 84 [19:27:45]Write i2c OK [19:27:45]MH_I2C_Read... [19:27:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:45]Read from MH i2c: E2 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: E2 03 00 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: E2 03 00 AD 5E 00 90 00 7F [19:27:45]RAPDU: 90 00 [19:27:45]wFMCommunicate OK [19:27:45]wFMCommunicate request_size=255 [19:27:45]MH_SAM_APDU [19:27:45]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 E3 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 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 1D 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 B6 DC 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 69 71 00 00 35 04 06 00 94 DB [19:27:45]Write to MH i2c: E2 02 01 AE 5E 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 E3 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 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 1D 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 B6 DC 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 69 71 00 00 35 04 06 00 94 DB 00 00 19 [19:27:45]Write i2c OK [19:27:45]MH_I2C_Read... [19:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:46]Read from MH i2c: E2 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 03 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 03 00 AE 5E 00 90 00 80 [19:27:46]RAPDU: 90 00 [19:27:46]wFMCommunicate OK [19:27:46]wFMCommunicate request_size=9 [19:27:46]MH_SAM_APDU [19:27:46]CAPDU: 80 0D 02 02 04 A0 4C C9 A7 [19:27:46]Write to MH i2c: E2 0C 00 AF 5E 80 0D 02 02 04 00 A0 4C C9 A7 00 00 EB [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:46]Read from MH i2c: E2 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 03 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 03 00 AF 5E 00 90 00 81 [19:27:46]RAPDU: 90 00 [19:27:46]wFMCommunicate OK [19:27:46]wFMCommunicate request_size=4 [19:27:46]MH_SAM_APDU [19:27:46]CAPDU: 80 0D 03 02 [19:27:46]Write to MH i2c: E2 08 00 B0 5E 80 0D 03 02 00 00 00 00 89 [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:46]Read from MH i2c: E2 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 0B 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 0B 00 B0 5E 00 93 74 C8 11 2E F1 1A 17 90 00 BA [19:27:46]RAPDU: 93 74 C8 11 2E F1 1A 17 90 00 [19:27:46]wFMCommunicate OK [19:27:46]SAM_PROTO_SignData done [19:27:46]FM_MakeSignedData done [19:27:46]CreateOFDProtocolMessage [19:27:46]wFMCommunicate request_size=4 [19:27:46]MH_SAM_APDU [19:27:46]CAPDU: 80 11 00 00 [19:27:46]Write to MH i2c: E2 08 00 B1 5E 80 11 00 00 00 00 00 00 89 [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:46]Read from MH i2c: E2 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 17 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 17 00 B1 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D8 [19:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:27:46]wFMCommunicate OK [19:27:46]CreateOFDProtocolMessage done [19:27:46]OFDSenderStorePacket 29033 [19:27:46]StoreOFDPacket docnum=29033 [19:27:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 10 56 06 01 FD EC 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 E3 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 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 1D 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 B6 DC 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 69 71 00 00 35 04 06 00 94 DB A0 4C C9 A7 93 74 C8 11 2E F1 1A 17 [19:27:46]CheckFolder [19:27:46]dirname=/storage/ofd_packets [19:27:46]CheckFolder done [19:27:46]ProducePacketName [19:27:46]name=ofd_packets/00029033 [19:27:46]NVStorageSaveData ofd_packets/00029033 [19:27:46]File name is /storage/ofd_packets/00029033 [19:27:46]Write 300 bytes [19:27:46]NVStorageSaveData done [19:27:46]OFDSenderStorePacket done [19:27:46]KKMCreateOFDPacket done [19:27:46]NVStorageSaveData kkm_last_timestamp [19:27:46]File name is /storage/kkm_last_timestamp [19:27:46]Write 4 bytes [19:27:46]NVStorageSaveData done [19:27:46]ExternCall_PrintAddStr [19:27:46]wPrintStart [19:27:46]Write to MH i2c: 01 00 00 B2 5E 10 [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: 01 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: 01 07 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: 01 07 00 B2 5E 00 00 00 00 00 FF 0F 25 [19:27:46]RasterBufferAndPrint [19:27:46]line Счет N : (1)347401 [19:27:46]line ИНН: 02508201610067 [19:27:46]line Контрольно-Кассовый Чек [19:27:46]line ПРОДАЖА [19:27:46]line ТРК (МРК, ГНК) : 71 [19:27:46]line Товар: 2711129700 [19:27:46]line ГАЗ-К-5 [19:27:46]line 10.340 * 32.90 [19:27:46]line = 340.19 [19:27:46]line НДС 12% НСП 1% [19:27:46]line > о реализуемом товаре [19:27:46]line ИТОГО: 340.19 [19:27:46]line НСП 1% : 3.01 [19:27:46]line НДС 12% : 36.13 [19:27:46]line Наличными: 0.00 [19:27:46]line Безнал.: 340.19 [19:27:46]line Место: АЗС № 108 "Партнер Нефть" [19:27:46]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:27:46]line СНО: Общий режим [19:27:46]line Чек 240 13.04.2024 19:27 [19:27:46]line Смена: 115 ФФД: 1.0 [19:27:46]line ЗНМ: 0300000027 [19:27:46]line РНМ: 0000138879044617 [19:27:46]line Версия ККМ: 001 [19:27:46]line Платежная система: АКБ Кыргызстан [19:27:46]line ФМ: 0000000000963154 [19:27:46]line ФД: 29033 [19:27:46]line ФПД: 163671008135591 [19:27:46]line 1/tax-web-control/client/api/v1/ticket?date=20240413T192750&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29033&fm=163671008135591&tin=02508201610067®Number=0000138879044617&sum=34019 [19:27:46]OFD Sender: Processing packet 29033 [packets to send 8, broken 7] [19:27:46]ProducePacketName [19:27:46]name=ofd_packets/00029033 [19:27:46]OFD Sender: To server: pG, [19:27:46]CommunicateWithHost lk.salyk.kg:30040 [19:27:46]ConnectInit lk.salyk.kg [19:27:46]written 0, free lines is 4095 [19:27:46]Connected sock=10 [19:27: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 31 35 34 0E 01 00 00 10 56 06 01 FD EC 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 E3 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 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 1D 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 B6 DC 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 69 71 00 00 35 04 06 00 94 DB A0 4C C9 A7 93 74 C8 11 2E F1 1A 17 [19:27:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 13 F8 47 00 E4 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 31 35 34 10 04 04 00 69 71 00 00 F4 03 04 00 5C 87 1A 66 B6 04 01 00 00 A6 98 58 49 BF 70 BD E5 [19:27:46]CommunicateWithHost err = 0 [19:27:46]CheckOFDResponse [19:27:46]1017 (14) - 77093643461234 [19:27:46]1041 (16) - 0000000000963154 [19:27:46]1040 (4) - 29033 [19:27:46]1012 (4) - 13.04.2024 13:23 [19:27:46]1206 (1) - 0 [19:27:46]OFD Sender: Remove packet 29033 [19:27:46]ProducePacketName [19:27:46]name=ofd_packets/00029033 [19:27:46]NVStorageDeleteData [19:27:46]Write to MH i2c: 01 00 00 DB 5E 39 [19:27:47]Write i2c OK [19:27:47]MH_I2C_Read... [19:27:47]Read from MH i2c: 01 [19:27:47]MH_I2C_Read... [19:27:47]Read from MH i2c: 01 07 00 [19:27:47]MH_I2C_Read... [19:27:47]Read from MH i2c: 01 07 00 DB 5E 00 00 00 00 00 E3 0C 2F [19:27:47]RasterBufferAndPrint [19:27:47]line [19:27:47]line [19:27:47]line [19:27:47]line [19:27:47]line [19:27:47]written 0, free lines is 3305 [19:27:47]MH_Cut [19:27:47]Write to MH i2c: D1 01 00 E2 5E 01 12 [19:27:47]Write i2c OK [19:27:47]MH_I2C_Read... [19:27:47]Read from MH i2c: D1 [19:27:47]MH_I2C_Read... [19:27:47]Read from MH i2c: D1 01 00 [19:27:47]MH_I2C_Read... [19:27:47]Read from MH i2c: D1 01 00 E2 5E 00 11 [19:27:47]Write to MH i2c: 01 00 00 E3 5E 41 [19:27:47]Write i2c OK [19:27:47]MH_I2C_Read... [19:27:47]OFD Sender: No OFD packet to send [19:27:47]*** Cut start [19:27:47]*** Partial cut [19:27:47]*** CUTSNS_PIN = 1 [19:27:47]*** CUTSNS_PIN = 0 [19:27:48]*** Brake cut motor [19:27:48]Read from MH i2c: 01 [19:27:48]MH_I2C_Read... [19:27:48]*** Stop cut motor [19:27:48]*** Cut end [19:27:48]Read from MH i2c: 01 07 00 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: 01 07 00 E3 5E 00 00 00 00 00 FF 0F 56 [19:27:48]process_action close_receipt done [19:27:48]requested_data is exist [19:27:48]produce_requested_data [19:27:48]requested_item fm.sn is exist - process it [19:27:48]wFMCommunicate request_size=4 [19:27:48]MH_SAM_APDU [19:27:48]CAPDU: 80 11 00 00 [19:27:48]Write to MH i2c: E2 08 00 E4 5E 80 11 00 00 00 00 00 00 BC [19:27:48]Write i2c OK [19:27:48]MH_I2C_Read... [19:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:48]Read from MH i2c: E2 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: E2 17 00 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: E2 17 00 E4 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0B [19:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:27:48]wFMCommunicate OK [19:27:48]requested_item fd.num is exist - process it [19:27:48]SAM_PROTO_GetFieldsCounters [19:27:48]wFMCommunicate request_size=4 [19:27:48]MH_SAM_APDU [19:27:48]CAPDU: 80 13 00 00 [19:27:48]Write to MH i2c: E2 08 00 E5 5E 80 13 00 00 00 00 00 00 BF [19:27:48]Write i2c OK [19:27:48]MH_I2C_Read... [19:27:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:48]Read from MH i2c: E2 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: E2 62 00 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: E2 62 00 E5 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 69 71 00 00 0E 04 04 00 73 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 1A [19:27: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 69 71 00 00 0E 04 04 00 73 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 [19:27:48]wFMCommunicate OK [19:27:48]SAM_PROTO_GetFieldsCounters done [19:27:48]requested_item shift.num is exist - process it [19:27:48]requested_item shift.opened is exist - process it [19:27:48]req_shift_opened [19:27:48]FM_GetShiftState [19:27:48]SAM_PROTO_GetShiftState [19:27:48]wFMCommunicate request_size=4 [19:27:48]MH_SAM_APDU [19:27:48]CAPDU: 80 13 01 00 [19:27:48]Write to MH i2c: E2 08 00 E6 5E 80 13 01 00 00 00 00 00 C1 [19:27:48]Write i2c OK [19:27:48]MH_I2C_Read... [19:27:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:48]Read from MH i2c: E2 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: E2 0E 00 [19:27:48]MH_I2C_Read... [19:27:48]Read from MH i2c: E2 0E 00 E6 5E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 DA [19:27:48]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:27:48]wFMCommunicate OK [19:27:48]SAM_PROTO_GetShiftState done [19:27:48]FM_GetShiftState done [19:27:48]req_shift_opened done [19:27:48]requested_item shift.open_date is exist - process it [19:27:48]req_shift_open_date [19:27:48]req_shift_open_date done [19:27:48]produce_requested_data done [19:27:48]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29033,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [19:27:48]process_action_free close_receipt [19:27:48]json_value_free [19:27:48]json_value_free done [19:27:48]process_json_proto returns [19:27:48]Send response to host [19:27:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29033,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [19:27:48]free response buf [19:27:48]execute_script done [19:27:48]execute_script returns [19:27:48]free content buf [19:27:48]Sock 7.Close socket [19:27:48]Sock 7.Thread stoped [19:27:52]OFD Sender: No OFD packet to send [19:27:57]OFD Sender: No OFD packet to send [19:28:02]OFD Sender: No OFD packet to send [19:28:07]OFD Sender: No OFD packet to send [19:28:12]OFD Sender: No OFD packet to send [19:28:17]OFD Sender: No OFD packet to send [19:28:22]OFD Sender: No OFD packet to send [19:28:27]OFD Sender: No OFD packet to send [19:28:32]OFD Sender: No OFD packet to send [19:28:37]OFD Sender: No OFD packet to send [19:28:42]OFD Sender: No OFD packet to send [19:28:47]OFD Sender: No OFD packet to send [19:28:52]OFD Sender: No OFD packet to send [19:28:57]OFD Sender: No OFD packet to send [19:29:02]OFD Sender: No OFD packet to send [19:29:07]OFD Sender: No OFD packet to send [19:29:12]OFD Sender: No OFD packet to send [19:29:17]OFD Sender: No OFD packet to send [19:29:22]OFD Sender: No OFD packet to send [19:29:27]OFD Sender: No OFD packet to send [19:29:32]OFD Sender: No OFD packet to send [19:29:37]OFD Sender: No OFD packet to send [19:29:42]OFD Sender: No OFD packet to send [19:29:47]OFD Sender: No OFD packet to send [19:29:52]OFD Sender: No OFD packet to send [19:29:57]OFD Sender: No OFD packet to send [19:30:02]OFD Sender: No OFD packet to send [19:30:07]OFD Sender: No OFD packet to send [19:30:12]OFD Sender: No OFD packet to send [19:30:17]OFD Sender: No OFD packet to send [19:30:22]OFD Sender: No OFD packet to send [19:30:27]OFD Sender: No OFD packet to send [19:30:32]OFD Sender: No OFD packet to send [19:30:37]OFD Sender: No OFD packet to send [19:30:42]OFD Sender: No OFD packet to send [19:30:47]OFD Sender: No OFD packet to send [19:30:52]OFD Sender: No OFD packet to send [19:30:57]OFD Sender: No OFD packet to send [19:31:02]OFD Sender: No OFD packet to send [19:31:07]OFD Sender: No OFD packet to send [19:31:12]OFD Sender: No OFD packet to send [19:31:17]OFD Sender: No OFD packet to send [19:31:22]OFD Sender: No OFD packet to send [19:31:27]OFD Sender: No OFD packet to send [19:31:32]OFD Sender: No OFD packet to send [19:31:37]OFD Sender: No OFD packet to send [19:31:42]OFD Sender: No OFD packet to send [19:31:47]OFD Sender: No OFD packet to send [19:31:52]OFD Sender: No OFD packet to send [19:31:57]OFD Sender: No OFD packet to send [19:32:02]OFD Sender: No OFD packet to send [19:32:07]OFD Sender: No OFD packet to send [19:32:12]OFD Sender: No OFD packet to send [19:32:17]OFD Sender: No OFD packet to send [19:32:22]OFD Sender: No OFD packet to send [19:32:27]OFD Sender: No OFD packet to send [19:32:32]OFD Sender: No OFD packet to send [19:32:37]OFD Sender: No OFD packet to send [19:32:42]OFD Sender: No OFD packet to send [19:32:47]OFD Sender: No OFD packet to send [19:32:52]OFD Sender: No OFD packet to send [19:32:57]OFD Sender: No OFD packet to send [19:33:02]OFD Sender: No OFD packet to send [19:33:03]accept exits with 9 [19:33:03]New connection [19:33:03]New thread 3066928484 created [19:33:03]Thread 3066785124 joined [19:33:03]Waiting for new connection... [19:33:03] Sock 9.Parse request [19:33:03]Sock 9.Check first char [19:33:03]Sock 9.First char is OK [19:33:03]request: POST /json_proto HTTP/1.0 [19:33:03]Method: POST [19:33:03]URL: /json_proto [19:33:03]Method is POST - this is cgi request [19:33:03]url: /json_proto [19:33:03]query_string will be loaded in cgi processing [19:33:03]execute_cgi json_proto POST (null) [19:33:03]execute_cgi path=json_proto method=POST [19:33:03]POST find Content-Length [19:33:03]Host: 172.17.33.3:8080 [19:33:03]Content-Length: 843 [19:33:03]Content-Type: application/json [19:33:03] [19:33:03]POST finish read [19:33:03]Found Content-Length = 843 [19:33:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347402", "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" : 64.30, "quantity" : 15.560, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:03]execute_script... [19:33: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)347402", "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" : 64.30, "quantity" : 15.560, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:03]POST & json_proto [19:33:03]process_json_proto [19:33:03]json parsed OK: [19:33:03]protocol is kg_v1.0 [19:33:03]action value=close_receipt [19:33:03]process_action close_receipt [19:33:03]cmd_close_receipt [19:33:03]MH_GetDate [19:33:03]Write to MH i2c: F0 00 00 E7 5E 34 [19:33:03]Write i2c OK [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: F0 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: F0 09 00 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: F0 09 00 E7 5E 00 F5 DD 1A 66 23 5B 8F 65 01 [19:33:03]GetLastDocTimeStamp 1713036470 [19:33:03]current date 1713036789 [19:33:03]FM_GetShiftState [19:33:03]SAM_PROTO_GetShiftState [19:33:03]wFMCommunicate request_size=4 [19:33:03]MH_SAM_APDU [19:33:03]CAPDU: 80 13 01 00 [19:33:03]Write to MH i2c: E2 08 00 E8 5E 80 13 01 00 00 00 00 00 C3 [19:33:03]Write i2c OK [19:33:03]MH_I2C_Read... [19:33:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:03]Read from MH i2c: E2 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: E2 0E 00 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: E2 0E 00 E8 5E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 DC [19:33:03]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:33:03]wFMCommunicate OK [19:33:03]SAM_PROTO_GetShiftState done [19:33:03]FM_GetShiftState done [19:33:03]opened in 1712967615 [19:33:03]opened+sec_in_day 1713054015 [19:33:03]quantity*price = 100050 [19:33:03]sum+1 = 100052 [19:33:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 241 13.04.2024 19:33 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29034 ФПД: 181793755311166 1/tax-web-control/client/api/v1/ticket?date=20240413T193309&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29034&fm=181793755311166&tin=02508201610067®Number=0000138879044617&sum=100051 [19:33:04]StoreToDocumentArchive [19:33:04]shift 115 fd 29034 [19:33:04]save to /storage/0115/doc_00029034 [19:33:04]save last doc name /storage/0115/doc_00029034 to /storage/kkm_last_doc_name [19:33:04]save OK [19:33:04]Clear old archive folders... [19:33:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:33:04]tlvbuf is 0120E670 [19:33:04]SAM_PROTO_ClearQueue [19:33:04]wFMCommunicate request_size=4 [19:33:04]MH_SAM_APDU [19:33:04]CAPDU: 80 09 00 00 [19:33:04]Write to MH i2c: E2 08 00 F5 5E 80 09 00 00 00 00 00 00 C5 [19:33:04]Write i2c OK [19:33:04]MH_I2C_Read... [19:33:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:04]Read from MH i2c: E2 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 03 00 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 03 00 F5 5E 00 90 00 C7 [19:33:04]RAPDU: 90 00 [19:33:04]wFMCommunicate OK [19:33:04]SAM_PROTO_ClearQueue done [19:33:04]KKMCreateOFDPacket [19:33:04]OFDProtocolAddRootSTLVToBuf [19:33:04]FM_MakeSignedData [19:33:04]FM_MakeSignedData [19:33:04]SAM_PROTO_SignData [19:33:04]wFMCommunicate request_size=4 [19:33:04]MH_SAM_APDU [19:33:04]CAPDU: 80 0D 01 02 [19:33:04]Write to MH i2c: E2 08 00 F6 5E 80 0D 01 02 00 00 00 00 CD [19:33:04]Write i2c OK [19:33:04]MH_I2C_Read... [19:33:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:04]Read from MH i2c: E2 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 03 00 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 03 00 F6 5E 00 90 00 C8 [19:33:04]RAPDU: 90 00 [19:33:04]wFMCommunicate OK [19:33:04]wFMCommunicate request_size=255 [19:33:04]MH_SAM_APDU [19:33: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 F1 00 00 00 F4 03 04 00 F5 DD 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6A 71 00 00 35 04 06 00 A5 [19:33:04]Write to MH i2c: E2 02 01 F7 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 F1 00 00 00 F4 03 04 00 F5 DD 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6A 71 00 00 35 04 06 00 A5 00 00 95 [19:33:04]Write i2c OK [19:33:04]MH_I2C_Read... [19:33:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:04]Read from MH i2c: E2 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 03 00 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 03 00 F7 5E 00 90 00 C9 [19:33:04]RAPDU: 90 00 [19:33:04]wFMCommunicate OK [19:33:04]wFMCommunicate request_size=10 [19:33:04]MH_SAM_APDU [19:33:04]CAPDU: 80 0D 02 02 05 57 28 35 2C 3E [19:33:04]Write to MH i2c: E2 0D 00 F8 5E 80 0D 02 02 05 00 57 28 35 2C 3E 00 00 F8 [19:33:04]Write i2c OK [19:33:04]MH_I2C_Read... [19:33:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:04]Read from MH i2c: E2 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 03 00 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 03 00 F8 5E 00 90 00 CA [19:33:04]RAPDU: 90 00 [19:33:04]wFMCommunicate OK [19:33:04]wFMCommunicate request_size=4 [19:33:04]MH_SAM_APDU [19:33:04]CAPDU: 80 0D 03 02 [19:33:04]Write to MH i2c: E2 08 00 F9 5E 80 0D 03 02 00 00 00 00 D2 [19:33:04]Write i2c OK [19:33:04]MH_I2C_Read... [19:33:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:04]Read from MH i2c: E2 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 0B 00 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 0B 00 F9 5E 00 E2 9C 14 C3 77 D0 58 C7 90 00 8E [19:33:04]RAPDU: E2 9C 14 C3 77 D0 58 C7 90 00 [19:33:04]wFMCommunicate OK [19:33:04]SAM_PROTO_SignData done [19:33:04]FM_MakeSignedData done [19:33:04]CreateOFDProtocolMessage [19:33:04]wFMCommunicate request_size=4 [19:33:04]MH_SAM_APDU [19:33:04]CAPDU: 80 11 00 00 [19:33:04]Write to MH i2c: E2 08 00 FA 5E 80 11 00 00 00 00 00 00 D2 [19:33:04]Write i2c OK [19:33:04]MH_I2C_Read... [19:33:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:04]Read from MH i2c: E2 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 17 00 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: E2 17 00 FA 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 21 [19:33:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:33:04]wFMCommunicate OK [19:33:04]CreateOFDProtocolMessage done [19:33:04]OFDSenderStorePacket 29034 [19:33:04]StoreOFDPacket docnum=29034 [19:33:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F7 3D 07 01 C7 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 F1 00 00 00 F4 03 04 00 F5 DD 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6A 71 00 00 35 04 06 00 A5 57 28 35 2C 3E E2 9C 14 C3 77 D0 58 C7 [19:33:04]CheckFolder [19:33:04]dirname=/storage/ofd_packets [19:33:04]CheckFolder done [19:33:04]ProducePacketName [19:33:04]name=ofd_packets/00029034 [19:33:04]NVStorageSaveData ofd_packets/00029034 [19:33:04]File name is /storage/ofd_packets/00029034 [19:33:04]Write 301 bytes [19:33:04]NVStorageSaveData done [19:33:04]OFDSenderStorePacket done [19:33:04]KKMCreateOFDPacket done [19:33:04]NVStorageSaveData kkm_last_timestamp [19:33:04]File name is /storage/kkm_last_timestamp [19:33:04]Write 4 bytes [19:33:04]NVStorageSaveData done [19:33:04]ExternCall_PrintAddStr [19:33:04]wPrintStart [19:33:04]Write to MH i2c: 01 00 00 FB 5E 59 [19:33:04]Write i2c OK [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: 01 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: 01 07 00 [19:33:04]MH_I2C_Read... [19:33:04]Read from MH i2c: 01 07 00 FB 5E 00 00 00 00 00 FF 0F 6E [19:33:04]RasterBufferAndPrint [19:33:04]line Счет N : (1)347402 [19:33:04]line ИНН: 02508201610067 [19:33:04]line Контрольно-Кассовый Чек [19:33:04]line ПРОДАЖА [19:33:04]line ТРК (МРК, ГНК) : 32 [19:33:04]line Товар: 2710124130 [19:33:04]line Аи-92-К-5 [19:33:04]line 15.560 * 64.30 [19:33:04]line = 1000.51 [19:33:04]line НДС 12% НСП 1% [19:33:04]line > о реализуемом товаре [19:33:04]line ИТОГО: 1000.51 [19:33:04]line НСП 1% : 8.85 [19:33:04]line НДС 12% : 106.25 [19:33:04]line Наличными: 0.00 [19:33:04]line Безнал.: 1000.51 [19:33:04]line Место: АЗС № 108 "Партнер Нефть" [19:33:04]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:33:04]line СНО: Общий режим [19:33:04]line Чек 241 13.04.2024 19:33 [19:33:04]line Смена: 115 ФФД: 1.0 [19:33:04]line ЗНМ: 0300000027 [19:33:04]line РНМ: 0000138879044617 [19:33:04]line Версия ККМ: 001 [19:33:04]line Платежная система: АКБ Кыргызстан [19:33:04]line ФМ: 0000000000963154 [19:33:04]line ФД: 29034 [19:33:04]line ФПД: 181793755311166 [19:33:04]line 1/tax-web-control/client/api/v1/ticket?date=20240413T193309&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29034&fm=181793755311166&tin=02508201610067®Number=0000138879044617&sum=100051 [19:33:04]written 0, free lines is 4095 [19:33:05]OFD Sender: Processing packet 29034 [packets to send 8, broken 7] [19:33:05]ProducePacketName [19:33:05]name=ofd_packets/00029034 [19:33:05]OFD Sender: To server: pG, [19:33:05]CommunicateWithHost lk.salyk.kg:30040 [19:33:05]ConnectInit lk.salyk.kg [19:33:05]Connected sock=10 [19:33: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 31 35 34 0F 01 00 00 F7 3D 07 01 C7 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 F1 00 00 00 F4 03 04 00 F5 DD 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6A 71 00 00 35 04 06 00 A5 57 28 35 2C 3E E2 9C 14 C3 77 D0 58 C7 [19:33:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 BC 6D 47 00 6A 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 31 35 34 10 04 04 00 6A 71 00 00 F4 03 04 00 9B 88 1A 66 B6 04 01 00 00 0B 23 B9 9F 78 58 77 18 [19:33:05]CommunicateWithHost err = 0 [19:33:05]CheckOFDResponse [19:33:05]1017 (14) - 77093643461234 [19:33:05]1041 (16) - 0000000000963154 [19:33:05]1040 (4) - 29034 [19:33:05]1012 (4) - 13.04.2024 13:28 [19:33:05]1206 (1) - 0 [19:33:05]OFD Sender: Remove packet 29034 [19:33:05]ProducePacketName [19:33:05]name=ofd_packets/00029034 [19:33:05]NVStorageDeleteData [19:33:05]Write to MH i2c: 01 00 00 24 5F 83 [19:33:05]Write i2c OK [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: 01 [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: 01 07 00 [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: 01 07 00 24 5F 00 00 00 00 00 EC 0C 82 [19:33:05]RasterBufferAndPrint [19:33:05]line [19:33:05]line [19:33:05]line [19:33:05]line [19:33:05]line [19:33:05]written 0, free lines is 3314 [19:33:05]MH_Cut [19:33:05]Write to MH i2c: D1 01 00 2B 5F 01 5C [19:33:05]Write i2c OK [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: D1 [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: D1 01 00 [19:33:05]MH_I2C_Read... [19:33:05]Read from MH i2c: D1 01 00 2B 5F 00 5B [19:33:05]Write to MH i2c: 01 00 00 2C 5F 8B [19:33:05]Write i2c OK [19:33:05]MH_I2C_Read... [19:33:05]OFD Sender: No OFD packet to send [19:33:06]*** Cut start [19:33:06]*** Partial cut [19:33:06]*** CUTSNS_PIN = 1 [19:33:06]*** CUTSNS_PIN = 0 [19:33:06]*** Brake cut motor [19:33:06]Read from MH i2c: 01 [19:33:06]MH_I2C_Read... [19:33:06]*** Stop cut motor [19:33:06]*** Cut end [19:33:06]Read from MH i2c: 01 07 00 [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: 01 07 00 2C 5F 00 00 00 00 00 FF 0F A0 [19:33:06]process_action close_receipt done [19:33:06]requested_data is exist [19:33:06]produce_requested_data [19:33:06]requested_item fm.sn is exist - process it [19:33:06]wFMCommunicate request_size=4 [19:33:06]MH_SAM_APDU [19:33:06]CAPDU: 80 11 00 00 [19:33:06]Write to MH i2c: E2 08 00 2D 5F 80 11 00 00 00 00 00 00 06 [19:33:06]Write i2c OK [19:33:06]MH_I2C_Read... [19:33:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:06]Read from MH i2c: E2 [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: E2 17 00 [19:33:06]MH_I2C_Read... [19:33:06]Read from MH i2c: E2 17 00 2D 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 55 [19:33:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:33:06]wFMCommunicate OK [19:33:06]requested_item fd.num is exist - process it [19:33:06]SAM_PROTO_GetFieldsCounters [19:33:06]wFMCommunicate request_size=4 [19:33:06]MH_SAM_APDU [19:33:06]CAPDU: 80 13 00 00 [19:33:06]Write to MH i2c: E2 08 00 2E 5F 80 13 00 00 00 00 00 00 09 [19:33:06]Write i2c OK [19:33:06]MH_I2C_Read... [19:33:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:07]Read from MH i2c: E2 [19:33:07]MH_I2C_Read... [19:33:07]Read from MH i2c: E2 62 00 [19:33:07]MH_I2C_Read... [19:33:07]Read from MH i2c: E2 62 00 2E 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6A 71 00 00 0E 04 04 00 73 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 68 [19:33: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6A 71 00 00 0E 04 04 00 73 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 [19:33:07]wFMCommunicate OK [19:33:07]SAM_PROTO_GetFieldsCounters done [19:33:07]requested_item shift.num is exist - process it [19:33:07]requested_item shift.opened is exist - process it [19:33:07]req_shift_opened [19:33:07]FM_GetShiftState [19:33:07]SAM_PROTO_GetShiftState [19:33:07]wFMCommunicate request_size=4 [19:33:07]MH_SAM_APDU [19:33:07]CAPDU: 80 13 01 00 [19:33:07]Write to MH i2c: E2 08 00 2F 5F 80 13 01 00 00 00 00 00 0B [19:33:07]Write i2c OK [19:33:07]MH_I2C_Read... [19:33:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:07]Read from MH i2c: E2 [19:33:07]MH_I2C_Read... [19:33:07]Read from MH i2c: E2 0E 00 [19:33:07]MH_I2C_Read... [19:33:07]Read from MH i2c: E2 0E 00 2F 5F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 24 [19:33:07]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:33:07]wFMCommunicate OK [19:33:07]SAM_PROTO_GetShiftState done [19:33:07]FM_GetShiftState done [19:33:07]req_shift_opened done [19:33:07]requested_item shift.open_date is exist - process it [19:33:07]req_shift_open_date [19:33:07]req_shift_open_date done [19:33:07]produce_requested_data done [19:33:07]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29034,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [19:33:07]process_action_free close_receipt [19:33:07]json_value_free [19:33:07]json_value_free done [19:33:07]process_json_proto returns [19:33:07]Send response to host [19:33:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29034,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [19:33:07]free response buf [19:33:07]execute_script done [19:33:07]execute_script returns [19:33:07]free content buf [19:33:07]Sock 9.Close socket [19:33:07]Sock 9.Thread stoped [19:33:10]OFD Sender: No OFD packet to send [19:33:15]OFD Sender: No OFD packet to send [19:33:20]OFD Sender: No OFD packet to send [19:33:25]OFD Sender: No OFD packet to send [19:33:30]OFD Sender: No OFD packet to send [19:33:35]OFD Sender: No OFD packet to send [19:33:40]OFD Sender: No OFD packet to send [19:33:45]OFD Sender: No OFD packet to send [19:33:50]OFD Sender: No OFD packet to send [19:33:55]OFD Sender: No OFD packet to send [19:34:00]OFD Sender: No OFD packet to send [19:34:05]OFD Sender: No OFD packet to send [19:34:10]OFD Sender: No OFD packet to send [19:34:12]accept exits with 7 [19:34:12]New connection [19:34:12]New thread 3066785124 created [19:34:12]Thread 3066928484 joined [19:34:12]Waiting for new connection... [19:34:12] Sock 7.Parse request [19:34:12]Sock 7.Check first char [19:34:12]Sock 7.First char is OK [19:34:12]request: POST /json_proto HTTP/1.0 [19:34:12]Method: POST [19:34:12]URL: /json_proto [19:34:12]Method is POST - this is cgi request [19:34:12]url: /json_proto [19:34:12]query_string will be loaded in cgi processing [19:34:12]execute_cgi json_proto POST (null) [19:34:12]execute_cgi path=json_proto method=POST [19:34:12]POST find Content-Length [19:34:12]Host: 172.17.33.3:8080 [19:34:12]Content-Length: 677 [19:34:12]Content-Type: application/json [19:34:12] [19:34:12]POST finish read [19:34:12]Found Content-Length = 677 [19:34:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.890, "sum" : 250.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:12]execute_script... [19:34:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.890, "sum" : 250.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:12]POST & json_proto [19:34:12]process_json_proto [19:34:12]json parsed OK: [19:34:12]protocol is kg_v1.0 [19:34:12]action value=close_receipt [19:34:12]process_action close_receipt [19:34:12]cmd_close_receipt [19:34:12]MH_GetDate [19:34:12]Write to MH i2c: F0 00 00 30 5F 7E [19:34:12]Write i2c OK [19:34:12]MH_I2C_Read... [19:34:12]Read from MH i2c: F0 [19:34:12]MH_I2C_Read... [19:34:12]Read from MH i2c: F0 09 00 [19:34:12]MH_I2C_Read... [19:34:12]Read from MH i2c: F0 09 00 30 5F 00 3A DE 1A 66 23 5B 8F 65 91 [19:34:12]GetLastDocTimeStamp 1713036789 [19:34:12]current date 1713036858 [19:34:12]FM_GetShiftState [19:34:12]SAM_PROTO_GetShiftState [19:34:12]wFMCommunicate request_size=4 [19:34:12]MH_SAM_APDU [19:34:12]CAPDU: 80 13 01 00 [19:34:12]Write to MH i2c: E2 08 00 31 5F 80 13 01 00 00 00 00 00 0D [19:34:12]Write i2c OK [19:34:12]MH_I2C_Read... [19:34:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:12]Read from MH i2c: E2 [19:34:12]MH_I2C_Read... [19:34:12]Read from MH i2c: E2 0E 00 [19:34:12]MH_I2C_Read... [19:34:12]Read from MH i2c: E2 0E 00 31 5F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 26 [19:34:12]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:34:12]wFMCommunicate OK [19:34:12]SAM_PROTO_GetShiftState done [19:34:12]FM_GetShiftState done [19:34:12]opened in 1712967615 [19:34:12]opened+sec_in_day 1713054015 [19:34:12]quantity*price = 25012 [19:34:12]sum+1 = 25014 [19:34:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.56 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 242 13.04.2024 19:34 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29035 ФПД: 28608104284155 1/tax-web-control/client/api/v1/ticket?date=20240413T193418&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29035&fm=28608104284155&tin=02508201610067®Number=0000138879044617&sum=25000 [19:34:13]StoreToDocumentArchive [19:34:13]shift 115 fd 29035 [19:34:13]save to /storage/0115/doc_00029035 [19:34:13]save last doc name /storage/0115/doc_00029035 to /storage/kkm_last_doc_name [19:34:13]save OK [19:34:13]Clear old archive folders... [19:34:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:34:13]tlvbuf is 011ECB00 [19:34:13]SAM_PROTO_ClearQueue [19:34:13]wFMCommunicate request_size=4 [19:34:13]MH_SAM_APDU [19:34:13]CAPDU: 80 09 00 00 [19:34:13]Write to MH i2c: E2 08 00 3E 5F 80 09 00 00 00 00 00 00 0F [19:34:13]Write i2c OK [19:34:13]MH_I2C_Read... [19:34:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:13]Read from MH i2c: E2 [19:34:13]MH_I2C_Read... [19:34:13]Read from MH i2c: E2 03 00 [19:34:13]MH_I2C_Read... [19:34:13]Read from MH i2c: E2 03 00 3E 5F 00 90 00 11 [19:34:13]RAPDU: 90 00 [19:34:13]wFMCommunicate OK [19:34:13]SAM_PROTO_ClearQueue done [19:34:13]KKMCreateOFDPacket [19:34:13]OFDProtocolAddRootSTLVToBuf [19:34:13]FM_MakeSignedData [19:34:13]FM_MakeSignedData [19:34:13]SAM_PROTO_SignData [19:34:13]wFMCommunicate request_size=4 [19:34:13]MH_SAM_APDU [19:34:13]CAPDU: 80 0D 01 02 [19:34:13]Write to MH i2c: E2 08 00 3F 5F 80 0D 01 02 00 00 00 00 17 [19:34:13]Write i2c OK [19:34:13]MH_I2C_Read... [19:34:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:13]Read from MH i2c: E2 [19:34:13]MH_I2C_Read... [19:34:13]Read from MH i2c: E2 03 00 [19:34:13]MH_I2C_Read... [19:34:13]Read from MH i2c: E2 03 00 3F 5F 00 90 00 12 [19:34:13]RAPDU: 90 00 [19:34:13]wFMCommunicate OK [19:34:13]wFMCommunicate request_size=255 [19:34:13]MH_SAM_APDU [19:34: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 32 0F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 3A DE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6B 71 00 00 35 04 06 00 1A [19:34:13]Write to MH i2c: E2 02 01 40 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 3A DE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6B 71 00 00 35 04 06 00 1A 00 00 18 [19:34:13]Write i2c OK [19:34:13]MH_I2C_Read... [19:34:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:14]Read from MH i2c: E2 [19:34:14]MH_I2C_Read... [19:34:14]Read from MH i2c: E2 03 00 [19:34:14]MH_I2C_Read... [19:34:14]Read from MH i2c: E2 03 00 40 5F 00 90 00 13 [19:34:14]RAPDU: 90 00 [19:34:14]wFMCommunicate OK [19:34:14]wFMCommunicate request_size=10 [19:34:14]MH_SAM_APDU [19:34:14]CAPDU: 80 0D 02 02 05 04 D7 E4 BF FB [19:34:14]Write to MH i2c: E2 0D 00 41 5F 80 0D 02 02 05 00 04 D7 E4 BF FB 00 00 9D [19:34:14]Write i2c OK [19:34:14]MH_I2C_Read... [19:34:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:14]Read from MH i2c: E2 [19:34:14]MH_I2C_Read... [19:34:14]Read from MH i2c: E2 03 00 [19:34:14]MH_I2C_Read... [19:34:14]Read from MH i2c: E2 03 00 41 5F 00 90 00 14 [19:34:14]RAPDU: 90 00 [19:34:14]wFMCommunicate OK [19:34:14]wFMCommunicate request_size=4 [19:34:14]MH_SAM_APDU [19:34:14]CAPDU: 80 0D 03 02 [19:34:14]Write to MH i2c: E2 08 00 42 5F 80 0D 03 02 00 00 00 00 1C [19:34:14]Write i2c OK [19:34:14]MH_I2C_Read... [19:34:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:14]Read from MH i2c: E2 [19:34:14]MH_I2C_Read... [19:34:14]Read from MH i2c: E2 0B 00 [19:34:14]MH_I2C_Read... [19:34:14]Read from MH i2c: E2 0B 00 42 5F 00 DE E6 0E 03 97 34 71 E7 90 00 15 [19:34:14]RAPDU: DE E6 0E 03 97 34 71 E7 90 00 [19:34:14]wFMCommunicate OK [19:34:14]SAM_PROTO_SignData done [19:34:14]FM_MakeSignedData done [19:34:14]CreateOFDProtocolMessage [19:34:14]wFMCommunicate request_size=4 [19:34:14]MH_SAM_APDU [19:34:14]CAPDU: 80 11 00 00 [19:34:14]Write to MH i2c: E2 08 00 43 5F 80 11 00 00 00 00 00 00 1C [19:34:14]Write i2c OK [19:34:14]MH_I2C_Read... [19:34:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:14]Read from MH i2c: E2 [19:34:14]MH_I2C_Read... [19:34:14]Read from MH i2c: E2 17 00 [19:34:14]MH_I2C_Read... [19:34:14]Read from MH i2c: E2 17 00 43 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6B [19:34:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:34:14]wFMCommunicate OK [19:34:14]CreateOFDProtocolMessage done [19:34:14]OFDSenderStorePacket 29035 [19:34:14]StoreOFDPacket docnum=29035 [19:34:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4D 03 07 01 30 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 3A DE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6B 71 00 00 35 04 06 00 1A 04 D7 E4 BF FB DE E6 0E 03 97 34 71 E7 [19:34:14]CheckFolder [19:34:14]dirname=/storage/ofd_packets [19:34:14]CheckFolder done [19:34:14]ProducePacketName [19:34:14]name=ofd_packets/00029035 [19:34:14]NVStorageSaveData ofd_packets/00029035 [19:34:14]File name is /storage/ofd_packets/00029035 [19:34:14]Write 301 bytes [19:34:14]NVStorageSaveData done [19:34:14]OFDSenderStorePacket done [19:34:14]KKMCreateOFDPacket done [19:34:14]NVStorageSaveData kkm_last_timestamp [19:34:14]File name is /storage/kkm_last_timestamp [19:34:14]Write 4 bytes [19:34:14]NVStorageSaveData done [19:34:14]ExternCall_PrintAddStr [19:34:14]wPrintStart [19:34:14]Write to MH i2c: 01 00 00 44 5F A3 [19:34:14]OFD Sender: Processing packet 29035 [packets to send 8, broken 7] [19:34:14]ProducePacketName [19:34:14]name=ofd_packets/00029035 [19:34:14]OFD Sender: To server: pG, [19:34:14]CommunicateWithHost lk.salyk.kg:30040 [19:34:14]ConnectInit lk.salyk.kg [19:34:14]Write i2c OK [19:34:14]MH_I2C_Read... [19:34:14]Read from MH i2c: 01 [19:34:14]MH_I2C_Read... [19:34:14]Read from MH i2c: 01 07 00 [19:34:14]MH_I2C_Read... [19:34:14]Read from MH i2c: 01 07 00 44 5F 00 00 00 00 00 FF 0F B8 [19:34:14]RasterBufferAndPrint [19:34:14]line Счет N : (1)347403 [19:34:14]line ИНН: 02508201610067 [19:34:14]line Контрольно-Кассовый Чек [19:34:14]line ПРОДАЖА [19:34:14]line ТРК (МРК, ГНК) : 13 [19:34:14]line Товар: 2710124130 [19:34:14]line Аи-92-К-5 [19:34:14]line 3.890 * 64.30 [19:34:14]line = 250.13 [19:34:14]line НДС 12% НСП 1% [19:34:14]line > о реализуемом товаре [19:34:14]line ОКРУГЛЕНИЕ: -0.13 [19:34:14]line ИТОГО: 250.00 [19:34:14]line Внесено: 250.00 [19:34:14]line СДАЧА: 0.00 [19:34:14]line НСП 1% : 2.21 [19:34:14]line НДС 12% : 26.56 [19:34:14]line Наличными: 250.00 [19:34:14]line Безнал.: 0.00 [19:34:14]line Место: АЗС № 108 "Партнер Нефть" [19:34:14]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:34:14]line СНО: Общий режим [19:34:14]line Чек 242 13.04.2024 19:34 [19:34:14]line Смена: 115 ФФД: 1.0 [19:34:14]line ЗНМ: 0300000027 [19:34:14]line РНМ: 0000138879044617 [19:34:14]line Версия ККМ: 001 [19:34:14]line ФМ: 0000000000963154 [19:34:14]line ФД: 29035 [19:34:14]line ФПД: 28608104284155 [19:34:14]line 1/tax-web-control/client/api/v1/ticket?date=20240413T193418&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29035&fm=28608104284155&tin=02508201610067®Number=0000138879044617&sum=25000 [19:34:14]Connected sock=10 [19:34:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 4D 03 07 01 30 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0F 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B5 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 3A DE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6B 71 00 00 35 04 06 00 1A 04 D7 E4 BF FB DE E6 0E 03 97 34 71 E7 [19:34:14]written 0, free lines is 4095 [19:34:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 D8 D1 47 00 6A 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 31 35 34 10 04 04 00 6B 71 00 00 F4 03 04 00 E0 88 1A 66 B6 04 01 00 00 45 34 80 81 7B D0 D0 11 [19:34:14]CommunicateWithHost err = 0 [19:34:14]CheckOFDResponse [19:34:14]1017 (14) - 77093643461234 [19:34:14]1041 (16) - 0000000000963154 [19:34:14]1040 (4) - 29035 [19:34:14]1012 (4) - 13.04.2024 13:30 [19:34:14]1206 (1) - 0 [19:34:14]OFD Sender: Remove packet 29035 [19:34:14]ProducePacketName [19:34:14]name=ofd_packets/00029035 [19:34:14]NVStorageDeleteData [19:34:15]Write to MH i2c: 01 00 00 6E 5F CD [19:34:15]Write i2c OK [19:34:15]MH_I2C_Read... [19:34:15]Read from MH i2c: 01 [19:34:15]MH_I2C_Read... [19:34:15]Read from MH i2c: 01 07 00 [19:34:15]MH_I2C_Read... [19:34:15]Read from MH i2c: 01 07 00 6E 5F 00 00 00 00 00 C8 0C A8 [19:34:15]RasterBufferAndPrint [19:34:15]line [19:34:15]line [19:34:15]line [19:34:15]line [19:34:15]line [19:34:15]written 0, free lines is 3276 [19:34:15]MH_Cut [19:34:15]Write to MH i2c: D1 01 00 75 5F 01 A6 [19:34:15]Write i2c OK [19:34:15]MH_I2C_Read... [19:34:15]Read from MH i2c: D1 [19:34:15]MH_I2C_Read... [19:34:15]Read from MH i2c: D1 01 00 [19:34:15]MH_I2C_Read... [19:34:15]Read from MH i2c: D1 01 00 75 5F 00 A5 [19:34:15]Write to MH i2c: 01 00 00 76 5F D5 [19:34:15]Write i2c OK [19:34:15]MH_I2C_Read... [19:34:15]OFD Sender: No OFD packet to send [19:34:15]*** Cut start [19:34:15]*** Partial cut [19:34:15]*** CUTSNS_PIN = 1 [19:34:15]*** CUTSNS_PIN = 0 [19:34:16]*** Brake cut motor [19:34:16]Read from MH i2c: 01 [19:34:16]MH_I2C_Read... [19:34:16]*** Stop cut motor [19:34:16]*** Cut end [19:34:16]Read from MH i2c: 01 07 00 [19:34:16]MH_I2C_Read... [19:34:16]Read from MH i2c: 01 07 00 76 5F 00 00 00 00 00 FF 0F EA [19:34:16]process_action close_receipt done [19:34:16]requested_data is exist [19:34:16]produce_requested_data [19:34:16]requested_item fm.sn is exist - process it [19:34:16]wFMCommunicate request_size=4 [19:34:16]MH_SAM_APDU [19:34:16]CAPDU: 80 11 00 00 [19:34:16]Write to MH i2c: E2 08 00 77 5F 80 11 00 00 00 00 00 00 50 [19:34:16]Write i2c OK [19:34:16]MH_I2C_Read... [19:34:16]Read from MH i2c: E2 [19:34:16]MH_I2C_Read... [19:34:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:16]Read from MH i2c: E2 17 00 [19:34:16]MH_I2C_Read... [19:34:16]Read from MH i2c: E2 17 00 77 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9F [19:34:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:34:16]wFMCommunicate OK [19:34:16]requested_item fd.num is exist - process it [19:34:16]SAM_PROTO_GetFieldsCounters [19:34:16]wFMCommunicate request_size=4 [19:34:16]MH_SAM_APDU [19:34:16]CAPDU: 80 13 00 00 [19:34:16]Write to MH i2c: E2 08 00 78 5F 80 13 00 00 00 00 00 00 53 [19:34:16]Write i2c OK [19:34:16]MH_I2C_Read... [19:34:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:16]Read from MH i2c: E2 [19:34:16]MH_I2C_Read... [19:34:16]Read from MH i2c: E2 62 00 [19:34:16]MH_I2C_Read... [19:34:16]Read from MH i2c: E2 62 00 78 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6B 71 00 00 0E 04 04 00 73 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 B6 [19:34:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6B 71 00 00 0E 04 04 00 73 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 [19:34:16]wFMCommunicate OK [19:34:16]SAM_PROTO_GetFieldsCounters done [19:34:16]requested_item shift.num is exist - process it [19:34:16]requested_item shift.opened is exist - process it [19:34:16]req_shift_opened [19:34:16]FM_GetShiftState [19:34:16]SAM_PROTO_GetShiftState [19:34:16]wFMCommunicate request_size=4 [19:34:16]MH_SAM_APDU [19:34:16]CAPDU: 80 13 01 00 [19:34:16]Write to MH i2c: E2 08 00 79 5F 80 13 01 00 00 00 00 00 55 [19:34:16]Write i2c OK [19:34:16]MH_I2C_Read... [19:34:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:16]Read from MH i2c: E2 [19:34:16]MH_I2C_Read... [19:34:16]Read from MH i2c: E2 0E 00 [19:34:16]MH_I2C_Read... [19:34:16]Read from MH i2c: E2 0E 00 79 5F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 6E [19:34:16]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:34:16]wFMCommunicate OK [19:34:16]SAM_PROTO_GetShiftState done [19:34:16]FM_GetShiftState done [19:34:16]req_shift_opened done [19:34:16]requested_item shift.open_date is exist - process it [19:34:16]req_shift_open_date [19:34:16]req_shift_open_date done [19:34:16]produce_requested_data done [19:34:16]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29035,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [19:34:16]process_action_free close_receipt [19:34:16]json_value_free [19:34:16]json_value_free done [19:34:16]process_json_proto returns [19:34:16]Send response to host [19:34:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29035,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [19:34:16]free response buf [19:34:16]execute_script done [19:34:16]execute_script returns [19:34:16]free content buf [19:34:16]Sock 7.Close socket [19:34:16]Sock 7.Thread stoped [19:34:20]OFD Sender: No OFD packet to send [19:34:25]OFD Sender: No OFD packet to send [19:34:25]accept exits with 9 [19:34:25]New connection [19:34:25]New thread 3066928484 created [19:34:25]Thread 3066785124 joined [19:34:25]Waiting for new connection... [19:34:25] Sock 9.Parse request [19:34:25]Sock 9.Check first char [19:34:25]Sock 9.First char is OK [19:34:25]request: POST /json_proto HTTP/1.0 [19:34:25]Method: POST [19:34:25]URL: /json_proto [19:34:25]Method is POST - this is cgi request [19:34:25]url: /json_proto [19:34:25]query_string will be loaded in cgi processing [19:34:25]execute_cgi json_proto POST (null) [19:34:25]execute_cgi path=json_proto method=POST [19:34:25]POST find Content-Length [19:34:25]Host: 172.17.33.3:8080 [19:34:25]Content-Length: 808 [19:34:25]Content-Type: application/json [19:34:25] [19:34:25]POST finish read [19:34:25]Found Content-Length = 808 [19:34:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347398", "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" : 72.40, "quantity" : 393.860, "sum" : 28515.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 28515.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:25]execute_script... [19:34:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347398", "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" : 72.40, "quantity" : 393.860, "sum" : 28515.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 28515.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:25]POST & json_proto [19:34:25]process_json_proto [19:34:25]json parsed OK: [19:34:25]protocol is kg_v1.0 [19:34:25]action value=close_receipt [19:34:25]process_action close_receipt [19:34:25]cmd_close_receipt [19:34:25]MH_GetDate [19:34:25]Write to MH i2c: F0 00 00 7A 5F C8 [19:34:25]Write i2c OK [19:34:25]MH_I2C_Read... [19:34:25]Read from MH i2c: F0 [19:34:25]MH_I2C_Read... [19:34:25]Read from MH i2c: F0 09 00 [19:34:25]MH_I2C_Read... [19:34:25]Read from MH i2c: F0 09 00 7A 5F 00 48 DE 1A 66 23 5B 8F 65 E9 [19:34:25]GetLastDocTimeStamp 1713036858 [19:34:25]current date 1713036872 [19:34:25]FM_GetShiftState [19:34:25]SAM_PROTO_GetShiftState [19:34:25]wFMCommunicate request_size=4 [19:34:25]MH_SAM_APDU [19:34:25]CAPDU: 80 13 01 00 [19:34:25]Write to MH i2c: E2 08 00 7B 5F 80 13 01 00 00 00 00 00 57 [19:34:25]Write i2c OK [19:34:25]MH_I2C_Read... [19:34:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:25]Read from MH i2c: E2 [19:34:25]MH_I2C_Read... [19:34:25]Read from MH i2c: E2 0E 00 [19:34:25]MH_I2C_Read... [19:34:25]Read from MH i2c: E2 0E 00 7B 5F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 70 [19:34:25]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:34:25]wFMCommunicate OK [19:34:25]SAM_PROTO_GetShiftState done [19:34:25]FM_GetShiftState done [19:34:25]opened in 1712967615 [19:34:25]opened+sec_in_day 1713054015 [19:34:25]quantity*price = 2851546 [19:34:25]sum+1 = 2851547 [19:34:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 28515.46 НСП 1% : 252.35 НДС 12% : 3028.19 Наличными: 0.00 Безнал.: 28515.46 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 243 13.04.2024 19:34 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29036 ФПД: 273964332948732 1/tax-web-control/client/api/v1/ticket?date=20240413T193432&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29036&fm=273964332948732&tin=02508201610067®Number=0000138879044617&sum=2851546 [19:34:26]StoreToDocumentArchive [19:34:26]shift 115 fd 29036 [19:34:26]save to /storage/0115/doc_00029036 [19:34:26]save last doc name /storage/0115/doc_00029036 to /storage/kkm_last_doc_name [19:34:26]save OK [19:34:26]Clear old archive folders... [19:34:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:34:26]tlvbuf is 011EAEB0 [19:34:26]SAM_PROTO_ClearQueue [19:34:26]wFMCommunicate request_size=4 [19:34:26]MH_SAM_APDU [19:34:26]CAPDU: 80 09 00 00 [19:34:26]Write to MH i2c: E2 08 00 88 5F 80 09 00 00 00 00 00 00 59 [19:34:26]Write i2c OK [19:34:26]MH_I2C_Read... [19:34:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:27]Read from MH i2c: E2 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: E2 03 00 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: E2 03 00 88 5F 00 90 00 5B [19:34:27]RAPDU: 90 00 [19:34:27]wFMCommunicate OK [19:34:27]SAM_PROTO_ClearQueue done [19:34:27]KKMCreateOFDPacket [19:34:27]OFDProtocolAddRootSTLVToBuf [19:34:27]FM_MakeSignedData [19:34:27]FM_MakeSignedData [19:34:27]SAM_PROTO_SignData [19:34:27]wFMCommunicate request_size=4 [19:34:27]MH_SAM_APDU [19:34:27]CAPDU: 80 0D 01 02 [19:34:27]Write to MH i2c: E2 08 00 89 5F 80 0D 01 02 00 00 00 00 61 [19:34:27]Write i2c OK [19:34:27]MH_I2C_Read... [19:34:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:27]Read from MH i2c: E2 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: E2 03 00 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: E2 03 00 89 5F 00 90 00 5C [19:34:27]RAPDU: 90 00 [19:34:27]wFMCommunicate OK [19:34:27]wFMCommunicate request_size=255 [19:34:27]MH_SAM_APDU [19:34:27]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 84 02 06 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 DA 82 2B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DA 82 2B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 62 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 9E 04 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DA 82 2B 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 48 DE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6C 71 00 00 35 04 06 00 F9 2B 4A BF [19:34:27]Write to MH i2c: E2 02 01 8A 5F 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 84 02 06 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 DA 82 2B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DA 82 2B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 62 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 9E 04 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DA 82 2B 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 48 DE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6C 71 00 00 35 04 06 00 F9 2B 4A BF 00 00 F0 [19:34:27]Write i2c OK [19:34:27]MH_I2C_Read... [19:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:27]Read from MH i2c: E2 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: E2 03 00 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: E2 03 00 8A 5F 00 90 00 5D [19:34:27]RAPDU: 90 00 [19:34:27]wFMCommunicate OK [19:34:27]wFMCommunicate request_size=7 [19:34:27]MH_SAM_APDU [19:34:27]CAPDU: 80 0D 02 02 02 1C FC [19:34:27]Write to MH i2c: E2 0A 00 8B 5F 80 0D 02 02 02 00 1C FC 00 00 80 [19:34:27]Write i2c OK [19:34:27]MH_I2C_Read... [19:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:27]Read from MH i2c: E2 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: E2 03 00 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: E2 03 00 8B 5F 00 90 00 5E [19:34:27]RAPDU: 90 00 [19:34:27]wFMCommunicate OK [19:34:27]wFMCommunicate request_size=4 [19:34:27]MH_SAM_APDU [19:34:27]CAPDU: 80 0D 03 02 [19:34:27]Write to MH i2c: E2 08 00 8C 5F 80 0D 03 02 00 00 00 00 66 [19:34:27]Write i2c OK [19:34:27]MH_I2C_Read... [19:34:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:27]Read from MH i2c: E2 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: E2 0B 00 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: E2 0B 00 8C 5F 00 74 AD E5 1A E0 28 75 18 90 00 1C [19:34:27]RAPDU: 74 AD E5 1A E0 28 75 18 90 00 [19:34:27]wFMCommunicate OK [19:34:27]SAM_PROTO_SignData done [19:34:27]FM_MakeSignedData done [19:34:27]CreateOFDProtocolMessage [19:34:27]wFMCommunicate request_size=4 [19:34:27]MH_SAM_APDU [19:34:27]CAPDU: 80 11 00 00 [19:34:27]Write to MH i2c: E2 08 00 8D 5F 80 11 00 00 00 00 00 00 66 [19:34:27]Write i2c OK [19:34:27]MH_I2C_Read... [19:34:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:27]Read from MH i2c: E2 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: E2 17 00 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: E2 17 00 8D 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B5 [19:34:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:34:27]wFMCommunicate OK [19:34:27]CreateOFDProtocolMessage done [19:34:27]OFDSenderStorePacket 29036 [19:34:27]StoreOFDPacket docnum=29036 [19:34:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 B6 08 04 01 C0 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 84 02 06 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 DA 82 2B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DA 82 2B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 62 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 9E 04 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DA 82 2B 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 48 DE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6C 71 00 00 35 04 06 00 F9 2B 4A BF 1C FC 74 AD E5 1A E0 28 75 18 [19:34:27]CheckFolder [19:34:27]dirname=/storage/ofd_packets [19:34:27]CheckFolder done [19:34:27]ProducePacketName [19:34:27]name=ofd_packets/00029036 [19:34:27]NVStorageSaveData ofd_packets/00029036 [19:34:27]File name is /storage/ofd_packets/00029036 [19:34:27]Write 298 bytes [19:34:27]NVStorageSaveData done [19:34:27]OFDSenderStorePacket done [19:34:27]KKMCreateOFDPacket done [19:34:27]NVStorageSaveData kkm_last_timestamp [19:34:27]File name is /storage/kkm_last_timestamp [19:34:27]Write 4 bytes [19:34:27]NVStorageSaveData done [19:34:27]ExternCall_PrintAddStr [19:34:27]wPrintStart [19:34:27]Write to MH i2c: 01 00 00 8E 5F ED [19:34:27]Write i2c OK [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: 01 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: 01 07 00 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: 01 07 00 8E 5F 00 00 00 00 00 FF 0F 02 [19:34:27]RasterBufferAndPrint [19:34:27]line Счет N : (1)347398 [19:34:27]line ИНН: 02508201610067 [19:34:27]line Контрольно-Кассовый Чек [19:34:27]line ПРОДАЖА [19:34:27]line ТРК (МРК, ГНК) : 51 [19:34:27]line Товар: 2710194210 [19:34:27]line ДТ-К-5 [19:34:27]line 393.860 * 72.40 [19:34:27]line = 28515.46 [19:34:27]line НДС 12% НСП 1% [19:34:27]line > о реализуемом товаре [19:34:27]line ИТОГО: 28515.46 [19:34:27]line НСП 1% : 252.35 [19:34:27]line НДС 12% : 3028.19 [19:34:27]line Наличными: 0.00 [19:34:27]line Безнал.: 28515.46 [19:34:27]line Место: АЗС № 108 "Партнер Нефть" [19:34:27]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:34:27]line СНО: Общий режим [19:34:27]line Чек 243 13.04.2024 19:34 [19:34:27]line Смена: 115 ФФД: 1.0 [19:34:27]line ЗНМ: 0300000027 [19:34:27]line РНМ: 0000138879044617 [19:34:27]line Версия ККМ: 001 [19:34:27]line Платежная система: О! деньги [19:34:27]line ФМ: 0000000000963154 [19:34:27]line ФД: 29036 [19:34:27]line ФПД: 273964332948732 [19:34:27]line 1/tax-web-control/client/api/v1/ticket?date=20240413T193432&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29036&fm=273964332948732&tin=02508201610067®Number=0000138879044617&sum=2851546 [19:34:27]OFD Sender: Processing packet 29036 [packets to send 8, broken 7] [19:34:27]ProducePacketName [19:34:27]name=ofd_packets/00029036 [19:34:27]OFD Sender: To server: pG, [19:34:27]CommunicateWithHost lk.salyk.kg:30040 [19:34:27]ConnectInit lk.salyk.kg [19:34:27]written 0, free lines is 4095 [19:34:27]Connected sock=10 [19:34:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 B6 08 04 01 C0 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 84 02 06 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 DA 82 2B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DA 82 2B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 62 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 9E 04 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DA 82 2B 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 48 DE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6C 71 00 00 35 04 06 00 F9 2B 4A BF 1C FC 74 AD E5 1A E0 28 75 18 [19:34:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6A 11 47 00 49 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 31 35 34 10 04 04 00 6C 71 00 00 F4 03 04 00 EE 88 1A 66 B6 04 01 00 00 CE 68 40 F3 BB 39 2A C7 [19:34:28]CommunicateWithHost err = 0 [19:34:28]CheckOFDResponse [19:34:28]1017 (14) - 77093643461234 [19:34:28]1041 (16) - 0000000000963154 [19:34:28]1040 (4) - 29036 [19:34:28]1012 (4) - 13.04.2024 13:30 [19:34:28]1206 (1) - 0 [19:34:28]OFD Sender: Remove packet 29036 [19:34:28]ProducePacketName [19:34:28]name=ofd_packets/00029036 [19:34:28]NVStorageDeleteData [19:34:28]Write to MH i2c: 01 00 00 B7 5F 16 [19:34:28]Write i2c OK [19:34:28]MH_I2C_Read... [19:34:28]Read from MH i2c: 01 [19:34:28]MH_I2C_Read... [19:34:28]Read from MH i2c: 01 07 00 [19:34:28]MH_I2C_Read... [19:34:28]Read from MH i2c: 01 07 00 B7 5F 00 00 00 00 00 F0 0C 19 [19:34:28]RasterBufferAndPrint [19:34:28]line [19:34:28]line [19:34:28]line [19:34:28]line [19:34:28]line [19:34:28]written 0, free lines is 3319 [19:34:28]MH_Cut [19:34:28]Write to MH i2c: D1 01 00 BE 5F 01 EF [19:34:28]Write i2c OK [19:34:28]MH_I2C_Read... [19:34:28]Read from MH i2c: D1 [19:34:28]MH_I2C_Read... [19:34:28]Read from MH i2c: D1 01 00 [19:34:28]MH_I2C_Read... [19:34:28]Read from MH i2c: D1 01 00 BE 5F 00 EE [19:34:28]Write to MH i2c: 01 00 00 BF 5F 1E [19:34:28]Write i2c OK [19:34:28]MH_I2C_Read... [19:34:28]OFD Sender: No OFD packet to send [19:34:29]*** Cut start [19:34:29]*** Partial cut [19:34:29]*** CUTSNS_PIN = 1 [19:34:29]*** CUTSNS_PIN = 0 [19:34:29]*** Brake cut motor [19:34:29]Read from MH i2c: 01 [19:34:29]MH_I2C_Read... [19:34:29]*** Stop cut motor [19:34:29]*** Cut end [19:34:29]Read from MH i2c: 01 07 00 [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: 01 07 00 BF 5F 00 00 00 00 00 FF 0F 33 [19:34:29]process_action close_receipt done [19:34:29]requested_data is exist [19:34:29]produce_requested_data [19:34:29]requested_item fm.sn is exist - process it [19:34:29]wFMCommunicate request_size=4 [19:34:29]MH_SAM_APDU [19:34:29]CAPDU: 80 11 00 00 [19:34:29]Write to MH i2c: E2 08 00 C0 5F 80 11 00 00 00 00 00 00 99 [19:34:29]Write i2c OK [19:34:29]MH_I2C_Read... [19:34:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:29]Read from MH i2c: E2 [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: E2 17 00 [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: E2 17 00 C0 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E8 [19:34:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:34:29]wFMCommunicate OK [19:34:29]requested_item fd.num is exist - process it [19:34:29]SAM_PROTO_GetFieldsCounters [19:34:29]wFMCommunicate request_size=4 [19:34:29]MH_SAM_APDU [19:34:29]CAPDU: 80 13 00 00 [19:34:29]Write to MH i2c: E2 08 00 C1 5F 80 13 00 00 00 00 00 00 9C [19:34:29]Write i2c OK [19:34:29]MH_I2C_Read... [19:34:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:29]Read from MH i2c: E2 [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: E2 62 00 [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: E2 62 00 C1 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6C 71 00 00 0E 04 04 00 73 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 03 [19:34:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6C 71 00 00 0E 04 04 00 73 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 [19:34:29]wFMCommunicate OK [19:34:29]SAM_PROTO_GetFieldsCounters done [19:34:29]requested_item shift.num is exist - process it [19:34:29]requested_item shift.opened is exist - process it [19:34:29]req_shift_opened [19:34:29]FM_GetShiftState [19:34:29]SAM_PROTO_GetShiftState [19:34:29]wFMCommunicate request_size=4 [19:34:29]MH_SAM_APDU [19:34:29]CAPDU: 80 13 01 00 [19:34:29]Write to MH i2c: E2 08 00 C2 5F 80 13 01 00 00 00 00 00 9E [19:34:29]Write i2c OK [19:34:29]MH_I2C_Read... [19:34:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:29]Read from MH i2c: E2 [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: E2 0E 00 [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: E2 0E 00 C2 5F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 B7 [19:34:29]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:34:29]wFMCommunicate OK [19:34:29]SAM_PROTO_GetShiftState done [19:34:29]FM_GetShiftState done [19:34:29]req_shift_opened done [19:34:29]requested_item shift.open_date is exist - process it [19:34:29]req_shift_open_date [19:34:29]req_shift_open_date done [19:34:29]produce_requested_data done [19:34:29]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29036,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [19:34:29]process_action_free close_receipt [19:34:29]json_value_free [19:34:29]json_value_free done [19:34:29]process_json_proto returns [19:34:29]Send response to host [19:34:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29036,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [19:34:29]free response buf [19:34:29]execute_script done [19:34:29]execute_script returns [19:34:29]free content buf [19:34:29]Sock 9.Close socket [19:34:29]Sock 9.Thread stoped [19:34:33]OFD Sender: No OFD packet to send [19:34:38]OFD Sender: No OFD packet to send [19:34:43]OFD Sender: No OFD packet to send [19:34:48]OFD Sender: No OFD packet to send [19:34:53]OFD Sender: No OFD packet to send [19:34:58]OFD Sender: No OFD packet to send [19:35:03]OFD Sender: No OFD packet to send [19:35:08]OFD Sender: No OFD packet to send [19:35:13]OFD Sender: No OFD packet to send [19:35:18]OFD Sender: No OFD packet to send [19:35:23]OFD Sender: No OFD packet to send [19:35:28]OFD Sender: No OFD packet to send [19:35:33]OFD Sender: No OFD packet to send [19:35:38]OFD Sender: No OFD packet to send [19:35:43]OFD Sender: No OFD packet to send [19:35:48]OFD Sender: No OFD packet to send [19:35:53]OFD Sender: No OFD packet to send [19:35:58]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:08]OFD Sender: No OFD packet to send [19:36:13]OFD Sender: No OFD packet to send [19:36:18]OFD Sender: No OFD packet to send [19:36:23]OFD Sender: No OFD packet to send [19:36:28]OFD Sender: No OFD packet to send [19:36:33]OFD Sender: No OFD packet to send [19:36:38]OFD Sender: No OFD packet to send [19:36:43]OFD Sender: No OFD packet to send [19:36:48]OFD Sender: No OFD packet to send [19:36:53]OFD Sender: No OFD packet to send [19:36:58]OFD Sender: No OFD packet to send [19:37:03]OFD Sender: No OFD packet to send [19:37:08]OFD Sender: No OFD packet to send [19:37:13]OFD Sender: No OFD packet to send [19:37:18]OFD Sender: No OFD packet to send [19:37:23]OFD Sender: No OFD packet to send [19:37:28]OFD Sender: No OFD packet to send [19:37:33]OFD Sender: No OFD packet to send [19:37:38]OFD Sender: No OFD packet to send [19:37:43]OFD Sender: No OFD packet to send [19:37:48]OFD Sender: No OFD packet to send [19:37:53]OFD Sender: No OFD packet to send [19:37:58]OFD Sender: No OFD packet to send [19:38:03]OFD Sender: No OFD packet to send [19:38:08]OFD Sender: No OFD packet to send [19:38:13]OFD Sender: No OFD packet to send [19:38:18]OFD Sender: No OFD packet to send [19:38:23]OFD Sender: No OFD packet to send [19:38:28]OFD Sender: No OFD packet to send [19:38:33]OFD Sender: No OFD packet to send [19:38:38]OFD Sender: No OFD packet to send [19:38:43]OFD Sender: No OFD packet to send [19:38:48]OFD Sender: No OFD packet to send [19:38:53]OFD Sender: No OFD packet to send [19:38:58]OFD Sender: No OFD packet to send [19:39:03]OFD Sender: No OFD packet to send [19:39:08]OFD Sender: No OFD packet to send [19:39:13]OFD Sender: No OFD packet to send [19:39:18]OFD Sender: No OFD packet to send [19:39:23]OFD Sender: No OFD packet to send [19:39:28]OFD Sender: No OFD packet to send [19:39:33]OFD Sender: No OFD packet to send [19:39:38]OFD Sender: No OFD packet to send [19:39:43]OFD Sender: No OFD packet to send [19:39:48]OFD Sender: No OFD packet to send [19:39:53]OFD Sender: No OFD packet to send [19:39:58]OFD Sender: No OFD packet to send [19:40:03]OFD Sender: No OFD packet to send [19:40:08]OFD Sender: No OFD packet to send [19:40:13]OFD Sender: No OFD packet to send [19:40:18]OFD Sender: No OFD packet to send [19:40:23]OFD Sender: No OFD packet to send [19:40:28]OFD Sender: No OFD packet to send [19:40:33]OFD Sender: No OFD packet to send [19:40:38]OFD Sender: No OFD packet to send [19:40:43]OFD Sender: No OFD packet to send [19:40:48]OFD Sender: No OFD packet to send [19:40:53]OFD Sender: No OFD packet to send [19:40:58]OFD Sender: No OFD packet to send [19:41:03]OFD Sender: No OFD packet to send [19:41:08]OFD Sender: No OFD packet to send [19:41:13]OFD Sender: No OFD packet to send [19:41:18]OFD Sender: No OFD packet to send [19:41:23]OFD Sender: No OFD packet to send [19:41:28]OFD Sender: No OFD packet to send [19:41:33]OFD Sender: No OFD packet to send [19:41:38]OFD Sender: No OFD packet to send [19:41:43]OFD Sender: No OFD packet to send [19:41:48]OFD Sender: No OFD packet to send [19:41:53]OFD Sender: No OFD packet to send [19:41:58]OFD Sender: No OFD packet to send [19:42:03]OFD Sender: No OFD packet to send [19:42:08]OFD Sender: No OFD packet to send [19:42:13]OFD Sender: No OFD packet to send [19:42:18]OFD Sender: No OFD packet to send [19:42:23]OFD Sender: No OFD packet to send [19:42:28]OFD Sender: No OFD packet to send [19:42:33]OFD Sender: No OFD packet to send [19:42:38]OFD Sender: No OFD packet to send [19:42:43]OFD Sender: No OFD packet to send [19:42:48]OFD Sender: No OFD packet to send [19:42:53]OFD Sender: No OFD packet to send [19:42: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:09]OFD Sender: No OFD packet to send [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:19]OFD Sender: No OFD packet to send [19:48:24]OFD Sender: No OFD packet to send [19:48:29]OFD Sender: No OFD packet to send [19:48:34]OFD Sender: No OFD packet to send [19:48:39]OFD Sender: No OFD packet to send [19:48:44]OFD Sender: No OFD packet to send [19:48:49]OFD Sender: No OFD packet to send [19:48:54]OFD Sender: No OFD packet to send [19:48:59]OFD Sender: No OFD packet to send [19:49:04]OFD Sender: No OFD packet to send [19:49:09]OFD Sender: No OFD packet to send [19:49:14]OFD Sender: No OFD packet to send [19:49:16]accept exits with 7 [19:49:16]New connection [19:49:16]New thread 3066785124 created [19:49:16]Thread 3066928484 joined [19:49:16]Waiting for new connection... [19:49:16] Sock 7.Parse request [19:49:16]Sock 7.Check first char [19:49:16]Sock 7.First char is OK [19:49:16]request: POST /json_proto HTTP/1.0 [19:49:16]Method: POST [19:49:16]URL: /json_proto [19:49:16]Method is POST - this is cgi request [19:49:16]url: /json_proto [19:49:16]query_string will be loaded in cgi processing [19:49:16]execute_cgi json_proto POST (null) [19:49:16]execute_cgi path=json_proto method=POST [19:49:16]POST find Content-Length [19:49:16]Host: 172.17.33.3:8080 [19:49:16]Content-Length: 681 [19:49:16]Content-Type: application/json [19:49:16] [19:49:16]POST finish read [19:49:16]Found Content-Length = 681 [19:49:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 24.320, "sum" : 800.13, "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:49:16]execute_script... [19:49: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)347404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 24.320, "sum" : 800.13, "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:49:16]POST & json_proto [19:49:16]process_json_proto [19:49:16]json parsed OK: [19:49:16]protocol is kg_v1.0 [19:49:16]action value=close_receipt [19:49:16]process_action close_receipt [19:49:16]cmd_close_receipt [19:49:16]MH_GetDate [19:49:16]Write to MH i2c: F0 00 00 C3 5F 11 [19:49:16]Write i2c OK [19:49:16]MH_I2C_Read... [19:49:16]Read from MH i2c: F0 [19:49:16]MH_I2C_Read... [19:49:16]Read from MH i2c: F0 09 00 [19:49:16]MH_I2C_Read... [19:49:16]Read from MH i2c: F0 09 00 C3 5F 00 C2 E1 1A 66 23 5B 8F 65 AF [19:49:16]GetLastDocTimeStamp 1713036872 [19:49:16]current date 1713037762 [19:49:16]FM_GetShiftState [19:49:16]SAM_PROTO_GetShiftState [19:49:16]wFMCommunicate request_size=4 [19:49:16]MH_SAM_APDU [19:49:16]CAPDU: 80 13 01 00 [19:49:16]Write to MH i2c: E2 08 00 C4 5F 80 13 01 00 00 00 00 00 A0 [19:49:16]Write i2c OK [19:49:16]MH_I2C_Read... [19:49:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:16]Read from MH i2c: E2 [19:49:16]MH_I2C_Read... [19:49:16]Read from MH i2c: E2 0E 00 [19:49:16]MH_I2C_Read... [19:49:16]Read from MH i2c: E2 0E 00 C4 5F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 B9 [19:49:16]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:49:16]wFMCommunicate OK [19:49:16]SAM_PROTO_GetShiftState done [19:49:16]FM_GetShiftState done [19:49:16]opened in 1712967615 [19:49:16]opened+sec_in_day 1713054015 [19:49:16]quantity*price = 80012 [19:49:16]sum+1 = 80014 [19:49:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 244 13.04.2024 19:49 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29037 ФПД: 109621941866990 1/tax-web-control/client/api/v1/ticket?date=20240413T194922&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29037&fm=109621941866990&tin=02508201610067®Number=0000138879044617&sum=80000 [19:49:17]StoreToDocumentArchive [19:49:17]shift 115 fd 29037 [19:49:17]save to /storage/0115/doc_00029037 [19:49:17]save last doc name /storage/0115/doc_00029037 to /storage/kkm_last_doc_name [19:49:17]save OK [19:49:17]Clear old archive folders... [19:49:17]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:49:17]tlvbuf is 011EC840 [19:49:17]SAM_PROTO_ClearQueue [19:49:17]wFMCommunicate request_size=4 [19:49:17]MH_SAM_APDU [19:49:17]CAPDU: 80 09 00 00 [19:49:17]Write to MH i2c: E2 08 00 D1 5F 80 09 00 00 00 00 00 00 A2 [19:49:17]Write i2c OK [19:49:17]MH_I2C_Read... [19:49:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:49:17]Read from MH i2c: E2 [19:49:17]MH_I2C_Read... [19:49:17]Read from MH i2c: E2 03 00 [19:49:17]MH_I2C_Read... [19:49:17]Read from MH i2c: E2 03 00 D1 5F 00 90 00 A4 [19:49:17]RAPDU: 90 00 [19:49:17]wFMCommunicate OK [19:49:17]SAM_PROTO_ClearQueue done [19:49:17]KKMCreateOFDPacket [19:49:17]OFDProtocolAddRootSTLVToBuf [19:49:17]FM_MakeSignedData [19:49:17]FM_MakeSignedData [19:49:17]SAM_PROTO_SignData [19:49:17]wFMCommunicate request_size=4 [19:49:17]MH_SAM_APDU [19:49:17]CAPDU: 80 0D 01 02 [19:49:17]Write to MH i2c: E2 08 00 D2 5F 80 0D 01 02 00 00 00 00 AA [19:49:17]Write i2c OK [19:49:17]MH_I2C_Read... [19:49:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:49:17]Read from MH i2c: E2 [19:49:17]MH_I2C_Read... [19:49:17]Read from MH i2c: E2 03 00 [19:49:17]MH_I2C_Read... [19:49:17]Read from MH i2c: E2 03 00 D2 5F 00 90 00 A5 [19:49:17]RAPDU: 90 00 [19:49:17]wFMCommunicate OK [19:49:17]wFMCommunicate request_size=255 [19:49:17]MH_SAM_APDU [19:49:17]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 00 5F 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 8D 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 F4 00 00 00 F4 03 04 00 C2 E1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6D 71 00 00 35 04 06 00 63 B3 [19:49:17]Write to MH i2c: E2 02 01 D3 5F 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 00 5F 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 8D 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 F4 00 00 00 F4 03 04 00 C2 E1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6D 71 00 00 35 04 06 00 63 B3 00 00 94 [19:49:17]Write i2c OK [19:49:17]MH_I2C_Read... [19:49:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:17]Read from MH i2c: E2 [19:49:17]MH_I2C_Read... [19:49:17]Read from MH i2c: E2 03 00 [19:49:17]MH_I2C_Read... [19:49:17]Read from MH i2c: E2 03 00 D3 5F 00 90 00 A6 [19:49:17]RAPDU: 90 00 [19:49:17]wFMCommunicate OK [19:49:17]wFMCommunicate request_size=9 [19:49:17]MH_SAM_APDU [19:49:17]CAPDU: 80 0D 02 02 04 58 E7 91 EE [19:49:17]Write to MH i2c: E2 0C 00 D4 5F 80 0D 02 02 04 00 58 E7 91 EE 00 00 73 [19:49:17]Write i2c OK [19:49:17]MH_I2C_Read... [19:49:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:17]Read from MH i2c: E2 [19:49:17]MH_I2C_Read... [19:49:17]Read from MH i2c: E2 03 00 [19:49:17]MH_I2C_Read... [19:49:17]Read from MH i2c: E2 03 00 D4 5F 00 90 00 A7 [19:49:17]RAPDU: 90 00 [19:49:17]wFMCommunicate OK [19:49:17]wFMCommunicate request_size=4 [19:49:17]MH_SAM_APDU [19:49:17]CAPDU: 80 0D 03 02 [19:49:17]Write to MH i2c: E2 08 00 D5 5F 80 0D 03 02 00 00 00 00 AF [19:49:17]Write i2c OK [19:49:17]MH_I2C_Read... [19:49:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:49:17]Read from MH i2c: E2 [19:49:17]MH_I2C_Read... [19:49:17]Read from MH i2c: E2 0B 00 [19:49:17]MH_I2C_Read... [19:49:17]Read from MH i2c: E2 0B 00 D5 5F 00 07 4B 09 A6 89 CC 1A FA 90 00 1A [19:49:17]RAPDU: 07 4B 09 A6 89 CC 1A FA 90 00 [19:49:17]wFMCommunicate OK [19:49:17]SAM_PROTO_SignData done [19:49:17]FM_MakeSignedData done [19:49:17]CreateOFDProtocolMessage [19:49:17]wFMCommunicate request_size=4 [19:49:17]MH_SAM_APDU [19:49:17]CAPDU: 80 11 00 00 [19:49:17]Write to MH i2c: E2 08 00 D6 5F 80 11 00 00 00 00 00 00 AF [19:49:17]Write i2c OK [19:49:17]MH_I2C_Read... [19:49:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:18]Read from MH i2c: E2 [19:49:18]MH_I2C_Read... [19:49:18]Read from MH i2c: E2 17 00 [19:49:18]MH_I2C_Read... [19:49:18]Read from MH i2c: E2 17 00 D6 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FE [19:49:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:49:18]wFMCommunicate OK [19:49:18]CreateOFDProtocolMessage done [19:49:18]OFDSenderStorePacket 29037 [19:49:18]StoreOFDPacket docnum=29037 [19:49:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 75 BB 06 01 E5 1C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 00 5F 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 8D 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 F4 00 00 00 F4 03 04 00 C2 E1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6D 71 00 00 35 04 06 00 63 B3 58 E7 91 EE 07 4B 09 A6 89 CC 1A FA [19:49:18]CheckFolder [19:49:18]dirname=/storage/ofd_packets [19:49:18]CheckFolder done [19:49:18]ProducePacketName [19:49:18]name=ofd_packets/00029037 [19:49:18]NVStorageSaveData ofd_packets/00029037 [19:49:18]File name is /storage/ofd_packets/00029037 [19:49:18]Write 300 bytes [19:49:18]NVStorageSaveData done [19:49:18]OFDSenderStorePacket done [19:49:18]KKMCreateOFDPacket done [19:49:18]NVStorageSaveData kkm_last_timestamp [19:49:18]File name is /storage/kkm_last_timestamp [19:49:18]Write 4 bytes [19:49:18]NVStorageSaveData done [19:49:18]ExternCall_PrintAddStr [19:49:18]wPrintStart [19:49:18]Write to MH i2c: 01 00 00 D7 5F 36 [19:49:18]Write i2c OK [19:49:18]MH_I2C_Read... [19:49:18]Read from MH i2c: 01 [19:49:18]MH_I2C_Read... [19:49:18]Read from MH i2c: 01 07 00 [19:49:18]MH_I2C_Read... [19:49:18]Read from MH i2c: 01 07 00 D7 5F 00 00 00 00 00 FF 0F 4B [19:49:18]RasterBufferAndPrint [19:49:18]line Счет N : (1)347404 [19:49:18]line ИНН: 02508201610067 [19:49:18]line Контрольно-Кассовый Чек [19:49:18]line ПРОДАЖА [19:49:18]line ТРК (МРК, ГНК) : 71 [19:49:18]line Товар: 2711129700 [19:49:18]line ГАЗ-К-5 [19:49:18]line 24.320 * 32.90 [19:49:18]line = 800.13 [19:49:18]line НДС 12% НСП 1% [19:49:18]line > о реализуемом товаре [19:49:18]line ОКРУГЛЕНИЕ: -0.13 [19:49:18]line ИТОГО: 800.00 [19:49:18]line Внесено: 800.00 [19:49:18]line СДАЧА: 0.00 [19:49:18]line НСП 1% : 7.08 [19:49:18]line НДС 12% : 84.97 [19:49:18]line Наличными: 800.00 [19:49:18]line Безнал.: 0.00 [19:49:18]line Место: АЗС № 108 "Партнер Нефть" [19:49:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:49:18]line СНО: Общий режим [19:49:18]line Чек 244 13.04.2024 19:49 [19:49:18]line Смена: 115 ФФД: 1.0 [19:49:18]line ЗНМ: 0300000027 [19:49:18]line РНМ: 0000138879044617 [19:49:18]line Версия ККМ: 001 [19:49:18]line ФМ: 0000000000963154 [19:49:18]line ФД: 29037 [19:49:18]line ФПД: 109621941866990 [19:49:18]line 1/tax-web-control/client/api/v1/ticket?date=20240413T194922&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29037&fm=109621941866990&tin=02508201610067®Number=0000138879044617&sum=80000 [19:49:18]written 0, free lines is 4095 [19:49:18]OFD Sender: Processing packet 29037 [packets to send 8, broken 7] [19:49:18]ProducePacketName [19:49:18]name=ofd_packets/00029037 [19:49:18]OFD Sender: To server: pG, [19:49:18]CommunicateWithHost lk.salyk.kg:30040 [19:49:18]ConnectInit lk.salyk.kg [19:49:18]Connected sock=10 [19:49: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 31 35 34 0E 01 00 00 75 BB 06 01 E5 1C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 00 5F 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 8D 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 F4 00 00 00 F4 03 04 00 C2 E1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6D 71 00 00 35 04 06 00 63 B3 58 E7 91 EE 07 4B 09 A6 89 CC 1A FA [19: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 31 35 34 4F 00 00 00 96 F0 47 00 75 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 31 35 34 10 04 04 00 6D 71 00 00 F4 03 04 00 68 8C 1A 66 B6 04 01 00 00 04 C5 15 87 C7 7C 68 B7 [19:49:18]CommunicateWithHost err = 0 [19:49:18]CheckOFDResponse [19:49:18]1017 (14) - 77093643461234 [19:49:18]1041 (16) - 0000000000963154 [19:49:18]1040 (4) - 29037 [19:49:18]1012 (4) - 13.04.2024 13:45 [19:49:18]1206 (1) - 0 [19:49:18]OFD Sender: Remove packet 29037 [19:49:18]ProducePacketName [19:49:18]name=ofd_packets/00029037 [19:49:18]NVStorageDeleteData [19:49:18]Write to MH i2c: 01 00 00 01 60 61 [19:49:18]Write i2c OK [19:49:18]MH_I2C_Read... [19:49:18]Read from MH i2c: 01 [19:49:18]MH_I2C_Read... [19:49:18]Read from MH i2c: 01 07 00 [19:49:18]MH_I2C_Read... [19:49:18]Read from MH i2c: 01 07 00 01 60 00 00 00 00 00 CC 0C 40 [19:49:18]RasterBufferAndPrint [19:49:18]line [19:49:18]line [19:49:18]line [19:49:18]line [19:49:18]line [19:49:18]written 0, free lines is 3284 [19:49:18]MH_Cut [19:49:18]Write to MH i2c: D1 01 00 08 60 01 3A [19:49:18]Write i2c OK [19:49:18]MH_I2C_Read... [19:49:18]Read from MH i2c: D1 [19:49:18]MH_I2C_Read... [19:49:18]Read from MH i2c: D1 01 00 [19:49:18]MH_I2C_Read... [19:49:18]Read from MH i2c: D1 01 00 08 60 00 39 [19:49:18]Write to MH i2c: 01 00 00 09 60 69 [19:49:18]Write i2c OK [19:49:18]MH_I2C_Read... [19:49:18]OFD Sender: No OFD packet to send [19:49:19]*** Cut start [19:49:19]*** Partial cut [19:49:19]*** CUTSNS_PIN = 1 [19:49:19]*** CUTSNS_PIN = 0 [19:49:19]*** Brake cut motor [19:49:19]Read from MH i2c: 01 [19:49:19]MH_I2C_Read... [19:49:19]*** Stop cut motor [19:49:19]*** Cut end [19:49:19]Read from MH i2c: 01 07 00 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: 01 07 00 09 60 00 00 00 00 00 FF 0F 7E [19:49:19]process_action close_receipt done [19:49:19]requested_data is exist [19:49:19]produce_requested_data [19:49:19]requested_item fm.sn is exist - process it [19:49:19]wFMCommunicate request_size=4 [19:49:19]MH_SAM_APDU [19:49:19]CAPDU: 80 11 00 00 [19:49:19]Write to MH i2c: E2 08 00 0A 60 80 11 00 00 00 00 00 00 E4 [19:49:19]Write i2c OK [19:49:19]MH_I2C_Read... [19:49:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:19]Read from MH i2c: E2 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: E2 17 00 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: E2 17 00 0A 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 33 [19:49:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:49:19]wFMCommunicate OK [19:49:19]requested_item fd.num is exist - process it [19:49:19]SAM_PROTO_GetFieldsCounters [19:49:19]wFMCommunicate request_size=4 [19:49:19]MH_SAM_APDU [19:49:19]CAPDU: 80 13 00 00 [19:49:19]Write to MH i2c: E2 08 00 0B 60 80 13 00 00 00 00 00 00 E7 [19:49:19]Write i2c OK [19:49:19]MH_I2C_Read... [19:49:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:20]Read from MH i2c: E2 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: E2 62 00 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: E2 62 00 0B 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6D 71 00 00 0E 04 04 00 73 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 52 [19:49: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6D 71 00 00 0E 04 04 00 73 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 [19:49:20]wFMCommunicate OK [19:49:20]SAM_PROTO_GetFieldsCounters done [19:49:20]requested_item shift.num is exist - process it [19:49:20]requested_item shift.opened is exist - process it [19:49:20]req_shift_opened [19:49:20]FM_GetShiftState [19:49:20]SAM_PROTO_GetShiftState [19:49:20]wFMCommunicate request_size=4 [19:49:20]MH_SAM_APDU [19:49:20]CAPDU: 80 13 01 00 [19:49:20]Write to MH i2c: E2 08 00 0C 60 80 13 01 00 00 00 00 00 E9 [19:49:20]Write i2c OK [19:49:20]MH_I2C_Read... [19:49:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:20]Read from MH i2c: E2 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: E2 0E 00 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: E2 0E 00 0C 60 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 02 [19:49:20]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:49:20]wFMCommunicate OK [19:49:20]SAM_PROTO_GetShiftState done [19:49:20]FM_GetShiftState done [19:49:20]req_shift_opened done [19:49:20]requested_item shift.open_date is exist - process it [19:49:20]req_shift_open_date [19:49:20]req_shift_open_date done [19:49:20]produce_requested_data done [19:49:20]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29037,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [19:49:20]process_action_free close_receipt [19:49:20]json_value_free [19:49:20]json_value_free done [19:49:20]process_json_proto returns [19:49:20]Send response to host [19:49:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29037,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [19:49:20]free response buf [19:49:20]execute_script done [19:49:20]execute_script returns [19:49:20]free content buf [19:49:20]Sock 7.Close socket [19:49:20]Sock 7.Thread stoped [19:49:23]OFD Sender: No OFD packet to send [19:49:28]OFD Sender: No OFD packet to send [19:49:33]OFD Sender: No OFD packet to send [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:09]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:54]OFD Sender: No OFD packet to send [19:51:59]OFD Sender: No OFD packet to send [19:52:04]OFD Sender: No OFD packet to send [19:52:09]OFD Sender: No OFD packet to send [19:52:14]OFD Sender: No OFD packet to send [19:52:19]OFD Sender: No OFD packet to send [19:52:24]OFD Sender: No OFD packet to send [19:52:29]OFD Sender: No OFD packet to send [19:52:33]accept exits with 9 [19:52:33]New connection [19:52:33]New thread 3066928484 created [19:52:33]Thread 3066785124 joined [19:52:33]Waiting for new connection... [19:52:33] Sock 9.Parse request [19:52:33]Sock 9.Check first char [19:52:33]Sock 9.First char is OK [19:52:33]request: POST /json_proto HTTP/1.0 [19:52:33]Method: POST [19:52:33]URL: /json_proto [19:52:33]Method is POST - this is cgi request [19:52:33]url: /json_proto [19:52:33]query_string will be loaded in cgi processing [19:52:33]execute_cgi json_proto POST (null) [19:52:33]execute_cgi path=json_proto method=POST [19:52:33]POST find Content-Length [19:52:33]Host: 172.17.33.3:8080 [19:52:33]Content-Length: 682 [19:52:33]Content-Type: application/json [19:52:33] [19:52:33]POST finish read [19:52:33]Found Content-Length = 682 [19:52:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347405", "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" : 72.50, "quantity" : 13.800, "sum" : 1000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:33]execute_script... [19:52: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)347405", "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" : 72.50, "quantity" : 13.800, "sum" : 1000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:33]POST & json_proto [19:52:33]process_json_proto [19:52:33]json parsed OK: [19:52:33]protocol is kg_v1.0 [19:52:33]action value=close_receipt [19:52:33]process_action close_receipt [19:52:33]cmd_close_receipt [19:52:33]MH_GetDate [19:52:33]Write to MH i2c: F0 00 00 0D 60 5C [19:52:33]Write i2c OK [19:52:33]MH_I2C_Read... [19:52:33]Read from MH i2c: F0 [19:52:33]MH_I2C_Read... [19:52:33]Read from MH i2c: F0 09 00 [19:52:33]MH_I2C_Read... [19:52:33]Read from MH i2c: F0 09 00 0D 60 00 88 E2 1A 66 23 5B 8F 65 C1 [19:52:33]GetLastDocTimeStamp 1713037762 [19:52:33]current date 1713037960 [19:52:33]FM_GetShiftState [19:52:33]SAM_PROTO_GetShiftState [19:52:33]wFMCommunicate request_size=4 [19:52:33]MH_SAM_APDU [19:52:33]CAPDU: 80 13 01 00 [19:52:33]Write to MH i2c: E2 08 00 0E 60 80 13 01 00 00 00 00 00 EB [19:52:33]Write i2c OK [19:52:33]MH_I2C_Read... [19:52:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:33]Read from MH i2c: E2 [19:52:33]MH_I2C_Read... [19:52:33]Read from MH i2c: E2 0E 00 [19:52:33]MH_I2C_Read... [19:52:33]Read from MH i2c: E2 0E 00 0E 60 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 04 [19:52:33]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:52:33]wFMCommunicate OK [19:52:33]SAM_PROTO_GetShiftState done [19:52:33]FM_GetShiftState done [19:52:33]opened in 1712967615 [19:52:33]opened+sec_in_day 1713054015 [19:52:33]quantity*price = 100050 [19:52:33]sum+1 = 100051 [19:52:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 245 13.04.2024 19:52 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29038 ФПД: 267256549609848 1/tax-web-control/client/api/v1/ticket?date=20240413T195240&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29038&fm=267256549609848&tin=02508201610067®Number=0000138879044617&sum=100000 [19:52:35]StoreToDocumentArchive [19:52:35]shift 115 fd 29038 [19:52:35]save to /storage/0115/doc_00029038 [19:52:35]save last doc name /storage/0115/doc_00029038 to /storage/kkm_last_doc_name [19:52:35]save OK [19:52:35]Clear old archive folders... [19:52:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:52:35]tlvbuf is 012244B0 [19:52:35]SAM_PROTO_ClearQueue [19:52:35]wFMCommunicate request_size=4 [19:52:35]MH_SAM_APDU [19:52:35]CAPDU: 80 09 00 00 [19:52:35]Write to MH i2c: E2 08 00 1B 60 80 09 00 00 00 00 00 00 ED [19:52:35]Write i2c OK [19:52:35]MH_I2C_Read... [19:52:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:52:35]Read from MH i2c: E2 [19:52:35]MH_I2C_Read... [19:52:35]Read from MH i2c: E2 03 00 [19:52:35]MH_I2C_Read... [19:52:35]Read from MH i2c: E2 03 00 1B 60 00 90 00 EF [19:52:35]RAPDU: 90 00 [19:52:35]wFMCommunicate OK [19:52:35]SAM_PROTO_ClearQueue done [19:52:35]KKMCreateOFDPacket [19:52:35]OFDProtocolAddRootSTLVToBuf [19:52:35]FM_MakeSignedData [19:52:35]FM_MakeSignedData [19:52:35]SAM_PROTO_SignData [19:52:35]wFMCommunicate request_size=4 [19:52:35]MH_SAM_APDU [19:52:35]CAPDU: 80 0D 01 02 [19:52:35]Write to MH i2c: E2 08 00 1C 60 80 0D 01 02 00 00 00 00 F5 [19:52:35]Write i2c OK [19:52:35]MH_I2C_Read... [19:52:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:52:35]Read from MH i2c: E2 [19:52:35]MH_I2C_Read... [19:52:35]Read from MH i2c: E2 03 00 [19:52:35]MH_I2C_Read... [19:52:35]Read from MH i2c: E2 03 00 1C 60 00 90 00 F0 [19:52:35]RAPDU: 90 00 [19:52:35]wFMCommunicate OK [19:52:35]wFMCommunicate request_size=255 [19:52:35]MH_SAM_APDU [19:52:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F5 00 00 00 F4 03 04 00 88 E2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6E 71 00 00 35 04 06 00 F3 [19:52:35]Write to MH i2c: E2 02 01 1D 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F5 00 00 00 F4 03 04 00 88 E2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6E 71 00 00 35 04 06 00 F3 00 00 98 [19:52:35]Write i2c OK [19:52:35]MH_I2C_Read... [19:52:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:35]Read from MH i2c: E2 [19:52:35]MH_I2C_Read... [19:52:35]Read from MH i2c: E2 03 00 [19:52:35]MH_I2C_Read... [19:52:35]Read from MH i2c: E2 03 00 1D 60 00 90 00 F1 [19:52:35]RAPDU: 90 00 [19:52:35]wFMCommunicate OK [19:52:35]wFMCommunicate request_size=10 [19:52:35]MH_SAM_APDU [19:52:35]CAPDU: 80 0D 02 02 05 11 83 B4 11 78 [19:52:35]Write to MH i2c: E2 0D 00 1E 60 80 0D 02 02 05 00 11 83 B4 11 78 00 00 D3 [19:52:35]Write i2c OK [19:52:35]MH_I2C_Read... [19:52:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:35]Read from MH i2c: E2 [19:52:35]MH_I2C_Read... [19:52:35]Read from MH i2c: E2 03 00 [19:52:35]MH_I2C_Read... [19:52:35]Read from MH i2c: E2 03 00 1E 60 00 90 00 F2 [19:52:35]RAPDU: 90 00 [19:52:35]wFMCommunicate OK [19:52:35]wFMCommunicate request_size=4 [19:52:35]MH_SAM_APDU [19:52:35]CAPDU: 80 0D 03 02 [19:52:35]Write to MH i2c: E2 08 00 1F 60 80 0D 03 02 00 00 00 00 FA [19:52:35]Write i2c OK [19:52:35]MH_I2C_Read... [19:52:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:52:35]Read from MH i2c: E2 [19:52:35]MH_I2C_Read... [19:52:35]Read from MH i2c: E2 0B 00 [19:52:35]MH_I2C_Read... [19:52:35]Read from MH i2c: E2 0B 00 1F 60 00 C5 87 94 9B 61 BD 7C 90 90 00 A0 [19:52:35]RAPDU: C5 87 94 9B 61 BD 7C 90 90 00 [19:52:35]wFMCommunicate OK [19:52:35]SAM_PROTO_SignData done [19:52:35]FM_MakeSignedData done [19:52:35]CreateOFDProtocolMessage [19:52:35]wFMCommunicate request_size=4 [19:52:35]MH_SAM_APDU [19:52:35]CAPDU: 80 11 00 00 [19:52:35]Write to MH i2c: E2 08 00 20 60 80 11 00 00 00 00 00 00 FA [19:52:35]Write i2c OK [19:52:35]MH_I2C_Read... [19:52:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:35]Read from MH i2c: E2 [19:52:35]MH_I2C_Read... [19:52:35]Read from MH i2c: E2 17 00 [19:52:35]MH_I2C_Read... [19:52:35]Read from MH i2c: E2 17 00 20 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 49 [19:52:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:52:35]wFMCommunicate OK [19:52:35]CreateOFDProtocolMessage done [19:52:35]OFDSenderStorePacket 29038 [19:52:35]StoreOFDPacket docnum=29038 [19:52:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 74 3F 07 01 2D E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F5 00 00 00 F4 03 04 00 88 E2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6E 71 00 00 35 04 06 00 F3 11 83 B4 11 78 C5 87 94 9B 61 BD 7C 90 [19:52:35]CheckFolder [19:52:35]dirname=/storage/ofd_packets [19:52:35]CheckFolder done [19:52:35]ProducePacketName [19:52:35]name=ofd_packets/00029038 [19:52:35]NVStorageSaveData ofd_packets/00029038 [19:52:35]File name is /storage/ofd_packets/00029038 [19:52:35]Write 301 bytes [19:52:35]NVStorageSaveData done [19:52:35]OFDSenderStorePacket done [19:52:35]KKMCreateOFDPacket done [19:52:35]NVStorageSaveData kkm_last_timestamp [19:52:35]File name is /storage/kkm_last_timestamp [19:52:35]Write 4 bytes [19:52:35]NVStorageSaveData done [19:52:35]ExternCall_PrintAddStr [19:52:35]wPrintStart [19:52:35]Write to MH i2c: 01 00 00 21 60 81 [19:52:35]Write i2c OK [19:52:35]MH_I2C_Read... [19:52:35]Read from MH i2c: 01 [19:52:35]MH_I2C_Read... [19:52:35]Read from MH i2c: 01 07 00 [19:52:35]MH_I2C_Read... [19:52:35]Read from MH i2c: 01 07 00 21 60 00 00 00 00 00 FF 0F 96 [19:52:35]RasterBufferAndPrint [19:52:35]line Счет N : (1)347405 [19:52:35]line ИНН: 02508201610067 [19:52:35]line Контрольно-Кассовый Чек [19:52:35]line ПРОДАЖА [19:52:35]line ТРК (МРК, ГНК) : 33 [19:52:35]line Товар: 2710124500 [19:52:35]line Аи-95-К-5 [19:52:35]line 13.800 * 72.50 [19:52:35]line = 1000.50 [19:52:35]line НДС 12% НСП 1% [19:52:35]line > о реализуемом товаре [19:52:35]line ОКРУГЛЕНИЕ: -0.50 [19:52:35]line ИТОГО: 1000.00 [19:52:35]line Внесено: 1000.00 [19:52:35]line СДАЧА: 0.00 [19:52:35]line НСП 1% : 8.85 [19:52:35]line НДС 12% : 106.25 [19:52:35]line Наличными: 1000.00 [19:52:35]line Безнал.: 0.00 [19:52:35]line Место: АЗС № 108 "Партнер Нефть" [19:52:35]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:52:35]line СНО: Общий режим [19:52:35]line Чек 245 13.04.2024 19:52 [19:52:35]line Смена: 115 ФФД: 1.0 [19:52:35]line ЗНМ: 0300000027 [19:52:35]line РНМ: 0000138879044617 [19:52:35]line Версия ККМ: 001 [19:52:35]line ФМ: 0000000000963154 [19:52:35]line ФД: 29038 [19:52:35]line ФПД: 267256549609848 [19:52:35]line 1/tax-web-control/client/api/v1/ticket?date=20240413T195240&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29038&fm=267256549609848&tin=02508201610067®Number=0000138879044617&sum=100000 [19:52:35]OFD Sender: Processing packet 29038 [packets to send 8, broken 7] [19:52:35]ProducePacketName [19:52:35]name=ofd_packets/00029038 [19:52:35]OFD Sender: To server: pG, [19:52:35]CommunicateWithHost lk.salyk.kg:30040 [19:52:35]ConnectInit lk.salyk.kg [19:52:35]written 0, free lines is 4095 [19:52:36]Connected sock=7 [19:52: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 31 35 34 0F 01 00 00 74 3F 07 01 2D E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F5 00 00 00 F4 03 04 00 88 E2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6E 71 00 00 35 04 06 00 F3 11 83 B4 11 78 C5 87 94 9B 61 BD 7C 90 [19:52:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C6 FF 47 00 3F 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 31 35 34 10 04 04 00 6E 71 00 00 F4 03 04 00 2E 8D 1A 66 B6 04 01 00 00 41 F1 6C 38 F3 EB C3 87 [19:52:36]CommunicateWithHost err = 0 [19:52:36]CheckOFDResponse [19:52:36]1017 (14) - 77093643461234 [19:52:36]1041 (16) - 0000000000963154 [19:52:36]1040 (4) - 29038 [19:52:36]1012 (4) - 13.04.2024 13:48 [19:52:36]1206 (1) - 0 [19:52:36]OFD Sender: Remove packet 29038 [19:52:36]ProducePacketName [19:52:36]name=ofd_packets/00029038 [19:52:36]NVStorageDeleteData [19:52:36]Write to MH i2c: 01 00 00 4B 60 AB [19:52:36]Write i2c OK [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: 01 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: 01 07 00 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: 01 07 00 4B 60 00 00 00 00 00 C7 0C 85 [19:52:36]RasterBufferAndPrint [19:52:36]line [19:52:36]line [19:52:36]line [19:52:36]line [19:52:36]line [19:52:36]written 0, free lines is 3276 [19:52:36]MH_Cut [19:52:36]Write to MH i2c: D1 01 00 52 60 01 84 [19:52:36]Write i2c OK [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: D1 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: D1 01 00 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: D1 01 00 52 60 00 83 [19:52:36]Write to MH i2c: 01 00 00 53 60 B3 [19:52:36]Write i2c OK [19:52:36]MH_I2C_Read... [19:52:36]OFD Sender: No OFD packet to send [19:52:37]*** Cut start [19:52:37]*** Partial cut [19:52:37]*** CUTSNS_PIN = 1 [19:52:37]*** CUTSNS_PIN = 0 [19:52:37]*** Brake cut motor [19:52:37]Read from MH i2c: 01 [19:52:37]MH_I2C_Read... [19:52:37]*** Stop cut motor [19:52:37]*** Cut end [19:52:37]Read from MH i2c: 01 07 00 [19:52:37]MH_I2C_Read... [19:52:37]Read from MH i2c: 01 07 00 53 60 00 00 00 00 00 FF 0F C8 [19:52:37]process_action close_receipt done [19:52:37]requested_data is exist [19:52:37]produce_requested_data [19:52:37]requested_item fm.sn is exist - process it [19:52:37]wFMCommunicate request_size=4 [19:52:37]MH_SAM_APDU [19:52:37]CAPDU: 80 11 00 00 [19:52:37]Write to MH i2c: E2 08 00 54 60 80 11 00 00 00 00 00 00 2E [19:52:37]Write i2c OK [19:52:37]MH_I2C_Read... [19:52:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:37]Read from MH i2c: E2 [19:52:37]MH_I2C_Read... [19:52:37]Read from MH i2c: E2 17 00 [19:52:37]MH_I2C_Read... [19:52:37]Read from MH i2c: E2 17 00 54 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7D [19:52:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:52:37]wFMCommunicate OK [19:52:37]requested_item fd.num is exist - process it [19:52:37]SAM_PROTO_GetFieldsCounters [19:52:37]wFMCommunicate request_size=4 [19:52:37]MH_SAM_APDU [19:52:37]CAPDU: 80 13 00 00 [19:52:37]Write to MH i2c: E2 08 00 55 60 80 13 00 00 00 00 00 00 31 [19:52:37]Write i2c OK [19:52:37]MH_I2C_Read... [19:52:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:52:38]Read from MH i2c: E2 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 62 00 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 62 00 55 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6E 71 00 00 0E 04 04 00 73 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 A0 [19:52: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6E 71 00 00 0E 04 04 00 73 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 [19:52:38]wFMCommunicate OK [19:52:38]SAM_PROTO_GetFieldsCounters done [19:52:38]requested_item shift.num is exist - process it [19:52:38]requested_item shift.opened is exist - process it [19:52:38]req_shift_opened [19:52:38]FM_GetShiftState [19:52:38]SAM_PROTO_GetShiftState [19:52:38]wFMCommunicate request_size=4 [19:52:38]MH_SAM_APDU [19:52:38]CAPDU: 80 13 01 00 [19:52:38]Write to MH i2c: E2 08 00 56 60 80 13 01 00 00 00 00 00 33 [19:52:38]Write i2c OK [19:52:38]MH_I2C_Read... [19:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:38]Read from MH i2c: E2 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 0E 00 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 0E 00 56 60 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 4C [19:52:38]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:52:38]wFMCommunicate OK [19:52:38]SAM_PROTO_GetShiftState done [19:52:38]FM_GetShiftState done [19:52:38]req_shift_opened done [19:52:38]requested_item shift.open_date is exist - process it [19:52:38]req_shift_open_date [19:52:38]req_shift_open_date done [19:52:38]produce_requested_data done [19:52:38]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29038,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [19:52:38]process_action_free close_receipt [19:52:38]json_value_free [19:52:38]json_value_free done [19:52:38]process_json_proto returns [19:52:38]Send response to host [19:52:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29038,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [19:52:38]free response buf [19:52:38]execute_script done [19:52:38]execute_script returns [19:52:38]free content buf [19:52:38]Sock 9.Close socket [19:52:38]Sock 9.Thread stoped [19:52:41]OFD Sender: No OFD packet to send [19:52:46]OFD Sender: No OFD packet to send [19:52:51]OFD Sender: No OFD packet to send [19:52:56]OFD Sender: No OFD packet to send [19:53:01]OFD Sender: No OFD packet to send [19:53:06]OFD Sender: No OFD packet to send [19:53:11]OFD Sender: No OFD packet to send [19:53:16]OFD Sender: No OFD packet to send [19:53:21]OFD Sender: No OFD packet to send [19:53:26]OFD Sender: No OFD packet to send [19:53:31]OFD Sender: No OFD packet to send [19:53:36]OFD Sender: No OFD packet to send [19:53:41]OFD Sender: No OFD packet to send [19:53:43]int [19:53:43]Write to MH i2c: 01 00 00 57 60 B7 [19:53:43]*** FLAG_PRN_PAP1 set [19:53:43]Write i2c OK [19:53:43]MH_I2C_Read... [19:53:43]Read from MH i2c: 01 [19:53:43]MH_I2C_Read... [19:53:43]Read from MH i2c: 01 07 00 [19:53:43]MH_I2C_Read... [19:53:43]Read from MH i2c: 01 07 00 57 60 00 01 00 00 00 FF 0F CD [19:53:43]state=0 [19:53:43]No paper [19:53:43]int [19:53:43]Write to MH i2c: 01 00 00 58 60 B8 [19:53:43]*** FLAG_PRN_PAP2 set [19:53:43]Write i2c OK [19:53:43]MH_I2C_Read... [19:53:43]Read from MH i2c: 01 [19:53:43]MH_I2C_Read... [19:53:43]Read from MH i2c: 01 07 00 [19:53:43]MH_I2C_Read... [19:53:43]Read from MH i2c: 01 07 00 58 60 00 03 00 00 00 FF 0F D0 [19:53:43]state=0 [19:53:43]No paper [19:53:43]Cover opened [19:53:43]int [19:53:43]Write to MH i2c: 01 00 00 59 60 B9 [19:53:43]*** FLAG_PRN_PAP2 reset [19:53:43]Write i2c OK [19:53:43]MH_I2C_Read... [19:53:43]Read from MH i2c: 01 [19:53:43]MH_I2C_Read... [19:53:43]Read from MH i2c: 01 07 00 [19:53:43]MH_I2C_Read... [19:53:43]Read from MH i2c: 01 07 00 59 60 00 01 00 00 00 FF 0F CF [19:53:43]state=3 [19:53:43]No paper [19:53:43]Cover closed [19:53:44]int [19:53:44]Write to MH i2c: 01 00 00 5A 60 BA [19:53:44]*** FLAG_PRN_PAP2 set [19:53:44]Write i2c OK [19:53:44]MH_I2C_Read... [19:53:44]Read from MH i2c: 01 [19:53:44]MH_I2C_Read... [19:53:44]Read from MH i2c: 01 07 00 [19:53:44]MH_I2C_Read... [19:53:44]Read from MH i2c: 01 07 00 5A 60 00 03 00 00 00 FF 0F D2 [19:53:44]state=0 [19:53:44]No paper [19:53:44]Cover opened [19:53:45]int [19:53:45]Write to MH i2c: 01 00 00 5B 60 BB [19:53:45]*** FLAG_PRN_PAP2 reset [19:53:45]Write i2c OK [19:53:45]MH_I2C_Read... [19:53:45]Read from MH i2c: 01 [19:53:45]MH_I2C_Read... [19:53:45]Read from MH i2c: 01 07 00 [19:53:45]MH_I2C_Read... [19:53:45]Read from MH i2c: 01 07 00 5B 60 00 01 00 00 00 FF 0F D1 [19:53:45]state=3 [19:53:45]No paper [19:53:45]Cover closed [19:53:45]int [19:53:45]Write to MH i2c: 01 00 00 5C 60 BC [19:53:45]*** FLAG_PRN_PAP2 set [19:53:45]Write i2c OK [19:53:45]MH_I2C_Read... [19:53:45]Read from MH i2c: 01 [19:53:45]MH_I2C_Read... [19:53:45]Read from MH i2c: 01 07 00 [19:53:45]MH_I2C_Read... [19:53:45]Read from MH i2c: 01 07 00 5C 60 00 03 00 00 00 FF 0F D4 [19:53:45]state=0 [19:53:45]No paper [19:53:45]Cover opened [19:53:45]int [19:53:45]Write to MH i2c: 01 00 00 5D 60 BD [19:53:45]*** FLAG_PRN_PAP2 reset [19:53:45]Write i2c OK [19:53:45]MH_I2C_Read... [19:53:45]Read from MH i2c: 01 [19:53:45]MH_I2C_Read... [19:53:45]Read from MH i2c: 01 07 00 [19:53:45]MH_I2C_Read... [19:53:45]Read from MH i2c: 01 07 00 5D 60 00 01 00 00 00 FF 0F D3 [19:53:45]state=3 [19:53:45]No paper [19:53:45]Cover closed [19:53:45]int [19:53:45]Write to MH i2c: 01 00 00 5E 60 BE [19:53:45]*** FLAG_PRN_PAP2 set [19:53:45]Write i2c OK [19:53:45]MH_I2C_Read... [19:53:45]Read from MH i2c: 01 [19:53:45]MH_I2C_Read... [19:53:45]Read from MH i2c: 01 07 00 [19:53:45]MH_I2C_Read... [19:53:45]Read from MH i2c: 01 07 00 5E 60 00 03 00 00 00 FF 0F D6 [19:53:45]state=0 [19:53:45]No paper [19:53:45]Cover opened [19:53:46]OFD Sender: No OFD packet to send [19:53:50]Write to MH i2c: 01 00 00 5F 60 BF [19:53:50]Write i2c OK [19:53:50]MH_I2C_Read... [19:53:50]Read from MH i2c: 01 [19:53:50]MH_I2C_Read... [19:53:50]Read from MH i2c: 01 07 00 [19:53:50]MH_I2C_Read... [19:53:50]Read from MH i2c: 01 07 00 5F 60 00 03 00 00 00 FF 0F D7 [19:53:50]state=3 [19:53:50]No paper [19:53:50]Cover opened [19:53:51]OFD Sender: No OFD packet to send [19:53:55]Write to MH i2c: 01 00 00 60 60 C0 [19:53:55]Write i2c OK [19:53:55]MH_I2C_Read... [19:53:55]Read from MH i2c: 01 [19:53:55]MH_I2C_Read... [19:53:55]Read from MH i2c: 01 07 00 [19:53:55]MH_I2C_Read... [19:53:55]Read from MH i2c: 01 07 00 60 60 00 03 00 00 00 FF 0F D8 [19:53:55]state=3 [19:53:55]No paper [19:53:55]Cover opened [19:53:56]OFD Sender: No OFD packet to send [19:53:56]int [19:53:56]Write to MH i2c: 01 00 00 61 60 C1 [19:53:56]*** FLAG_PRN_PAP2 reset [19:53:56]Write i2c OK [19:53:56]MH_I2C_Read... [19:53:56]Read from MH i2c: 01 [19:53:56]MH_I2C_Read... [19:53:56]Read from MH i2c: 01 07 00 [19:53:56]MH_I2C_Read... [19:53:56]Read from MH i2c: 01 07 00 61 60 00 01 00 00 00 FF 0F D7 [19:53:56]state=3 [19:53:56]No paper [19:53:56]Cover closed [19:53:56]int [19:53:56]Write to MH i2c: 01 00 00 62 60 C2 [19:53:56]*** FLAG_PRN_PAP1 reset [19:53:56]Write i2c OK [19:53:56]MH_I2C_Read... [19:53:56]Read from MH i2c: 01 [19:53:56]MH_I2C_Read... [19:53:56]Read from MH i2c: 01 07 00 [19:53:56]MH_I2C_Read... [19:53:56]Read from MH i2c: 01 07 00 62 60 00 00 00 00 00 FF 0F D7 [19:53:56]state=0 [19:54:01]OFD Sender: No OFD packet to send [19:54:06]OFD Sender: No OFD packet to send [19:54:11]OFD Sender: No OFD packet to send [19:54:16]OFD Sender: No OFD packet to send [19:54:17]accept exits with 10 [19:54:17]New connection [19:54:17]New thread 3066785124 created [19:54:17]Thread 3066928484 joined [19:54:17]Waiting for new connection... [19:54:17] Sock 10.Parse request [19:54:17]Sock 10.Check first char [19:54:17]Sock 10.First char is OK [19:54:17]request: POST /json_proto HTTP/1.0 [19:54:17]Method: POST [19:54:17]URL: /json_proto [19:54:17]Method is POST - this is cgi request [19:54:17]url: /json_proto [19:54:17]query_string will be loaded in cgi processing [19:54:17]execute_cgi json_proto POST (null) [19:54:17]execute_cgi path=json_proto method=POST [19:54:17]POST find Content-Length [19:54:17]Host: 172.17.33.3:8080 [19:54:17]Content-Length: 813 [19:54:17]Content-Type: application/json [19:54:17] [19:54:17]POST finish read [19:54:17]Found Content-Length = 813 [19:54:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347406", "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" : 72.40, "quantity" : 4.150, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:17]execute_script... [19: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)347406", "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" : 72.40, "quantity" : 4.150, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:17]POST & json_proto [19:54:17]process_json_proto [19:54:17]json parsed OK: [19:54:17]protocol is kg_v1.0 [19:54:17]action value=close_receipt [19:54:17]process_action close_receipt [19:54:17]cmd_close_receipt [19:54:17]MH_GetDate [19:54:17]Write to MH i2c: F0 00 00 63 60 B2 [19:54:17]Write i2c OK [19:54:17]MH_I2C_Read... [19:54:17]Read from MH i2c: F0 [19:54:17]MH_I2C_Read... [19:54:17]Read from MH i2c: F0 09 00 [19:54:17]MH_I2C_Read... [19:54:17]Read from MH i2c: F0 09 00 63 60 00 EF E2 1A 66 23 5B 8F 65 7E [19:54:17]GetLastDocTimeStamp 1713037960 [19:54:17]current date 1713038063 [19:54:17]FM_GetShiftState [19:54:17]SAM_PROTO_GetShiftState [19:54:17]wFMCommunicate request_size=4 [19:54:17]MH_SAM_APDU [19:54:17]CAPDU: 80 13 01 00 [19:54:17]Write to MH i2c: E2 08 00 64 60 80 13 01 00 00 00 00 00 41 [19:54:17]Write i2c OK [19:54:17]MH_I2C_Read... [19:54:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:17]Read from MH i2c: E2 [19:54:17]MH_I2C_Read... [19:54:17]Read from MH i2c: E2 0E 00 [19:54:17]MH_I2C_Read... [19:54:17]Read from MH i2c: E2 0E 00 64 60 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 5A [19:54:17]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:54:17]wFMCommunicate OK [19:54:17]SAM_PROTO_GetShiftState done [19:54:17]FM_GetShiftState done [19:54:17]opened in 1712967615 [19:54:17]opened+sec_in_day 1713054015 [19:54:17]quantity*price = 30046 [19:54:17]sum+1 = 30047 [19:54:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.46 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 0.00 Безнал.: 300.46 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 246 13.04.2024 19:54 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29039 ФПД: 241699713863886 1/tax-web-control/client/api/v1/ticket?date=20240413T195423&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29039&fm=241699713863886&tin=02508201610067®Number=0000138879044617&sum=30046 [19:54:18]StoreToDocumentArchive [19:54:18]shift 115 fd 29039 [19:54:18]save to /storage/0115/doc_00029039 [19:54:18]save last doc name /storage/0115/doc_00029039 to /storage/kkm_last_doc_name [19:54:18]save OK [19:54:18]Clear old archive folders... [19:54:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:54:18]tlvbuf is 012F3690 [19:54:18]SAM_PROTO_ClearQueue [19:54:18]wFMCommunicate request_size=4 [19:54:18]MH_SAM_APDU [19:54:18]CAPDU: 80 09 00 00 [19:54:18]Write to MH i2c: E2 08 00 71 60 80 09 00 00 00 00 00 00 43 [19:54:18]Write i2c OK [19:54:18]MH_I2C_Read... [19:54:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:18]Read from MH i2c: E2 [19:54:18]MH_I2C_Read... [19:54:18]Read from MH i2c: E2 03 00 [19:54:18]MH_I2C_Read... [19:54:18]Read from MH i2c: E2 03 00 71 60 00 90 00 45 [19:54:18]RAPDU: 90 00 [19:54:18]wFMCommunicate OK [19:54:18]SAM_PROTO_ClearQueue done [19:54:18]KKMCreateOFDPacket [19:54:18]OFDProtocolAddRootSTLVToBuf [19:54:18]FM_MakeSignedData [19:54:18]FM_MakeSignedData [19:54:18]SAM_PROTO_SignData [19:54:18]wFMCommunicate request_size=4 [19:54:18]MH_SAM_APDU [19:54:18]CAPDU: 80 0D 01 02 [19:54:18]Write to MH i2c: E2 08 00 72 60 80 0D 01 02 00 00 00 00 4B [19:54:18]Write i2c OK [19:54:18]MH_I2C_Read... [19:54:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:18]Read from MH i2c: E2 [19:54:18]MH_I2C_Read... [19:54:18]Read from MH i2c: E2 03 00 [19:54:18]MH_I2C_Read... [19:54:18]Read from MH i2c: E2 03 00 72 60 00 90 00 46 [19:54:18]RAPDU: 90 00 [19:54:18]wFMCommunicate OK [19:54:18]wFMCommunicate request_size=255 [19:54:18]MH_SAM_APDU [19:54: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 36 10 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 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 5E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 EF E2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6F 71 00 00 35 04 06 00 DB D3 19 96 [19:54:18]Write to MH i2c: E2 02 01 73 60 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 36 10 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 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 5E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 EF E2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6F 71 00 00 35 04 06 00 DB D3 19 96 00 00 6D [19:54:18]Write i2c OK [19:54:18]MH_I2C_Read... [19:54:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:18]Read from MH i2c: E2 [19:54:18]MH_I2C_Read... [19:54:18]Read from MH i2c: E2 03 00 [19:54:18]MH_I2C_Read... [19:54:18]Read from MH i2c: E2 03 00 73 60 00 90 00 47 [19:54:18]RAPDU: 90 00 [19:54:18]wFMCommunicate OK [19:54:18]wFMCommunicate request_size=7 [19:54:18]MH_SAM_APDU [19:54:18]CAPDU: 80 0D 02 02 02 50 CE [19:54:18]Write to MH i2c: E2 0A 00 74 60 80 0D 02 02 02 00 50 CE 00 00 70 [19:54:18]Write i2c OK [19:54:18]MH_I2C_Read... [19:54:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:18]Read from MH i2c: E2 [19:54:18]MH_I2C_Read... [19:54:18]Read from MH i2c: E2 03 00 [19:54:18]MH_I2C_Read... [19:54:18]Read from MH i2c: E2 03 00 74 60 00 90 00 48 [19:54:18]RAPDU: 90 00 [19:54:18]wFMCommunicate OK [19:54:18]wFMCommunicate request_size=4 [19:54:18]MH_SAM_APDU [19:54:18]CAPDU: 80 0D 03 02 [19:54:18]Write to MH i2c: E2 08 00 75 60 80 0D 03 02 00 00 00 00 50 [19:54:18]Write i2c OK [19:54:18]MH_I2C_Read... [19:54:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:18]Read from MH i2c: E2 [19:54:18]MH_I2C_Read... [19:54:18]Read from MH i2c: E2 0B 00 [19:54:18]MH_I2C_Read... [19:54:18]Read from MH i2c: E2 0B 00 75 60 00 E4 49 01 EB B4 BF F5 04 90 00 D6 [19:54:18]RAPDU: E4 49 01 EB B4 BF F5 04 90 00 [19:54:18]wFMCommunicate OK [19:54:18]SAM_PROTO_SignData done [19:54:18]FM_MakeSignedData done [19:54:18]CreateOFDProtocolMessage [19:54:18]wFMCommunicate request_size=4 [19:54:18]MH_SAM_APDU [19:54:18]CAPDU: 80 11 00 00 [19:54:18]Write to MH i2c: E2 08 00 76 60 80 11 00 00 00 00 00 00 50 [19:54:18]Write i2c OK [19:54:18]MH_I2C_Read... [19:54:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:18]Read from MH i2c: E2 [19:54:18]MH_I2C_Read... [19:54:18]Read from MH i2c: E2 17 00 [19:54:18]MH_I2C_Read... [19:54:18]Read from MH i2c: E2 17 00 76 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9F [19:54:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:54:18]wFMCommunicate OK [19:54:18]CreateOFDProtocolMessage done [19:54:18]OFDSenderStorePacket 29039 [19:54:18]StoreOFDPacket docnum=29039 [19:54:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 61 08 04 01 DB AB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 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 5E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 EF E2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6F 71 00 00 35 04 06 00 DB D3 19 96 50 CE E4 49 01 EB B4 BF F5 04 [19:54:18]CheckFolder [19:54:18]dirname=/storage/ofd_packets [19:54:18]CheckFolder done [19:54:18]ProducePacketName [19:54:18]name=ofd_packets/00029039 [19:54:18]NVStorageSaveData ofd_packets/00029039 [19:54:18]File name is /storage/ofd_packets/00029039 [19:54:18]Write 298 bytes [19:54:18]NVStorageSaveData done [19:54:18]OFDSenderStorePacket done [19:54:18]KKMCreateOFDPacket done [19:54:18]NVStorageSaveData kkm_last_timestamp [19:54:18]File name is /storage/kkm_last_timestamp [19:54:18]Write 4 bytes [19:54:18]NVStorageSaveData done [19:54:18]ExternCall_PrintAddStr [19:54:18]wPrintStart [19:54:18]Write to MH i2c: 01 00 00 77 60 D7 [19:54:18]Write i2c OK [19:54:18]MH_I2C_Read... [19:54:18]Read from MH i2c: 01 [19:54:18]MH_I2C_Read... [19:54:18]Read from MH i2c: 01 07 00 [19:54:18]MH_I2C_Read... [19:54:18]Read from MH i2c: 01 07 00 77 60 00 00 00 00 00 FF 0F EC [19:54:18]RasterBufferAndPrint [19:54:18]line Счет N : (1)347406 [19:54:18]line ИНН: 02508201610067 [19:54:18]line Контрольно-Кассовый Чек [19:54:18]line ПРОДАЖА [19:54:18]line ТРК (МРК, ГНК) : 61 [19:54:18]line Товар: 2710194210 [19:54:18]line ДТ-К-5 [19:54:18]line 4.150 * 72.40 [19:54:18]line = 300.46 [19:54:18]line НДС 12% НСП 1% [19:54:18]line > о реализуемом товаре [19:54:18]line ИТОГО: 300.46 [19:54:18]line НСП 1% : 2.66 [19:54:18]line НДС 12% : 31.91 [19:54:18]line Наличными: 0.00 [19:54:18]line Безнал.: 300.46 [19:54:18]line Место: АЗС № 108 "Партнер Нефть" [19:54:18]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:54:18]line СНО: Общий режим [19:54:18]line Чек 246 13.04.2024 19:54 [19:54:18]line Смена: 115 ФФД: 1.0 [19:54:18]line ЗНМ: 0300000027 [19:54:18]line РНМ: 0000138879044617 [19:54:18]line Версия ККМ: 001 [19:54:18]line Платежная система: Бакай Банк [19:54:18]line ФМ: 0000000000963154 [19:54:18]line ФД: 29039 [19:54:18]line ФПД: 241699713863886 [19:54:19]line 1/tax-web-control/client/api/v1/ticket?date=20240413T195423&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29039&fm=241699713863886&tin=02508201610067®Number=0000138879044617&sum=30046 [19:54:19]OFD Sender: Processing packet 29039 [packets to send 8, broken 7] [19:54:19]ProducePacketName [19:54:19]name=ofd_packets/00029039 [19:54:19]OFD Sender: To server: pG, [19:54:19]CommunicateWithHost lk.salyk.kg:30040 [19:54:19]ConnectInit lk.salyk.kg [19:54:19]written 0, free lines is 4095 [19:54:19]Connected sock=11 [19: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 31 35 34 0C 01 00 00 61 08 04 01 DB AB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 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 5E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 EF E2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6F 71 00 00 35 04 06 00 DB D3 19 96 50 CE E4 49 01 EB B4 BF F5 04 [19: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 31 35 34 4F 00 00 00 9B 32 47 00 90 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 6F 71 00 00 F4 03 04 00 95 8D 1A 66 B6 04 01 00 00 FE F8 11 C9 D8 90 52 BB [19:54:19]CommunicateWithHost err = 0 [19:54:19]CheckOFDResponse [19:54:19]1017 (14) - 77093643461234 [19:54:19]1041 (16) - 0000000000963154 [19:54:19]1040 (4) - 29039 [19:54:19]1012 (4) - 13.04.2024 13:50 [19:54:19]1206 (1) - 0 [19:54:19]OFD Sender: Remove packet 29039 [19:54:19]ProducePacketName [19:54:19]name=ofd_packets/00029039 [19:54:19]NVStorageDeleteData [19:54:19]Write to MH i2c: 01 00 00 A0 60 00 [19:54:19]Write i2c OK [19:54:19]MH_I2C_Read... [19:54:19]Read from MH i2c: 01 [19:54:19]MH_I2C_Read... [19:54:19]Read from MH i2c: 01 07 00 [19:54:19]MH_I2C_Read... [19:54:19]Read from MH i2c: 01 07 00 A0 60 00 00 00 00 00 DD 0C F0 [19:54:19]RasterBufferAndPrint [19:54:19]line [19:54:19]line [19:54:19]line [19:54:19]line [19:54:19]line [19:54:19]written 0, free lines is 3299 [19:54:19]MH_Cut [19:54:19]Write to MH i2c: D1 01 00 A7 60 01 D9 [19:54:19]Write i2c OK [19:54:19]MH_I2C_Read... [19:54:19]Read from MH i2c: D1 [19:54:19]MH_I2C_Read... [19:54:19]Read from MH i2c: D1 01 00 [19:54:19]MH_I2C_Read... [19:54:19]Read from MH i2c: D1 01 00 A7 60 00 D8 [19:54:19]Write to MH i2c: 01 00 00 A8 60 08 [19:54:19]Write i2c OK [19:54:19]MH_I2C_Read... [19:54:19]OFD Sender: No OFD packet to send [19:54:20]*** Cut start [19:54:20]*** Partial cut [19:54:20]*** CUTSNS_PIN = 1 [19:54:20]*** CUTSNS_PIN = 0 [19:54:20]*** Brake cut motor [19:54:20]Read from MH i2c: 01 [19:54:20]MH_I2C_Read... [19:54:20]*** Stop cut motor [19:54:20]*** Cut end [19:54:20]Read from MH i2c: 01 07 00 [19:54:20]MH_I2C_Read... [19:54:20]Read from MH i2c: 01 07 00 A8 60 00 00 00 00 00 FF 0F 1D [19:54:20]process_action close_receipt done [19:54:20]requested_data is exist [19:54:20]produce_requested_data [19:54:20]requested_item fm.sn is exist - process it [19:54:20]wFMCommunicate request_size=4 [19:54:20]MH_SAM_APDU [19:54:20]CAPDU: 80 11 00 00 [19:54:20]Write to MH i2c: E2 08 00 A9 60 80 11 00 00 00 00 00 00 83 [19:54:20]Write i2c OK [19:54:20]MH_I2C_Read... [19:54:20]Read from MH i2c: E2 [19:54:20]MH_I2C_Read... [19:54:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:20]Read from MH i2c: E2 17 00 [19:54:20]MH_I2C_Read... [19:54:20]Read from MH i2c: E2 17 00 A9 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D2 [19:54:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:54:20]wFMCommunicate OK [19:54:20]requested_item fd.num is exist - process it [19:54:20]SAM_PROTO_GetFieldsCounters [19:54:20]wFMCommunicate request_size=4 [19:54:20]MH_SAM_APDU [19:54:20]CAPDU: 80 13 00 00 [19:54:20]Write to MH i2c: E2 08 00 AA 60 80 13 00 00 00 00 00 00 86 [19:54:20]Write i2c OK [19:54:20]MH_I2C_Read... [19:54:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:21]Read from MH i2c: E2 [19:54:21]MH_I2C_Read... [19:54:21]Read from MH i2c: E2 62 00 [19:54:21]MH_I2C_Read... [19:54:21]Read from MH i2c: E2 62 00 AA 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6F 71 00 00 0E 04 04 00 73 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 [19: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 6F 71 00 00 0E 04 04 00 73 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 [19:54:21]wFMCommunicate OK [19:54:21]SAM_PROTO_GetFieldsCounters done [19:54:21]requested_item shift.num is exist - process it [19:54:21]requested_item shift.opened is exist - process it [19:54:21]req_shift_opened [19:54:21]FM_GetShiftState [19:54:21]SAM_PROTO_GetShiftState [19:54:21]wFMCommunicate request_size=4 [19:54:21]MH_SAM_APDU [19:54:21]CAPDU: 80 13 01 00 [19:54:21]Write to MH i2c: E2 08 00 AB 60 80 13 01 00 00 00 00 00 88 [19:54:21]Write i2c OK [19:54:21]MH_I2C_Read... [19:54:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:21]Read from MH i2c: E2 [19:54:21]MH_I2C_Read... [19:54:21]Read from MH i2c: E2 0E 00 [19:54:21]MH_I2C_Read... [19:54:21]Read from MH i2c: E2 0E 00 AB 60 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A1 [19:54:21]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:54:21]wFMCommunicate OK [19:54:21]SAM_PROTO_GetShiftState done [19:54:21]FM_GetShiftState done [19:54:21]req_shift_opened done [19:54:21]requested_item shift.open_date is exist - process it [19:54:21]req_shift_open_date [19:54:21]req_shift_open_date done [19:54:21]produce_requested_data done [19:54:21]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29039,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [19:54:21]process_action_free close_receipt [19:54:21]json_value_free [19:54:21]json_value_free done [19:54:21]process_json_proto returns [19:54:21]Send response to host [19:54:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29039,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [19:54:21]free response buf [19:54:21]execute_script done [19:54:21]execute_script returns [19:54:21]free content buf [19:54:21]Sock 10.Close socket [19:54:21]Sock 10.Thread stoped [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:32]accept exits with 7 [19:56:32]New connection [19:56:32]New thread 3066928484 created [19:56:32]Thread 3066785124 joined [19:56:32]Waiting for new connection... [19:56:32] Sock 7.Parse request [19:56:32]Sock 7.Check first char [19:56:32]Sock 7.First char is OK [19:56:32]request: POST /json_proto HTTP/1.0 [19:56:32]Method: POST [19:56:32]URL: /json_proto [19:56:32]Method is POST - this is cgi request [19:56:32]url: /json_proto [19:56:32]query_string will be loaded in cgi processing [19:56:32]execute_cgi json_proto POST (null) [19:56:32]execute_cgi path=json_proto method=POST [19:56:32]POST find Content-Length [19:56:32]Host: 172.17.33.3:8080 [19:56:32]Content-Length: 670 [19:56:32]Content-Type: application/json [19:56:32] [19:56:32]POST finish read [19:56:32]Found Content-Length = 670 [19:56:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "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:56:32]execute_script... [19:56: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)347407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "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:56:32]POST & json_proto [19:56:32]process_json_proto [19:56:32]json parsed OK: [19:56:32]protocol is kg_v1.0 [19:56:32]action value=close_receipt [19:56:32]process_action close_receipt [19:56:32]cmd_close_receipt [19:56:32]MH_GetDate [19:56:32]Write to MH i2c: F0 00 00 AC 60 FB [19:56:32]Write i2c OK [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: F0 [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: F0 09 00 [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: F0 09 00 AC 60 00 76 E3 1A 66 23 5B 8F 65 4F [19:56:32]GetLastDocTimeStamp 1713038063 [19:56:32]current date 1713038198 [19:56:32]FM_GetShiftState [19:56:32]SAM_PROTO_GetShiftState [19:56:32]wFMCommunicate request_size=4 [19:56:32]MH_SAM_APDU [19:56:32]CAPDU: 80 13 01 00 [19:56:32]Write to MH i2c: E2 08 00 AD 60 80 13 01 00 00 00 00 00 8A [19:56:32]Write i2c OK [19:56:32]MH_I2C_Read... [19:56:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:32]Read from MH i2c: E2 [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: E2 0E 00 [19:56:32]MH_I2C_Read... [19:56:32]Read from MH i2c: E2 0E 00 AD 60 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A3 [19:56:32]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:56:32]wFMCommunicate OK [19:56:32]SAM_PROTO_GetShiftState done [19:56:32]FM_GetShiftState done [19:56:32]opened in 1712967615 [19:56:32]opened+sec_in_day 1713054015 [19:56:32]quantity*price = 50019 [19:56:32]sum+1 = 50021 [19:56:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 247 13.04.2024 19:56 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29040 ФПД: 185942404703673 1/tax-web-control/client/api/v1/ticket?date=20240413T195639&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29040&fm=185942404703673&tin=02508201610067®Number=0000138879044617&sum=50000 [19:56:33]StoreToDocumentArchive [19:56:33]shift 115 fd 29040 [19:56:33]save to /storage/0115/doc_00029040 [19:56:33]save last doc name /storage/0115/doc_00029040 to /storage/kkm_last_doc_name [19:56:33]save OK [19:56:33]Clear old archive folders... [19:56:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:56:33]tlvbuf is 0120E840 [19:56:33]SAM_PROTO_ClearQueue [19:56:33]wFMCommunicate request_size=4 [19:56:33]MH_SAM_APDU [19:56:33]CAPDU: 80 09 00 00 [19:56:33]Write to MH i2c: E2 08 00 BA 60 80 09 00 00 00 00 00 00 8C [19:56:33]Write i2c OK [19:56:33]MH_I2C_Read... [19:56:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:56:33]Read from MH i2c: E2 [19:56:33]MH_I2C_Read... [19:56:33]Read from MH i2c: E2 03 00 [19:56:33]MH_I2C_Read... [19:56:33]Read from MH i2c: E2 03 00 BA 60 00 90 00 8E [19:56:33]RAPDU: 90 00 [19:56:33]wFMCommunicate OK [19:56:33]SAM_PROTO_ClearQueue done [19:56:33]KKMCreateOFDPacket [19:56:33]OFDProtocolAddRootSTLVToBuf [19:56:33]FM_MakeSignedData [19:56:33]FM_MakeSignedData [19:56:33]SAM_PROTO_SignData [19:56:33]wFMCommunicate request_size=4 [19:56:33]MH_SAM_APDU [19:56:33]CAPDU: 80 0D 01 02 [19:56:33]Write to MH i2c: E2 08 00 BB 60 80 0D 01 02 00 00 00 00 94 [19:56:33]Write i2c OK [19:56:33]MH_I2C_Read... [19:56:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:56:33]Read from MH i2c: E2 [19:56:33]MH_I2C_Read... [19:56:33]Read from MH i2c: E2 03 00 [19:56:33]MH_I2C_Read... [19:56:33]Read from MH i2c: E2 03 00 BB 60 00 90 00 8F [19:56:33]RAPDU: 90 00 [19:56:33]wFMCommunicate OK [19:56:33]wFMCommunicate request_size=255 [19:56:33]MH_SAM_APDU [19:56:33]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F7 00 00 00 F4 03 04 00 77 E3 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 70 71 00 00 35 04 06 00 [19:56:33]Write to MH i2c: E2 02 01 BC 60 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F7 00 00 00 F4 03 04 00 77 E3 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 70 71 00 00 35 04 06 00 00 00 0B [19:56:33]Write i2c OK [19:56:33]MH_I2C_Read... [19:56:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:34]Read from MH i2c: E2 [19:56:34]MH_I2C_Read... [19:56:34]Read from MH i2c: E2 03 00 [19:56:34]MH_I2C_Read... [19:56:34]Read from MH i2c: E2 03 00 BC 60 00 90 00 90 [19:56:34]RAPDU: 90 00 [19:56:34]wFMCommunicate OK [19:56:34]wFMCommunicate request_size=11 [19:56:34]MH_SAM_APDU [19:56:34]CAPDU: 80 0D 02 02 06 A9 1D 16 FB 25 B9 [19:56:34]Write to MH i2c: E2 0E 00 BD 60 80 0D 02 02 06 00 A9 1D 16 FB 25 B9 00 00 58 [19:56:34]Write i2c OK [19:56:34]MH_I2C_Read... [19:56:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:34]Read from MH i2c: E2 [19:56:34]MH_I2C_Read... [19:56:34]Read from MH i2c: E2 03 00 [19:56:34]MH_I2C_Read... [19:56:34]Read from MH i2c: E2 03 00 BD 60 00 90 00 91 [19:56:34]RAPDU: 90 00 [19:56:34]wFMCommunicate OK [19:56:34]wFMCommunicate request_size=4 [19:56:34]MH_SAM_APDU [19:56:34]CAPDU: 80 0D 03 02 [19:56:34]Write to MH i2c: E2 08 00 BE 60 80 0D 03 02 00 00 00 00 99 [19:56:34]Write i2c OK [19:56:34]MH_I2C_Read... [19:56:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:56:34]Read from MH i2c: E2 [19:56:34]MH_I2C_Read... [19:56:34]Read from MH i2c: E2 0B 00 [19:56:34]MH_I2C_Read... [19:56:34]Read from MH i2c: E2 0B 00 BE 60 00 E4 60 C1 C8 C3 87 B9 F3 90 00 5D [19:56:34]RAPDU: E4 60 C1 C8 C3 87 B9 F3 90 00 [19:56:34]wFMCommunicate OK [19:56:34]SAM_PROTO_SignData done [19:56:34]FM_MakeSignedData done [19:56:34]CreateOFDProtocolMessage [19:56:34]wFMCommunicate request_size=4 [19:56:34]MH_SAM_APDU [19:56:34]CAPDU: 80 11 00 00 [19:56:34]Write to MH i2c: E2 08 00 BF 60 80 11 00 00 00 00 00 00 99 [19:56:34]Write i2c OK [19:56:34]MH_I2C_Read... [19:56:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:34]Read from MH i2c: E2 [19:56:34]MH_I2C_Read... [19:56:34]Read from MH i2c: E2 17 00 [19:56:34]MH_I2C_Read... [19:56:34]Read from MH i2c: E2 17 00 BF 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E8 [19:56:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:56:34]wFMCommunicate OK [19:56:34]CreateOFDProtocolMessage done [19:56:34]OFDSenderStorePacket 29040 [19:56:34]StoreOFDPacket docnum=29040 [19:56:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 90 1C 08 01 47 93 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F7 00 00 00 F4 03 04 00 77 E3 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 70 71 00 00 35 04 06 00 A9 1D 16 FB 25 B9 E4 60 C1 C8 C3 87 B9 F3 [19:56:34]CheckFolder [19:56:34]dirname=/storage/ofd_packets [19:56:34]CheckFolder done [19:56:34]ProducePacketName [19:56:34]name=ofd_packets/00029040 [19:56:34]NVStorageSaveData ofd_packets/00029040 [19:56:34]File name is /storage/ofd_packets/00029040 [19:56:34]Write 302 bytes [19:56:34]NVStorageSaveData done [19:56:34]OFDSenderStorePacket done [19:56:34]KKMCreateOFDPacket done [19:56:34]NVStorageSaveData kkm_last_timestamp [19:56:34]File name is /storage/kkm_last_timestamp [19:56:34]Write 4 bytes [19:56:34]NVStorageSaveData done [19:56:34]ExternCall_PrintAddStr [19:56:34]wPrintStart [19:56:34]Write to MH i2c: 01 00 00 C0 60 20 [19:56:34]Write i2c OK [19:56:34]MH_I2C_Read... [19:56:34]Read from MH i2c: 01 [19:56:34]MH_I2C_Read... [19:56:34]Read from MH i2c: 01 07 00 [19:56:34]MH_I2C_Read... [19:56:34]Read from MH i2c: 01 07 00 C0 60 00 00 00 00 00 FF 0F 35 [19:56:34]RasterBufferAndPrint [19:56:34]line Счет N : (1)347407 [19:56:34]line ИНН: 02508201610067 [19:56:34]line Контрольно-Кассовый Чек [19:56:34]line ПРОДАЖА [19:56:34]line ТРК (МРК, ГНК) : 31 [19:56:34]line Товар: 2710124130 [19:56:34]line SUPER-92-К-5 [19:56:34]line 7.660 * 65.30 [19:56:34]line = 500.20 [19:56:34]line НДС 12% НСП 1% [19:56:34]line > о реализуемом товаре [19:56:34]line ОКРУГЛЕНИЕ: -0.20 [19:56:34]line ИТОГО: 500.00 [19:56:34]line Внесено: 500.00 [19:56:34]line СДАЧА: 0.00 [19:56:34]line НСП 1% : 4.43 [19:56:34]line НДС 12% : 53.12 [19:56:34]line Наличными: 500.00 [19:56:34]line Безнал.: 0.00 [19:56:34]line Место: АЗС № 108 "Партнер Нефть" [19:56:34]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [19:56:34]line СНО: Общий режим [19:56:34]line Чек 247 13.04.2024 19:56 [19:56:34]line Смена: 115 ФФД: 1.0 [19:56:34]line ЗНМ: 0300000027 [19:56:34]line РНМ: 0000138879044617 [19:56:34]line Версия ККМ: 001 [19:56:34]line ФМ: 0000000000963154 [19:56:34]line ФД: 29040 [19:56:34]line ФПД: 185942404703673 [19:56:34]line 1/tax-web-control/client/api/v1/ticket?date=20240413T195639&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29040&fm=185942404703673&tin=02508201610067®Number=0000138879044617&sum=50000 [19:56:34]OFD Sender: Processing packet 29040 [packets to send 8, broken 7] [19:56:34]ProducePacketName [19:56:34]name=ofd_packets/00029040 [19:56:34]OFD Sender: To server: pG, [19:56:34]CommunicateWithHost lk.salyk.kg:30040 [19:56:34]ConnectInit lk.salyk.kg [19:56:34]written 0, free lines is 4095 [19:56:34]Connected sock=10 [19:56: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 31 35 34 10 01 00 00 90 1C 08 01 47 93 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F7 00 00 00 F4 03 04 00 77 E3 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 70 71 00 00 35 04 06 00 A9 1D 16 FB 25 B9 E4 60 C1 C8 C3 87 B9 F3 [19:56:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 73 20 47 00 BA 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 31 35 34 10 04 04 00 70 71 00 00 F4 03 04 00 1D 8E 1A 66 B6 04 01 00 00 2A C5 61 43 B9 E8 06 3E [19:56:34]CommunicateWithHost err = 0 [19:56:34]CheckOFDResponse [19:56:34]1017 (14) - 77093643461234 [19:56:34]1041 (16) - 0000000000963154 [19:56:34]1040 (4) - 29040 [19:56:34]1012 (4) - 13.04.2024 13:52 [19:56:34]1206 (1) - 0 [19:56:34]OFD Sender: Remove packet 29040 [19:56:34]ProducePacketName [19:56:34]name=ofd_packets/00029040 [19:56:34]NVStorageDeleteData [19:56:35]Write to MH i2c: 01 00 00 EA 60 4A [19:56:35]Write i2c OK [19:56:35]MH_I2C_Read... [19:56:35]Read from MH i2c: 01 [19:56:35]MH_I2C_Read... [19:56:35]Read from MH i2c: 01 07 00 [19:56:35]MH_I2C_Read... [19:56:35]Read from MH i2c: 01 07 00 EA 60 00 00 00 00 00 C4 0C 21 [19:56:35]RasterBufferAndPrint [19:56:35]line [19:56:35]line [19:56:35]line [19:56:35]line [19:56:35]line [19:56:35]written 0, free lines is 3272 [19:56:35]MH_Cut [19:56:35]Write to MH i2c: D1 01 00 F1 60 01 23 [19:56:35]Write i2c OK [19:56:35]MH_I2C_Read... [19:56:35]Read from MH i2c: D1 [19:56:35]MH_I2C_Read... [19:56:35]Read from MH i2c: D1 01 00 [19:56:35]MH_I2C_Read... [19:56:35]Read from MH i2c: D1 01 00 F1 60 00 22 [19:56:35]Write to MH i2c: 01 00 00 F2 60 52 [19:56:35]Write i2c OK [19:56:35]MH_I2C_Read... [19:56:35]OFD Sender: No OFD packet to send [19:56:35]*** Cut start [19:56:35]*** Partial cut [19:56:35]*** CUTSNS_PIN = 1 [19:56:36]*** CUTSNS_PIN = 0 [19:56:36]*** Brake cut motor [19:56:36]Read from MH i2c: 01 [19:56:36]MH_I2C_Read... [19:56:36]*** Stop cut motor [19:56:36]*** Cut end [19:56:36]Read from MH i2c: 01 07 00 [19:56:36]MH_I2C_Read... [19:56:36]Read from MH i2c: 01 07 00 F2 60 00 00 00 00 00 FF 0F 67 [19:56:36]process_action close_receipt done [19:56:36]requested_data is exist [19:56:36]produce_requested_data [19:56:36]requested_item fm.sn is exist - process it [19:56:36]wFMCommunicate request_size=4 [19:56:36]MH_SAM_APDU [19:56:36]CAPDU: 80 11 00 00 [19:56:36]Write to MH i2c: E2 08 00 F3 60 80 11 00 00 00 00 00 00 CD [19:56:36]Write i2c OK [19:56:36]MH_I2C_Read... [19:56:36]Read from MH i2c: E2 [19:56:36]MH_I2C_Read... [19:56:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:36]Read from MH i2c: E2 17 00 [19:56:36]MH_I2C_Read... [19:56:36]Read from MH i2c: E2 17 00 F3 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1C [19:56:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [19:56:36]wFMCommunicate OK [19:56:36]requested_item fd.num is exist - process it [19:56:36]SAM_PROTO_GetFieldsCounters [19:56:36]wFMCommunicate request_size=4 [19:56:36]MH_SAM_APDU [19:56:36]CAPDU: 80 13 00 00 [19:56:36]Write to MH i2c: E2 08 00 F4 60 80 13 00 00 00 00 00 00 D0 [19:56:36]Write i2c OK [19:56:36]MH_I2C_Read... [19:56:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:56:36]Read from MH i2c: E2 [19:56:36]MH_I2C_Read... [19:56:36]Read from MH i2c: E2 62 00 [19:56:36]MH_I2C_Read... [19:56:36]Read from MH i2c: E2 62 00 F4 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 70 71 00 00 0E 04 04 00 73 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 47 [19:56: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 70 71 00 00 0E 04 04 00 73 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 [19:56:36]wFMCommunicate OK [19:56:36]SAM_PROTO_GetFieldsCounters done [19:56:36]requested_item shift.num is exist - process it [19:56:36]requested_item shift.opened is exist - process it [19:56:36]req_shift_opened [19:56:36]FM_GetShiftState [19:56:36]SAM_PROTO_GetShiftState [19:56:36]wFMCommunicate request_size=4 [19:56:36]MH_SAM_APDU [19:56:36]CAPDU: 80 13 01 00 [19:56:36]Write to MH i2c: E2 08 00 F5 60 80 13 01 00 00 00 00 00 D2 [19:56:36]Write i2c OK [19:56:36]MH_I2C_Read... [19:56:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:36]Read from MH i2c: E2 [19:56:36]MH_I2C_Read... [19:56:36]Read from MH i2c: E2 0E 00 [19:56:36]MH_I2C_Read... [19:56:36]Read from MH i2c: E2 0E 00 F5 60 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 EB [19:56:36]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [19:56:36]wFMCommunicate OK [19:56:36]SAM_PROTO_GetShiftState done [19:56:36]FM_GetShiftState done [19:56:36]req_shift_opened done [19:56:36]requested_item shift.open_date is exist - process it [19:56:36]req_shift_open_date [19:56:36]req_shift_open_date done [19:56:36]produce_requested_data done [19:56:36]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29040,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [19:56:36]process_action_free close_receipt [19:56:36]json_value_free [19:56:36]json_value_free done [19:56:36]process_json_proto returns [19:56:36]Send response to host [19:56:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29040,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [19:56:36]free response buf [19:56:36]execute_script done [19:56:36]execute_script returns [19:56:36]free content buf [19:56:36]Sock 7.Close socket [19:56:36]Sock 7.Thread stoped [19:56:40]OFD Sender: No OFD packet to send [19:56:45]OFD Sender: No OFD packet to send [19:56:50]OFD Sender: No OFD packet to send [19:56:55]OFD Sender: No OFD packet to send [19:57:00]OFD Sender: No OFD packet to send [19:57:05]OFD Sender: No OFD packet to send [19:57:10]OFD Sender: No OFD packet to send [19:57:15]OFD Sender: No OFD packet to send [19:57:20]OFD Sender: No OFD packet to send [19:57:25]OFD Sender: No OFD packet to send [19:57:30]OFD Sender: No OFD packet to send [19:57:35]OFD Sender: No OFD packet to send [19:57:40]OFD Sender: No OFD packet to send [19:57:45]OFD Sender: No OFD packet to send [19:57:50]OFD Sender: No OFD packet to send [19:57:55]OFD Sender: No OFD packet to send [19:58:00]OFD Sender: No OFD packet to send [19:58:05]OFD Sender: No OFD packet to send [19:58:10]OFD Sender: No OFD packet to send [19:58:15]OFD Sender: No OFD packet to send [19:58:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:45]OFD Sender: No OFD packet to send [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00: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:50]OFD Sender: No OFD packet to send [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:55]OFD Sender: No OFD packet to send [20:05:00]OFD Sender: No OFD packet to send [20:05:05]OFD Sender: No OFD packet to send [20:05:10]OFD Sender: No OFD packet to send [20:05:15]OFD Sender: No OFD packet to send [20:05:20]OFD Sender: No OFD packet to send [20:05:25]OFD Sender: No OFD packet to send [20:05:30]OFD Sender: No OFD packet to send [20:05:35]OFD Sender: No OFD packet to send [20:05:40]OFD Sender: No OFD packet to send [20:05:45]OFD Sender: No OFD packet to send [20:05:50]OFD Sender: No OFD packet to send [20:05:55]OFD Sender: No OFD packet to send [20:06:00]OFD Sender: No OFD packet to send [20:06:05]OFD Sender: No OFD packet to send [20:06:10]OFD Sender: No OFD packet to send [20:06:15]OFD Sender: No OFD packet to send [20:06:20]OFD Sender: No OFD packet to send [20:06:25]OFD Sender: No OFD packet to send [20:06:30]OFD Sender: No OFD packet to send [20:06:35]OFD Sender: No OFD packet to send [20:06:40]OFD Sender: No OFD packet to send [20:06:45]OFD Sender: No OFD packet to send [20:06:50]OFD Sender: No OFD packet to send [20:06:55]OFD Sender: No OFD packet to send [20:07:00]OFD Sender: No OFD packet to send [20:07:05]OFD Sender: No OFD packet to send [20:07:10]OFD Sender: No OFD packet to send [20:07:15]OFD Sender: No OFD packet to send [20:07:20]OFD Sender: No OFD packet to send [20:07:25]OFD Sender: No OFD packet to send [20:07:30]OFD Sender: No OFD packet to send [20:07:35]OFD Sender: No OFD packet to send [20:07:40]OFD Sender: No OFD packet to send [20:07:45]OFD Sender: No OFD packet to send [20:07:51]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:01]OFD Sender: No OFD packet to send [20:08:06]OFD Sender: No OFD packet to send [20:08:11]OFD Sender: No OFD packet to send [20:08:16]OFD Sender: No OFD packet to send [20:08:21]OFD Sender: No OFD packet to send [20:08:26]OFD Sender: No OFD packet to send [20:08:31]OFD Sender: No OFD packet to send [20:08:36]OFD Sender: No OFD packet to send [20:08:41]OFD Sender: No OFD packet to send [20:08:46]OFD Sender: No OFD packet to send [20:08:51]OFD Sender: No OFD packet to send [20:08:56]OFD Sender: No OFD packet to send [20:09:01]OFD Sender: No OFD packet to send [20:09:06]OFD Sender: No OFD packet to send [20:09:11]OFD Sender: No OFD packet to send [20:09:16]OFD Sender: No OFD packet to send [20:09:21]OFD Sender: No OFD packet to send [20:09:26]OFD Sender: No OFD packet to send [20:09:31]OFD Sender: No OFD packet to send [20:09:36]OFD Sender: No OFD packet to send [20:09:41]OFD Sender: No OFD packet to send [20:09:46]OFD Sender: No OFD packet to send [20:09:51]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [20:10:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10:26]OFD Sender: No OFD packet to send [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:13]accept exits with 9 [20:11:13]New connection [20:11:13]New thread 3066785124 created [20:11:13]Thread 3066928484 joined [20:11:13]Waiting for new connection... [20:11:13] Sock 9.Parse request [20:11:13]Sock 9.Check first char [20:11:13]Sock 9.First char is OK [20:11:13]request: POST /json_proto HTTP/1.0 [20:11:13]Method: POST [20:11:13]URL: /json_proto [20:11:13]Method is POST - this is cgi request [20:11:13]url: /json_proto [20:11:13]query_string will be loaded in cgi processing [20:11:13]execute_cgi json_proto POST (null) [20:11:13]execute_cgi path=json_proto method=POST [20:11:13]POST find Content-Length [20:11:13]Host: 172.17.33.3:8080 [20:11:13]Content-Length: 677 [20:11:13]Content-Type: application/json [20:11:13] [20:11:13]POST finish read [20:11:13]Found Content-Length = 677 [20:11:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347408", "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" : 64.30, "quantity" : 4.670, "sum" : 300.28, "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:11:13]execute_script... [20:11: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)347408", "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" : 64.30, "quantity" : 4.670, "sum" : 300.28, "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:11:13]POST & json_proto [20:11:13]process_json_proto [20:11:13]json parsed OK: [20:11:13]protocol is kg_v1.0 [20:11:13]action value=close_receipt [20:11:13]process_action close_receipt [20:11:13]cmd_close_receipt [20:11:13]MH_GetDate [20:11:13]Write to MH i2c: F0 00 00 F6 60 45 [20:11:13]Write i2c OK [20:11:13]MH_I2C_Read... [20:11:13]Read from MH i2c: F0 [20:11:13]MH_I2C_Read... [20:11:13]Read from MH i2c: F0 09 00 [20:11:13]MH_I2C_Read... [20:11:13]Read from MH i2c: F0 09 00 F6 60 00 E7 E6 1A 66 23 5B 8F 65 0D [20:11:13]GetLastDocTimeStamp 1713038199 [20:11:13]current date 1713039079 [20:11:13]FM_GetShiftState [20:11:13]SAM_PROTO_GetShiftState [20:11:13]wFMCommunicate request_size=4 [20:11:13]MH_SAM_APDU [20:11:13]CAPDU: 80 13 01 00 [20:11:13]Write to MH i2c: E2 08 00 F7 60 80 13 01 00 00 00 00 00 D4 [20:11:13]Write i2c OK [20:11:13]MH_I2C_Read... [20:11:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:13]Read from MH i2c: E2 [20:11:13]MH_I2C_Read... [20:11:13]Read from MH i2c: E2 0E 00 [20:11:13]MH_I2C_Read... [20:11:13]Read from MH i2c: E2 0E 00 F7 60 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 ED [20:11:13]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [20:11:13]wFMCommunicate OK [20:11:13]SAM_PROTO_GetShiftState done [20:11:13]FM_GetShiftState done [20:11:13]opened in 1712967615 [20:11:13]opened+sec_in_day 1713054015 [20:11:13]quantity*price = 30028 [20:11:13]sum+1 = 30029 [20:11:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 248 13.04.2024 20:11 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29041 ФПД: 156553382498686 1/tax-web-control/client/api/v1/ticket?date=20240413T201119&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29041&fm=156553382498686&tin=02508201610067®Number=0000138879044617&sum=30000 [20:11:14]StoreToDocumentArchive [20:11:14]shift 115 fd 29041 [20:11:14]save to /storage/0115/doc_00029041 [20:11:14]save last doc name /storage/0115/doc_00029041 to /storage/kkm_last_doc_name [20:11:14]save OK [20:11:14]Clear old archive folders... [20:11:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:11:14]tlvbuf is 012143A0 [20:11:14]SAM_PROTO_ClearQueue [20:11:14]wFMCommunicate request_size=4 [20:11:14]MH_SAM_APDU [20:11:14]CAPDU: 80 09 00 00 [20:11:14]Write to MH i2c: E2 08 00 04 61 80 09 00 00 00 00 00 00 D7 [20:11:14]Write i2c OK [20:11:14]MH_I2C_Read... [20:11:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:11:14]Read from MH i2c: E2 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 03 00 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 03 00 04 61 00 90 00 D9 [20:11:14]RAPDU: 90 00 [20:11:14]wFMCommunicate OK [20:11:14]SAM_PROTO_ClearQueue done [20:11:14]KKMCreateOFDPacket [20:11:14]OFDProtocolAddRootSTLVToBuf [20:11:14]FM_MakeSignedData [20:11:14]FM_MakeSignedData [20:11:14]SAM_PROTO_SignData [20:11:14]wFMCommunicate request_size=4 [20:11:14]MH_SAM_APDU [20:11:14]CAPDU: 80 0D 01 02 [20:11:14]Write to MH i2c: E2 08 00 05 61 80 0D 01 02 00 00 00 00 DF [20:11:14]Write i2c OK [20:11:14]MH_I2C_Read... [20:11:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:11:14]Read from MH i2c: E2 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 03 00 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 03 00 05 61 00 90 00 DA [20:11:14]RAPDU: 90 00 [20:11:14]wFMCommunicate OK [20:11:14]wFMCommunicate request_size=255 [20:11:14]MH_SAM_APDU [20:11: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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 E7 E6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 71 71 00 00 35 04 06 00 8E [20:11:14]Write to MH i2c: E2 02 01 06 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 E7 E6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 71 71 00 00 35 04 06 00 8E 00 00 4C [20:11:14]Write i2c OK [20:11:14]MH_I2C_Read... [20:11:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:14]Read from MH i2c: E2 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 03 00 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 03 00 06 61 00 90 00 DB [20:11:14]RAPDU: 90 00 [20:11:14]wFMCommunicate OK [20:11:14]wFMCommunicate request_size=10 [20:11:14]MH_SAM_APDU [20:11:14]CAPDU: 80 0D 02 02 05 62 6C C0 91 7E [20:11:14]Write to MH i2c: E2 0D 00 07 61 80 0D 02 02 05 00 62 6C C0 91 7E 00 00 89 [20:11:14]Write i2c OK [20:11:14]MH_I2C_Read... [20:11:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:14]Read from MH i2c: E2 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 03 00 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 03 00 07 61 00 90 00 DC [20:11:14]RAPDU: 90 00 [20:11:14]wFMCommunicate OK [20:11:14]wFMCommunicate request_size=4 [20:11:14]MH_SAM_APDU [20:11:14]CAPDU: 80 0D 03 02 [20:11:14]Write to MH i2c: E2 08 00 08 61 80 0D 03 02 00 00 00 00 E4 [20:11:14]Write i2c OK [20:11:14]MH_I2C_Read... [20:11:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:11:14]Read from MH i2c: E2 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 0B 00 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 0B 00 08 61 00 7F 2A E0 67 6A 56 9C 18 90 00 49 [20:11:14]RAPDU: 7F 2A E0 67 6A 56 9C 18 90 00 [20:11:14]wFMCommunicate OK [20:11:14]SAM_PROTO_SignData done [20:11:14]FM_MakeSignedData done [20:11:14]CreateOFDProtocolMessage [20:11:14]wFMCommunicate request_size=4 [20:11:14]MH_SAM_APDU [20:11:14]CAPDU: 80 11 00 00 [20:11:14]Write to MH i2c: E2 08 00 09 61 80 11 00 00 00 00 00 00 E4 [20:11:14]Write i2c OK [20:11:14]MH_I2C_Read... [20:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:15]Read from MH i2c: E2 [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: E2 17 00 [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: E2 17 00 09 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 33 [20:11:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:11:15]wFMCommunicate OK [20:11:15]CreateOFDProtocolMessage done [20:11:15]OFDSenderStorePacket 29041 [20:11:15]StoreOFDPacket docnum=29041 [20:11:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 38 1F 07 01 A5 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 E7 E6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 71 71 00 00 35 04 06 00 8E 62 6C C0 91 7E 7F 2A E0 67 6A 56 9C 18 [20:11:15]CheckFolder [20:11:15]dirname=/storage/ofd_packets [20:11:15]CheckFolder done [20:11:15]ProducePacketName [20:11:15]name=ofd_packets/00029041 [20:11:15]NVStorageSaveData ofd_packets/00029041 [20:11:15]File name is /storage/ofd_packets/00029041 [20:11:15]Write 301 bytes [20:11:15]NVStorageSaveData done [20:11:15]OFDSenderStorePacket done [20:11:15]KKMCreateOFDPacket done [20:11:15]NVStorageSaveData kkm_last_timestamp [20:11:15]File name is /storage/kkm_last_timestamp [20:11:15]Write 4 bytes [20:11:15]NVStorageSaveData done [20:11:15]ExternCall_PrintAddStr [20:11:15]wPrintStart [20:11:15]Write to MH i2c: 01 00 00 0A 61 6B [20:11:15]Write i2c OK [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: 01 [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: 01 07 00 [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: 01 07 00 0A 61 00 00 00 00 00 FF 0F 80 [20:11:15]RasterBufferAndPrint [20:11:15]line Счет N : (1)347408 [20:11:15]line ИНН: 02508201610067 [20:11:15]line Контрольно-Кассовый Чек [20:11:15]line ПРОДАЖА [20:11:15]line ТРК (МРК, ГНК) : 42 [20:11:15]line Товар: 2710124130 [20:11:15]line Аи-92-К-5 [20:11:15]line 4.670 * 64.30 [20:11:15]line = 300.28 [20:11:15]line НДС 12% НСП 1% [20:11:15]line > о реализуемом товаре [20:11:15]line ОКРУГЛЕНИЕ: -0.28 [20:11:15]line ИТОГО: 300.00 [20:11:15]line Внесено: 300.00 [20:11:15]line СДАЧА: 0.00 [20:11:15]line НСП 1% : 2.66 [20:11:15]line НДС 12% : 31.89 [20:11:15]line Наличными: 300.00 [20:11:15]line Безнал.: 0.00 [20:11:15]line Место: АЗС № 108 "Партнер Нефть" [20:11:15]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:11:15]line СНО: Общий режим [20:11:15]line Чек 248 13.04.2024 20:11 [20:11:15]line Смена: 115 ФФД: 1.0 [20:11:15]line ЗНМ: 0300000027 [20:11:15]line РНМ: 0000138879044617 [20:11:15]line Версия ККМ: 001 [20:11:15]line ФМ: 0000000000963154 [20:11:15]line ФД: 29041 [20:11:15]line ФПД: 156553382498686 [20:11:15]line 1/tax-web-control/client/api/v1/ticket?date=20240413T201119&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29041&fm=156553382498686&tin=02508201610067®Number=0000138879044617&sum=30000 [20:11:15]OFD Sender: Processing packet 29041 [packets to send 8, broken 7] [20:11:15]ProducePacketName [20:11:15]name=ofd_packets/00029041 [20:11:15]OFD Sender: To server: pG, [20:11:15]CommunicateWithHost lk.salyk.kg:30040 [20:11:15]ConnectInit lk.salyk.kg [20:11:15]written 0, free lines is 4095 [20:11:15]Connected sock=10 [20:11: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 31 35 34 0F 01 00 00 38 1F 07 01 A5 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 E7 E6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 71 71 00 00 35 04 06 00 8E 62 6C C0 91 7E 7F 2A E0 67 6A 56 9C 18 [20:11:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 50 44 47 00 03 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 31 35 34 10 04 04 00 71 71 00 00 F4 03 04 00 8D 91 1A 66 B6 04 01 00 00 B3 3D E6 5E 95 7E 20 EA [20:11:15]CommunicateWithHost err = 0 [20:11:15]CheckOFDResponse [20:11:15]1017 (14) - 77093643461234 [20:11:15]1041 (16) - 0000000000963154 [20:11:15]1040 (4) - 29041 [20:11:15]1012 (4) - 13.04.2024 14:07 [20:11:15]1206 (1) - 0 [20:11:15]OFD Sender: Remove packet 29041 [20:11:15]ProducePacketName [20:11:15]name=ofd_packets/00029041 [20:11:15]NVStorageDeleteData [20:11:15]Write to MH i2c: 01 00 00 34 61 95 [20:11:15]Write i2c OK [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: 01 [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: 01 07 00 [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: 01 07 00 34 61 00 00 00 00 00 C4 0C 6C [20:11:15]RasterBufferAndPrint [20:11:15]line [20:11:15]line [20:11:15]line [20:11:15]line [20:11:15]line [20:11:15]written 0, free lines is 3274 [20:11:15]MH_Cut [20:11:15]Write to MH i2c: D1 01 00 3B 61 01 6E [20:11:15]Write i2c OK [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: D1 [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: D1 01 00 [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: D1 01 00 3B 61 00 6D [20:11:15]Write to MH i2c: 01 00 00 3C 61 9D [20:11:15]Write i2c OK [20:11:15]MH_I2C_Read... [20:11:16]OFD Sender: No OFD packet to send [20:11:16]*** Cut start [20:11:16]*** Partial cut [20:11:16]*** CUTSNS_PIN = 1 [20:11:16]*** CUTSNS_PIN = 0 [20:11:16]*** Brake cut motor [20:11:17]Read from MH i2c: 01 [20:11:17]MH_I2C_Read... [20:11:17]*** Stop cut motor [20:11:17]*** Cut end [20:11:17]Read from MH i2c: 01 07 00 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: 01 07 00 3C 61 00 00 00 00 00 FF 0F B2 [20:11:17]process_action close_receipt done [20:11:17]requested_data is exist [20:11:17]produce_requested_data [20:11:17]requested_item fm.sn is exist - process it [20:11:17]wFMCommunicate request_size=4 [20:11:17]MH_SAM_APDU [20:11:17]CAPDU: 80 11 00 00 [20:11:17]Write to MH i2c: E2 08 00 3D 61 80 11 00 00 00 00 00 00 18 [20:11:17]Write i2c OK [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: E2 [20:11:17]MH_I2C_Read... [20:11:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:17]Read from MH i2c: E2 17 00 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: E2 17 00 3D 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 67 [20:11:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:11:17]wFMCommunicate OK [20:11:17]requested_item fd.num is exist - process it [20:11:17]SAM_PROTO_GetFieldsCounters [20:11:17]wFMCommunicate request_size=4 [20:11:17]MH_SAM_APDU [20:11:17]CAPDU: 80 13 00 00 [20:11:17]Write to MH i2c: E2 08 00 3E 61 80 13 00 00 00 00 00 00 1B [20:11:17]Write i2c OK [20:11:17]MH_I2C_Read... [20:11:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:11:17]Read from MH i2c: E2 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: E2 62 00 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: E2 62 00 3E 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 71 71 00 00 0E 04 04 00 73 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 [20:11: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 71 71 00 00 0E 04 04 00 73 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 [20:11:17]wFMCommunicate OK [20:11:17]SAM_PROTO_GetFieldsCounters done [20:11:17]requested_item shift.num is exist - process it [20:11:17]requested_item shift.opened is exist - process it [20:11:17]req_shift_opened [20:11:17]FM_GetShiftState [20:11:17]SAM_PROTO_GetShiftState [20:11:17]wFMCommunicate request_size=4 [20:11:17]MH_SAM_APDU [20:11:17]CAPDU: 80 13 01 00 [20:11:17]Write to MH i2c: E2 08 00 3F 61 80 13 01 00 00 00 00 00 1D [20:11:17]Write i2c OK [20:11:17]MH_I2C_Read... [20:11:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:17]Read from MH i2c: E2 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: E2 0E 00 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: E2 0E 00 3F 61 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 36 [20:11:17]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [20:11:17]wFMCommunicate OK [20:11:17]SAM_PROTO_GetShiftState done [20:11:17]FM_GetShiftState done [20:11:17]req_shift_opened done [20:11:17]requested_item shift.open_date is exist - process it [20:11:17]req_shift_open_date [20:11:17]req_shift_open_date done [20:11:17]produce_requested_data done [20:11:17]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29041,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [20:11:17]process_action_free close_receipt [20:11:17]json_value_free [20:11:17]json_value_free done [20:11:17]process_json_proto returns [20:11:17]Send response to host [20:11:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29041,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [20:11:17]free response buf [20:11:17]execute_script done [20:11:17]execute_script returns [20:11:17]free content buf [20:11:17]Sock 9.Close socket [20:11:17]Sock 9.Thread stoped [20:11:21]OFD Sender: No OFD packet to send [20:11:26]OFD Sender: No OFD packet to send [20:11:31]OFD Sender: No OFD packet to send [20:11:36]OFD Sender: No OFD packet to send [20:11:41]OFD Sender: No OFD packet to send [20:11:46]OFD Sender: No OFD packet to send [20:11:51]OFD Sender: No OFD packet to send [20:11:56]OFD Sender: No OFD packet to send [20:12:01]OFD Sender: No OFD packet to send [20:12:06]OFD Sender: No OFD packet to send [20:12:11]OFD Sender: No OFD packet to send [20:12:16]OFD Sender: No OFD packet to send [20:12:21]OFD Sender: No OFD packet to send [20:12:26]OFD Sender: No OFD packet to send [20:12:31]OFD Sender: No OFD packet to send [20:12:36]OFD Sender: No OFD packet to send [20:12:41]OFD Sender: No OFD packet to send [20:12:46]OFD Sender: No OFD packet to send [20:12:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:06]OFD Sender: No OFD packet to send [20:13:11]OFD Sender: No OFD packet to send [20:13:16]OFD Sender: No OFD packet to send [20:13:21]OFD Sender: No OFD packet to send [20:13:26]OFD Sender: No OFD packet to send [20:13:31]OFD Sender: No OFD packet to send [20:13:36]OFD Sender: No OFD packet to send [20:13:41]OFD Sender: No OFD packet to send [20:13:46]OFD Sender: No OFD packet to send [20:13:51]OFD Sender: No OFD packet to send [20:13:56]OFD Sender: No OFD packet to send [20:14:01]OFD Sender: No OFD packet to send [20:14:06]OFD Sender: No OFD packet to send [20:14:11]OFD Sender: No OFD packet to send [20:14:16]OFD Sender: No OFD packet to send [20:14:21]OFD Sender: No OFD packet to send [20:14:26]OFD Sender: No OFD packet to send [20:14:31]OFD Sender: No OFD packet to send [20:14:36]OFD Sender: No OFD packet to send [20:14:41]OFD Sender: No OFD packet to send [20:14:46]OFD Sender: No OFD packet to send [20:14:51]OFD Sender: No OFD packet to send [20:14:56]OFD Sender: No OFD packet to send [20:15:01]OFD Sender: No OFD packet to send [20:15:06]OFD Sender: No OFD packet to send [20:15:11]OFD Sender: No OFD packet to send [20:15:16]OFD Sender: No OFD packet to send [20:15:21]OFD Sender: No OFD packet to send [20:15:26]OFD Sender: No OFD packet to send [20:15:31]OFD Sender: No OFD packet to send [20:15:36]OFD Sender: No OFD packet to send [20:15:41]OFD Sender: No OFD packet to send [20:15:46]OFD Sender: No OFD packet to send [20:15:51]OFD Sender: No OFD packet to send [20:15:56]OFD Sender: No OFD packet to send [20:16:01]OFD Sender: No OFD packet to send [20:16:06]OFD Sender: No OFD packet to send [20:16:11]OFD Sender: No OFD packet to send [20:16:16]OFD Sender: No OFD packet to send [20:16:21]OFD Sender: No OFD packet to send [20:16:26]OFD Sender: No OFD packet to send [20:16:31]OFD Sender: No OFD packet to send [20:16:36]OFD Sender: No OFD packet to send [20:16:41]OFD Sender: No OFD packet to send [20:16:46]OFD Sender: No OFD packet to send [20:16:51]OFD Sender: No OFD packet to send [20:16:56]OFD Sender: No OFD packet to send [20:17:01]OFD Sender: No OFD packet to send [20:17:06]OFD Sender: No OFD packet to send [20:17:11]OFD Sender: No OFD packet to send [20:17:16]OFD Sender: No OFD packet to send [20:17:21]OFD Sender: No OFD packet to send [20:17:26]OFD Sender: No OFD packet to send [20:17:31]OFD Sender: No OFD packet to send [20:17:36]OFD Sender: No OFD packet to send [20:17:41]OFD Sender: No OFD packet to send [20:17:46]OFD Sender: No OFD packet to send [20:17:51]OFD Sender: No OFD packet to send [20:17:56]OFD Sender: No OFD packet to send [20:17:58]accept exits with 7 [20:17:58]New connection [20:17:58]New thread 3066928484 created [20:17:58]Thread 3066785124 joined [20:17:58]Waiting for new connection... [20:17:58] Sock 7.Parse request [20:17:58]Sock 7.Check first char [20:17:58]Sock 7.First char is OK [20:17:58]request: POST /json_proto HTTP/1.0 [20:17:58]Method: POST [20:17:58]URL: /json_proto [20:17:58]Method is POST - this is cgi request [20:17:58]url: /json_proto [20:17:58]query_string will be loaded in cgi processing [20:17:58]execute_cgi json_proto POST (null) [20:17:58]execute_cgi path=json_proto method=POST [20:17:58]POST find Content-Length [20:17:58]Host: 172.17.33.3:8080 [20:17:58]Content-Length: 681 [20:17:58]Content-Type: application/json [20:17:58] [20:17:58]POST finish read [20:17:58]Found Content-Length = 681 [20:17:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 15.200, "sum" : 500.08, "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:17:58]execute_script... [20: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)347409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 15.200, "sum" : 500.08, "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:17:58]POST & json_proto [20:17:58]process_json_proto [20:17:58]json parsed OK: [20:17:58]protocol is kg_v1.0 [20:17:58]action value=close_receipt [20:17:58]process_action close_receipt [20:17:58]cmd_close_receipt [20:17:58]MH_GetDate [20:17:58]Write to MH i2c: F0 00 00 40 61 90 [20:17:58]Write i2c OK [20:17:58]MH_I2C_Read... [20:17:58]Read from MH i2c: F0 [20:17:58]MH_I2C_Read... [20:17:58]Read from MH i2c: F0 09 00 [20:17:58]MH_I2C_Read... [20:17:58]Read from MH i2c: F0 09 00 40 61 00 7C E8 1A 66 23 5B 8F 65 EF [20:17:58]GetLastDocTimeStamp 1713039079 [20:17:58]current date 1713039484 [20:17:58]FM_GetShiftState [20:17:58]SAM_PROTO_GetShiftState [20:17:58]wFMCommunicate request_size=4 [20:17:58]MH_SAM_APDU [20:17:58]CAPDU: 80 13 01 00 [20:17:58]Write to MH i2c: E2 08 00 41 61 80 13 01 00 00 00 00 00 1F [20:17:58]Write i2c OK [20:17:58]MH_I2C_Read... [20:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:58]Read from MH i2c: E2 [20:17:58]MH_I2C_Read... [20:17:58]Read from MH i2c: E2 0E 00 [20:17:58]MH_I2C_Read... [20:17:58]Read from MH i2c: E2 0E 00 41 61 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 38 [20:17:58]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [20:17:58]wFMCommunicate OK [20:17:58]SAM_PROTO_GetShiftState done [20:17:58]FM_GetShiftState done [20:17:58]opened in 1712967615 [20:17:58]opened+sec_in_day 1713054015 [20:17:58]quantity*price = 50008 [20:17:58]sum+1 = 50009 [20:17:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 249 13.04.2024 20:18 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29042 ФПД: 156139375588783 1/tax-web-control/client/api/v1/ticket?date=20240413T201804&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29042&fm=156139375588783&tin=02508201610067®Number=0000138879044617&sum=50000 [20:17:59]StoreToDocumentArchive [20:17:59]shift 115 fd 29042 [20:17:59]save to /storage/0115/doc_00029042 [20:17:59]save last doc name /storage/0115/doc_00029042 to /storage/kkm_last_doc_name [20:17:59]save OK [20:17:59]Clear old archive folders... [20:17:59]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:17:59]tlvbuf is 0120E820 [20:17:59]SAM_PROTO_ClearQueue [20:17:59]wFMCommunicate request_size=4 [20:17:59]MH_SAM_APDU [20:17:59]CAPDU: 80 09 00 00 [20:17:59]Write to MH i2c: E2 08 00 4E 61 80 09 00 00 00 00 00 00 21 [20:17:59]Write i2c OK [20:17:59]MH_I2C_Read... [20:17:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:17:59]Read from MH i2c: E2 [20:17:59]MH_I2C_Read... [20:17:59]Read from MH i2c: E2 03 00 [20:17:59]MH_I2C_Read... [20:17:59]Read from MH i2c: E2 03 00 4E 61 00 90 00 23 [20:17:59]RAPDU: 90 00 [20:17:59]wFMCommunicate OK [20:17:59]SAM_PROTO_ClearQueue done [20:17:59]KKMCreateOFDPacket [20:17:59]OFDProtocolAddRootSTLVToBuf [20:17:59]FM_MakeSignedData [20:17:59]FM_MakeSignedData [20:17:59]SAM_PROTO_SignData [20:17:59]wFMCommunicate request_size=4 [20:17:59]MH_SAM_APDU [20:17:59]CAPDU: 80 0D 01 02 [20:17:59]Write to MH i2c: E2 08 00 4F 61 80 0D 01 02 00 00 00 00 29 [20:17:59]Write i2c OK [20:17:59]MH_I2C_Read... [20:17:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:17:59]Read from MH i2c: E2 [20:17:59]MH_I2C_Read... [20:17:59]Read from MH i2c: E2 03 00 [20:17:59]MH_I2C_Read... [20:17:59]Read from MH i2c: E2 03 00 4F 61 00 90 00 24 [20:17:59]RAPDU: 90 00 [20:17:59]wFMCommunicate OK [20:17:59]wFMCommunicate request_size=255 [20:17:59]MH_SAM_APDU [20:17:59]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 F9 00 00 00 F4 03 04 00 7C E8 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 72 71 00 00 35 04 06 00 8E 02 [20:17:59]Write to MH i2c: E2 02 01 50 61 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 F9 00 00 00 F4 03 04 00 7C E8 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 72 71 00 00 35 04 06 00 8E 02 00 00 13 [20:17:59]Write i2c OK [20:17:59]MH_I2C_Read... [20:17:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:59]Read from MH i2c: E2 [20:17:59]MH_I2C_Read... [20:17:59]Read from MH i2c: E2 03 00 [20:17:59]MH_I2C_Read... [20:17:59]Read from MH i2c: E2 03 00 50 61 00 90 00 25 [20:17:59]RAPDU: 90 00 [20:17:59]wFMCommunicate OK [20:17:59]wFMCommunicate request_size=9 [20:17:59]MH_SAM_APDU [20:17:59]CAPDU: 80 0D 02 02 04 08 04 75 AF [20:17:59]Write to MH i2c: E2 0C 00 51 61 80 0D 02 02 04 00 08 04 75 AF 00 00 64 [20:17:59]Write i2c OK [20:17:59]MH_I2C_Read... [20:17:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:59]Read from MH i2c: E2 [20:17:59]MH_I2C_Read... [20:17:59]Read from MH i2c: E2 03 00 [20:17:59]MH_I2C_Read... [20:17:59]Read from MH i2c: E2 03 00 51 61 00 90 00 26 [20:17:59]RAPDU: 90 00 [20:17:59]wFMCommunicate OK [20:17:59]wFMCommunicate request_size=4 [20:17:59]MH_SAM_APDU [20:17:59]CAPDU: 80 0D 03 02 [20:17:59]Write to MH i2c: E2 08 00 52 61 80 0D 03 02 00 00 00 00 2E [20:17:59]Write i2c OK [20:17:59]MH_I2C_Read... [20:17:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:17:59]Read from MH i2c: E2 [20:17:59]MH_I2C_Read... [20:17:59]Read from MH i2c: E2 0B 00 [20:17:59]MH_I2C_Read... [20:17:59]Read from MH i2c: E2 0B 00 52 61 00 BA 10 33 84 6C 3E BF 2A 90 00 43 [20:17:59]RAPDU: BA 10 33 84 6C 3E BF 2A 90 00 [20:17:59]wFMCommunicate OK [20:17:59]SAM_PROTO_SignData done [20:17:59]FM_MakeSignedData done [20:17:59]CreateOFDProtocolMessage [20:17:59]wFMCommunicate request_size=4 [20:17:59]MH_SAM_APDU [20:17:59]CAPDU: 80 11 00 00 [20:17:59]Write to MH i2c: E2 08 00 53 61 80 11 00 00 00 00 00 00 2E [20:17:59]Write i2c OK [20:17:59]MH_I2C_Read... [20:18:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:00]Read from MH i2c: E2 [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: E2 17 00 [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: E2 17 00 53 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7D [20:18:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:18:00]wFMCommunicate OK [20:18:00]CreateOFDProtocolMessage done [20:18:00]OFDSenderStorePacket 29042 [20:18:00]StoreOFDPacket docnum=29042 [20:18:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 9D 82 06 01 8E 58 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 F9 00 00 00 F4 03 04 00 7C E8 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 72 71 00 00 35 04 06 00 8E 02 08 04 75 AF BA 10 33 84 6C 3E BF 2A [20:18:00]CheckFolder [20:18:00]dirname=/storage/ofd_packets [20:18:00]CheckFolder done [20:18:00]ProducePacketName [20:18:00]name=ofd_packets/00029042 [20:18:00]NVStorageSaveData ofd_packets/00029042 [20:18:00]File name is /storage/ofd_packets/00029042 [20:18:00]Write 300 bytes [20:18:00]NVStorageSaveData done [20:18:00]OFDSenderStorePacket done [20:18:00]KKMCreateOFDPacket done [20:18:00]NVStorageSaveData kkm_last_timestamp [20:18:00]File name is /storage/kkm_last_timestamp [20:18:00]Write 4 bytes [20:18:00]NVStorageSaveData done [20:18:00]ExternCall_PrintAddStr [20:18:00]wPrintStart [20:18:00]Write to MH i2c: 01 00 00 54 61 B5 [20:18:00]Write i2c OK [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: 01 [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: 01 07 00 [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: 01 07 00 54 61 00 00 00 00 00 FF 0F CA [20:18:00]RasterBufferAndPrint [20:18:00]line Счет N : (1)347409 [20:18:00]line ИНН: 02508201610067 [20:18:00]line Контрольно-Кассовый Чек [20:18:00]line ПРОДАЖА [20:18:00]line ТРК (МРК, ГНК) : 71 [20:18:00]line Товар: 2711129700 [20:18:00]line ГАЗ-К-5 [20:18:00]line 15.200 * 32.90 [20:18:00]line = 500.08 [20:18:00]line НДС 12% НСП 1% [20:18:00]line > о реализуемом товаре [20:18:00]line ОКРУГЛЕНИЕ: -0.08 [20:18:00]line ИТОГО: 500.00 [20:18:00]line Внесено: 500.00 [20:18:00]line СДАЧА: 0.00 [20:18:00]line НСП 1% : 4.42 [20:18:00]line НДС 12% : 53.11 [20:18:00]line Наличными: 500.00 [20:18:00]line Безнал.: 0.00 [20:18:00]line Место: АЗС № 108 "Партнер Нефть" [20:18:00]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:18:00]line СНО: Общий режим [20:18:00]line Чек 249 13.04.2024 20:18 [20:18:00]line Смена: 115 ФФД: 1.0 [20:18:00]line ЗНМ: 0300000027 [20:18:00]line РНМ: 0000138879044617 [20:18:00]line Версия ККМ: 001 [20:18:00]line ФМ: 0000000000963154 [20:18:00]line ФД: 29042 [20:18:00]line ФПД: 156139375588783 [20:18:00]line 1/tax-web-control/client/api/v1/ticket?date=20240413T201804&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29042&fm=156139375588783&tin=02508201610067®Number=0000138879044617&sum=50000 [20:18:00]OFD Sender: Processing packet 29042 [packets to send 8, broken 7] [20:18:00]ProducePacketName [20:18:00]name=ofd_packets/00029042 [20:18:00]OFD Sender: To server: pG, [20:18:00]CommunicateWithHost lk.salyk.kg:30040 [20:18:00]ConnectInit lk.salyk.kg [20:18:00]written 0, free lines is 4095 [20:18:00]Connected sock=10 [20: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 31 35 34 0E 01 00 00 9D 82 06 01 8E 58 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 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 F9 00 00 00 F4 03 04 00 7C E8 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 72 71 00 00 35 04 06 00 8E 02 08 04 75 AF BA 10 33 84 6C 3E BF 2A [20: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 31 35 34 4F 00 00 00 2B 56 47 00 53 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 31 35 34 10 04 04 00 72 71 00 00 F4 03 04 00 22 93 1A 66 B6 04 01 00 00 88 EB 0C B1 43 56 96 15 [20:18:00]CommunicateWithHost err = 0 [20:18:00]CheckOFDResponse [20:18:00]1017 (14) - 77093643461234 [20:18:00]1041 (16) - 0000000000963154 [20:18:00]1040 (4) - 29042 [20:18:00]1012 (4) - 13.04.2024 14:13 [20:18:00]1206 (1) - 0 [20:18:00]OFD Sender: Remove packet 29042 [20:18:00]ProducePacketName [20:18:00]name=ofd_packets/00029042 [20:18:00]NVStorageDeleteData [20:18:00]Write to MH i2c: 01 00 00 7E 61 DF [20:18:00]Write i2c OK [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: 01 [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: 01 07 00 [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: 01 07 00 7E 61 00 00 00 00 00 C4 0C B6 [20:18:00]RasterBufferAndPrint [20:18:00]line [20:18:00]line [20:18:00]line [20:18:00]line [20:18:00]line [20:18:00]written 0, free lines is 3272 [20:18:00]MH_Cut [20:18:00]Write to MH i2c: D1 01 00 85 61 01 B8 [20:18:00]Write i2c OK [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: D1 [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: D1 01 00 [20:18:00]MH_I2C_Read... [20:18:00]Read from MH i2c: D1 01 00 85 61 00 B7 [20:18:00]Write to MH i2c: 01 00 00 86 61 E7 [20:18:00]Write i2c OK [20:18:00]MH_I2C_Read... [20:18:01]OFD Sender: No OFD packet to send [20:18:01]*** Cut start [20:18:01]*** Partial cut [20:18:01]*** CUTSNS_PIN = 1 [20:18:01]*** CUTSNS_PIN = 0 [20:18:01]*** Brake cut motor [20:18:02]Read from MH i2c: 01 [20:18:02]MH_I2C_Read... [20:18:02]*** Stop cut motor [20:18:02]*** Cut end [20:18:02]Read from MH i2c: 01 07 00 [20:18:02]MH_I2C_Read... [20:18:02]Read from MH i2c: 01 07 00 86 61 00 00 00 00 00 FF 0F FC [20:18:02]process_action close_receipt done [20:18:02]requested_data is exist [20:18:02]produce_requested_data [20:18:02]requested_item fm.sn is exist - process it [20:18:02]wFMCommunicate request_size=4 [20:18:02]MH_SAM_APDU [20:18:02]CAPDU: 80 11 00 00 [20:18:02]Write to MH i2c: E2 08 00 87 61 80 11 00 00 00 00 00 00 62 [20:18:02]Write i2c OK [20:18:02]MH_I2C_Read... [20:18:02]Read from MH i2c: E2 [20:18:02]MH_I2C_Read... [20:18:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:02]Read from MH i2c: E2 17 00 [20:18:02]MH_I2C_Read... [20:18:02]Read from MH i2c: E2 17 00 87 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B1 [20:18:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:18:02]wFMCommunicate OK [20:18:02]requested_item fd.num is exist - process it [20:18:02]SAM_PROTO_GetFieldsCounters [20:18:02]wFMCommunicate request_size=4 [20:18:02]MH_SAM_APDU [20:18:02]CAPDU: 80 13 00 00 [20:18:02]Write to MH i2c: E2 08 00 88 61 80 13 00 00 00 00 00 00 65 [20:18:02]Write i2c OK [20:18:02]MH_I2C_Read... [20:18:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:02]Read from MH i2c: E2 [20:18:02]MH_I2C_Read... [20:18:02]Read from MH i2c: E2 62 00 [20:18:02]MH_I2C_Read... [20:18:02]Read from MH i2c: E2 62 00 88 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 72 71 00 00 0E 04 04 00 73 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 E4 [20: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 72 71 00 00 0E 04 04 00 73 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 [20:18:02]wFMCommunicate OK [20:18:02]SAM_PROTO_GetFieldsCounters done [20:18:02]requested_item shift.num is exist - process it [20:18:02]requested_item shift.opened is exist - process it [20:18:02]req_shift_opened [20:18:02]FM_GetShiftState [20:18:02]SAM_PROTO_GetShiftState [20:18:02]wFMCommunicate request_size=4 [20:18:02]MH_SAM_APDU [20:18:02]CAPDU: 80 13 01 00 [20:18:02]Write to MH i2c: E2 08 00 89 61 80 13 01 00 00 00 00 00 67 [20:18:02]Write i2c OK [20:18:02]MH_I2C_Read... [20:18:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:02]Read from MH i2c: E2 [20:18:02]MH_I2C_Read... [20:18:02]Read from MH i2c: E2 0E 00 [20:18:02]MH_I2C_Read... [20:18:02]Read from MH i2c: E2 0E 00 89 61 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 80 [20:18:02]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [20:18:02]wFMCommunicate OK [20:18:02]SAM_PROTO_GetShiftState done [20:18:02]FM_GetShiftState done [20:18:02]req_shift_opened done [20:18:02]requested_item shift.open_date is exist - process it [20:18:02]req_shift_open_date [20:18:02]req_shift_open_date done [20:18:02]produce_requested_data done [20:18:02]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29042,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [20:18:02]process_action_free close_receipt [20:18:02]json_value_free [20:18:02]json_value_free done [20:18:02]process_json_proto returns [20:18:02]Send response to host [20:18:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29042,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [20:18:02]free response buf [20:18:02]execute_script done [20:18:02]execute_script returns [20:18:02]free content buf [20:18:02]Sock 7.Close socket [20:18:02]Sock 7.Thread stoped [20:18:06]OFD Sender: No OFD packet to send [20:18:11]OFD Sender: No OFD packet to send [20:18:16]OFD Sender: No OFD packet to send [20:18:21]OFD Sender: No OFD packet to send [20:18:26]OFD Sender: No OFD packet to send [20:18:31]OFD Sender: No OFD packet to send [20:18:36]OFD Sender: No OFD packet to send [20:18:41]OFD Sender: No OFD packet to send [20:18:46]OFD Sender: No OFD packet to send [20:18:51]OFD Sender: No OFD packet to send [20:18:56]OFD Sender: No OFD packet to send [20:19:01]OFD Sender: No OFD packet to send [20:19:06]OFD Sender: No OFD packet to send [20:19:11]OFD Sender: No OFD packet to send [20:19:16]OFD Sender: No OFD packet to send [20:19:21]OFD Sender: No OFD packet to send [20:19:26]OFD Sender: No OFD packet to send [20:19:31]OFD Sender: No OFD packet to send [20:19:36]OFD Sender: No OFD packet to send [20:19:41]OFD Sender: No OFD packet to send [20:19:46]OFD Sender: No OFD packet to send [20:19:51]OFD Sender: No OFD packet to send [20:19:56]OFD Sender: No OFD packet to send [20:20:01]OFD Sender: No OFD packet to send [20:20:06]OFD Sender: No OFD packet to send [20:20:11]OFD Sender: No OFD packet to send [20:20:16]OFD Sender: No OFD packet to send [20:20:21]OFD Sender: No OFD packet to send [20:20:26]OFD Sender: No OFD packet to send [20:20:31]OFD Sender: No OFD packet to send [20:20:36]OFD Sender: No OFD packet to send [20:20:41]OFD Sender: No OFD packet to send [20:20:46]OFD Sender: No OFD packet to send [20:20:51]OFD Sender: No OFD packet to send [20:20:56]OFD Sender: No OFD packet to send [20:21:01]OFD Sender: No OFD packet to send [20:21:06]OFD Sender: No OFD packet to send [20:21:11]OFD Sender: No OFD packet to send [20:21:16]OFD Sender: No OFD packet to send [20:21:21]OFD Sender: No OFD packet to send [20:21:26]OFD Sender: No OFD packet to send [20:21:31]OFD Sender: No OFD packet to send [20:21:36]OFD Sender: No OFD packet to send [20:21:41]OFD Sender: No OFD packet to send [20:21:46]OFD Sender: No OFD packet to send [20:21:51]OFD Sender: No OFD packet to send [20:21:56]OFD Sender: No OFD packet to send [20:22:01]OFD Sender: No OFD packet to send [20:22:06]OFD Sender: No OFD packet to send [20:22:11]OFD Sender: No OFD packet to send [20:22:16]OFD Sender: No OFD packet to send [20:22:21]OFD Sender: No OFD packet to send [20:22:26]OFD Sender: No OFD packet to send [20:22:27]accept exits with 9 [20:22:27]New connection [20:22:27]New thread 3066785124 created [20:22:27]Thread 3066928484 joined [20:22:27]Waiting for new connection... [20:22:27] Sock 9.Parse request [20:22:27]Sock 9.Check first char [20:22:27]Sock 9.First char is OK [20:22:27]request: POST /json_proto HTTP/1.0 [20:22:27]Method: POST [20:22:27]URL: /json_proto [20:22:27]Method is POST - this is cgi request [20:22:27]url: /json_proto [20:22:27]query_string will be loaded in cgi processing [20:22:27]execute_cgi json_proto POST (null) [20:22:27]execute_cgi path=json_proto method=POST [20:22:27]POST find Content-Length [20:22:27]Host: 172.17.33.3:8080 [20:22:27]Content-Length: 1205 [20:22:27]Content-Type: application/json [20:22:27] [20:22:27]POST finish read [20:22:27]Found Content-Length = 1205 [20:22:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347410\u000A13.04.2024 20:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1286.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3875047;3875048\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:27]execute_script... [20:22:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347410\u000A13.04.2024 20:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1286.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3875047;3875048\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:27]POST & json_proto [20:22:27]process_json_proto [20:22:27]json parsed OK: [20:22:27]protocol is kg_v1.0 [20:22:27]action value=print_text [20:22:27]process_action print_text [20:22:27]cmd_print_text [20:22:27]ExternCall_PrintAddStr [20:22:27]wPrintStart [20:22:27]Write to MH i2c: 01 00 00 8A 61 EB [20:22:27]Write i2c OK [20:22:27]MH_I2C_Read... [20:22:27]Read from MH i2c: 01 [20:22:27]MH_I2C_Read... [20:22:27]Read from MH i2c: 01 07 00 [20:22:27]MH_I2C_Read... [20:22:27]Read from MH i2c: 01 07 00 8A 61 00 00 00 00 00 FF 0F 00 [20:22:27]RasterBufferAndPrint [20:22:27]line *****ТОВАРНЫЙ ЧЕК***** [20:22:27]line АЗС 108 [20:22:27]line Партнер нефть [20:22:27]line 02508201610067 [20:22:27]line Кассир : Шадыканова Ж. [20:22:27]line Счет N : (1)347410 [20:22:27]line 13.04.2024 20:04 [20:22:27]line ПРОДАЖА [20:22:27]line ТРК (МРК, ГНК): 42 [20:22:27]line Вид ГСМ : 2710124130 [20:22:27]line Аи-92-К-5 [20:22:27]line 20.000 x 64.30 [20:22:27]line ИТОГ: 1286.00 [20:22:27]line Тип оплаты: Талоны: Партнер нефть [20:22:27]line 3875047;3875048 [20:22:27]line ______________________ [20:22:27]line (подпись) [20:22:27]written 0, free lines is 4095 [20:22:27]Write to MH i2c: 01 00 00 9F 61 00 [20:22:27]Write i2c OK [20:22:27]MH_I2C_Read... [20:22:27]Read from MH i2c: 01 [20:22:27]MH_I2C_Read... [20:22:27]Read from MH i2c: 01 07 00 [20:22:27]MH_I2C_Read... [20:22:27]Read from MH i2c: 01 07 00 9F 61 00 00 00 00 00 FB 0D 0F [20:22:27]RasterBufferAndPrint [20:22:27]line [20:22:27]line [20:22:27]line [20:22:27]line [20:22:27]line [20:22:27]written 0, free lines is 3581 [20:22:27]MH_Cut [20:22:27]Write to MH i2c: D1 01 00 A6 61 01 D9 [20:22:27]Write i2c OK [20:22:27]MH_I2C_Read... [20:22:27]Read from MH i2c: D1 [20:22:27]MH_I2C_Read... [20:22:27]Read from MH i2c: D1 01 00 [20:22:27]MH_I2C_Read... [20:22:27]Read from MH i2c: D1 01 00 A6 61 00 D8 [20:22:27]Write to MH i2c: 01 00 00 A7 61 08 [20:22:27]Write i2c OK [20:22:27]MH_I2C_Read... [20:22:28]*** Cut start [20:22:28]*** Partial cut [20:22:28]*** CUTSNS_PIN = 1 [20:22:28]*** CUTSNS_PIN = 0 [20:22:28]*** Brake cut motor [20:22:28]Read from MH i2c: 01 [20:22:28]MH_I2C_Read... [20:22:28]*** Stop cut motor [20:22:28]*** Cut end [20:22:28]Read from MH i2c: 01 07 00 [20:22:28]MH_I2C_Read... [20:22:28]Read from MH i2c: 01 07 00 A7 61 00 00 00 00 00 FF 0F 1D [20:22:28]process_action print_text done [20:22:28]requested_data is exist [20:22:28]produce_requested_data [20:22:28]requested_item fm.sn is exist - process it [20:22:28]wFMCommunicate request_size=4 [20:22:28]MH_SAM_APDU [20:22:28]CAPDU: 80 11 00 00 [20:22:28]Write to MH i2c: E2 08 00 A8 61 80 11 00 00 00 00 00 00 83 [20:22:28]Write i2c OK [20:22:28]MH_I2C_Read... [20:22:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:28]Read from MH i2c: E2 [20:22:28]MH_I2C_Read... [20:22:28]Read from MH i2c: E2 17 00 [20:22:28]MH_I2C_Read... [20:22:28]Read from MH i2c: E2 17 00 A8 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D2 [20:22:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:22:28]wFMCommunicate OK [20:22:28]requested_item fd.num is exist - process it [20:22:28]SAM_PROTO_GetFieldsCounters [20:22:28]wFMCommunicate request_size=4 [20:22:28]MH_SAM_APDU [20:22:28]CAPDU: 80 13 00 00 [20:22:28]Write to MH i2c: E2 08 00 A9 61 80 13 00 00 00 00 00 00 86 [20:22:28]Write i2c OK [20:22:28]MH_I2C_Read... [20:22:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:22:28]Read from MH i2c: E2 [20:22:28]MH_I2C_Read... [20:22:28]Read from MH i2c: E2 62 00 [20:22:28]MH_I2C_Read... [20:22:28]Read from MH i2c: E2 62 00 A9 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 72 71 00 00 0E 04 04 00 73 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 05 [20:22: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 72 71 00 00 0E 04 04 00 73 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 [20:22:28]wFMCommunicate OK [20:22:28]SAM_PROTO_GetFieldsCounters done [20:22:28]requested_item shift.num is exist - process it [20:22:28]requested_item shift.opened is exist - process it [20:22:28]req_shift_opened [20:22:28]FM_GetShiftState [20:22:28]SAM_PROTO_GetShiftState [20:22:28]wFMCommunicate request_size=4 [20:22:28]MH_SAM_APDU [20:22:28]CAPDU: 80 13 01 00 [20:22:28]Write to MH i2c: E2 08 00 AA 61 80 13 01 00 00 00 00 00 88 [20:22:28]Write i2c OK [20:22:28]MH_I2C_Read... [20:22:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:28]Read from MH i2c: E2 [20:22:28]MH_I2C_Read... [20:22:28]Read from MH i2c: E2 0E 00 [20:22:28]MH_I2C_Read... [20:22:28]Read from MH i2c: E2 0E 00 AA 61 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A1 [20:22:28]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [20:22:28]wFMCommunicate OK [20:22:28]SAM_PROTO_GetShiftState done [20:22:28]FM_GetShiftState done [20:22:28]req_shift_opened done [20:22:28]requested_item shift.open_date is exist - process it [20:22:28]req_shift_open_date [20:22:28]req_shift_open_date done [20:22:28]produce_requested_data done [20:22:28]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29042,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [20:22:28]process_action_free print_text [20:22:28]json_value_free [20:22:28]json_value_free done [20:22:28]process_json_proto returns [20:22:28]Send response to host [20:22:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29042,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [20:22:28]free response buf [20:22:28]execute_script done [20:22:28]execute_script returns [20:22:28]free content buf [20:22:28]Sock 9.Close socket [20:22:28]Sock 9.Thread stoped [20:22:31]OFD Sender: No OFD packet to send [20:22:36]OFD Sender: No OFD packet to send [20:22:41]OFD Sender: No OFD packet to send [20:22:46]OFD Sender: No OFD packet to send [20:22:51]OFD Sender: No OFD packet to send [20:22:56]OFD Sender: No OFD packet to send [20:23:01]OFD Sender: No OFD packet to send [20:23:06]OFD Sender: No OFD packet to send [20:23:11]OFD Sender: No OFD packet to send [20:23:16]OFD Sender: No OFD packet to send [20:23:21]OFD Sender: No OFD packet to send [20:23:26]OFD Sender: No OFD packet to send [20:23:31]OFD Sender: No OFD packet to send [20:23:36]OFD Sender: No OFD packet to send [20:23:41]OFD Sender: No OFD packet to send [20:23:46]OFD Sender: No OFD packet to send [20:23:51]OFD Sender: No OFD packet to send [20:23:56]OFD Sender: No OFD packet to send [20:24:01]OFD Sender: No OFD packet to send [20:24:06]OFD Sender: No OFD packet to send [20:24:11]OFD Sender: No OFD packet to send [20:24:16]OFD Sender: No OFD packet to send [20:24:21]OFD Sender: No OFD packet to send [20:24:26]OFD Sender: No OFD packet to send [20:24:31]OFD Sender: No OFD packet to send [20:24:36]OFD Sender: No OFD packet to send [20:24:41]OFD Sender: No OFD packet to send [20:24:46]OFD Sender: No OFD packet to send [20:24:51]OFD Sender: No OFD packet to send [20:24:56]OFD Sender: No OFD packet to send [20:25:01]OFD Sender: No OFD packet to send [20:25:06]OFD Sender: No OFD packet to send [20:25:11]OFD Sender: No OFD packet to send [20:25:16]OFD Sender: No OFD packet to send [20:25:21]OFD Sender: No OFD packet to send [20:25:26]OFD Sender: No OFD packet to send [20:25:27]accept exits with 10 [20:25:27]New connection [20:25:27]New thread 3066928484 created [20:25:27]Thread 3066785124 joined [20:25:27]Waiting for new connection... [20:25:27] Sock 10.Parse request [20:25:27]Sock 10.Check first char [20:25:27]Sock 10.First char is OK [20:25:27]request: POST /json_proto HTTP/1.0 [20:25:27]Method: POST [20:25:27]URL: /json_proto [20:25:27]Method is POST - this is cgi request [20:25:27]url: /json_proto [20:25:27]query_string will be loaded in cgi processing [20:25:27]execute_cgi json_proto POST (null) [20:25:27]execute_cgi path=json_proto method=POST [20:25:27]POST find Content-Length [20:25:27]Host: 172.17.33.3:8080 [20:25:27]Content-Length: 670 [20:25:27]Content-Type: application/json [20:25:27] [20:25:27]POST finish read [20:25:27]Found Content-Length = 670 [20:25:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "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:25:27]execute_script... [20:25: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)347411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "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:25:27]POST & json_proto [20:25:27]process_json_proto [20:25:27]json parsed OK: [20:25:27]protocol is kg_v1.0 [20:25:27]action value=close_receipt [20:25:27]process_action close_receipt [20:25:27]cmd_close_receipt [20:25:27]MH_GetDate [20:25:27]Write to MH i2c: F0 00 00 AB 61 FB [20:25:27]Write i2c OK [20:25:27]MH_I2C_Read... [20:25:27]Read from MH i2c: F0 [20:25:27]MH_I2C_Read... [20:25:27]Read from MH i2c: F0 09 00 [20:25:27]MH_I2C_Read... [20:25:27]Read from MH i2c: F0 09 00 AB 61 00 3E EA 1A 66 23 5B 8F 65 1E [20:25:27]GetLastDocTimeStamp 1713039484 [20:25:27]current date 1713039934 [20:25:27]FM_GetShiftState [20:25:27]SAM_PROTO_GetShiftState [20:25:27]wFMCommunicate request_size=4 [20:25:27]MH_SAM_APDU [20:25:27]CAPDU: 80 13 01 00 [20:25:27]Write to MH i2c: E2 08 00 AC 61 80 13 01 00 00 00 00 00 8A [20:25:27]Write i2c OK [20:25:27]MH_I2C_Read... [20:25:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:27]Read from MH i2c: E2 [20:25:27]MH_I2C_Read... [20:25:27]Read from MH i2c: E2 0E 00 [20:25:27]MH_I2C_Read... [20:25:27]Read from MH i2c: E2 0E 00 AC 61 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A3 [20:25:27]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [20:25:27]wFMCommunicate OK [20:25:27]SAM_PROTO_GetShiftState done [20:25:27]FM_GetShiftState done [20:25:27]opened in 1712967615 [20:25:27]opened+sec_in_day 1713054015 [20:25:27]quantity*price = 50019 [20:25:27]sum+1 = 50021 [20:25:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 250 13.04.2024 20:25 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29043 ФПД: 84399087696821 1/tax-web-control/client/api/v1/ticket?date=20240413T202534&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29043&fm=84399087696821&tin=02508201610067®Number=0000138879044617&sum=50000 [20:25:29]StoreToDocumentArchive [20:25:29]shift 115 fd 29043 [20:25:29]save to /storage/0115/doc_00029043 [20:25:29]save last doc name /storage/0115/doc_00029043 to /storage/kkm_last_doc_name [20:25:29]save OK [20:25:29]Clear old archive folders... [20:25:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:25:29]tlvbuf is 012246C0 [20:25:29]SAM_PROTO_ClearQueue [20:25:29]wFMCommunicate request_size=4 [20:25:29]MH_SAM_APDU [20:25:29]CAPDU: 80 09 00 00 [20:25:29]Write to MH i2c: E2 08 00 B9 61 80 09 00 00 00 00 00 00 8C [20:25:29]Write i2c OK [20:25:29]MH_I2C_Read... [20:25:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:25:29]Read from MH i2c: E2 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: E2 03 00 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: E2 03 00 B9 61 00 90 00 8E [20:25:29]RAPDU: 90 00 [20:25:29]wFMCommunicate OK [20:25:29]SAM_PROTO_ClearQueue done [20:25:29]KKMCreateOFDPacket [20:25:29]OFDProtocolAddRootSTLVToBuf [20:25:29]FM_MakeSignedData [20:25:29]FM_MakeSignedData [20:25:29]SAM_PROTO_SignData [20:25:29]wFMCommunicate request_size=4 [20:25:29]MH_SAM_APDU [20:25:29]CAPDU: 80 0D 01 02 [20:25:29]Write to MH i2c: E2 08 00 BA 61 80 0D 01 02 00 00 00 00 94 [20:25:29]Write i2c OK [20:25:29]MH_I2C_Read... [20:25:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:25:29]Read from MH i2c: E2 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: E2 03 00 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: E2 03 00 BA 61 00 90 00 8F [20:25:29]RAPDU: 90 00 [20:25:29]wFMCommunicate OK [20:25:29]wFMCommunicate request_size=255 [20:25:29]MH_SAM_APDU [20:25:29]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 FA 00 00 00 F4 03 04 00 3E EA 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 73 71 00 00 35 04 06 00 [20:25:29]Write to MH i2c: E2 02 01 BB 61 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 FA 00 00 00 F4 03 04 00 3E EA 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 73 71 00 00 35 04 06 00 00 00 DF [20:25:29]Write i2c OK [20:25:29]MH_I2C_Read... [20:25:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:29]Read from MH i2c: E2 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: E2 03 00 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: E2 03 00 BB 61 00 90 00 90 [20:25:29]RAPDU: 90 00 [20:25:29]wFMCommunicate OK [20:25:29]wFMCommunicate request_size=11 [20:25:29]MH_SAM_APDU [20:25:29]CAPDU: 80 0D 02 02 06 4C C2 B1 A4 3B B5 [20:25:29]Write to MH i2c: E2 0E 00 BC 61 80 0D 02 02 06 00 4C C2 B1 A4 3B B5 00 00 F6 [20:25:29]Write i2c OK [20:25:29]MH_I2C_Read... [20:25:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:29]Read from MH i2c: E2 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: E2 03 00 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: E2 03 00 BC 61 00 90 00 91 [20:25:29]RAPDU: 90 00 [20:25:29]wFMCommunicate OK [20:25:29]wFMCommunicate request_size=4 [20:25:29]MH_SAM_APDU [20:25:29]CAPDU: 80 0D 03 02 [20:25:29]Write to MH i2c: E2 08 00 BD 61 80 0D 03 02 00 00 00 00 99 [20:25:29]Write i2c OK [20:25:29]MH_I2C_Read... [20:25:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:25:29]Read from MH i2c: E2 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: E2 0B 00 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: E2 0B 00 BD 61 00 E5 C7 33 55 07 56 43 50 90 00 BE [20:25:29]RAPDU: E5 C7 33 55 07 56 43 50 90 00 [20:25:29]wFMCommunicate OK [20:25:29]SAM_PROTO_SignData done [20:25:29]FM_MakeSignedData done [20:25:29]CreateOFDProtocolMessage [20:25:29]wFMCommunicate request_size=4 [20:25:29]MH_SAM_APDU [20:25:29]CAPDU: 80 11 00 00 [20:25:29]Write to MH i2c: E2 08 00 BE 61 80 11 00 00 00 00 00 00 99 [20:25:29]Write i2c OK [20:25:29]MH_I2C_Read... [20:25:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:29]Read from MH i2c: E2 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: E2 17 00 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: E2 17 00 BE 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E8 [20:25:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:25:29]wFMCommunicate OK [20:25:29]CreateOFDProtocolMessage done [20:25:29]OFDSenderStorePacket 29043 [20:25:29]StoreOFDPacket docnum=29043 [20:25:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 EE 8A 08 01 80 40 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 FA 00 00 00 F4 03 04 00 3E EA 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 73 71 00 00 35 04 06 00 4C C2 B1 A4 3B B5 E5 C7 33 55 07 56 43 50 [20:25:29]CheckFolder [20:25:29]dirname=/storage/ofd_packets [20:25:29]CheckFolder done [20:25:29]ProducePacketName [20:25:29]name=ofd_packets/00029043 [20:25:29]NVStorageSaveData ofd_packets/00029043 [20:25:29]File name is /storage/ofd_packets/00029043 [20:25:29]Write 302 bytes [20:25:29]NVStorageSaveData done [20:25:29]OFDSenderStorePacket done [20:25:29]KKMCreateOFDPacket done [20:25:29]NVStorageSaveData kkm_last_timestamp [20:25:29]File name is /storage/kkm_last_timestamp [20:25:29]Write 4 bytes [20:25:29]NVStorageSaveData done [20:25:29]ExternCall_PrintAddStr [20:25:29]wPrintStart [20:25:29]Write to MH i2c: 01 00 00 BF 61 20 [20:25:29]Write i2c OK [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: 01 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: 01 07 00 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: 01 07 00 BF 61 00 00 00 00 00 FF 0F 35 [20:25:29]RasterBufferAndPrint [20:25:29]line Счет N : (1)347411 [20:25:29]line ИНН: 02508201610067 [20:25:29]line Контрольно-Кассовый Чек [20:25:29]line ПРОДАЖА [20:25:29]line ТРК (МРК, ГНК) : 22 [20:25:29]line Товар: 2710124130 [20:25:29]line SUPER-92-К-5 [20:25:29]line 7.660 * 65.30 [20:25:29]line = 500.20 [20:25:29]line НДС 12% НСП 1% [20:25:29]line > о реализуемом товаре [20:25:29]line ОКРУГЛЕНИЕ: -0.20 [20:25:29]line ИТОГО: 500.00 [20:25:29]line Внесено: 500.00 [20:25:29]line СДАЧА: 0.00 [20:25:29]line НСП 1% : 4.43 [20:25:29]line НДС 12% : 53.12 [20:25:29]line Наличными: 500.00 [20:25:29]line Безнал.: 0.00 [20:25:29]line Место: АЗС № 108 "Партнер Нефть" [20:25:29]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:25:29]line СНО: Общий режим [20:25:29]line Чек 250 13.04.2024 20:25 [20:25:29]line Смена: 115 ФФД: 1.0 [20:25:29]line ЗНМ: 0300000027 [20:25:29]line РНМ: 0000138879044617 [20:25:29]line Версия ККМ: 001 [20:25:29]line ФМ: 0000000000963154 [20:25:29]line ФД: 29043 [20:25:29]line ФПД: 84399087696821 [20:25:29]line 1/tax-web-control/client/api/v1/ticket?date=20240413T202534&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29043&fm=84399087696821&tin=02508201610067®Number=0000138879044617&sum=50000 [20:25:29]OFD Sender: Processing packet 29043 [packets to send 8, broken 7] [20:25:29]ProducePacketName [20:25:29]name=ofd_packets/00029043 [20:25:29]OFD Sender: To server: pG, [20:25:29]CommunicateWithHost lk.salyk.kg:30040 [20:25:29]ConnectInit lk.salyk.kg [20:25:29]written 0, free lines is 4095 [20:25:30]Connected sock=9 [20:25: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 31 35 34 10 01 00 00 EE 8A 08 01 80 40 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 FA 00 00 00 F4 03 04 00 3E EA 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 73 71 00 00 35 04 06 00 4C C2 B1 A4 3B B5 E5 C7 33 55 07 56 43 50 [20:25:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 59 6C 47 00 24 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 73 71 00 00 F4 03 04 00 E4 94 1A 66 B6 04 01 00 00 D4 2D BF A2 99 9B 6B B7 [20:25:30]CommunicateWithHost err = 0 [20:25:30]CheckOFDResponse [20:25:30]1017 (14) - 77093643461234 [20:25:30]1041 (16) - 0000000000963154 [20:25:30]1040 (4) - 29043 [20:25:30]1012 (4) - 13.04.2024 14:21 [20:25:30]1206 (1) - 0 [20:25:30]OFD Sender: Remove packet 29043 [20:25:30]ProducePacketName [20:25:30]name=ofd_packets/00029043 [20:25:30]NVStorageDeleteData [20:25:30]Write to MH i2c: 01 00 00 E9 61 4A [20:25:30]Write i2c OK [20:25:30]MH_I2C_Read... [20:25:30]Read from MH i2c: 01 [20:25:30]MH_I2C_Read... [20:25:30]Read from MH i2c: 01 07 00 [20:25:30]MH_I2C_Read... [20:25:30]Read from MH i2c: 01 07 00 E9 61 00 00 00 00 00 C4 0C 21 [20:25:30]RasterBufferAndPrint [20:25:30]line [20:25:30]line [20:25:30]line [20:25:30]line [20:25:30]line [20:25:30]written 0, free lines is 3274 [20:25:30]MH_Cut [20:25:30]Write to MH i2c: D1 01 00 F0 61 01 23 [20:25:30]Write i2c OK [20:25:30]MH_I2C_Read... [20:25:30]Read from MH i2c: D1 [20:25:30]MH_I2C_Read... [20:25:30]Read from MH i2c: D1 01 00 [20:25:30]MH_I2C_Read... [20:25:30]Read from MH i2c: D1 01 00 F0 61 00 22 [20:25:30]Write to MH i2c: 01 00 00 F1 61 52 [20:25:30]Write i2c OK [20:25:30]MH_I2C_Read... [20:25:30]OFD Sender: No OFD packet to send [20:25:31]*** Cut start [20:25:31]*** Partial cut [20:25:31]*** CUTSNS_PIN = 1 [20:25:31]*** CUTSNS_PIN = 0 [20:25:31]*** Brake cut motor [20:25:31]Read from MH i2c: 01 [20:25:31]MH_I2C_Read... [20:25:31]*** Stop cut motor [20:25:31]*** Cut end [20:25:31]Read from MH i2c: 01 07 00 [20:25:31]MH_I2C_Read... [20:25:31]Read from MH i2c: 01 07 00 F1 61 00 00 00 00 00 FF 0F 67 [20:25:31]process_action close_receipt done [20:25:31]requested_data is exist [20:25:31]produce_requested_data [20:25:31]requested_item fm.sn is exist - process it [20:25:31]wFMCommunicate request_size=4 [20:25:31]MH_SAM_APDU [20:25:31]CAPDU: 80 11 00 00 [20:25:31]Write to MH i2c: E2 08 00 F2 61 80 11 00 00 00 00 00 00 CD [20:25:31]Write i2c OK [20:25:31]MH_I2C_Read... [20:25:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:31]Read from MH i2c: E2 [20:25:31]MH_I2C_Read... [20:25:31]Read from MH i2c: E2 17 00 [20:25:31]MH_I2C_Read... [20:25:31]Read from MH i2c: E2 17 00 F2 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1C [20:25:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:25:31]wFMCommunicate OK [20:25:31]requested_item fd.num is exist - process it [20:25:31]SAM_PROTO_GetFieldsCounters [20:25:31]wFMCommunicate request_size=4 [20:25:31]MH_SAM_APDU [20:25:31]CAPDU: 80 13 00 00 [20:25:31]Write to MH i2c: E2 08 00 F3 61 80 13 00 00 00 00 00 00 D0 [20:25:31]Write i2c OK [20:25:31]MH_I2C_Read... [20:25:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:25:32]Read from MH i2c: E2 [20:25:32]MH_I2C_Read... [20:25:32]Read from MH i2c: E2 62 00 [20:25:32]MH_I2C_Read... [20:25:32]Read from MH i2c: E2 62 00 F3 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 73 71 00 00 0E 04 04 00 73 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 53 [20:25: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 73 71 00 00 0E 04 04 00 73 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 [20:25:32]wFMCommunicate OK [20:25:32]SAM_PROTO_GetFieldsCounters done [20:25:32]requested_item shift.num is exist - process it [20:25:32]requested_item shift.opened is exist - process it [20:25:32]req_shift_opened [20:25:32]FM_GetShiftState [20:25:32]SAM_PROTO_GetShiftState [20:25:32]wFMCommunicate request_size=4 [20:25:32]MH_SAM_APDU [20:25:32]CAPDU: 80 13 01 00 [20:25:32]Write to MH i2c: E2 08 00 F4 61 80 13 01 00 00 00 00 00 D2 [20:25:32]Write i2c OK [20:25:32]MH_I2C_Read... [20:25:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:32]Read from MH i2c: E2 [20:25:32]MH_I2C_Read... [20:25:32]Read from MH i2c: E2 0E 00 [20:25:32]MH_I2C_Read... [20:25:32]Read from MH i2c: E2 0E 00 F4 61 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 EB [20:25:32]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [20:25:32]wFMCommunicate OK [20:25:32]SAM_PROTO_GetShiftState done [20:25:32]FM_GetShiftState done [20:25:32]req_shift_opened done [20:25:32]requested_item shift.open_date is exist - process it [20:25:32]req_shift_open_date [20:25:32]req_shift_open_date done [20:25:32]produce_requested_data done [20:25:32]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29043,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [20:25:32]process_action_free close_receipt [20:25:32]json_value_free [20:25:32]json_value_free done [20:25:32]process_json_proto returns [20:25:32]Send response to host [20:25:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29043,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [20:25:32]free response buf [20:25:32]execute_script done [20:25:32]execute_script returns [20:25:32]free content buf [20:25:32]Sock 10.Close socket [20:25:32]Sock 10.Thread stoped [20:25:35]OFD Sender: No OFD packet to send [20:25:40]OFD Sender: No OFD packet to send [20:25:45]OFD Sender: No OFD packet to send [20:25:50]OFD Sender: No OFD packet to send [20:25:55]OFD Sender: No OFD packet to send [20:26:00]OFD Sender: No OFD packet to send [20:26:05]OFD Sender: No OFD packet to send [20:26:10]OFD Sender: No OFD packet to send [20:26:15]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:15]OFD Sender: No OFD packet to send [20:28:20]OFD Sender: No OFD packet to send [20:28:25]OFD Sender: No OFD packet to send [20:28:30]OFD Sender: No OFD packet to send [20:28:35]OFD Sender: No OFD packet to send [20:28:40]OFD Sender: No OFD packet to send [20:28:45]OFD Sender: No OFD packet to send [20:28:50]OFD Sender: No OFD packet to send [20:28:55]OFD Sender: No OFD packet to send [20:29:00]OFD Sender: No OFD packet to send [20:29:05]OFD Sender: No OFD packet to send [20:29:10]OFD Sender: No OFD packet to send [20:29:15]OFD Sender: No OFD packet to send [20:29:20]OFD Sender: No OFD packet to send [20:29:25]OFD Sender: No OFD packet to send [20:29:30]OFD Sender: No OFD packet to send [20:29:35]OFD Sender: No OFD packet to send [20:29:40]OFD Sender: No OFD packet to send [20:29:45]OFD Sender: No OFD packet to send [20:29:50]OFD Sender: No OFD packet to send [20:29:55]OFD Sender: No OFD packet to send [20:30:00]OFD Sender: No OFD packet to send [20:30:05]OFD Sender: No OFD packet to send [20:30:10]OFD Sender: No OFD packet to send [20:30:15]OFD Sender: No OFD packet to send [20:30:20]OFD Sender: No OFD packet to send [20:30:25]OFD Sender: No OFD packet to send [20:30:30]OFD Sender: No OFD packet to send [20:30:35]OFD Sender: No OFD packet to send [20:30:40]OFD Sender: No OFD packet to send [20:30:45]OFD Sender: No OFD packet to send [20:30:50]OFD Sender: No OFD packet to send [20:30:56]OFD Sender: No OFD packet to send [20:31:01]OFD Sender: No OFD packet to send [20:31:06]OFD Sender: No OFD packet to send [20:31:11]OFD Sender: No OFD packet to send [20:31:16]OFD Sender: No OFD packet to send [20:31:21]OFD Sender: No OFD packet to send [20:31:26]OFD Sender: No OFD packet to send [20:31:31]OFD Sender: No OFD packet to send [20:31:36]OFD Sender: No OFD packet to send [20:31:41]OFD Sender: No OFD packet to send [20:31:46]OFD Sender: No OFD packet to send [20:31:51]OFD Sender: No OFD packet to send [20:31:56]OFD Sender: No OFD packet to send [20:32:01]OFD Sender: No OFD packet to send [20:32:06]OFD Sender: No OFD packet to send [20:32:11]OFD Sender: No OFD packet to send [20:32:15]accept exits with 7 [20:32:15]New connection [20:32:15]New thread 3066785124 created [20:32:15]Thread 3066928484 joined [20:32:15]Waiting for new connection... [20:32:15] Sock 7.Parse request [20:32:15]Sock 7.Check first char [20:32:15]Sock 7.First char is OK [20:32:15]request: POST /json_proto HTTP/1.0 [20:32:15]Method: POST [20:32:15]URL: /json_proto [20:32:15]Method is POST - this is cgi request [20:32:15]url: /json_proto [20:32:15]query_string will be loaded in cgi processing [20:32:15]execute_cgi json_proto POST (null) [20:32:15]execute_cgi path=json_proto method=POST [20:32:15]POST find Content-Length [20:32:15]Host: 172.17.33.3:8080 [20:32:15]Content-Length: 817 [20:32:15]Content-Type: application/json [20:32:15] [20:32:15]POST finish read [20:32:15]Found Content-Length = 817 [20:32:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347412", "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" : 72.50, "quantity" : 10.000, "sum" : 725.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 725.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:15]execute_script... [20:32: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)347412", "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" : 72.50, "quantity" : 10.000, "sum" : 725.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 725.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:15]POST & json_proto [20:32:15]process_json_proto [20:32:15]json parsed OK: [20:32:15]protocol is kg_v1.0 [20:32:15]action value=close_receipt [20:32:15]process_action close_receipt [20:32:15]cmd_close_receipt [20:32:15]MH_GetDate [20:32:15]Write to MH i2c: F0 00 00 F5 61 45 [20:32:15]Write i2c OK [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: F0 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: F0 09 00 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: F0 09 00 F5 61 00 D5 EB 1A 66 23 5B 8F 65 00 [20:32:15]GetLastDocTimeStamp 1713039934 [20:32:15]current date 1713040341 [20:32:15]FM_GetShiftState [20:32:15]SAM_PROTO_GetShiftState [20:32:15]wFMCommunicate request_size=4 [20:32:15]MH_SAM_APDU [20:32:15]CAPDU: 80 13 01 00 [20:32:15]Write to MH i2c: E2 08 00 F6 61 80 13 01 00 00 00 00 00 D4 [20:32:15]Write i2c OK [20:32:15]MH_I2C_Read... [20:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:15]Read from MH i2c: E2 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 0E 00 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 0E 00 F6 61 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 ED [20:32:15]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [20:32:15]wFMCommunicate OK [20:32:15]SAM_PROTO_GetShiftState done [20:32:15]FM_GetShiftState done [20:32:15]opened in 1712967615 [20:32:15]opened+sec_in_day 1713054015 [20:32:15]quantity*price = 72500 [20:32:15]sum+1 = 72501 [20:32:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 725.00 НСП 1% : 6.42 НДС 12% : 76.99 Наличными: 0.00 Безнал.: 725.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 251 13.04.2024 20:32 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29044 ФПД: 203797666285909 1/tax-web-control/client/api/v1/ticket?date=20240413T203221&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29044&fm=203797666285909&tin=02508201610067®Number=0000138879044617&sum=72500 [20:32:16]StoreToDocumentArchive [20:32:16]shift 115 fd 29044 [20:32:16]save to /storage/0115/doc_00029044 [20:32:16]save last doc name /storage/0115/doc_00029044 to /storage/kkm_last_doc_name [20:32:16]save OK [20:32:16]Clear old archive folders... [20:32:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:32:16]tlvbuf is 012F3810 [20:32:16]SAM_PROTO_ClearQueue [20:32:16]wFMCommunicate request_size=4 [20:32:16]MH_SAM_APDU [20:32:16]CAPDU: 80 09 00 00 [20:32:16]Write to MH i2c: E2 08 00 03 62 80 09 00 00 00 00 00 00 D7 [20:32:16]Write i2c OK [20:32:16]MH_I2C_Read... [20:32:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:32:16]Read from MH i2c: E2 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: E2 03 00 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: E2 03 00 03 62 00 90 00 D9 [20:32:16]RAPDU: 90 00 [20:32:16]wFMCommunicate OK [20:32:16]SAM_PROTO_ClearQueue done [20:32:16]KKMCreateOFDPacket [20:32:16]OFDProtocolAddRootSTLVToBuf [20:32:16]FM_MakeSignedData [20:32:16]FM_MakeSignedData [20:32:16]SAM_PROTO_SignData [20:32:16]wFMCommunicate request_size=4 [20:32:16]MH_SAM_APDU [20:32:16]CAPDU: 80 0D 01 02 [20:32:16]Write to MH i2c: E2 08 00 04 62 80 0D 01 02 00 00 00 00 DF [20:32:16]Write i2c OK [20:32:16]MH_I2C_Read... [20:32:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:32:16]Read from MH i2c: E2 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: E2 03 00 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: E2 03 00 04 62 00 90 00 DA [20:32:16]RAPDU: 90 00 [20:32:16]wFMCommunicate OK [20:32:16]wFMCommunicate request_size=255 [20:32:16]MH_SAM_APDU [20:32: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 10 27 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 34 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 1B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 D5 EB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 74 71 00 00 35 04 06 00 B9 [20:32:16]Write to MH i2c: E2 02 01 05 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 52 1C 00 00 00 00 13 04 06 00 34 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 1B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 D5 EB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 74 71 00 00 35 04 06 00 B9 00 00 A0 [20:32:16]Write i2c OK [20:32:16]MH_I2C_Read... [20:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:17]Read from MH i2c: E2 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 03 00 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 03 00 05 62 00 90 00 DB [20:32:17]RAPDU: 90 00 [20:32:17]wFMCommunicate OK [20:32:17]wFMCommunicate request_size=10 [20:32:17]MH_SAM_APDU [20:32:17]CAPDU: 80 0D 02 02 05 5A 57 81 49 55 [20:32:17]Write to MH i2c: E2 0D 00 06 62 80 0D 02 02 05 00 5A 57 81 49 55 00 00 BC [20:32:17]Write i2c OK [20:32:17]MH_I2C_Read... [20:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:17]Read from MH i2c: E2 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 03 00 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 03 00 06 62 00 90 00 DC [20:32:17]RAPDU: 90 00 [20:32:17]wFMCommunicate OK [20:32:17]wFMCommunicate request_size=4 [20:32:17]MH_SAM_APDU [20:32:17]CAPDU: 80 0D 03 02 [20:32:17]Write to MH i2c: E2 08 00 07 62 80 0D 03 02 00 00 00 00 E4 [20:32:17]Write i2c OK [20:32:17]MH_I2C_Read... [20:32:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:32:17]Read from MH i2c: E2 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 0B 00 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 0B 00 07 62 00 6B 8F 24 2B 61 76 9D BD 90 00 5F [20:32:17]RAPDU: 6B 8F 24 2B 61 76 9D BD 90 00 [20:32:17]wFMCommunicate OK [20:32:17]SAM_PROTO_SignData done [20:32:17]FM_MakeSignedData done [20:32:17]CreateOFDProtocolMessage [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 08 62 80 11 00 00 00 00 00 00 E4 [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 08 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 33 [20:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:32:17]wFMCommunicate OK [20:32:17]CreateOFDProtocolMessage done [20:32:17]OFDSenderStorePacket 29044 [20:32:17]StoreOFDPacket docnum=29044 [20:32:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 46 46 07 01 4A 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 34 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 1B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 D5 EB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 74 71 00 00 35 04 06 00 B9 5A 57 81 49 55 6B 8F 24 2B 61 76 9D BD [20:32:17]CheckFolder [20:32:17]dirname=/storage/ofd_packets [20:32:17]CheckFolder done [20:32:17]ProducePacketName [20:32:17]name=ofd_packets/00029044 [20:32:17]NVStorageSaveData ofd_packets/00029044 [20:32:17]File name is /storage/ofd_packets/00029044 [20:32:17]Write 301 bytes [20:32:17]NVStorageSaveData done [20:32:17]OFDSenderStorePacket done [20:32:17]KKMCreateOFDPacket done [20:32:17]NVStorageSaveData kkm_last_timestamp [20:32:17]File name is /storage/kkm_last_timestamp [20:32:17]Write 4 bytes [20:32:17]NVStorageSaveData done [20:32:17]ExternCall_PrintAddStr [20:32:17]wPrintStart [20:32:17]Write to MH i2c: 01 00 00 09 62 6B [20:32:17]Write i2c OK [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: 01 [20:32:17]MH_I2C_Read... [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 09 62 00 00 00 00 00 FF 0F 80 [20:32:17]RasterBufferAndPrint [20:32:17]line Счет N : (1)347412 [20:32:17]line ИНН: 02508201610067 [20:32:17]line Контрольно-Кассовый Чек [20:32:17]line ПРОДАЖА [20:32:17]line ТРК (МРК, ГНК) : 43 [20:32:17]line Товар: 2710124500 [20:32:17]line Аи-95-К-5 [20:32:17]line 10.000 * 72.50 [20:32:17]line = 725.00 [20:32:17]line НДС 12% НСП 1% [20:32:17]line > о реализуемом товаре [20:32:17]line ИТОГО: 725.00 [20:32:17]line НСП 1% : 6.42 [20:32:17]line НДС 12% : 76.99 [20:32:17]line Наличными: 0.00 [20:32:17]line Безнал.: 725.00 [20:32:17]line Место: АЗС № 108 "Партнер Нефть" [20:32:17]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:32:17]line СНО: Общий режим [20:32:17]line Чек 251 13.04.2024 20:32 [20:32:17]line Смена: 115 ФФД: 1.0 [20:32:17]line ЗНМ: 0300000027 [20:32:17]line РНМ: 0000138879044617 [20:32:17]line Версия ККМ: 001 [20:32:17]line Платежная система: Бакай Банк [20:32:17]line ФМ: 0000000000963154 [20:32:17]line ФД: 29044 [20:32:17]line ФПД: 203797666285909 [20:32:17]line 1/tax-web-control/client/api/v1/ticket?date=20240413T203221&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29044&fm=203797666285909&tin=02508201610067®Number=0000138879044617&sum=72500 [20:32:17]OFD Sender: Processing packet 29044 [packets to send 8, broken 7] [20:32:17]ProducePacketName [20:32:17]name=ofd_packets/00029044 [20:32:17]OFD Sender: To server: pG, [20:32:17]CommunicateWithHost lk.salyk.kg:30040 [20:32:17]ConnectInit lk.salyk.kg [20:32:17]written 0, free lines is 4095 [20:32:17]Connected sock=10 [20:32: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 31 35 34 0F 01 00 00 46 46 07 01 4A 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 34 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 1B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 D5 EB 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 74 71 00 00 35 04 06 00 B9 5A 57 81 49 55 6B 8F 24 2B 61 76 9D BD [20:32:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 07 C1 47 00 F7 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 74 71 00 00 F4 03 04 00 7C 96 1A 66 B6 04 01 00 00 66 5A 8F 5A 67 A2 89 6E [20:32:17]CommunicateWithHost err = 0 [20:32:17]CheckOFDResponse [20:32:17]1017 (14) - 77093643461234 [20:32:17]1041 (16) - 0000000000963154 [20:32:17]1040 (4) - 29044 [20:32:17]1012 (4) - 13.04.2024 14:28 [20:32:17]1206 (1) - 0 [20:32:17]OFD Sender: Remove packet 29044 [20:32:17]ProducePacketName [20:32:17]name=ofd_packets/00029044 [20:32:17]NVStorageDeleteData [20:32:17]Write to MH i2c: 01 00 00 32 62 94 [20:32:17]Write i2c OK [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: 01 [20:32:17]MH_I2C_Read... [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 32 62 00 00 00 00 00 EC 0C 93 [20:32:17]RasterBufferAndPrint [20:32:17]line [20:32:17]line [20:32:17]line [20:32:17]line [20:32:17]line [20:32:17]written 0, free lines is 3315 [20:32:18]MH_Cut [20:32:18]Write to MH i2c: D1 01 00 39 62 01 6D [20:32:18]Write i2c OK [20:32:18]MH_I2C_Read... [20:32:18]Read from MH i2c: D1 [20:32:18]MH_I2C_Read... [20:32:18]Read from MH i2c: D1 01 00 [20:32:18]MH_I2C_Read... [20:32:18]Read from MH i2c: D1 01 00 39 62 00 6C [20:32:18]Write to MH i2c: 01 00 00 3A 62 9C [20:32:18]Write i2c OK [20:32:18]MH_I2C_Read... [20:32:18]OFD Sender: No OFD packet to send [20:32:18]*** Cut start [20:32:18]*** Partial cut [20:32:18]*** CUTSNS_PIN = 1 [20:32:18]*** CUTSNS_PIN = 0 [20:32:19]*** Brake cut motor [20:32:19]Read from MH i2c: 01 [20:32:19]MH_I2C_Read... [20:32:19]*** Stop cut motor [20:32:19]*** Cut end [20:32:19]Read from MH i2c: 01 07 00 [20:32:19]MH_I2C_Read... [20:32:19]Read from MH i2c: 01 07 00 3A 62 00 00 00 00 00 FF 0F B1 [20:32:19]process_action close_receipt done [20:32:19]requested_data is exist [20:32:19]produce_requested_data [20:32:19]requested_item fm.sn is exist - process it [20:32:19]wFMCommunicate request_size=4 [20:32:19]MH_SAM_APDU [20:32:19]CAPDU: 80 11 00 00 [20:32:19]Write to MH i2c: E2 08 00 3B 62 80 11 00 00 00 00 00 00 17 [20:32:19]Write i2c OK [20:32:19]MH_I2C_Read... [20:32:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:19]Read from MH i2c: E2 [20:32:19]MH_I2C_Read... [20:32:19]Read from MH i2c: E2 17 00 [20:32:19]MH_I2C_Read... [20:32:19]Read from MH i2c: E2 17 00 3B 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 66 [20:32:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:32:19]wFMCommunicate OK [20:32:19]requested_item fd.num is exist - process it [20:32:19]SAM_PROTO_GetFieldsCounters [20:32:19]wFMCommunicate request_size=4 [20:32:19]MH_SAM_APDU [20:32:19]CAPDU: 80 13 00 00 [20:32:19]Write to MH i2c: E2 08 00 3C 62 80 13 00 00 00 00 00 00 1A [20:32:19]Write i2c OK [20:32:19]MH_I2C_Read... [20:32:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:19]Read from MH i2c: E2 [20:32:19]MH_I2C_Read... [20:32:19]Read from MH i2c: E2 62 00 [20:32:19]MH_I2C_Read... [20:32:19]Read from MH i2c: E2 62 00 3C 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 74 71 00 00 0E 04 04 00 73 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 A1 [20:32: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 74 71 00 00 0E 04 04 00 73 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 [20:32:19]wFMCommunicate OK [20:32:19]SAM_PROTO_GetFieldsCounters done [20:32:19]requested_item shift.num is exist - process it [20:32:19]requested_item shift.opened is exist - process it [20:32:19]req_shift_opened [20:32:19]FM_GetShiftState [20:32:19]SAM_PROTO_GetShiftState [20:32:19]wFMCommunicate request_size=4 [20:32:19]MH_SAM_APDU [20:32:19]CAPDU: 80 13 01 00 [20:32:19]Write to MH i2c: E2 08 00 3D 62 80 13 01 00 00 00 00 00 1C [20:32:19]Write i2c OK [20:32:19]MH_I2C_Read... [20:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:19]Read from MH i2c: E2 [20:32:19]MH_I2C_Read... [20:32:19]Read from MH i2c: E2 0E 00 [20:32:19]MH_I2C_Read... [20:32:19]Read from MH i2c: E2 0E 00 3D 62 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 35 [20:32:19]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [20:32:19]wFMCommunicate OK [20:32:19]SAM_PROTO_GetShiftState done [20:32:19]FM_GetShiftState done [20:32:19]req_shift_opened done [20:32:19]requested_item shift.open_date is exist - process it [20:32:19]req_shift_open_date [20:32:19]req_shift_open_date done [20:32:19]produce_requested_data done [20:32:19]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29044,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [20:32:19]process_action_free close_receipt [20:32:19]json_value_free [20:32:19]json_value_free done [20:32:19]process_json_proto returns [20:32:19]Send response to host [20:32:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29044,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [20:32:19]free response buf [20:32:19]execute_script done [20:32:19]execute_script returns [20:32:19]free content buf [20:32:19]Sock 7.Close socket [20:32:19]Sock 7.Thread stoped [20:32:23]OFD Sender: No OFD packet to send [20:32:28]OFD Sender: No OFD packet to send [20:32:33]OFD Sender: No OFD packet to send [20:32:38]OFD Sender: No OFD packet to send [20:32:43]OFD Sender: No OFD packet to send [20:32:48]OFD Sender: No OFD packet to send [20:32:53]OFD Sender: No OFD packet to send [20:32:58]OFD Sender: No OFD packet to send [20:33:03]OFD Sender: No OFD packet to send [20:33:08]OFD Sender: No OFD packet to send [20:33:13]OFD Sender: No OFD packet to send [20:33:18]OFD Sender: No OFD packet to send [20:33:23]OFD Sender: No OFD packet to send [20:33:28]OFD Sender: No OFD packet to send [20:33:33]OFD Sender: No OFD packet to send [20:33:38]OFD Sender: No OFD packet to send [20:33:43]OFD Sender: No OFD packet to send [20:33:48]OFD Sender: No OFD packet to send [20:33:53]OFD Sender: No OFD packet to send [20:33:58]OFD Sender: No OFD packet to send [20:34:03]OFD Sender: No OFD packet to send [20:34:08]OFD Sender: No OFD packet to send [20:34:13]OFD Sender: No OFD packet to send [20:34:18]OFD Sender: No OFD packet to send [20:34:23]OFD Sender: No OFD packet to send [20:34:28]OFD Sender: No OFD packet to send [20:34:33]OFD Sender: No OFD packet to send [20:34:38]OFD Sender: No OFD packet to send [20:34:43]OFD Sender: No OFD packet to send [20:34:48]OFD Sender: No OFD packet to send [20:34:53]OFD Sender: No OFD packet to send [20:34:58]OFD Sender: No OFD packet to send [20:35:03]OFD Sender: No OFD packet to send [20:35:08]OFD Sender: No OFD packet to send [20:35:13]OFD Sender: No OFD packet to send [20:35:18]OFD Sender: No OFD packet to send [20:35:23]OFD Sender: No OFD packet to send [20:35:28]OFD Sender: No OFD packet to send [20:35:33]OFD Sender: No OFD packet to send [20:35:38]OFD Sender: No OFD packet to send [20:35:43]OFD Sender: No OFD packet to send [20:35:48]OFD Sender: No OFD packet to send [20:35:53]OFD Sender: No OFD packet to send [20:35:58]OFD Sender: No OFD packet to send [20:36:03]OFD Sender: No OFD packet to send [20:36:08]OFD Sender: No OFD packet to send [20:36:13]OFD Sender: No OFD packet to send [20:36:18]OFD Sender: No OFD packet to send [20:36:23]OFD Sender: No OFD packet to send [20:36:28]OFD Sender: No OFD packet to send [20:36:33]OFD Sender: No OFD packet to send [20:36:38]OFD Sender: No OFD packet to send [20:36:43]OFD Sender: No OFD packet to send [20:36:48]OFD Sender: No OFD packet to send [20:36:53]OFD Sender: No OFD packet to send [20:36:56]accept exits with 9 [20:36:56]New connection [20:36:56]New thread 3066928484 created [20:36:56]Thread 3066785124 joined [20:36:56]Waiting for new connection... [20:36:56] Sock 9.Parse request [20:36:56]Sock 9.Check first char [20:36:56]Sock 9.First char is OK [20:36:56]request: POST /json_proto HTTP/1.0 [20:36:56]Method: POST [20:36:56]URL: /json_proto [20:36:56]Method is POST - this is cgi request [20:36:56]url: /json_proto [20:36:56]query_string will be loaded in cgi processing [20:36:56]execute_cgi json_proto POST (null) [20:36:56]execute_cgi path=json_proto method=POST [20:36:56]POST find Content-Length [20:36:56]Host: 172.17.33.3:8080 [20:36:56]Content-Length: 822 [20:36:56]Content-Type: application/json [20:36:56] [20:36:56]POST finish read [20:36:56]Found Content-Length = 822 [20:36:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 45.600, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:56]execute_script... [20:36: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)347413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 45.600, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:56]POST & json_proto [20:36:56]process_json_proto [20:36:56]json parsed OK: [20:36:56]protocol is kg_v1.0 [20:36:56]action value=close_receipt [20:36:56]process_action close_receipt [20:36:56]cmd_close_receipt [20:36:56]MH_GetDate [20:36:56]Write to MH i2c: F0 00 00 3E 62 8F [20:36:56]Write i2c OK [20:36:56]MH_I2C_Read... [20:36:56]Read from MH i2c: F0 [20:36:56]MH_I2C_Read... [20:36:56]Read from MH i2c: F0 09 00 [20:36:56]MH_I2C_Read... [20:36:56]Read from MH i2c: F0 09 00 3E 62 00 EF EC 1A 66 23 5B 8F 65 65 [20:36:56]GetLastDocTimeStamp 1713040341 [20:36:56]current date 1713040623 [20:36:56]FM_GetShiftState [20:36:56]SAM_PROTO_GetShiftState [20:36:56]wFMCommunicate request_size=4 [20:36:56]MH_SAM_APDU [20:36:56]CAPDU: 80 13 01 00 [20:36:56]Write to MH i2c: E2 08 00 3F 62 80 13 01 00 00 00 00 00 1E [20:36:56]Write i2c OK [20:36:56]MH_I2C_Read... [20:36:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:56]Read from MH i2c: E2 [20:36:56]MH_I2C_Read... [20:36:56]Read from MH i2c: E2 0E 00 [20:36:56]MH_I2C_Read... [20:36:56]Read from MH i2c: E2 0E 00 3F 62 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 37 [20:36:56]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [20:36:56]wFMCommunicate OK [20:36:56]SAM_PROTO_GetShiftState done [20:36:56]FM_GetShiftState done [20:36:56]opened in 1712967615 [20:36:56]opened+sec_in_day 1713054015 [20:36:56]quantity*price = 150024 [20:36:56]sum+1 = 150025 [20:36:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.24 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 0.00 Безнал.: 1500.24 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 252 13.04.2024 20:37 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29045 ФПД: 90558034296205 1/tax-web-control/client/api/v1/ticket?date=20240413T203703&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29045&fm=90558034296205&tin=02508201610067®Number=0000138879044617&sum=150024 [20:36:57]StoreToDocumentArchive [20:36:57]shift 115 fd 29045 [20:36:57]save to /storage/0115/doc_00029045 [20:36:57]save last doc name /storage/0115/doc_00029045 to /storage/kkm_last_doc_name [20:36:57]save OK [20:36:57]Clear old archive folders... [20:36:57]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:36:57]tlvbuf is 0120E870 [20:36:57]SAM_PROTO_ClearQueue [20:36:57]wFMCommunicate request_size=4 [20:36:57]MH_SAM_APDU [20:36:57]CAPDU: 80 09 00 00 [20:36:57]Write to MH i2c: E2 08 00 4C 62 80 09 00 00 00 00 00 00 20 [20:36:57]Write i2c OK [20:36:57]MH_I2C_Read... [20:36:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:57]Read from MH i2c: E2 [20:36:57]MH_I2C_Read... [20:36:57]Read from MH i2c: E2 03 00 [20:36:57]MH_I2C_Read... [20:36:57]Read from MH i2c: E2 03 00 4C 62 00 90 00 22 [20:36:57]RAPDU: 90 00 [20:36:57]wFMCommunicate OK [20:36:57]SAM_PROTO_ClearQueue done [20:36:57]KKMCreateOFDPacket [20:36:57]OFDProtocolAddRootSTLVToBuf [20:36:57]FM_MakeSignedData [20:36:57]FM_MakeSignedData [20:36:57]SAM_PROTO_SignData [20:36:57]wFMCommunicate request_size=4 [20:36:57]MH_SAM_APDU [20:36:57]CAPDU: 80 0D 01 02 [20:36:57]Write to MH i2c: E2 08 00 4D 62 80 0D 01 02 00 00 00 00 28 [20:36:57]Write i2c OK [20:36:57]MH_I2C_Read... [20:36:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:57]Read from MH i2c: E2 [20:36:57]MH_I2C_Read... [20:36:57]Read from MH i2c: E2 03 00 [20:36:57]MH_I2C_Read... [20:36:57]Read from MH i2c: E2 03 00 4D 62 00 90 00 23 [20:36:57]RAPDU: 90 00 [20:36:57]wFMCommunicate OK [20:36:57]wFMCommunicate request_size=255 [20:36:57]MH_SAM_APDU [20:36: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 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 EF EC 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 75 71 00 00 35 04 06 00 52 5C [20:36:57]Write to MH i2c: E2 02 01 4E 62 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 EF EC 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 75 71 00 00 35 04 06 00 52 5C 00 00 C0 [20:36:57]Write i2c OK [20:36:57]MH_I2C_Read... [20:36:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:58]Read from MH i2c: E2 [20:36:58]MH_I2C_Read... [20:36:58]Read from MH i2c: E2 03 00 [20:36:58]MH_I2C_Read... [20:36:58]Read from MH i2c: E2 03 00 4E 62 00 90 00 24 [20:36:58]RAPDU: 90 00 [20:36:58]wFMCommunicate OK [20:36:58]wFMCommunicate request_size=9 [20:36:58]MH_SAM_APDU [20:36:58]CAPDU: 80 0D 02 02 04 AF 77 3D 8D [20:36:58]Write to MH i2c: E2 0C 00 4F 62 80 0D 02 02 04 00 AF 77 3D 8D 00 00 23 [20:36:58]Write i2c OK [20:36:58]MH_I2C_Read... [20:36:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:58]Read from MH i2c: E2 [20:36:58]MH_I2C_Read... [20:36:58]Read from MH i2c: E2 03 00 [20:36:58]MH_I2C_Read... [20:36:58]Read from MH i2c: E2 03 00 4F 62 00 90 00 25 [20:36:58]RAPDU: 90 00 [20:36:58]wFMCommunicate OK [20:36:58]wFMCommunicate request_size=4 [20:36:58]MH_SAM_APDU [20:36:58]CAPDU: 80 0D 03 02 [20:36:58]Write to MH i2c: E2 08 00 50 62 80 0D 03 02 00 00 00 00 2D [20:36:58]Write i2c OK [20:36:58]MH_I2C_Read... [20:36:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:58]Read from MH i2c: E2 [20:36:58]MH_I2C_Read... [20:36:58]Read from MH i2c: E2 0B 00 [20:36:58]MH_I2C_Read... [20:36:58]Read from MH i2c: E2 0B 00 50 62 00 CF 92 DA 7D 4E 1A C6 A2 90 00 B6 [20:36:58]RAPDU: CF 92 DA 7D 4E 1A C6 A2 90 00 [20:36:58]wFMCommunicate OK [20:36:58]SAM_PROTO_SignData done [20:36:58]FM_MakeSignedData done [20:36:58]CreateOFDProtocolMessage [20:36:58]wFMCommunicate request_size=4 [20:36:58]MH_SAM_APDU [20:36:58]CAPDU: 80 11 00 00 [20:36:58]Write to MH i2c: E2 08 00 51 62 80 11 00 00 00 00 00 00 2D [20:36:58]Write i2c OK [20:36:58]MH_I2C_Read... [20:36:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:58]Read from MH i2c: E2 [20:36:58]MH_I2C_Read... [20:36:58]Read from MH i2c: E2 17 00 [20:36:58]MH_I2C_Read... [20:36:58]Read from MH i2c: E2 17 00 51 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7C [20:36:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:36:58]wFMCommunicate OK [20:36:58]CreateOFDProtocolMessage done [20:36:58]OFDSenderStorePacket 29045 [20:36:58]StoreOFDPacket docnum=29045 [20:36:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 34 88 06 01 D2 8D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 EF EC 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 75 71 00 00 35 04 06 00 52 5C AF 77 3D 8D CF 92 DA 7D 4E 1A C6 A2 [20:36:58]CheckFolder [20:36:58]dirname=/storage/ofd_packets [20:36:58]CheckFolder done [20:36:58]ProducePacketName [20:36:58]name=ofd_packets/00029045 [20:36:58]NVStorageSaveData ofd_packets/00029045 [20:36:58]File name is /storage/ofd_packets/00029045 [20:36:58]Write 300 bytes [20:36:58]NVStorageSaveData done [20:36:58]OFDSenderStorePacket done [20:36:58]KKMCreateOFDPacket done [20:36:58]NVStorageSaveData kkm_last_timestamp [20:36:58]File name is /storage/kkm_last_timestamp [20:36:58]Write 4 bytes [20:36:58]NVStorageSaveData done [20:36:58]ExternCall_PrintAddStr [20:36:58]wPrintStart [20:36:58]Write to MH i2c: 01 00 00 52 62 B4 [20:36:58]Write i2c OK [20:36:58]MH_I2C_Read... [20:36:58]Read from MH i2c: 01 [20:36:58]MH_I2C_Read... [20:36:58]Read from MH i2c: 01 07 00 [20:36:58]MH_I2C_Read... [20:36:58]Read from MH i2c: 01 07 00 52 62 00 00 00 00 00 FF 0F C9 [20:36:58]RasterBufferAndPrint [20:36:58]line Счет N : (1)347413 [20:36:58]line ИНН: 02508201610067 [20:36:58]line Контрольно-Кассовый Чек [20:36:58]line ПРОДАЖА [20:36:58]line ТРК (МРК, ГНК) : 71 [20:36:58]line Товар: 2711129700 [20:36:58]line ГАЗ-К-5 [20:36:58]line 45.600 * 32.90 [20:36:58]line = 1500.24 [20:36:58]line НДС 12% НСП 1% [20:36:58]line > о реализуемом товаре [20:36:58]line ИТОГО: 1500.24 [20:36:58]line НСП 1% : 13.28 [20:36:58]line НДС 12% : 159.32 [20:36:58]line Наличными: 0.00 [20:36:58]line Безнал.: 1500.24 [20:36:58]line Место: АЗС № 108 "Партнер Нефть" [20:36:58]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:36:58]line СНО: Общий режим [20:36:58]line Чек 252 13.04.2024 20:37 [20:36:58]line Смена: 115 ФФД: 1.0 [20:36:58]line ЗНМ: 0300000027 [20:36:58]line РНМ: 0000138879044617 [20:36:58]line Версия ККМ: 001 [20:36:58]line Платежная система: Бакай Банк [20:36:58]line ФМ: 0000000000963154 [20:36:58]line ФД: 29045 [20:36:58]line ФПД: 90558034296205 [20:36:58]line 1/tax-web-control/client/api/v1/ticket?date=20240413T203703&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29045&fm=90558034296205&tin=02508201610067®Number=0000138879044617&sum=150024 [20:36:58]OFD Sender: Processing packet 29045 [packets to send 8, broken 7] [20:36:58]ProducePacketName [20:36:58]name=ofd_packets/00029045 [20:36:58]OFD Sender: To server: pG, [20:36:58]CommunicateWithHost lk.salyk.kg:30040 [20:36:58]ConnectInit lk.salyk.kg [20:36:58]written 0, free lines is 4095 [20:36:58]Connected sock=10 [20:36: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 31 35 34 0E 01 00 00 34 88 06 01 D2 8D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 B2 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 EF EC 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 75 71 00 00 35 04 06 00 52 5C AF 77 3D 8D CF 92 DA 7D 4E 1A C6 A2 [20:36:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 FD 02 47 00 4F 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 75 71 00 00 F4 03 04 00 95 97 1A 66 B6 04 01 00 00 F9 55 B9 A2 4E CA DB D7 [20:36:58]CommunicateWithHost err = 0 [20:36:58]CheckOFDResponse [20:36:58]1017 (14) - 77093643461234 [20:36:58]1041 (16) - 0000000000963154 [20:36:58]1040 (4) - 29045 [20:36:58]1012 (4) - 13.04.2024 14:32 [20:36:58]1206 (1) - 0 [20:36:58]OFD Sender: Remove packet 29045 [20:36:58]ProducePacketName [20:36:58]name=ofd_packets/00029045 [20:36:58]NVStorageDeleteData [20:36:59]Write to MH i2c: 01 00 00 7B 62 DD [20:36:59]Write i2c OK [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: 01 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: 01 07 00 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: 01 07 00 7B 62 00 00 00 00 00 DA 0C CA [20:36:59]RasterBufferAndPrint [20:36:59]line [20:36:59]line [20:36:59]line [20:36:59]line [20:36:59]line [20:36:59]written 0, free lines is 3296 [20:36:59]MH_Cut [20:36:59]Write to MH i2c: D1 01 00 82 62 01 B6 [20:36:59]Write i2c OK [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: D1 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: D1 01 00 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: D1 01 00 82 62 00 B5 [20:36:59]Write to MH i2c: 01 00 00 83 62 E5 [20:36:59]Write i2c OK [20:36:59]MH_I2C_Read... [20:36:59]OFD Sender: No OFD packet to send [20:36:59]*** Cut start [20:36:59]*** Partial cut [20:36:59]*** CUTSNS_PIN = 1 [20:36:59]*** CUTSNS_PIN = 0 [20:37:00]*** Brake cut motor [20:37:00]Read from MH i2c: 01 [20:37:00]MH_I2C_Read... [20:37:00]*** Stop cut motor [20:37:00]*** Cut end [20:37:00]Read from MH i2c: 01 07 00 [20:37:00]MH_I2C_Read... [20:37:00]Read from MH i2c: 01 07 00 83 62 00 00 00 00 00 FF 0F FA [20:37:00]process_action close_receipt done [20:37:00]requested_data is exist [20:37:00]produce_requested_data [20:37:00]requested_item fm.sn is exist - process it [20:37:00]wFMCommunicate request_size=4 [20:37:00]MH_SAM_APDU [20:37:00]CAPDU: 80 11 00 00 [20:37:00]Write to MH i2c: E2 08 00 84 62 80 11 00 00 00 00 00 00 60 [20:37:00]Write i2c OK [20:37:00]MH_I2C_Read... [20:37:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:00]Read from MH i2c: E2 [20:37:00]MH_I2C_Read... [20:37:00]Read from MH i2c: E2 17 00 [20:37:00]MH_I2C_Read... [20:37:00]Read from MH i2c: E2 17 00 84 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AF [20:37:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:37:00]wFMCommunicate OK [20:37:00]requested_item fd.num is exist - process it [20:37:00]SAM_PROTO_GetFieldsCounters [20:37:00]wFMCommunicate request_size=4 [20:37:00]MH_SAM_APDU [20:37:00]CAPDU: 80 13 00 00 [20:37:00]Write to MH i2c: E2 08 00 85 62 80 13 00 00 00 00 00 00 63 [20:37:00]Write i2c OK [20:37:00]MH_I2C_Read... [20:37:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:37:00]Read from MH i2c: E2 [20:37:00]MH_I2C_Read... [20:37:00]Read from MH i2c: E2 62 00 [20:37:00]MH_I2C_Read... [20:37:00]Read from MH i2c: E2 62 00 85 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 75 71 00 00 0E 04 04 00 73 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 EE [20:37: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 75 71 00 00 0E 04 04 00 73 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 [20:37:00]wFMCommunicate OK [20:37:00]SAM_PROTO_GetFieldsCounters done [20:37:00]requested_item shift.num is exist - process it [20:37:00]requested_item shift.opened is exist - process it [20:37:00]req_shift_opened [20:37:00]FM_GetShiftState [20:37:00]SAM_PROTO_GetShiftState [20:37:00]wFMCommunicate request_size=4 [20:37:00]MH_SAM_APDU [20:37:00]CAPDU: 80 13 01 00 [20:37:00]Write to MH i2c: E2 08 00 86 62 80 13 01 00 00 00 00 00 65 [20:37:00]Write i2c OK [20:37:00]MH_I2C_Read... [20:37:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:00]Read from MH i2c: E2 [20:37:00]MH_I2C_Read... [20:37:00]Read from MH i2c: E2 0E 00 [20:37:00]MH_I2C_Read... [20:37:00]Read from MH i2c: E2 0E 00 86 62 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 7E [20:37:00]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [20:37:00]wFMCommunicate OK [20:37:00]SAM_PROTO_GetShiftState done [20:37:00]FM_GetShiftState done [20:37:00]req_shift_opened done [20:37:00]requested_item shift.open_date is exist - process it [20:37:00]req_shift_open_date [20:37:00]req_shift_open_date done [20:37:00]produce_requested_data done [20:37:00]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29045,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [20:37:00]process_action_free close_receipt [20:37:00]json_value_free [20:37:00]json_value_free done [20:37:00]process_json_proto returns [20:37:00]Send response to host [20:37:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29045,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [20:37:00]free response buf [20:37:00]execute_script done [20:37:00]execute_script returns [20:37:00]free content buf [20:37:00]Sock 9.Close socket [20:37:00]Sock 9.Thread stoped [20:37:04]OFD Sender: No OFD packet to send [20:37:09]OFD Sender: No OFD packet to send [20:37:14]OFD Sender: No OFD packet to send [20:37:19]OFD Sender: No OFD packet to send [20:37:24]OFD Sender: No OFD packet to send [20:37:29]OFD Sender: No OFD packet to send [20:37:34]OFD Sender: No OFD packet to send [20:37:39]OFD Sender: No OFD packet to send [20:37:44]OFD Sender: No OFD packet to send [20:37:49]OFD Sender: No OFD packet to send [20:37:54]OFD Sender: No OFD packet to send [20:37:59]OFD Sender: No OFD packet to send [20:38:04]OFD Sender: No OFD packet to send [20:38:09]OFD Sender: No OFD packet to send [20:38:14]OFD Sender: No OFD packet to send [20:38:19]OFD Sender: No OFD packet to send [20:38:24]OFD Sender: No OFD packet to send [20:38:27]accept exits with 7 [20:38:27]New connection [20:38:27]New thread 3066785124 created [20:38:27]Thread 3066928484 joined [20:38:27]Waiting for new connection... [20:38:27] Sock 7.Parse request [20:38:27]Sock 7.Check first char [20:38:27]Sock 7.First char is OK [20:38:27]request: POST /json_proto HTTP/1.0 [20:38:27]Method: POST [20:38:27]URL: /json_proto [20:38:27]Method is POST - this is cgi request [20:38:27]url: /json_proto [20:38:27]query_string will be loaded in cgi processing [20:38:27]execute_cgi json_proto POST (null) [20:38:27]execute_cgi path=json_proto method=POST [20:38:27]POST find Content-Length [20:38:27]Host: 172.17.33.3:8080 [20:38:27]Content-Length: 799 [20:38:27]Content-Type: application/json [20:38:27] [20:38:27]POST finish read [20:38:27]Found Content-Length = 799 [20:38:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 12.260, "sum" : 800.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.58 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:27]execute_script... [20:38: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)347414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 12.260, "sum" : 800.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.58 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:27]POST & json_proto [20:38:27]process_json_proto [20:38:27]json parsed OK: [20:38:27]protocol is kg_v1.0 [20:38:27]action value=close_receipt [20:38:27]process_action close_receipt [20:38:27]cmd_close_receipt [20:38:27]MH_GetDate [20:38:27]Write to MH i2c: F0 00 00 87 62 D8 [20:38:27]Write i2c OK [20:38:27]MH_I2C_Read... [20:38:27]Read from MH i2c: F0 [20:38:27]MH_I2C_Read... [20:38:27]Read from MH i2c: F0 09 00 [20:38:27]MH_I2C_Read... [20:38:27]Read from MH i2c: F0 09 00 87 62 00 49 ED 1A 66 23 5B 8F 65 09 [20:38:27]GetLastDocTimeStamp 1713040623 [20:38:27]current date 1713040713 [20:38:27]FM_GetShiftState [20:38:27]SAM_PROTO_GetShiftState [20:38:27]wFMCommunicate request_size=4 [20:38:27]MH_SAM_APDU [20:38:27]CAPDU: 80 13 01 00 [20:38:27]Write to MH i2c: E2 08 00 88 62 80 13 01 00 00 00 00 00 67 [20:38:27]Write i2c OK [20:38:27]MH_I2C_Read... [20:38:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:27]Read from MH i2c: E2 [20:38:27]MH_I2C_Read... [20:38:27]Read from MH i2c: E2 0E 00 [20:38:27]MH_I2C_Read... [20:38:27]Read from MH i2c: E2 0E 00 88 62 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 80 [20:38:27]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [20:38:27]wFMCommunicate OK [20:38:27]SAM_PROTO_GetShiftState done [20:38:27]FM_GetShiftState done [20:38:27]opened in 1712967615 [20:38:27]opened+sec_in_day 1713054015 [20:38:27]quantity*price = 80057 [20:38:27]sum+1 = 80059 [20:38:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.58 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 0.00 Безнал.: 800.58 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 253 13.04.2024 20:38 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29046 ФПД: 108402882387894 1/tax-web-control/client/api/v1/ticket?date=20240413T203833&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29046&fm=108402882387894&tin=02508201610067®Number=0000138879044617&sum=80058 [20:38:28]StoreToDocumentArchive [20:38:28]shift 115 fd 29046 [20:38:28]save to /storage/0115/doc_00029046 [20:38:28]save last doc name /storage/0115/doc_00029046 to /storage/kkm_last_doc_name [20:38:28]save OK [20:38:28]Clear old archive folders... [20:38:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:38:28]tlvbuf is 011FB020 [20:38:28]SAM_PROTO_ClearQueue [20:38:28]wFMCommunicate request_size=4 [20:38:28]MH_SAM_APDU [20:38:28]CAPDU: 80 09 00 00 [20:38:28]Write to MH i2c: E2 08 00 95 62 80 09 00 00 00 00 00 00 69 [20:38:28]Write i2c OK [20:38:28]MH_I2C_Read... [20:38:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:38:28]Read from MH i2c: E2 [20:38:28]MH_I2C_Read... [20:38:28]Read from MH i2c: E2 03 00 [20:38:28]MH_I2C_Read... [20:38:28]Read from MH i2c: E2 03 00 95 62 00 90 00 6B [20:38:28]RAPDU: 90 00 [20:38:28]wFMCommunicate OK [20:38:28]SAM_PROTO_ClearQueue done [20:38:28]KKMCreateOFDPacket [20:38:28]OFDProtocolAddRootSTLVToBuf [20:38:28]FM_MakeSignedData [20:38:28]FM_MakeSignedData [20:38:28]SAM_PROTO_SignData [20:38:28]wFMCommunicate request_size=4 [20:38:28]MH_SAM_APDU [20:38:28]CAPDU: 80 0D 01 02 [20:38:28]Write to MH i2c: E2 08 00 96 62 80 0D 01 02 00 00 00 00 71 [20:38:28]Write i2c OK [20:38:28]MH_I2C_Read... [20:38:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:38:28]Read from MH i2c: E2 [20:38:28]MH_I2C_Read... [20:38:28]Read from MH i2c: E2 03 00 [20:38:28]MH_I2C_Read... [20:38:28]Read from MH i2c: E2 03 00 96 62 00 90 00 6C [20:38:28]RAPDU: 90 00 [20:38:28]wFMCommunicate OK [20:38:28]wFMCommunicate request_size=255 [20:38:28]MH_SAM_APDU [20:38:28]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BA 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 49 ED 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 76 71 00 00 35 04 06 00 [20:38:28]Write to MH i2c: E2 02 01 97 62 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BA 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 49 ED 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 76 71 00 00 35 04 06 00 00 00 F3 [20:38:28]Write i2c OK [20:38:28]MH_I2C_Read... [20:38:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:28]Read from MH i2c: E2 [20:38:28]MH_I2C_Read... [20:38:28]Read from MH i2c: E2 03 00 [20:38:28]MH_I2C_Read... [20:38:28]Read from MH i2c: E2 03 00 97 62 00 90 00 6D [20:38:28]RAPDU: 90 00 [20:38:28]wFMCommunicate OK [20:38:28]wFMCommunicate request_size=11 [20:38:28]MH_SAM_APDU [20:38:28]CAPDU: 80 0D 02 02 06 62 97 83 4C 1F B6 [20:38:28]Write to MH i2c: E2 0E 00 98 62 80 0D 02 02 06 00 62 97 83 4C 1F B6 00 00 1D [20:38:28]Write i2c OK [20:38:28]MH_I2C_Read... [20:38:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:28]Read from MH i2c: E2 [20:38:28]MH_I2C_Read... [20:38:28]Read from MH i2c: E2 03 00 [20:38:28]MH_I2C_Read... [20:38:28]Read from MH i2c: E2 03 00 98 62 00 90 00 6E [20:38:28]RAPDU: 90 00 [20:38:28]wFMCommunicate OK [20:38:28]wFMCommunicate request_size=4 [20:38:28]MH_SAM_APDU [20:38:28]CAPDU: 80 0D 03 02 [20:38:28]Write to MH i2c: E2 08 00 99 62 80 0D 03 02 00 00 00 00 76 [20:38:28]Write i2c OK [20:38:28]MH_I2C_Read... [20:38:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:38:28]Read from MH i2c: E2 [20:38:28]MH_I2C_Read... [20:38:28]Read from MH i2c: E2 0B 00 [20:38:28]MH_I2C_Read... [20:38:28]Read from MH i2c: E2 0B 00 99 62 00 12 8D 92 9A 9E CB 42 46 90 00 33 [20:38:28]RAPDU: 12 8D 92 9A 9E CB 42 46 90 00 [20:38:28]wFMCommunicate OK [20:38:28]SAM_PROTO_SignData done [20:38:28]FM_MakeSignedData done [20:38:28]CreateOFDProtocolMessage [20:38:28]wFMCommunicate request_size=4 [20:38:28]MH_SAM_APDU [20:38:28]CAPDU: 80 11 00 00 [20:38:28]Write to MH i2c: E2 08 00 9A 62 80 11 00 00 00 00 00 00 76 [20:38:28]Write i2c OK [20:38:28]MH_I2C_Read... [20:38:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:28]Read from MH i2c: E2 [20:38:28]MH_I2C_Read... [20:38:28]Read from MH i2c: E2 17 00 [20:38:28]MH_I2C_Read... [20:38:28]Read from MH i2c: E2 17 00 9A 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C5 [20:38:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:38:28]wFMCommunicate OK [20:38:28]CreateOFDProtocolMessage done [20:38:28]OFDSenderStorePacket 29046 [20:38:28]StoreOFDPacket docnum=29046 [20:38:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 D9 C6 08 01 9F 9F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BA 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 49 ED 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 76 71 00 00 35 04 06 00 62 97 83 4C 1F B6 12 8D 92 9A 9E CB 42 46 [20:38:28]CheckFolder [20:38:28]dirname=/storage/ofd_packets [20:38:28]CheckFolder done [20:38:28]ProducePacketName [20:38:28]name=ofd_packets/00029046 [20:38:28]NVStorageSaveData ofd_packets/00029046 [20:38:28]File name is /storage/ofd_packets/00029046 [20:38:28]Write 302 bytes [20:38:28]NVStorageSaveData done [20:38:28]OFDSenderStorePacket done [20:38:28]KKMCreateOFDPacket done [20:38:28]NVStorageSaveData kkm_last_timestamp [20:38:28]File name is /storage/kkm_last_timestamp [20:38:28]Write 4 bytes [20:38:28]NVStorageSaveData done [20:38:28]ExternCall_PrintAddStr [20:38:28]wPrintStart [20:38:28]Write to MH i2c: 01 00 00 9B 62 FD [20:38:28]Write i2c OK [20:38:28]MH_I2C_Read... [20:38:28]Read from MH i2c: 01 [20:38:28]MH_I2C_Read... [20:38:28]Read from MH i2c: 01 07 00 [20:38:28]MH_I2C_Read... [20:38:28]Read from MH i2c: 01 07 00 9B 62 00 00 00 00 00 FF 0F 12 [20:38:28]RasterBufferAndPrint [20:38:28]line Счет N : (1)347414 [20:38:28]line ИНН: 02508201610067 [20:38:28]line Контрольно-Кассовый Чек [20:38:28]line ПРОДАЖА [20:38:28]line ТРК (МРК, ГНК) : 12 [20:38:28]line Товар: 2710124130 [20:38:28]line SUPER-92-К-5 [20:38:28]line 12.260 * 65.30 [20:38:28]line = 800.58 [20:38:28]line НДС 12% НСП 1% [20:38:28]line > о реализуемом товаре [20:38:28]line ИТОГО: 800.58 [20:38:28]line НСП 1% : 7.08 [20:38:28]line НДС 12% : 85.02 [20:38:28]line Наличными: 0.00 [20:38:28]line Безнал.: 800.58 [20:38:28]line Место: АЗС № 108 "Партнер Нефть" [20:38:28]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:38:28]line СНО: Общий режим [20:38:28]line Чек 253 13.04.2024 20:38 [20:38:28]line Смена: 115 ФФД: 1.0 [20:38:28]line ЗНМ: 0300000027 [20:38:28]line РНМ: 0000138879044617 [20:38:28]line Версия ККМ: 001 [20:38:28]line Платежная система: О! деньги [20:38:28]line ФМ: 0000000000963154 [20:38:28]line ФД: 29046 [20:38:28]line ФПД: 108402882387894 [20:38:28]line 1/tax-web-control/client/api/v1/ticket?date=20240413T203833&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29046&fm=108402882387894&tin=02508201610067®Number=0000138879044617&sum=80058 [20:38:29]OFD Sender: Processing packet 29046 [packets to send 8, broken 7] [20:38:29]ProducePacketName [20:38:29]name=ofd_packets/00029046 [20:38:29]OFD Sender: To server: pG, [20:38:29]CommunicateWithHost lk.salyk.kg:30040 [20:38:29]ConnectInit lk.salyk.kg [20:38:29]written 0, free lines is 4095 [20:38:29]Connected sock=10 [20:38: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 31 35 34 10 01 00 00 D9 C6 08 01 9F 9F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BA 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 49 ED 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 76 71 00 00 35 04 06 00 62 97 83 4C 1F B6 12 8D 92 9A 9E CB 42 46 [20:38:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 81 50 47 00 87 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 76 71 00 00 F4 03 04 00 EF 97 1A 66 B6 04 01 00 00 34 6F 66 93 3C CC D2 42 [20:38:29]CommunicateWithHost err = 0 [20:38:29]CheckOFDResponse [20:38:29]1017 (14) - 77093643461234 [20:38:29]1041 (16) - 0000000000963154 [20:38:29]1040 (4) - 29046 [20:38:29]1012 (4) - 13.04.2024 14:34 [20:38:29]1206 (1) - 0 [20:38:29]OFD Sender: Remove packet 29046 [20:38:29]ProducePacketName [20:38:29]name=ofd_packets/00029046 [20:38:29]NVStorageDeleteData [20:38:29]Write to MH i2c: 01 00 00 C4 62 26 [20:38:29]Write i2c OK [20:38:29]MH_I2C_Read... [20:38:29]Read from MH i2c: 01 [20:38:29]MH_I2C_Read... [20:38:29]Read from MH i2c: 01 07 00 [20:38:29]MH_I2C_Read... [20:38:29]Read from MH i2c: 01 07 00 C4 62 00 00 00 00 00 E1 0C 1A [20:38:29]RasterBufferAndPrint [20:38:29]line [20:38:29]line [20:38:29]line [20:38:29]line [20:38:29]line [20:38:29]written 0, free lines is 3306 [20:38:29]MH_Cut [20:38:29]Write to MH i2c: D1 01 00 CB 62 01 FF [20:38:29]Write i2c OK [20:38:29]MH_I2C_Read... [20:38:29]Read from MH i2c: D1 [20:38:29]MH_I2C_Read... [20:38:29]Read from MH i2c: D1 01 00 [20:38:29]MH_I2C_Read... [20:38:29]Read from MH i2c: D1 01 00 CB 62 00 FE [20:38:29]Write to MH i2c: 01 00 00 CC 62 2E [20:38:29]Write i2c OK [20:38:29]MH_I2C_Read... [20:38:29]OFD Sender: No OFD packet to send [20:38:30]*** Cut start [20:38:30]*** Partial cut [20:38:30]*** CUTSNS_PIN = 1 [20:38:30]*** CUTSNS_PIN = 0 [20:38:30]*** Brake cut motor [20:38:31]Read from MH i2c: 01 [20:38:31]MH_I2C_Read... [20:38:31]*** Stop cut motor [20:38:31]*** Cut end [20:38:31]Read from MH i2c: 01 07 00 [20:38:31]MH_I2C_Read... [20:38:31]Read from MH i2c: 01 07 00 CC 62 00 00 00 00 00 FF 0F 43 [20:38:31]process_action close_receipt done [20:38:31]requested_data is exist [20:38:31]produce_requested_data [20:38:31]requested_item fm.sn is exist - process it [20:38:31]wFMCommunicate request_size=4 [20:38:31]MH_SAM_APDU [20:38:31]CAPDU: 80 11 00 00 [20:38:31]Write to MH i2c: E2 08 00 CD 62 80 11 00 00 00 00 00 00 A9 [20:38:31]Write i2c OK [20:38:31]MH_I2C_Read... [20:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:31]Read from MH i2c: E2 [20:38:31]MH_I2C_Read... [20:38:31]Read from MH i2c: E2 17 00 [20:38:31]MH_I2C_Read... [20:38:31]Read from MH i2c: E2 17 00 CD 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F8 [20:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:38:31]wFMCommunicate OK [20:38:31]requested_item fd.num is exist - process it [20:38:31]SAM_PROTO_GetFieldsCounters [20:38:31]wFMCommunicate request_size=4 [20:38:31]MH_SAM_APDU [20:38:31]CAPDU: 80 13 00 00 [20:38:31]Write to MH i2c: E2 08 00 CE 62 80 13 00 00 00 00 00 00 AC [20:38:31]Write i2c OK [20:38:31]MH_I2C_Read... [20:38:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:31]Read from MH i2c: E2 [20:38:31]MH_I2C_Read... [20:38:31]Read from MH i2c: E2 62 00 [20:38:31]MH_I2C_Read... [20:38:31]Read from MH i2c: E2 62 00 CE 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 76 71 00 00 0E 04 04 00 73 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 3B [20:38: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 76 71 00 00 0E 04 04 00 73 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 [20:38:31]wFMCommunicate OK [20:38:31]SAM_PROTO_GetFieldsCounters done [20:38:31]requested_item shift.num is exist - process it [20:38:31]requested_item shift.opened is exist - process it [20:38:31]req_shift_opened [20:38:31]FM_GetShiftState [20:38:31]SAM_PROTO_GetShiftState [20:38:31]wFMCommunicate request_size=4 [20:38:31]MH_SAM_APDU [20:38:31]CAPDU: 80 13 01 00 [20:38:31]Write to MH i2c: E2 08 00 CF 62 80 13 01 00 00 00 00 00 AE [20:38:31]Write i2c OK [20:38:31]MH_I2C_Read... [20:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:31]Read from MH i2c: E2 [20:38:31]MH_I2C_Read... [20:38:31]Read from MH i2c: E2 0E 00 [20:38:31]MH_I2C_Read... [20:38:31]Read from MH i2c: E2 0E 00 CF 62 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 C7 [20:38:31]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [20:38:31]wFMCommunicate OK [20:38:31]SAM_PROTO_GetShiftState done [20:38:31]FM_GetShiftState done [20:38:31]req_shift_opened done [20:38:31]requested_item shift.open_date is exist - process it [20:38:31]req_shift_open_date [20:38:31]req_shift_open_date done [20:38:31]produce_requested_data done [20:38:31]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29046,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [20:38:31]process_action_free close_receipt [20:38:31]json_value_free [20:38:31]json_value_free done [20:38:31]process_json_proto returns [20:38:31]Send response to host [20:38:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29046,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [20:38:31]free response buf [20:38:31]execute_script done [20:38:31]execute_script returns [20:38:31]free content buf [20:38:31]Sock 7.Close socket [20:38:31]Sock 7.Thread stoped [20:38:35]OFD Sender: No OFD packet to send [20:38:40]OFD Sender: No OFD packet to send [20:38:45]OFD Sender: No OFD packet to send [20:38:50]OFD Sender: No OFD packet to send [20:38:55]OFD Sender: No OFD packet to send [20:39:00]OFD Sender: No OFD packet to send [20:39:05]OFD Sender: No OFD packet to send [20:39:10]OFD Sender: No OFD packet to send [20:39:15]OFD Sender: No OFD packet to send [20:39:20]OFD Sender: No OFD packet to send [20:39:25]OFD Sender: No OFD packet to send [20:39:30]OFD Sender: No OFD packet to send [20:39:35]OFD Sender: No OFD packet to send [20:39:40]OFD Sender: No OFD packet to send [20:39:45]OFD Sender: No OFD packet to send [20:39:50]OFD Sender: No OFD packet to send [20:39:55]OFD Sender: No OFD packet to send [20:40:00]OFD Sender: No OFD packet to send [20:40:05]OFD Sender: No OFD packet to send [20:40:10]OFD Sender: No OFD packet to send [20:40:15]OFD Sender: No OFD packet to send [20:40:20]OFD Sender: No OFD packet to send [20:40:25]OFD Sender: No OFD packet to send [20:40:30]OFD Sender: No OFD packet to send [20:40:35]OFD Sender: No OFD packet to send [20:40:40]OFD Sender: No OFD packet to send [20:40:45]OFD Sender: No OFD packet to send [20:40:50]OFD Sender: No OFD packet to send [20:40:55]OFD Sender: No OFD packet to send [20:41:00]OFD Sender: No OFD packet to send [20:41:05]OFD Sender: No OFD packet to send [20:41:10]OFD Sender: No OFD packet to send [20:41:15]OFD Sender: No OFD packet to send [20:41:20]OFD Sender: No OFD packet to send [20:41:25]OFD Sender: No OFD packet to send [20:41:30]OFD Sender: No OFD packet to send [20:41:35]OFD Sender: No OFD packet to send [20:41:40]OFD Sender: No OFD packet to send [20:41:45]OFD Sender: No OFD packet to send [20:41:50]OFD Sender: No OFD packet to send [20:41:55]OFD Sender: No OFD packet to send [20:42:00]OFD Sender: No OFD packet to send [20:42:05]OFD Sender: No OFD packet to send [20:42:10]OFD Sender: No OFD packet to send [20:42:15]OFD Sender: No OFD packet to send [20:42:20]OFD Sender: No OFD packet to send [20:42:25]OFD Sender: No OFD packet to send [20:42:30]OFD Sender: No OFD packet to send [20:42:35]OFD Sender: No OFD packet to send [20:42:40]OFD Sender: No OFD packet to send [20:42:45]OFD Sender: No OFD packet to send [20:42:50]OFD Sender: No OFD packet to send [20:42:55]OFD Sender: No OFD packet to send [20:43:00]OFD Sender: No OFD packet to send [20:43:04]accept exits with 9 [20:43:04]New connection [20:43:04]New thread 3066928484 created [20:43:04]Thread 3066785124 joined [20:43:04]Waiting for new connection... [20:43:04] Sock 9.Parse request [20:43:04]Sock 9.Check first char [20:43:04]Sock 9.First char is OK [20:43:04]request: POST /json_proto HTTP/1.0 [20:43:04]Method: POST [20:43:04]URL: /json_proto [20:43:04]Method is POST - this is cgi request [20:43:04]url: /json_proto [20:43:04]query_string will be loaded in cgi processing [20:43:04]execute_cgi json_proto POST (null) [20:43:04]execute_cgi path=json_proto method=POST [20:43:04]POST find Content-Length [20:43:04]Host: 172.17.33.3:8080 [20:43:04]Content-Length: 801 [20:43:04]Content-Type: application/json [20:43:04] [20:43:04]POST finish read [20:43:04]Found Content-Length = 801 [20:43:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:04]execute_script... [20:43: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)347415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:04]POST & json_proto [20:43:04]process_json_proto [20:43:04]json parsed OK: [20:43:04]protocol is kg_v1.0 [20:43:04]action value=close_receipt [20:43:04]process_action close_receipt [20:43:04]cmd_close_receipt [20:43:04]MH_GetDate [20:43:04]Write to MH i2c: F0 00 00 D0 62 21 [20:43:04]Write i2c OK [20:43:04]MH_I2C_Read... [20:43:04]Read from MH i2c: F0 [20:43:04]MH_I2C_Read... [20:43:04]Read from MH i2c: F0 09 00 [20:43:04]MH_I2C_Read... [20:43:04]Read from MH i2c: F0 09 00 D0 62 00 5F EE 1A 66 23 5B 8F 65 69 [20:43:04]GetLastDocTimeStamp 1713040713 [20:43:04]current date 1713040991 [20:43:04]FM_GetShiftState [20:43:04]SAM_PROTO_GetShiftState [20:43:04]wFMCommunicate request_size=4 [20:43:04]MH_SAM_APDU [20:43:04]CAPDU: 80 13 01 00 [20:43:04]Write to MH i2c: E2 08 00 D1 62 80 13 01 00 00 00 00 00 B0 [20:43:04]Write i2c OK [20:43:04]MH_I2C_Read... [20:43:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:04]Read from MH i2c: E2 [20:43:04]MH_I2C_Read... [20:43:04]Read from MH i2c: E2 0E 00 [20:43:04]MH_I2C_Read... [20:43:04]Read from MH i2c: E2 0E 00 D1 62 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 C9 [20:43:04]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [20:43:04]wFMCommunicate OK [20:43:04]SAM_PROTO_GetShiftState done [20:43:04]FM_GetShiftState done [20:43:04]opened in 1712967615 [20:43:04]opened+sec_in_day 1713054015 [20:43:04]quantity*price = 100039 [20:43:04]sum+1 = 100041 [20:43:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.40 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.40 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 254 13.04.2024 20:43 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29047 ФПД: 168472389517188 1/tax-web-control/client/api/v1/ticket?date=20240413T204311&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29047&fm=168472389517188&tin=02508201610067®Number=0000138879044617&sum=100040 [20:43:05]StoreToDocumentArchive [20:43:05]shift 115 fd 29047 [20:43:05]save to /storage/0115/doc_00029047 [20:43:05]save last doc name /storage/0115/doc_00029047 to /storage/kkm_last_doc_name [20:43:05]save OK [20:43:05]Clear old archive folders... [20:43:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:43:05]tlvbuf is 01286620 [20:43:05]SAM_PROTO_ClearQueue [20:43:05]wFMCommunicate request_size=4 [20:43:05]MH_SAM_APDU [20:43:05]CAPDU: 80 09 00 00 [20:43:05]Write to MH i2c: E2 08 00 DE 62 80 09 00 00 00 00 00 00 B2 [20:43:05]Write i2c OK [20:43:05]MH_I2C_Read... [20:43:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:43:05]Read from MH i2c: E2 [20:43:05]MH_I2C_Read... [20:43:05]Read from MH i2c: E2 03 00 [20:43:05]MH_I2C_Read... [20:43:05]Read from MH i2c: E2 03 00 DE 62 00 90 00 B4 [20:43:05]RAPDU: 90 00 [20:43:05]wFMCommunicate OK [20:43:05]SAM_PROTO_ClearQueue done [20:43:05]KKMCreateOFDPacket [20:43:05]OFDProtocolAddRootSTLVToBuf [20:43:05]FM_MakeSignedData [20:43:05]FM_MakeSignedData [20:43:05]SAM_PROTO_SignData [20:43:05]wFMCommunicate request_size=4 [20:43:05]MH_SAM_APDU [20:43:05]CAPDU: 80 0D 01 02 [20:43:05]Write to MH i2c: E2 08 00 DF 62 80 0D 01 02 00 00 00 00 BA [20:43:05]Write i2c OK [20:43:05]MH_I2C_Read... [20:43:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:43:06]Read from MH i2c: E2 [20:43:06]MH_I2C_Read... [20:43:06]Read from MH i2c: E2 03 00 [20:43:06]MH_I2C_Read... [20:43:06]Read from MH i2c: E2 03 00 DF 62 00 90 00 B5 [20:43:06]RAPDU: 90 00 [20:43:06]wFMCommunicate OK [20:43:06]wFMCommunicate request_size=255 [20:43:06]MH_SAM_APDU [20:43:06]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 5F EE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 77 71 00 00 35 04 06 00 [20:43:06]Write to MH i2c: E2 02 01 E0 62 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 5F EE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 77 71 00 00 35 04 06 00 00 00 6D [20:43:06]Write i2c OK [20:43:06]MH_I2C_Read... [20:43:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:06]Read from MH i2c: E2 [20:43:06]MH_I2C_Read... [20:43:06]Read from MH i2c: E2 03 00 [20:43:06]MH_I2C_Read... [20:43:06]Read from MH i2c: E2 03 00 E0 62 00 90 00 B6 [20:43:06]RAPDU: 90 00 [20:43:06]wFMCommunicate OK [20:43:06]wFMCommunicate request_size=11 [20:43:06]MH_SAM_APDU [20:43:06]CAPDU: 80 0D 02 02 06 99 39 88 EE 7F 84 [20:43:06]Write to MH i2c: E2 0E 00 E1 62 80 0D 02 02 06 00 99 39 88 EE 7F 84 00 00 14 [20:43:06]Write i2c OK [20:43:06]MH_I2C_Read... [20:43:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:06]Read from MH i2c: E2 [20:43:06]MH_I2C_Read... [20:43:06]Read from MH i2c: E2 03 00 [20:43:06]MH_I2C_Read... [20:43:06]Read from MH i2c: E2 03 00 E1 62 00 90 00 B7 [20:43:06]RAPDU: 90 00 [20:43:06]wFMCommunicate OK [20:43:06]wFMCommunicate request_size=4 [20:43:06]MH_SAM_APDU [20:43:06]CAPDU: 80 0D 03 02 [20:43:06]Write to MH i2c: E2 08 00 E2 62 80 0D 03 02 00 00 00 00 BF [20:43:06]Write i2c OK [20:43:06]MH_I2C_Read... [20:43:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:43:06]Read from MH i2c: E2 [20:43:06]MH_I2C_Read... [20:43:06]Read from MH i2c: E2 0B 00 [20:43:06]MH_I2C_Read... [20:43:06]Read from MH i2c: E2 0B 00 E2 62 00 B5 B2 BD BC C5 8A 9F 2E 90 00 BC [20:43:06]RAPDU: B5 B2 BD BC C5 8A 9F 2E 90 00 [20:43:06]wFMCommunicate OK [20:43:06]SAM_PROTO_SignData done [20:43:06]FM_MakeSignedData done [20:43:06]CreateOFDProtocolMessage [20:43:06]wFMCommunicate request_size=4 [20:43:06]MH_SAM_APDU [20:43:06]CAPDU: 80 11 00 00 [20:43:06]Write to MH i2c: E2 08 00 E3 62 80 11 00 00 00 00 00 00 BF [20:43:06]Write i2c OK [20:43:06]MH_I2C_Read... [20:43:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:06]Read from MH i2c: E2 [20:43:06]MH_I2C_Read... [20:43:06]Read from MH i2c: E2 17 00 [20:43:06]MH_I2C_Read... [20:43:06]Read from MH i2c: E2 17 00 E3 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0E [20:43:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:43:06]wFMCommunicate OK [20:43:06]CreateOFDProtocolMessage done [20:43:06]OFDSenderStorePacket 29047 [20:43:06]StoreOFDPacket docnum=29047 [20:43:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 55 FD 08 01 13 9F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 5F EE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 77 71 00 00 35 04 06 00 99 39 88 EE 7F 84 B5 B2 BD BC C5 8A 9F 2E [20:43:06]CheckFolder [20:43:06]dirname=/storage/ofd_packets [20:43:06]CheckFolder done [20:43:06]ProducePacketName [20:43:06]name=ofd_packets/00029047 [20:43:06]NVStorageSaveData ofd_packets/00029047 [20:43:06]File name is /storage/ofd_packets/00029047 [20:43:06]Write 302 bytes [20:43:06]NVStorageSaveData done [20:43:06]OFDSenderStorePacket done [20:43:06]KKMCreateOFDPacket done [20:43:06]NVStorageSaveData kkm_last_timestamp [20:43:06]File name is /storage/kkm_last_timestamp [20:43:06]Write 4 bytes [20:43:06]NVStorageSaveData done [20:43:06]ExternCall_PrintAddStr [20:43:06]wPrintStart [20:43:06]Write to MH i2c: 01 00 00 E4 62 46 [20:43:06]Write i2c OK [20:43:06]MH_I2C_Read... [20:43:06]Read from MH i2c: 01 [20:43:06]MH_I2C_Read... [20:43:06]Read from MH i2c: 01 07 00 [20:43:06]MH_I2C_Read... [20:43:06]Read from MH i2c: 01 07 00 E4 62 00 00 00 00 00 FF 0F 5B [20:43:06]RasterBufferAndPrint [20:43:06]line Счет N : (1)347415 [20:43:06]line ИНН: 02508201610067 [20:43:06]line Контрольно-Кассовый Чек [20:43:06]line ПРОДАЖА [20:43:06]line ТРК (МРК, ГНК) : 41 [20:43:06]line Товар: 2710124130 [20:43:06]line SUPER-92-К-5 [20:43:06]line 15.320 * 65.30 [20:43:06]line = 1000.40 [20:43:06]line НДС 12% НСП 1% [20:43:06]line > о реализуемом товаре [20:43:06]line ИТОГО: 1000.40 [20:43:06]line НСП 1% : 8.85 [20:43:06]line НДС 12% : 106.24 [20:43:06]line Наличными: 0.00 [20:43:06]line Безнал.: 1000.40 [20:43:06]line Место: АЗС № 108 "Партнер Нефть" [20:43:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:43:06]line СНО: Общий режим [20:43:06]line Чек 254 13.04.2024 20:43 [20:43:06]line Смена: 115 ФФД: 1.0 [20:43:06]line ЗНМ: 0300000027 [20:43:06]line РНМ: 0000138879044617 [20:43:06]line Версия ККМ: 001 [20:43:06]line Платежная система: О! деньги [20:43:06]line ФМ: 0000000000963154 [20:43:06]line ФД: 29047 [20:43:06]line ФПД: 168472389517188 [20:43:06]line 1/tax-web-control/client/api/v1/ticket?date=20240413T204311&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29047&fm=168472389517188&tin=02508201610067®Number=0000138879044617&sum=100040 [20:43:06]OFD Sender: Processing packet 29047 [packets to send 8, broken 7] [20:43:06]ProducePacketName [20:43:06]name=ofd_packets/00029047 [20:43:06]OFD Sender: To server: pG, [20:43:06]CommunicateWithHost lk.salyk.kg:30040 [20:43:06]ConnectInit lk.salyk.kg [20:43:06]written 0, free lines is 4095 [20:43:06]Connected sock=10 [20:43: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 31 35 34 10 01 00 00 55 FD 08 01 13 9F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 5F EE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 77 71 00 00 35 04 06 00 99 39 88 EE 7F 84 B5 B2 BD BC C5 8A 9F 2E [20:43:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 56 BB 47 00 1D 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 77 71 00 00 F4 03 04 00 05 99 1A 66 B6 04 01 00 00 95 72 3F 6A 39 34 78 5D [20:43:07]CommunicateWithHost err = 0 [20:43:07]CheckOFDResponse [20:43:07]1017 (14) - 77093643461234 [20:43:07]1041 (16) - 0000000000963154 [20:43:07]1040 (4) - 29047 [20:43:07]1012 (4) - 13.04.2024 14:39 [20:43:07]1206 (1) - 0 [20:43:07]OFD Sender: Remove packet 29047 [20:43:07]ProducePacketName [20:43:07]name=ofd_packets/00029047 [20:43:07]NVStorageDeleteData [20:43:07]Write to MH i2c: 01 00 00 0D 63 70 [20:43:07]Write i2c OK [20:43:07]MH_I2C_Read... [20:43:07]Read from MH i2c: 01 [20:43:07]MH_I2C_Read... [20:43:07]Read from MH i2c: 01 07 00 [20:43:07]MH_I2C_Read... [20:43:07]Read from MH i2c: 01 07 00 0D 63 00 00 00 00 00 E1 0C 64 [20:43:07]RasterBufferAndPrint [20:43:07]line [20:43:07]line [20:43:07]line [20:43:07]line [20:43:07]line [20:43:07]written 0, free lines is 3303 [20:43:07]MH_Cut [20:43:07]Write to MH i2c: D1 01 00 14 63 01 49 [20:43:07]Write i2c OK [20:43:07]MH_I2C_Read... [20:43:07]Read from MH i2c: D1 [20:43:07]MH_I2C_Read... [20:43:07]Read from MH i2c: D1 01 00 [20:43:07]MH_I2C_Read... [20:43:07]Read from MH i2c: D1 01 00 14 63 00 48 [20:43:07]Write to MH i2c: 01 00 00 15 63 78 [20:43:07]Write i2c OK [20:43:07]MH_I2C_Read... [20:43:07]OFD Sender: No OFD packet to send [20:43:08]*** Cut start [20:43:08]*** Partial cut [20:43:08]*** CUTSNS_PIN = 1 [20:43:08]*** CUTSNS_PIN = 0 [20:43:08]*** Brake cut motor [20:43:08]Read from MH i2c: 01 [20:43:08]MH_I2C_Read... [20:43:08]*** Stop cut motor [20:43:08]*** Cut end [20:43:08]Read from MH i2c: 01 07 00 [20:43:08]MH_I2C_Read... [20:43:08]Read from MH i2c: 01 07 00 15 63 00 00 00 00 00 FF 0F 8D [20:43:08]process_action close_receipt done [20:43:08]requested_data is exist [20:43:08]produce_requested_data [20:43:08]requested_item fm.sn is exist - process it [20:43:08]wFMCommunicate request_size=4 [20:43:08]MH_SAM_APDU [20:43:08]CAPDU: 80 11 00 00 [20:43:08]Write to MH i2c: E2 08 00 16 63 80 11 00 00 00 00 00 00 F3 [20:43:08]Write i2c OK [20:43:08]MH_I2C_Read... [20:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:08]Read from MH i2c: E2 [20:43:08]MH_I2C_Read... [20:43:08]Read from MH i2c: E2 17 00 [20:43:08]MH_I2C_Read... [20:43:08]Read from MH i2c: E2 17 00 16 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 42 [20:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:43:08]wFMCommunicate OK [20:43:08]requested_item fd.num is exist - process it [20:43:08]SAM_PROTO_GetFieldsCounters [20:43:08]wFMCommunicate request_size=4 [20:43:08]MH_SAM_APDU [20:43:08]CAPDU: 80 13 00 00 [20:43:08]Write to MH i2c: E2 08 00 17 63 80 13 00 00 00 00 00 00 F6 [20:43:08]Write i2c OK [20:43:08]MH_I2C_Read... [20:43:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:43:08]Read from MH i2c: E2 [20:43:08]MH_I2C_Read... [20:43:08]Read from MH i2c: E2 62 00 [20:43:08]MH_I2C_Read... [20:43:08]Read from MH i2c: E2 62 00 17 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 77 71 00 00 0E 04 04 00 73 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 89 [20:43: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 77 71 00 00 0E 04 04 00 73 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 [20:43:08]wFMCommunicate OK [20:43:08]SAM_PROTO_GetFieldsCounters done [20:43:08]requested_item shift.num is exist - process it [20:43:08]requested_item shift.opened is exist - process it [20:43:08]req_shift_opened [20:43:08]FM_GetShiftState [20:43:08]SAM_PROTO_GetShiftState [20:43:08]wFMCommunicate request_size=4 [20:43:08]MH_SAM_APDU [20:43:08]CAPDU: 80 13 01 00 [20:43:08]Write to MH i2c: E2 08 00 18 63 80 13 01 00 00 00 00 00 F8 [20:43:08]Write i2c OK [20:43:08]MH_I2C_Read... [20:43:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:08]Read from MH i2c: E2 [20:43:08]MH_I2C_Read... [20:43:08]Read from MH i2c: E2 0E 00 [20:43:08]MH_I2C_Read... [20:43:08]Read from MH i2c: E2 0E 00 18 63 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 11 [20:43:08]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [20:43:08]wFMCommunicate OK [20:43:08]SAM_PROTO_GetShiftState done [20:43:08]FM_GetShiftState done [20:43:08]req_shift_opened done [20:43:08]requested_item shift.open_date is exist - process it [20:43:08]req_shift_open_date [20:43:08]req_shift_open_date done [20:43:08]produce_requested_data done [20:43:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29047,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [20:43:08]process_action_free close_receipt [20:43:08]json_value_free [20:43:08]json_value_free done [20:43:08]process_json_proto returns [20:43:08]Send response to host [20:43:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29047,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [20:43:08]free response buf [20:43:08]execute_script done [20:43:08]execute_script returns [20:43:08]free content buf [20:43:08]Sock 9.Close socket [20:43:08]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [20:45:42]OFD Sender: No OFD packet to send [20:45:47]OFD Sender: No OFD packet to send [20:45:49]accept exits with 7 [20:45:49]New connection [20:45:49]New thread 3066785124 created [20:45:49]Thread 3066928484 joined [20:45:49]Waiting for new connection... [20:45:49] Sock 7.Parse request [20:45:49]Sock 7.Check first char [20:45:49]Sock 7.First char is OK [20:45:49]request: POST /json_proto HTTP/1.0 [20:45:49]Method: POST [20:45:49]URL: /json_proto [20:45:49]Method is POST - this is cgi request [20:45:49]url: /json_proto [20:45:49]query_string will be loaded in cgi processing [20:45:49]execute_cgi json_proto POST (null) [20:45:49]execute_cgi path=json_proto method=POST [20:45:49]POST find Content-Length [20:45:49]Host: 172.17.33.3:8080 [20:45:49]Content-Length: 808 [20:45:49]Content-Type: application/json [20:45:49] [20:45:49]POST finish read [20:45:49]Found Content-Length = 808 [20:45:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347416", "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" : 72.50, "quantity" : 34.490, "sum" : 2500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:45:49]execute_script... [20:45: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)347416", "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" : 72.50, "quantity" : 34.490, "sum" : 2500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:45:49]POST & json_proto [20:45:49]process_json_proto [20:45:49]json parsed OK: [20:45:49]protocol is kg_v1.0 [20:45:49]action value=close_receipt [20:45:49]process_action close_receipt [20:45:49]cmd_close_receipt [20:45:49]MH_GetDate [20:45:49]Write to MH i2c: F0 00 00 19 63 6B [20:45:49]Write i2c OK [20:45:49]MH_I2C_Read... [20:45:49]Read from MH i2c: F0 [20:45:49]MH_I2C_Read... [20:45:49]Read from MH i2c: F0 09 00 [20:45:49]MH_I2C_Read... [20:45:49]Read from MH i2c: F0 09 00 19 63 00 04 EF 1A 66 23 5B 8F 65 59 [20:45:49]GetLastDocTimeStamp 1713040991 [20:45:49]current date 1713041156 [20:45:49]FM_GetShiftState [20:45:49]SAM_PROTO_GetShiftState [20:45:49]wFMCommunicate request_size=4 [20:45:49]MH_SAM_APDU [20:45:49]CAPDU: 80 13 01 00 [20:45:49]Write to MH i2c: E2 08 00 1A 63 80 13 01 00 00 00 00 00 FA [20:45:49]Write i2c OK [20:45:49]MH_I2C_Read... [20:45:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:45:49]Read from MH i2c: E2 [20:45:49]MH_I2C_Read... [20:45:49]Read from MH i2c: E2 0E 00 [20:45:49]MH_I2C_Read... [20:45:49]Read from MH i2c: E2 0E 00 1A 63 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 13 [20:45:49]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [20:45:49]wFMCommunicate OK [20:45:49]SAM_PROTO_GetShiftState done [20:45:49]FM_GetShiftState done [20:45:49]opened in 1712967615 [20:45:49]opened+sec_in_day 1713054015 [20:45:49]quantity*price = 250052 [20:45:49]sum+1 = 250054 [20:45:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.53 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 0.00 Безнал.: 2500.53 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 255 13.04.2024 20:45 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29048 ФПД: 22553115190583 1/tax-web-control/client/api/v1/ticket?date=20240413T204556&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29048&fm=22553115190583&tin=02508201610067®Number=0000138879044617&sum=250053 [20:45:50]StoreToDocumentArchive [20:45:50]shift 115 fd 29048 [20:45:50]save to /storage/0115/doc_00029048 [20:45:50]save last doc name /storage/0115/doc_00029048 to /storage/kkm_last_doc_name [20:45:50]save OK [20:45:50]Clear old archive folders... [20:45:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:45:50]tlvbuf is 01286000 [20:45:50]SAM_PROTO_ClearQueue [20:45:50]wFMCommunicate request_size=4 [20:45:50]MH_SAM_APDU [20:45:50]CAPDU: 80 09 00 00 [20:45:50]Write to MH i2c: E2 08 00 27 63 80 09 00 00 00 00 00 00 FC [20:45:50]Write i2c OK [20:45:50]MH_I2C_Read... [20:45:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:45:51]Read from MH i2c: E2 [20:45:51]MH_I2C_Read... [20:45:51]Read from MH i2c: E2 03 00 [20:45:51]MH_I2C_Read... [20:45:51]Read from MH i2c: E2 03 00 27 63 00 90 00 FE [20:45:51]RAPDU: 90 00 [20:45:51]wFMCommunicate OK [20:45:51]SAM_PROTO_ClearQueue done [20:45:51]KKMCreateOFDPacket [20:45:51]OFDProtocolAddRootSTLVToBuf [20:45:51]FM_MakeSignedData [20:45:51]FM_MakeSignedData [20:45:51]SAM_PROTO_SignData [20:45:51]wFMCommunicate request_size=4 [20:45:51]MH_SAM_APDU [20:45:51]CAPDU: 80 0D 01 02 [20:45:51]Write to MH i2c: E2 08 00 28 63 80 0D 01 02 00 00 00 00 04 [20:45:51]Write i2c OK [20:45:51]MH_I2C_Read... [20:45:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:45:51]Read from MH i2c: E2 [20:45:51]MH_I2C_Read... [20:45:51]Read from MH i2c: E2 03 00 [20:45:51]MH_I2C_Read... [20:45:51]Read from MH i2c: E2 03 00 28 63 00 90 00 FF [20:45:51]RAPDU: 90 00 [20:45:51]wFMCommunicate OK [20:45:51]wFMCommunicate request_size=255 [20:45:51]MH_SAM_APDU [20:45:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BA 86 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 C5 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C5 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C5 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 04 EF 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 78 71 00 00 35 04 06 00 14 [20:45:51]Write to MH i2c: E2 02 01 29 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BA 86 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 C5 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C5 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C5 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 04 EF 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 78 71 00 00 35 04 06 00 14 00 00 55 [20:45:51]Write i2c OK [20:45:51]MH_I2C_Read... [20:45:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:45:51]Read from MH i2c: E2 [20:45:51]MH_I2C_Read... [20:45:51]Read from MH i2c: E2 03 00 [20:45:51]MH_I2C_Read... [20:45:51]Read from MH i2c: E2 03 00 29 63 00 90 00 00 [20:45:51]RAPDU: 90 00 [20:45:51]wFMCommunicate OK [20:45:51]wFMCommunicate request_size=10 [20:45:51]MH_SAM_APDU [20:45:51]CAPDU: 80 0D 02 02 05 83 0E 6B 65 37 [20:45:51]Write to MH i2c: E2 0D 00 2A 63 80 0D 02 02 05 00 83 0E 6B 65 37 00 00 A9 [20:45:51]Write i2c OK [20:45:51]MH_I2C_Read... [20:45:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:45:51]Read from MH i2c: E2 [20:45:51]MH_I2C_Read... [20:45:51]Read from MH i2c: E2 03 00 [20:45:51]MH_I2C_Read... [20:45:51]Read from MH i2c: E2 03 00 2A 63 00 90 00 01 [20:45:51]RAPDU: 90 00 [20:45:51]wFMCommunicate OK [20:45:51]wFMCommunicate request_size=4 [20:45:51]MH_SAM_APDU [20:45:51]CAPDU: 80 0D 03 02 [20:45:51]Write to MH i2c: E2 08 00 2B 63 80 0D 03 02 00 00 00 00 09 [20:45:51]Write i2c OK [20:45:51]MH_I2C_Read... [20:45:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:45:51]Read from MH i2c: E2 [20:45:51]MH_I2C_Read... [20:45:51]Read from MH i2c: E2 0B 00 [20:45:51]MH_I2C_Read... [20:45:51]Read from MH i2c: E2 0B 00 2B 63 00 CE D2 5D 02 0D 55 49 7B 90 00 2F [20:45:51]RAPDU: CE D2 5D 02 0D 55 49 7B 90 00 [20:45:51]wFMCommunicate OK [20:45:51]SAM_PROTO_SignData done [20:45:51]FM_MakeSignedData done [20:45:51]CreateOFDProtocolMessage [20:45:51]wFMCommunicate request_size=4 [20:45:51]MH_SAM_APDU [20:45:51]CAPDU: 80 11 00 00 [20:45:51]Write to MH i2c: E2 08 00 2C 63 80 11 00 00 00 00 00 00 09 [20:45:51]Write i2c OK [20:45:51]MH_I2C_Read... [20:45:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:45:51]Read from MH i2c: E2 [20:45:51]MH_I2C_Read... [20:45:51]Read from MH i2c: E2 17 00 [20:45:51]MH_I2C_Read... [20:45:51]Read from MH i2c: E2 17 00 2C 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 58 [20:45:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:45:51]wFMCommunicate OK [20:45:51]CreateOFDProtocolMessage done [20:45:51]OFDSenderStorePacket 29048 [20:45:51]StoreOFDPacket docnum=29048 [20:45:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B0 C8 07 01 BA 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BA 86 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 C5 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C5 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C5 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 04 EF 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 78 71 00 00 35 04 06 00 14 83 0E 6B 65 37 CE D2 5D 02 0D 55 49 7B [20:45:51]CheckFolder [20:45:51]dirname=/storage/ofd_packets [20:45:51]CheckFolder done [20:45:51]ProducePacketName [20:45:51]name=ofd_packets/00029048 [20:45:51]NVStorageSaveData ofd_packets/00029048 [20:45:51]File name is /storage/ofd_packets/00029048 [20:45:51]Write 301 bytes [20:45:51]NVStorageSaveData done [20:45:51]OFDSenderStorePacket done [20:45:51]KKMCreateOFDPacket done [20:45:51]NVStorageSaveData kkm_last_timestamp [20:45:51]File name is /storage/kkm_last_timestamp [20:45:51]Write 4 bytes [20:45:51]NVStorageSaveData done [20:45:51]ExternCall_PrintAddStr [20:45:51]wPrintStart [20:45:51]Write to MH i2c: 01 00 00 2D 63 90 [20:45:51]Write i2c OK [20:45:51]MH_I2C_Read... [20:45:51]Read from MH i2c: 01 [20:45:51]MH_I2C_Read... [20:45:51]Read from MH i2c: 01 07 00 [20:45:51]MH_I2C_Read... [20:45:51]Read from MH i2c: 01 07 00 2D 63 00 00 00 00 00 FF 0F A5 [20:45:51]RasterBufferAndPrint [20:45:51]line Счет N : (1)347416 [20:45:51]line ИНН: 02508201610067 [20:45:51]line Контрольно-Кассовый Чек [20:45:51]line ПРОДАЖА [20:45:51]line ТРК (МРК, ГНК) : 33 [20:45:51]line Товар: 2710124500 [20:45:51]line Аи-95-К-5 [20:45:51]line 34.490 * 72.50 [20:45:51]line = 2500.53 [20:45:51]line НДС 12% НСП 1% [20:45:51]line > о реализуемом товаре [20:45:51]line ИТОГО: 2500.53 [20:45:51]line НСП 1% : 22.13 [20:45:51]line НДС 12% : 265.54 [20:45:51]line Наличными: 0.00 [20:45:51]line Безнал.: 2500.53 [20:45:51]line Место: АЗС № 108 "Партнер Нефть" [20:45:51]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:45:51]line СНО: Общий режим [20:45:51]line Чек 255 13.04.2024 20:45 [20:45:51]line Смена: 115 ФФД: 1.0 [20:45:51]line ЗНМ: 0300000027 [20:45:51]line РНМ: 0000138879044617 [20:45:51]line Версия ККМ: 001 [20:45:51]line Платежная система: О! деньги [20:45:51]line ФМ: 0000000000963154 [20:45:51]line ФД: 29048 [20:45:51]line ФПД: 22553115190583 [20:45:51]line 1/tax-web-control/client/api/v1/ticket?date=20240413T204556&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29048&fm=22553115190583&tin=02508201610067®Number=0000138879044617&sum=250053 [20:45:51]OFD Sender: Processing packet 29048 [packets to send 8, broken 7] [20:45:51]ProducePacketName [20:45:51]name=ofd_packets/00029048 [20:45:51]OFD Sender: To server: pG, [20:45:51]CommunicateWithHost lk.salyk.kg:30040 [20:45:51]ConnectInit lk.salyk.kg [20:45:51]written 0, free lines is 4095 [20:45:51]Connected sock=10 [20:45: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 31 35 34 0F 01 00 00 B0 C8 07 01 BA 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BA 86 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 C5 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C5 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C5 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 04 EF 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 78 71 00 00 35 04 06 00 14 83 0E 6B 65 37 CE D2 5D 02 0D 55 49 7B [20:45:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7B D7 47 00 A6 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 31 35 34 10 04 04 00 78 71 00 00 F4 03 04 00 AA 99 1A 66 B6 04 01 00 00 DD 35 BE CB 4B D8 34 03 [20:45:52]CommunicateWithHost err = 0 [20:45:52]CheckOFDResponse [20:45:52]1017 (14) - 77093643461234 [20:45:52]1041 (16) - 0000000000963154 [20:45:52]1040 (4) - 29048 [20:45:52]1012 (4) - 13.04.2024 14:41 [20:45:52]1206 (1) - 0 [20:45:52]OFD Sender: Remove packet 29048 [20:45:52]ProducePacketName [20:45:52]name=ofd_packets/00029048 [20:45:52]NVStorageDeleteData [20:45:52]Write to MH i2c: 01 00 00 56 63 B9 [20:45:52]Write i2c OK [20:45:52]MH_I2C_Read... [20:45:52]Read from MH i2c: 01 [20:45:52]MH_I2C_Read... [20:45:52]Read from MH i2c: 01 07 00 [20:45:52]MH_I2C_Read... [20:45:52]Read from MH i2c: 01 07 00 56 63 00 00 00 00 00 DE 0C AA [20:45:52]RasterBufferAndPrint [20:45:52]line [20:45:52]line [20:45:52]line [20:45:52]line [20:45:52]line [20:45:52]written 0, free lines is 3300 [20:45:52]MH_Cut [20:45:52]Write to MH i2c: D1 01 00 5D 63 01 92 [20:45:52]Write i2c OK [20:45:52]MH_I2C_Read... [20:45:52]Read from MH i2c: D1 [20:45:52]MH_I2C_Read... [20:45:52]Read from MH i2c: D1 01 00 [20:45:52]MH_I2C_Read... [20:45:52]Read from MH i2c: D1 01 00 5D 63 00 91 [20:45:52]Write to MH i2c: 01 00 00 5E 63 C1 [20:45:52]Write i2c OK [20:45:52]MH_I2C_Read... [20:45:52]OFD Sender: No OFD packet to send [20:45:53]*** Cut start [20:45:53]*** Partial cut [20:45:53]*** CUTSNS_PIN = 1 [20:45:53]*** CUTSNS_PIN = 0 [20:45:53]*** Brake cut motor [20:45:53]Read from MH i2c: 01 [20:45:53]MH_I2C_Read... [20:45:53]*** Stop cut motor [20:45:53]*** Cut end [20:45:53]Read from MH i2c: 01 07 00 [20:45:53]MH_I2C_Read... [20:45:53]Read from MH i2c: 01 07 00 5E 63 00 00 00 00 00 FF 0F D6 [20:45:53]process_action close_receipt done [20:45:53]requested_data is exist [20:45:53]produce_requested_data [20:45:53]requested_item fm.sn is exist - process it [20:45:53]wFMCommunicate request_size=4 [20:45:53]MH_SAM_APDU [20:45:53]CAPDU: 80 11 00 00 [20:45:53]Write to MH i2c: E2 08 00 5F 63 80 11 00 00 00 00 00 00 3C [20:45:53]Write i2c OK [20:45:53]MH_I2C_Read... [20:45:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:45:53]Read from MH i2c: E2 [20:45:53]MH_I2C_Read... [20:45:53]Read from MH i2c: E2 17 00 [20:45:53]MH_I2C_Read... [20:45:53]Read from MH i2c: E2 17 00 5F 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8B [20:45:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:45:53]wFMCommunicate OK [20:45:53]requested_item fd.num is exist - process it [20:45:53]SAM_PROTO_GetFieldsCounters [20:45:53]wFMCommunicate request_size=4 [20:45:53]MH_SAM_APDU [20:45:53]CAPDU: 80 13 00 00 [20:45:53]Write to MH i2c: E2 08 00 60 63 80 13 00 00 00 00 00 00 3F [20:45:53]Write i2c OK [20:45:53]MH_I2C_Read... [20:45:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:45:53]Read from MH i2c: E2 [20:45:53]MH_I2C_Read... [20:45:53]Read from MH i2c: E2 62 00 [20:45:53]MH_I2C_Read... [20:45:53]Read from MH i2c: E2 62 00 60 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 78 71 00 00 0E 04 04 00 73 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 D7 [20:45: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 78 71 00 00 0E 04 04 00 73 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 [20:45:53]wFMCommunicate OK [20:45:53]SAM_PROTO_GetFieldsCounters done [20:45:53]requested_item shift.num is exist - process it [20:45:53]requested_item shift.opened is exist - process it [20:45:53]req_shift_opened [20:45:53]FM_GetShiftState [20:45:53]SAM_PROTO_GetShiftState [20:45:53]wFMCommunicate request_size=4 [20:45:53]MH_SAM_APDU [20:45:53]CAPDU: 80 13 01 00 [20:45:53]Write to MH i2c: E2 08 00 61 63 80 13 01 00 00 00 00 00 41 [20:45:53]Write i2c OK [20:45:53]MH_I2C_Read... [20:45:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:45:53]Read from MH i2c: E2 [20:45:53]MH_I2C_Read... [20:45:53]Read from MH i2c: E2 0E 00 [20:45:53]MH_I2C_Read... [20:45:53]Read from MH i2c: E2 0E 00 61 63 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 5A [20:45:53]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [20:45:53]wFMCommunicate OK [20:45:53]SAM_PROTO_GetShiftState done [20:45:53]FM_GetShiftState done [20:45:53]req_shift_opened done [20:45:53]requested_item shift.open_date is exist - process it [20:45:53]req_shift_open_date [20:45:53]req_shift_open_date done [20:45:53]produce_requested_data done [20:45:53]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29048,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [20:45:53]process_action_free close_receipt [20:45:53]json_value_free [20:45:53]json_value_free done [20:45:53]process_json_proto returns [20:45:53]Send response to host [20:45:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29048,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [20:45:53]free response buf [20:45:53]execute_script done [20:45:53]execute_script returns [20:45:53]free content buf [20:45:53]Sock 7.Close socket [20:45:53]Sock 7.Thread stoped [20:45:57]OFD Sender: No OFD packet to send [20:46:02]OFD Sender: No OFD packet to send [20:46:07]OFD Sender: No OFD packet to send [20:46:12]OFD Sender: No OFD packet to send [20:46:17]OFD Sender: No OFD packet to send [20:46:22]OFD Sender: No OFD packet to send [20:46:27]OFD Sender: No OFD packet to send [20:46:32]OFD Sender: No OFD packet to send [20:46:37]OFD Sender: No OFD packet to send [20:46:42]OFD Sender: No OFD packet to send [20:46:47]OFD Sender: No OFD packet to send [20:46:52]OFD Sender: No OFD packet to send [20:46:57]OFD Sender: No OFD packet to send [20:47:02]OFD Sender: No OFD packet to send [20:47:07]OFD Sender: No OFD packet to send [20:47:12]OFD Sender: No OFD packet to send [20:47:17]OFD Sender: No OFD packet to send [20:47:22]OFD Sender: No OFD packet to send [20:47:27]OFD Sender: No OFD packet to send [20:47:32]OFD Sender: No OFD packet to send [20:47:37]OFD Sender: No OFD packet to send [20:47:42]OFD Sender: No OFD packet to send [20:47:47]OFD Sender: No OFD packet to send [20:47:52]OFD Sender: No OFD packet to send [20:47:57]OFD Sender: No OFD packet to send [20:48:02]OFD Sender: No OFD packet to send [20:48:04]accept exits with 9 [20:48:04]New connection [20:48:04]New thread 3066928484 created [20:48:04]Thread 3066785124 joined [20:48:04]Waiting for new connection... [20:48:04] Sock 9.Parse request [20:48:04]Sock 9.Check first char [20:48:04]Sock 9.First char is OK [20:48:04]request: POST /json_proto HTTP/1.0 [20:48:04]Method: POST [20:48:04]URL: /json_proto [20:48:04]Method is POST - this is cgi request [20:48:04]url: /json_proto [20:48:04]query_string will be loaded in cgi processing [20:48:04]execute_cgi json_proto POST (null) [20:48:04]execute_cgi path=json_proto method=POST [20:48:04]POST find Content-Length [20:48:04]Host: 172.17.33.3:8080 [20:48:04]Content-Length: 670 [20:48:04]Content-Type: application/json [20:48:04] [20:48:04]POST finish read [20:48:04]Found Content-Length = 670 [20:48:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 4.600, "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:48:04]execute_script... [20:48: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)347418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 4.600, "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:48:04]POST & json_proto [20:48:04]process_json_proto [20:48:04]json parsed OK: [20:48:04]protocol is kg_v1.0 [20:48:04]action value=close_receipt [20:48:04]process_action close_receipt [20:48:04]cmd_close_receipt [20:48:04]MH_GetDate [20:48:04]Write to MH i2c: F0 00 00 62 63 B4 [20:48:04]Write i2c OK [20:48:04]MH_I2C_Read... [20:48:04]Read from MH i2c: F0 [20:48:04]MH_I2C_Read... [20:48:04]Read from MH i2c: F0 09 00 [20:48:04]MH_I2C_Read... [20:48:04]Read from MH i2c: F0 09 00 62 63 00 8A EF 1A 66 23 5B 8F 65 28 [20:48:04]GetLastDocTimeStamp 1713041156 [20:48:04]current date 1713041290 [20:48:04]FM_GetShiftState [20:48:04]SAM_PROTO_GetShiftState [20:48:04]wFMCommunicate request_size=4 [20:48:04]MH_SAM_APDU [20:48:04]CAPDU: 80 13 01 00 [20:48:04]Write to MH i2c: E2 08 00 63 63 80 13 01 00 00 00 00 00 43 [20:48:04]Write i2c OK [20:48:04]MH_I2C_Read... [20:48:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:04]Read from MH i2c: E2 [20:48:04]MH_I2C_Read... [20:48:04]Read from MH i2c: E2 0E 00 [20:48:04]MH_I2C_Read... [20:48:04]Read from MH i2c: E2 0E 00 63 63 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 5C [20:48:04]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [20:48:04]wFMCommunicate OK [20:48:04]SAM_PROTO_GetShiftState done [20:48:04]FM_GetShiftState done [20:48:04]opened in 1712967615 [20:48:04]opened+sec_in_day 1713054015 [20:48:04]quantity*price = 30038 [20:48:04]sum+1 = 30039 [20:48:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 256 13.04.2024 20:48 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29049 ФПД: 264883639180338 1/tax-web-control/client/api/v1/ticket?date=20240413T204810&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29049&fm=264883639180338&tin=02508201610067®Number=0000138879044617&sum=30000 [20:48:05]StoreToDocumentArchive [20:48:05]shift 115 fd 29049 [20:48:05]save to /storage/0115/doc_00029049 [20:48:05]save last doc name /storage/0115/doc_00029049 to /storage/kkm_last_doc_name [20:48:05]save OK [20:48:05]Clear old archive folders... [20:48:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:48:05]tlvbuf is 01286150 [20:48:05]SAM_PROTO_ClearQueue [20:48:05]wFMCommunicate request_size=4 [20:48:05]MH_SAM_APDU [20:48:05]CAPDU: 80 09 00 00 [20:48:05]Write to MH i2c: E2 08 00 70 63 80 09 00 00 00 00 00 00 45 [20:48:05]Write i2c OK [20:48:05]MH_I2C_Read... [20:48:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:48:05]Read from MH i2c: E2 [20:48:05]MH_I2C_Read... [20:48:05]Read from MH i2c: E2 03 00 [20:48:05]MH_I2C_Read... [20:48:05]Read from MH i2c: E2 03 00 70 63 00 90 00 47 [20:48:05]RAPDU: 90 00 [20:48:05]wFMCommunicate OK [20:48:05]SAM_PROTO_ClearQueue done [20:48:05]KKMCreateOFDPacket [20:48:05]OFDProtocolAddRootSTLVToBuf [20:48:05]FM_MakeSignedData [20:48:05]FM_MakeSignedData [20:48:05]SAM_PROTO_SignData [20:48:05]wFMCommunicate request_size=4 [20:48:05]MH_SAM_APDU [20:48:05]CAPDU: 80 0D 01 02 [20:48:05]Write to MH i2c: E2 08 00 71 63 80 0D 01 02 00 00 00 00 4D [20:48:05]Write i2c OK [20:48:05]MH_I2C_Read... [20:48:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:48:05]Read from MH i2c: E2 [20:48:05]MH_I2C_Read... [20:48:05]Read from MH i2c: E2 03 00 [20:48:05]MH_I2C_Read... [20:48:05]Read from MH i2c: E2 03 00 71 63 00 90 00 48 [20:48:05]RAPDU: 90 00 [20:48:05]wFMCommunicate OK [20:48:05]wFMCommunicate request_size=255 [20:48:05]MH_SAM_APDU [20:48:05]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 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 00 01 00 00 F4 03 04 00 8A EF 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 79 71 00 00 35 04 06 00 [20:48:05]Write to MH i2c: E2 02 01 72 63 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 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 00 01 00 00 F4 03 04 00 8A EF 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 79 71 00 00 35 04 06 00 00 00 BB [20:48:05]Write i2c OK [20:48:05]MH_I2C_Read... [20:48:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:05]Read from MH i2c: E2 [20:48:05]MH_I2C_Read... [20:48:05]Read from MH i2c: E2 03 00 [20:48:05]MH_I2C_Read... [20:48:05]Read from MH i2c: E2 03 00 72 63 00 90 00 49 [20:48:05]RAPDU: 90 00 [20:48:05]wFMCommunicate OK [20:48:05]wFMCommunicate request_size=11 [20:48:05]MH_SAM_APDU [20:48:05]CAPDU: 80 0D 02 02 06 F0 E9 07 38 5C 32 [20:48:05]Write to MH i2c: E2 0E 00 73 63 80 0D 02 02 06 00 F0 E9 07 38 5C 32 00 00 02 [20:48:05]Write i2c OK [20:48:05]MH_I2C_Read... [20:48:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:06]Read from MH i2c: E2 [20:48:06]MH_I2C_Read... [20:48:06]Read from MH i2c: E2 03 00 [20:48:06]MH_I2C_Read... [20:48:06]Read from MH i2c: E2 03 00 73 63 00 90 00 4A [20:48:06]RAPDU: 90 00 [20:48:06]wFMCommunicate OK [20:48:06]wFMCommunicate request_size=4 [20:48:06]MH_SAM_APDU [20:48:06]CAPDU: 80 0D 03 02 [20:48:06]Write to MH i2c: E2 08 00 74 63 80 0D 03 02 00 00 00 00 52 [20:48:06]Write i2c OK [20:48:06]MH_I2C_Read... [20:48:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:48:06]Read from MH i2c: E2 [20:48:06]MH_I2C_Read... [20:48:06]Read from MH i2c: E2 0B 00 [20:48:06]MH_I2C_Read... [20:48:06]Read from MH i2c: E2 0B 00 74 63 00 0B 47 47 BC 75 E0 08 45 90 00 4A [20:48:06]RAPDU: 0B 47 47 BC 75 E0 08 45 90 00 [20:48:06]wFMCommunicate OK [20:48:06]SAM_PROTO_SignData done [20:48:06]FM_MakeSignedData done [20:48:06]CreateOFDProtocolMessage [20:48:06]wFMCommunicate request_size=4 [20:48:06]MH_SAM_APDU [20:48:06]CAPDU: 80 11 00 00 [20:48:06]Write to MH i2c: E2 08 00 75 63 80 11 00 00 00 00 00 00 52 [20:48:06]Write i2c OK [20:48:06]MH_I2C_Read... [20:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:06]Read from MH i2c: E2 [20:48:06]MH_I2C_Read... [20:48:06]Read from MH i2c: E2 17 00 [20:48:06]MH_I2C_Read... [20:48:06]Read from MH i2c: E2 17 00 75 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A1 [20:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:48:06]wFMCommunicate OK [20:48:06]CreateOFDProtocolMessage done [20:48:06]OFDSenderStorePacket 29049 [20:48:06]StoreOFDPacket docnum=29049 [20:48:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 A2 D7 08 01 DF 69 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 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 00 01 00 00 F4 03 04 00 8A EF 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 79 71 00 00 35 04 06 00 F0 E9 07 38 5C 32 0B 47 47 BC 75 E0 08 45 [20:48:06]CheckFolder [20:48:06]dirname=/storage/ofd_packets [20:48:06]CheckFolder done [20:48:06]ProducePacketName [20:48:06]name=ofd_packets/00029049 [20:48:06]NVStorageSaveData ofd_packets/00029049 [20:48:06]File name is /storage/ofd_packets/00029049 [20:48:06]Write 302 bytes [20:48:06]NVStorageSaveData done [20:48:06]OFDSenderStorePacket done [20:48:06]KKMCreateOFDPacket done [20:48:06]NVStorageSaveData kkm_last_timestamp [20:48:06]File name is /storage/kkm_last_timestamp [20:48:06]Write 4 bytes [20:48:06]NVStorageSaveData done [20:48:06]ExternCall_PrintAddStr [20:48:06]wPrintStart [20:48:06]Write to MH i2c: 01 00 00 76 63 D9 [20:48:06]Write i2c OK [20:48:06]MH_I2C_Read... [20:48:06]Read from MH i2c: 01 [20:48:06]MH_I2C_Read... [20:48:06]Read from MH i2c: 01 07 00 [20:48:06]MH_I2C_Read... [20:48:06]Read from MH i2c: 01 07 00 76 63 00 00 00 00 00 FF 0F EE [20:48:06]RasterBufferAndPrint [20:48:06]line Счет N : (1)347418 [20:48:06]line ИНН: 02508201610067 [20:48:06]line Контрольно-Кассовый Чек [20:48:06]line ПРОДАЖА [20:48:06]line ТРК (МРК, ГНК) : 52 [20:48:06]line Товар: 2710124130 [20:48:06]line SUPER-92-К-5 [20:48:06]line 4.600 * 65.30 [20:48:06]line = 300.38 [20:48:06]line НДС 12% НСП 1% [20:48:06]line > о реализуемом товаре [20:48:06]line ОКРУГЛЕНИЕ: -0.38 [20:48:06]line ИТОГО: 300.00 [20:48:06]line Внесено: 300.00 [20:48:06]line СДАЧА: 0.00 [20:48:06]line НСП 1% : 2.66 [20:48:06]line НДС 12% : 31.90 [20:48:06]line Наличными: 300.00 [20:48:06]line Безнал.: 0.00 [20:48:06]line Место: АЗС № 108 "Партнер Нефть" [20:48:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:48:06]line СНО: Общий режим [20:48:06]line Чек 256 13.04.2024 20:48 [20:48:06]line Смена: 115 ФФД: 1.0 [20:48:06]line ЗНМ: 0300000027 [20:48:06]line РНМ: 0000138879044617 [20:48:06]line Версия ККМ: 001 [20:48:06]line ФМ: 0000000000963154 [20:48:06]line ФД: 29049 [20:48:06]line ФПД: 264883639180338 [20:48:06]line 1/tax-web-control/client/api/v1/ticket?date=20240413T204810&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29049&fm=264883639180338&tin=02508201610067®Number=0000138879044617&sum=30000 [20:48:06]OFD Sender: Processing packet 29049 [packets to send 8, broken 7] [20:48:06]ProducePacketName [20:48:06]name=ofd_packets/00029049 [20:48:06]OFD Sender: To server: pG, [20:48:06]CommunicateWithHost lk.salyk.kg:30040 [20:48:06]ConnectInit lk.salyk.kg [20:48:06]written 0, free lines is 4095 [20:48:06]Connected sock=10 [20:48: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 31 35 34 10 01 00 00 A2 D7 08 01 DF 69 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 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 00 01 00 00 F4 03 04 00 8A EF 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 79 71 00 00 35 04 06 00 F0 E9 07 38 5C 32 0B 47 47 BC 75 E0 08 45 [20:48:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 55 87 47 00 88 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 31 35 34 10 04 04 00 79 71 00 00 F4 03 04 00 30 9A 1A 66 B6 04 01 00 00 D8 9E 96 E6 74 E9 4A 52 [20:48:06]CommunicateWithHost err = 0 [20:48:06]CheckOFDResponse [20:48:06]1017 (14) - 77093643461234 [20:48:06]1041 (16) - 0000000000963154 [20:48:06]1040 (4) - 29049 [20:48:06]1012 (4) - 13.04.2024 14:44 [20:48:06]1206 (1) - 0 [20:48:06]OFD Sender: Remove packet 29049 [20:48:06]ProducePacketName [20:48:06]name=ofd_packets/00029049 [20:48:06]NVStorageDeleteData [20:48:06]Write to MH i2c: 01 00 00 A0 63 03 [20:48:06]Write i2c OK [20:48:06]MH_I2C_Read... [20:48:06]Read from MH i2c: 01 [20:48:06]MH_I2C_Read... [20:48:06]Read from MH i2c: 01 07 00 [20:48:06]MH_I2C_Read... [20:48:06]Read from MH i2c: 01 07 00 A0 63 00 00 00 00 00 C9 0C DF [20:48:06]RasterBufferAndPrint [20:48:06]line [20:48:06]line [20:48:06]line [20:48:06]line [20:48:06]line [20:48:06]written 0, free lines is 3278 [20:48:06]MH_Cut [20:48:06]Write to MH i2c: D1 01 00 A7 63 01 DC [20:48:06]Write i2c OK [20:48:06]MH_I2C_Read... [20:48:06]Read from MH i2c: D1 [20:48:06]MH_I2C_Read... [20:48:06]Read from MH i2c: D1 01 00 [20:48:06]MH_I2C_Read... [20:48:06]Read from MH i2c: D1 01 00 A7 63 00 DB [20:48:06]Write to MH i2c: 01 00 00 A8 63 0B [20:48:06]Write i2c OK [20:48:06]MH_I2C_Read... [20:48:07]OFD Sender: No OFD packet to send [20:48:07]*** Cut start [20:48:07]*** Partial cut [20:48:07]*** CUTSNS_PIN = 1 [20:48:07]*** CUTSNS_PIN = 0 [20:48:07]*** Brake cut motor [20:48:08]Read from MH i2c: 01 [20:48:08]MH_I2C_Read... [20:48:08]*** Stop cut motor [20:48:08]*** Cut end [20:48:08]Read from MH i2c: 01 07 00 [20:48:08]MH_I2C_Read... [20:48:08]Read from MH i2c: 01 07 00 A8 63 00 00 00 00 00 FF 0F 20 [20:48:08]process_action close_receipt done [20:48:08]requested_data is exist [20:48:08]produce_requested_data [20:48:08]requested_item fm.sn is exist - process it [20:48:08]wFMCommunicate request_size=4 [20:48:08]MH_SAM_APDU [20:48:08]CAPDU: 80 11 00 00 [20:48:08]Write to MH i2c: E2 08 00 A9 63 80 11 00 00 00 00 00 00 86 [20:48:08]Write i2c OK [20:48:08]MH_I2C_Read... [20:48:08]Read from MH i2c: E2 [20:48:08]MH_I2C_Read... [20:48:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:08]Read from MH i2c: E2 17 00 [20:48:08]MH_I2C_Read... [20:48:08]Read from MH i2c: E2 17 00 A9 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D5 [20:48:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:48:08]wFMCommunicate OK [20:48:08]requested_item fd.num is exist - process it [20:48:08]SAM_PROTO_GetFieldsCounters [20:48:08]wFMCommunicate request_size=4 [20:48:08]MH_SAM_APDU [20:48:08]CAPDU: 80 13 00 00 [20:48:08]Write to MH i2c: E2 08 00 AA 63 80 13 00 00 00 00 00 00 89 [20:48:08]Write i2c OK [20:48:08]MH_I2C_Read... [20:48:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:48:08]Read from MH i2c: E2 [20:48:08]MH_I2C_Read... [20:48:08]Read from MH i2c: E2 62 00 [20:48:08]MH_I2C_Read... [20:48:08]Read from MH i2c: E2 62 00 AA 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 79 71 00 00 0E 04 04 00 73 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 27 [20:48: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 79 71 00 00 0E 04 04 00 73 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 [20:48:08]wFMCommunicate OK [20:48:08]SAM_PROTO_GetFieldsCounters done [20:48:08]requested_item shift.num is exist - process it [20:48:08]requested_item shift.opened is exist - process it [20:48:08]req_shift_opened [20:48:08]FM_GetShiftState [20:48:08]SAM_PROTO_GetShiftState [20:48:08]wFMCommunicate request_size=4 [20:48:08]MH_SAM_APDU [20:48:08]CAPDU: 80 13 01 00 [20:48:08]Write to MH i2c: E2 08 00 AB 63 80 13 01 00 00 00 00 00 8B [20:48:08]Write i2c OK [20:48:08]MH_I2C_Read... [20:48:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:08]Read from MH i2c: E2 [20:48:08]MH_I2C_Read... [20:48:08]Read from MH i2c: E2 0E 00 [20:48:08]MH_I2C_Read... [20:48:08]Read from MH i2c: E2 0E 00 AB 63 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A4 [20:48:08]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [20:48:08]wFMCommunicate OK [20:48:08]SAM_PROTO_GetShiftState done [20:48:08]FM_GetShiftState done [20:48:08]req_shift_opened done [20:48:08]requested_item shift.open_date is exist - process it [20:48:08]req_shift_open_date [20:48:08]req_shift_open_date done [20:48:08]produce_requested_data done [20:48:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29049,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [20:48:08]process_action_free close_receipt [20:48:08]json_value_free [20:48:08]json_value_free done [20:48:08]process_json_proto returns [20:48:08]Send response to host [20:48:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29049,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [20:48:08]free response buf [20:48:08]execute_script done [20:48:08]execute_script returns [20:48:08]free content buf [20:48:08]Sock 9.Close socket [20:48:08]Sock 9.Thread stoped [20:48:12]OFD Sender: No OFD packet to send [20:48:17]OFD Sender: No OFD packet to send [20:48:22]OFD Sender: No OFD packet to send [20:48:27]OFD Sender: No OFD packet to send [20:48:32]OFD Sender: No OFD packet to send [20:48:37]OFD Sender: No OFD packet to send [20:48:42]OFD Sender: No OFD packet to send [20:48:47]OFD Sender: No OFD packet to send [20:48:52]OFD Sender: No OFD packet to send [20:48:57]OFD Sender: No OFD packet to send [20:49:02]OFD Sender: No OFD packet to send [20:49:07]OFD Sender: No OFD packet to send [20:49:12]OFD Sender: No OFD packet to send [20:49:17]OFD Sender: No OFD packet to send [20:49:22]OFD Sender: No OFD packet to send [20:49:27]OFD Sender: No OFD packet to send [20:49:32]OFD Sender: No OFD packet to send [20:49:37]OFD Sender: No OFD packet to send [20:49:42]OFD Sender: No OFD packet to send [20:49:47]OFD Sender: No OFD packet to send [20:49:52]OFD Sender: No OFD packet to send [20:49:57]OFD Sender: No OFD packet to send [20:50:02]OFD Sender: No OFD packet to send [20:50:07]OFD Sender: No OFD packet to send [20:50:12]OFD Sender: No OFD packet to send [20:50:17]OFD Sender: No OFD packet to send [20:50:22]OFD Sender: No OFD packet to send [20:50:27]OFD Sender: No OFD packet to send [20:50:32]OFD Sender: No OFD packet to send [20:50:37]OFD Sender: No OFD packet to send [20:50:42]OFD Sender: No OFD packet to send [20:50:47]OFD Sender: No OFD packet to send [20:50:52]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:48]accept exits with 7 [20:51:48]New connection [20:51:48]New thread 3066785124 created [20:51:48]Thread 3066928484 joined [20:51:48]Waiting for new connection... [20:51:48] Sock 7.Parse request [20:51:48]Sock 7.Check first char [20:51:48]Sock 7.First char is OK [20:51:48]request: POST /json_proto HTTP/1.0 [20:51:48]Method: POST [20:51:48]URL: /json_proto [20:51:48]Method is POST - this is cgi request [20:51:48]url: /json_proto [20:51:48]query_string will be loaded in cgi processing [20:51:48]execute_cgi json_proto POST (null) [20:51:48]execute_cgi path=json_proto method=POST [20:51:48]POST find Content-Length [20:51:48]Host: 172.17.33.3:8080 [20:51:48]Content-Length: 811 [20:51:48]Content-Type: application/json [20:51:48] [20:51:48]POST finish read [20:51:48]Found Content-Length = 811 [20:51:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 75.990, "sum" : 2500.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:48]execute_script... [20:51: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)347417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 75.990, "sum" : 2500.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:48]POST & json_proto [20:51:48]process_json_proto [20:51:48]json parsed OK: [20:51:48]protocol is kg_v1.0 [20:51:48]action value=close_receipt [20:51:48]process_action close_receipt [20:51:48]cmd_close_receipt [20:51:48]MH_GetDate [20:51:48]Write to MH i2c: F0 00 00 AC 63 FE [20:51:48]Write i2c OK [20:51:48]MH_I2C_Read... [20:51:48]Read from MH i2c: F0 [20:51:48]MH_I2C_Read... [20:51:48]Read from MH i2c: F0 09 00 [20:51:48]MH_I2C_Read... [20:51:48]Read from MH i2c: F0 09 00 AC 63 00 6B F0 1A 66 23 5B 8F 65 54 [20:51:48]GetLastDocTimeStamp 1713041290 [20:51:48]current date 1713041515 [20:51:48]FM_GetShiftState [20:51:48]SAM_PROTO_GetShiftState [20:51:48]wFMCommunicate request_size=4 [20:51:48]MH_SAM_APDU [20:51:48]CAPDU: 80 13 01 00 [20:51:48]Write to MH i2c: E2 08 00 AD 63 80 13 01 00 00 00 00 00 8D [20:51:48]Write i2c OK [20:51:48]MH_I2C_Read... [20:51:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:48]Read from MH i2c: E2 [20:51:48]MH_I2C_Read... [20:51:48]Read from MH i2c: E2 0E 00 [20:51:48]MH_I2C_Read... [20:51:48]Read from MH i2c: E2 0E 00 AD 63 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A6 [20:51:48]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [20:51:48]wFMCommunicate OK [20:51:48]SAM_PROTO_GetShiftState done [20:51:48]FM_GetShiftState done [20:51:48]opened in 1712967615 [20:51:48]opened+sec_in_day 1713054015 [20:51:48]quantity*price = 250007 [20:51:48]sum+1 = 250008 [20:51:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.07 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 0.00 Безнал.: 2500.07 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 257 13.04.2024 20:51 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29050 ФПД: 279421856836823 1/tax-web-control/client/api/v1/ticket?date=20240413T205155&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29050&fm=279421856836823&tin=02508201610067®Number=0000138879044617&sum=250007 [20:51:50]StoreToDocumentArchive [20:51:50]shift 115 fd 29050 [20:51:50]save to /storage/0115/doc_00029050 [20:51:50]save last doc name /storage/0115/doc_00029050 to /storage/kkm_last_doc_name [20:51:50]save OK [20:51:50]Clear old archive folders... [20:51:50]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:51:50]tlvbuf is 0121A4F0 [20:51:50]SAM_PROTO_ClearQueue [20:51:50]wFMCommunicate request_size=4 [20:51:50]MH_SAM_APDU [20:51:50]CAPDU: 80 09 00 00 [20:51:50]Write to MH i2c: E2 08 00 BA 63 80 09 00 00 00 00 00 00 8F [20:51:50]Write i2c OK [20:51:50]MH_I2C_Read... [20:51:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:51:50]Read from MH i2c: E2 [20:51:50]MH_I2C_Read... [20:51:50]Read from MH i2c: E2 03 00 [20:51:50]MH_I2C_Read... [20:51:50]Read from MH i2c: E2 03 00 BA 63 00 90 00 91 [20:51:50]RAPDU: 90 00 [20:51:50]wFMCommunicate OK [20:51:50]SAM_PROTO_ClearQueue done [20:51:50]KKMCreateOFDPacket [20:51:50]OFDProtocolAddRootSTLVToBuf [20:51:50]FM_MakeSignedData [20:51:50]FM_MakeSignedData [20:51:50]SAM_PROTO_SignData [20:51:50]wFMCommunicate request_size=4 [20:51:50]MH_SAM_APDU [20:51:50]CAPDU: 80 0D 01 02 [20:51:50]Write to MH i2c: E2 08 00 BB 63 80 0D 01 02 00 00 00 00 97 [20:51:50]Write i2c OK [20:51:50]MH_I2C_Read... [20:51:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:51:50]Read from MH i2c: E2 [20:51:50]MH_I2C_Read... [20:51:50]Read from MH i2c: E2 03 00 [20:51:50]MH_I2C_Read... [20:51:50]Read from MH i2c: E2 03 00 BB 63 00 90 00 92 [20:51:50]RAPDU: 90 00 [20:51:50]wFMCommunicate OK [20:51:50]wFMCommunicate request_size=255 [20:51:50]MH_SAM_APDU [20:51: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 35 FF 03 08 00 03 D6 28 01 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 97 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 6B F0 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7A 71 00 00 35 04 06 00 FE 21 [20:51:50]Write to MH i2c: E2 02 01 BC 63 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D6 28 01 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 97 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 6B F0 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7A 71 00 00 35 04 06 00 FE 21 00 00 B3 [20:51:50]Write i2c OK [20:51:50]MH_I2C_Read... [20:51:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:50]Read from MH i2c: E2 [20:51:50]MH_I2C_Read... [20:51:50]Read from MH i2c: E2 03 00 [20:51:50]MH_I2C_Read... [20:51:50]Read from MH i2c: E2 03 00 BC 63 00 90 00 93 [20:51:50]RAPDU: 90 00 [20:51:50]wFMCommunicate OK [20:51:50]wFMCommunicate request_size=9 [20:51:50]MH_SAM_APDU [20:51:50]CAPDU: 80 0D 02 02 04 F8 84 EC D7 [20:51:50]Write to MH i2c: E2 0C 00 BD 63 80 0D 02 02 04 00 F8 84 EC D7 00 00 E1 [20:51:50]Write i2c OK [20:51:50]MH_I2C_Read... [20:51:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:50]Read from MH i2c: E2 [20:51:50]MH_I2C_Read... [20:51:50]Read from MH i2c: E2 03 00 [20:51:50]MH_I2C_Read... [20:51:50]Read from MH i2c: E2 03 00 BD 63 00 90 00 94 [20:51:50]RAPDU: 90 00 [20:51:50]wFMCommunicate OK [20:51:50]wFMCommunicate request_size=4 [20:51:50]MH_SAM_APDU [20:51:50]CAPDU: 80 0D 03 02 [20:51:50]Write to MH i2c: E2 08 00 BE 63 80 0D 03 02 00 00 00 00 9C [20:51:50]Write i2c OK [20:51:50]MH_I2C_Read... [20:51:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:51:50]Read from MH i2c: E2 [20:51:50]MH_I2C_Read... [20:51:50]Read from MH i2c: E2 0B 00 [20:51:50]MH_I2C_Read... [20:51:50]Read from MH i2c: E2 0B 00 BE 63 00 20 45 42 66 1E 1D 99 11 90 00 8F [20:51:50]RAPDU: 20 45 42 66 1E 1D 99 11 90 00 [20:51:50]wFMCommunicate OK [20:51:50]SAM_PROTO_SignData done [20:51:50]FM_MakeSignedData done [20:51:50]CreateOFDProtocolMessage [20:51:50]wFMCommunicate request_size=4 [20:51:50]MH_SAM_APDU [20:51:50]CAPDU: 80 11 00 00 [20:51:50]Write to MH i2c: E2 08 00 BF 63 80 11 00 00 00 00 00 00 9C [20:51:50]Write i2c OK [20:51:50]MH_I2C_Read... [20:51:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:50]Read from MH i2c: E2 [20:51:50]MH_I2C_Read... [20:51:50]Read from MH i2c: E2 17 00 [20:51:50]MH_I2C_Read... [20:51:50]Read from MH i2c: E2 17 00 BF 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EB [20:51:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:51:50]wFMCommunicate OK [20:51:50]CreateOFDProtocolMessage done [20:51:50]OFDSenderStorePacket 29050 [20:51:50]StoreOFDPacket docnum=29050 [20:51:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 C3 F4 06 01 28 9E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D6 28 01 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 97 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 6B F0 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7A 71 00 00 35 04 06 00 FE 21 F8 84 EC D7 20 45 42 66 1E 1D 99 11 [20:51:50]CheckFolder [20:51:50]dirname=/storage/ofd_packets [20:51:50]CheckFolder done [20:51:50]ProducePacketName [20:51:50]name=ofd_packets/00029050 [20:51:50]NVStorageSaveData ofd_packets/00029050 [20:51:50]File name is /storage/ofd_packets/00029050 [20:51:50]Write 300 bytes [20:51:50]NVStorageSaveData done [20:51:50]OFDSenderStorePacket done [20:51:50]KKMCreateOFDPacket done [20:51:50]NVStorageSaveData kkm_last_timestamp [20:51:50]File name is /storage/kkm_last_timestamp [20:51:50]Write 4 bytes [20:51:50]NVStorageSaveData done [20:51:50]ExternCall_PrintAddStr [20:51:50]wPrintStart [20:51:50]Write to MH i2c: 01 00 00 C0 63 23 [20:51:50]Write i2c OK [20:51:50]MH_I2C_Read... [20:51:50]Read from MH i2c: 01 [20:51:50]MH_I2C_Read... [20:51:50]Read from MH i2c: 01 07 00 [20:51:50]MH_I2C_Read... [20:51:50]Read from MH i2c: 01 07 00 C0 63 00 00 00 00 00 FF 0F 38 [20:51:50]RasterBufferAndPrint [20:51:50]line Счет N : (1)347417 [20:51:50]line ИНН: 02508201610067 [20:51:50]line Контрольно-Кассовый Чек [20:51:50]line ПРОДАЖА [20:51:50]line ТРК (МРК, ГНК) : 71 [20:51:50]line Товар: 2711129700 [20:51:50]line ГАЗ-К-5 [20:51:50]line 75.990 * 32.90 [20:51:50]line = 2500.07 [20:51:50]line НДС 12% НСП 1% [20:51:50]line > о реализуемом товаре [20:51:50]line ИТОГО: 2500.07 [20:51:50]line НСП 1% : 22.12 [20:51:50]line НДС 12% : 265.49 [20:51:50]line Наличными: 0.00 [20:51:50]line Безнал.: 2500.07 [20:51:50]line Место: АЗС № 108 "Партнер Нефть" [20:51:50]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:51:50]line СНО: Общий режим [20:51:50]line Чек 257 13.04.2024 20:51 [20:51:50]line Смена: 115 ФФД: 1.0 [20:51:50]line ЗНМ: 0300000027 [20:51:50]line РНМ: 0000138879044617 [20:51:50]line Версия ККМ: 001 [20:51:50]line Платежная система: О! деньги [20:51:50]line ФМ: 0000000000963154 [20:51:50]line ФД: 29050 [20:51:50]line ФПД: 279421856836823 [20:51:50]line 1/tax-web-control/client/api/v1/ticket?date=20240413T205155&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29050&fm=279421856836823&tin=02508201610067®Number=0000138879044617&sum=250007 [20:51:50]OFD Sender: Processing packet 29050 [packets to send 8, broken 7] [20:51:50]ProducePacketName [20:51:50]name=ofd_packets/00029050 [20:51:50]OFD Sender: To server: pG, [20:51:50]CommunicateWithHost lk.salyk.kg:30040 [20:51:50]ConnectInit lk.salyk.kg [20:51:50]written 0, free lines is 4095 [20:51:50]Connected sock=10 [20:51: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 31 35 34 0E 01 00 00 C3 F4 06 01 28 9E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D6 28 01 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 97 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 6B F0 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7A 71 00 00 35 04 06 00 FE 21 F8 84 EC D7 20 45 42 66 1E 1D 99 11 [20:51:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 0E FE 47 00 4F 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 31 35 34 10 04 04 00 7A 71 00 00 F4 03 04 00 11 9B 1A 66 B6 04 01 00 00 49 BC CB 1C AC 0D F0 21 [20:51:51]CommunicateWithHost err = 0 [20:51:51]CheckOFDResponse [20:51:51]1017 (14) - 77093643461234 [20:51:51]1041 (16) - 0000000000963154 [20:51:51]1040 (4) - 29050 [20:51:51]1012 (4) - 13.04.2024 14:47 [20:51:51]1206 (1) - 0 [20:51:51]OFD Sender: Remove packet 29050 [20:51:51]ProducePacketName [20:51:51]name=ofd_packets/00029050 [20:51:51]NVStorageDeleteData [20:51:51]Write to MH i2c: 01 00 00 E9 63 4C [20:51:51]Write i2c OK [20:51:51]MH_I2C_Read... [20:51:51]Read from MH i2c: 01 [20:51:51]MH_I2C_Read... [20:51:51]Read from MH i2c: 01 07 00 [20:51:51]MH_I2C_Read... [20:51:51]Read from MH i2c: 01 07 00 E9 63 00 00 00 00 00 D8 0C 37 [20:51:51]RasterBufferAndPrint [20:51:51]line [20:51:51]line [20:51:51]line [20:51:51]line [20:51:51]line [20:51:51]written 0, free lines is 3294 [20:51:51]MH_Cut [20:51:51]Write to MH i2c: D1 01 00 F0 63 01 25 [20:51:51]Write i2c OK [20:51:51]MH_I2C_Read... [20:51:51]Read from MH i2c: D1 [20:51:51]MH_I2C_Read... [20:51:51]Read from MH i2c: D1 01 00 [20:51:51]MH_I2C_Read... [20:51:51]Read from MH i2c: D1 01 00 F0 63 00 24 [20:51:51]Write to MH i2c: 01 00 00 F1 63 54 [20:51:51]Write i2c OK [20:51:51]MH_I2C_Read... [20:51:51]OFD Sender: No OFD packet to send [20:51:52]*** Cut start [20:51:52]*** Partial cut [20:51:52]*** CUTSNS_PIN = 1 [20:51:52]*** CUTSNS_PIN = 0 [20:51:52]*** Brake cut motor [20:51:52]Read from MH i2c: 01 [20:51:52]MH_I2C_Read... [20:51:52]*** Stop cut motor [20:51:52]*** Cut end [20:51:52]Read from MH i2c: 01 07 00 [20:51:52]MH_I2C_Read... [20:51:52]Read from MH i2c: 01 07 00 F1 63 00 00 00 00 00 FF 0F 69 [20:51:52]process_action close_receipt done [20:51:52]requested_data is exist [20:51:52]produce_requested_data [20:51:52]requested_item fm.sn is exist - process it [20:51:52]wFMCommunicate request_size=4 [20:51:52]MH_SAM_APDU [20:51:52]CAPDU: 80 11 00 00 [20:51:52]Write to MH i2c: E2 08 00 F2 63 80 11 00 00 00 00 00 00 CF [20:51:52]Write i2c OK [20:51:52]MH_I2C_Read... [20:51:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:52]Read from MH i2c: E2 [20:51:52]MH_I2C_Read... [20:51:52]Read from MH i2c: E2 17 00 [20:51:52]MH_I2C_Read... [20:51:52]Read from MH i2c: E2 17 00 F2 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1E [20:51:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:51:52]wFMCommunicate OK [20:51:52]requested_item fd.num is exist - process it [20:51:52]SAM_PROTO_GetFieldsCounters [20:51:52]wFMCommunicate request_size=4 [20:51:52]MH_SAM_APDU [20:51:52]CAPDU: 80 13 00 00 [20:51:52]Write to MH i2c: E2 08 00 F3 63 80 13 00 00 00 00 00 00 D2 [20:51:52]Write i2c OK [20:51:52]MH_I2C_Read... [20:51:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:51:52]Read from MH i2c: E2 [20:51:52]MH_I2C_Read... [20:51:52]Read from MH i2c: E2 62 00 [20:51:52]MH_I2C_Read... [20:51:52]Read from MH i2c: E2 62 00 F3 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7A 71 00 00 0E 04 04 00 73 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 74 [20:51: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7A 71 00 00 0E 04 04 00 73 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 [20:51:52]wFMCommunicate OK [20:51:52]SAM_PROTO_GetFieldsCounters done [20:51:52]requested_item shift.num is exist - process it [20:51:52]requested_item shift.opened is exist - process it [20:51:52]req_shift_opened [20:51:52]FM_GetShiftState [20:51:52]SAM_PROTO_GetShiftState [20:51:52]wFMCommunicate request_size=4 [20:51:52]MH_SAM_APDU [20:51:52]CAPDU: 80 13 01 00 [20:51:52]Write to MH i2c: E2 08 00 F4 63 80 13 01 00 00 00 00 00 D4 [20:51:52]Write i2c OK [20:51:52]MH_I2C_Read... [20:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:53]Read from MH i2c: E2 [20:51:53]MH_I2C_Read... [20:51:53]Read from MH i2c: E2 0E 00 [20:51:53]MH_I2C_Read... [20:51:53]Read from MH i2c: E2 0E 00 F4 63 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 ED [20:51:53]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [20:51:53]wFMCommunicate OK [20:51:53]SAM_PROTO_GetShiftState done [20:51:53]FM_GetShiftState done [20:51:53]req_shift_opened done [20:51:53]requested_item shift.open_date is exist - process it [20:51:53]req_shift_open_date [20:51:53]req_shift_open_date done [20:51:53]produce_requested_data done [20:51:53]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29050,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [20:51:53]process_action_free close_receipt [20:51:53]json_value_free [20:51:53]json_value_free done [20:51:53]process_json_proto returns [20:51:53]Send response to host [20:51:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29050,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [20:51:53]free response buf [20:51:53]execute_script done [20:51:53]execute_script returns [20:51:53]free content buf [20:51:53]Sock 7.Close socket [20:51:53]Sock 7.Thread stoped [20:51:56]OFD Sender: No OFD packet to send [20:52:01]OFD Sender: No OFD packet to send [20:52:06]OFD Sender: No OFD packet to send [20:52:11]OFD Sender: No OFD packet to send [20:52:16]OFD Sender: No OFD packet to send [20:52:21]OFD Sender: No OFD packet to send [20:52:26]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:52:45]accept exits with 9 [20:52:45]New connection [20:52:45]New thread 3066928484 created [20:52:45]Thread 3066785124 joined [20:52:45]Waiting for new connection... [20:52:45] Sock 9.Parse request [20:52:45]Sock 9.Check first char [20:52:45]Sock 9.First char is OK [20:52:45]request: POST /json_proto HTTP/1.0 [20:52:45]Method: POST [20:52:45]URL: /json_proto [20:52:45]Method is POST - this is cgi request [20:52:45]url: /json_proto [20:52:45]query_string will be loaded in cgi processing [20:52:45]execute_cgi json_proto POST (null) [20:52:45]execute_cgi path=json_proto method=POST [20:52:45]POST find Content-Length [20:52:45]Host: 172.17.33.3:8080 [20:52:45]Content-Length: 836 [20:52:45]Content-Type: application/json [20:52:45] [20:52:45]POST finish read [20:52:45]Found Content-Length = 836 [20:52:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:45]execute_script... [20: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)347419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:45]POST & json_proto [20:52:45]process_json_proto [20:52:45]json parsed OK: [20:52:45]protocol is kg_v1.0 [20:52:45]action value=close_receipt [20:52:45]process_action close_receipt [20:52:45]cmd_close_receipt [20:52:45]MH_GetDate [20:52:45]Write to MH i2c: F0 00 00 F5 63 47 [20:52:45]Write i2c OK [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: F0 [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: F0 09 00 [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: F0 09 00 F5 63 00 A4 F0 1A 66 23 5B 8F 65 D6 [20:52:45]GetLastDocTimeStamp 1713041515 [20:52:45]current date 1713041572 [20:52:45]FM_GetShiftState [20:52:45]SAM_PROTO_GetShiftState [20:52:45]wFMCommunicate request_size=4 [20:52:45]MH_SAM_APDU [20:52:45]CAPDU: 80 13 01 00 [20:52:45]Write to MH i2c: E2 08 00 F6 63 80 13 01 00 00 00 00 00 D6 [20:52:45]Write i2c OK [20:52:45]MH_I2C_Read... [20:52:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:45]Read from MH i2c: E2 [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: E2 0E 00 [20:52:45]MH_I2C_Read... [20:52:45]Read from MH i2c: E2 0E 00 F6 63 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 EF [20:52:45]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [20:52:45]wFMCommunicate OK [20:52:45]SAM_PROTO_GetShiftState done [20:52:45]FM_GetShiftState done [20:52:45]opened in 1712967615 [20:52:45]opened+sec_in_day 1713054015 [20:52:45]quantity*price = 100039 [20:52:45]sum+1 = 100041 [20:52:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.40 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.40 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 258 13.04.2024 20:52 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29051 ФПД: 274839453439209 1/tax-web-control/client/api/v1/ticket?date=20240413T205252&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29051&fm=274839453439209&tin=02508201610067®Number=0000138879044617&sum=100040 [20:52:46]StoreToDocumentArchive [20:52:46]shift 115 fd 29051 [20:52:46]save to /storage/0115/doc_00029051 [20:52:46]save last doc name /storage/0115/doc_00029051 to /storage/kkm_last_doc_name [20:52:46]save OK [20:52:46]Clear old archive folders... [20:52:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:52:46]tlvbuf is 011F6A90 [20:52:46]SAM_PROTO_ClearQueue [20:52:46]wFMCommunicate request_size=4 [20:52:46]MH_SAM_APDU [20:52:46]CAPDU: 80 09 00 00 [20:52:46]Write to MH i2c: E2 08 00 03 64 80 09 00 00 00 00 00 00 D9 [20:52:46]OFD Sender: No OFD packet to send [20:52:46]Write i2c OK [20:52:46]MH_I2C_Read... [20:52:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:52:46]Read from MH i2c: E2 [20:52:46]MH_I2C_Read... [20:52:46]Read from MH i2c: E2 03 00 [20:52:46]MH_I2C_Read... [20:52:46]Read from MH i2c: E2 03 00 03 64 00 90 00 DB [20:52:46]RAPDU: 90 00 [20:52:46]wFMCommunicate OK [20:52:46]SAM_PROTO_ClearQueue done [20:52:46]KKMCreateOFDPacket [20:52:46]OFDProtocolAddRootSTLVToBuf [20:52:46]FM_MakeSignedData [20:52:46]FM_MakeSignedData [20:52:46]SAM_PROTO_SignData [20:52:46]wFMCommunicate request_size=4 [20:52:46]MH_SAM_APDU [20:52:46]CAPDU: 80 0D 01 02 [20:52:46]Write to MH i2c: E2 08 00 04 64 80 0D 01 02 00 00 00 00 E1 [20:52:46]Write i2c OK [20:52:46]MH_I2C_Read... [20:52:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:52:46]Read from MH i2c: E2 [20:52:46]MH_I2C_Read... [20:52:46]Read from MH i2c: E2 03 00 [20:52:46]MH_I2C_Read... [20:52:46]Read from MH i2c: E2 03 00 04 64 00 90 00 DC [20:52:46]RAPDU: 90 00 [20:52:46]wFMCommunicate OK [20:52:46]wFMCommunicate request_size=255 [20:52:46]MH_SAM_APDU [20:52:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 A4 F0 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7B 71 00 00 35 04 06 00 [20:52:46]Write to MH i2c: E2 02 01 05 64 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 A4 F0 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7B 71 00 00 35 04 06 00 00 00 E4 [20:52:46]Write i2c OK [20:52:46]MH_I2C_Read... [20:52:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:47]Read from MH i2c: E2 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: E2 03 00 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: E2 03 00 05 64 00 90 00 DD [20:52:47]RAPDU: 90 00 [20:52:47]wFMCommunicate OK [20:52:47]wFMCommunicate request_size=11 [20:52:47]MH_SAM_APDU [20:52:47]CAPDU: 80 0D 02 02 06 F9 F7 0B FE 14 E9 [20:52:47]Write to MH i2c: E2 0E 00 06 64 80 0D 02 02 06 00 F9 F7 0B FE 14 E9 00 00 E6 [20:52:47]Write i2c OK [20:52:47]MH_I2C_Read... [20:52:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:47]Read from MH i2c: E2 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: E2 03 00 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: E2 03 00 06 64 00 90 00 DE [20:52:47]RAPDU: 90 00 [20:52:47]wFMCommunicate OK [20:52:47]wFMCommunicate request_size=4 [20:52:47]MH_SAM_APDU [20:52:47]CAPDU: 80 0D 03 02 [20:52:47]Write to MH i2c: E2 08 00 07 64 80 0D 03 02 00 00 00 00 E6 [20:52:47]Write i2c OK [20:52:47]MH_I2C_Read... [20:52:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:52:47]Read from MH i2c: E2 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: E2 0B 00 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: E2 0B 00 07 64 00 57 F9 B8 28 75 80 0F A4 90 00 BF [20:52:47]RAPDU: 57 F9 B8 28 75 80 0F A4 90 00 [20:52:47]wFMCommunicate OK [20:52:47]SAM_PROTO_SignData done [20:52:47]FM_MakeSignedData done [20:52:47]CreateOFDProtocolMessage [20:52:47]wFMCommunicate request_size=4 [20:52:47]MH_SAM_APDU [20:52:47]CAPDU: 80 11 00 00 [20:52:47]Write to MH i2c: E2 08 00 08 64 80 11 00 00 00 00 00 00 E6 [20:52:47]Write i2c OK [20:52:47]MH_I2C_Read... [20:52:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:47]Read from MH i2c: E2 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: E2 17 00 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: E2 17 00 08 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 35 [20:52:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:52:47]wFMCommunicate OK [20:52:47]CreateOFDProtocolMessage done [20:52:47]OFDSenderStorePacket 29051 [20:52:47]StoreOFDPacket docnum=29051 [20:52:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 A7 A0 08 01 79 3A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 A4 F0 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7B 71 00 00 35 04 06 00 F9 F7 0B FE 14 E9 57 F9 B8 28 75 80 0F A4 [20:52:47]CheckFolder [20:52:47]dirname=/storage/ofd_packets [20:52:47]CheckFolder done [20:52:47]ProducePacketName [20:52:47]name=ofd_packets/00029051 [20:52:47]NVStorageSaveData ofd_packets/00029051 [20:52:47]File name is /storage/ofd_packets/00029051 [20:52:47]Write 302 bytes [20:52:47]NVStorageSaveData done [20:52:47]OFDSenderStorePacket done [20:52:47]KKMCreateOFDPacket done [20:52:47]NVStorageSaveData kkm_last_timestamp [20:52:47]File name is /storage/kkm_last_timestamp [20:52:47]Write 4 bytes [20:52:47]NVStorageSaveData done [20:52:47]ExternCall_PrintAddStr [20:52:47]wPrintStart [20:52:47]Write to MH i2c: 01 00 00 09 64 6D [20:52:47]Write i2c OK [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: 01 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: 01 07 00 [20:52:47]MH_I2C_Read... [20:52:47]Read from MH i2c: 01 07 00 09 64 00 00 00 00 00 FF 0F 82 [20:52:47]RasterBufferAndPrint [20:52:47]line Счет N : (1)347419 [20:52:47]line ИНН: 02508201610067 [20:52:47]line Контрольно-Кассовый Чек [20:52:47]line ПРОДАЖА [20:52:47]line ТРК (МРК, ГНК) : 41 [20:52:47]line Товар: 2710124130 [20:52:47]line SUPER-92-К-5 [20:52:47]line 15.320 * 65.30 [20:52:47]line = 1000.40 [20:52:47]line НДС 12% НСП 1% [20:52:47]line > о реализуемом товаре [20:52:47]line ИТОГО: 1000.40 [20:52:47]line НСП 1% : 8.85 [20:52:47]line НДС 12% : 106.24 [20:52:47]line Наличными: 0.00 [20:52:47]line Безнал.: 1000.40 [20:52:47]line Место: АЗС № 108 "Партнер Нефть" [20:52:47]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:52:47]line СНО: Общий режим [20:52:47]line Чек 258 13.04.2024 20:52 [20:52:47]line Смена: 115 ФФД: 1.0 [20:52:47]line ЗНМ: 0300000027 [20:52:47]line РНМ: 0000138879044617 [20:52:47]line Версия ККМ: 001 [20:52:47]line Платежная система: АКБ Кыргызстан [20:52:47]line ФМ: 0000000000963154 [20:52:47]line ФД: 29051 [20:52:47]line ФПД: 274839453439209 [20:52:47]line 1/tax-web-control/client/api/v1/ticket?date=20240413T205252&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29051&fm=274839453439209&tin=02508201610067®Number=0000138879044617&sum=100040 [20:52:47]OFD Sender: Processing packet 29051 [packets to send 8, broken 7] [20:52:47]ProducePacketName [20:52:47]name=ofd_packets/00029051 [20:52:47]OFD Sender: To server: pG, [20:52:47]CommunicateWithHost lk.salyk.kg:30040 [20:52:47]ConnectInit lk.salyk.kg [20:52:47]written 0, free lines is 4095 [20:52:47]Connected sock=10 [20: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 31 35 34 10 01 00 00 A7 A0 08 01 79 3A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 A4 F0 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7B 71 00 00 35 04 06 00 F9 F7 0B FE 14 E9 57 F9 B8 28 75 80 0F A4 [20: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 31 35 34 4F 00 00 00 84 7E 47 00 FA 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 31 35 34 10 04 04 00 7B 71 00 00 F4 03 04 00 4A 9B 1A 66 B6 04 01 00 00 C3 19 0E D1 61 7C 00 84 [20:52:47]CommunicateWithHost err = 0 [20:52:47]CheckOFDResponse [20:52:47]1017 (14) - 77093643461234 [20:52:47]1041 (16) - 0000000000963154 [20:52:47]1040 (4) - 29051 [20:52:47]1012 (4) - 13.04.2024 14:48 [20:52:47]1206 (1) - 0 [20:52:47]OFD Sender: Remove packet 29051 [20:52:47]ProducePacketName [20:52:47]name=ofd_packets/00029051 [20:52:47]NVStorageDeleteData [20:52:48]Write to MH i2c: 01 00 00 32 64 96 [20:52:48]Write i2c OK [20:52:48]MH_I2C_Read... [20:52:48]Read from MH i2c: 01 [20:52:48]MH_I2C_Read... [20:52:48]Read from MH i2c: 01 07 00 [20:52:48]MH_I2C_Read... [20:52:48]Read from MH i2c: 01 07 00 32 64 00 00 00 00 00 E8 0C 91 [20:52:48]RasterBufferAndPrint [20:52:48]line [20:52:48]line [20:52:48]line [20:52:48]line [20:52:48]line [20:52:48]written 0, free lines is 3310 [20:52:48]MH_Cut [20:52:48]Write to MH i2c: D1 01 00 39 64 01 6F [20:52:48]Write i2c OK [20:52:48]MH_I2C_Read... [20:52:48]Read from MH i2c: D1 [20:52:48]MH_I2C_Read... [20:52:48]Read from MH i2c: D1 01 00 [20:52:48]MH_I2C_Read... [20:52:48]Read from MH i2c: D1 01 00 39 64 00 6E [20:52:48]Write to MH i2c: 01 00 00 3A 64 9E [20:52:48]Write i2c OK [20:52:48]MH_I2C_Read... [20:52:48]OFD Sender: No OFD packet to send [20:52:48]*** Cut start [20:52:48]*** Partial cut [20:52:48]*** CUTSNS_PIN = 1 [20:52:48]*** CUTSNS_PIN = 0 [20:52:49]*** Brake cut motor [20:52:49]Read from MH i2c: 01 [20:52:49]MH_I2C_Read... [20:52:49]*** Stop cut motor [20:52:49]*** Cut end [20:52:49]Read from MH i2c: 01 07 00 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: 01 07 00 3A 64 00 00 00 00 00 FF 0F B3 [20:52:49]process_action close_receipt done [20:52:49]requested_data is exist [20:52:49]produce_requested_data [20:52:49]requested_item fm.sn is exist - process it [20:52:49]wFMCommunicate request_size=4 [20:52:49]MH_SAM_APDU [20:52:49]CAPDU: 80 11 00 00 [20:52:49]Write to MH i2c: E2 08 00 3B 64 80 11 00 00 00 00 00 00 19 [20:52:49]Write i2c OK [20:52:49]MH_I2C_Read... [20:52:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:49]Read from MH i2c: E2 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: E2 17 00 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: E2 17 00 3B 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 68 [20:52:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:52:49]wFMCommunicate OK [20:52:49]requested_item fd.num is exist - process it [20:52:49]SAM_PROTO_GetFieldsCounters [20:52:49]wFMCommunicate request_size=4 [20:52:49]MH_SAM_APDU [20:52:49]CAPDU: 80 13 00 00 [20:52:49]Write to MH i2c: E2 08 00 3C 64 80 13 00 00 00 00 00 00 1C [20:52:49]Write i2c OK [20:52:49]MH_I2C_Read... [20:52:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:49]Read from MH i2c: E2 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: E2 62 00 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: E2 62 00 3C 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7B 71 00 00 0E 04 04 00 73 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 C2 [20: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7B 71 00 00 0E 04 04 00 73 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 [20:52:49]wFMCommunicate OK [20:52:49]SAM_PROTO_GetFieldsCounters done [20:52:49]requested_item shift.num is exist - process it [20:52:49]requested_item shift.opened is exist - process it [20:52:49]req_shift_opened [20:52:49]FM_GetShiftState [20:52:49]SAM_PROTO_GetShiftState [20:52:49]wFMCommunicate request_size=4 [20:52:49]MH_SAM_APDU [20:52:49]CAPDU: 80 13 01 00 [20:52:49]Write to MH i2c: E2 08 00 3D 64 80 13 01 00 00 00 00 00 1E [20:52:49]Write i2c OK [20:52:49]MH_I2C_Read... [20:52:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:49]Read from MH i2c: E2 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: E2 0E 00 [20:52:49]MH_I2C_Read... [20:52:49]Read from MH i2c: E2 0E 00 3D 64 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 37 [20:52:49]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [20:52:49]wFMCommunicate OK [20:52:49]SAM_PROTO_GetShiftState done [20:52:49]FM_GetShiftState done [20:52:49]req_shift_opened done [20:52:49]requested_item shift.open_date is exist - process it [20:52:49]req_shift_open_date [20:52:49]req_shift_open_date done [20:52:49]produce_requested_data done [20:52:49]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29051,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [20:52:49]process_action_free close_receipt [20:52:49]json_value_free [20:52:49]json_value_free done [20:52:49]process_json_proto returns [20:52:49]Send response to host [20:52:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29051,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [20:52:49]free response buf [20:52:49]execute_script done [20:52:49]execute_script returns [20:52:49]free content buf [20:52:49]Sock 9.Close socket [20:52:49]Sock 9.Thread stoped [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:23]OFD Sender: No OFD packet to send [20:53:28]OFD Sender: No OFD packet to send [20:53:33]OFD Sender: No OFD packet to send [20:53:38]OFD Sender: No OFD packet to send [20:53:43]OFD Sender: No OFD packet to send [20:53:48]OFD Sender: No OFD packet to send [20:53:53]OFD Sender: No OFD packet to send [20:53:58]OFD Sender: No OFD packet to send [20:54:03]OFD Sender: No OFD packet to send [20:54:08]OFD Sender: No OFD packet to send [20:54:13]OFD Sender: No OFD packet to send [20:54:18]OFD Sender: No OFD packet to send [20:54:23]OFD Sender: No OFD packet to send [20:54:28]OFD Sender: No OFD packet to send [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:55]accept exits with 7 [20:54:55]New connection [20:54:55]New thread 3066785124 created [20:54:55]Thread 3066928484 joined [20:54:55]Waiting for new connection... [20:54:55] Sock 7.Parse request [20:54:55]Sock 7.Check first char [20:54:55]Sock 7.First char is OK [20:54:55]request: POST /json_proto HTTP/1.0 [20:54:55]Method: POST [20:54:55]URL: /json_proto [20:54:55]Method is POST - this is cgi request [20:54:55]url: /json_proto [20:54:55]query_string will be loaded in cgi processing [20:54:55]execute_cgi json_proto POST (null) [20:54:55]execute_cgi path=json_proto method=POST [20:54:55]POST find Content-Length [20:54:55]Host: 172.17.33.3:8080 [20:54:55]Content-Length: 678 [20:54:55]Content-Type: application/json [20:54:55] [20:54:55]POST finish read [20:54:55]Found Content-Length = 678 [20:54:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347420", "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" : 64.30, "quantity" : 10.890, "sum" : 700.23, "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:54:55]execute_script... [20:54: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)347420", "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" : 64.30, "quantity" : 10.890, "sum" : 700.23, "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:54:55]POST & json_proto [20:54:55]process_json_proto [20:54:55]json parsed OK: [20:54:55]protocol is kg_v1.0 [20:54:55]action value=close_receipt [20:54:55]process_action close_receipt [20:54:55]cmd_close_receipt [20:54:55]MH_GetDate [20:54:55]Write to MH i2c: F0 00 00 3E 64 91 [20:54:55]Write i2c OK [20:54:55]MH_I2C_Read... [20:54:55]Read from MH i2c: F0 [20:54:55]MH_I2C_Read... [20:54:55]Read from MH i2c: F0 09 00 [20:54:55]MH_I2C_Read... [20:54:55]Read from MH i2c: F0 09 00 3E 64 00 25 F1 1A 66 23 5B 8F 65 A2 [20:54:55]GetLastDocTimeStamp 1713041572 [20:54:55]current date 1713041701 [20:54:55]FM_GetShiftState [20:54:55]SAM_PROTO_GetShiftState [20:54:55]wFMCommunicate request_size=4 [20:54:55]MH_SAM_APDU [20:54:55]CAPDU: 80 13 01 00 [20:54:55]Write to MH i2c: E2 08 00 3F 64 80 13 01 00 00 00 00 00 20 [20:54:55]Write i2c OK [20:54:55]MH_I2C_Read... [20:54:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:55]Read from MH i2c: E2 [20:54:55]MH_I2C_Read... [20:54:55]Read from MH i2c: E2 0E 00 [20:54:55]MH_I2C_Read... [20:54:55]Read from MH i2c: E2 0E 00 3F 64 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 39 [20:54:55]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [20:54:55]wFMCommunicate OK [20:54:55]SAM_PROTO_GetShiftState done [20:54:55]FM_GetShiftState done [20:54:55]opened in 1712967615 [20:54:55]opened+sec_in_day 1713054015 [20:54:55]quantity*price = 70022 [20:54:55]sum+1 = 70024 [20:54:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 259 13.04.2024 20:55 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29052 ФПД: 170315249222497 1/tax-web-control/client/api/v1/ticket?date=20240413T205501&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29052&fm=170315249222497&tin=02508201610067®Number=0000138879044617&sum=70000 [20:54:56]StoreToDocumentArchive [20:54:56]shift 115 fd 29052 [20:54:56]save to /storage/0115/doc_00029052 [20:54:56]save last doc name /storage/0115/doc_00029052 to /storage/kkm_last_doc_name [20:54:56]save OK [20:54:56]Clear old archive folders... [20:54:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:54:56]tlvbuf is 011ECBC0 [20:54:56]SAM_PROTO_ClearQueue [20:54:56]wFMCommunicate request_size=4 [20:54:56]MH_SAM_APDU [20:54:56]CAPDU: 80 09 00 00 [20:54:56]Write to MH i2c: E2 08 00 4C 64 80 09 00 00 00 00 00 00 22 [20:54:56]Write i2c OK [20:54:56]MH_I2C_Read... [20:54:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:56]Read from MH i2c: E2 [20:54:56]MH_I2C_Read... [20:54:56]Read from MH i2c: E2 03 00 [20:54:56]MH_I2C_Read... [20:54:56]Read from MH i2c: E2 03 00 4C 64 00 90 00 24 [20:54:56]RAPDU: 90 00 [20:54:56]wFMCommunicate OK [20:54:56]SAM_PROTO_ClearQueue done [20:54:56]KKMCreateOFDPacket [20:54:56]OFDProtocolAddRootSTLVToBuf [20:54:56]FM_MakeSignedData [20:54:56]FM_MakeSignedData [20:54:56]SAM_PROTO_SignData [20:54:56]wFMCommunicate request_size=4 [20:54:56]MH_SAM_APDU [20:54:56]CAPDU: 80 0D 01 02 [20:54:56]Write to MH i2c: E2 08 00 4D 64 80 0D 01 02 00 00 00 00 2A [20:54:56]Write i2c OK [20:54:56]MH_I2C_Read... [20:54:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:56]Read from MH i2c: E2 [20:54:56]MH_I2C_Read... [20:54:56]Read from MH i2c: E2 03 00 [20:54:56]MH_I2C_Read... [20:54:56]Read from MH i2c: E2 03 00 4D 64 00 90 00 25 [20:54:56]RAPDU: 90 00 [20:54:56]wFMCommunicate OK [20:54:56]wFMCommunicate request_size=255 [20:54:56]MH_SAM_APDU [20:54: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 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 03 01 00 00 F4 03 04 00 25 F1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7C 71 00 00 35 04 06 00 9A [20:54:56]Write to MH i2c: E2 02 01 4E 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 03 01 00 00 F4 03 04 00 25 F1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7C 71 00 00 35 04 06 00 9A 00 00 04 [20:54:56]Write i2c OK [20:54:56]MH_I2C_Read... [20:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:56]Read from MH i2c: E2 [20:54:56]MH_I2C_Read... [20:54:56]Read from MH i2c: E2 03 00 [20:54:56]MH_I2C_Read... [20:54:56]Read from MH i2c: E2 03 00 4E 64 00 90 00 26 [20:54:56]RAPDU: 90 00 [20:54:56]wFMCommunicate OK [20:54:56]wFMCommunicate request_size=10 [20:54:56]MH_SAM_APDU [20:54:56]CAPDU: 80 0D 02 02 05 E6 9B EE 03 61 [20:54:56]Write to MH i2c: E2 0D 00 4F 64 80 0D 02 02 05 00 E6 9B EE 03 61 00 00 0A [20:54:56]Write i2c OK [20:54:56]MH_I2C_Read... [20:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:56]Read from MH i2c: E2 [20:54:56]MH_I2C_Read... [20:54:56]Read from MH i2c: E2 03 00 [20:54:56]MH_I2C_Read... [20:54:56]Read from MH i2c: E2 03 00 4F 64 00 90 00 27 [20:54:56]RAPDU: 90 00 [20:54:56]wFMCommunicate OK [20:54:56]wFMCommunicate request_size=4 [20:54:56]MH_SAM_APDU [20:54:56]CAPDU: 80 0D 03 02 [20:54:56]Write to MH i2c: E2 08 00 50 64 80 0D 03 02 00 00 00 00 2F [20:54:56]Write i2c OK [20:54:56]MH_I2C_Read... [20:54:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:56]Read from MH i2c: E2 [20:54:56]MH_I2C_Read... [20:54:56]Read from MH i2c: E2 0B 00 [20:54:56]MH_I2C_Read... [20:54:56]Read from MH i2c: E2 0B 00 50 64 00 04 51 0F 37 FF 71 54 0D 90 00 9C [20:54:56]RAPDU: 04 51 0F 37 FF 71 54 0D 90 00 [20:54:56]wFMCommunicate OK [20:54:56]SAM_PROTO_SignData done [20:54:56]FM_MakeSignedData done [20:54:56]CreateOFDProtocolMessage [20:54:56]wFMCommunicate request_size=4 [20:54:56]MH_SAM_APDU [20:54:56]CAPDU: 80 11 00 00 [20:54:56]Write to MH i2c: E2 08 00 51 64 80 11 00 00 00 00 00 00 2F [20:54:56]Write i2c OK [20:54:56]MH_I2C_Read... [20:54:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:57]Read from MH i2c: E2 [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: E2 17 00 [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: E2 17 00 51 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7E [20:54:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:54:57]wFMCommunicate OK [20:54:57]CreateOFDProtocolMessage done [20:54:57]OFDSenderStorePacket 29052 [20:54:57]StoreOFDPacket docnum=29052 [20:54:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E8 9C 07 01 8D C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 03 01 00 00 F4 03 04 00 25 F1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7C 71 00 00 35 04 06 00 9A E6 9B EE 03 61 04 51 0F 37 FF 71 54 0D [20:54:57]CheckFolder [20:54:57]dirname=/storage/ofd_packets [20:54:57]CheckFolder done [20:54:57]ProducePacketName [20:54:57]name=ofd_packets/00029052 [20:54:57]NVStorageSaveData ofd_packets/00029052 [20:54:57]File name is /storage/ofd_packets/00029052 [20:54:57]Write 301 bytes [20:54:57]NVStorageSaveData done [20:54:57]OFDSenderStorePacket done [20:54:57]KKMCreateOFDPacket done [20:54:57]NVStorageSaveData kkm_last_timestamp [20:54:57]File name is /storage/kkm_last_timestamp [20:54:57]Write 4 bytes [20:54:57]NVStorageSaveData done [20:54:57]ExternCall_PrintAddStr [20:54:57]wPrintStart [20:54:57]Write to MH i2c: 01 00 00 52 64 B6 [20:54:57]Write i2c OK [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: 01 [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: 01 07 00 [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: 01 07 00 52 64 00 00 00 00 00 FF 0F CB [20:54:57]RasterBufferAndPrint [20:54:57]line Счет N : (1)347420 [20:54:57]line ИНН: 02508201610067 [20:54:57]line Контрольно-Кассовый Чек [20:54:57]line ПРОДАЖА [20:54:57]line ТРК (МРК, ГНК) : 42 [20:54:57]line Товар: 2710124130 [20:54:57]line Аи-92-К-5 [20:54:57]line 10.890 * 64.30 [20:54:57]line = 700.23 [20:54:57]line НДС 12% НСП 1% [20:54:57]line > о реализуемом товаре [20:54:57]line ОКРУГЛЕНИЕ: -0.23 [20:54:57]line ИТОГО: 700.00 [20:54:57]line Внесено: 700.00 [20:54:57]line СДАЧА: 0.00 [20:54:57]line НСП 1% : 6.20 [20:54:57]line НДС 12% : 74.36 [20:54:57]line Наличными: 700.00 [20:54:57]line Безнал.: 0.00 [20:54:57]line Место: АЗС № 108 "Партнер Нефть" [20:54:57]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:54:57]line СНО: Общий режим [20:54:57]line Чек 259 13.04.2024 20:55 [20:54:57]line Смена: 115 ФФД: 1.0 [20:54:57]line ЗНМ: 0300000027 [20:54:57]line РНМ: 0000138879044617 [20:54:57]line Версия ККМ: 001 [20:54:57]line ФМ: 0000000000963154 [20:54:57]line ФД: 29052 [20:54:57]line ФПД: 170315249222497 [20:54:57]line 1/tax-web-control/client/api/v1/ticket?date=20240413T205501&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29052&fm=170315249222497&tin=02508201610067®Number=0000138879044617&sum=70000 [20:54:57]OFD Sender: Processing packet 29052 [packets to send 8, broken 7] [20:54:57]ProducePacketName [20:54:57]name=ofd_packets/00029052 [20:54:57]OFD Sender: To server: pG, [20:54:57]CommunicateWithHost lk.salyk.kg:30040 [20:54:57]ConnectInit lk.salyk.kg [20:54:57]written 0, free lines is 4095 [20:54:57]Connected sock=10 [20:54: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 31 35 34 0F 01 00 00 E8 9C 07 01 8D C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 03 01 00 00 F4 03 04 00 25 F1 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7C 71 00 00 35 04 06 00 9A E6 9B EE 03 61 04 51 0F 37 FF 71 54 0D [20:54:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 51 32 47 00 32 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 31 35 34 10 04 04 00 7C 71 00 00 F4 03 04 00 CB 9B 1A 66 B6 04 01 00 00 98 2D B7 64 67 8E 3C 16 [20:54:57]CommunicateWithHost err = 0 [20:54:57]CheckOFDResponse [20:54:57]1017 (14) - 77093643461234 [20:54:57]1041 (16) - 0000000000963154 [20:54:57]1040 (4) - 29052 [20:54:57]1012 (4) - 13.04.2024 14:50 [20:54:57]1206 (1) - 0 [20:54:57]OFD Sender: Remove packet 29052 [20:54:57]ProducePacketName [20:54:57]name=ofd_packets/00029052 [20:54:57]NVStorageDeleteData [20:54:57]Write to MH i2c: 01 00 00 7C 64 E0 [20:54:57]Write i2c OK [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: 01 [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: 01 07 00 [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: 01 07 00 7C 64 00 00 00 00 00 C9 0C BC [20:54:57]RasterBufferAndPrint [20:54:57]line [20:54:57]line [20:54:57]line [20:54:57]line [20:54:57]line [20:54:57]written 0, free lines is 3279 [20:54:57]MH_Cut [20:54:57]Write to MH i2c: D1 01 00 83 64 01 B9 [20:54:57]Write i2c OK [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: D1 [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: D1 01 00 [20:54:57]MH_I2C_Read... [20:54:57]Read from MH i2c: D1 01 00 83 64 00 B8 [20:54:57]Write to MH i2c: 01 00 00 84 64 E8 [20:54:57]Write i2c OK [20:54:57]MH_I2C_Read... [20:54:58]OFD Sender: No OFD packet to send [20:54:58]*** Cut start [20:54:58]*** Partial cut [20:54:58]*** CUTSNS_PIN = 1 [20:54:58]*** CUTSNS_PIN = 0 [20:54:58]*** Brake cut motor [20:54:59]Read from MH i2c: 01 [20:54:59]MH_I2C_Read... [20:54:59]*** Stop cut motor [20:54:59]*** Cut end [20:54:59]Read from MH i2c: 01 07 00 [20:54:59]MH_I2C_Read... [20:54:59]Read from MH i2c: 01 07 00 84 64 00 00 00 00 00 FF 0F FD [20:54:59]process_action close_receipt done [20:54:59]requested_data is exist [20:54:59]produce_requested_data [20:54:59]requested_item fm.sn is exist - process it [20:54:59]wFMCommunicate request_size=4 [20:54:59]MH_SAM_APDU [20:54:59]CAPDU: 80 11 00 00 [20:54:59]Write to MH i2c: E2 08 00 85 64 80 11 00 00 00 00 00 00 63 [20:54:59]Write i2c OK [20:54:59]MH_I2C_Read... [20:54:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:59]Read from MH i2c: E2 [20:54:59]MH_I2C_Read... [20:54:59]Read from MH i2c: E2 17 00 [20:54:59]MH_I2C_Read... [20:54:59]Read from MH i2c: E2 17 00 85 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B2 [20:54:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:54:59]wFMCommunicate OK [20:54:59]requested_item fd.num is exist - process it [20:54:59]SAM_PROTO_GetFieldsCounters [20:54:59]wFMCommunicate request_size=4 [20:54:59]MH_SAM_APDU [20:54:59]CAPDU: 80 13 00 00 [20:54:59]Write to MH i2c: E2 08 00 86 64 80 13 00 00 00 00 00 00 66 [20:54:59]Write i2c OK [20:54:59]MH_I2C_Read... [20:54:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:59]Read from MH i2c: E2 [20:54:59]MH_I2C_Read... [20:54:59]Read from MH i2c: E2 62 00 [20:54:59]MH_I2C_Read... [20:54:59]Read from MH i2c: E2 62 00 86 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7C 71 00 00 0E 04 04 00 73 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 10 [20:54: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7C 71 00 00 0E 04 04 00 73 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 [20:54:59]wFMCommunicate OK [20:54:59]SAM_PROTO_GetFieldsCounters done [20:54:59]requested_item shift.num is exist - process it [20:54:59]requested_item shift.opened is exist - process it [20:54:59]req_shift_opened [20:54:59]FM_GetShiftState [20:54:59]SAM_PROTO_GetShiftState [20:54:59]wFMCommunicate request_size=4 [20:54:59]MH_SAM_APDU [20:54:59]CAPDU: 80 13 01 00 [20:54:59]Write to MH i2c: E2 08 00 87 64 80 13 01 00 00 00 00 00 68 [20:54:59]Write i2c OK [20:54:59]MH_I2C_Read... [20:54:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:59]Read from MH i2c: E2 [20:54:59]MH_I2C_Read... [20:54:59]Read from MH i2c: E2 0E 00 [20:54:59]MH_I2C_Read... [20:54:59]Read from MH i2c: E2 0E 00 87 64 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 81 [20:54:59]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [20:54:59]wFMCommunicate OK [20:54:59]SAM_PROTO_GetShiftState done [20:54:59]FM_GetShiftState done [20:54:59]req_shift_opened done [20:54:59]requested_item shift.open_date is exist - process it [20:54:59]req_shift_open_date [20:54:59]req_shift_open_date done [20:54:59]produce_requested_data done [20:54:59]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29052,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [20:54:59]process_action_free close_receipt [20:54:59]json_value_free [20:54:59]json_value_free done [20:54:59]process_json_proto returns [20:54:59]Send response to host [20:54:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29052,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [20:54:59]free response buf [20:54:59]execute_script done [20:54:59]execute_script returns [20:54:59]free content buf [20:54:59]Sock 7.Close socket [20:54:59]Sock 7.Thread stoped [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:58]OFD Sender: No OFD packet to send [20:57:03]OFD Sender: No OFD packet to send [20:57:08]OFD Sender: No OFD packet to send [20:57:13]OFD Sender: No OFD packet to send [20:57:18]OFD Sender: No OFD packet to send [20:57:23]OFD Sender: No OFD packet to send [20:57:28]OFD Sender: No OFD packet to send [20:57:33]OFD Sender: No OFD packet to send [20:57:38]OFD Sender: No OFD packet to send [20:57:43]OFD Sender: No OFD packet to send [20:57:48]OFD Sender: No OFD packet to send [20:57:53]OFD Sender: No OFD packet to send [20:57:58]OFD Sender: No OFD packet to send [20:58:03]OFD Sender: No OFD packet to send [20:58:08]OFD Sender: No OFD packet to send [20:58:13]OFD Sender: No OFD packet to send [20:58:18]OFD Sender: No OFD packet to send [20:58:23]OFD Sender: No OFD packet to send [20:58:28]OFD Sender: No OFD packet to send [20:58:33]OFD Sender: No OFD packet to send [20:58:38]OFD Sender: No OFD packet to send [20:58:43]OFD Sender: No OFD packet to send [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:00]accept exits with 9 [20:59:00]New connection [20:59:00]New thread 3066928484 created [20:59:00]Thread 3066785124 joined [20:59:00]Waiting for new connection... [20:59:00] Sock 9.Parse request [20:59:00]Sock 9.Check first char [20:59:00]Sock 9.First char is OK [20:59:00]request: POST /json_proto HTTP/1.0 [20:59:00]Method: POST [20:59:00]URL: /json_proto [20:59:00]Method is POST - this is cgi request [20:59:00]url: /json_proto [20:59:00]query_string will be loaded in cgi processing [20:59:00]execute_cgi json_proto POST (null) [20:59:00]execute_cgi path=json_proto method=POST [20:59:00]POST find Content-Length [20:59:00]Host: 172.17.33.3:8080 [20:59:00]Content-Length: 805 [20:59:00]Content-Type: application/json [20:59:00] [20:59:00]POST finish read [20:59:00]Found Content-Length = 805 [20:59:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 48.350, "sum" : 3500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3500.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:59:00]execute_script... [20:59:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 48.350, "sum" : 3500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3500.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:59:00]POST & json_proto [20:59:00]process_json_proto [20:59:00]json parsed OK: [20:59:00]protocol is kg_v1.0 [20:59:00]action value=close_receipt [20:59:00]process_action close_receipt [20:59:00]cmd_close_receipt [20:59:00]MH_GetDate [20:59:00]Write to MH i2c: F0 00 00 88 64 DB [20:59:00]Write i2c OK [20:59:00]MH_I2C_Read... [20:59:00]Read from MH i2c: F0 [20:59:00]MH_I2C_Read... [20:59:00]Read from MH i2c: F0 09 00 [20:59:00]MH_I2C_Read... [20:59:00]Read from MH i2c: F0 09 00 88 64 00 1B F2 1A 66 23 5B 8F 65 E3 [20:59:00]GetLastDocTimeStamp 1713041701 [20:59:00]current date 1713041947 [20:59:00]FM_GetShiftState [20:59:00]SAM_PROTO_GetShiftState [20:59:00]wFMCommunicate request_size=4 [20:59:00]MH_SAM_APDU [20:59:00]CAPDU: 80 13 01 00 [20:59:00]Write to MH i2c: E2 08 00 89 64 80 13 01 00 00 00 00 00 6A [20:59:00]Write i2c OK [20:59:00]MH_I2C_Read... [20:59:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:00]Read from MH i2c: E2 [20:59:00]MH_I2C_Read... [20:59:00]Read from MH i2c: E2 0E 00 [20:59:00]MH_I2C_Read... [20:59:00]Read from MH i2c: E2 0E 00 89 64 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 83 [20:59:00]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [20:59:00]wFMCommunicate OK [20:59:00]SAM_PROTO_GetShiftState done [20:59:00]FM_GetShiftState done [20:59:00]opened in 1712967615 [20:59:00]opened+sec_in_day 1713054015 [20:59:00]quantity*price = 350054 [20:59:00]sum+1 = 350055 [20:59:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3500.54 НСП 1% : 30.98 НДС 12% : 371.74 Наличными: 0.00 Безнал.: 3500.54 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 260 13.04.2024 20:59 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29053 ФПД: 169315876587961 1/tax-web-control/client/api/v1/ticket?date=20240413T205907&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29053&fm=169315876587961&tin=02508201610067®Number=0000138879044617&sum=350054 [20:59:01]StoreToDocumentArchive [20:59:01]shift 115 fd 29053 [20:59:01]save to /storage/0115/doc_00029053 [20:59:01]save last doc name /storage/0115/doc_00029053 to /storage/kkm_last_doc_name [20:59:01]save OK [20:59:01]Clear old archive folders... [20:59:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:59:01]tlvbuf is 0125FFD0 [20:59:01]SAM_PROTO_ClearQueue [20:59:01]wFMCommunicate request_size=4 [20:59:01]MH_SAM_APDU [20:59:01]CAPDU: 80 09 00 00 [20:59:01]Write to MH i2c: E2 08 00 96 64 80 09 00 00 00 00 00 00 6C [20:59:01]Write i2c OK [20:59:01]MH_I2C_Read... [20:59:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:59:01]Read from MH i2c: E2 [20:59:01]MH_I2C_Read... [20:59:01]Read from MH i2c: E2 03 00 [20:59:01]MH_I2C_Read... [20:59:01]Read from MH i2c: E2 03 00 96 64 00 90 00 6E [20:59:01]RAPDU: 90 00 [20:59:01]wFMCommunicate OK [20:59:01]SAM_PROTO_ClearQueue done [20:59:01]KKMCreateOFDPacket [20:59:01]OFDProtocolAddRootSTLVToBuf [20:59:01]FM_MakeSignedData [20:59:01]FM_MakeSignedData [20:59:01]SAM_PROTO_SignData [20:59:01]wFMCommunicate request_size=4 [20:59:01]MH_SAM_APDU [20:59:01]CAPDU: 80 0D 01 02 [20:59:01]Write to MH i2c: E2 08 00 97 64 80 0D 01 02 00 00 00 00 74 [20:59:01]Write i2c OK [20:59:01]MH_I2C_Read... [20:59:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:59:01]Read from MH i2c: E2 [20:59:01]MH_I2C_Read... [20:59:01]Read from MH i2c: E2 03 00 [20:59:01]MH_I2C_Read... [20:59:01]Read from MH i2c: E2 03 00 97 64 00 90 00 6F [20:59:01]RAPDU: 90 00 [20:59:01]wFMCommunicate OK [20:59:01]wFMCommunicate request_size=255 [20:59:01]MH_SAM_APDU [20:59: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 DE BC 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 66 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 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 36 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 1B F2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7D 71 00 00 35 04 06 00 99 FD EC AD [20:59:01]Write to MH i2c: E2 02 01 98 64 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 DE BC 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 66 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 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 36 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 1B F2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7D 71 00 00 35 04 06 00 99 FD EC AD 00 00 41 [20:59:01]Write i2c OK [20:59:01]MH_I2C_Read... [20:59:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:02]Read from MH i2c: E2 [20:59:02]MH_I2C_Read... [20:59:02]Read from MH i2c: E2 03 00 [20:59:02]MH_I2C_Read... [20:59:02]Read from MH i2c: E2 03 00 98 64 00 90 00 70 [20:59:02]RAPDU: 90 00 [20:59:02]wFMCommunicate OK [20:59:02]wFMCommunicate request_size=7 [20:59:02]MH_SAM_APDU [20:59:02]CAPDU: 80 0D 02 02 02 C9 B9 [20:59:02]Write to MH i2c: E2 0A 00 99 64 80 0D 02 02 02 00 C9 B9 00 00 FD [20:59:02]Write i2c OK [20:59:02]MH_I2C_Read... [20:59:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:02]Read from MH i2c: E2 [20:59:02]MH_I2C_Read... [20:59:02]Read from MH i2c: E2 03 00 [20:59:02]MH_I2C_Read... [20:59:02]Read from MH i2c: E2 03 00 99 64 00 90 00 71 [20:59:02]RAPDU: 90 00 [20:59:02]wFMCommunicate OK [20:59:02]wFMCommunicate request_size=4 [20:59:02]MH_SAM_APDU [20:59:02]CAPDU: 80 0D 03 02 [20:59:02]Write to MH i2c: E2 08 00 9A 64 80 0D 03 02 00 00 00 00 79 [20:59:02]Write i2c OK [20:59:02]MH_I2C_Read... [20:59:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:59:02]Read from MH i2c: E2 [20:59:02]MH_I2C_Read... [20:59:02]Read from MH i2c: E2 0B 00 [20:59:02]MH_I2C_Read... [20:59:02]Read from MH i2c: E2 0B 00 9A 64 00 B9 30 E1 9F 37 D1 ED 70 90 00 48 [20:59:02]RAPDU: B9 30 E1 9F 37 D1 ED 70 90 00 [20:59:02]wFMCommunicate OK [20:59:02]SAM_PROTO_SignData done [20:59:02]FM_MakeSignedData done [20:59:02]CreateOFDProtocolMessage [20:59:02]wFMCommunicate request_size=4 [20:59:02]MH_SAM_APDU [20:59:02]CAPDU: 80 11 00 00 [20:59:02]Write to MH i2c: E2 08 00 9B 64 80 11 00 00 00 00 00 00 79 [20:59:02]Write i2c OK [20:59:02]MH_I2C_Read... [20:59:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:02]Read from MH i2c: E2 [20:59:02]MH_I2C_Read... [20:59:02]Read from MH i2c: E2 17 00 [20:59:02]MH_I2C_Read... [20:59:02]Read from MH i2c: E2 17 00 9B 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C8 [20:59:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:59:02]wFMCommunicate OK [20:59:02]CreateOFDProtocolMessage done [20:59:02]OFDSenderStorePacket 29053 [20:59:02]StoreOFDPacket docnum=29053 [20:59:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 F2 E9 04 01 50 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE BC 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 66 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 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 36 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 1B F2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7D 71 00 00 35 04 06 00 99 FD EC AD C9 B9 B9 30 E1 9F 37 D1 ED 70 [20:59:02]CheckFolder [20:59:02]dirname=/storage/ofd_packets [20:59:02]CheckFolder done [20:59:02]ProducePacketName [20:59:02]name=ofd_packets/00029053 [20:59:02]NVStorageSaveData ofd_packets/00029053 [20:59:02]File name is /storage/ofd_packets/00029053 [20:59:02]Write 298 bytes [20:59:02]NVStorageSaveData done [20:59:02]OFDSenderStorePacket done [20:59:02]KKMCreateOFDPacket done [20:59:02]NVStorageSaveData kkm_last_timestamp [20:59:02]File name is /storage/kkm_last_timestamp [20:59:02]Write 4 bytes [20:59:02]NVStorageSaveData done [20:59:02]ExternCall_PrintAddStr [20:59:02]wPrintStart [20:59:02]Write to MH i2c: 01 00 00 9C 64 00 [20:59:02]Write i2c OK [20:59:02]MH_I2C_Read... [20:59:02]Read from MH i2c: 01 [20:59:02]MH_I2C_Read... [20:59:02]Read from MH i2c: 01 07 00 [20:59:02]MH_I2C_Read... [20:59:02]Read from MH i2c: 01 07 00 9C 64 00 00 00 00 00 FF 0F 15 [20:59:02]RasterBufferAndPrint [20:59:02]line Счет N : (1)347421 [20:59:02]line ИНН: 02508201610067 [20:59:02]line Контрольно-Кассовый Чек [20:59:02]line ПРОДАЖА [20:59:02]line ТРК (МРК, ГНК) : 21 [20:59:02]line Товар: 2710194210 [20:59:02]line ДТ-К-5 [20:59:02]line 48.350 * 72.40 [20:59:02]line = 3500.54 [20:59:02]line НДС 12% НСП 1% [20:59:02]line > о реализуемом товаре [20:59:02]line ИТОГО: 3500.54 [20:59:02]line НСП 1% : 30.98 [20:59:02]line НДС 12% : 371.74 [20:59:02]line Наличными: 0.00 [20:59:02]line Безнал.: 3500.54 [20:59:02]line Место: АЗС № 108 "Партнер Нефть" [20:59:02]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [20:59:02]line СНО: Общий режим [20:59:02]line Чек 260 13.04.2024 20:59 [20:59:02]line Смена: 115 ФФД: 1.0 [20:59:02]line ЗНМ: 0300000027 [20:59:02]line РНМ: 0000138879044617 [20:59:02]line Версия ККМ: 001 [20:59:02]line Платежная система: О! деньги [20:59:02]line ФМ: 0000000000963154 [20:59:02]line ФД: 29053 [20:59:02]line ФПД: 169315876587961 [20:59:02]line 1/tax-web-control/client/api/v1/ticket?date=20240413T205907&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29053&fm=169315876587961&tin=02508201610067®Number=0000138879044617&sum=350054 [20:59:02]OFD Sender: Processing packet 29053 [packets to send 8, broken 7] [20:59:02]ProducePacketName [20:59:02]name=ofd_packets/00029053 [20:59:02]OFD Sender: To server: pG, [20:59:02]CommunicateWithHost lk.salyk.kg:30040 [20:59:02]ConnectInit lk.salyk.kg [20:59:02]written 0, free lines is 4095 [20:59:02]Connected sock=10 [20:59:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 F2 E9 04 01 50 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE BC 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 66 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 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 36 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 1B F2 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7D 71 00 00 35 04 06 00 99 FD EC AD C9 B9 B9 30 E1 9F 37 D1 ED 70 [20:59:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4B 6C 47 00 52 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 31 35 34 10 04 04 00 7D 71 00 00 F4 03 04 00 C1 9C 1A 66 B6 04 01 00 00 D8 F6 8C A1 C5 2D B7 80 [20:59:02]CommunicateWithHost err = 0 [20:59:02]CheckOFDResponse [20:59:02]1017 (14) - 77093643461234 [20:59:02]1041 (16) - 0000000000963154 [20:59:02]1040 (4) - 29053 [20:59:02]1012 (4) - 13.04.2024 14:54 [20:59:02]1206 (1) - 0 [20:59:02]OFD Sender: Remove packet 29053 [20:59:02]ProducePacketName [20:59:02]name=ofd_packets/00029053 [20:59:02]NVStorageDeleteData [20:59:03]Write to MH i2c: 01 00 00 C5 64 29 [20:59:03]Write i2c OK [20:59:03]MH_I2C_Read... [20:59:03]Read from MH i2c: 01 [20:59:03]MH_I2C_Read... [20:59:03]Read from MH i2c: 01 07 00 [20:59:03]MH_I2C_Read... [20:59:03]Read from MH i2c: 01 07 00 C5 64 00 00 00 00 00 DB 0C 17 [20:59:03]RasterBufferAndPrint [20:59:03]line [20:59:03]line [20:59:03]line [20:59:03]line [20:59:03]line [20:59:03]written 0, free lines is 3298 [20:59:03]MH_Cut [20:59:03]Write to MH i2c: D1 01 00 CC 64 01 02 [20:59:03]Write i2c OK [20:59:03]MH_I2C_Read... [20:59:03]Read from MH i2c: D1 [20:59:03]MH_I2C_Read... [20:59:03]Read from MH i2c: D1 01 00 [20:59:03]MH_I2C_Read... [20:59:03]Read from MH i2c: D1 01 00 CC 64 00 01 [20:59:03]Write to MH i2c: 01 00 00 CD 64 31 [20:59:03]Write i2c OK [20:59:03]MH_I2C_Read... [20:59:03]OFD Sender: No OFD packet to send [20:59:03]*** Cut start [20:59:03]*** Partial cut [20:59:03]*** CUTSNS_PIN = 1 [20:59:03]*** CUTSNS_PIN = 0 [20:59:04]*** Brake cut motor [20:59:04]Read from MH i2c: 01 [20:59:04]MH_I2C_Read... [20:59:04]*** Stop cut motor [20:59:04]*** Cut end [20:59:04]Read from MH i2c: 01 07 00 [20:59:04]MH_I2C_Read... [20:59:04]Read from MH i2c: 01 07 00 CD 64 00 00 00 00 00 FF 0F 46 [20:59:04]process_action close_receipt done [20:59:04]requested_data is exist [20:59:04]produce_requested_data [20:59:04]requested_item fm.sn is exist - process it [20:59:04]wFMCommunicate request_size=4 [20:59:04]MH_SAM_APDU [20:59:04]CAPDU: 80 11 00 00 [20:59:04]Write to MH i2c: E2 08 00 CE 64 80 11 00 00 00 00 00 00 AC [20:59:04]Write i2c OK [20:59:04]MH_I2C_Read... [20:59:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:04]Read from MH i2c: E2 [20:59:04]MH_I2C_Read... [20:59:04]Read from MH i2c: E2 17 00 [20:59:04]MH_I2C_Read... [20:59:04]Read from MH i2c: E2 17 00 CE 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FB [20:59:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [20:59:04]wFMCommunicate OK [20:59:04]requested_item fd.num is exist - process it [20:59:04]SAM_PROTO_GetFieldsCounters [20:59:04]wFMCommunicate request_size=4 [20:59:04]MH_SAM_APDU [20:59:04]CAPDU: 80 13 00 00 [20:59:04]Write to MH i2c: E2 08 00 CF 64 80 13 00 00 00 00 00 00 AF [20:59:04]Write i2c OK [20:59:04]MH_I2C_Read... [20:59:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:59:04]Read from MH i2c: E2 [20:59:04]MH_I2C_Read... [20:59:04]Read from MH i2c: E2 62 00 [20:59:04]MH_I2C_Read... [20:59:04]Read from MH i2c: E2 62 00 CF 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7D 71 00 00 0E 04 04 00 73 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 5D [20:59:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7D 71 00 00 0E 04 04 00 73 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 [20:59:04]wFMCommunicate OK [20:59:04]SAM_PROTO_GetFieldsCounters done [20:59:04]requested_item shift.num is exist - process it [20:59:04]requested_item shift.opened is exist - process it [20:59:04]req_shift_opened [20:59:04]FM_GetShiftState [20:59:04]SAM_PROTO_GetShiftState [20:59:04]wFMCommunicate request_size=4 [20:59:04]MH_SAM_APDU [20:59:04]CAPDU: 80 13 01 00 [20:59:04]Write to MH i2c: E2 08 00 D0 64 80 13 01 00 00 00 00 00 B1 [20:59:04]Write i2c OK [20:59:04]MH_I2C_Read... [20:59:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:04]Read from MH i2c: E2 [20:59:04]MH_I2C_Read... [20:59:04]Read from MH i2c: E2 0E 00 [20:59:04]MH_I2C_Read... [20:59:04]Read from MH i2c: E2 0E 00 D0 64 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 CA [20:59:04]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [20:59:04]wFMCommunicate OK [20:59:04]SAM_PROTO_GetShiftState done [20:59:04]FM_GetShiftState done [20:59:04]req_shift_opened done [20:59:04]requested_item shift.open_date is exist - process it [20:59:04]req_shift_open_date [20:59:04]req_shift_open_date done [20:59:04]produce_requested_data done [20:59:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29053,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [20:59:04]process_action_free close_receipt [20:59:04]json_value_free [20:59:04]json_value_free done [20:59:04]process_json_proto returns [20:59:04]Send response to host [20:59:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29053,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [20:59:04]free response buf [20:59:04]execute_script done [20:59:04]execute_script returns [20:59:04]free content buf [20:59:04]Sock 9.Close socket [20:59:04]Sock 9.Thread stoped [20:59:08]OFD Sender: No OFD packet to send [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:53]OFD Sender: No OFD packet to send [21:01:58]OFD Sender: No OFD packet to send [21:02:03]OFD Sender: No OFD packet to send [21:02:08]OFD Sender: No OFD packet to send [21:02:13]OFD Sender: No OFD packet to send [21:02:18]OFD Sender: No OFD packet to send [21:02:23]OFD Sender: No OFD packet to send [21:02:28]OFD Sender: No OFD packet to send [21:02:33]OFD Sender: No OFD packet to send [21:02:38]OFD Sender: No OFD packet to send [21:02:43]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:53]OFD Sender: No OFD packet to send [21:02:58]OFD Sender: No OFD packet to send [21:03:03]OFD Sender: No OFD packet to send [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:18]OFD Sender: No OFD packet to send [21:03:22]accept exits with 7 [21:03:22]New connection [21:03:22]New thread 3066785124 created [21:03:22]Thread 3066928484 joined [21:03:22]Waiting for new connection... [21:03:22] Sock 7.Parse request [21:03:22]Sock 7.Check first char [21:03:22]Sock 7.First char is OK [21:03:22]request: POST /json_proto HTTP/1.0 [21:03:22]Method: POST [21:03:22]URL: /json_proto [21:03:22]Method is POST - this is cgi request [21:03:22]url: /json_proto [21:03:22]query_string will be loaded in cgi processing [21:03:22]execute_cgi json_proto POST (null) [21:03:22]execute_cgi path=json_proto method=POST [21:03:22]POST find Content-Length [21:03:22]Host: 172.17.33.3:8080 [21:03:22]Content-Length: 677 [21:03:22]Content-Type: application/json [21:03:22] [21:03:22]POST finish read [21:03:22]Found Content-Length = 677 [21:03:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.230, "sum" : 400.59, "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:03:22]execute_script... [21:03: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)347422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.230, "sum" : 400.59, "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:03:22]POST & json_proto [21:03:22]process_json_proto [21:03:22]json parsed OK: [21:03:22]protocol is kg_v1.0 [21:03:22]action value=close_receipt [21:03:22]process_action close_receipt [21:03:22]cmd_close_receipt [21:03:22]MH_GetDate [21:03:22]Write to MH i2c: F0 00 00 D1 64 24 [21:03:22]Write i2c OK [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: F0 [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: F0 09 00 [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: F0 09 00 D1 64 00 20 F3 1A 66 23 5B 8F 65 32 [21:03:22]GetLastDocTimeStamp 1713041947 [21:03:22]current date 1713042208 [21:03:22]FM_GetShiftState [21:03:22]SAM_PROTO_GetShiftState [21:03:22]wFMCommunicate request_size=4 [21:03:22]MH_SAM_APDU [21:03:22]CAPDU: 80 13 01 00 [21:03:22]Write to MH i2c: E2 08 00 D2 64 80 13 01 00 00 00 00 00 B3 [21:03:22]Write i2c OK [21:03:22]MH_I2C_Read... [21:03:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:22]Read from MH i2c: E2 [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: E2 0E 00 [21:03:22]MH_I2C_Read... [21:03:22]Read from MH i2c: E2 0E 00 D2 64 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 CC [21:03:22]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [21:03:22]wFMCommunicate OK [21:03:22]SAM_PROTO_GetShiftState done [21:03:22]FM_GetShiftState done [21:03:22]opened in 1712967615 [21:03:22]opened+sec_in_day 1713054015 [21:03:22]quantity*price = 40058 [21:03:22]sum+1 = 40060 [21:03:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 261 13.04.2024 21:03 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29054 ФПД: 174075553652487 1/tax-web-control/client/api/v1/ticket?date=20240413T210328&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29054&fm=174075553652487&tin=02508201610067®Number=0000138879044617&sum=40000 [21:03:23]StoreToDocumentArchive [21:03:23]shift 115 fd 29054 [21:03:23]save to /storage/0115/doc_00029054 [21:03:23]save last doc name /storage/0115/doc_00029054 to /storage/kkm_last_doc_name [21:03:23]save OK [21:03:23]Clear old archive folders... [21:03:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:03:23]tlvbuf is 011EE7F0 [21:03:23]SAM_PROTO_ClearQueue [21:03:23]wFMCommunicate request_size=4 [21:03:23]MH_SAM_APDU [21:03:23]CAPDU: 80 09 00 00 [21:03:23]Write to MH i2c: E2 08 00 DF 64 80 09 00 00 00 00 00 00 B5 [21:03:23]Write i2c OK [21:03:23]MH_I2C_Read... [21:03:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:03:23]Read from MH i2c: E2 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 03 00 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 03 00 DF 64 00 90 00 B7 [21:03:23]RAPDU: 90 00 [21:03:23]wFMCommunicate OK [21:03:23]SAM_PROTO_ClearQueue done [21:03:23]KKMCreateOFDPacket [21:03:23]OFDProtocolAddRootSTLVToBuf [21:03:23]FM_MakeSignedData [21:03:23]FM_MakeSignedData [21:03:23]SAM_PROTO_SignData [21:03:23]wFMCommunicate request_size=4 [21:03:23]MH_SAM_APDU [21:03:23]CAPDU: 80 0D 01 02 [21:03:23]Write to MH i2c: E2 08 00 E0 64 80 0D 01 02 00 00 00 00 BD [21:03:23]Write i2c OK [21:03:23]MH_I2C_Read... [21:03:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:03:23]Read from MH i2c: E2 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 03 00 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 03 00 E0 64 00 90 00 B8 [21:03:23]RAPDU: 90 00 [21:03:23]wFMCommunicate OK [21:03:23]wFMCommunicate request_size=255 [21:03:23]MH_SAM_APDU [21:03:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 05 01 00 00 F4 03 04 00 20 F3 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7E 71 00 00 35 04 06 00 9E [21:03:23]Write to MH i2c: E2 02 01 E1 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 05 01 00 00 F4 03 04 00 20 F3 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7E 71 00 00 35 04 06 00 9E 00 00 02 [21:03:23]Write i2c OK [21:03:23]MH_I2C_Read... [21:03:23]OFD Sender: No OFD packet to send [21:03:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:23]Read from MH i2c: E2 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 03 00 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 03 00 E1 64 00 90 00 B9 [21:03:23]RAPDU: 90 00 [21:03:23]wFMCommunicate OK [21:03:23]wFMCommunicate request_size=10 [21:03:23]MH_SAM_APDU [21:03:23]CAPDU: 80 0D 02 02 05 52 1F 8A 1F 07 [21:03:23]Write to MH i2c: E2 0D 00 E2 64 80 0D 02 02 05 00 52 1F 8A 1F 07 00 00 EB [21:03:23]Write i2c OK [21:03:23]MH_I2C_Read... [21:03:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:23]Read from MH i2c: E2 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 03 00 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 03 00 E2 64 00 90 00 BA [21:03:23]RAPDU: 90 00 [21:03:23]wFMCommunicate OK [21:03:23]wFMCommunicate request_size=4 [21:03:23]MH_SAM_APDU [21:03:23]CAPDU: 80 0D 03 02 [21:03:23]Write to MH i2c: E2 08 00 E3 64 80 0D 03 02 00 00 00 00 C2 [21:03:23]Write i2c OK [21:03:23]MH_I2C_Read... [21:03:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:03:23]Read from MH i2c: E2 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 0B 00 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 0B 00 E3 64 00 31 A8 4E 6E 87 09 FB 4A 90 00 2D [21:03:23]RAPDU: 31 A8 4E 6E 87 09 FB 4A 90 00 [21:03:23]wFMCommunicate OK [21:03:23]SAM_PROTO_SignData done [21:03:23]FM_MakeSignedData done [21:03:23]CreateOFDProtocolMessage [21:03:23]wFMCommunicate request_size=4 [21:03:23]MH_SAM_APDU [21:03:23]CAPDU: 80 11 00 00 [21:03:23]Write to MH i2c: E2 08 00 E4 64 80 11 00 00 00 00 00 00 C2 [21:03:23]Write i2c OK [21:03:23]MH_I2C_Read... [21:03:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:23]Read from MH i2c: E2 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 17 00 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: E2 17 00 E4 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 11 [21:03:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:03:23]wFMCommunicate OK [21:03:23]CreateOFDProtocolMessage done [21:03:23]OFDSenderStorePacket 29054 [21:03:23]StoreOFDPacket docnum=29054 [21:03:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 25 29 07 01 9D 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 05 01 00 00 F4 03 04 00 20 F3 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7E 71 00 00 35 04 06 00 9E 52 1F 8A 1F 07 31 A8 4E 6E 87 09 FB 4A [21:03:23]CheckFolder [21:03:23]dirname=/storage/ofd_packets [21:03:23]CheckFolder done [21:03:23]ProducePacketName [21:03:23]name=ofd_packets/00029054 [21:03:23]NVStorageSaveData ofd_packets/00029054 [21:03:23]File name is /storage/ofd_packets/00029054 [21:03:23]Write 301 bytes [21:03:23]NVStorageSaveData done [21:03:23]OFDSenderStorePacket done [21:03:23]KKMCreateOFDPacket done [21:03:23]NVStorageSaveData kkm_last_timestamp [21:03:23]File name is /storage/kkm_last_timestamp [21:03:23]Write 4 bytes [21:03:23]NVStorageSaveData done [21:03:23]ExternCall_PrintAddStr [21:03:23]wPrintStart [21:03:23]Write to MH i2c: 01 00 00 E5 64 49 [21:03:23]Write i2c OK [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: 01 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: 01 07 00 [21:03:23]MH_I2C_Read... [21:03:23]Read from MH i2c: 01 07 00 E5 64 00 00 00 00 00 FF 0F 5E [21:03:23]RasterBufferAndPrint [21:03:23]line Счет N : (1)347422 [21:03:23]line ИНН: 02508201610067 [21:03:23]line Контрольно-Кассовый Чек [21:03:23]line ПРОДАЖА [21:03:23]line ТРК (МРК, ГНК) : 13 [21:03:23]line Товар: 2710124130 [21:03:23]line Аи-92-К-5 [21:03:23]line 6.230 * 64.30 [21:03:23]line = 400.59 [21:03:23]line НДС 12% НСП 1% [21:03:23]line > о реализуемом товаре [21:03:23]line ОКРУГЛЕНИЕ: -0.59 [21:03:23]line ИТОГО: 400.00 [21:03:23]line Внесено: 400.00 [21:03:23]line СДАЧА: 0.00 [21:03:23]line НСП 1% : 3.54 [21:03:23]line НДС 12% : 42.54 [21:03:23]line Наличными: 400.00 [21:03:23]line Безнал.: 0.00 [21:03:23]line Место: АЗС № 108 "Партнер Нефть" [21:03:23]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:03:23]line СНО: Общий режим [21:03:23]line Чек 261 13.04.2024 21:03 [21:03:23]line Смена: 115 ФФД: 1.0 [21:03:23]line ЗНМ: 0300000027 [21:03:23]line РНМ: 0000138879044617 [21:03:23]line Версия ККМ: 001 [21:03:23]line ФМ: 0000000000963154 [21:03:23]line ФД: 29054 [21:03:23]line ФПД: 174075553652487 [21:03:24]line 1/tax-web-control/client/api/v1/ticket?date=20240413T210328&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29054&fm=174075553652487&tin=02508201610067®Number=0000138879044617&sum=40000 [21:03:24]OFD Sender: Processing packet 29054 [packets to send 8, broken 7] [21:03:24]ProducePacketName [21:03:24]name=ofd_packets/00029054 [21:03:24]OFD Sender: To server: pG, [21:03:24]CommunicateWithHost lk.salyk.kg:30040 [21:03:24]ConnectInit lk.salyk.kg [21:03:24]written 0, free lines is 4095 [21:03:24]Connected sock=10 [21:03:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 25 29 07 01 9D 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 05 01 00 00 F4 03 04 00 20 F3 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7E 71 00 00 35 04 06 00 9E 52 1F 8A 1F 07 31 A8 4E 6E 87 09 FB 4A [21:03:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 62 73 47 00 28 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7E 71 00 00 F4 03 04 00 C6 9D 1A 66 B6 04 01 00 00 21 86 89 78 A0 B3 BE C5 [21:03:24]CommunicateWithHost err = 0 [21:03:24]CheckOFDResponse [21:03:24]1017 (14) - 77093643461234 [21:03:24]1041 (16) - 0000000000963154 [21:03:24]1040 (4) - 29054 [21:03:24]1012 (4) - 13.04.2024 14:59 [21:03:24]1206 (1) - 0 [21:03:24]OFD Sender: Remove packet 29054 [21:03:24]ProducePacketName [21:03:24]name=ofd_packets/00029054 [21:03:24]NVStorageDeleteData [21:03:24]Write to MH i2c: 01 00 00 0F 65 74 [21:03:24]Write i2c OK [21:03:24]MH_I2C_Read... [21:03:24]Read from MH i2c: 01 [21:03:24]MH_I2C_Read... [21:03:24]Read from MH i2c: 01 07 00 [21:03:24]MH_I2C_Read... [21:03:24]Read from MH i2c: 01 07 00 0F 65 00 00 00 00 00 C0 0C 47 [21:03:24]RasterBufferAndPrint [21:03:24]line [21:03:24]line [21:03:24]line [21:03:24]line [21:03:24]line [21:03:24]written 0, free lines is 3270 [21:03:24]MH_Cut [21:03:24]Write to MH i2c: D1 01 00 16 65 01 4D [21:03:24]Write i2c OK [21:03:24]MH_I2C_Read... [21:03:24]Read from MH i2c: D1 [21:03:24]MH_I2C_Read... [21:03:24]Read from MH i2c: D1 01 00 [21:03:24]MH_I2C_Read... [21:03:24]Read from MH i2c: D1 01 00 16 65 00 4C [21:03:24]Write to MH i2c: 01 00 00 17 65 7C [21:03:24]Write i2c OK [21:03:24]MH_I2C_Read... [21:03:25]OFD Sender: No OFD packet to send [21:03:25]*** Cut start [21:03:25]*** Partial cut [21:03:25]*** CUTSNS_PIN = 1 [21:03:25]*** CUTSNS_PIN = 0 [21:03:25]*** Brake cut motor [21:03:26]Read from MH i2c: 01 [21:03:26]MH_I2C_Read... [21:03:26]*** Stop cut motor [21:03:26]*** Cut end [21:03:26]Read from MH i2c: 01 07 00 [21:03:26]MH_I2C_Read... [21:03:26]Read from MH i2c: 01 07 00 17 65 00 00 00 00 00 FF 0F 91 [21:03:26]process_action close_receipt done [21:03:26]requested_data is exist [21:03:26]produce_requested_data [21:03:26]requested_item fm.sn is exist - process it [21:03:26]wFMCommunicate request_size=4 [21:03:26]MH_SAM_APDU [21:03:26]CAPDU: 80 11 00 00 [21:03:26]Write to MH i2c: E2 08 00 18 65 80 11 00 00 00 00 00 00 F7 [21:03:26]Write i2c OK [21:03:26]MH_I2C_Read... [21:03:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:26]Read from MH i2c: E2 [21:03:26]MH_I2C_Read... [21:03:26]Read from MH i2c: E2 17 00 [21:03:26]MH_I2C_Read... [21:03:26]Read from MH i2c: E2 17 00 18 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 46 [21:03:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:03:26]wFMCommunicate OK [21:03:26]requested_item fd.num is exist - process it [21:03:26]SAM_PROTO_GetFieldsCounters [21:03:26]wFMCommunicate request_size=4 [21:03:26]MH_SAM_APDU [21:03:26]CAPDU: 80 13 00 00 [21:03:26]Write to MH i2c: E2 08 00 19 65 80 13 00 00 00 00 00 00 FA [21:03:26]Write i2c OK [21:03:26]MH_I2C_Read... [21:03:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:03:26]Read from MH i2c: E2 [21:03:26]MH_I2C_Read... [21:03:26]Read from MH i2c: E2 62 00 [21:03:26]MH_I2C_Read... [21:03:26]Read from MH i2c: E2 62 00 19 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7E 71 00 00 0E 04 04 00 73 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 AC [21:03: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7E 71 00 00 0E 04 04 00 73 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 [21:03:26]wFMCommunicate OK [21:03:26]SAM_PROTO_GetFieldsCounters done [21:03:26]requested_item shift.num is exist - process it [21:03:26]requested_item shift.opened is exist - process it [21:03:26]req_shift_opened [21:03:26]FM_GetShiftState [21:03:26]SAM_PROTO_GetShiftState [21:03:26]wFMCommunicate request_size=4 [21:03:26]MH_SAM_APDU [21:03:26]CAPDU: 80 13 01 00 [21:03:26]Write to MH i2c: E2 08 00 1A 65 80 13 01 00 00 00 00 00 FC [21:03:26]Write i2c OK [21:03:26]MH_I2C_Read... [21:03:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:26]Read from MH i2c: E2 [21:03:26]MH_I2C_Read... [21:03:26]Read from MH i2c: E2 0E 00 [21:03:26]MH_I2C_Read... [21:03:26]Read from MH i2c: E2 0E 00 1A 65 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 15 [21:03:26]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [21:03:26]wFMCommunicate OK [21:03:26]SAM_PROTO_GetShiftState done [21:03:26]FM_GetShiftState done [21:03:26]req_shift_opened done [21:03:26]requested_item shift.open_date is exist - process it [21:03:26]req_shift_open_date [21:03:26]req_shift_open_date done [21:03:26]produce_requested_data done [21:03:26]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29054,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [21:03:26]process_action_free close_receipt [21:03:26]json_value_free [21:03:26]json_value_free done [21:03:26]process_json_proto returns [21:03:26]Send response to host [21:03:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29054,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [21:03:26]free response buf [21:03:26]execute_script done [21:03:26]execute_script returns [21:03:26]free content buf [21:03:26]Sock 7.Close socket [21:03:26]Sock 7.Thread stoped [21:03:30]OFD Sender: No OFD packet to send [21:03:35]OFD Sender: No OFD packet to send [21:03:40]OFD Sender: No OFD packet to send [21:03:45]OFD Sender: No OFD packet to send [21:03:50]OFD Sender: No OFD packet to send [21:03:55]OFD Sender: No OFD packet to send [21:04:00]OFD Sender: No OFD packet to send [21:04:05]OFD Sender: No OFD packet to send [21:04:10]OFD Sender: No OFD packet to send [21:04:15]OFD Sender: No OFD packet to send [21:04:20]OFD Sender: No OFD packet to send [21:04:25]OFD Sender: No OFD packet to send [21:04:30]OFD Sender: No OFD packet to send [21:04:35]OFD Sender: No OFD packet to send [21:04:40]OFD Sender: No OFD packet to send [21:04:45]OFD Sender: No OFD packet to send [21:04:50]OFD Sender: No OFD packet to send [21:04:55]OFD Sender: No OFD packet to send [21:05:00]OFD Sender: No OFD packet to send [21:05:05]OFD Sender: No OFD packet to send [21:05:10]OFD Sender: No OFD packet to send [21:05:15]OFD Sender: No OFD packet to send [21:05:20]OFD Sender: No OFD packet to send [21:05:25]OFD Sender: No OFD packet to send [21:05:30]OFD Sender: No OFD packet to send [21:05:35]OFD Sender: No OFD packet to send [21:05:40]OFD Sender: No OFD packet to send [21:05:45]OFD Sender: No OFD packet to send [21:05:50]OFD Sender: No OFD packet to send [21:05:55]OFD Sender: No OFD packet to send [21:06:00]OFD Sender: No OFD packet to send [21:06:05]OFD Sender: No OFD packet to send [21:06:10]OFD Sender: No OFD packet to send [21:06:15]OFD Sender: No OFD packet to send [21:06:20]OFD Sender: No OFD packet to send [21:06:25]OFD Sender: No OFD packet to send [21:06:30]OFD Sender: No OFD packet to send [21:06:35]OFD Sender: No OFD packet to send [21:06:40]OFD Sender: No OFD packet to send [21:06:45]OFD Sender: No OFD packet to send [21:06:50]OFD Sender: No OFD packet to send [21:06:55]OFD Sender: No OFD packet to send [21:07:00]OFD Sender: No OFD packet to send [21:07:05]OFD Sender: No OFD packet to send [21:07:10]OFD Sender: No OFD packet to send [21:07:15]OFD Sender: No OFD packet to send [21:07:20]OFD Sender: No OFD packet to send [21:07:25]OFD Sender: No OFD packet to send [21:07:30]OFD Sender: No OFD packet to send [21:07:35]OFD Sender: No OFD packet to send [21:07:40]OFD Sender: No OFD packet to send [21:07:45]OFD Sender: No OFD packet to send [21:07:50]OFD Sender: No OFD packet to send [21:07:55]OFD Sender: No OFD packet to send [21:08:00]OFD Sender: No OFD packet to send [21:08:05]OFD Sender: No OFD packet to send [21:08:10]OFD Sender: No OFD packet to send [21:08:15]OFD Sender: No OFD packet to send [21:08:20]OFD Sender: No OFD packet to send [21:08:25]OFD Sender: No OFD packet to send [21:08:30]OFD Sender: No OFD packet to send [21:08:35]OFD Sender: No OFD packet to send [21:08:40]OFD Sender: No OFD packet to send [21:08:45]OFD Sender: No OFD packet to send [21:08:50]OFD Sender: No OFD packet to send [21:08:55]OFD Sender: No OFD packet to send [21:09:00]OFD Sender: No OFD packet to send [21:09:05]OFD Sender: No OFD packet to send [21:09:10]OFD Sender: No OFD packet to send [21:09:15]OFD Sender: No OFD packet to send [21:09:20]OFD Sender: No OFD packet to send [21:09:25]OFD Sender: No OFD packet to send [21:09:30]OFD Sender: No OFD packet to send [21:09:35]OFD Sender: No OFD packet to send [21:09:40]OFD Sender: No OFD packet to send [21:09:45]OFD Sender: No OFD packet to send [21:09:50]OFD Sender: No OFD packet to send [21:09:55]OFD Sender: No OFD packet to send [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:10]OFD Sender: No OFD packet to send [21:10:15]OFD Sender: No OFD packet to send [21:10:20]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:05]OFD Sender: No OFD packet to send [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:25]OFD Sender: No OFD packet to send [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]accept exits with 9 [21:15:05]New connection [21:15:05]New thread 3066928484 created [21:15:05]Thread 3066785124 joined [21:15:05]Waiting for new connection... [21:15:05] Sock 9.Parse request [21:15:05]Sock 9.Check first char [21:15:05]Sock 9.First char is OK [21:15:05]request: POST /json_proto HTTP/1.0 [21:15:05]Method: POST [21:15:05]URL: /json_proto [21:15:05]Method is POST - this is cgi request [21:15:05]url: /json_proto [21:15:05]query_string will be loaded in cgi processing [21:15:05]execute_cgi json_proto POST (null) [21:15:05]execute_cgi path=json_proto method=POST [21:15:05]POST find Content-Length [21:15:05]Host: 172.17.33.3:8080 [21:15:05]Content-Length: 671 [21:15:05]Content-Type: application/json [21:15:05] [21:15:05]POST finish read [21:15:05]Found Content-Length = 671 [21:15:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 11.640, "sum" : 760.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 760.00, "total" : 760.00, "payments": [ { "type": 0, "sum" : 760.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:05]execute_script... [21:15: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)347423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 11.640, "sum" : 760.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 760.00, "total" : 760.00, "payments": [ { "type": 0, "sum" : 760.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:05]POST & json_proto [21:15:05]process_json_proto [21:15:05]json parsed OK: [21:15:05]protocol is kg_v1.0 [21:15:05]action value=close_receipt [21:15:05]process_action close_receipt [21:15:05]cmd_close_receipt [21:15:05]MH_GetDate [21:15:05]Write to MH i2c: F0 00 00 1B 65 6F [21:15:05]Write i2c OK [21:15:05]MH_I2C_Read... [21:15:05]Read from MH i2c: F0 [21:15:05]MH_I2C_Read... [21:15:05]Read from MH i2c: F0 09 00 [21:15:05]MH_I2C_Read... [21:15:05]Read from MH i2c: F0 09 00 1B 65 00 DF F5 1A 66 23 5B 8F 65 3E [21:15:05]GetLastDocTimeStamp 1713042208 [21:15:05]current date 1713042911 [21:15:05]FM_GetShiftState [21:15:05]SAM_PROTO_GetShiftState [21:15:05]wFMCommunicate request_size=4 [21:15:05]MH_SAM_APDU [21:15:05]CAPDU: 80 13 01 00 [21:15:05]Write to MH i2c: E2 08 00 1C 65 80 13 01 00 00 00 00 00 FE [21:15:05]Write i2c OK [21:15:05]MH_I2C_Read... [21:15:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:05]Read from MH i2c: E2 [21:15:05]MH_I2C_Read... [21:15:05]Read from MH i2c: E2 0E 00 [21:15:05]MH_I2C_Read... [21:15:05]Read from MH i2c: E2 0E 00 1C 65 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 17 [21:15:05]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [21:15:05]wFMCommunicate OK [21:15:05]SAM_PROTO_GetShiftState done [21:15:05]FM_GetShiftState done [21:15:05]opened in 1712967615 [21:15:05]opened+sec_in_day 1713054015 [21:15:05]quantity*price = 76009 [21:15:05]sum+1 = 76010 [21:15:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 760.00 Внесено: 760.00 СДАЧА: 0.00 НСП 1% : 6.73 НДС 12% : 80.72 Наличными: 760.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 262 13.04.2024 21:15 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29055 ФПД: 99082423340927 1/tax-web-control/client/api/v1/ticket?date=20240413T211511&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29055&fm=99082423340927&tin=02508201610067®Number=0000138879044617&sum=76000 [21:15:06]StoreToDocumentArchive [21:15:06]shift 115 fd 29055 [21:15:06]save to /storage/0115/doc_00029055 [21:15:06]save last doc name /storage/0115/doc_00029055 to /storage/kkm_last_doc_name [21:15:06]save OK [21:15:06]Clear old archive folders... [21:15:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:15:06]tlvbuf is 011E3A30 [21:15:06]SAM_PROTO_ClearQueue [21:15:06]wFMCommunicate request_size=4 [21:15:06]MH_SAM_APDU [21:15:06]CAPDU: 80 09 00 00 [21:15:06]Write to MH i2c: E2 08 00 29 65 80 09 00 00 00 00 00 00 00 [21:15:06]Write i2c OK [21:15:06]MH_I2C_Read... [21:15:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:15:06]Read from MH i2c: E2 [21:15:06]MH_I2C_Read... [21:15:06]Read from MH i2c: E2 03 00 [21:15:06]MH_I2C_Read... [21:15:06]Read from MH i2c: E2 03 00 29 65 00 90 00 02 [21:15:06]RAPDU: 90 00 [21:15:06]wFMCommunicate OK [21:15:06]SAM_PROTO_ClearQueue done [21:15:06]KKMCreateOFDPacket [21:15:06]OFDProtocolAddRootSTLVToBuf [21:15:06]FM_MakeSignedData [21:15:06]FM_MakeSignedData [21:15:06]SAM_PROTO_SignData [21:15:06]wFMCommunicate request_size=4 [21:15:06]MH_SAM_APDU [21:15:06]CAPDU: 80 0D 01 02 [21:15:06]Write to MH i2c: E2 08 00 2A 65 80 0D 01 02 00 00 00 00 08 [21:15:06]Write i2c OK [21:15:06]MH_I2C_Read... [21:15:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:15:06]Read from MH i2c: E2 [21:15:06]MH_I2C_Read... [21:15:06]Read from MH i2c: E2 03 00 [21:15:06]MH_I2C_Read... [21:15:06]Read from MH i2c: E2 03 00 2A 65 00 90 00 03 [21:15:06]RAPDU: 90 00 [21:15:06]wFMCommunicate OK [21:15:06]wFMCommunicate request_size=255 [21:15:06]MH_SAM_APDU [21:15:06]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 2D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 E9 28 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 1F 00 00 00 00 07 04 06 00 E0 28 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 DF F5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7F 71 00 00 35 04 06 00 [21:15:06]Write to MH i2c: E2 02 01 2B 65 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 2D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 E9 28 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 1F 00 00 00 00 07 04 06 00 E0 28 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 DF F5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7F 71 00 00 35 04 06 00 00 00 45 [21:15:06]Write i2c OK [21:15:06]MH_I2C_Read... [21:15:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:06]Read from MH i2c: E2 [21:15:06]MH_I2C_Read... [21:15:06]Read from MH i2c: E2 03 00 [21:15:06]MH_I2C_Read... [21:15:06]Read from MH i2c: E2 03 00 2B 65 00 90 00 04 [21:15:06]RAPDU: 90 00 [21:15:06]wFMCommunicate OK [21:15:06]wFMCommunicate request_size=11 [21:15:06]MH_SAM_APDU [21:15:06]CAPDU: 80 0D 02 02 06 5A 1D 6C A5 8F 7F [21:15:06]Write to MH i2c: E2 0E 00 2C 65 80 0D 02 02 06 00 5A 1D 6C A5 8F 7F 00 00 AD [21:15:06]Write i2c OK [21:15:06]MH_I2C_Read... [21:15:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:06]Read from MH i2c: E2 [21:15:06]MH_I2C_Read... [21:15:06]Read from MH i2c: E2 03 00 [21:15:06]MH_I2C_Read... [21:15:06]Read from MH i2c: E2 03 00 2C 65 00 90 00 05 [21:15:06]RAPDU: 90 00 [21:15:06]wFMCommunicate OK [21:15:06]wFMCommunicate request_size=4 [21:15:06]MH_SAM_APDU [21:15:06]CAPDU: 80 0D 03 02 [21:15:06]Write to MH i2c: E2 08 00 2D 65 80 0D 03 02 00 00 00 00 0D [21:15:06]Write i2c OK [21:15:06]MH_I2C_Read... [21:15:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:15:06]Read from MH i2c: E2 [21:15:06]MH_I2C_Read... [21:15:06]Read from MH i2c: E2 0B 00 [21:15:06]MH_I2C_Read... [21:15:06]Read from MH i2c: E2 0B 00 2D 65 00 25 77 90 9A 24 D9 08 52 90 00 2B [21:15:06]RAPDU: 25 77 90 9A 24 D9 08 52 90 00 [21:15:06]wFMCommunicate OK [21:15:06]SAM_PROTO_SignData done [21:15:06]FM_MakeSignedData done [21:15:06]CreateOFDProtocolMessage [21:15:06]wFMCommunicate request_size=4 [21:15:06]MH_SAM_APDU [21:15:06]CAPDU: 80 11 00 00 [21:15:06]Write to MH i2c: E2 08 00 2E 65 80 11 00 00 00 00 00 00 0D [21:15:06]Write i2c OK [21:15:06]MH_I2C_Read... [21:15:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:06]Read from MH i2c: E2 [21:15:06]MH_I2C_Read... [21:15:06]Read from MH i2c: E2 17 00 [21:15:06]MH_I2C_Read... [21:15:06]Read from MH i2c: E2 17 00 2E 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5C [21:15:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:15:06]wFMCommunicate OK [21:15:06]CreateOFDProtocolMessage done [21:15:06]OFDSenderStorePacket 29055 [21:15:06]StoreOFDPacket docnum=29055 [21:15:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 A4 F5 08 01 3C D5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 2D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 E9 28 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 1F 00 00 00 00 07 04 06 00 E0 28 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 DF F5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7F 71 00 00 35 04 06 00 5A 1D 6C A5 8F 7F 25 77 90 9A 24 D9 08 52 [21:15:06]CheckFolder [21:15:06]dirname=/storage/ofd_packets [21:15:06]CheckFolder done [21:15:06]ProducePacketName [21:15:06]name=ofd_packets/00029055 [21:15:06]NVStorageSaveData ofd_packets/00029055 [21:15:06]File name is /storage/ofd_packets/00029055 [21:15:06]Write 302 bytes [21:15:06]NVStorageSaveData done [21:15:06]OFDSenderStorePacket done [21:15:06]KKMCreateOFDPacket done [21:15:06]NVStorageSaveData kkm_last_timestamp [21:15:06]File name is /storage/kkm_last_timestamp [21:15:06]Write 4 bytes [21:15:06]NVStorageSaveData done [21:15:06]ExternCall_PrintAddStr [21:15:06]wPrintStart [21:15:06]Write to MH i2c: 01 00 00 2F 65 94 [21:15:06]Write i2c OK [21:15:06]MH_I2C_Read... [21:15:06]Read from MH i2c: 01 [21:15:06]MH_I2C_Read... [21:15:06]Read from MH i2c: 01 07 00 [21:15:06]MH_I2C_Read... [21:15:06]Read from MH i2c: 01 07 00 2F 65 00 00 00 00 00 FF 0F A9 [21:15:06]RasterBufferAndPrint [21:15:06]line Счет N : (1)347423 [21:15:06]line ИНН: 02508201610067 [21:15:06]line Контрольно-Кассовый Чек [21:15:06]line ПРОДАЖА [21:15:06]line ТРК (МРК, ГНК) : 22 [21:15:06]line Товар: 2710124130 [21:15:06]line SUPER-92-К-5 [21:15:06]line 11.640 * 65.30 [21:15:06]line = 760.09 [21:15:06]line НДС 12% НСП 1% [21:15:06]line > о реализуемом товаре [21:15:06]line ОКРУГЛЕНИЕ: -0.09 [21:15:06]line ИТОГО: 760.00 [21:15:06]line Внесено: 760.00 [21:15:06]line СДАЧА: 0.00 [21:15:06]line НСП 1% : 6.73 [21:15:06]line НДС 12% : 80.72 [21:15:06]line Наличными: 760.00 [21:15:06]line Безнал.: 0.00 [21:15:06]line Место: АЗС № 108 "Партнер Нефть" [21:15:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:15:06]line СНО: Общий режим [21:15:06]line Чек 262 13.04.2024 21:15 [21:15:06]line Смена: 115 ФФД: 1.0 [21:15:06]line ЗНМ: 0300000027 [21:15:06]line РНМ: 0000138879044617 [21:15:06]line Версия ККМ: 001 [21:15:06]line ФМ: 0000000000963154 [21:15:06]line ФД: 29055 [21:15:06]line ФПД: 99082423340927 [21:15:06]line 1/tax-web-control/client/api/v1/ticket?date=20240413T211511&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29055&fm=99082423340927&tin=02508201610067®Number=0000138879044617&sum=76000 [21:15:07]OFD Sender: Processing packet 29055 [packets to send 8, broken 7] [21:15:07]ProducePacketName [21:15:07]name=ofd_packets/00029055 [21:15:07]OFD Sender: To server: pG, [21:15:07]CommunicateWithHost lk.salyk.kg:30040 [21:15:07]ConnectInit lk.salyk.kg [21:15:07]written 0, free lines is 4095 [21:15:07]Connected sock=10 [21:15: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 31 35 34 10 01 00 00 A4 F5 08 01 3C D5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 2D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 E9 28 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 1F 00 00 00 00 07 04 06 00 E0 28 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 DF F5 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 7F 71 00 00 35 04 06 00 5A 1D 6C A5 8F 7F 25 77 90 9A 24 D9 08 52 [21:15:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 EA 13 47 00 E4 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 31 35 34 10 04 04 00 7F 71 00 00 F4 03 04 00 85 A0 1A 66 B6 04 01 00 00 0B A2 B7 2D 67 72 F0 94 [21:15:07]CommunicateWithHost err = 0 [21:15:07]CheckOFDResponse [21:15:07]1017 (14) - 77093643461234 [21:15:07]1041 (16) - 0000000000963154 [21:15:07]1040 (4) - 29055 [21:15:07]1012 (4) - 13.04.2024 15:11 [21:15:07]1206 (1) - 0 [21:15:07]OFD Sender: Remove packet 29055 [21:15:07]ProducePacketName [21:15:07]name=ofd_packets/00029055 [21:15:07]NVStorageDeleteData [21:15:07]Write to MH i2c: 01 00 00 59 65 BE [21:15:07]Write i2c OK [21:15:07]MH_I2C_Read... [21:15:07]Read from MH i2c: 01 [21:15:07]MH_I2C_Read... [21:15:07]Read from MH i2c: 01 07 00 [21:15:07]MH_I2C_Read... [21:15:07]Read from MH i2c: 01 07 00 59 65 00 00 00 00 00 C8 0C 99 [21:15:07]RasterBufferAndPrint [21:15:07]line [21:15:07]line [21:15:07]line [21:15:07]line [21:15:07]line [21:15:07]written 0, free lines is 3276 [21:15:07]MH_Cut [21:15:07]Write to MH i2c: D1 01 00 60 65 01 97 [21:15:07]Write i2c OK [21:15:07]MH_I2C_Read... [21:15:07]Read from MH i2c: D1 [21:15:07]MH_I2C_Read... [21:15:07]Read from MH i2c: D1 01 00 [21:15:07]MH_I2C_Read... [21:15:07]Read from MH i2c: D1 01 00 60 65 00 96 [21:15:07]Write to MH i2c: 01 00 00 61 65 C6 [21:15:07]Write i2c OK [21:15:07]MH_I2C_Read... [21:15:07]OFD Sender: No OFD packet to send [21:15:08]*** Cut start [21:15:08]*** Partial cut [21:15:08]*** CUTSNS_PIN = 1 [21:15:08]*** CUTSNS_PIN = 0 [21:15:08]*** Brake cut motor [21:15:08]Read from MH i2c: 01 [21:15:08]MH_I2C_Read... [21:15:08]*** Stop cut motor [21:15:08]*** Cut end [21:15:08]Read from MH i2c: 01 07 00 [21:15:08]MH_I2C_Read... [21:15:08]Read from MH i2c: 01 07 00 61 65 00 00 00 00 00 FF 0F DB [21:15:08]process_action close_receipt done [21:15:08]requested_data is exist [21:15:08]produce_requested_data [21:15:08]requested_item fm.sn is exist - process it [21:15:08]wFMCommunicate request_size=4 [21:15:08]MH_SAM_APDU [21:15:08]CAPDU: 80 11 00 00 [21:15:08]Write to MH i2c: E2 08 00 62 65 80 11 00 00 00 00 00 00 41 [21:15:08]Write i2c OK [21:15:08]MH_I2C_Read... [21:15:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:08]Read from MH i2c: E2 [21:15:08]MH_I2C_Read... [21:15:08]Read from MH i2c: E2 17 00 [21:15:08]MH_I2C_Read... [21:15:08]Read from MH i2c: E2 17 00 62 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 90 [21:15:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:15:08]wFMCommunicate OK [21:15:08]requested_item fd.num is exist - process it [21:15:08]SAM_PROTO_GetFieldsCounters [21:15:08]wFMCommunicate request_size=4 [21:15:08]MH_SAM_APDU [21:15:08]CAPDU: 80 13 00 00 [21:15:08]Write to MH i2c: E2 08 00 63 65 80 13 00 00 00 00 00 00 44 [21:15:08]Write i2c OK [21:15:08]MH_I2C_Read... [21:15:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:15:09]Read from MH i2c: E2 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 62 00 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 62 00 63 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7F 71 00 00 0E 04 04 00 73 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 FA [21:15: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7F 71 00 00 0E 04 04 00 73 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 [21:15:09]wFMCommunicate OK [21:15:09]SAM_PROTO_GetFieldsCounters done [21:15:09]requested_item shift.num is exist - process it [21:15:09]requested_item shift.opened is exist - process it [21:15:09]req_shift_opened [21:15:09]FM_GetShiftState [21:15:09]SAM_PROTO_GetShiftState [21:15:09]wFMCommunicate request_size=4 [21:15:09]MH_SAM_APDU [21:15:09]CAPDU: 80 13 01 00 [21:15:09]Write to MH i2c: E2 08 00 64 65 80 13 01 00 00 00 00 00 46 [21:15:09]Write i2c OK [21:15:09]MH_I2C_Read... [21:15:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:09]Read from MH i2c: E2 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 0E 00 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 0E 00 64 65 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 5F [21:15:09]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [21:15:09]wFMCommunicate OK [21:15:09]SAM_PROTO_GetShiftState done [21:15:09]FM_GetShiftState done [21:15:09]req_shift_opened done [21:15:09]requested_item shift.open_date is exist - process it [21:15:09]req_shift_open_date [21:15:09]req_shift_open_date done [21:15:09]produce_requested_data done [21:15:09]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29055,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [21:15:09]process_action_free close_receipt [21:15:09]json_value_free [21:15:09]json_value_free done [21:15:09]process_json_proto returns [21:15:09]Send response to host [21:15:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29055,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [21:15:09]free response buf [21:15:09]execute_script done [21:15:09]execute_script returns [21:15:09]free content buf [21:15:09]Sock 9.Close socket [21:15:09]Sock 9.Thread stoped [21:15:12]OFD Sender: No OFD packet to send [21:15:17]OFD Sender: No OFD packet to send [21:15:22]OFD Sender: No OFD packet to send [21:15:27]OFD Sender: No OFD packet to send [21:15:32]OFD Sender: No OFD packet to send [21:15:37]OFD Sender: No OFD packet to send [21:15:42]OFD Sender: No OFD packet to send [21:15:47]OFD Sender: No OFD packet to send [21:15:52]OFD Sender: No OFD packet to send [21:15:57]OFD Sender: No OFD packet to send [21:16:02]OFD Sender: No OFD packet to send [21:16:07]OFD Sender: No OFD packet to send [21:16:12]OFD Sender: No OFD packet to send [21:16:17]OFD Sender: No OFD packet to send [21:16:22]OFD Sender: No OFD packet to send [21:16:27]OFD Sender: No OFD packet to send [21:16:32]OFD Sender: No OFD packet to send [21:16:37]OFD Sender: No OFD packet to send [21:16:42]OFD Sender: No OFD packet to send [21:16:47]OFD Sender: No OFD packet to send [21:16:52]OFD Sender: No OFD packet to send [21:16:53]accept exits with 7 [21:16:53]New connection [21:16:53]New thread 3066785124 created [21:16:53]Thread 3066928484 joined [21:16:53]Waiting for new connection... [21:16:53] Sock 7.Parse request [21:16:53]Sock 7.Check first char [21:16:53]Sock 7.First char is OK [21:16:53]request: POST /json_proto HTTP/1.0 [21:16:53]Method: POST [21:16:53]URL: /json_proto [21:16:53]Method is POST - this is cgi request [21:16:53]url: /json_proto [21:16:53]query_string will be loaded in cgi processing [21:16:53]execute_cgi json_proto POST (null) [21:16:53]execute_cgi path=json_proto method=POST [21:16:53]POST find Content-Length [21:16:53]Host: 172.17.33.3:8080 [21:16:53]Content-Length: 1166 [21:16:53]Content-Type: application/json [21:16:53] [21:16:53]POST finish read [21:16:53]Found Content-Length = 1166 [21:16:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347424\u000A13.04.2024 20:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 53.300 x 72.40\u000A\u0418\u0422\u041E\u0413: 3858.92\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30115168\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:53]execute_script... [21:16:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 108\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. \u000A\u0421\u0447\u0435\u0442 N : (1)347424\u000A13.04.2024 20:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 53.300 x 72.40\u000A\u0418\u0422\u041E\u0413: 3858.92\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30115168\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:53]POST & json_proto [21:16:53]process_json_proto [21:16:53]json parsed OK: [21:16:53]protocol is kg_v1.0 [21:16:53]action value=print_text [21:16:53]process_action print_text [21:16:53]cmd_print_text [21:16:53]ExternCall_PrintAddStr [21:16:53]wPrintStart [21:16:53]Write to MH i2c: 01 00 00 65 65 CA [21:16:53]Write i2c OK [21:16:53]MH_I2C_Read... [21:16:53]Read from MH i2c: 01 [21:16:53]MH_I2C_Read... [21:16:53]Read from MH i2c: 01 07 00 [21:16:53]MH_I2C_Read... [21:16:53]Read from MH i2c: 01 07 00 65 65 00 00 00 00 00 FF 0F DF [21:16:53]RasterBufferAndPrint [21:16:53]line *****ТОВАРНЫЙ ЧЕК***** [21:16:53]line АЗС 108 [21:16:53]line Партнер нефть [21:16:53]line 02508201610067 [21:16:53]line Кассир : Шадыканова Ж. [21:16:53]line Счет N : (1)347424 [21:16:53]line 13.04.2024 20:58 [21:16:53]line ПРОДАЖА [21:16:53]line ТРК (МРК, ГНК): 11 [21:16:53]line Вид ГСМ : 2710194210 [21:16:53]line ДТ-К-5 [21:16:53]line 53.300 x 72.40 [21:16:53]line ИТОГ: 3858.92 [21:16:53]line Тип оплаты: Талоны: ТК ГПНА Online [21:16:53]line 30115168 [21:16:53]line ______________________ [21:16:53]line (подпись) [21:16:53]written 0, free lines is 4095 [21:16:53]Write to MH i2c: 01 00 00 7A 65 DF [21:16:53]Write i2c OK [21:16:53]MH_I2C_Read... [21:16:53]Read from MH i2c: 01 [21:16:53]MH_I2C_Read... [21:16:53]Read from MH i2c: 01 07 00 [21:16:53]MH_I2C_Read... [21:16:53]Read from MH i2c: 01 07 00 7A 65 00 00 00 00 00 F4 0D E7 [21:16:53]RasterBufferAndPrint [21:16:53]line [21:16:53]line [21:16:53]line [21:16:53]line [21:16:53]line [21:16:53]written 0, free lines is 3574 [21:16:53]MH_Cut [21:16:53]Write to MH i2c: D1 01 00 81 65 01 B8 [21:16:53]Write i2c OK [21:16:53]MH_I2C_Read... [21:16:53]Read from MH i2c: D1 [21:16:53]MH_I2C_Read... [21:16:53]Read from MH i2c: D1 01 00 [21:16:53]MH_I2C_Read... [21:16:53]Read from MH i2c: D1 01 00 81 65 00 B7 [21:16:53]Write to MH i2c: 01 00 00 82 65 E7 [21:16:53]Write i2c OK [21:16:53]MH_I2C_Read... [21:16:53]*** Cut start [21:16:53]*** Partial cut [21:16:53]*** CUTSNS_PIN = 1 [21:16:54]*** CUTSNS_PIN = 0 [21:16:54]*** Brake cut motor [21:16:54]Read from MH i2c: 01 [21:16:54]MH_I2C_Read... [21:16:54]Read from MH i2c: 01 07 00 [21:16:54]MH_I2C_Read... [21:16:54]*** Stop cut motor [21:16:54]*** Cut end [21:16:54]Read from MH i2c: 01 07 00 82 65 00 00 00 00 00 FF 0F FC [21:16:54]process_action print_text done [21:16:54]requested_data is exist [21:16:54]produce_requested_data [21:16:54]requested_item fm.sn is exist - process it [21:16:54]wFMCommunicate request_size=4 [21:16:54]MH_SAM_APDU [21:16:54]CAPDU: 80 11 00 00 [21:16:54]Write to MH i2c: E2 08 00 83 65 80 11 00 00 00 00 00 00 62 [21:16:54]Write i2c OK [21:16:54]MH_I2C_Read... [21:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:54]Read from MH i2c: E2 [21:16:54]MH_I2C_Read... [21:16:54]Read from MH i2c: E2 17 00 [21:16:54]MH_I2C_Read... [21:16:54]Read from MH i2c: E2 17 00 83 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B1 [21:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:16:54]wFMCommunicate OK [21:16:54]requested_item fd.num is exist - process it [21:16:54]SAM_PROTO_GetFieldsCounters [21:16:54]wFMCommunicate request_size=4 [21:16:54]MH_SAM_APDU [21:16:54]CAPDU: 80 13 00 00 [21:16:54]Write to MH i2c: E2 08 00 84 65 80 13 00 00 00 00 00 00 65 [21:16:54]Write i2c OK [21:16:54]MH_I2C_Read... [21:16:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:54]Read from MH i2c: E2 [21:16:54]MH_I2C_Read... [21:16:54]Read from MH i2c: E2 62 00 [21:16:54]MH_I2C_Read... [21:16:54]Read from MH i2c: E2 62 00 84 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7F 71 00 00 0E 04 04 00 73 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 1B [21: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 7F 71 00 00 0E 04 04 00 73 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 [21:16:54]wFMCommunicate OK [21:16:54]SAM_PROTO_GetFieldsCounters done [21:16:54]requested_item shift.num is exist - process it [21:16:54]requested_item shift.opened is exist - process it [21:16:54]req_shift_opened [21:16:54]FM_GetShiftState [21:16:54]SAM_PROTO_GetShiftState [21:16:54]wFMCommunicate request_size=4 [21:16:54]MH_SAM_APDU [21:16:54]CAPDU: 80 13 01 00 [21:16:54]Write to MH i2c: E2 08 00 85 65 80 13 01 00 00 00 00 00 67 [21:16:54]Write i2c OK [21:16:54]MH_I2C_Read... [21:16:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:54]Read from MH i2c: E2 [21:16:54]MH_I2C_Read... [21:16:54]Read from MH i2c: E2 0E 00 [21:16:54]MH_I2C_Read... [21:16:54]Read from MH i2c: E2 0E 00 85 65 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 80 [21:16:54]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [21:16:54]wFMCommunicate OK [21:16:54]SAM_PROTO_GetShiftState done [21:16:54]FM_GetShiftState done [21:16:54]req_shift_opened done [21:16:54]requested_item shift.open_date is exist - process it [21:16:54]req_shift_open_date [21:16:54]req_shift_open_date done [21:16:54]produce_requested_data done [21:16:54]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29055,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [21:16:54]process_action_free print_text [21:16:54]json_value_free [21:16:54]json_value_free done [21:16:54]process_json_proto returns [21:16:54]Send response to host [21:16:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29055,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [21:16:54]free response buf [21:16:54]execute_script done [21:16:54]execute_script returns [21:16:54]free content buf [21:16:54]Sock 7.Close socket [21:16:54]Sock 7.Thread stoped [21:16:57]OFD Sender: No OFD packet to send [21:17:02]OFD Sender: No OFD packet to send [21:17:07]OFD Sender: No OFD packet to send [21:17:12]OFD Sender: No OFD packet to send [21:17:17]OFD Sender: No OFD packet to send [21:17:22]OFD Sender: No OFD packet to send [21:17:27]OFD Sender: No OFD packet to send [21:17:32]accept exits with 9 [21:17:32]New connection [21:17:32]New thread 3066928484 created [21:17:32]Thread 3066785124 joined [21:17:32]Waiting for new connection... [21:17:32] Sock 9.Parse request [21:17:32]Sock 9.Check first char [21:17:32]Sock 9.First char is OK [21:17:32]request: POST /json_proto HTTP/1.0 [21:17:32]Method: POST [21:17:32]URL: /json_proto [21:17:32]Method is POST - this is cgi request [21:17:32]url: /json_proto [21:17:32]query_string will be loaded in cgi processing [21:17:32]execute_cgi json_proto POST (null) [21:17:32]execute_cgi path=json_proto method=POST [21:17:32]POST find Content-Length [21:17:32]Host: 172.17.33.3:8080 [21:17:32]Content-Length: 681 [21:17:32]Content-Type: application/json [21:17:32] [21:17:32]POST finish read [21:17:32]Found Content-Length = 681 [21:17:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 21.280, "sum" : 700.11, "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" ] } } [21:17:32]execute_script... [21:17: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)347425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 21.280, "sum" : 700.11, "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" ] } } [21:17:32]POST & json_proto [21:17:32]process_json_proto [21:17:32]json parsed OK: [21:17:32]protocol is kg_v1.0 [21:17:32]action value=close_receipt [21:17:32]process_action close_receipt [21:17:32]cmd_close_receipt [21:17:32]MH_GetDate [21:17:32]Write to MH i2c: F0 00 00 86 65 DA [21:17:32]Write i2c OK [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: F0 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: F0 09 00 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: F0 09 00 86 65 00 72 F6 1A 66 23 5B 8F 65 3D [21:17:32]GetLastDocTimeStamp 1713042911 [21:17:32]current date 1713043058 [21:17:32]FM_GetShiftState [21:17:32]SAM_PROTO_GetShiftState [21:17:32]wFMCommunicate request_size=4 [21:17:32]MH_SAM_APDU [21:17:32]CAPDU: 80 13 01 00 [21:17:32]Write to MH i2c: E2 08 00 87 65 80 13 01 00 00 00 00 00 69 [21:17:32]Write i2c OK [21:17:32]MH_I2C_Read... [21:17:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:32]Read from MH i2c: E2 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: E2 0E 00 [21:17:32]MH_I2C_Read... [21:17:32]Read from MH i2c: E2 0E 00 87 65 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 82 [21:17:32]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [21:17:32]wFMCommunicate OK [21:17:32]SAM_PROTO_GetShiftState done [21:17:32]FM_GetShiftState done [21:17:32]opened in 1712967615 [21:17:32]opened+sec_in_day 1713054015 [21:17:32]quantity*price = 70011 [21:17:32]sum+1 = 70012 [21:17:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 263 13.04.2024 21:17 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29056 ФПД: 59464395649922 1/tax-web-control/client/api/v1/ticket?date=20240413T211738&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29056&fm=59464395649922&tin=02508201610067®Number=0000138879044617&sum=70000 [21:17:33]StoreToDocumentArchive [21:17:33]shift 115 fd 29056 [21:17:33]save to /storage/0115/doc_00029056 [21:17:33]save last doc name /storage/0115/doc_00029056 to /storage/kkm_last_doc_name [21:17:33]save OK [21:17:33]Clear old archive folders... [21:17:33]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:17:33]tlvbuf is 0121E340 [21:17:33]SAM_PROTO_ClearQueue [21:17:33]wFMCommunicate request_size=4 [21:17:33]MH_SAM_APDU [21:17:33]CAPDU: 80 09 00 00 [21:17:33]Write to MH i2c: E2 08 00 94 65 80 09 00 00 00 00 00 00 6B [21:17:33]Write i2c OK [21:17:33]MH_I2C_Read... [21:17:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:17:33]Read from MH i2c: E2 [21:17:33]MH_I2C_Read... [21:17:33]Read from MH i2c: E2 03 00 [21:17:33]MH_I2C_Read... [21:17:33]Read from MH i2c: E2 03 00 94 65 00 90 00 6D [21:17:33]RAPDU: 90 00 [21:17:33]wFMCommunicate OK [21:17:33]SAM_PROTO_ClearQueue done [21:17:33]KKMCreateOFDPacket [21:17:33]OFDProtocolAddRootSTLVToBuf [21:17:33]FM_MakeSignedData [21:17:33]FM_MakeSignedData [21:17:33]SAM_PROTO_SignData [21:17:33]wFMCommunicate request_size=4 [21:17:33]MH_SAM_APDU [21:17:33]CAPDU: 80 0D 01 02 [21:17:33]Write to MH i2c: E2 08 00 95 65 80 0D 01 02 00 00 00 00 73 [21:17:33]Write i2c OK [21:17:33]MH_I2C_Read... [21:17:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:17:33]Read from MH i2c: E2 [21:17:33]MH_I2C_Read... [21:17:33]Read from MH i2c: E2 03 00 [21:17:33]MH_I2C_Read... [21:17:33]Read from MH i2c: E2 03 00 95 65 00 90 00 6E [21:17:33]RAPDU: 90 00 [21:17:33]wFMCommunicate OK [21:17:33]wFMCommunicate request_size=255 [21:17:33]MH_SAM_APDU [21:17:33]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 53 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 7B 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 0B 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 07 01 00 00 F4 03 04 00 72 F6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 80 71 00 00 35 04 06 00 36 15 [21:17:33]Write to MH i2c: E2 02 01 96 65 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 53 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 7B 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 0B 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 07 01 00 00 F4 03 04 00 72 F6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 80 71 00 00 35 04 06 00 36 15 00 00 69 [21:17:33]Write i2c OK [21:17:33]MH_I2C_Read... [21:17:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:33]Read from MH i2c: E2 [21:17:33]MH_I2C_Read... [21:17:33]Read from MH i2c: E2 03 00 [21:17:33]MH_I2C_Read... [21:17:33]Read from MH i2c: E2 03 00 96 65 00 90 00 6F [21:17:33]RAPDU: 90 00 [21:17:33]wFMCommunicate OK [21:17:33]wFMCommunicate request_size=9 [21:17:33]MH_SAM_APDU [21:17:33]CAPDU: 80 0D 02 02 04 22 2D F3 82 [21:17:33]Write to MH i2c: E2 0C 00 97 65 80 0D 02 02 04 00 22 2D F3 82 00 00 42 [21:17:33]Write i2c OK [21:17:33]MH_I2C_Read... [21:17:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:33]Read from MH i2c: E2 [21:17:33]MH_I2C_Read... [21:17:33]Read from MH i2c: E2 03 00 [21:17:33]MH_I2C_Read... [21:17:33]Read from MH i2c: E2 03 00 97 65 00 90 00 70 [21:17:33]RAPDU: 90 00 [21:17:33]wFMCommunicate OK [21:17:33]wFMCommunicate request_size=4 [21:17:33]MH_SAM_APDU [21:17:33]CAPDU: 80 0D 03 02 [21:17:33]Write to MH i2c: E2 08 00 98 65 80 0D 03 02 00 00 00 00 78 [21:17:33]Write i2c OK [21:17:33]MH_I2C_Read... [21:17:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:17:33]Read from MH i2c: E2 [21:17:33]MH_I2C_Read... [21:17:33]Read from MH i2c: E2 0B 00 [21:17:33]MH_I2C_Read... [21:17:33]Read from MH i2c: E2 0B 00 98 65 00 C2 A5 04 70 68 6C C9 03 90 00 F4 [21:17:33]RAPDU: C2 A5 04 70 68 6C C9 03 90 00 [21:17:33]wFMCommunicate OK [21:17:33]SAM_PROTO_SignData done [21:17:33]FM_MakeSignedData done [21:17:33]CreateOFDProtocolMessage [21:17:33]wFMCommunicate request_size=4 [21:17:33]MH_SAM_APDU [21:17:33]CAPDU: 80 11 00 00 [21:17:33]Write to MH i2c: E2 08 00 99 65 80 11 00 00 00 00 00 00 78 [21:17:33]Write i2c OK [21:17:33]MH_I2C_Read... [21:17:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:33]Read from MH i2c: E2 [21:17:33]MH_I2C_Read... [21:17:33]Read from MH i2c: E2 17 00 [21:17:33]MH_I2C_Read... [21:17:33]Read from MH i2c: E2 17 00 99 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C7 [21:17:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:17:33]wFMCommunicate OK [21:17:33]CreateOFDProtocolMessage done [21:17:33]OFDSenderStorePacket 29056 [21:17:33]StoreOFDPacket docnum=29056 [21:17:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 0E FF 06 01 93 EB 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 53 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 7B 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 0B 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 07 01 00 00 F4 03 04 00 72 F6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 80 71 00 00 35 04 06 00 36 15 22 2D F3 82 C2 A5 04 70 68 6C C9 03 [21:17:33]CheckFolder [21:17:33]dirname=/storage/ofd_packets [21:17:33]CheckFolder done [21:17:33]ProducePacketName [21:17:33]name=ofd_packets/00029056 [21:17:33]NVStorageSaveData ofd_packets/00029056 [21:17:33]File name is /storage/ofd_packets/00029056 [21:17:33]Write 300 bytes [21:17:33]NVStorageSaveData done [21:17:33]OFDSenderStorePacket done [21:17:33]KKMCreateOFDPacket done [21:17:33]NVStorageSaveData kkm_last_timestamp [21:17:33]File name is /storage/kkm_last_timestamp [21:17:33]Write 4 bytes [21:17:33]NVStorageSaveData done [21:17:33]ExternCall_PrintAddStr [21:17:33]wPrintStart [21:17:33]Write to MH i2c: 01 00 00 9A 65 FF [21:17:33]Write i2c OK [21:17:33]MH_I2C_Read... [21:17:33]Read from MH i2c: 01 [21:17:33]MH_I2C_Read... [21:17:33]Read from MH i2c: 01 07 00 [21:17:33]MH_I2C_Read... [21:17:33]Read from MH i2c: 01 07 00 9A 65 00 00 00 00 00 FF 0F 14 [21:17:33]RasterBufferAndPrint [21:17:33]line Счет N : (1)347425 [21:17:33]line ИНН: 02508201610067 [21:17:33]line Контрольно-Кассовый Чек [21:17:33]line ПРОДАЖА [21:17:33]line ТРК (МРК, ГНК) : 71 [21:17:33]line Товар: 2711129700 [21:17:33]line ГАЗ-К-5 [21:17:33]line 21.280 * 32.90 [21:17:33]line = 700.11 [21:17:33]line НДС 12% НСП 1% [21:17:33]line > о реализуемом товаре [21:17:33]line ОКРУГЛЕНИЕ: -0.11 [21:17:33]line ИТОГО: 700.00 [21:17:33]line Внесено: 700.00 [21:17:33]line СДАЧА: 0.00 [21:17:33]line НСП 1% : 6.20 [21:17:33]line НДС 12% : 74.35 [21:17:33]line Наличными: 700.00 [21:17:33]line Безнал.: 0.00 [21:17:33]line Место: АЗС № 108 "Партнер Нефть" [21:17:33]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:17:33]line СНО: Общий режим [21:17:33]line Чек 263 13.04.2024 21:17 [21:17:33]line Смена: 115 ФФД: 1.0 [21:17:33]line ЗНМ: 0300000027 [21:17:33]line РНМ: 0000138879044617 [21:17:33]line Версия ККМ: 001 [21:17:33]line ФМ: 0000000000963154 [21:17:33]line ФД: 29056 [21:17:33]line ФПД: 59464395649922 [21:17:33]line 1/tax-web-control/client/api/v1/ticket?date=20240413T211738&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29056&fm=59464395649922&tin=02508201610067®Number=0000138879044617&sum=70000 [21:17:34]OFD Sender: Processing packet 29056 [packets to send 8, broken 7] [21:17:34]ProducePacketName [21:17:34]name=ofd_packets/00029056 [21:17:34]OFD Sender: To server: pG, [21:17:34]CommunicateWithHost lk.salyk.kg:30040 [21:17:34]ConnectInit lk.salyk.kg [21:17:34]written 0, free lines is 4095 [21:17:34]Connected sock=10 [21:17: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 31 35 34 0E 01 00 00 0E FF 06 01 93 EB 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 20 53 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 7B 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 0B 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 07 01 00 00 F4 03 04 00 72 F6 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 80 71 00 00 35 04 06 00 36 15 22 2D F3 82 C2 A5 04 70 68 6C C9 03 [21:17:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4B 27 47 00 24 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 31 35 34 10 04 04 00 80 71 00 00 F4 03 04 00 18 A1 1A 66 B6 04 01 00 00 83 10 DE 11 73 2F 8D E8 [21:17:34]CommunicateWithHost err = 0 [21:17:34]CheckOFDResponse [21:17:34]1017 (14) - 77093643461234 [21:17:34]1041 (16) - 0000000000963154 [21:17:34]1040 (4) - 29056 [21:17:34]1012 (4) - 13.04.2024 15:13 [21:17:34]1206 (1) - 0 [21:17:34]OFD Sender: Remove packet 29056 [21:17:34]ProducePacketName [21:17:34]name=ofd_packets/00029056 [21:17:34]NVStorageDeleteData [21:17:34]Write to MH i2c: 01 00 00 C4 65 29 [21:17:34]Write i2c OK [21:17:34]MH_I2C_Read... [21:17:34]Read from MH i2c: 01 [21:17:34]MH_I2C_Read... [21:17:34]Read from MH i2c: 01 07 00 [21:17:34]MH_I2C_Read... [21:17:34]Read from MH i2c: 01 07 00 C4 65 00 00 00 00 00 C0 0C FC [21:17:34]RasterBufferAndPrint [21:17:34]line [21:17:34]line [21:17:34]line [21:17:34]line [21:17:34]line [21:17:34]written 0, free lines is 3270 [21:17:34]MH_Cut [21:17:34]Write to MH i2c: D1 01 00 CB 65 01 02 [21:17:34]Write i2c OK [21:17:34]MH_I2C_Read... [21:17:34]Read from MH i2c: D1 [21:17:34]MH_I2C_Read... [21:17:34]Read from MH i2c: D1 01 00 [21:17:34]MH_I2C_Read... [21:17:34]Read from MH i2c: D1 01 00 CB 65 00 01 [21:17:34]Write to MH i2c: 01 00 00 CC 65 31 [21:17:34]Write i2c OK [21:17:34]MH_I2C_Read... [21:17:35]OFD Sender: No OFD packet to send [21:17:35]*** Cut start [21:17:35]*** Partial cut [21:17:35]*** CUTSNS_PIN = 1 [21:17:35]*** CUTSNS_PIN = 0 [21:17:35]*** Brake cut motor [21:17:36]Read from MH i2c: 01 [21:17:36]MH_I2C_Read... [21:17:36]*** Stop cut motor [21:17:36]*** Cut end [21:17:36]Read from MH i2c: 01 07 00 [21:17:36]MH_I2C_Read... [21:17:36]Read from MH i2c: 01 07 00 CC 65 00 00 00 00 00 FF 0F 46 [21:17:36]process_action close_receipt done [21:17:36]requested_data is exist [21:17:36]produce_requested_data [21:17:36]requested_item fm.sn is exist - process it [21:17:36]wFMCommunicate request_size=4 [21:17:36]MH_SAM_APDU [21:17:36]CAPDU: 80 11 00 00 [21:17:36]Write to MH i2c: E2 08 00 CD 65 80 11 00 00 00 00 00 00 AC [21:17:36]Write i2c OK [21:17:36]MH_I2C_Read... [21:17:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:36]Read from MH i2c: E2 [21:17:36]MH_I2C_Read... [21:17:36]Read from MH i2c: E2 17 00 [21:17:36]MH_I2C_Read... [21:17:36]Read from MH i2c: E2 17 00 CD 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FB [21:17:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:17:36]wFMCommunicate OK [21:17:36]requested_item fd.num is exist - process it [21:17:36]SAM_PROTO_GetFieldsCounters [21:17:36]wFMCommunicate request_size=4 [21:17:36]MH_SAM_APDU [21:17:36]CAPDU: 80 13 00 00 [21:17:36]Write to MH i2c: E2 08 00 CE 65 80 13 00 00 00 00 00 00 AF [21:17:36]Write i2c OK [21:17:36]MH_I2C_Read... [21:17:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:17:36]Read from MH i2c: E2 [21:17:36]MH_I2C_Read... [21:17:36]Read from MH i2c: E2 62 00 [21:17:36]MH_I2C_Read... [21:17:36]Read from MH i2c: E2 62 00 CE 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 80 71 00 00 0E 04 04 00 73 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 69 [21:17: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 80 71 00 00 0E 04 04 00 73 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 [21:17:36]wFMCommunicate OK [21:17:36]SAM_PROTO_GetFieldsCounters done [21:17:36]requested_item shift.num is exist - process it [21:17:36]requested_item shift.opened is exist - process it [21:17:36]req_shift_opened [21:17:36]FM_GetShiftState [21:17:36]SAM_PROTO_GetShiftState [21:17:36]wFMCommunicate request_size=4 [21:17:36]MH_SAM_APDU [21:17:36]CAPDU: 80 13 01 00 [21:17:36]Write to MH i2c: E2 08 00 CF 65 80 13 01 00 00 00 00 00 B1 [21:17:36]Write i2c OK [21:17:36]MH_I2C_Read... [21:17:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:36]Read from MH i2c: E2 [21:17:36]MH_I2C_Read... [21:17:36]Read from MH i2c: E2 0E 00 [21:17:36]MH_I2C_Read... [21:17:36]Read from MH i2c: E2 0E 00 CF 65 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 CA [21:17:36]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [21:17:36]wFMCommunicate OK [21:17:36]SAM_PROTO_GetShiftState done [21:17:36]FM_GetShiftState done [21:17:36]req_shift_opened done [21:17:36]requested_item shift.open_date is exist - process it [21:17:36]req_shift_open_date [21:17:36]req_shift_open_date done [21:17:36]produce_requested_data done [21:17:36]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29056,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [21:17:36]process_action_free close_receipt [21:17:36]json_value_free [21:17:36]json_value_free done [21:17:36]process_json_proto returns [21:17:36]Send response to host [21:17:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29056,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [21:17:36]free response buf [21:17:36]execute_script done [21:17:36]execute_script returns [21:17:36]free content buf [21:17:36]Sock 9.Close socket [21:17:36]Sock 9.Thread stoped [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:35]OFD Sender: No OFD packet to send [21:24:40]OFD Sender: No OFD packet to send [21:24:45]OFD Sender: No OFD packet to send [21:24:50]OFD Sender: No OFD packet to send [21:24:55]OFD Sender: No OFD packet to send [21:25:00]OFD Sender: No OFD packet to send [21:25:05]OFD Sender: No OFD packet to send [21:25:10]OFD Sender: No OFD packet to send [21:25:15]OFD Sender: No OFD packet to send [21:25:20]OFD Sender: No OFD packet to send [21:25:25]OFD Sender: No OFD packet to send [21:25:30]OFD Sender: No OFD packet to send [21:25:35]OFD Sender: No OFD packet to send [21:25:40]OFD Sender: No OFD packet to send [21:25:45]OFD Sender: No OFD packet to send [21:25:50]OFD Sender: No OFD packet to send [21:25:55]OFD Sender: No OFD packet to send [21:26:00]OFD Sender: No OFD packet to send [21:26:05]OFD Sender: No OFD packet to send [21:26:10]OFD Sender: No OFD packet to send [21:26:15]OFD Sender: No OFD packet to send [21:26:20]OFD Sender: No OFD packet to send [21:26:25]OFD Sender: No OFD packet to send [21:26:30]OFD Sender: No OFD packet to send [21:26:35]OFD Sender: No OFD packet to send [21:26:40]OFD Sender: No OFD packet to send [21:26:45]OFD Sender: No OFD packet to send [21:26:50]OFD Sender: No OFD packet to send [21:26:55]OFD Sender: No OFD packet to send [21:26:59]accept exits with 7 [21:26:59]New connection [21:26:59]New thread 3066785124 created [21:26:59]Thread 3066928484 joined [21:26:59]Waiting for new connection... [21:26:59] Sock 7.Parse request [21:26:59]Sock 7.Check first char [21:26:59]Sock 7.First char is OK [21:26:59]request: POST /json_proto HTTP/1.0 [21:26:59]Method: POST [21:26:59]URL: /json_proto [21:26:59]Method is POST - this is cgi request [21:26:59]url: /json_proto [21:26:59]query_string will be loaded in cgi processing [21:26:59]execute_cgi json_proto POST (null) [21:26:59]execute_cgi path=json_proto method=POST [21:26:59]POST find Content-Length [21:26:59]Host: 172.17.33.3:8080 [21:26:59]Content-Length: 806 [21:26:59]Content-Type: application/json [21:26:59] [21:26:59]POST finish read [21:26:59]Found Content-Length = 806 [21:26:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347426", "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" : 64.30, "quantity" : 11.670, "sum" : 750.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 750.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:59]execute_script... [21:26:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347426", "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" : 64.30, "quantity" : 11.670, "sum" : 750.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 750.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:59]POST & json_proto [21:26:59]process_json_proto [21:26:59]json parsed OK: [21:26:59]protocol is kg_v1.0 [21:26:59]action value=close_receipt [21:26:59]process_action close_receipt [21:26:59]cmd_close_receipt [21:26:59]MH_GetDate [21:26:59]Write to MH i2c: F0 00 00 D0 65 24 [21:26:59]Write i2c OK [21:26:59]MH_I2C_Read... [21:26:59]Read from MH i2c: F0 [21:26:59]MH_I2C_Read... [21:26:59]Read from MH i2c: F0 09 00 [21:26:59]MH_I2C_Read... [21:26:59]Read from MH i2c: F0 09 00 D0 65 00 A9 F8 1A 66 23 5B 8F 65 C0 [21:26:59]GetLastDocTimeStamp 1713043058 [21:26:59]current date 1713043625 [21:26:59]FM_GetShiftState [21:26:59]SAM_PROTO_GetShiftState [21:26:59]wFMCommunicate request_size=4 [21:26:59]MH_SAM_APDU [21:26:59]CAPDU: 80 13 01 00 [21:26:59]Write to MH i2c: E2 08 00 D1 65 80 13 01 00 00 00 00 00 B3 [21:26:59]Write i2c OK [21:26:59]MH_I2C_Read... [21:26:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:59]Read from MH i2c: E2 [21:26:59]MH_I2C_Read... [21:26:59]Read from MH i2c: E2 0E 00 [21:26:59]MH_I2C_Read... [21:26:59]Read from MH i2c: E2 0E 00 D1 65 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 CC [21:26:59]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [21:26:59]wFMCommunicate OK [21:26:59]SAM_PROTO_GetShiftState done [21:26:59]FM_GetShiftState done [21:26:59]opened in 1712967615 [21:26:59]opened+sec_in_day 1713054015 [21:26:59]quantity*price = 75038 [21:26:59]sum+1 = 75039 [21:26:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 750.38 НСП 1% : 6.64 НДС 12% : 79.69 Наличными: 0.00 Безнал.: 750.38 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 264 13.04.2024 21:27 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29057 ФПД: 118494259894714 1/tax-web-control/client/api/v1/ticket?date=20240413T212705&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29057&fm=118494259894714&tin=02508201610067®Number=0000138879044617&sum=75038 [21:27:00]StoreToDocumentArchive [21:27:00]shift 115 fd 29057 [21:27:00]save to /storage/0115/doc_00029057 [21:27:00]save last doc name /storage/0115/doc_00029057 to /storage/kkm_last_doc_name [21:27:00]save OK [21:27:00]Clear old archive folders... [21:27:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:27:00]tlvbuf is 0121DF80 [21:27:00]SAM_PROTO_ClearQueue [21:27:00]wFMCommunicate request_size=4 [21:27:00]MH_SAM_APDU [21:27:00]CAPDU: 80 09 00 00 [21:27:00]Write to MH i2c: E2 08 00 DE 65 80 09 00 00 00 00 00 00 B5 [21:27:00]Write i2c OK [21:27:00]MH_I2C_Read... [21:27:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:27:00]Read from MH i2c: E2 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 03 00 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 03 00 DE 65 00 90 00 B7 [21:27:00]RAPDU: 90 00 [21:27:00]wFMCommunicate OK [21:27:00]SAM_PROTO_ClearQueue done [21:27:00]KKMCreateOFDPacket [21:27:00]OFDProtocolAddRootSTLVToBuf [21:27:00]FM_MakeSignedData [21:27:00]FM_MakeSignedData [21:27:00]SAM_PROTO_SignData [21:27:00]wFMCommunicate request_size=4 [21:27:00]MH_SAM_APDU [21:27:00]CAPDU: 80 0D 01 02 [21:27:00]Write to MH i2c: E2 08 00 DF 65 80 0D 01 02 00 00 00 00 BD [21:27:00]Write i2c OK [21:27:00]MH_I2C_Read... [21:27:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:27:00]Read from MH i2c: E2 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 03 00 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 03 00 DF 65 00 90 00 B8 [21:27:00]RAPDU: 90 00 [21:27:00]wFMCommunicate OK [21:27:00]wFMCommunicate request_size=255 [21:27:00]MH_SAM_APDU [21:27: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 96 2D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 1E 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 A9 F8 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 81 71 00 00 35 04 06 00 6B [21:27:00]Write to MH i2c: E2 02 01 E0 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 2D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 1E 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 A9 F8 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 81 71 00 00 35 04 06 00 6B 00 00 7E [21:27:00]Write i2c OK [21:27:00]MH_I2C_Read... [21:27:00]OFD Sender: No OFD packet to send [21:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:00]Read from MH i2c: E2 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 03 00 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 03 00 E0 65 00 90 00 B9 [21:27:00]RAPDU: 90 00 [21:27:00]wFMCommunicate OK [21:27:00]wFMCommunicate request_size=10 [21:27:00]MH_SAM_APDU [21:27:00]CAPDU: 80 0D 02 02 05 C5 18 44 D9 BA [21:27:00]Write to MH i2c: E2 0D 00 E1 65 80 0D 02 02 05 00 C5 18 44 D9 BA 00 00 7E [21:27:00]Write i2c OK [21:27:00]MH_I2C_Read... [21:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:00]Read from MH i2c: E2 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 03 00 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 03 00 E1 65 00 90 00 BA [21:27:00]RAPDU: 90 00 [21:27:00]wFMCommunicate OK [21:27:00]wFMCommunicate request_size=4 [21:27:00]MH_SAM_APDU [21:27:00]CAPDU: 80 0D 03 02 [21:27:00]Write to MH i2c: E2 08 00 E2 65 80 0D 03 02 00 00 00 00 C2 [21:27:00]Write i2c OK [21:27:00]MH_I2C_Read... [21:27:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:27:00]Read from MH i2c: E2 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 0B 00 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 0B 00 E2 65 00 FC 19 B8 F2 EB BC 0A E3 90 00 16 [21:27:00]RAPDU: FC 19 B8 F2 EB BC 0A E3 90 00 [21:27:00]wFMCommunicate OK [21:27:00]SAM_PROTO_SignData done [21:27:00]FM_MakeSignedData done [21:27:00]CreateOFDProtocolMessage [21:27:00]wFMCommunicate request_size=4 [21:27:00]MH_SAM_APDU [21:27:00]CAPDU: 80 11 00 00 [21:27:00]Write to MH i2c: E2 08 00 E3 65 80 11 00 00 00 00 00 00 C2 [21:27:00]Write i2c OK [21:27:00]MH_I2C_Read... [21:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:00]Read from MH i2c: E2 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 17 00 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 17 00 E3 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 11 [21:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:27:00]wFMCommunicate OK [21:27:00]CreateOFDProtocolMessage done [21:27:00]OFDSenderStorePacket 29057 [21:27:00]StoreOFDPacket docnum=29057 [21:27:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 54 1A 07 01 50 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 96 2D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 1E 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 A9 F8 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 81 71 00 00 35 04 06 00 6B C5 18 44 D9 BA FC 19 B8 F2 EB BC 0A E3 [21:27:00]CheckFolder [21:27:00]dirname=/storage/ofd_packets [21:27:00]CheckFolder done [21:27:00]ProducePacketName [21:27:00]name=ofd_packets/00029057 [21:27:00]NVStorageSaveData ofd_packets/00029057 [21:27:00]File name is /storage/ofd_packets/00029057 [21:27:00]Write 301 bytes [21:27:00]NVStorageSaveData done [21:27:00]OFDSenderStorePacket done [21:27:00]KKMCreateOFDPacket done [21:27:00]NVStorageSaveData kkm_last_timestamp [21:27:00]File name is /storage/kkm_last_timestamp [21:27:00]Write 4 bytes [21:27:00]NVStorageSaveData done [21:27:00]ExternCall_PrintAddStr [21:27:00]wPrintStart [21:27:00]Write to MH i2c: 01 00 00 E4 65 49 [21:27:00]Write i2c OK [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: 01 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: 01 07 00 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: 01 07 00 E4 65 00 00 00 00 00 FF 0F 5E [21:27:00]RasterBufferAndPrint [21:27:00]line Счет N : (1)347426 [21:27:00]line ИНН: 02508201610067 [21:27:00]line Контрольно-Кассовый Чек [21:27:00]line ПРОДАЖА [21:27:00]line ТРК (МРК, ГНК) : 32 [21:27:00]line Товар: 2710124130 [21:27:00]line Аи-92-К-5 [21:27:00]line 11.670 * 64.30 [21:27:00]line = 750.38 [21:27:00]line НДС 12% НСП 1% [21:27:00]line > о реализуемом товаре [21:27:00]line ИТОГО: 750.38 [21:27:00]line НСП 1% : 6.64 [21:27:00]line НДС 12% : 79.69 [21:27:00]line Наличными: 0.00 [21:27:00]line Безнал.: 750.38 [21:27:00]line Место: АЗС № 108 "Партнер Нефть" [21:27:00]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:27:00]line СНО: Общий режим [21:27:00]line Чек 264 13.04.2024 21:27 [21:27:00]line Смена: 115 ФФД: 1.0 [21:27:00]line ЗНМ: 0300000027 [21:27:00]line РНМ: 0000138879044617 [21:27:00]line Версия ККМ: 001 [21:27:00]line Платежная система: О! деньги [21:27:00]line ФМ: 0000000000963154 [21:27:00]line ФД: 29057 [21:27:00]line ФПД: 118494259894714 [21:27:00]line 1/tax-web-control/client/api/v1/ticket?date=20240413T212705&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29057&fm=118494259894714&tin=02508201610067®Number=0000138879044617&sum=75038 [21:27:01]OFD Sender: Processing packet 29057 [packets to send 8, broken 7] [21:27:01]ProducePacketName [21:27:01]name=ofd_packets/00029057 [21:27:01]OFD Sender: To server: pG, [21:27:01]CommunicateWithHost lk.salyk.kg:30040 [21:27:01]ConnectInit lk.salyk.kg [21:27:01]written 0, free lines is 4095 [21:27:01]Connected sock=10 [21:27: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 31 35 34 0F 01 00 00 54 1A 07 01 50 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 96 2D 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 1E 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1E 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1E 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 A9 F8 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 81 71 00 00 35 04 06 00 6B C5 18 44 D9 BA FC 19 B8 F2 EB BC 0A E3 [21:27:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9D 54 47 00 E8 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 31 35 34 10 04 04 00 81 71 00 00 F4 03 04 00 4F A3 1A 66 B6 04 01 00 00 C1 EA E2 A5 0D 48 E9 76 [21:27:01]CommunicateWithHost err = 0 [21:27:01]CheckOFDResponse [21:27:01]1017 (14) - 77093643461234 [21:27:01]1041 (16) - 0000000000963154 [21:27:01]1040 (4) - 29057 [21:27:01]1012 (4) - 13.04.2024 15:22 [21:27:01]1206 (1) - 0 [21:27:01]OFD Sender: Remove packet 29057 [21:27:01]ProducePacketName [21:27:01]name=ofd_packets/00029057 [21:27:01]NVStorageDeleteData [21:27:01]Write to MH i2c: 01 00 00 0D 66 73 [21:27:01]Write i2c OK [21:27:01]MH_I2C_Read... [21:27:01]Read from MH i2c: 01 [21:27:01]MH_I2C_Read... [21:27:01]Read from MH i2c: 01 07 00 [21:27:01]MH_I2C_Read... [21:27:01]Read from MH i2c: 01 07 00 0D 66 00 00 00 00 00 DE 0C 64 [21:27:01]RasterBufferAndPrint [21:27:01]line [21:27:01]line [21:27:01]line [21:27:01]line [21:27:01]line [21:27:01]written 0, free lines is 3300 [21:27:01]MH_Cut [21:27:01]Write to MH i2c: D1 01 00 14 66 01 4C [21:27:01]Write i2c OK [21:27:01]MH_I2C_Read... [21:27:01]Read from MH i2c: D1 [21:27:01]MH_I2C_Read... [21:27:01]Read from MH i2c: D1 01 00 [21:27:01]MH_I2C_Read... [21:27:01]Read from MH i2c: D1 01 00 14 66 00 4B [21:27:01]Write to MH i2c: 01 00 00 15 66 7B [21:27:01]Write i2c OK [21:27:01]MH_I2C_Read... [21:27:01]OFD Sender: No OFD packet to send [21:27:02]*** Cut start [21:27:02]*** Partial cut [21:27:02]*** CUTSNS_PIN = 1 [21:27:02]*** CUTSNS_PIN = 0 [21:27:02]*** Brake cut motor [21:27:03]Read from MH i2c: 01 [21:27:03]MH_I2C_Read... [21:27:03]*** Stop cut motor [21:27:03]*** Cut end [21:27:03]Read from MH i2c: 01 07 00 [21:27:03]MH_I2C_Read... [21:27:03]Read from MH i2c: 01 07 00 15 66 00 00 00 00 00 FF 0F 90 [21:27:03]process_action close_receipt done [21:27:03]requested_data is exist [21:27:03]produce_requested_data [21:27:03]requested_item fm.sn is exist - process it [21:27:03]wFMCommunicate request_size=4 [21:27:03]MH_SAM_APDU [21:27:03]CAPDU: 80 11 00 00 [21:27:03]Write to MH i2c: E2 08 00 16 66 80 11 00 00 00 00 00 00 F6 [21:27:03]Write i2c OK [21:27:03]MH_I2C_Read... [21:27:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:03]Read from MH i2c: E2 [21:27:03]MH_I2C_Read... [21:27:03]Read from MH i2c: E2 17 00 [21:27:03]MH_I2C_Read... [21:27:03]Read from MH i2c: E2 17 00 16 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 45 [21:27:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:27:03]wFMCommunicate OK [21:27:03]requested_item fd.num is exist - process it [21:27:03]SAM_PROTO_GetFieldsCounters [21:27:03]wFMCommunicate request_size=4 [21:27:03]MH_SAM_APDU [21:27:03]CAPDU: 80 13 00 00 [21:27:03]Write to MH i2c: E2 08 00 17 66 80 13 00 00 00 00 00 00 F9 [21:27:03]Write i2c OK [21:27:03]MH_I2C_Read... [21:27:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:27:03]Read from MH i2c: E2 [21:27:03]MH_I2C_Read... [21:27:03]Read from MH i2c: E2 62 00 [21:27:03]MH_I2C_Read... [21:27:03]Read from MH i2c: E2 62 00 17 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 81 71 00 00 0E 04 04 00 73 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 B7 [21:27: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 81 71 00 00 0E 04 04 00 73 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 [21:27:03]wFMCommunicate OK [21:27:03]SAM_PROTO_GetFieldsCounters done [21:27:03]requested_item shift.num is exist - process it [21:27:03]requested_item shift.opened is exist - process it [21:27:03]req_shift_opened [21:27:03]FM_GetShiftState [21:27:03]SAM_PROTO_GetShiftState [21:27:03]wFMCommunicate request_size=4 [21:27:03]MH_SAM_APDU [21:27:03]CAPDU: 80 13 01 00 [21:27:03]Write to MH i2c: E2 08 00 18 66 80 13 01 00 00 00 00 00 FB [21:27:03]Write i2c OK [21:27:03]MH_I2C_Read... [21:27:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:03]Read from MH i2c: E2 [21:27:03]MH_I2C_Read... [21:27:03]Read from MH i2c: E2 0E 00 [21:27:03]MH_I2C_Read... [21:27:03]Read from MH i2c: E2 0E 00 18 66 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 14 [21:27:03]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [21:27:03]wFMCommunicate OK [21:27:03]SAM_PROTO_GetShiftState done [21:27:03]FM_GetShiftState done [21:27:03]req_shift_opened done [21:27:03]requested_item shift.open_date is exist - process it [21:27:03]req_shift_open_date [21:27:03]req_shift_open_date done [21:27:03]produce_requested_data done [21:27:03]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29057,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [21:27:03]process_action_free close_receipt [21:27:03]json_value_free [21:27:03]json_value_free done [21:27:03]process_json_proto returns [21:27:03]Send response to host [21:27:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29057,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [21:27:03]free response buf [21:27:03]execute_script done [21:27:03]execute_script returns [21:27:03]free content buf [21:27:03]Sock 7.Close socket [21:27:03]Sock 7.Thread stoped [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:37]OFD Sender: No OFD packet to send [21:27:42]OFD Sender: No OFD packet to send [21:27:47]OFD Sender: No OFD packet to send [21:27:52]OFD Sender: No OFD packet to send [21:27:57]OFD Sender: No OFD packet to send [21:28:02]OFD Sender: No OFD packet to send [21:28:07]OFD Sender: No OFD packet to send [21:28:12]OFD Sender: No OFD packet to send [21:28:17]OFD Sender: No OFD packet to send [21:28:22]OFD Sender: No OFD packet to send [21:28:27]OFD Sender: No OFD packet to send [21:28:32]OFD Sender: No OFD packet to send [21:28:37]OFD Sender: No OFD packet to send [21:28:42]OFD Sender: No OFD packet to send [21:28:47]OFD Sender: No OFD packet to send [21:28:52]OFD Sender: No OFD packet to send [21:28:57]OFD Sender: No OFD packet to send [21:29:02]OFD Sender: No OFD packet to send [21:29:07]OFD Sender: No OFD packet to send [21:29:12]OFD Sender: No OFD packet to send [21:29:17]OFD Sender: No OFD packet to send [21:29:22]OFD Sender: No OFD packet to send [21:29:27]OFD Sender: No OFD packet to send [21:29:32]OFD Sender: No OFD packet to send [21:29:37]OFD Sender: No OFD packet to send [21:29:42]OFD Sender: No OFD packet to send [21:29:47]OFD Sender: No OFD packet to send [21:29:52]OFD Sender: No OFD packet to send [21:29:57]OFD Sender: No OFD packet to send [21:30:02]OFD Sender: No OFD packet to send [21:30:07]OFD Sender: No OFD packet to send [21:30:12]OFD Sender: No OFD packet to send [21:30:15]accept exits with 9 [21:30:15]New connection [21:30:15]New thread 3066928484 created [21:30:15]Thread 3066785124 joined [21:30:15]Waiting for new connection... [21:30:15] Sock 9.Parse request [21:30:15]Sock 9.Check first char [21:30:15]Sock 9.First char is OK [21:30:15]request: POST /json_proto HTTP/1.0 [21:30:15]Method: POST [21:30:15]URL: /json_proto [21:30:15]Method is POST - this is cgi request [21:30:15]url: /json_proto [21:30:15]query_string will be loaded in cgi processing [21:30:15]execute_cgi json_proto POST (null) [21:30:15]execute_cgi path=json_proto method=POST [21:30:15]POST find Content-Length [21:30:15]Host: 172.17.33.3:8080 [21:30:15]Content-Length: 801 [21:30:15]Content-Type: application/json [21:30:15] [21:30:15]POST finish read [21:30:15]Found Content-Length = 801 [21:30:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 30.630, "sum" : 2000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:15]execute_script... [21:30:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 30.630, "sum" : 2000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:15]POST & json_proto [21:30:15]process_json_proto [21:30:15]json parsed OK: [21:30:15]protocol is kg_v1.0 [21:30:15]action value=close_receipt [21:30:15]process_action close_receipt [21:30:15]cmd_close_receipt [21:30:15]MH_GetDate [21:30:15]Write to MH i2c: F0 00 00 19 66 6E [21:30:15]Write i2c OK [21:30:15]MH_I2C_Read... [21:30:15]Read from MH i2c: F0 [21:30:15]MH_I2C_Read... [21:30:15]Read from MH i2c: F0 09 00 [21:30:15]MH_I2C_Read... [21:30:15]Read from MH i2c: F0 09 00 19 66 00 6E F9 1A 66 23 5B 8F 65 D0 [21:30:15]GetLastDocTimeStamp 1713043625 [21:30:15]current date 1713043822 [21:30:15]FM_GetShiftState [21:30:15]SAM_PROTO_GetShiftState [21:30:15]wFMCommunicate request_size=4 [21:30:15]MH_SAM_APDU [21:30:15]CAPDU: 80 13 01 00 [21:30:15]Write to MH i2c: E2 08 00 1A 66 80 13 01 00 00 00 00 00 FD [21:30:15]Write i2c OK [21:30:15]MH_I2C_Read... [21:30:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:15]Read from MH i2c: E2 [21:30:15]MH_I2C_Read... [21:30:15]Read from MH i2c: E2 0E 00 [21:30:15]MH_I2C_Read... [21:30:15]Read from MH i2c: E2 0E 00 1A 66 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 16 [21:30:15]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [21:30:15]wFMCommunicate OK [21:30:15]SAM_PROTO_GetShiftState done [21:30:15]FM_GetShiftState done [21:30:15]opened in 1712967615 [21:30:15]opened+sec_in_day 1713054015 [21:30:15]quantity*price = 200013 [21:30:15]sum+1 = 200015 [21:30:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.14 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.14 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 265 13.04.2024 21:30 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29058 ФПД: 79511563114409 1/tax-web-control/client/api/v1/ticket?date=20240413T213022&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29058&fm=79511563114409&tin=02508201610067®Number=0000138879044617&sum=200014 [21:30:16]StoreToDocumentArchive [21:30:16]shift 115 fd 29058 [21:30:16]save to /storage/0115/doc_00029058 [21:30:16]save last doc name /storage/0115/doc_00029058 to /storage/kkm_last_doc_name [21:30:16]save OK [21:30:16]Clear old archive folders... [21:30:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:30:16]tlvbuf is 011D4AD0 [21:30:16]SAM_PROTO_ClearQueue [21:30:16]wFMCommunicate request_size=4 [21:30:16]MH_SAM_APDU [21:30:16]CAPDU: 80 09 00 00 [21:30:16]Write to MH i2c: E2 08 00 27 66 80 09 00 00 00 00 00 00 FF [21:30:16]Write i2c OK [21:30:16]MH_I2C_Read... [21:30:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:30:16]Read from MH i2c: E2 [21:30:16]MH_I2C_Read... [21:30:16]Read from MH i2c: E2 03 00 [21:30:16]MH_I2C_Read... [21:30:16]Read from MH i2c: E2 03 00 27 66 00 90 00 01 [21:30:16]RAPDU: 90 00 [21:30:16]wFMCommunicate OK [21:30:16]SAM_PROTO_ClearQueue done [21:30:16]KKMCreateOFDPacket [21:30:16]OFDProtocolAddRootSTLVToBuf [21:30:16]FM_MakeSignedData [21:30:16]FM_MakeSignedData [21:30:16]SAM_PROTO_SignData [21:30:16]wFMCommunicate request_size=4 [21:30:16]MH_SAM_APDU [21:30:16]CAPDU: 80 0D 01 02 [21:30:16]Write to MH i2c: E2 08 00 28 66 80 0D 01 02 00 00 00 00 07 [21:30:16]Write i2c OK [21:30:16]MH_I2C_Read... [21:30:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:30:16]Read from MH i2c: E2 [21:30:16]MH_I2C_Read... [21:30:16]Read from MH i2c: E2 03 00 [21:30:16]MH_I2C_Read... [21:30:16]Read from MH i2c: E2 03 00 28 66 00 90 00 02 [21:30:16]RAPDU: 90 00 [21:30:16]wFMCommunicate OK [21:30:16]wFMCommunicate request_size=255 [21:30:16]MH_SAM_APDU [21:30:16]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 6E F9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 82 71 00 00 35 04 06 00 [21:30:16]Write to MH i2c: E2 02 01 29 66 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 6E F9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 82 71 00 00 35 04 06 00 00 00 3B [21:30:16]Write i2c OK [21:30:16]MH_I2C_Read... [21:30:17]OFD Sender: No OFD packet to send [21:30:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:17]Read from MH i2c: E2 [21:30:17]MH_I2C_Read... [21:30:17]Read from MH i2c: E2 03 00 [21:30:17]MH_I2C_Read... [21:30:17]Read from MH i2c: E2 03 00 29 66 00 90 00 03 [21:30:17]RAPDU: 90 00 [21:30:17]wFMCommunicate OK [21:30:17]wFMCommunicate request_size=11 [21:30:17]MH_SAM_APDU [21:30:17]CAPDU: 80 0D 02 02 06 48 50 BA 79 97 A9 [21:30:17]Write to MH i2c: E2 0E 00 2A 66 80 0D 02 02 06 00 48 50 BA 79 97 A9 00 00 21 [21:30:17]Write i2c OK [21:30:17]MH_I2C_Read... [21:30:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:17]Read from MH i2c: E2 [21:30:17]MH_I2C_Read... [21:30:17]Read from MH i2c: E2 03 00 [21:30:17]MH_I2C_Read... [21:30:17]Read from MH i2c: E2 03 00 2A 66 00 90 00 04 [21:30:17]RAPDU: 90 00 [21:30:17]wFMCommunicate OK [21:30:17]wFMCommunicate request_size=4 [21:30:17]MH_SAM_APDU [21:30:17]CAPDU: 80 0D 03 02 [21:30:17]Write to MH i2c: E2 08 00 2B 66 80 0D 03 02 00 00 00 00 0C [21:30:17]Write i2c OK [21:30:17]MH_I2C_Read... [21:30:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:30:17]Read from MH i2c: E2 [21:30:17]MH_I2C_Read... [21:30:17]Read from MH i2c: E2 0B 00 [21:30:17]MH_I2C_Read... [21:30:17]Read from MH i2c: E2 0B 00 2B 66 00 38 84 F0 54 10 D7 44 D9 90 00 11 [21:30:17]RAPDU: 38 84 F0 54 10 D7 44 D9 90 00 [21:30:17]wFMCommunicate OK [21:30:17]SAM_PROTO_SignData done [21:30:17]FM_MakeSignedData done [21:30:17]CreateOFDProtocolMessage [21:30:17]wFMCommunicate request_size=4 [21:30:17]MH_SAM_APDU [21:30:17]CAPDU: 80 11 00 00 [21:30:17]Write to MH i2c: E2 08 00 2C 66 80 11 00 00 00 00 00 00 0C [21:30:17]Write i2c OK [21:30:17]MH_I2C_Read... [21:30:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:17]Read from MH i2c: E2 [21:30:17]MH_I2C_Read... [21:30:17]Read from MH i2c: E2 17 00 [21:30:17]MH_I2C_Read... [21:30:17]Read from MH i2c: E2 17 00 2C 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 5B [21:30:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:30:17]wFMCommunicate OK [21:30:17]CreateOFDProtocolMessage done [21:30:17]OFDSenderStorePacket 29058 [21:30:17]StoreOFDPacket docnum=29058 [21:30:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 73 F0 08 01 DD E7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 6E F9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 82 71 00 00 35 04 06 00 48 50 BA 79 97 A9 38 84 F0 54 10 D7 44 D9 [21:30:17]CheckFolder [21:30:17]dirname=/storage/ofd_packets [21:30:17]CheckFolder done [21:30:17]ProducePacketName [21:30:17]name=ofd_packets/00029058 [21:30:17]NVStorageSaveData ofd_packets/00029058 [21:30:17]File name is /storage/ofd_packets/00029058 [21:30:17]Write 302 bytes [21:30:17]NVStorageSaveData done [21:30:17]OFDSenderStorePacket done [21:30:17]KKMCreateOFDPacket done [21:30:17]NVStorageSaveData kkm_last_timestamp [21:30:17]File name is /storage/kkm_last_timestamp [21:30:17]Write 4 bytes [21:30:17]NVStorageSaveData done [21:30:17]ExternCall_PrintAddStr [21:30:17]wPrintStart [21:30:17]Write to MH i2c: 01 00 00 2D 66 93 [21:30:17]Write i2c OK [21:30:17]MH_I2C_Read... [21:30:17]Read from MH i2c: 01 [21:30:17]MH_I2C_Read... [21:30:17]Read from MH i2c: 01 07 00 [21:30:17]MH_I2C_Read... [21:30:17]Read from MH i2c: 01 07 00 2D 66 00 00 00 00 00 FF 0F A8 [21:30:17]RasterBufferAndPrint [21:30:17]line Счет N : (1)347427 [21:30:17]line ИНН: 02508201610067 [21:30:17]line Контрольно-Кассовый Чек [21:30:17]line ПРОДАЖА [21:30:17]line ТРК (МРК, ГНК) : 31 [21:30:17]line Товар: 2710124130 [21:30:17]line SUPER-92-К-5 [21:30:17]line 30.630 * 65.30 [21:30:17]line = 2000.14 [21:30:17]line НДС 12% НСП 1% [21:30:17]line > о реализуемом товаре [21:30:17]line ИТОГО: 2000.14 [21:30:17]line НСП 1% : 17.70 [21:30:17]line НДС 12% : 212.40 [21:30:17]line Наличными: 0.00 [21:30:17]line Безнал.: 2000.14 [21:30:17]line Место: АЗС № 108 "Партнер Нефть" [21:30:17]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:30:17]line СНО: Общий режим [21:30:17]line Чек 265 13.04.2024 21:30 [21:30:17]line Смена: 115 ФФД: 1.0 [21:30:17]line ЗНМ: 0300000027 [21:30:17]line РНМ: 0000138879044617 [21:30:17]line Версия ККМ: 001 [21:30:17]line Платежная система: О! деньги [21:30:17]line ФМ: 0000000000963154 [21:30:17]line ФД: 29058 [21:30:17]line ФПД: 79511563114409 [21:30:17]line 1/tax-web-control/client/api/v1/ticket?date=20240413T213022&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29058&fm=79511563114409&tin=02508201610067®Number=0000138879044617&sum=200014 [21:30:17]OFD Sender: Processing packet 29058 [packets to send 8, broken 7] [21:30:17]ProducePacketName [21:30:17]name=ofd_packets/00029058 [21:30:17]OFD Sender: To server: pG, [21:30:17]CommunicateWithHost lk.salyk.kg:30040 [21:30:17]ConnectInit lk.salyk.kg [21:30:17]written 0, free lines is 4095 [21:30:17]Connected sock=10 [21:30:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 73 F0 08 01 DD E7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 6E F9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 82 71 00 00 35 04 06 00 48 50 BA 79 97 A9 38 84 F0 54 10 D7 44 D9 [21:30:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1C CE 47 00 55 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 82 71 00 00 F4 03 04 00 14 A4 1A 66 B6 04 01 00 00 BC 8A 52 C1 85 1F D5 63 [21:30:17]CommunicateWithHost err = 0 [21:30:17]CheckOFDResponse [21:30:17]1017 (14) - 77093643461234 [21:30:17]1041 (16) - 0000000000963154 [21:30:17]1040 (4) - 29058 [21:30:17]1012 (4) - 13.04.2024 15:26 [21:30:17]1206 (1) - 0 [21:30:17]OFD Sender: Remove packet 29058 [21:30:17]ProducePacketName [21:30:17]name=ofd_packets/00029058 [21:30:17]NVStorageDeleteData [21:30:18]Write to MH i2c: 01 00 00 56 66 BC [21:30:18]Write i2c OK [21:30:18]MH_I2C_Read... [21:30:18]Read from MH i2c: 01 [21:30:18]MH_I2C_Read... [21:30:18]Read from MH i2c: 01 07 00 [21:30:18]MH_I2C_Read... [21:30:18]Read from MH i2c: 01 07 00 56 66 00 00 00 00 00 E2 0C B1 [21:30:18]RasterBufferAndPrint [21:30:18]line [21:30:18]line [21:30:18]line [21:30:18]line [21:30:18]line [21:30:18]written 0, free lines is 3307 [21:30:18]MH_Cut [21:30:18]Write to MH i2c: D1 01 00 5D 66 01 95 [21:30:18]Write i2c OK [21:30:18]MH_I2C_Read... [21:30:18]Read from MH i2c: D1 [21:30:18]MH_I2C_Read... [21:30:18]Read from MH i2c: D1 01 00 [21:30:18]MH_I2C_Read... [21:30:18]Read from MH i2c: D1 01 00 5D 66 00 94 [21:30:18]Write to MH i2c: 01 00 00 5E 66 C4 [21:30:18]Write i2c OK [21:30:18]MH_I2C_Read... [21:30:18]OFD Sender: No OFD packet to send [21:30:18]*** Cut start [21:30:18]*** Partial cut [21:30:18]*** CUTSNS_PIN = 1 [21:30:19]*** CUTSNS_PIN = 0 [21:30:19]*** Brake cut motor [21:30:19]Read from MH i2c: 01 [21:30:19]MH_I2C_Read... [21:30:19]*** Stop cut motor [21:30:19]*** Cut end [21:30:19]Read from MH i2c: 01 07 00 [21:30:19]MH_I2C_Read... [21:30:19]Read from MH i2c: 01 07 00 5E 66 00 00 00 00 00 FF 0F D9 [21:30:19]process_action close_receipt done [21:30:19]requested_data is exist [21:30:19]produce_requested_data [21:30:19]requested_item fm.sn is exist - process it [21:30:19]wFMCommunicate request_size=4 [21:30:19]MH_SAM_APDU [21:30:19]CAPDU: 80 11 00 00 [21:30:19]Write to MH i2c: E2 08 00 5F 66 80 11 00 00 00 00 00 00 3F [21:30:19]Write i2c OK [21:30:19]MH_I2C_Read... [21:30:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:19]Read from MH i2c: E2 [21:30:19]MH_I2C_Read... [21:30:19]Read from MH i2c: E2 17 00 [21:30:19]MH_I2C_Read... [21:30:19]Read from MH i2c: E2 17 00 5F 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8E [21:30:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:30:19]wFMCommunicate OK [21:30:19]requested_item fd.num is exist - process it [21:30:19]SAM_PROTO_GetFieldsCounters [21:30:19]wFMCommunicate request_size=4 [21:30:19]MH_SAM_APDU [21:30:19]CAPDU: 80 13 00 00 [21:30:19]Write to MH i2c: E2 08 00 60 66 80 13 00 00 00 00 00 00 42 [21:30:19]Write i2c OK [21:30:19]MH_I2C_Read... [21:30:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:30:19]Read from MH i2c: E2 [21:30:19]MH_I2C_Read... [21:30:19]Read from MH i2c: E2 62 00 [21:30:19]MH_I2C_Read... [21:30:19]Read from MH i2c: E2 62 00 60 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 82 71 00 00 0E 04 04 00 73 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 04 [21:30: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 82 71 00 00 0E 04 04 00 73 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 [21:30:19]wFMCommunicate OK [21:30:19]SAM_PROTO_GetFieldsCounters done [21:30:19]requested_item shift.num is exist - process it [21:30:19]requested_item shift.opened is exist - process it [21:30:19]req_shift_opened [21:30:19]FM_GetShiftState [21:30:19]SAM_PROTO_GetShiftState [21:30:19]wFMCommunicate request_size=4 [21:30:19]MH_SAM_APDU [21:30:19]CAPDU: 80 13 01 00 [21:30:19]Write to MH i2c: E2 08 00 61 66 80 13 01 00 00 00 00 00 44 [21:30:19]Write i2c OK [21:30:19]MH_I2C_Read... [21:30:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:19]Read from MH i2c: E2 [21:30:19]MH_I2C_Read... [21:30:19]Read from MH i2c: E2 0E 00 [21:30:19]MH_I2C_Read... [21:30:19]Read from MH i2c: E2 0E 00 61 66 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 5D [21:30:19]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [21:30:19]wFMCommunicate OK [21:30:19]SAM_PROTO_GetShiftState done [21:30:19]FM_GetShiftState done [21:30:19]req_shift_opened done [21:30:19]requested_item shift.open_date is exist - process it [21:30:19]req_shift_open_date [21:30:19]req_shift_open_date done [21:30:19]produce_requested_data done [21:30:19]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29058,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [21:30:19]process_action_free close_receipt [21:30:19]json_value_free [21:30:19]json_value_free done [21:30:19]process_json_proto returns [21:30:19]Send response to host [21:30:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29058,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [21:30:19]free response buf [21:30:19]execute_script done [21:30:19]execute_script returns [21:30:19]free content buf [21:30:19]Sock 9.Close socket [21:30:19]Sock 9.Thread stoped [21:30:23]OFD Sender: No OFD packet to send [21:30:28]OFD Sender: No OFD packet to send [21:30:33]OFD Sender: No OFD packet to send [21:30:38]OFD Sender: No OFD packet to send [21:30:43]OFD Sender: No OFD packet to send [21:30:48]OFD Sender: No OFD packet to send [21:30:53]OFD Sender: No OFD packet to send [21:30:58]OFD Sender: No OFD packet to send [21:31:03]OFD Sender: No OFD packet to send [21:31:08]OFD Sender: No OFD packet to send [21:31:13]OFD Sender: No OFD packet to send [21:31:18]OFD Sender: No OFD packet to send [21:31:23]OFD Sender: No OFD packet to send [21:31:28]OFD Sender: No OFD packet to send [21:31:30]accept exits with 7 [21:31:30]New connection [21:31:30]New thread 3066785124 created [21:31:30]Thread 3066928484 joined [21:31:30]Waiting for new connection... [21:31:30] Sock 7.Parse request [21:31:30]Sock 7.Check first char [21:31:30]Sock 7.First char is OK [21:31:30]request: POST /json_proto HTTP/1.0 [21:31:30]Method: POST [21:31:30]URL: /json_proto [21:31:30]Method is POST - this is cgi request [21:31:30]url: /json_proto [21:31:30]query_string will be loaded in cgi processing [21:31:30]execute_cgi json_proto POST (null) [21:31:30]execute_cgi path=json_proto method=POST [21:31:30]POST find Content-Length [21:31:30]Host: 172.17.33.3:8080 [21:31:30]Content-Length: 677 [21:31:30]Content-Type: application/json [21:31:30] [21:31:30]POST finish read [21:31:30]Found Content-Length = 677 [21:31:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347428", "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" : 64.30, "quantity" : 6.230, "sum" : 400.59, "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:31:30]execute_script... [21:31:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347428", "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" : 64.30, "quantity" : 6.230, "sum" : 400.59, "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:31:30]POST & json_proto [21:31:30]process_json_proto [21:31:30]json parsed OK: [21:31:30]protocol is kg_v1.0 [21:31:30]action value=close_receipt [21:31:30]process_action close_receipt [21:31:30]cmd_close_receipt [21:31:30]MH_GetDate [21:31:30]Write to MH i2c: F0 00 00 62 66 B7 [21:31:30]Write i2c OK [21:31:30]MH_I2C_Read... [21:31:30]Read from MH i2c: F0 [21:31:30]MH_I2C_Read... [21:31:30]Read from MH i2c: F0 09 00 [21:31:30]MH_I2C_Read... [21:31:30]Read from MH i2c: F0 09 00 62 66 00 B9 F9 1A 66 23 5B 8F 65 64 [21:31:30]GetLastDocTimeStamp 1713043822 [21:31:30]current date 1713043897 [21:31:30]FM_GetShiftState [21:31:30]SAM_PROTO_GetShiftState [21:31:30]wFMCommunicate request_size=4 [21:31:30]MH_SAM_APDU [21:31:30]CAPDU: 80 13 01 00 [21:31:30]Write to MH i2c: E2 08 00 63 66 80 13 01 00 00 00 00 00 46 [21:31:30]Write i2c OK [21:31:30]MH_I2C_Read... [21:31:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:30]Read from MH i2c: E2 [21:31:30]MH_I2C_Read... [21:31:30]Read from MH i2c: E2 0E 00 [21:31:30]MH_I2C_Read... [21:31:30]Read from MH i2c: E2 0E 00 63 66 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 5F [21:31:30]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [21:31:30]wFMCommunicate OK [21:31:30]SAM_PROTO_GetShiftState done [21:31:30]FM_GetShiftState done [21:31:30]opened in 1712967615 [21:31:30]opened+sec_in_day 1713054015 [21:31:30]quantity*price = 40058 [21:31:30]sum+1 = 40060 [21:31:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 266 13.04.2024 21:31 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29059 ФПД: 218003188471241 1/tax-web-control/client/api/v1/ticket?date=20240413T213137&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29059&fm=218003188471241&tin=02508201610067®Number=0000138879044617&sum=40000 [21:31:31]StoreToDocumentArchive [21:31:31]shift 115 fd 29059 [21:31:31]save to /storage/0115/doc_00029059 [21:31:31]save last doc name /storage/0115/doc_00029059 to /storage/kkm_last_doc_name [21:31:31]save OK [21:31:31]Clear old archive folders... [21:31:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:31:31]tlvbuf is 011EE7B0 [21:31:31]SAM_PROTO_ClearQueue [21:31:31]wFMCommunicate request_size=4 [21:31:31]MH_SAM_APDU [21:31:31]CAPDU: 80 09 00 00 [21:31:31]Write to MH i2c: E2 08 00 70 66 80 09 00 00 00 00 00 00 48 [21:31:31]Write i2c OK [21:31:31]MH_I2C_Read... [21:31:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:31]Read from MH i2c: E2 [21:31:31]MH_I2C_Read... [21:31:31]Read from MH i2c: E2 03 00 [21:31:31]MH_I2C_Read... [21:31:31]Read from MH i2c: E2 03 00 70 66 00 90 00 4A [21:31:31]RAPDU: 90 00 [21:31:31]wFMCommunicate OK [21:31:31]SAM_PROTO_ClearQueue done [21:31:31]KKMCreateOFDPacket [21:31:31]OFDProtocolAddRootSTLVToBuf [21:31:31]FM_MakeSignedData [21:31:31]FM_MakeSignedData [21:31:31]SAM_PROTO_SignData [21:31:31]wFMCommunicate request_size=4 [21:31:31]MH_SAM_APDU [21:31:31]CAPDU: 80 0D 01 02 [21:31:31]Write to MH i2c: E2 08 00 71 66 80 0D 01 02 00 00 00 00 50 [21:31:31]Write i2c OK [21:31:31]MH_I2C_Read... [21:31:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:31]Read from MH i2c: E2 [21:31:31]MH_I2C_Read... [21:31:31]Read from MH i2c: E2 03 00 [21:31:31]MH_I2C_Read... [21:31:31]Read from MH i2c: E2 03 00 71 66 00 90 00 4B [21:31:31]RAPDU: 90 00 [21:31:31]wFMCommunicate OK [21:31:31]wFMCommunicate request_size=255 [21:31:31]MH_SAM_APDU [21:31: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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 0A 01 00 00 F4 03 04 00 B9 F9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 83 71 00 00 35 04 06 00 C6 [21:31:31]Write to MH i2c: E2 02 01 72 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 0A 01 00 00 F4 03 04 00 B9 F9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 83 71 00 00 35 04 06 00 C6 00 00 66 [21:31:31]Write i2c OK [21:31:31]MH_I2C_Read... [21:31:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:32]Read from MH i2c: E2 [21:31:32]MH_I2C_Read... [21:31:32]Read from MH i2c: E2 03 00 [21:31:32]MH_I2C_Read... [21:31:32]Read from MH i2c: E2 03 00 72 66 00 90 00 4C [21:31:32]RAPDU: 90 00 [21:31:32]wFMCommunicate OK [21:31:32]wFMCommunicate request_size=10 [21:31:32]MH_SAM_APDU [21:31:32]CAPDU: 80 0D 02 02 05 45 D2 9B D5 C9 [21:31:32]Write to MH i2c: E2 0D 00 73 66 80 0D 02 02 05 00 45 D2 9B D5 C9 00 00 AD [21:31:32]Write i2c OK [21:31:32]MH_I2C_Read... [21:31:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:32]Read from MH i2c: E2 [21:31:32]MH_I2C_Read... [21:31:32]Read from MH i2c: E2 03 00 [21:31:32]MH_I2C_Read... [21:31:32]Read from MH i2c: E2 03 00 73 66 00 90 00 4D [21:31:32]RAPDU: 90 00 [21:31:32]wFMCommunicate OK [21:31:32]wFMCommunicate request_size=4 [21:31:32]MH_SAM_APDU [21:31:32]CAPDU: 80 0D 03 02 [21:31:32]Write to MH i2c: E2 08 00 74 66 80 0D 03 02 00 00 00 00 55 [21:31:32]Write i2c OK [21:31:32]MH_I2C_Read... [21:31:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:32]Read from MH i2c: E2 [21:31:32]MH_I2C_Read... [21:31:32]Read from MH i2c: E2 0B 00 [21:31:32]MH_I2C_Read... [21:31:32]Read from MH i2c: E2 0B 00 74 66 00 C7 55 5E 2D 9F 8F 5D C1 90 00 49 [21:31:32]RAPDU: C7 55 5E 2D 9F 8F 5D C1 90 00 [21:31:32]wFMCommunicate OK [21:31:32]SAM_PROTO_SignData done [21:31:32]FM_MakeSignedData done [21:31:32]CreateOFDProtocolMessage [21:31:32]wFMCommunicate request_size=4 [21:31:32]MH_SAM_APDU [21:31:32]CAPDU: 80 11 00 00 [21:31:32]Write to MH i2c: E2 08 00 75 66 80 11 00 00 00 00 00 00 55 [21:31:32]Write i2c OK [21:31:32]MH_I2C_Read... [21:31:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:32]Read from MH i2c: E2 [21:31:32]MH_I2C_Read... [21:31:32]Read from MH i2c: E2 17 00 [21:31:32]MH_I2C_Read... [21:31:32]Read from MH i2c: E2 17 00 75 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A4 [21:31:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:31:32]wFMCommunicate OK [21:31:32]CreateOFDProtocolMessage done [21:31:32]OFDSenderStorePacket 29059 [21:31:32]StoreOFDPacket docnum=29059 [21:31:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 AB E3 07 01 77 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 0A 01 00 00 F4 03 04 00 B9 F9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 83 71 00 00 35 04 06 00 C6 45 D2 9B D5 C9 C7 55 5E 2D 9F 8F 5D C1 [21:31:32]CheckFolder [21:31:32]dirname=/storage/ofd_packets [21:31:32]CheckFolder done [21:31:32]ProducePacketName [21:31:32]name=ofd_packets/00029059 [21:31:32]NVStorageSaveData ofd_packets/00029059 [21:31:32]File name is /storage/ofd_packets/00029059 [21:31:32]Write 301 bytes [21:31:32]NVStorageSaveData done [21:31:32]OFDSenderStorePacket done [21:31:32]KKMCreateOFDPacket done [21:31:32]NVStorageSaveData kkm_last_timestamp [21:31:32]File name is /storage/kkm_last_timestamp [21:31:32]Write 4 bytes [21:31:32]NVStorageSaveData done [21:31:32]ExternCall_PrintAddStr [21:31:32]wPrintStart [21:31:32]Write to MH i2c: 01 00 00 76 66 DC [21:31:32]Write i2c OK [21:31:32]MH_I2C_Read... [21:31:32]Read from MH i2c: 01 [21:31:32]MH_I2C_Read... [21:31:32]Read from MH i2c: 01 07 00 [21:31:32]MH_I2C_Read... [21:31:32]Read from MH i2c: 01 07 00 76 66 00 00 00 00 00 FF 0F F1 [21:31:32]RasterBufferAndPrint [21:31:32]line Счет N : (1)347428 [21:31:32]line ИНН: 02508201610067 [21:31:32]line Контрольно-Кассовый Чек [21:31:32]line ПРОДАЖА [21:31:32]line ТРК (МРК, ГНК) : 42 [21:31:32]line Товар: 2710124130 [21:31:32]line Аи-92-К-5 [21:31:32]line 6.230 * 64.30 [21:31:32]line = 400.59 [21:31:32]line НДС 12% НСП 1% [21:31:32]line > о реализуемом товаре [21:31:32]line ОКРУГЛЕНИЕ: -0.59 [21:31:32]line ИТОГО: 400.00 [21:31:32]line Внесено: 400.00 [21:31:32]line СДАЧА: 0.00 [21:31:32]line НСП 1% : 3.54 [21:31:32]line НДС 12% : 42.54 [21:31:32]line Наличными: 400.00 [21:31:32]line Безнал.: 0.00 [21:31:32]line Место: АЗС № 108 "Партнер Нефть" [21:31:32]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:31:32]line СНО: Общий режим [21:31:32]line Чек 266 13.04.2024 21:31 [21:31:32]line Смена: 115 ФФД: 1.0 [21:31:32]line ЗНМ: 0300000027 [21:31:32]line РНМ: 0000138879044617 [21:31:32]line Версия ККМ: 001 [21:31:32]line ФМ: 0000000000963154 [21:31:32]line ФД: 29059 [21:31:32]line ФПД: 218003188471241 [21:31:32]line 1/tax-web-control/client/api/v1/ticket?date=20240413T213137&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29059&fm=218003188471241&tin=02508201610067®Number=0000138879044617&sum=40000 [21:31:32]OFD Sender: Processing packet 29059 [packets to send 8, broken 7] [21:31:32]ProducePacketName [21:31:32]name=ofd_packets/00029059 [21:31:32]OFD Sender: To server: pG, [21:31:32]CommunicateWithHost lk.salyk.kg:30040 [21:31:32]ConnectInit lk.salyk.kg [21:31:32]written 0, free lines is 4095 [21:31:32]Connected sock=10 [21:31: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 31 35 34 0F 01 00 00 AB E3 07 01 77 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 0A 01 00 00 F4 03 04 00 B9 F9 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 83 71 00 00 35 04 06 00 C6 45 D2 9B D5 C9 C7 55 5E 2D 9F 8F 5D C1 [21:31:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 11 8D 47 00 E0 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 83 71 00 00 F4 03 04 00 5F A4 1A 66 B6 04 01 00 00 A3 01 80 1A 6D F9 48 BB [21:31:32]CommunicateWithHost err = 0 [21:31:32]CheckOFDResponse [21:31:32]1017 (14) - 77093643461234 [21:31:32]1041 (16) - 0000000000963154 [21:31:32]1040 (4) - 29059 [21:31:32]1012 (4) - 13.04.2024 15:27 [21:31:32]1206 (1) - 0 [21:31:32]OFD Sender: Remove packet 29059 [21:31:32]ProducePacketName [21:31:32]name=ofd_packets/00029059 [21:31:32]NVStorageDeleteData [21:31:32]Write to MH i2c: 01 00 00 A0 66 06 [21:31:32]Write i2c OK [21:31:32]MH_I2C_Read... [21:31:32]Read from MH i2c: 01 [21:31:32]MH_I2C_Read... [21:31:32]Read from MH i2c: 01 07 00 [21:31:32]MH_I2C_Read... [21:31:32]Read from MH i2c: 01 07 00 A0 66 00 00 00 00 00 C2 0C DB [21:31:32]RasterBufferAndPrint [21:31:32]line [21:31:32]line [21:31:32]line [21:31:32]line [21:31:32]line [21:31:32]written 0, free lines is 3272 [21:31:32]MH_Cut [21:31:32]Write to MH i2c: D1 01 00 A7 66 01 DF [21:31:32]Write i2c OK [21:31:32]MH_I2C_Read... [21:31:32]Read from MH i2c: D1 [21:31:32]MH_I2C_Read... [21:31:32]Read from MH i2c: D1 01 00 [21:31:32]MH_I2C_Read... [21:31:32]Read from MH i2c: D1 01 00 A7 66 00 DE [21:31:32]Write to MH i2c: 01 00 00 A8 66 0E [21:31:32]Write i2c OK [21:31:32]MH_I2C_Read... [21:31:33]OFD Sender: No OFD packet to send [21:31:33]*** Cut start [21:31:33]*** Partial cut [21:31:33]*** CUTSNS_PIN = 1 [21:31:33]*** CUTSNS_PIN = 0 [21:31:34]*** Brake cut motor [21:31:34]Read from MH i2c: 01 [21:31:34]MH_I2C_Read... [21:31:34]*** Stop cut motor [21:31:34]*** Cut end [21:31:34]Read from MH i2c: 01 07 00 [21:31:34]MH_I2C_Read... [21:31:34]Read from MH i2c: 01 07 00 A8 66 00 00 00 00 00 FF 0F 23 [21:31:34]process_action close_receipt done [21:31:34]requested_data is exist [21:31:34]produce_requested_data [21:31:34]requested_item fm.sn is exist - process it [21:31:34]wFMCommunicate request_size=4 [21:31:34]MH_SAM_APDU [21:31:34]CAPDU: 80 11 00 00 [21:31:34]Write to MH i2c: E2 08 00 A9 66 80 11 00 00 00 00 00 00 89 [21:31:34]Write i2c OK [21:31:34]MH_I2C_Read... [21:31:34]Read from MH i2c: E2 [21:31:34]MH_I2C_Read... [21:31:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:34]Read from MH i2c: E2 17 00 [21:31:34]MH_I2C_Read... [21:31:34]Read from MH i2c: E2 17 00 A9 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D8 [21:31:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:31:34]wFMCommunicate OK [21:31:34]requested_item fd.num is exist - process it [21:31:34]SAM_PROTO_GetFieldsCounters [21:31:34]wFMCommunicate request_size=4 [21:31:34]MH_SAM_APDU [21:31:34]CAPDU: 80 13 00 00 [21:31:34]Write to MH i2c: E2 08 00 AA 66 80 13 00 00 00 00 00 00 8C [21:31:34]Write i2c OK [21:31:34]MH_I2C_Read... [21:31:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:34]Read from MH i2c: E2 [21:31:34]MH_I2C_Read... [21:31:34]Read from MH i2c: E2 62 00 [21:31:34]MH_I2C_Read... [21:31:34]Read from MH i2c: E2 62 00 AA 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 83 71 00 00 0E 04 04 00 73 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 52 [21:31: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 83 71 00 00 0E 04 04 00 73 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 [21:31:34]wFMCommunicate OK [21:31:34]SAM_PROTO_GetFieldsCounters done [21:31:34]requested_item shift.num is exist - process it [21:31:34]requested_item shift.opened is exist - process it [21:31:34]req_shift_opened [21:31:34]FM_GetShiftState [21:31:34]SAM_PROTO_GetShiftState [21:31:34]wFMCommunicate request_size=4 [21:31:34]MH_SAM_APDU [21:31:34]CAPDU: 80 13 01 00 [21:31:34]Write to MH i2c: E2 08 00 AB 66 80 13 01 00 00 00 00 00 8E [21:31:34]Write i2c OK [21:31:34]MH_I2C_Read... [21:31:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:34]Read from MH i2c: E2 [21:31:34]MH_I2C_Read... [21:31:34]Read from MH i2c: E2 0E 00 [21:31:34]MH_I2C_Read... [21:31:34]Read from MH i2c: E2 0E 00 AB 66 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A7 [21:31:34]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [21:31:34]wFMCommunicate OK [21:31:34]SAM_PROTO_GetShiftState done [21:31:34]FM_GetShiftState done [21:31:34]req_shift_opened done [21:31:34]requested_item shift.open_date is exist - process it [21:31:34]req_shift_open_date [21:31:34]req_shift_open_date done [21:31:34]produce_requested_data done [21:31:34]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29059,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [21:31:34]process_action_free close_receipt [21:31:34]json_value_free [21:31:34]json_value_free done [21:31:34]process_json_proto returns [21:31:34]Send response to host [21:31:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29059,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [21:31:34]free response buf [21:31:34]execute_script done [21:31:34]execute_script returns [21:31:34]free content buf [21:31:34]Sock 7.Close socket [21:31:34]Sock 7.Thread stoped [21:31:38]OFD Sender: No OFD packet to send [21:31:43]OFD Sender: No OFD packet to send [21:31:48]OFD Sender: No OFD packet to send [21:31:53]OFD Sender: No OFD packet to send [21:31:58]OFD Sender: No OFD packet to send [21:32:03]OFD Sender: No OFD packet to send [21:32:08]OFD Sender: No OFD packet to send [21:32:13]OFD Sender: No OFD packet to send [21:32:18]OFD Sender: No OFD packet to send [21:32:23]OFD Sender: No OFD packet to send [21:32:28]OFD Sender: No OFD packet to send [21:32:33]OFD Sender: No OFD packet to send [21:32:38]OFD Sender: No OFD packet to send [21:32:43]OFD Sender: No OFD packet to send [21:32:48]OFD Sender: No OFD packet to send [21:32:53]OFD Sender: No OFD packet to send [21:32:58]OFD Sender: No OFD packet to send [21:33:03]OFD Sender: No OFD packet to send [21:33:08]OFD Sender: No OFD packet to send [21:33:13]OFD Sender: No OFD packet to send [21:33:18]OFD Sender: No OFD packet to send [21:33:23]OFD Sender: No OFD packet to send [21:33:28]OFD Sender: No OFD packet to send [21:33:33]OFD Sender: No OFD packet to send [21:33:38]OFD Sender: No OFD packet to send [21:33:43]OFD Sender: No OFD packet to send [21:33:48]OFD Sender: No OFD packet to send [21:33:53]OFD Sender: No OFD packet to send [21:33:58]OFD Sender: No OFD packet to send [21:34:03]OFD Sender: No OFD packet to send [21:34:08]OFD Sender: No OFD packet to send [21:34:13]OFD Sender: No OFD packet to send [21:34:18]OFD Sender: No OFD packet to send [21:34:23]OFD Sender: No OFD packet to send [21:34:28]OFD Sender: No OFD packet to send [21:34:33]OFD Sender: No OFD packet to send [21:34:38]OFD Sender: No OFD packet to send [21:34:43]OFD Sender: No OFD packet to send [21:34:48]OFD Sender: No OFD packet to send [21:34:53]OFD Sender: No OFD packet to send [21:34:58]OFD Sender: No OFD packet to send [21:35:03]OFD Sender: No OFD packet to send [21:35:08]OFD Sender: No OFD packet to send [21:35:13]OFD Sender: No OFD packet to send [21:35:18]OFD Sender: No OFD packet to send [21:35:23]OFD Sender: No OFD packet to send [21:35:28]OFD Sender: No OFD packet to send [21:35:33]OFD Sender: No OFD packet to send [21:35:38]OFD Sender: No OFD packet to send [21:35:43]OFD Sender: No OFD packet to send [21:35:48]OFD Sender: No OFD packet to send [21:35:53]OFD Sender: No OFD packet to send [21:35:58]OFD Sender: No OFD packet to send [21:36:03]OFD Sender: No OFD packet to send [21:36:08]OFD Sender: No OFD packet to send [21:36:13]OFD Sender: No OFD packet to send [21:36:18]OFD Sender: No OFD packet to send [21:36:23]OFD Sender: No OFD packet to send [21:36:28]OFD Sender: No OFD packet to send [21:36:33]OFD Sender: No OFD packet to send [21:36:38]OFD Sender: No OFD packet to send [21:36:43]OFD Sender: No OFD packet to send [21:36:48]OFD Sender: No OFD packet to send [21:36:53]OFD Sender: No OFD packet to send [21:36:58]OFD Sender: No OFD packet to send [21:37:03]OFD Sender: No OFD packet to send [21:37:08]OFD Sender: No OFD packet to send [21:37:13]OFD Sender: No OFD packet to send [21:37:18]OFD Sender: No OFD packet to send [21:37:23]OFD Sender: No OFD packet to send [21:37:28]OFD Sender: No OFD packet to send [21:37:33]OFD Sender: No OFD packet to send [21:37:38]OFD Sender: No OFD packet to send [21:37:43]OFD Sender: No OFD packet to send [21:37:48]OFD Sender: No OFD packet to send [21:37:53]OFD Sender: No OFD packet to send [21:37:58]OFD Sender: No OFD packet to send [21:38:03]OFD Sender: No OFD packet to send [21:38:08]OFD Sender: No OFD packet to send [21:38:13]OFD Sender: No OFD packet to send [21:38:18]OFD Sender: No OFD packet to send [21:38:23]OFD Sender: No OFD packet to send [21:38:28]OFD Sender: No OFD packet to send [21:38:33]OFD Sender: No OFD packet to send [21:38:38]OFD Sender: No OFD packet to send [21:38:43]OFD Sender: No OFD packet to send [21:38:48]OFD Sender: No OFD packet to send [21:38:53]OFD Sender: No OFD packet to send [21:38:58]OFD Sender: No OFD packet to send [21:39:03]OFD Sender: No OFD packet to send [21:39:08]OFD Sender: No OFD packet to send [21:39:13]OFD Sender: No OFD packet to send [21:39:18]OFD Sender: No OFD packet to send [21:39:23]OFD Sender: No OFD packet to send [21:39:28]OFD Sender: No OFD packet to send [21:39:33]OFD Sender: No OFD packet to send [21:39:38]OFD Sender: No OFD packet to send [21:39:43]OFD Sender: No OFD packet to send [21:39:48]OFD Sender: No OFD packet to send [21:39:53]OFD Sender: No OFD packet to send [21:39:58]OFD Sender: No OFD packet to send [21:40:03]OFD Sender: No OFD packet to send [21:40:08]OFD Sender: No OFD packet to send [21:40:13]OFD Sender: No OFD packet to send [21:40:18]OFD Sender: No OFD packet to send [21:40:23]OFD Sender: No OFD packet to send [21:40:28]OFD Sender: No OFD packet to send [21:40:33]OFD Sender: No OFD packet to send [21:40:38]OFD Sender: No OFD packet to send [21:40:43]OFD Sender: No OFD packet to send [21:40:48]OFD Sender: No OFD packet to send [21:40:53]OFD Sender: No OFD packet to send [21:40:58]OFD Sender: No OFD packet to send [21:41:03]OFD Sender: No OFD packet to send [21:41:08]OFD Sender: No OFD packet to send [21:41:13]OFD Sender: No OFD packet to send [21:41:18]OFD Sender: No OFD packet to send [21:41:23]OFD Sender: No OFD packet to send [21:41:28]OFD Sender: No OFD packet to send [21:41:33]OFD Sender: No OFD packet to send [21:41:38]OFD Sender: No OFD packet to send [21:41:43]OFD Sender: No OFD packet to send [21:41:48]OFD Sender: No OFD packet to send [21:41:53]OFD Sender: No OFD packet to send [21:41:56]accept exits with 9 [21:41:56]New connection [21:41:56]New thread 3066928484 created [21:41:56]Thread 3066785124 joined [21:41:56]Waiting for new connection... [21:41:56] Sock 9.Parse request [21:41:56]Sock 9.Check first char [21:41:56]Sock 9.First char is OK [21:41:56]request: POST /json_proto HTTP/1.0 [21:41:56]Method: POST [21:41:56]URL: /json_proto [21:41:56]Method is POST - this is cgi request [21:41:56]url: /json_proto [21:41:56]query_string will be loaded in cgi processing [21:41:56]execute_cgi json_proto POST (null) [21:41:56]execute_cgi path=json_proto method=POST [21:41:56]POST find Content-Length [21:41:56]Host: 172.17.33.3:8080 [21:41:56]Content-Length: 677 [21:41:56]Content-Type: application/json [21:41:56] [21:41:56]POST finish read [21:41:56]Found Content-Length = 677 [21:41:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [21:41:56]execute_script... [21:41:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [21:41:56]POST & json_proto [21:41:56]process_json_proto [21:41:56]json parsed OK: [21:41:56]protocol is kg_v1.0 [21:41:56]action value=close_receipt [21:41:56]process_action close_receipt [21:41:56]cmd_close_receipt [21:41:56]MH_GetDate [21:41:56]Write to MH i2c: F0 00 00 AC 66 01 [21:41:56]Write i2c OK [21:41:56]MH_I2C_Read... [21:41:56]Read from MH i2c: F0 [21:41:56]MH_I2C_Read... [21:41:56]Read from MH i2c: F0 09 00 [21:41:56]MH_I2C_Read... [21:41:56]Read from MH i2c: F0 09 00 AC 66 00 2B FC 1A 66 23 5B 8F 65 23 [21:41:56]GetLastDocTimeStamp 1713043897 [21:41:56]current date 1713044523 [21:41:56]FM_GetShiftState [21:41:56]SAM_PROTO_GetShiftState [21:41:56]wFMCommunicate request_size=4 [21:41:56]MH_SAM_APDU [21:41:56]CAPDU: 80 13 01 00 [21:41:56]Write to MH i2c: E2 08 00 AD 66 80 13 01 00 00 00 00 00 90 [21:41:56]Write i2c OK [21:41:56]MH_I2C_Read... [21:41:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:56]Read from MH i2c: E2 [21:41:56]MH_I2C_Read... [21:41:56]Read from MH i2c: E2 0E 00 [21:41:56]MH_I2C_Read... [21:41:56]Read from MH i2c: E2 0E 00 AD 66 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 A9 [21:41:56]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [21:41:56]wFMCommunicate OK [21:41:56]SAM_PROTO_GetShiftState done [21:41:56]FM_GetShiftState done [21:41:56]opened in 1712967615 [21:41:56]opened+sec_in_day 1713054015 [21:41:56]quantity*price = 20061 [21:41:56]sum+1 = 20063 [21:41:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 267 13.04.2024 21:42 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29060 ФПД: 274393431035307 1/tax-web-control/client/api/v1/ticket?date=20240413T214203&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29060&fm=274393431035307&tin=02508201610067®Number=0000138879044617&sum=20000 [21:41:57]StoreToDocumentArchive [21:41:57]shift 115 fd 29060 [21:41:57]save to /storage/0115/doc_00029060 [21:41:57]save last doc name /storage/0115/doc_00029060 to /storage/kkm_last_doc_name [21:41:57]save OK [21:41:57]Clear old archive folders... [21:41:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:41:57]tlvbuf is 011D4BD0 [21:41:57]SAM_PROTO_ClearQueue [21:41:57]wFMCommunicate request_size=4 [21:41:57]MH_SAM_APDU [21:41:57]CAPDU: 80 09 00 00 [21:41:57]Write to MH i2c: E2 08 00 BA 66 80 09 00 00 00 00 00 00 92 [21:41:57]Write i2c OK [21:41:57]MH_I2C_Read... [21:41:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:41:57]Read from MH i2c: E2 [21:41:57]MH_I2C_Read... [21:41:57]Read from MH i2c: E2 03 00 [21:41:57]MH_I2C_Read... [21:41:57]Read from MH i2c: E2 03 00 BA 66 00 90 00 94 [21:41:57]RAPDU: 90 00 [21:41:57]wFMCommunicate OK [21:41:57]SAM_PROTO_ClearQueue done [21:41:57]KKMCreateOFDPacket [21:41:57]OFDProtocolAddRootSTLVToBuf [21:41:57]FM_MakeSignedData [21:41:57]FM_MakeSignedData [21:41:57]SAM_PROTO_SignData [21:41:57]wFMCommunicate request_size=4 [21:41:57]MH_SAM_APDU [21:41:57]CAPDU: 80 0D 01 02 [21:41:57]Write to MH i2c: E2 08 00 BB 66 80 0D 01 02 00 00 00 00 9A [21:41:57]Write i2c OK [21:41:57]MH_I2C_Read... [21:41:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:41:57]Read from MH i2c: E2 [21:41:57]MH_I2C_Read... [21:41:57]Read from MH i2c: E2 03 00 [21:41:57]MH_I2C_Read... [21:41:57]Read from MH i2c: E2 03 00 BB 66 00 90 00 95 [21:41:57]RAPDU: 90 00 [21:41:57]wFMCommunicate OK [21:41:57]wFMCommunicate request_size=255 [21:41:57]MH_SAM_APDU [21:41: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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 0B 01 00 00 F4 03 04 00 2B FC 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 84 71 00 00 35 04 06 00 F9 [21:41:57]Write to MH i2c: E2 02 01 BC 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 0B 01 00 00 F4 03 04 00 2B FC 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 84 71 00 00 35 04 06 00 F9 00 00 DB [21:41:57]Write i2c OK [21:41:57]MH_I2C_Read... [21:41:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:58]Read from MH i2c: E2 [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: E2 03 00 [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: E2 03 00 BC 66 00 90 00 96 [21:41:58]RAPDU: 90 00 [21:41:58]wFMCommunicate OK [21:41:58]wFMCommunicate request_size=10 [21:41:58]MH_SAM_APDU [21:41:58]CAPDU: 80 0D 02 02 05 8F 32 FC 4D AB [21:41:58]Write to MH i2c: E2 0D 00 BD 66 80 0D 02 02 05 00 8F 32 FC 4D AB 00 00 5C [21:41:58]Write i2c OK [21:41:58]MH_I2C_Read... [21:41:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:58]Read from MH i2c: E2 [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: E2 03 00 [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: E2 03 00 BD 66 00 90 00 97 [21:41:58]RAPDU: 90 00 [21:41:58]wFMCommunicate OK [21:41:58]wFMCommunicate request_size=4 [21:41:58]MH_SAM_APDU [21:41:58]CAPDU: 80 0D 03 02 [21:41:58]Write to MH i2c: E2 08 00 BE 66 80 0D 03 02 00 00 00 00 9F [21:41:58]Write i2c OK [21:41:58]MH_I2C_Read... [21:41:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:41:58]Read from MH i2c: E2 [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: E2 0B 00 [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: E2 0B 00 BE 66 00 27 51 26 DB DA 34 DB 00 90 00 02 [21:41:58]RAPDU: 27 51 26 DB DA 34 DB 00 90 00 [21:41:58]wFMCommunicate OK [21:41:58]SAM_PROTO_SignData done [21:41:58]FM_MakeSignedData done [21:41:58]CreateOFDProtocolMessage [21:41:58]wFMCommunicate request_size=4 [21:41:58]MH_SAM_APDU [21:41:58]CAPDU: 80 11 00 00 [21:41:58]Write to MH i2c: E2 08 00 BF 66 80 11 00 00 00 00 00 00 9F [21:41:58]Write i2c OK [21:41:58]MH_I2C_Read... [21:41:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:58]Read from MH i2c: E2 [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: E2 17 00 [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: E2 17 00 BF 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EE [21:41:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:41:58]wFMCommunicate OK [21:41:58]CreateOFDProtocolMessage done [21:41:58]OFDSenderStorePacket 29060 [21:41:58]StoreOFDPacket docnum=29060 [21:41:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E9 23 07 01 DE 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 0B 01 00 00 F4 03 04 00 2B FC 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 84 71 00 00 35 04 06 00 F9 8F 32 FC 4D AB 27 51 26 DB DA 34 DB 00 [21:41:58]CheckFolder [21:41:58]dirname=/storage/ofd_packets [21:41:58]CheckFolder done [21:41:58]ProducePacketName [21:41:58]name=ofd_packets/00029060 [21:41:58]NVStorageSaveData ofd_packets/00029060 [21:41:58]File name is /storage/ofd_packets/00029060 [21:41:58]Write 301 bytes [21:41:58]NVStorageSaveData done [21:41:58]OFDSenderStorePacket done [21:41:58]KKMCreateOFDPacket done [21:41:58]NVStorageSaveData kkm_last_timestamp [21:41:58]File name is /storage/kkm_last_timestamp [21:41:58]Write 4 bytes [21:41:58]NVStorageSaveData done [21:41:58]ExternCall_PrintAddStr [21:41:58]wPrintStart [21:41:58]Write to MH i2c: 01 00 00 C0 66 26 [21:41:58]Write i2c OK [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: 01 [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: 01 07 00 [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: 01 07 00 C0 66 00 00 00 00 00 FF 0F 3B [21:41:58]RasterBufferAndPrint [21:41:58]line Счет N : (1)347429 [21:41:58]line ИНН: 02508201610067 [21:41:58]line Контрольно-Кассовый Чек [21:41:58]line ПРОДАЖА [21:41:58]line ТРК (МРК, ГНК) : 23 [21:41:58]line Товар: 2710124130 [21:41:58]line Аи-92-К-5 [21:41:58]line 3.120 * 64.30 [21:41:58]line = 200.62 [21:41:58]line НДС 12% НСП 1% [21:41:58]line > о реализуемом товаре [21:41:58]line ОКРУГЛЕНИЕ: -0.62 [21:41:58]line ИТОГО: 200.00 [21:41:58]line Внесено: 200.00 [21:41:58]line СДАЧА: 0.00 [21:41:58]line НСП 1% : 1.77 [21:41:58]line НДС 12% : 21.30 [21:41:58]line Наличными: 200.00 [21:41:58]line Безнал.: 0.00 [21:41:58]line Место: АЗС № 108 "Партнер Нефть" [21:41:58]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:41:58]line СНО: Общий режим [21:41:58]line Чек 267 13.04.2024 21:42 [21:41:58]line Смена: 115 ФФД: 1.0 [21:41:58]line ЗНМ: 0300000027 [21:41:58]line РНМ: 0000138879044617 [21:41:58]line Версия ККМ: 001 [21:41:58]line ФМ: 0000000000963154 [21:41:58]line ФД: 29060 [21:41:58]line ФПД: 274393431035307 [21:41:58]line 1/tax-web-control/client/api/v1/ticket?date=20240413T214203&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29060&fm=274393431035307&tin=02508201610067®Number=0000138879044617&sum=20000 [21:41:58]OFD Sender: Processing packet 29060 [packets to send 8, broken 7] [21:41:58]ProducePacketName [21:41:58]name=ofd_packets/00029060 [21:41:58]OFD Sender: To server: pG, [21:41:58]CommunicateWithHost lk.salyk.kg:30040 [21:41:58]ConnectInit lk.salyk.kg [21:41:58]written 0, free lines is 4095 [21:41:58]Connected sock=11 [21:41:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 E9 23 07 01 DE 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 0B 01 00 00 F4 03 04 00 2B FC 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 84 71 00 00 35 04 06 00 F9 8F 32 FC 4D AB 27 51 26 DB DA 34 DB 00 [21:41:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B7 28 47 00 5C 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 31 35 34 10 04 04 00 84 71 00 00 F4 03 04 00 D1 A6 1A 66 B6 04 01 00 00 A9 1B BE 96 95 3A F3 B4 [21:41:58]CommunicateWithHost err = 0 [21:41:58]CheckOFDResponse [21:41:58]1017 (14) - 77093643461234 [21:41:58]1041 (16) - 0000000000963154 [21:41:58]1040 (4) - 29060 [21:41:58]1012 (4) - 13.04.2024 15:37 [21:41:58]1206 (1) - 0 [21:41:58]OFD Sender: Remove packet 29060 [21:41:58]ProducePacketName [21:41:58]name=ofd_packets/00029060 [21:41:58]NVStorageDeleteData [21:41:59]Write to MH i2c: 01 00 00 EA 66 50 [21:41:59]Write i2c OK [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: 01 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: 01 07 00 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: 01 07 00 EA 66 00 00 00 00 00 C2 0C 25 [21:41:59]RasterBufferAndPrint [21:41:59]line [21:41:59]line [21:41:59]line [21:41:59]line [21:41:59]line [21:41:59]written 0, free lines is 3270 [21:41:59]MH_Cut [21:41:59]Write to MH i2c: D1 01 00 F1 66 01 29 [21:41:59]Write i2c OK [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: D1 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: D1 01 00 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: D1 01 00 F1 66 00 28 [21:41:59]Write to MH i2c: 01 00 00 F2 66 58 [21:41:59]Write i2c OK [21:41:59]MH_I2C_Read... [21:41:59]OFD Sender: No OFD packet to send [21:41:59]*** Cut start [21:41:59]*** Partial cut [21:41:59]*** CUTSNS_PIN = 1 [21:41:59]*** CUTSNS_PIN = 0 [21:42:00]*** Brake cut motor [21:42:00]Read from MH i2c: 01 [21:42:00]MH_I2C_Read... [21:42:00]*** Stop cut motor [21:42:00]*** Cut end [21:42:00]Read from MH i2c: 01 07 00 [21:42:00]MH_I2C_Read... [21:42:00]Read from MH i2c: 01 07 00 F2 66 00 00 00 00 00 FF 0F 6D [21:42:00]process_action close_receipt done [21:42:00]requested_data is exist [21:42:00]produce_requested_data [21:42:00]requested_item fm.sn is exist - process it [21:42:00]wFMCommunicate request_size=4 [21:42:00]MH_SAM_APDU [21:42:00]CAPDU: 80 11 00 00 [21:42:00]Write to MH i2c: E2 08 00 F3 66 80 11 00 00 00 00 00 00 D3 [21:42:00]Write i2c OK [21:42:00]MH_I2C_Read... [21:42:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:00]Read from MH i2c: E2 [21:42:00]MH_I2C_Read... [21:42:00]Read from MH i2c: E2 17 00 [21:42:00]MH_I2C_Read... [21:42:00]Read from MH i2c: E2 17 00 F3 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 22 [21:42:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:42:00]wFMCommunicate OK [21:42:00]requested_item fd.num is exist - process it [21:42:00]SAM_PROTO_GetFieldsCounters [21:42:00]wFMCommunicate request_size=4 [21:42:00]MH_SAM_APDU [21:42:00]CAPDU: 80 13 00 00 [21:42:00]Write to MH i2c: E2 08 00 F4 66 80 13 00 00 00 00 00 00 D6 [21:42:00]Write i2c OK [21:42:00]MH_I2C_Read... [21:42:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:42:00]Read from MH i2c: E2 [21:42:00]MH_I2C_Read... [21:42:00]Read from MH i2c: E2 62 00 [21:42:00]MH_I2C_Read... [21:42:00]Read from MH i2c: E2 62 00 F4 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 84 71 00 00 0E 04 04 00 73 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 A0 [21:42:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 84 71 00 00 0E 04 04 00 73 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 [21:42:00]wFMCommunicate OK [21:42:00]SAM_PROTO_GetFieldsCounters done [21:42:00]requested_item shift.num is exist - process it [21:42:00]requested_item shift.opened is exist - process it [21:42:00]req_shift_opened [21:42:00]FM_GetShiftState [21:42:00]SAM_PROTO_GetShiftState [21:42:00]wFMCommunicate request_size=4 [21:42:00]MH_SAM_APDU [21:42:00]CAPDU: 80 13 01 00 [21:42:00]Write to MH i2c: E2 08 00 F5 66 80 13 01 00 00 00 00 00 D8 [21:42:00]Write i2c OK [21:42:00]MH_I2C_Read... [21:42:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:00]Read from MH i2c: E2 [21:42:00]MH_I2C_Read... [21:42:00]Read from MH i2c: E2 0E 00 [21:42:00]MH_I2C_Read... [21:42:00]Read from MH i2c: E2 0E 00 F5 66 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F1 [21:42:00]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [21:42:00]wFMCommunicate OK [21:42:00]SAM_PROTO_GetShiftState done [21:42:00]FM_GetShiftState done [21:42:00]req_shift_opened done [21:42:00]requested_item shift.open_date is exist - process it [21:42:00]req_shift_open_date [21:42:00]req_shift_open_date done [21:42:00]produce_requested_data done [21:42:00]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29060,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [21:42:00]process_action_free close_receipt [21:42:00]json_value_free [21:42:00]json_value_free done [21:42:00]process_json_proto returns [21:42:00]Send response to host [21:42:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29060,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [21:42:00]free response buf [21:42:00]execute_script done [21:42:00]execute_script returns [21:42:00]free content buf [21:42:00]Sock 9.Close socket [21:42:00]Sock 9.Thread stoped [21:42:04]OFD Sender: No OFD packet to send [21:42:09]OFD Sender: No OFD packet to send [21:42:14]OFD Sender: No OFD packet to send [21:42:19]OFD Sender: No OFD packet to send [21:42:24]OFD Sender: No OFD packet to send [21:42:29]OFD Sender: No OFD packet to send [21:42:34]OFD Sender: No OFD packet to send [21:42:39]OFD Sender: No OFD packet to send [21:42:44]OFD Sender: No OFD packet to send [21:42:49]OFD Sender: No OFD packet to send [21:42:54]OFD Sender: No OFD packet to send [21:42:59]OFD Sender: No OFD packet to send [21:43:04]OFD Sender: No OFD packet to send [21:43:09]OFD Sender: No OFD packet to send [21:43:14]OFD Sender: No OFD packet to send [21:43:19]OFD Sender: No OFD packet to send [21:43:24]OFD Sender: No OFD packet to send [21:43:29]OFD Sender: No OFD packet to send [21:43:34]OFD Sender: No OFD packet to send [21:43:39]OFD Sender: No OFD packet to send [21:43:44]OFD Sender: No OFD packet to send [21:43:49]OFD Sender: No OFD packet to send [21:43:54]OFD Sender: No OFD packet to send [21:43:59]OFD Sender: No OFD packet to send [21:44:04]OFD Sender: No OFD packet to send [21:44:09]OFD Sender: No OFD packet to send [21:44:14]OFD Sender: No OFD packet to send [21:44:19]OFD Sender: No OFD packet to send [21:44:24]OFD Sender: No OFD packet to send [21:44:29]OFD Sender: No OFD packet to send [21:44:34]OFD Sender: No OFD packet to send [21:44:39]OFD Sender: No OFD packet to send [21:44:44]OFD Sender: No OFD packet to send [21:44:49]OFD Sender: No OFD packet to send [21:44:54]OFD Sender: No OFD packet to send [21:44:59]OFD Sender: No OFD packet to send [21:45:04]OFD Sender: No OFD packet to send [21:45:09]OFD Sender: No OFD packet to send [21:45:14]OFD Sender: No OFD packet to send [21:45:19]OFD Sender: No OFD packet to send [21:45:24]OFD Sender: No OFD packet to send [21:45:29]OFD Sender: No OFD packet to send [21:45:34]OFD Sender: No OFD packet to send [21:45:39]OFD Sender: No OFD packet to send [21:45:44]OFD Sender: No OFD packet to send [21:45:49]OFD Sender: No OFD packet to send [21:45:54]OFD Sender: No OFD packet to send [21:45:59]OFD Sender: No OFD packet to send [21:46:04]OFD Sender: No OFD packet to send [21:46:09]OFD Sender: No OFD packet to send [21:46:14]OFD Sender: No OFD packet to send [21:46:19]OFD Sender: No OFD packet to send [21:46:24]OFD Sender: No OFD packet to send [21:46:29]OFD Sender: No OFD packet to send [21:46:34]OFD Sender: No OFD packet to send [21:46:39]OFD Sender: No OFD packet to send [21:46:44]OFD Sender: No OFD packet to send [21:46:49]OFD Sender: No OFD packet to send [21:46:54]OFD Sender: No OFD packet to send [21:46:55]accept exits with 7 [21:46:55]New connection [21:46:55]New thread 3066785124 created [21:46:55]Thread 3066928484 joined [21:46:55]Waiting for new connection... [21:46:55] Sock 7.Parse request [21:46:55]Sock 7.Check first char [21:46:55]Sock 7.First char is OK [21:46:55]request: POST /json_proto HTTP/1.0 [21:46:55]Method: POST [21:46:55]URL: /json_proto [21:46:55]Method is POST - this is cgi request [21:46:55]url: /json_proto [21:46:55]query_string will be loaded in cgi processing [21:46:55]execute_cgi json_proto POST (null) [21:46:55]execute_cgi path=json_proto method=POST [21:46:55]POST find Content-Length [21:46:55]Host: 172.17.33.3:8080 [21:46:55]Content-Length: 677 [21:46:55]Content-Type: application/json [21:46:55] [21:46:55]POST finish read [21:46:55]Found Content-Length = 677 [21:46:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347430", "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" : 64.30, "quantity" : 6.380, "sum" : 410.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 410.00, "total" : 410.00, "payments": [ { "type": 0, "sum" : 410.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:46:55]execute_script... [21:46: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)347430", "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" : 64.30, "quantity" : 6.380, "sum" : 410.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 410.00, "total" : 410.00, "payments": [ { "type": 0, "sum" : 410.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:46:55]POST & json_proto [21:46:55]process_json_proto [21:46:55]json parsed OK: [21:46:55]protocol is kg_v1.0 [21:46:55]action value=close_receipt [21:46:55]process_action close_receipt [21:46:55]cmd_close_receipt [21:46:55]MH_GetDate [21:46:55]Write to MH i2c: F0 00 00 F6 66 4B [21:46:55]Write i2c OK [21:46:55]MH_I2C_Read... [21:46:55]Read from MH i2c: F0 [21:46:55]MH_I2C_Read... [21:46:55]Read from MH i2c: F0 09 00 [21:46:55]MH_I2C_Read... [21:46:55]Read from MH i2c: F0 09 00 F6 66 00 55 FD 1A 66 23 5B 8F 65 98 [21:46:55]GetLastDocTimeStamp 1713044523 [21:46:55]current date 1713044821 [21:46:55]FM_GetShiftState [21:46:55]SAM_PROTO_GetShiftState [21:46:55]wFMCommunicate request_size=4 [21:46:55]MH_SAM_APDU [21:46:55]CAPDU: 80 13 01 00 [21:46:55]Write to MH i2c: E2 08 00 F7 66 80 13 01 00 00 00 00 00 DA [21:46:55]Write i2c OK [21:46:55]MH_I2C_Read... [21:46:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:55]Read from MH i2c: E2 [21:46:55]MH_I2C_Read... [21:46:55]Read from MH i2c: E2 0E 00 [21:46:55]MH_I2C_Read... [21:46:55]Read from MH i2c: E2 0E 00 F7 66 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F3 [21:46:55]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [21:46:55]wFMCommunicate OK [21:46:55]SAM_PROTO_GetShiftState done [21:46:55]FM_GetShiftState done [21:46:55]opened in 1712967615 [21:46:55]opened+sec_in_day 1713054015 [21:46:55]quantity*price = 41023 [21:46:55]sum+1 = 41024 [21:46:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 410.00 Внесено: 410.00 СДАЧА: 0.00 НСП 1% : 3.63 НДС 12% : 43.56 Наличными: 410.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 268 13.04.2024 21:47 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29061 ФПД: 199720170761423 1/tax-web-control/client/api/v1/ticket?date=20240413T214701&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29061&fm=199720170761423&tin=02508201610067®Number=0000138879044617&sum=41000 [21:46:56]StoreToDocumentArchive [21:46:56]shift 115 fd 29061 [21:46:56]save to /storage/0115/doc_00029061 [21:46:56]save last doc name /storage/0115/doc_00029061 to /storage/kkm_last_doc_name [21:46:56]save OK [21:46:56]Clear old archive folders... [21:46:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:46:56]tlvbuf is 011CB870 [21:46:56]SAM_PROTO_ClearQueue [21:46:56]wFMCommunicate request_size=4 [21:46:56]MH_SAM_APDU [21:46:56]CAPDU: 80 09 00 00 [21:46:56]Write to MH i2c: E2 08 00 04 67 80 09 00 00 00 00 00 00 DD [21:46:56]Write i2c OK [21:46:56]MH_I2C_Read... [21:46:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:46:56]Read from MH i2c: E2 [21:46:56]MH_I2C_Read... [21:46:56]Read from MH i2c: E2 03 00 [21:46:56]MH_I2C_Read... [21:46:56]Read from MH i2c: E2 03 00 04 67 00 90 00 DF [21:46:56]RAPDU: 90 00 [21:46:56]wFMCommunicate OK [21:46:56]SAM_PROTO_ClearQueue done [21:46:56]KKMCreateOFDPacket [21:46:56]OFDProtocolAddRootSTLVToBuf [21:46:56]FM_MakeSignedData [21:46:56]FM_MakeSignedData [21:46:56]SAM_PROTO_SignData [21:46:56]wFMCommunicate request_size=4 [21:46:56]MH_SAM_APDU [21:46:56]CAPDU: 80 0D 01 02 [21:46:56]Write to MH i2c: E2 08 00 05 67 80 0D 01 02 00 00 00 00 E5 [21:46:56]Write i2c OK [21:46:56]MH_I2C_Read... [21:46:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:46:56]Read from MH i2c: E2 [21:46:56]MH_I2C_Read... [21:46:56]Read from MH i2c: E2 03 00 [21:46:56]MH_I2C_Read... [21:46:56]Read from MH i2c: E2 03 00 05 67 00 90 00 E0 [21:46:56]RAPDU: 90 00 [21:46:56]wFMCommunicate OK [21:46:56]wFMCommunicate request_size=255 [21:46:56]MH_SAM_APDU [21:46: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 EC 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 3F A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 55 FD 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 85 71 00 00 35 04 06 00 B5 [21:46:56]Write to MH i2c: E2 02 01 06 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 3F A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 55 FD 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 85 71 00 00 35 04 06 00 B5 00 00 34 [21:46:56]Write i2c OK [21:46:56]MH_I2C_Read... [21:46:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:56]Read from MH i2c: E2 [21:46:56]MH_I2C_Read... [21:46:56]Read from MH i2c: E2 03 00 [21:46:56]MH_I2C_Read... [21:46:56]Read from MH i2c: E2 03 00 06 67 00 90 00 E1 [21:46:56]RAPDU: 90 00 [21:46:56]wFMCommunicate OK [21:46:56]wFMCommunicate request_size=10 [21:46:56]MH_SAM_APDU [21:46:56]CAPDU: 80 0D 02 02 05 A4 F9 D5 2C CF [21:46:56]Write to MH i2c: E2 0D 00 07 67 80 0D 02 02 05 00 A4 F9 D5 2C CF 00 00 5F [21:46:56]Write i2c OK [21:46:56]MH_I2C_Read... [21:46:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:56]Read from MH i2c: E2 [21:46:56]MH_I2C_Read... [21:46:56]Read from MH i2c: E2 03 00 [21:46:56]MH_I2C_Read... [21:46:56]Read from MH i2c: E2 03 00 07 67 00 90 00 E2 [21:46:56]RAPDU: 90 00 [21:46:56]wFMCommunicate OK [21:46:56]wFMCommunicate request_size=4 [21:46:56]MH_SAM_APDU [21:46:56]CAPDU: 80 0D 03 02 [21:46:56]Write to MH i2c: E2 08 00 08 67 80 0D 03 02 00 00 00 00 EA [21:46:56]Write i2c OK [21:46:56]MH_I2C_Read... [21:46:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:46:56]Read from MH i2c: E2 [21:46:56]MH_I2C_Read... [21:46:56]Read from MH i2c: E2 0B 00 [21:46:56]MH_I2C_Read... [21:46:56]Read from MH i2c: E2 0B 00 08 67 00 DD EC AA 4A 39 A2 D4 2A 90 00 81 [21:46:56]RAPDU: DD EC AA 4A 39 A2 D4 2A 90 00 [21:46:56]wFMCommunicate OK [21:46:56]SAM_PROTO_SignData done [21:46:56]FM_MakeSignedData done [21:46:56]CreateOFDProtocolMessage [21:46:56]wFMCommunicate request_size=4 [21:46:56]MH_SAM_APDU [21:46:56]CAPDU: 80 11 00 00 [21:46:56]Write to MH i2c: E2 08 00 09 67 80 11 00 00 00 00 00 00 EA [21:46:56]Write i2c OK [21:46:56]MH_I2C_Read... [21:46:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:56]Read from MH i2c: E2 [21:46:56]MH_I2C_Read... [21:46:56]Read from MH i2c: E2 17 00 [21:46:56]MH_I2C_Read... [21:46:56]Read from MH i2c: E2 17 00 09 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 39 [21:46:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:46:56]wFMCommunicate OK [21:46:56]CreateOFDProtocolMessage done [21:46:56]OFDSenderStorePacket 29061 [21:46:56]StoreOFDPacket docnum=29061 [21:46:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 A1 10 07 01 28 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 EC 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 3F A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 55 FD 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 85 71 00 00 35 04 06 00 B5 A4 F9 D5 2C CF DD EC AA 4A 39 A2 D4 2A [21:46:56]CheckFolder [21:46:56]dirname=/storage/ofd_packets [21:46:56]CheckFolder done [21:46:56]ProducePacketName [21:46:56]name=ofd_packets/00029061 [21:46:56]NVStorageSaveData ofd_packets/00029061 [21:46:56]File name is /storage/ofd_packets/00029061 [21:46:56]Write 301 bytes [21:46:56]NVStorageSaveData done [21:46:56]OFDSenderStorePacket done [21:46:56]KKMCreateOFDPacket done [21:46:56]NVStorageSaveData kkm_last_timestamp [21:46:56]File name is /storage/kkm_last_timestamp [21:46:56]Write 4 bytes [21:46:56]NVStorageSaveData done [21:46:56]ExternCall_PrintAddStr [21:46:56]wPrintStart [21:46:56]Write to MH i2c: 01 00 00 0A 67 71 [21:46:56]Write i2c OK [21:46:56]MH_I2C_Read... [21:46:56]Read from MH i2c: 01 [21:46:56]MH_I2C_Read... [21:46:56]Read from MH i2c: 01 07 00 [21:46:56]MH_I2C_Read... [21:46:56]Read from MH i2c: 01 07 00 0A 67 00 00 00 00 00 FF 0F 86 [21:46:56]RasterBufferAndPrint [21:46:56]line Счет N : (1)347430 [21:46:56]line ИНН: 02508201610067 [21:46:56]line Контрольно-Кассовый Чек [21:46:56]line ПРОДАЖА [21:46:56]line ТРК (МРК, ГНК) : 42 [21:46:56]line Товар: 2710124130 [21:46:56]line Аи-92-К-5 [21:46:56]line 6.380 * 64.30 [21:46:56]line = 410.23 [21:46:56]line НДС 12% НСП 1% [21:46:56]line > о реализуемом товаре [21:46:56]line ОКРУГЛЕНИЕ: -0.23 [21:46:56]line ИТОГО: 410.00 [21:46:56]line Внесено: 410.00 [21:46:56]line СДАЧА: 0.00 [21:46:56]line НСП 1% : 3.63 [21:46:56]line НДС 12% : 43.56 [21:46:56]line Наличными: 410.00 [21:46:56]line Безнал.: 0.00 [21:46:56]line Место: АЗС № 108 "Партнер Нефть" [21:46:56]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:46:56]line СНО: Общий режим [21:46:56]line Чек 268 13.04.2024 21:47 [21:46:56]line Смена: 115 ФФД: 1.0 [21:46:56]line ЗНМ: 0300000027 [21:46:56]line РНМ: 0000138879044617 [21:46:56]line Версия ККМ: 001 [21:46:56]line ФМ: 0000000000963154 [21:46:56]line ФД: 29061 [21:46:56]line ФПД: 199720170761423 [21:46:56]line 1/tax-web-control/client/api/v1/ticket?date=20240413T214701&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29061&fm=199720170761423&tin=02508201610067®Number=0000138879044617&sum=41000 [21:46:57]OFD Sender: Processing packet 29061 [packets to send 8, broken 7] [21:46:57]ProducePacketName [21:46:57]name=ofd_packets/00029061 [21:46:57]OFD Sender: To server: pG, [21:46:57]CommunicateWithHost lk.salyk.kg:30040 [21:46:57]ConnectInit lk.salyk.kg [21:46:57]written 0, free lines is 4095 [21:46:57]Connected sock=10 [21:46: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 31 35 34 0F 01 00 00 A1 10 07 01 28 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 EC 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 3F A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 55 FD 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 85 71 00 00 35 04 06 00 B5 A4 F9 D5 2C CF DD EC AA 4A 39 A2 D4 2A [21:46:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 85 89 47 00 9B F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 85 71 00 00 F4 03 04 00 FB A7 1A 66 B6 04 01 00 00 63 B8 3E B8 90 B5 43 45 [21:46:57]CommunicateWithHost err = 0 [21:46:57]CheckOFDResponse [21:46:57]1017 (14) - 77093643461234 [21:46:57]1041 (16) - 0000000000963154 [21:46:57]1040 (4) - 29061 [21:46:57]1012 (4) - 13.04.2024 15:42 [21:46:57]1206 (1) - 0 [21:46:57]OFD Sender: Remove packet 29061 [21:46:57]ProducePacketName [21:46:57]name=ofd_packets/00029061 [21:46:57]NVStorageDeleteData [21:46:57]Write to MH i2c: 01 00 00 34 67 9B [21:46:57]Write i2c OK [21:46:57]MH_I2C_Read... [21:46:57]Read from MH i2c: 01 [21:46:57]MH_I2C_Read... [21:46:57]Read from MH i2c: 01 07 00 [21:46:57]MH_I2C_Read... [21:46:57]Read from MH i2c: 01 07 00 34 67 00 00 00 00 00 C2 0C 70 [21:46:57]RasterBufferAndPrint [21:46:57]line [21:46:57]line [21:46:57]line [21:46:57]line [21:46:57]line [21:46:57]written 0, free lines is 3270 [21:46:57]MH_Cut [21:46:57]Write to MH i2c: D1 01 00 3B 67 01 74 [21:46:57]Write i2c OK [21:46:57]MH_I2C_Read... [21:46:57]Read from MH i2c: D1 [21:46:57]MH_I2C_Read... [21:46:57]Read from MH i2c: D1 01 00 [21:46:57]MH_I2C_Read... [21:46:57]Read from MH i2c: D1 01 00 3B 67 00 73 [21:46:57]Write to MH i2c: 01 00 00 3C 67 A3 [21:46:57]Write i2c OK [21:46:57]MH_I2C_Read... [21:46:58]OFD Sender: No OFD packet to send [21:46:58]*** Cut start [21:46:58]*** Partial cut [21:46:58]*** CUTSNS_PIN = 1 [21:46:58]*** CUTSNS_PIN = 0 [21:46:58]*** Brake cut motor [21:46:59]Read from MH i2c: 01 [21:46:59]MH_I2C_Read... [21:46:59]*** Stop cut motor [21:46:59]*** Cut end [21:46:59]Read from MH i2c: 01 07 00 [21:46:59]MH_I2C_Read... [21:46:59]Read from MH i2c: 01 07 00 3C 67 00 00 00 00 00 FF 0F B8 [21:46:59]process_action close_receipt done [21:46:59]requested_data is exist [21:46:59]produce_requested_data [21:46:59]requested_item fm.sn is exist - process it [21:46:59]wFMCommunicate request_size=4 [21:46:59]MH_SAM_APDU [21:46:59]CAPDU: 80 11 00 00 [21:46:59]Write to MH i2c: E2 08 00 3D 67 80 11 00 00 00 00 00 00 1E [21:46:59]Write i2c OK [21:46:59]MH_I2C_Read... [21:46:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:59]Read from MH i2c: E2 [21:46:59]MH_I2C_Read... [21:46:59]Read from MH i2c: E2 17 00 [21:46:59]MH_I2C_Read... [21:46:59]Read from MH i2c: E2 17 00 3D 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6D [21:46:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:46:59]wFMCommunicate OK [21:46:59]requested_item fd.num is exist - process it [21:46:59]SAM_PROTO_GetFieldsCounters [21:46:59]wFMCommunicate request_size=4 [21:46:59]MH_SAM_APDU [21:46:59]CAPDU: 80 13 00 00 [21:46:59]Write to MH i2c: E2 08 00 3E 67 80 13 00 00 00 00 00 00 21 [21:46:59]Write i2c OK [21:46:59]MH_I2C_Read... [21:46:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:46:59]Read from MH i2c: E2 [21:46:59]MH_I2C_Read... [21:46:59]Read from MH i2c: E2 62 00 [21:46:59]MH_I2C_Read... [21:46:59]Read from MH i2c: E2 62 00 3E 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 85 71 00 00 0E 04 04 00 73 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 EF [21:46: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 85 71 00 00 0E 04 04 00 73 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 [21:46:59]wFMCommunicate OK [21:46:59]SAM_PROTO_GetFieldsCounters done [21:46:59]requested_item shift.num is exist - process it [21:46:59]requested_item shift.opened is exist - process it [21:46:59]req_shift_opened [21:46:59]FM_GetShiftState [21:46:59]SAM_PROTO_GetShiftState [21:46:59]wFMCommunicate request_size=4 [21:46:59]MH_SAM_APDU [21:46:59]CAPDU: 80 13 01 00 [21:46:59]Write to MH i2c: E2 08 00 3F 67 80 13 01 00 00 00 00 00 23 [21:46:59]Write i2c OK [21:46:59]MH_I2C_Read... [21:46:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:59]Read from MH i2c: E2 [21:46:59]MH_I2C_Read... [21:46:59]Read from MH i2c: E2 0E 00 [21:46:59]MH_I2C_Read... [21:46:59]Read from MH i2c: E2 0E 00 3F 67 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 3C [21:46:59]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [21:46:59]wFMCommunicate OK [21:46:59]SAM_PROTO_GetShiftState done [21:46:59]FM_GetShiftState done [21:46:59]req_shift_opened done [21:46:59]requested_item shift.open_date is exist - process it [21:46:59]req_shift_open_date [21:46:59]req_shift_open_date done [21:46:59]produce_requested_data done [21:46:59]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29061,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [21:46:59]process_action_free close_receipt [21:46:59]json_value_free [21:46:59]json_value_free done [21:46:59]process_json_proto returns [21:46:59]Send response to host [21:46:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29061,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [21:46:59]free response buf [21:46:59]execute_script done [21:46:59]execute_script returns [21:46:59]free content buf [21:46:59]Sock 7.Close socket [21:46:59]Sock 7.Thread stoped [21:47:03]OFD Sender: No OFD packet to send [21:47:03]accept exits with 9 [21:47:03]New connection [21:47:03]New thread 3066928484 created [21:47:03]Thread 3066785124 joined [21:47:03]Waiting for new connection... [21:47:03] Sock 9.Parse request [21:47:03]Sock 9.Check first char [21:47:03]Sock 9.First char is OK [21:47:03]request: POST /json_proto HTTP/1.0 [21:47:03]Method: POST [21:47:03]URL: /json_proto [21:47:03]Method is POST - this is cgi request [21:47:03]url: /json_proto [21:47:03]query_string will be loaded in cgi processing [21:47:03]execute_cgi json_proto POST (null) [21:47:03]execute_cgi path=json_proto method=POST [21:47:03]POST find Content-Length [21:47:03]Host: 172.17.33.3:8080 [21:47:03]Content-Length: 680 [21:47:03]Content-Type: application/json [21:47:03] [21:47:03]POST finish read [21:47:03]Found Content-Length = 680 [21:47:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 9.120, "sum" : 300.05, "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" ] } } [21:47:03]execute_script... [21:47: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)347431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 9.120, "sum" : 300.05, "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" ] } } [21:47:03]POST & json_proto [21:47:03]process_json_proto [21:47:03]json parsed OK: [21:47:03]protocol is kg_v1.0 [21:47:03]action value=close_receipt [21:47:03]process_action close_receipt [21:47:03]cmd_close_receipt [21:47:03]MH_GetDate [21:47:03]Write to MH i2c: F0 00 00 40 67 96 [21:47:03]Write i2c OK [21:47:03]MH_I2C_Read... [21:47:03]Read from MH i2c: F0 [21:47:03]MH_I2C_Read... [21:47:03]Read from MH i2c: F0 09 00 [21:47:03]MH_I2C_Read... [21:47:03]Read from MH i2c: F0 09 00 40 67 00 5E FD 1A 66 23 5B 8F 65 EC [21:47:03]GetLastDocTimeStamp 1713044821 [21:47:03]current date 1713044830 [21:47:03]FM_GetShiftState [21:47:03]SAM_PROTO_GetShiftState [21:47:03]wFMCommunicate request_size=4 [21:47:03]MH_SAM_APDU [21:47:03]CAPDU: 80 13 01 00 [21:47:03]Write to MH i2c: E2 08 00 41 67 80 13 01 00 00 00 00 00 25 [21:47:03]Write i2c OK [21:47:03]MH_I2C_Read... [21:47:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:03]Read from MH i2c: E2 [21:47:03]MH_I2C_Read... [21:47:03]Read from MH i2c: E2 0E 00 [21:47:03]MH_I2C_Read... [21:47:03]Read from MH i2c: E2 0E 00 41 67 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 3E [21:47:03]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [21:47:03]wFMCommunicate OK [21:47:03]SAM_PROTO_GetShiftState done [21:47:03]FM_GetShiftState done [21:47:03]opened in 1712967615 [21:47:03]opened+sec_in_day 1713054015 [21:47:03]quantity*price = 30004 [21:47:03]sum+1 = 30006 [21:47:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 269 13.04.2024 21:47 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29062 ФПД: 184539202466667 1/tax-web-control/client/api/v1/ticket?date=20240413T214710&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29062&fm=184539202466667&tin=02508201610067®Number=0000138879044617&sum=30000 [21:47:04]StoreToDocumentArchive [21:47:04]shift 115 fd 29062 [21:47:04]save to /storage/0115/doc_00029062 [21:47:04]save last doc name /storage/0115/doc_00029062 to /storage/kkm_last_doc_name [21:47:04]save OK [21:47:04]Clear old archive folders... [21:47:04]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:47:04]tlvbuf is 011CB400 [21:47:04]SAM_PROTO_ClearQueue [21:47:04]wFMCommunicate request_size=4 [21:47:04]MH_SAM_APDU [21:47:04]CAPDU: 80 09 00 00 [21:47:04]Write to MH i2c: E2 08 00 4E 67 80 09 00 00 00 00 00 00 27 [21:47:04]Write i2c OK [21:47:04]MH_I2C_Read... [21:47:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:47:04]Read from MH i2c: E2 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 03 00 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 03 00 4E 67 00 90 00 29 [21:47:04]RAPDU: 90 00 [21:47:04]wFMCommunicate OK [21:47:04]SAM_PROTO_ClearQueue done [21:47:04]KKMCreateOFDPacket [21:47:04]OFDProtocolAddRootSTLVToBuf [21:47:04]FM_MakeSignedData [21:47:04]FM_MakeSignedData [21:47:04]SAM_PROTO_SignData [21:47:04]wFMCommunicate request_size=4 [21:47:04]MH_SAM_APDU [21:47:04]CAPDU: 80 0D 01 02 [21:47:04]Write to MH i2c: E2 08 00 4F 67 80 0D 01 02 00 00 00 00 2F [21:47:04]Write i2c OK [21:47:04]MH_I2C_Read... [21:47:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:47:04]Read from MH i2c: E2 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 03 00 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 03 00 4F 67 00 90 00 2A [21:47:04]RAPDU: 90 00 [21:47:04]wFMCommunicate OK [21:47:04]wFMCommunicate request_size=255 [21:47:04]MH_SAM_APDU [21:47:04]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 5E FD 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 86 71 00 00 35 04 06 00 A7 D6 [21:47:04]Write to MH i2c: E2 02 01 50 67 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 5E FD 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 86 71 00 00 35 04 06 00 A7 D6 00 00 FB [21:47:04]Write i2c OK [21:47:04]MH_I2C_Read... [21:47:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:05]Read from MH i2c: E2 [21:47:05]MH_I2C_Read... [21:47:05]Read from MH i2c: E2 03 00 [21:47:05]MH_I2C_Read... [21:47:05]Read from MH i2c: E2 03 00 50 67 00 90 00 2B [21:47:05]RAPDU: 90 00 [21:47:05]wFMCommunicate OK [21:47:05]wFMCommunicate request_size=9 [21:47:05]MH_SAM_APDU [21:47:05]CAPDU: 80 0D 02 02 04 61 9C 33 6B [21:47:05]Write to MH i2c: E2 0C 00 51 67 80 0D 02 02 04 00 61 9C 33 6B 00 00 D5 [21:47:05]Write i2c OK [21:47:05]MH_I2C_Read... [21:47:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:05]Read from MH i2c: E2 [21:47:05]MH_I2C_Read... [21:47:05]Read from MH i2c: E2 03 00 [21:47:05]MH_I2C_Read... [21:47:05]Read from MH i2c: E2 03 00 51 67 00 90 00 2C [21:47:05]RAPDU: 90 00 [21:47:05]wFMCommunicate OK [21:47:05]wFMCommunicate request_size=4 [21:47:05]MH_SAM_APDU [21:47:05]CAPDU: 80 0D 03 02 [21:47:05]Write to MH i2c: E2 08 00 52 67 80 0D 03 02 00 00 00 00 34 [21:47:05]Write i2c OK [21:47:05]MH_I2C_Read... [21:47:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:47:05]Read from MH i2c: E2 [21:47:05]MH_I2C_Read... [21:47:05]Read from MH i2c: E2 0B 00 [21:47:05]MH_I2C_Read... [21:47:05]Read from MH i2c: E2 0B 00 52 67 00 4C 15 19 07 F1 04 E5 E5 90 00 75 [21:47:05]RAPDU: 4C 15 19 07 F1 04 E5 E5 90 00 [21:47:05]wFMCommunicate OK [21:47:05]SAM_PROTO_SignData done [21:47:05]FM_MakeSignedData done [21:47:05]CreateOFDProtocolMessage [21:47:05]wFMCommunicate request_size=4 [21:47:05]MH_SAM_APDU [21:47:05]CAPDU: 80 11 00 00 [21:47:05]Write to MH i2c: E2 08 00 53 67 80 11 00 00 00 00 00 00 34 [21:47:05]Write i2c OK [21:47:05]MH_I2C_Read... [21:47:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:05]Read from MH i2c: E2 [21:47:05]MH_I2C_Read... [21:47:05]Read from MH i2c: E2 17 00 [21:47:05]MH_I2C_Read... [21:47:05]Read from MH i2c: E2 17 00 53 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 83 [21:47:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:47:05]wFMCommunicate OK [21:47:05]CreateOFDProtocolMessage done [21:47:05]OFDSenderStorePacket 29062 [21:47:05]StoreOFDPacket docnum=29062 [21:47:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 B5 F6 06 01 09 95 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 5E FD 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 86 71 00 00 35 04 06 00 A7 D6 61 9C 33 6B 4C 15 19 07 F1 04 E5 E5 [21:47:05]CheckFolder [21:47:05]dirname=/storage/ofd_packets [21:47:05]CheckFolder done [21:47:05]ProducePacketName [21:47:05]name=ofd_packets/00029062 [21:47:05]NVStorageSaveData ofd_packets/00029062 [21:47:05]File name is /storage/ofd_packets/00029062 [21:47:05]Write 300 bytes [21:47:05]NVStorageSaveData done [21:47:05]OFDSenderStorePacket done [21:47:05]KKMCreateOFDPacket done [21:47:05]NVStorageSaveData kkm_last_timestamp [21:47:05]File name is /storage/kkm_last_timestamp [21:47:05]Write 4 bytes [21:47:05]NVStorageSaveData done [21:47:05]ExternCall_PrintAddStr [21:47:05]wPrintStart [21:47:05]Write to MH i2c: 01 00 00 54 67 BB [21:47:05]Write i2c OK [21:47:05]MH_I2C_Read... [21:47:05]Read from MH i2c: 01 [21:47:05]MH_I2C_Read... [21:47:05]Read from MH i2c: 01 07 00 [21:47:05]MH_I2C_Read... [21:47:05]Read from MH i2c: 01 07 00 54 67 00 00 00 00 00 FF 0F D0 [21:47:05]RasterBufferAndPrint [21:47:05]line Счет N : (1)347431 [21:47:05]line ИНН: 02508201610067 [21:47:05]line Контрольно-Кассовый Чек [21:47:05]line ПРОДАЖА [21:47:05]line ТРК (МРК, ГНК) : 71 [21:47:05]line Товар: 2711129700 [21:47:05]line ГАЗ-К-5 [21:47:05]line 9.120 * 32.90 [21:47:05]line = 300.05 [21:47:05]line НДС 12% НСП 1% [21:47:05]line > о реализуемом товаре [21:47:05]line ОКРУГЛЕНИЕ: -0.05 [21:47:05]line ИТОГО: 300.00 [21:47:05]line Внесено: 300.00 [21:47:05]line СДАЧА: 0.00 [21:47:05]line НСП 1% : 2.65 [21:47:05]line НДС 12% : 31.86 [21:47:05]line Наличными: 300.00 [21:47:05]line Безнал.: 0.00 [21:47:05]line Место: АЗС № 108 "Партнер Нефть" [21:47:05]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:47:05]line СНО: Общий режим [21:47:05]line Чек 269 13.04.2024 21:47 [21:47:05]line Смена: 115 ФФД: 1.0 [21:47:05]line ЗНМ: 0300000027 [21:47:05]line РНМ: 0000138879044617 [21:47:05]line Версия ККМ: 001 [21:47:05]line ФМ: 0000000000963154 [21:47:05]line ФД: 29062 [21:47:05]line ФПД: 184539202466667 [21:47:05]line 1/tax-web-control/client/api/v1/ticket?date=20240413T214710&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29062&fm=184539202466667&tin=02508201610067®Number=0000138879044617&sum=30000 [21:47:05]written 0, free lines is 4095 [21:47:05]OFD Sender: Processing packet 29062 [packets to send 8, broken 7] [21:47:05]ProducePacketName [21:47:05]name=ofd_packets/00029062 [21:47:05]OFD Sender: To server: pG, [21:47:05]CommunicateWithHost lk.salyk.kg:30040 [21:47:05]ConnectInit lk.salyk.kg [21:47:05]Connected sock=10 [21:47: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 31 35 34 0E 01 00 00 B5 F6 06 01 09 95 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 5E FD 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 86 71 00 00 35 04 06 00 A7 D6 61 9C 33 6B 4C 15 19 07 F1 04 E5 E5 [21:47:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 57 37 47 00 03 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 31 35 34 10 04 04 00 86 71 00 00 F4 03 04 00 03 A8 1A 66 B6 04 01 00 00 47 FD 26 DB EE FB BD 83 [21:47:05]CommunicateWithHost err = 0 [21:47:05]CheckOFDResponse [21:47:05]1017 (14) - 77093643461234 [21:47:05]1041 (16) - 0000000000963154 [21:47:05]1040 (4) - 29062 [21:47:05]1012 (4) - 13.04.2024 15:42 [21:47:05]1206 (1) - 0 [21:47:05]OFD Sender: Remove packet 29062 [21:47:05]ProducePacketName [21:47:05]name=ofd_packets/00029062 [21:47:05]NVStorageDeleteData [21:47:05]Write to MH i2c: 01 00 00 7E 67 E5 [21:47:05]Write i2c OK [21:47:05]MH_I2C_Read... [21:47:05]Read from MH i2c: 01 [21:47:05]MH_I2C_Read... [21:47:05]Read from MH i2c: 01 07 00 [21:47:05]MH_I2C_Read... [21:47:05]Read from MH i2c: 01 07 00 7E 67 00 00 00 00 00 F1 0C E9 [21:47:05]RasterBufferAndPrint [21:47:05]line [21:47:05]line [21:47:05]line [21:47:05]line [21:47:05]line [21:47:05]written 0, free lines is 3324 [21:47:05]MH_Cut [21:47:05]Write to MH i2c: D1 01 00 85 67 01 BE [21:47:05]Write i2c OK [21:47:05]MH_I2C_Read... [21:47:05]Read from MH i2c: D1 [21:47:05]MH_I2C_Read... [21:47:05]Read from MH i2c: D1 01 00 [21:47:05]MH_I2C_Read... [21:47:05]Read from MH i2c: D1 01 00 85 67 00 BD [21:47:05]Write to MH i2c: 01 00 00 86 67 ED [21:47:05]Write i2c OK [21:47:05]MH_I2C_Read... [21:47:06]OFD Sender: No OFD packet to send [21:47:06]*** Cut start [21:47:06]*** Partial cut [21:47:06]*** CUTSNS_PIN = 1 [21:47:06]*** CUTSNS_PIN = 0 [21:47:06]*** Brake cut motor [21:47:07]Read from MH i2c: 01 [21:47:07]MH_I2C_Read... [21:47:07]*** Stop cut motor [21:47:07]*** Cut end [21:47:07]Read from MH i2c: 01 07 00 [21:47:07]MH_I2C_Read... [21:47:07]Read from MH i2c: 01 07 00 86 67 00 00 00 00 00 FF 0F 02 [21:47:07]process_action close_receipt done [21:47:07]requested_data is exist [21:47:07]produce_requested_data [21:47:07]requested_item fm.sn is exist - process it [21:47:07]wFMCommunicate request_size=4 [21:47:07]MH_SAM_APDU [21:47:07]CAPDU: 80 11 00 00 [21:47:07]Write to MH i2c: E2 08 00 87 67 80 11 00 00 00 00 00 00 68 [21:47:07]Write i2c OK [21:47:07]MH_I2C_Read... [21:47:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:07]Read from MH i2c: E2 [21:47:07]MH_I2C_Read... [21:47:07]Read from MH i2c: E2 17 00 [21:47:07]MH_I2C_Read... [21:47:07]Read from MH i2c: E2 17 00 87 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B7 [21:47:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:47:07]wFMCommunicate OK [21:47:07]requested_item fd.num is exist - process it [21:47:07]SAM_PROTO_GetFieldsCounters [21:47:07]wFMCommunicate request_size=4 [21:47:07]MH_SAM_APDU [21:47:07]CAPDU: 80 13 00 00 [21:47:07]Write to MH i2c: E2 08 00 88 67 80 13 00 00 00 00 00 00 6B [21:47:07]Write i2c OK [21:47:07]MH_I2C_Read... [21:47:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:47:07]Read from MH i2c: E2 [21:47:07]MH_I2C_Read... [21:47:07]Read from MH i2c: E2 62 00 [21:47:07]MH_I2C_Read... [21:47:07]Read from MH i2c: E2 62 00 88 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 86 71 00 00 0E 04 04 00 73 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 3D [21:47: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 86 71 00 00 0E 04 04 00 73 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 [21:47:07]wFMCommunicate OK [21:47:07]SAM_PROTO_GetFieldsCounters done [21:47:07]requested_item shift.num is exist - process it [21:47:07]requested_item shift.opened is exist - process it [21:47:07]req_shift_opened [21:47:07]FM_GetShiftState [21:47:07]SAM_PROTO_GetShiftState [21:47:07]wFMCommunicate request_size=4 [21:47:07]MH_SAM_APDU [21:47:07]CAPDU: 80 13 01 00 [21:47:07]Write to MH i2c: E2 08 00 89 67 80 13 01 00 00 00 00 00 6D [21:47:07]Write i2c OK [21:47:07]MH_I2C_Read... [21:47:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:07]Read from MH i2c: E2 [21:47:07]MH_I2C_Read... [21:47:07]Read from MH i2c: E2 0E 00 [21:47:07]MH_I2C_Read... [21:47:07]Read from MH i2c: E2 0E 00 89 67 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 86 [21:47:07]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [21:47:07]wFMCommunicate OK [21:47:07]SAM_PROTO_GetShiftState done [21:47:07]FM_GetShiftState done [21:47:07]req_shift_opened done [21:47:07]requested_item shift.open_date is exist - process it [21:47:07]req_shift_open_date [21:47:07]req_shift_open_date done [21:47:07]produce_requested_data done [21:47:07]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29062,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [21:47:07]process_action_free close_receipt [21:47:07]json_value_free [21:47:07]json_value_free done [21:47:07]process_json_proto returns [21:47:07]Send response to host [21:47:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29062,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [21:47:07]free response buf [21:47:07]execute_script done [21:47:07]execute_script returns [21:47:07]free content buf [21:47:07]Sock 9.Close socket [21:47:07]Sock 9.Thread stoped [21:47:11]OFD Sender: No OFD packet to send [21:47:16]OFD Sender: No OFD packet to send [21:47:21]OFD Sender: No OFD packet to send [21:47:26]OFD Sender: No OFD packet to send [21:47:31]OFD Sender: No OFD packet to send [21:47:36]OFD Sender: No OFD packet to send [21:47:41]OFD Sender: No OFD packet to send [21:47:46]OFD Sender: No OFD packet to send [21:47:51]OFD Sender: No OFD packet to send [21:47:56]OFD Sender: No OFD packet to send [21:48:01]OFD Sender: No OFD packet to send [21:48:06]OFD Sender: No OFD packet to send [21:48:11]OFD Sender: No OFD packet to send [21:48:16]OFD Sender: No OFD packet to send [21:48:21]OFD Sender: No OFD packet to send [21:48:26]OFD Sender: No OFD packet to send [21:48:31]OFD Sender: No OFD packet to send [21:48:36]OFD Sender: No OFD packet to send [21:48:41]OFD Sender: No OFD packet to send [21:48:46]OFD Sender: No OFD packet to send [21:48:51]OFD Sender: No OFD packet to send [21:48:56]OFD Sender: No OFD packet to send [21:49:01]OFD Sender: No OFD packet to send [21:49:06]OFD Sender: No OFD packet to send [21:49:11]OFD Sender: No OFD packet to send [21:49:16]OFD Sender: No OFD packet to send [21:49:21]OFD Sender: No OFD packet to send [21:49:26]OFD Sender: No OFD packet to send [21:49:31]OFD Sender: No OFD packet to send [21:49:36]OFD Sender: No OFD packet to send [21:49:36]accept exits with 7 [21:49:36]New connection [21:49:36]New thread 3066785124 created [21:49:36]Thread 3066928484 joined [21:49:36]Waiting for new connection... [21:49:36] Sock 7.Parse request [21:49:36]Sock 7.Check first char [21:49:36]Sock 7.First char is OK [21:49:36]request: POST /json_proto HTTP/1.0 [21:49:36]Method: POST [21:49:36]URL: /json_proto [21:49:36]Method is POST - this is cgi request [21:49:36]url: /json_proto [21:49:36]query_string will be loaded in cgi processing [21:49:36]execute_cgi json_proto POST (null) [21:49:36]execute_cgi path=json_proto method=POST [21:49:36]POST find Content-Length [21:49:36]Host: 172.17.33.3:8080 [21:49:36]Content-Length: 799 [21:49:36]Content-Type: application/json [21:49:36] [21:49:36]POST finish read [21:49:36]Found Content-Length = 799 [21:49:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 13.330, "sum" : 870.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 870.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:36]execute_script... [21:49: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)347432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 13.330, "sum" : 870.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 870.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:36]POST & json_proto [21:49:36]process_json_proto [21:49:36]json parsed OK: [21:49:36]protocol is kg_v1.0 [21:49:36]action value=close_receipt [21:49:36]process_action close_receipt [21:49:36]cmd_close_receipt [21:49:36]MH_GetDate [21:49:36]Write to MH i2c: F0 00 00 8A 67 E0 [21:49:36]Write i2c OK [21:49:36]MH_I2C_Read... [21:49:36]Read from MH i2c: F0 [21:49:36]MH_I2C_Read... [21:49:36]Read from MH i2c: F0 09 00 [21:49:36]MH_I2C_Read... [21:49:36]Read from MH i2c: F0 09 00 8A 67 00 F7 FD 1A 66 23 5B 8F 65 CF [21:49:36]GetLastDocTimeStamp 1713044830 [21:49:36]current date 1713044983 [21:49:36]FM_GetShiftState [21:49:36]SAM_PROTO_GetShiftState [21:49:36]wFMCommunicate request_size=4 [21:49:36]MH_SAM_APDU [21:49:36]CAPDU: 80 13 01 00 [21:49:36]Write to MH i2c: E2 08 00 8B 67 80 13 01 00 00 00 00 00 6F [21:49:36]Write i2c OK [21:49:36]MH_I2C_Read... [21:49:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:36]Read from MH i2c: E2 [21:49:36]MH_I2C_Read... [21:49:36]Read from MH i2c: E2 0E 00 [21:49:36]MH_I2C_Read... [21:49:36]Read from MH i2c: E2 0E 00 8B 67 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 88 [21:49:36]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [21:49:36]wFMCommunicate OK [21:49:36]SAM_PROTO_GetShiftState done [21:49:36]FM_GetShiftState done [21:49:36]opened in 1712967615 [21:49:36]opened+sec_in_day 1713054015 [21:49:36]quantity*price = 87044 [21:49:36]sum+1 = 87046 [21:49:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 870.45 НСП 1% : 7.70 НДС 12% : 92.44 Наличными: 0.00 Безнал.: 870.45 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 270 13.04.2024 21:49 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29063 ФПД: 244786651990865 1/tax-web-control/client/api/v1/ticket?date=20240413T214943&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29063&fm=244786651990865&tin=02508201610067®Number=0000138879044617&sum=87045 [21:49:38]StoreToDocumentArchive [21:49:38]shift 115 fd 29063 [21:49:38]save to /storage/0115/doc_00029063 [21:49:38]save last doc name /storage/0115/doc_00029063 to /storage/kkm_last_doc_name [21:49:38]save OK [21:49:38]Clear old archive folders... [21:49:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:49:38]tlvbuf is 0125DC00 [21:49:38]SAM_PROTO_ClearQueue [21:49:38]wFMCommunicate request_size=4 [21:49:38]MH_SAM_APDU [21:49:38]CAPDU: 80 09 00 00 [21:49:38]Write to MH i2c: E2 08 00 98 67 80 09 00 00 00 00 00 00 71 [21:49:38]Write i2c OK [21:49:38]MH_I2C_Read... [21:49:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:49:38]Read from MH i2c: E2 [21:49:38]MH_I2C_Read... [21:49:38]Read from MH i2c: E2 03 00 [21:49:38]MH_I2C_Read... [21:49:38]Read from MH i2c: E2 03 00 98 67 00 90 00 73 [21:49:38]RAPDU: 90 00 [21:49:38]wFMCommunicate OK [21:49:38]SAM_PROTO_ClearQueue done [21:49:38]KKMCreateOFDPacket [21:49:38]OFDProtocolAddRootSTLVToBuf [21:49:38]FM_MakeSignedData [21:49:38]FM_MakeSignedData [21:49:38]SAM_PROTO_SignData [21:49:38]wFMCommunicate request_size=4 [21:49:38]MH_SAM_APDU [21:49:38]CAPDU: 80 0D 01 02 [21:49:38]Write to MH i2c: E2 08 00 99 67 80 0D 01 02 00 00 00 00 79 [21:49:38]Write i2c OK [21:49:38]MH_I2C_Read... [21:49:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:49:38]Read from MH i2c: E2 [21:49:38]MH_I2C_Read... [21:49:38]Read from MH i2c: E2 03 00 [21:49:38]MH_I2C_Read... [21:49:38]Read from MH i2c: E2 03 00 99 67 00 90 00 74 [21:49:38]RAPDU: 90 00 [21:49:38]wFMCommunicate OK [21:49:38]wFMCommunicate request_size=255 [21:49:38]MH_SAM_APDU [21:49:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 34 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 05 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 05 54 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 24 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 05 54 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 F7 FD 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 87 71 00 00 35 04 06 00 [21:49:38]Write to MH i2c: E2 02 01 9A 67 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 34 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 05 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 05 54 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 24 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 05 54 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 F7 FD 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 87 71 00 00 35 04 06 00 00 00 6C [21:49:38]Write i2c OK [21:49:38]MH_I2C_Read... [21:49:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:38]Read from MH i2c: E2 [21:49:38]MH_I2C_Read... [21:49:38]Read from MH i2c: E2 03 00 [21:49:38]MH_I2C_Read... [21:49:38]Read from MH i2c: E2 03 00 9A 67 00 90 00 75 [21:49:38]RAPDU: 90 00 [21:49:38]wFMCommunicate OK [21:49:38]wFMCommunicate request_size=11 [21:49:38]MH_SAM_APDU [21:49:38]CAPDU: 80 0D 02 02 06 DE A1 D5 70 0B 51 [21:49:38]Write to MH i2c: E2 0E 00 9B 67 80 0D 02 02 06 00 DE A1 D5 70 0B 51 00 00 A8 [21:49:38]Write i2c OK [21:49:38]MH_I2C_Read... [21:49:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:38]Read from MH i2c: E2 [21:49:38]MH_I2C_Read... [21:49:38]Read from MH i2c: E2 03 00 [21:49:38]MH_I2C_Read... [21:49:38]Read from MH i2c: E2 03 00 9B 67 00 90 00 76 [21:49:38]RAPDU: 90 00 [21:49:38]wFMCommunicate OK [21:49:38]wFMCommunicate request_size=4 [21:49:38]MH_SAM_APDU [21:49:38]CAPDU: 80 0D 03 02 [21:49:38]Write to MH i2c: E2 08 00 9C 67 80 0D 03 02 00 00 00 00 7E [21:49:38]Write i2c OK [21:49:38]MH_I2C_Read... [21:49:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:49:38]Read from MH i2c: E2 [21:49:38]MH_I2C_Read... [21:49:38]Read from MH i2c: E2 0B 00 [21:49:38]MH_I2C_Read... [21:49:38]Read from MH i2c: E2 0B 00 9C 67 00 77 50 2A 7D 0E 23 20 29 90 00 67 [21:49:38]RAPDU: 77 50 2A 7D 0E 23 20 29 90 00 [21:49:38]wFMCommunicate OK [21:49:38]SAM_PROTO_SignData done [21:49:38]FM_MakeSignedData done [21:49:38]CreateOFDProtocolMessage [21:49:38]wFMCommunicate request_size=4 [21:49:38]MH_SAM_APDU [21:49:38]CAPDU: 80 11 00 00 [21:49:38]Write to MH i2c: E2 08 00 9D 67 80 11 00 00 00 00 00 00 7E [21:49:38]Write i2c OK [21:49:38]MH_I2C_Read... [21:49:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:38]Read from MH i2c: E2 [21:49:38]MH_I2C_Read... [21:49:38]Read from MH i2c: E2 17 00 [21:49:38]MH_I2C_Read... [21:49:38]Read from MH i2c: E2 17 00 9D 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CD [21:49:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:49:38]wFMCommunicate OK [21:49:38]CreateOFDProtocolMessage done [21:49:38]OFDSenderStorePacket 29063 [21:49:38]StoreOFDPacket docnum=29063 [21:49:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 CA 0E 08 01 03 7B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 34 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 05 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 05 54 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 24 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 05 54 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 F7 FD 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 87 71 00 00 35 04 06 00 DE A1 D5 70 0B 51 77 50 2A 7D 0E 23 20 29 [21:49:38]CheckFolder [21:49:38]dirname=/storage/ofd_packets [21:49:38]CheckFolder done [21:49:38]ProducePacketName [21:49:38]name=ofd_packets/00029063 [21:49:38]NVStorageSaveData ofd_packets/00029063 [21:49:38]File name is /storage/ofd_packets/00029063 [21:49:38]Write 302 bytes [21:49:38]NVStorageSaveData done [21:49:38]OFDSenderStorePacket done [21:49:38]KKMCreateOFDPacket done [21:49:38]NVStorageSaveData kkm_last_timestamp [21:49:38]File name is /storage/kkm_last_timestamp [21:49:38]Write 4 bytes [21:49:38]NVStorageSaveData done [21:49:38]ExternCall_PrintAddStr [21:49:38]wPrintStart [21:49:38]Write to MH i2c: 01 00 00 9E 67 05 [21:49:38]Write i2c OK [21:49:38]MH_I2C_Read... [21:49:38]Read from MH i2c: 01 [21:49:38]MH_I2C_Read... [21:49:38]Read from MH i2c: 01 07 00 [21:49:38]MH_I2C_Read... [21:49:38]Read from MH i2c: 01 07 00 9E 67 00 00 00 00 00 FF 0F 1A [21:49:38]RasterBufferAndPrint [21:49:38]line Счет N : (1)347432 [21:49:38]line ИНН: 02508201610067 [21:49:38]line Контрольно-Кассовый Чек [21:49:38]line ПРОДАЖА [21:49:38]line ТРК (МРК, ГНК) : 31 [21:49:38]line Товар: 2710124130 [21:49:38]line SUPER-92-К-5 [21:49:38]line 13.330 * 65.30 [21:49:38]line = 870.45 [21:49:38]line НДС 12% НСП 1% [21:49:38]line > о реализуемом товаре [21:49:38]line ИТОГО: 870.45 [21:49:38]line НСП 1% : 7.70 [21:49:38]line НДС 12% : 92.44 [21:49:38]line Наличными: 0.00 [21:49:38]line Безнал.: 870.45 [21:49:38]line Место: АЗС № 108 "Партнер Нефть" [21:49:38]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:49:38]line СНО: Общий режим [21:49:38]line Чек 270 13.04.2024 21:49 [21:49:38]line Смена: 115 ФФД: 1.0 [21:49:38]line ЗНМ: 0300000027 [21:49:38]line РНМ: 0000138879044617 [21:49:38]line Версия ККМ: 001 [21:49:38]line Платежная система: О! деньги [21:49:38]line ФМ: 0000000000963154 [21:49:38]line ФД: 29063 [21:49:38]line ФПД: 244786651990865 [21:49:38]line 1/tax-web-control/client/api/v1/ticket?date=20240413T214943&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29063&fm=244786651990865&tin=02508201610067®Number=0000138879044617&sum=87045 [21:49:38]OFD Sender: Processing packet 29063 [packets to send 8, broken 7] [21:49:38]ProducePacketName [21:49:38]name=ofd_packets/00029063 [21:49:38]OFD Sender: To server: pG, [21:49:38]CommunicateWithHost lk.salyk.kg:30040 [21:49:38]ConnectInit lk.salyk.kg [21:49:38]written 0, free lines is 4095 [21:49:39]Connected sock=10 [21:49: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 31 35 34 10 01 00 00 CA 0E 08 01 03 7B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 34 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 05 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 05 54 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 24 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 05 54 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 F7 FD 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 87 71 00 00 35 04 06 00 DE A1 D5 70 0B 51 77 50 2A 7D 0E 23 20 29 [21:49:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E8 CC 47 00 7B 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 31 35 34 10 04 04 00 87 71 00 00 F4 03 04 00 9D A8 1A 66 B6 04 01 00 00 27 DD FC 67 95 97 B8 4E [21:49:39]CommunicateWithHost err = 0 [21:49:39]CheckOFDResponse [21:49:39]1017 (14) - 77093643461234 [21:49:39]1041 (16) - 0000000000963154 [21:49:39]1040 (4) - 29063 [21:49:39]1012 (4) - 13.04.2024 15:45 [21:49:39]1206 (1) - 0 [21:49:39]OFD Sender: Remove packet 29063 [21:49:39]ProducePacketName [21:49:39]name=ofd_packets/00029063 [21:49:39]NVStorageDeleteData [21:49:39]Write to MH i2c: 01 00 00 C7 67 2E [21:49:39]Write i2c OK [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: 01 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: 01 07 00 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: 01 07 00 C7 67 00 00 00 00 00 E1 0C 22 [21:49:39]RasterBufferAndPrint [21:49:39]line [21:49:39]line [21:49:39]line [21:49:39]line [21:49:39]line [21:49:39]written 0, free lines is 3304 [21:49:39]MH_Cut [21:49:39]Write to MH i2c: D1 01 00 CE 67 01 07 [21:49:39]Write i2c OK [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: D1 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: D1 01 00 [21:49:39]MH_I2C_Read... [21:49:39]Read from MH i2c: D1 01 00 CE 67 00 06 [21:49:39]Write to MH i2c: 01 00 00 CF 67 36 [21:49:39]Write i2c OK [21:49:39]MH_I2C_Read... [21:49:39]OFD Sender: No OFD packet to send [21:49:40]*** Cut start [21:49:40]*** Partial cut [21:49:40]*** CUTSNS_PIN = 1 [21:49:40]*** CUTSNS_PIN = 0 [21:49:40]*** Brake cut motor [21:49:40]Read from MH i2c: 01 [21:49:40]MH_I2C_Read... [21:49:40]*** Stop cut motor [21:49:40]*** Cut end [21:49:40]Read from MH i2c: 01 07 00 [21:49:40]MH_I2C_Read... [21:49:40]Read from MH i2c: 01 07 00 CF 67 00 00 00 00 00 FF 0F 4B [21:49:40]process_action close_receipt done [21:49:40]requested_data is exist [21:49:40]produce_requested_data [21:49:40]requested_item fm.sn is exist - process it [21:49:40]wFMCommunicate request_size=4 [21:49:40]MH_SAM_APDU [21:49:40]CAPDU: 80 11 00 00 [21:49:40]Write to MH i2c: E2 08 00 D0 67 80 11 00 00 00 00 00 00 B1 [21:49:40]Write i2c OK [21:49:40]MH_I2C_Read... [21:49:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:40]Read from MH i2c: E2 [21:49:40]MH_I2C_Read... [21:49:40]Read from MH i2c: E2 17 00 [21:49:40]MH_I2C_Read... [21:49:40]Read from MH i2c: E2 17 00 D0 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 00 [21:49:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:49:40]wFMCommunicate OK [21:49:40]requested_item fd.num is exist - process it [21:49:40]SAM_PROTO_GetFieldsCounters [21:49:40]wFMCommunicate request_size=4 [21:49:40]MH_SAM_APDU [21:49:40]CAPDU: 80 13 00 00 [21:49:40]Write to MH i2c: E2 08 00 D1 67 80 13 00 00 00 00 00 00 B4 [21:49:40]Write i2c OK [21:49:40]MH_I2C_Read... [21:49:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:49:41]Read from MH i2c: E2 [21:49:41]MH_I2C_Read... [21:49:41]Read from MH i2c: E2 62 00 [21:49:41]MH_I2C_Read... [21:49:41]Read from MH i2c: E2 62 00 D1 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 87 71 00 00 0E 04 04 00 73 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 8A [21:49: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 87 71 00 00 0E 04 04 00 73 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 [21:49:41]wFMCommunicate OK [21:49:41]SAM_PROTO_GetFieldsCounters done [21:49:41]requested_item shift.num is exist - process it [21:49:41]requested_item shift.opened is exist - process it [21:49:41]req_shift_opened [21:49:41]FM_GetShiftState [21:49:41]SAM_PROTO_GetShiftState [21:49:41]wFMCommunicate request_size=4 [21:49:41]MH_SAM_APDU [21:49:41]CAPDU: 80 13 01 00 [21:49:41]Write to MH i2c: E2 08 00 D2 67 80 13 01 00 00 00 00 00 B6 [21:49:41]Write i2c OK [21:49:41]MH_I2C_Read... [21:49:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:41]Read from MH i2c: E2 [21:49:41]MH_I2C_Read... [21:49:41]Read from MH i2c: E2 0E 00 [21:49:41]MH_I2C_Read... [21:49:41]Read from MH i2c: E2 0E 00 D2 67 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 CF [21:49:41]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [21:49:41]wFMCommunicate OK [21:49:41]SAM_PROTO_GetShiftState done [21:49:41]FM_GetShiftState done [21:49:41]req_shift_opened done [21:49:41]requested_item shift.open_date is exist - process it [21:49:41]req_shift_open_date [21:49:41]req_shift_open_date done [21:49:41]produce_requested_data done [21:49:41]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29063,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [21:49:41]process_action_free close_receipt [21:49:41]json_value_free [21:49:41]json_value_free done [21:49:41]process_json_proto returns [21:49:41]Send response to host [21:49:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29063,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [21:49:41]free response buf [21:49:41]execute_script done [21:49:41]execute_script returns [21:49:41]free content buf [21:49:41]Sock 7.Close socket [21:49:41]Sock 7.Thread stoped [21:49:44]OFD Sender: No OFD packet to send [21:49:49]OFD Sender: No OFD packet to send [21:49:54]OFD Sender: No OFD packet to send [21:49:59]OFD Sender: No OFD packet to send [21:50:04]OFD Sender: No OFD packet to send [21:50:09]OFD Sender: No OFD packet to send [21:50:14]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:29]OFD Sender: No OFD packet to send [21:50:34]OFD Sender: No OFD packet to send [21:50:39]OFD Sender: No OFD packet to send [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:54]OFD Sender: No OFD packet to send [21:50:59]OFD Sender: No OFD packet to send [21:51:04]OFD Sender: No OFD packet to send [21:51:09]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:10]accept exits with 9 [21:52:10]New connection [21:52:10]New thread 3066928484 created [21:52:10]Thread 3066785124 joined [21:52:10]Waiting for new connection... [21:52:10] Sock 9.Parse request [21:52:10]Sock 9.Check first char [21:52:10]Sock 9.First char is OK [21:52:10]request: POST /json_proto HTTP/1.0 [21:52:10]Method: POST [21:52:10]URL: /json_proto [21:52:10]Method is POST - this is cgi request [21:52:10]url: /json_proto [21:52:10]query_string will be loaded in cgi processing [21:52:10]execute_cgi json_proto POST (null) [21:52:10]execute_cgi path=json_proto method=POST [21:52:10]POST find Content-Length [21:52:10]Host: 172.17.33.3:8080 [21:52:10]Content-Length: 805 [21:52:10]Content-Type: application/json [21:52:10] [21:52:10]POST finish read [21:52:10]Found Content-Length = 805 [21:52:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347433", "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" : 64.30, "quantity" : 6.230, "sum" : 400.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:10]execute_script... [21:52:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347433", "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" : 64.30, "quantity" : 6.230, "sum" : 400.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:10]POST & json_proto [21:52:10]process_json_proto [21:52:10]json parsed OK: [21:52:10]protocol is kg_v1.0 [21:52:10]action value=close_receipt [21:52:10]process_action close_receipt [21:52:10]cmd_close_receipt [21:52:10]MH_GetDate [21:52:10]Write to MH i2c: F0 00 00 D3 67 29 [21:52:10]Write i2c OK [21:52:10]MH_I2C_Read... [21:52:10]Read from MH i2c: F0 [21:52:10]MH_I2C_Read... [21:52:10]Read from MH i2c: F0 09 00 [21:52:10]MH_I2C_Read... [21:52:10]Read from MH i2c: F0 09 00 D3 67 00 90 FE 1A 66 23 5B 8F 65 B2 [21:52:10]GetLastDocTimeStamp 1713044983 [21:52:10]current date 1713045136 [21:52:10]FM_GetShiftState [21:52:10]SAM_PROTO_GetShiftState [21:52:10]wFMCommunicate request_size=4 [21:52:10]MH_SAM_APDU [21:52:10]CAPDU: 80 13 01 00 [21:52:10]Write to MH i2c: E2 08 00 D4 67 80 13 01 00 00 00 00 00 B8 [21:52:10]Write i2c OK [21:52:10]MH_I2C_Read... [21:52:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:10]Read from MH i2c: E2 [21:52:10]MH_I2C_Read... [21:52:10]Read from MH i2c: E2 0E 00 [21:52:10]MH_I2C_Read... [21:52:10]Read from MH i2c: E2 0E 00 D4 67 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D1 [21:52:10]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [21:52:10]wFMCommunicate OK [21:52:10]SAM_PROTO_GetShiftState done [21:52:10]FM_GetShiftState done [21:52:10]opened in 1712967615 [21:52:10]opened+sec_in_day 1713054015 [21:52:10]quantity*price = 40058 [21:52:10]sum+1 = 40060 [21:52:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.59 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 0.00 Безнал.: 400.59 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 271 13.04.2024 21:52 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29064 ФПД: 14929405763360 1/tax-web-control/client/api/v1/ticket?date=20240413T215216&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29064&fm=14929405763360&tin=02508201610067®Number=0000138879044617&sum=40059 [21:52:11]StoreToDocumentArchive [21:52:11]shift 115 fd 29064 [21:52:11]save to /storage/0115/doc_00029064 [21:52:11]save last doc name /storage/0115/doc_00029064 to /storage/kkm_last_doc_name [21:52:11]save OK [21:52:11]Clear old archive folders... [21:52:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:52:11]tlvbuf is 011CB3C0 [21:52:11]SAM_PROTO_ClearQueue [21:52:11]wFMCommunicate request_size=4 [21:52:11]MH_SAM_APDU [21:52:11]CAPDU: 80 09 00 00 [21:52:11]Write to MH i2c: E2 08 00 E1 67 80 09 00 00 00 00 00 00 BA [21:52:11]Write i2c OK [21:52:11]MH_I2C_Read... [21:52:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:11]Read from MH i2c: E2 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 03 00 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 03 00 E1 67 00 90 00 BC [21:52:11]RAPDU: 90 00 [21:52:11]wFMCommunicate OK [21:52:11]SAM_PROTO_ClearQueue done [21:52:11]KKMCreateOFDPacket [21:52:11]OFDProtocolAddRootSTLVToBuf [21:52:11]FM_MakeSignedData [21:52:11]FM_MakeSignedData [21:52:11]SAM_PROTO_SignData [21:52:11]wFMCommunicate request_size=4 [21:52:11]MH_SAM_APDU [21:52:11]CAPDU: 80 0D 01 02 [21:52:11]Write to MH i2c: E2 08 00 E2 67 80 0D 01 02 00 00 00 00 C2 [21:52:11]Write i2c OK [21:52:11]MH_I2C_Read... [21:52:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:11]Read from MH i2c: E2 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 03 00 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 03 00 E2 67 00 90 00 BD [21:52:11]RAPDU: 90 00 [21:52:11]wFMCommunicate OK [21:52:11]wFMCommunicate request_size=255 [21:52:11]MH_SAM_APDU [21:52:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 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 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 90 FE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 88 71 00 00 35 04 06 00 0D [21:52:11]Write to MH i2c: E2 02 01 E3 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 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 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 90 FE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 88 71 00 00 35 04 06 00 0D 00 00 7B [21:52:11]Write i2c OK [21:52:11]MH_I2C_Read... [21:52:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:11]Read from MH i2c: E2 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 03 00 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 03 00 E3 67 00 90 00 BE [21:52:11]RAPDU: 90 00 [21:52:11]wFMCommunicate OK [21:52:11]wFMCommunicate request_size=10 [21:52:11]MH_SAM_APDU [21:52:11]CAPDU: 80 0D 02 02 05 94 05 ED 5F 20 [21:52:11]Write to MH i2c: E2 0D 00 E4 67 80 0D 02 02 05 00 94 05 ED 5F 20 00 00 D4 [21:52:11]Write i2c OK [21:52:11]MH_I2C_Read... [21:52:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:11]Read from MH i2c: E2 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 03 00 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 03 00 E4 67 00 90 00 BF [21:52:11]RAPDU: 90 00 [21:52:11]wFMCommunicate OK [21:52:11]wFMCommunicate request_size=4 [21:52:11]MH_SAM_APDU [21:52:11]CAPDU: 80 0D 03 02 [21:52:11]Write to MH i2c: E2 08 00 E5 67 80 0D 03 02 00 00 00 00 C7 [21:52:11]Write i2c OK [21:52:11]MH_I2C_Read... [21:52:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:11]Read from MH i2c: E2 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 0B 00 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 0B 00 E5 67 00 32 12 D5 AF 7B E2 6F 5A 90 00 B6 [21:52:11]RAPDU: 32 12 D5 AF 7B E2 6F 5A 90 00 [21:52:11]wFMCommunicate OK [21:52:11]SAM_PROTO_SignData done [21:52:11]FM_MakeSignedData done [21:52:11]CreateOFDProtocolMessage [21:52:11]wFMCommunicate request_size=4 [21:52:11]MH_SAM_APDU [21:52:11]CAPDU: 80 11 00 00 [21:52:11]Write to MH i2c: E2 08 00 E6 67 80 11 00 00 00 00 00 00 C7 [21:52:11]Write i2c OK [21:52:11]MH_I2C_Read... [21:52:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:11]Read from MH i2c: E2 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 17 00 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: E2 17 00 E6 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 16 [21:52:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:52:11]wFMCommunicate OK [21:52:11]CreateOFDProtocolMessage done [21:52:11]OFDSenderStorePacket 29064 [21:52:11]StoreOFDPacket docnum=29064 [21:52:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 69 84 07 01 97 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 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 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 90 FE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 88 71 00 00 35 04 06 00 0D 94 05 ED 5F 20 32 12 D5 AF 7B E2 6F 5A [21:52:11]CheckFolder [21:52:11]dirname=/storage/ofd_packets [21:52:11]CheckFolder done [21:52:11]ProducePacketName [21:52:11]name=ofd_packets/00029064 [21:52:11]NVStorageSaveData ofd_packets/00029064 [21:52:11]File name is /storage/ofd_packets/00029064 [21:52:11]Write 301 bytes [21:52:11]NVStorageSaveData done [21:52:11]OFDSenderStorePacket done [21:52:11]KKMCreateOFDPacket done [21:52:11]NVStorageSaveData kkm_last_timestamp [21:52:11]File name is /storage/kkm_last_timestamp [21:52:11]Write 4 bytes [21:52:11]NVStorageSaveData done [21:52:11]OFD Sender: Processing packet 29064 [packets to send 8, broken 7] [21:52:11]ProducePacketName [21:52:11]name=ofd_packets/00029064 [21:52:11]OFD Sender: To server: pG, [21:52:11]CommunicateWithHost lk.salyk.kg:30040 [21:52:11]ConnectInit lk.salyk.kg [21:52:11]ExternCall_PrintAddStr [21:52:11]wPrintStart [21:52:11]Write to MH i2c: 01 00 00 E7 67 4E [21:52:11]Write i2c OK [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: 01 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: 01 07 00 [21:52:11]MH_I2C_Read... [21:52:11]Read from MH i2c: 01 07 00 E7 67 00 00 00 00 00 FF 0F 63 [21:52:11]RasterBufferAndPrint [21:52:11]line Счет N : (1)347433 [21:52:11]line ИНН: 02508201610067 [21:52:11]line Контрольно-Кассовый Чек [21:52:11]line ПРОДАЖА [21:52:11]line ТРК (МРК, ГНК) : 42 [21:52:11]line Товар: 2710124130 [21:52:11]line Аи-92-К-5 [21:52:11]line 6.230 * 64.30 [21:52:11]line = 400.59 [21:52:11]line НДС 12% НСП 1% [21:52:11]line > о реализуемом товаре [21:52:11]line ИТОГО: 400.59 [21:52:11]line НСП 1% : 3.54 [21:52:11]line НДС 12% : 42.54 [21:52:11]line Наличными: 0.00 [21:52:11]line Безнал.: 400.59 [21:52:11]line Место: АЗС № 108 "Партнер Нефть" [21:52:11]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:52:11]line СНО: Общий режим [21:52:11]line Чек 271 13.04.2024 21:52 [21:52:11]line Смена: 115 ФФД: 1.0 [21:52:11]line ЗНМ: 0300000027 [21:52:11]line РНМ: 0000138879044617 [21:52:11]line Версия ККМ: 001 [21:52:11]line Платежная система: О! деньги [21:52:11]line ФМ: 0000000000963154 [21:52:11]line ФД: 29064 [21:52:11]line ФПД: 14929405763360 [21:52:12]line 1/tax-web-control/client/api/v1/ticket?date=20240413T215216&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29064&fm=14929405763360&tin=02508201610067®Number=0000138879044617&sum=40059 [21:52:12]Connected sock=11 [21:52:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 69 84 07 01 97 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 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 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 90 FE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 88 71 00 00 35 04 06 00 0D 94 05 ED 5F 20 32 12 D5 AF 7B E2 6F 5A [21:52:12]written 0, free lines is 4095 [21:52:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 30 5A 47 00 05 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 31 35 34 10 04 04 00 88 71 00 00 F4 03 04 00 36 A9 1A 66 B6 04 01 00 00 E5 3A 68 4C 46 DD B9 D2 [21:52:12]CommunicateWithHost err = 0 [21:52:12]CheckOFDResponse [21:52:12]1017 (14) - 77093643461234 [21:52:12]1041 (16) - 0000000000963154 [21:52:12]1040 (4) - 29064 [21:52:12]1012 (4) - 13.04.2024 15:48 [21:52:12]1206 (1) - 0 [21:52:12]OFD Sender: Remove packet 29064 [21:52:12]ProducePacketName [21:52:12]name=ofd_packets/00029064 [21:52:12]NVStorageDeleteData [21:52:12]Write to MH i2c: 01 00 00 10 68 78 [21:52:12]Write i2c OK [21:52:12]MH_I2C_Read... [21:52:12]Read from MH i2c: 01 [21:52:12]MH_I2C_Read... [21:52:12]Read from MH i2c: 01 07 00 [21:52:12]MH_I2C_Read... [21:52:12]Read from MH i2c: 01 07 00 10 68 00 00 00 00 00 D6 0C 61 [21:52:12]RasterBufferAndPrint [21:52:12]line [21:52:12]line [21:52:12]line [21:52:12]line [21:52:12]line [21:52:12]written 0, free lines is 3293 [21:52:12]MH_Cut [21:52:12]Write to MH i2c: D1 01 00 17 68 01 51 [21:52:12]Write i2c OK [21:52:12]MH_I2C_Read... [21:52:12]Read from MH i2c: D1 [21:52:12]MH_I2C_Read... [21:52:12]Read from MH i2c: D1 01 00 [21:52:12]MH_I2C_Read... [21:52:12]Read from MH i2c: D1 01 00 17 68 00 50 [21:52:12]Write to MH i2c: 01 00 00 18 68 80 [21:52:12]Write i2c OK [21:52:12]MH_I2C_Read... [21:52:12]OFD Sender: No OFD packet to send [21:52:13]*** Cut start [21:52:13]*** Partial cut [21:52:13]*** CUTSNS_PIN = 1 [21:52:13]*** CUTSNS_PIN = 0 [21:52:13]*** Brake cut motor [21:52:14]Read from MH i2c: 01 [21:52:14]*** Stop cut motor [21:52:14]*** Cut end [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: 01 07 00 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: 01 07 00 18 68 00 00 00 00 00 FF 0F 95 [21:52:14]process_action close_receipt done [21:52:14]requested_data is exist [21:52:14]produce_requested_data [21:52:14]requested_item fm.sn is exist - process it [21:52:14]wFMCommunicate request_size=4 [21:52:14]MH_SAM_APDU [21:52:14]CAPDU: 80 11 00 00 [21:52:14]Write to MH i2c: E2 08 00 19 68 80 11 00 00 00 00 00 00 FB [21:52:14]Write i2c OK [21:52:14]MH_I2C_Read... [21:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:14]Read from MH i2c: E2 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: E2 17 00 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: E2 17 00 19 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4A [21:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:52:14]wFMCommunicate OK [21:52:14]requested_item fd.num is exist - process it [21:52:14]SAM_PROTO_GetFieldsCounters [21:52:14]wFMCommunicate request_size=4 [21:52:14]MH_SAM_APDU [21:52:14]CAPDU: 80 13 00 00 [21:52:14]Write to MH i2c: E2 08 00 1A 68 80 13 00 00 00 00 00 00 FE [21:52:14]Write i2c OK [21:52:14]MH_I2C_Read... [21:52:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:14]Read from MH i2c: E2 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: E2 62 00 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: E2 62 00 1A 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 88 71 00 00 0E 04 04 00 73 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 D8 [21:52:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 88 71 00 00 0E 04 04 00 73 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 [21:52:14]wFMCommunicate OK [21:52:14]SAM_PROTO_GetFieldsCounters done [21:52:14]requested_item shift.num is exist - process it [21:52:14]requested_item shift.opened is exist - process it [21:52:14]req_shift_opened [21:52:14]FM_GetShiftState [21:52:14]SAM_PROTO_GetShiftState [21:52:14]wFMCommunicate request_size=4 [21:52:14]MH_SAM_APDU [21:52:14]CAPDU: 80 13 01 00 [21:52:14]Write to MH i2c: E2 08 00 1B 68 80 13 01 00 00 00 00 00 00 [21:52:14]Write i2c OK [21:52:14]MH_I2C_Read... [21:52:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:14]Read from MH i2c: E2 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: E2 0E 00 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: E2 0E 00 1B 68 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 19 [21:52:14]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [21:52:14]wFMCommunicate OK [21:52:14]SAM_PROTO_GetShiftState done [21:52:14]FM_GetShiftState done [21:52:14]req_shift_opened done [21:52:14]requested_item shift.open_date is exist - process it [21:52:14]req_shift_open_date [21:52:14]req_shift_open_date done [21:52:14]produce_requested_data done [21:52:14]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29064,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [21:52:14]process_action_free close_receipt [21:52:14]json_value_free [21:52:14]json_value_free done [21:52:14]process_json_proto returns [21:52:14]Send response to host [21:52:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29064,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [21:52:14]free response buf [21:52:14]execute_script done [21:52:14]execute_script returns [21:52:14]free content buf [21:52:14]Sock 9.Close socket [21:52:14]Sock 9.Thread stoped [21:52:17]OFD Sender: No OFD packet to send [21:52:22]OFD Sender: No OFD packet to send [21:52:27]OFD Sender: No OFD packet to send [21:52:32]OFD Sender: No OFD packet to send [21:52:37]OFD Sender: No OFD packet to send [21:52:42]OFD Sender: No OFD packet to send [21:52:47]OFD Sender: No OFD packet to send [21:52:52]OFD Sender: No OFD packet to send [21:52:57]OFD Sender: No OFD packet to send [21:53:02]OFD Sender: No OFD packet to send [21:53:07]OFD Sender: No OFD packet to send [21:53:12]OFD Sender: No OFD packet to send [21:53:17]OFD Sender: No OFD packet to send [21:53:22]OFD Sender: No OFD packet to send [21:53:27]OFD Sender: No OFD packet to send [21:53:32]OFD Sender: No OFD packet to send [21:53:37]OFD Sender: No OFD packet to send [21:53:42]OFD Sender: No OFD packet to send [21:53:47]OFD Sender: No OFD packet to send [21:53:51]accept exits with 7 [21:53:51]New connection [21:53:51]New thread 3066785124 created [21:53:51]Thread 3066928484 joined [21:53:51]Waiting for new connection... [21:53:51] Sock 7.Parse request [21:53:51]Sock 7.Check first char [21:53:51]Sock 7.First char is OK [21:53:51]request: POST /json_proto HTTP/1.0 [21:53:51]Method: POST [21:53:51]URL: /json_proto [21:53:51]Method is POST - this is cgi request [21:53:51]url: /json_proto [21:53:51]query_string will be loaded in cgi processing [21:53:51]execute_cgi json_proto POST (null) [21:53:51]execute_cgi path=json_proto method=POST [21:53:51]POST find Content-Length [21:53:51]Host: 172.17.33.3:8080 [21:53:51]Content-Length: 677 [21:53:51]Content-Type: application/json [21:53:51] [21:53:51]POST finish read [21:53:51]Found Content-Length = 677 [21:53:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347434", "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" : 64.30, "quantity" : 6.230, "sum" : 400.59, "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:53:51]execute_script... [21:53: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)347434", "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" : 64.30, "quantity" : 6.230, "sum" : 400.59, "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:53:51]POST & json_proto [21:53:51]process_json_proto [21:53:51]json parsed OK: [21:53:51]protocol is kg_v1.0 [21:53:51]action value=close_receipt [21:53:51]process_action close_receipt [21:53:51]cmd_close_receipt [21:53:51]MH_GetDate [21:53:51]Write to MH i2c: F0 00 00 1C 68 73 [21:53:51]Write i2c OK [21:53:51]MH_I2C_Read... [21:53:51]Read from MH i2c: F0 [21:53:51]MH_I2C_Read... [21:53:51]Read from MH i2c: F0 09 00 [21:53:51]MH_I2C_Read... [21:53:51]Read from MH i2c: F0 09 00 1C 68 00 F6 FE 1A 66 23 5B 8F 65 62 [21:53:51]GetLastDocTimeStamp 1713045136 [21:53:51]current date 1713045238 [21:53:51]FM_GetShiftState [21:53:51]SAM_PROTO_GetShiftState [21:53:51]wFMCommunicate request_size=4 [21:53:51]MH_SAM_APDU [21:53:51]CAPDU: 80 13 01 00 [21:53:51]Write to MH i2c: E2 08 00 1D 68 80 13 01 00 00 00 00 00 02 [21:53:51]Write i2c OK [21:53:51]MH_I2C_Read... [21:53:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:51]Read from MH i2c: E2 [21:53:51]MH_I2C_Read... [21:53:51]Read from MH i2c: E2 0E 00 [21:53:51]MH_I2C_Read... [21:53:51]Read from MH i2c: E2 0E 00 1D 68 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 1B [21:53:51]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [21:53:51]wFMCommunicate OK [21:53:51]SAM_PROTO_GetShiftState done [21:53:51]FM_GetShiftState done [21:53:51]opened in 1712967615 [21:53:51]opened+sec_in_day 1713054015 [21:53:51]quantity*price = 40058 [21:53:51]sum+1 = 40060 [21:53:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 272 13.04.2024 21:53 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29065 ФПД: 149015922861326 1/tax-web-control/client/api/v1/ticket?date=20240413T215358&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29065&fm=149015922861326&tin=02508201610067®Number=0000138879044617&sum=40000 [21:53:52]StoreToDocumentArchive [21:53:52]shift 115 fd 29065 [21:53:52]save to /storage/0115/doc_00029065 [21:53:52]save last doc name /storage/0115/doc_00029065 to /storage/kkm_last_doc_name [21:53:52]save OK [21:53:52]Clear old archive folders... [21:53:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:53:52]tlvbuf is 011EE9C0 [21:53:52]SAM_PROTO_ClearQueue [21:53:52]wFMCommunicate request_size=4 [21:53:52]MH_SAM_APDU [21:53:52]CAPDU: 80 09 00 00 [21:53:52]Write to MH i2c: E2 08 00 2A 68 80 09 00 00 00 00 00 00 04 [21:53:52]OFD Sender: No OFD packet to send [21:53:52]Write i2c OK [21:53:52]MH_I2C_Read... [21:53:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:53:53]Read from MH i2c: E2 [21:53:53]MH_I2C_Read... [21:53:53]Read from MH i2c: E2 03 00 [21:53:53]MH_I2C_Read... [21:53:53]Read from MH i2c: E2 03 00 2A 68 00 90 00 06 [21:53:53]RAPDU: 90 00 [21:53:53]wFMCommunicate OK [21:53:53]SAM_PROTO_ClearQueue done [21:53:53]KKMCreateOFDPacket [21:53:53]OFDProtocolAddRootSTLVToBuf [21:53:53]FM_MakeSignedData [21:53:53]FM_MakeSignedData [21:53:53]SAM_PROTO_SignData [21:53:53]wFMCommunicate request_size=4 [21:53:53]MH_SAM_APDU [21:53:53]CAPDU: 80 0D 01 02 [21:53:53]Write to MH i2c: E2 08 00 2B 68 80 0D 01 02 00 00 00 00 0C [21:53:53]Write i2c OK [21:53:53]MH_I2C_Read... [21:53:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:53:53]Read from MH i2c: E2 [21:53:53]MH_I2C_Read... [21:53:53]Read from MH i2c: E2 03 00 [21:53:53]MH_I2C_Read... [21:53:53]Read from MH i2c: E2 03 00 2B 68 00 90 00 07 [21:53:53]RAPDU: 90 00 [21:53:53]wFMCommunicate OK [21:53:53]wFMCommunicate request_size=255 [21:53:53]MH_SAM_APDU [21:53: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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 10 01 00 00 F4 03 04 00 F6 FE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 89 71 00 00 35 04 06 00 87 [21:53:53]Write to MH i2c: E2 02 01 2C 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 10 01 00 00 F4 03 04 00 F6 FE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 89 71 00 00 35 04 06 00 87 00 00 31 [21:53:53]Write i2c OK [21:53:53]MH_I2C_Read... [21:53:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:53]Read from MH i2c: E2 [21:53:53]MH_I2C_Read... [21:53:53]Read from MH i2c: E2 03 00 [21:53:53]MH_I2C_Read... [21:53:53]Read from MH i2c: E2 03 00 2C 68 00 90 00 08 [21:53:53]RAPDU: 90 00 [21:53:53]wFMCommunicate OK [21:53:53]wFMCommunicate request_size=10 [21:53:53]MH_SAM_APDU [21:53:53]CAPDU: 80 0D 02 02 05 87 79 25 E5 0E [21:53:53]Write to MH i2c: E2 0D 00 2D 68 80 0D 02 02 05 00 87 79 25 E5 0E 00 00 31 [21:53:53]Write i2c OK [21:53:53]MH_I2C_Read... [21:53:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:53]Read from MH i2c: E2 [21:53:53]MH_I2C_Read... [21:53:53]Read from MH i2c: E2 03 00 [21:53:53]MH_I2C_Read... [21:53:53]Read from MH i2c: E2 03 00 2D 68 00 90 00 09 [21:53:53]RAPDU: 90 00 [21:53:53]wFMCommunicate OK [21:53:53]wFMCommunicate request_size=4 [21:53:53]MH_SAM_APDU [21:53:53]CAPDU: 80 0D 03 02 [21:53:53]Write to MH i2c: E2 08 00 2E 68 80 0D 03 02 00 00 00 00 11 [21:53:53]Write i2c OK [21:53:53]MH_I2C_Read... [21:53:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:53:53]Read from MH i2c: E2 [21:53:53]MH_I2C_Read... [21:53:53]Read from MH i2c: E2 0B 00 [21:53:53]MH_I2C_Read... [21:53:53]Read from MH i2c: E2 0B 00 2E 68 00 DF 1C FA 06 68 BD 27 11 90 00 6A [21:53:53]RAPDU: DF 1C FA 06 68 BD 27 11 90 00 [21:53:53]wFMCommunicate OK [21:53:53]SAM_PROTO_SignData done [21:53:53]FM_MakeSignedData done [21:53:53]CreateOFDProtocolMessage [21:53:53]wFMCommunicate request_size=4 [21:53:53]MH_SAM_APDU [21:53:53]CAPDU: 80 11 00 00 [21:53:53]Write to MH i2c: E2 08 00 2F 68 80 11 00 00 00 00 00 00 11 [21:53:53]Write i2c OK [21:53:53]MH_I2C_Read... [21:53:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:53]Read from MH i2c: E2 [21:53:53]MH_I2C_Read... [21:53:53]Read from MH i2c: E2 17 00 [21:53:53]MH_I2C_Read... [21:53:53]Read from MH i2c: E2 17 00 2F 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 60 [21:53:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:53:53]wFMCommunicate OK [21:53:53]CreateOFDProtocolMessage done [21:53:53]OFDSenderStorePacket 29065 [21:53:53]StoreOFDPacket docnum=29065 [21:53:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 99 59 07 01 3B 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 10 01 00 00 F4 03 04 00 F6 FE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 89 71 00 00 35 04 06 00 87 87 79 25 E5 0E DF 1C FA 06 68 BD 27 11 [21:53:53]CheckFolder [21:53:53]dirname=/storage/ofd_packets [21:53:53]CheckFolder done [21:53:53]ProducePacketName [21:53:53]name=ofd_packets/00029065 [21:53:53]NVStorageSaveData ofd_packets/00029065 [21:53:53]File name is /storage/ofd_packets/00029065 [21:53:53]Write 301 bytes [21:53:53]NVStorageSaveData done [21:53:53]OFDSenderStorePacket done [21:53:53]KKMCreateOFDPacket done [21:53:53]NVStorageSaveData kkm_last_timestamp [21:53:53]File name is /storage/kkm_last_timestamp [21:53:53]Write 4 bytes [21:53:53]NVStorageSaveData done [21:53:53]ExternCall_PrintAddStr [21:53:53]wPrintStart [21:53:53]Write to MH i2c: 01 00 00 30 68 98 [21:53:53]Write i2c OK [21:53:53]MH_I2C_Read... [21:53:53]Read from MH i2c: 01 [21:53:53]MH_I2C_Read... [21:53:53]Read from MH i2c: 01 07 00 [21:53:53]MH_I2C_Read... [21:53:53]Read from MH i2c: 01 07 00 30 68 00 00 00 00 00 FF 0F AD [21:53:53]RasterBufferAndPrint [21:53:53]line Счет N : (1)347434 [21:53:53]line ИНН: 02508201610067 [21:53:53]line Контрольно-Кассовый Чек [21:53:53]line ПРОДАЖА [21:53:53]line ТРК (МРК, ГНК) : 32 [21:53:53]line Товар: 2710124130 [21:53:53]line Аи-92-К-5 [21:53:53]line 6.230 * 64.30 [21:53:53]line = 400.59 [21:53:53]line НДС 12% НСП 1% [21:53:53]line > о реализуемом товаре [21:53:53]line ОКРУГЛЕНИЕ: -0.59 [21:53:53]line ИТОГО: 400.00 [21:53:53]line Внесено: 400.00 [21:53:53]line СДАЧА: 0.00 [21:53:53]line НСП 1% : 3.54 [21:53:53]line НДС 12% : 42.54 [21:53:53]line Наличными: 400.00 [21:53:53]line Безнал.: 0.00 [21:53:53]line Место: АЗС № 108 "Партнер Нефть" [21:53:53]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:53:53]line СНО: Общий режим [21:53:53]line Чек 272 13.04.2024 21:53 [21:53:53]line Смена: 115 ФФД: 1.0 [21:53:53]line ЗНМ: 0300000027 [21:53:53]line РНМ: 0000138879044617 [21:53:53]line Версия ККМ: 001 [21:53:53]line ФМ: 0000000000963154 [21:53:53]line ФД: 29065 [21:53:53]line ФПД: 149015922861326 [21:53:53]line 1/tax-web-control/client/api/v1/ticket?date=20240413T215358&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29065&fm=149015922861326&tin=02508201610067®Number=0000138879044617&sum=40000 [21:53:53]OFD Sender: Processing packet 29065 [packets to send 8, broken 7] [21:53:53]ProducePacketName [21:53:53]name=ofd_packets/00029065 [21:53:53]OFD Sender: To server: pG, [21:53:53]CommunicateWithHost lk.salyk.kg:30040 [21:53:53]ConnectInit lk.salyk.kg [21:53:53]written 0, free lines is 4095 [21:53:53]Connected sock=9 [21:53: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 31 35 34 0F 01 00 00 99 59 07 01 3B 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 10 01 00 00 F4 03 04 00 F6 FE 1A 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 89 71 00 00 35 04 06 00 87 87 79 25 E5 0E DF 1C FA 06 68 BD 27 11 [21:53:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 63 65 47 00 A4 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 89 71 00 00 F4 03 04 00 9C A9 1A 66 B6 04 01 00 00 BF 3F D1 DB 14 72 C4 AA [21:53:54]CommunicateWithHost err = 0 [21:53:54]CheckOFDResponse [21:53:54]1017 (14) - 77093643461234 [21:53:54]1041 (16) - 0000000000963154 [21:53:54]1040 (4) - 29065 [21:53:54]1012 (4) - 13.04.2024 15:49 [21:53:54]1206 (1) - 0 [21:53:54]OFD Sender: Remove packet 29065 [21:53:54]ProducePacketName [21:53:54]name=ofd_packets/00029065 [21:53:54]NVStorageDeleteData [21:53:54]Write to MH i2c: 01 00 00 5A 68 C2 [21:53:54]Write i2c OK [21:53:54]MH_I2C_Read... [21:53:54]Read from MH i2c: 01 [21:53:54]MH_I2C_Read... [21:53:54]Read from MH i2c: 01 07 00 [21:53:54]MH_I2C_Read... [21:53:54]Read from MH i2c: 01 07 00 5A 68 00 00 00 00 00 C7 0C 9C [21:53:54]RasterBufferAndPrint [21:53:54]line [21:53:54]line [21:53:54]line [21:53:54]line [21:53:54]line [21:53:54]written 0, free lines is 3276 [21:53:54]MH_Cut [21:53:54]Write to MH i2c: D1 01 00 61 68 01 9B [21:53:54]Write i2c OK [21:53:54]MH_I2C_Read... [21:53:54]Read from MH i2c: D1 [21:53:54]MH_I2C_Read... [21:53:54]Read from MH i2c: D1 01 00 [21:53:54]MH_I2C_Read... [21:53:54]Read from MH i2c: D1 01 00 61 68 00 9A [21:53:54]Write to MH i2c: 01 00 00 62 68 CA [21:53:54]Write i2c OK [21:53:54]MH_I2C_Read... [21:53:54]OFD Sender: No OFD packet to send [21:53:55]*** Cut start [21:53:55]*** Partial cut [21:53:55]*** CUTSNS_PIN = 1 [21:53:55]*** CUTSNS_PIN = 0 [21:53:55]*** Brake cut motor [21:53:55]Read from MH i2c: 01 [21:53:55]MH_I2C_Read... [21:53:55]*** Stop cut motor [21:53:55]*** Cut end [21:53:55]Read from MH i2c: 01 07 00 [21:53:55]MH_I2C_Read... [21:53:55]Read from MH i2c: 01 07 00 62 68 00 00 00 00 00 FF 0F DF [21:53:55]process_action close_receipt done [21:53:55]requested_data is exist [21:53:55]produce_requested_data [21:53:55]requested_item fm.sn is exist - process it [21:53:55]wFMCommunicate request_size=4 [21:53:55]MH_SAM_APDU [21:53:55]CAPDU: 80 11 00 00 [21:53:55]Write to MH i2c: E2 08 00 63 68 80 11 00 00 00 00 00 00 45 [21:53:55]Write i2c OK [21:53:55]MH_I2C_Read... [21:53:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:55]Read from MH i2c: E2 [21:53:55]MH_I2C_Read... [21:53:55]Read from MH i2c: E2 17 00 [21:53:55]MH_I2C_Read... [21:53:55]Read from MH i2c: E2 17 00 63 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 94 [21:53:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:53:55]wFMCommunicate OK [21:53:55]requested_item fd.num is exist - process it [21:53:55]SAM_PROTO_GetFieldsCounters [21:53:55]wFMCommunicate request_size=4 [21:53:55]MH_SAM_APDU [21:53:55]CAPDU: 80 13 00 00 [21:53:55]Write to MH i2c: E2 08 00 64 68 80 13 00 00 00 00 00 00 48 [21:53:55]Write i2c OK [21:53:55]MH_I2C_Read... [21:53:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:53:55]Read from MH i2c: E2 [21:53:55]MH_I2C_Read... [21:53:55]Read from MH i2c: E2 62 00 [21:53:55]MH_I2C_Read... [21:53:55]Read from MH i2c: E2 62 00 64 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 89 71 00 00 0E 04 04 00 73 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 26 [21:53: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 89 71 00 00 0E 04 04 00 73 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 [21:53:55]wFMCommunicate OK [21:53:55]SAM_PROTO_GetFieldsCounters done [21:53:55]requested_item shift.num is exist - process it [21:53:55]requested_item shift.opened is exist - process it [21:53:55]req_shift_opened [21:53:55]FM_GetShiftState [21:53:55]SAM_PROTO_GetShiftState [21:53:55]wFMCommunicate request_size=4 [21:53:55]MH_SAM_APDU [21:53:55]CAPDU: 80 13 01 00 [21:53:55]Write to MH i2c: E2 08 00 65 68 80 13 01 00 00 00 00 00 4A [21:53:55]Write i2c OK [21:53:55]MH_I2C_Read... [21:53:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:55]Read from MH i2c: E2 [21:53:55]MH_I2C_Read... [21:53:55]Read from MH i2c: E2 0E 00 [21:53:55]MH_I2C_Read... [21:53:55]Read from MH i2c: E2 0E 00 65 68 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 63 [21:53:55]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [21:53:55]wFMCommunicate OK [21:53:55]SAM_PROTO_GetShiftState done [21:53:55]FM_GetShiftState done [21:53:55]req_shift_opened done [21:53:55]requested_item shift.open_date is exist - process it [21:53:55]req_shift_open_date [21:53:55]req_shift_open_date done [21:53:55]produce_requested_data done [21:53:55]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29065,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [21:53:55]process_action_free close_receipt [21:53:55]json_value_free [21:53:55]json_value_free done [21:53:55]process_json_proto returns [21:53:55]Send response to host [21:53:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29065,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [21:53:55]free response buf [21:53:55]execute_script done [21:53:55]execute_script returns [21:53:55]free content buf [21:53:55]Sock 7.Close socket [21:53:55]Sock 7.Thread stoped [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]accept exits with 10 [21:58:44]New connection [21:58:44]New thread 3066928484 created [21:58:44]Thread 3066785124 joined [21:58:44]Waiting for new connection... [21:58:44] Sock 10.Parse request [21:58:44]Sock 10.Check first char [21:58:44]Sock 10.First char is OK [21:58:44]request: POST /json_proto HTTP/1.0 [21:58:44]Method: POST [21:58:44]URL: /json_proto [21:58:44]Method is POST - this is cgi request [21:58:44]url: /json_proto [21:58:44]query_string will be loaded in cgi processing [21:58:44]execute_cgi json_proto POST (null) [21:58:44]execute_cgi path=json_proto method=POST [21:58:44]POST find Content-Length [21:58:44]Host: 172.17.33.3:8080 [21:58:44]Content-Length: 811 [21:58:44]Content-Type: application/json [21:58:44] [21:58:44]POST finish read [21:58:44]Found Content-Length = 811 [21:58:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:44]execute_script... [21:58: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)347435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:44]POST & json_proto [21:58:44]process_json_proto [21:58:44]json parsed OK: [21:58:44]protocol is kg_v1.0 [21:58:44]action value=close_receipt [21:58:44]process_action close_receipt [21:58:44]cmd_close_receipt [21:58:44]MH_GetDate [21:58:44]Write to MH i2c: F0 00 00 66 68 BD [21:58:44]Write i2c OK [21:58:44]MH_I2C_Read... [21:58:44]Read from MH i2c: F0 [21:58:44]MH_I2C_Read... [21:58:44]Read from MH i2c: F0 09 00 [21:58:44]MH_I2C_Read... [21:58:44]Read from MH i2c: F0 09 00 66 68 00 1B 00 1B 66 23 5B 8F 65 D4 [21:58:44]GetLastDocTimeStamp 1713045238 [21:58:44]current date 1713045531 [21:58:44]FM_GetShiftState [21:58:44]SAM_PROTO_GetShiftState [21:58:44]wFMCommunicate request_size=4 [21:58:44]MH_SAM_APDU [21:58:44]CAPDU: 80 13 01 00 [21:58:44]Write to MH i2c: E2 08 00 67 68 80 13 01 00 00 00 00 00 4C [21:58:44]Write i2c OK [21:58:44]MH_I2C_Read... [21:58:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:44]Read from MH i2c: E2 [21:58:44]MH_I2C_Read... [21:58:44]Read from MH i2c: E2 0E 00 [21:58:44]MH_I2C_Read... [21:58:44]Read from MH i2c: E2 0E 00 67 68 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 65 [21:58:44]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [21:58:44]wFMCommunicate OK [21:58:44]SAM_PROTO_GetShiftState done [21:58:44]FM_GetShiftState done [21:58:44]opened in 1712967615 [21:58:44]opened+sec_in_day 1713054015 [21:58:44]quantity*price = 100016 [21:58:44]sum+1 = 100017 [21:58:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 273 13.04.2024 21:58 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29066 ФПД: 163750365841206 1/tax-web-control/client/api/v1/ticket?date=20240413T215851&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29066&fm=163750365841206&tin=02508201610067®Number=0000138879044617&sum=100016 [21:58:45]StoreToDocumentArchive [21:58:45]shift 115 fd 29066 [21:58:45]save to /storage/0115/doc_00029066 [21:58:45]save last doc name /storage/0115/doc_00029066 to /storage/kkm_last_doc_name [21:58:45]save OK [21:58:45]Clear old archive folders... [21:58:45]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:58:45]tlvbuf is 011EE830 [21:58:45]SAM_PROTO_ClearQueue [21:58:45]wFMCommunicate request_size=4 [21:58:45]MH_SAM_APDU [21:58:45]CAPDU: 80 09 00 00 [21:58:45]Write to MH i2c: E2 08 00 74 68 80 09 00 00 00 00 00 00 4E [21:58:45]Write i2c OK [21:58:45]MH_I2C_Read... [21:58:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:58:45]Read from MH i2c: E2 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 03 00 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 03 00 74 68 00 90 00 50 [21:58:45]RAPDU: 90 00 [21:58:45]wFMCommunicate OK [21:58:45]SAM_PROTO_ClearQueue done [21:58:45]KKMCreateOFDPacket [21:58:45]OFDProtocolAddRootSTLVToBuf [21:58:45]FM_MakeSignedData [21:58:45]FM_MakeSignedData [21:58:45]SAM_PROTO_SignData [21:58:45]wFMCommunicate request_size=4 [21:58:45]MH_SAM_APDU [21:58:45]CAPDU: 80 0D 01 02 [21:58:45]Write to MH i2c: E2 08 00 75 68 80 0D 01 02 00 00 00 00 56 [21:58:45]Write i2c OK [21:58:45]MH_I2C_Read... [21:58:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:58:45]Read from MH i2c: E2 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 03 00 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 03 00 75 68 00 90 00 51 [21:58:45]RAPDU: 90 00 [21:58:45]wFMCommunicate OK [21:58:45]wFMCommunicate request_size=255 [21:58:45]MH_SAM_APDU [21:58:45]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 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 11 01 00 00 F4 03 04 00 1B 00 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8A 71 00 00 35 04 06 00 94 EE [21:58:45]Write to MH i2c: E2 02 01 76 68 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 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 11 01 00 00 F4 03 04 00 1B 00 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8A 71 00 00 35 04 06 00 94 EE 00 00 AA [21:58:45]Write i2c OK [21:58:45]MH_I2C_Read... [21:58:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:45]Read from MH i2c: E2 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 03 00 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 03 00 76 68 00 90 00 52 [21:58:45]RAPDU: 90 00 [21:58:45]wFMCommunicate OK [21:58:45]wFMCommunicate request_size=9 [21:58:45]MH_SAM_APDU [21:58:45]CAPDU: 80 0D 02 02 04 1A 63 47 36 [21:58:45]Write to MH i2c: E2 0C 00 77 68 80 0D 02 02 04 00 1A 63 47 36 00 00 5B [21:58:45]Write i2c OK [21:58:45]MH_I2C_Read... [21:58:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:45]Read from MH i2c: E2 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 03 00 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 03 00 77 68 00 90 00 53 [21:58:45]RAPDU: 90 00 [21:58:45]wFMCommunicate OK [21:58:45]wFMCommunicate request_size=4 [21:58:45]MH_SAM_APDU [21:58:45]CAPDU: 80 0D 03 02 [21:58:45]Write to MH i2c: E2 08 00 78 68 80 0D 03 02 00 00 00 00 5B [21:58:45]Write i2c OK [21:58:45]MH_I2C_Read... [21:58:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:58:45]Read from MH i2c: E2 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 0B 00 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 0B 00 78 68 00 44 3F 8C F6 52 5F 9B 2F 90 00 DC [21:58:45]RAPDU: 44 3F 8C F6 52 5F 9B 2F 90 00 [21:58:45]wFMCommunicate OK [21:58:45]SAM_PROTO_SignData done [21:58:45]FM_MakeSignedData done [21:58:45]CreateOFDProtocolMessage [21:58:45]wFMCommunicate request_size=4 [21:58:45]MH_SAM_APDU [21:58:45]CAPDU: 80 11 00 00 [21:58:45]Write to MH i2c: E2 08 00 79 68 80 11 00 00 00 00 00 00 5B [21:58:45]Write i2c OK [21:58:45]MH_I2C_Read... [21:58:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:45]Read from MH i2c: E2 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 17 00 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: E2 17 00 79 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AA [21:58:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:58:45]wFMCommunicate OK [21:58:45]CreateOFDProtocolMessage done [21:58:45]OFDSenderStorePacket 29066 [21:58:45]StoreOFDPacket docnum=29066 [21:58:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 1B 45 06 01 54 81 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 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 11 01 00 00 F4 03 04 00 1B 00 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8A 71 00 00 35 04 06 00 94 EE 1A 63 47 36 44 3F 8C F6 52 5F 9B 2F [21:58:45]CheckFolder [21:58:45]dirname=/storage/ofd_packets [21:58:45]CheckFolder done [21:58:45]ProducePacketName [21:58:45]name=ofd_packets/00029066 [21:58:45]NVStorageSaveData ofd_packets/00029066 [21:58:45]File name is /storage/ofd_packets/00029066 [21:58:45]Write 300 bytes [21:58:45]NVStorageSaveData done [21:58:45]OFDSenderStorePacket done [21:58:45]KKMCreateOFDPacket done [21:58:45]NVStorageSaveData kkm_last_timestamp [21:58:45]File name is /storage/kkm_last_timestamp [21:58:45]Write 4 bytes [21:58:45]NVStorageSaveData done [21:58:45]ExternCall_PrintAddStr [21:58:45]wPrintStart [21:58:45]Write to MH i2c: 01 00 00 7A 68 E2 [21:58:45]Write i2c OK [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: 01 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: 01 07 00 [21:58:45]MH_I2C_Read... [21:58:45]Read from MH i2c: 01 07 00 7A 68 00 00 00 00 00 FF 0F F7 [21:58:45]RasterBufferAndPrint [21:58:45]line Счет N : (1)347435 [21:58:45]line ИНН: 02508201610067 [21:58:45]line Контрольно-Кассовый Чек [21:58:45]line ПРОДАЖА [21:58:45]line ТРК (МРК, ГНК) : 71 [21:58:45]line Товар: 2711129700 [21:58:45]line ГАЗ-К-5 [21:58:45]line 30.400 * 32.90 [21:58:45]line = 1000.16 [21:58:45]line НДС 12% НСП 1% [21:58:45]line > о реализуемом товаре [21:58:45]line ИТОГО: 1000.16 [21:58:45]line НСП 1% : 8.85 [21:58:45]line НДС 12% : 106.21 [21:58:45]line Наличными: 0.00 [21:58:45]line Безнал.: 1000.16 [21:58:45]line Место: АЗС № 108 "Партнер Нефть" [21:58:45]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [21:58:45]line СНО: Общий режим [21:58:45]line Чек 273 13.04.2024 21:58 [21:58:45]line Смена: 115 ФФД: 1.0 [21:58:45]line ЗНМ: 0300000027 [21:58:45]line РНМ: 0000138879044617 [21:58:45]line Версия ККМ: 001 [21:58:45]line Платежная система: О! деньги [21:58:45]line ФМ: 0000000000963154 [21:58:45]line ФД: 29066 [21:58:45]line ФПД: 163750365841206 [21:58:45]line 1/tax-web-control/client/api/v1/ticket?date=20240413T215851&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29066&fm=163750365841206&tin=02508201610067®Number=0000138879044617&sum=100016 [21:58:45]written 0, free lines is 4095 [21:58:46]OFD Sender: Processing packet 29066 [packets to send 8, broken 7] [21:58:46]ProducePacketName [21:58:46]name=ofd_packets/00029066 [21:58:46]OFD Sender: To server: pG, [21:58:46]CommunicateWithHost lk.salyk.kg:30040 [21:58:46]ConnectInit lk.salyk.kg [21:58:46]Connected sock=9 [21:58: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 31 35 34 0E 01 00 00 1B 45 06 01 54 81 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 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 11 01 00 00 F4 03 04 00 1B 00 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8A 71 00 00 35 04 06 00 94 EE 1A 63 47 36 44 3F 8C F6 52 5F 9B 2F [21:58:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A9 65 47 00 40 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 31 35 34 10 04 04 00 8A 71 00 00 F4 03 04 00 C0 AA 1A 66 B6 04 01 00 00 95 43 7F 97 6E C7 4D A5 [21:58:46]CommunicateWithHost err = 0 [21:58:46]CheckOFDResponse [21:58:46]1017 (14) - 77093643461234 [21:58:46]1041 (16) - 0000000000963154 [21:58:46]1040 (4) - 29066 [21:58:46]1012 (4) - 13.04.2024 15:54 [21:58:46]1206 (1) - 0 [21:58:46]OFD Sender: Remove packet 29066 [21:58:46]ProducePacketName [21:58:46]name=ofd_packets/00029066 [21:58:46]NVStorageDeleteData [21:58:46]Write to MH i2c: 01 00 00 A3 68 0B [21:58:46]Write i2c OK [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: 01 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: 01 07 00 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: 01 07 00 A3 68 00 00 00 00 00 DB 0C F9 [21:58:46]RasterBufferAndPrint [21:58:46]line [21:58:46]line [21:58:46]line [21:58:46]line [21:58:46]line [21:58:46]written 0, free lines is 3298 [21:58:46]MH_Cut [21:58:46]Write to MH i2c: D1 01 00 AA 68 01 E4 [21:58:46]Write i2c OK [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: D1 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: D1 01 00 [21:58:46]MH_I2C_Read... [21:58:46]Read from MH i2c: D1 01 00 AA 68 00 E3 [21:58:46]Write to MH i2c: 01 00 00 AB 68 13 [21:58:46]Write i2c OK [21:58:46]MH_I2C_Read... [21:58:46]OFD Sender: No OFD packet to send [21:58:47]*** Cut start [21:58:47]*** Partial cut [21:58:47]*** CUTSNS_PIN = 1 [21:58:47]*** CUTSNS_PIN = 0 [21:58:47]*** Brake cut motor [21:58:47]Read from MH i2c: 01 [21:58:47]MH_I2C_Read... [21:58:47]*** Stop cut motor [21:58:47]*** Cut end [21:58:47]Read from MH i2c: 01 07 00 [21:58:47]MH_I2C_Read... [21:58:47]Read from MH i2c: 01 07 00 AB 68 00 00 00 00 00 FF 0F 28 [21:58:47]process_action close_receipt done [21:58:47]requested_data is exist [21:58:47]produce_requested_data [21:58:47]requested_item fm.sn is exist - process it [21:58:47]wFMCommunicate request_size=4 [21:58:47]MH_SAM_APDU [21:58:47]CAPDU: 80 11 00 00 [21:58:47]Write to MH i2c: E2 08 00 AC 68 80 11 00 00 00 00 00 00 8E [21:58:47]Write i2c OK [21:58:47]MH_I2C_Read... [21:58:47]Read from MH i2c: E2 [21:58:47]MH_I2C_Read... [21:58:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:47]Read from MH i2c: E2 17 00 [21:58:47]MH_I2C_Read... [21:58:47]Read from MH i2c: E2 17 00 AC 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DD [21:58:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [21:58:47]wFMCommunicate OK [21:58:47]requested_item fd.num is exist - process it [21:58:47]SAM_PROTO_GetFieldsCounters [21:58:47]wFMCommunicate request_size=4 [21:58:47]MH_SAM_APDU [21:58:47]CAPDU: 80 13 00 00 [21:58:47]Write to MH i2c: E2 08 00 AD 68 80 13 00 00 00 00 00 00 91 [21:58:47]Write i2c OK [21:58:47]MH_I2C_Read... [21:58:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:58:48]Read from MH i2c: E2 [21:58:48]MH_I2C_Read... [21:58:48]Read from MH i2c: E2 62 00 [21:58:48]MH_I2C_Read... [21:58:48]Read from MH i2c: E2 62 00 AD 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8A 71 00 00 0E 04 04 00 73 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 73 [21:58: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8A 71 00 00 0E 04 04 00 73 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 [21:58:48]wFMCommunicate OK [21:58:48]SAM_PROTO_GetFieldsCounters done [21:58:48]requested_item shift.num is exist - process it [21:58:48]requested_item shift.opened is exist - process it [21:58:48]req_shift_opened [21:58:48]FM_GetShiftState [21:58:48]SAM_PROTO_GetShiftState [21:58:48]wFMCommunicate request_size=4 [21:58:48]MH_SAM_APDU [21:58:48]CAPDU: 80 13 01 00 [21:58:48]Write to MH i2c: E2 08 00 AE 68 80 13 01 00 00 00 00 00 93 [21:58:48]Write i2c OK [21:58:48]MH_I2C_Read... [21:58:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:48]Read from MH i2c: E2 [21:58:48]MH_I2C_Read... [21:58:48]Read from MH i2c: E2 0E 00 [21:58:48]MH_I2C_Read... [21:58:48]Read from MH i2c: E2 0E 00 AE 68 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 AC [21:58:48]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [21:58:48]wFMCommunicate OK [21:58:48]SAM_PROTO_GetShiftState done [21:58:48]FM_GetShiftState done [21:58:48]req_shift_opened done [21:58:48]requested_item shift.open_date is exist - process it [21:58:48]req_shift_open_date [21:58:48]req_shift_open_date done [21:58:48]produce_requested_data done [21:58:48]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29066,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [21:58:48]process_action_free close_receipt [21:58:48]json_value_free [21:58:48]json_value_free done [21:58:48]process_json_proto returns [21:58:48]Send response to host [21:58:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29066,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [21:58:48]free response buf [21:58:48]execute_script done [21:58:48]execute_script returns [21:58:48]free content buf [21:58:48]Sock 10.Close socket [21:58:48]Sock 10.Thread stoped [21:58:51]OFD Sender: No OFD packet to send [21:58:56]OFD Sender: No OFD packet to send [21:59:01]OFD Sender: No OFD packet to send [21:59:06]OFD Sender: No OFD packet to send [21:59:11]OFD Sender: No OFD packet to send [21:59:16]OFD Sender: No OFD packet to send [21:59:21]OFD Sender: No OFD packet to send [21:59:26]OFD Sender: No OFD packet to send [21:59:31]OFD Sender: No OFD packet to send [21:59:36]OFD Sender: No OFD packet to send [21:59:41]OFD Sender: No OFD packet to send [21:59:46]OFD Sender: No OFD packet to send [21:59:51]OFD Sender: No OFD packet to send [21:59:56]OFD Sender: No OFD packet to send [22:00:01]OFD Sender: No OFD packet to send [22:00:06]OFD Sender: No OFD packet to send [22:00:11]OFD Sender: No OFD packet to send [22:00:16]OFD Sender: No OFD packet to send [22:00:21]OFD Sender: No OFD packet to send [22:00:26]OFD Sender: No OFD packet to send [22:00:31]OFD Sender: No OFD packet to send [22:00:36]OFD Sender: No OFD packet to send [22:00:41]OFD Sender: No OFD packet to send [22:00:46]OFD Sender: No OFD packet to send [22:00:51]OFD Sender: No OFD packet to send [22:00:56]OFD Sender: No OFD packet to send [22:01:01]OFD Sender: No OFD packet to send [22:01:06]OFD Sender: No OFD packet to send [22:01:11]OFD Sender: No OFD packet to send [22:01:16]OFD Sender: No OFD packet to send [22:01:21]OFD Sender: No OFD packet to send [22:01:26]OFD Sender: No OFD packet to send [22:01:31]OFD Sender: No OFD packet to send [22:01:36]OFD Sender: No OFD packet to send [22:01:41]OFD Sender: No OFD packet to send [22:01:46]OFD Sender: No OFD packet to send [22:01:51]OFD Sender: No OFD packet to send [22:01:56]OFD Sender: No OFD packet to send [22:02:01]OFD Sender: No OFD packet to send [22:02:06]OFD Sender: No OFD packet to send [22:02:11]OFD Sender: No OFD packet to send [22:02:16]OFD Sender: No OFD packet to send [22:02:21]OFD Sender: No OFD packet to send [22:02:27]OFD Sender: No OFD packet to send [22:02:32]OFD Sender: No OFD packet to send [22:02:37]OFD Sender: No OFD packet to send [22:02:42]OFD Sender: No OFD packet to send [22:02:47]OFD Sender: No OFD packet to send [22:02:52]OFD Sender: No OFD packet to send [22:02:57]OFD Sender: No OFD packet to send [22:03:02]OFD Sender: No OFD packet to send [22:03:07]OFD Sender: No OFD packet to send [22:03:12]OFD Sender: No OFD packet to send [22:03:17]OFD Sender: No OFD packet to send [22:03:22]OFD Sender: No OFD packet to send [22:03:27]OFD Sender: No OFD packet to send [22:03:32]OFD Sender: No OFD packet to send [22:03:37]OFD Sender: No OFD packet to send [22:03:42]OFD Sender: No OFD packet to send [22:03:47]OFD Sender: No OFD packet to send [22:03:52]OFD Sender: No OFD packet to send [22:03:57]OFD Sender: No OFD packet to send [22:04:02]OFD Sender: No OFD packet to send [22:04:07]OFD Sender: No OFD packet to send [22:04:12]OFD Sender: No OFD packet to send [22:04:17]OFD Sender: No OFD packet to send [22:04:22]OFD Sender: No OFD packet to send [22:04:27]OFD Sender: No OFD packet to send [22:04:32]OFD Sender: No OFD packet to send [22:04:37]OFD Sender: No OFD packet to send [22:04:42]OFD Sender: No OFD packet to send [22:04:47]OFD Sender: No OFD packet to send [22:04:52]OFD Sender: No OFD packet to send [22:04:57]OFD Sender: No OFD packet to send [22:05:02]OFD Sender: No OFD packet to send [22:05:07]OFD Sender: No OFD packet to send [22:05:12]OFD Sender: No OFD packet to send [22:05:17]OFD Sender: No OFD packet to send [22:05:22]OFD Sender: No OFD packet to send [22:05:27]OFD Sender: No OFD packet to send [22:05:32]OFD Sender: No OFD packet to send [22:05:37]OFD Sender: No OFD packet to send [22:05:42]OFD Sender: No OFD packet to send [22:05:47]OFD Sender: No OFD packet to send [22:05:52]OFD Sender: No OFD packet to send [22:05:57]OFD Sender: No OFD packet to send [22:06:02]OFD Sender: No OFD packet to send [22:06:07]OFD Sender: No OFD packet to send [22:06:12]OFD Sender: No OFD packet to send [22:06:17]OFD Sender: No OFD packet to send [22:06:22]OFD Sender: No OFD packet to send [22:06:27]OFD Sender: No OFD packet to send [22:06:32]OFD Sender: No OFD packet to send [22:06:37]OFD Sender: No OFD packet to send [22:06:42]OFD Sender: No OFD packet to send [22:06:47]OFD Sender: No OFD packet to send [22:06:52]OFD Sender: No OFD packet to send [22:06:57]OFD Sender: No OFD packet to send [22:07:02]OFD Sender: No OFD packet to send [22:07:07]OFD Sender: No OFD packet to send [22:07:12]OFD Sender: No OFD packet to send [22:07:17]OFD Sender: No OFD packet to send [22:07:22]OFD Sender: No OFD packet to send [22:07:27]OFD Sender: No OFD packet to send [22:07:32]OFD Sender: No OFD packet to send [22:07:37]OFD Sender: No OFD packet to send [22:07:42]OFD Sender: No OFD packet to send [22:07:47]OFD Sender: No OFD packet to send [22:07:52]OFD Sender: No OFD packet to send [22:07:57]OFD Sender: No OFD packet to send [22:08:02]OFD Sender: No OFD packet to send [22:08:07]OFD Sender: No OFD packet to send [22:08:12]OFD Sender: No OFD packet to send [22:08:17]OFD Sender: No OFD packet to send [22:08:22]OFD Sender: No OFD packet to send [22:08:27]OFD Sender: No OFD packet to send [22:08:32]OFD Sender: No OFD packet to send [22:08:37]OFD Sender: No OFD packet to send [22:08:42]OFD Sender: No OFD packet to send [22:08:47]OFD Sender: No OFD packet to send [22:08:52]OFD Sender: No OFD packet to send [22:08:57]OFD Sender: No OFD packet to send [22:09:00]accept exits with 7 [22:09:00]New connection [22:09:00]New thread 3066785124 created [22:09:00]Thread 3066928484 joined [22:09:00]Waiting for new connection... [22:09:00] Sock 7.Parse request [22:09:00]Sock 7.Check first char [22:09:00]Sock 7.First char is OK [22:09:00]request: POST /json_proto HTTP/1.0 [22:09:00]Method: POST [22:09:00]URL: /json_proto [22:09:00]Method is POST - this is cgi request [22:09:00]url: /json_proto [22:09:00]query_string will be loaded in cgi processing [22:09:00]execute_cgi json_proto POST (null) [22:09:00]execute_cgi path=json_proto method=POST [22:09:00]POST find Content-Length [22:09:00]Host: 172.17.33.3:8080 [22:09:00]Content-Length: 806 [22:09:00]Content-Type: application/json [22:09:00] [22:09:00]POST finish read [22:09:00]Found Content-Length = 806 [22:09:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347436", "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" : 64.30, "quantity" : 10.110, "sum" : 650.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 650.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:00]execute_script... [22:09: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)347436", "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" : 64.30, "quantity" : 10.110, "sum" : 650.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 650.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:00]POST & json_proto [22:09:00]process_json_proto [22:09:00]json parsed OK: [22:09:00]protocol is kg_v1.0 [22:09:00]action value=close_receipt [22:09:00]process_action close_receipt [22:09:00]cmd_close_receipt [22:09:00]MH_GetDate [22:09:00]Write to MH i2c: F0 00 00 AF 68 06 [22:09:00]Write i2c OK [22:09:00]MH_I2C_Read... [22:09:00]Read from MH i2c: F0 [22:09:00]MH_I2C_Read... [22:09:00]Read from MH i2c: F0 09 00 [22:09:00]MH_I2C_Read... [22:09:00]Read from MH i2c: F0 09 00 AF 68 00 83 02 1B 66 23 5B 8F 65 87 [22:09:00]GetLastDocTimeStamp 1713045531 [22:09:00]current date 1713046147 [22:09:00]FM_GetShiftState [22:09:00]SAM_PROTO_GetShiftState [22:09:00]wFMCommunicate request_size=4 [22:09:00]MH_SAM_APDU [22:09:00]CAPDU: 80 13 01 00 [22:09:00]Write to MH i2c: E2 08 00 B0 68 80 13 01 00 00 00 00 00 95 [22:09:00]Write i2c OK [22:09:00]MH_I2C_Read... [22:09:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:00]Read from MH i2c: E2 [22:09:00]MH_I2C_Read... [22:09:00]Read from MH i2c: E2 0E 00 [22:09:00]MH_I2C_Read... [22:09:00]Read from MH i2c: E2 0E 00 B0 68 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 AE [22:09:00]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [22:09:00]wFMCommunicate OK [22:09:00]SAM_PROTO_GetShiftState done [22:09:00]FM_GetShiftState done [22:09:00]opened in 1712967615 [22:09:00]opened+sec_in_day 1713054015 [22:09:00]quantity*price = 65007 [22:09:00]sum+1 = 65008 [22:09:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 650.07 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 0.00 Безнал.: 650.07 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 274 13.04.2024 22:09 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29067 ФПД: 222008387124457 1/tax-web-control/client/api/v1/ticket?date=20240413T220907&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29067&fm=222008387124457&tin=02508201610067®Number=0000138879044617&sum=65007 [22:09:01]StoreToDocumentArchive [22:09:01]shift 115 fd 29067 [22:09:01]save to /storage/0115/doc_00029067 [22:09:01]save last doc name /storage/0115/doc_00029067 to /storage/kkm_last_doc_name [22:09:01]save OK [22:09:01]Clear old archive folders... [22:09:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:09:01]tlvbuf is 0125FF80 [22:09:01]SAM_PROTO_ClearQueue [22:09:01]wFMCommunicate request_size=4 [22:09:01]MH_SAM_APDU [22:09:01]CAPDU: 80 09 00 00 [22:09:01]Write to MH i2c: E2 08 00 BD 68 80 09 00 00 00 00 00 00 97 [22:09:01]Write i2c OK [22:09:01]MH_I2C_Read... [22:09:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:09:02]Read from MH i2c: E2 [22:09:02]MH_I2C_Read... [22:09:02]Read from MH i2c: E2 03 00 [22:09:02]MH_I2C_Read... [22:09:02]Read from MH i2c: E2 03 00 BD 68 00 90 00 99 [22:09:02]RAPDU: 90 00 [22:09:02]wFMCommunicate OK [22:09:02]SAM_PROTO_ClearQueue done [22:09:02]KKMCreateOFDPacket [22:09:02]OFDProtocolAddRootSTLVToBuf [22:09:02]FM_MakeSignedData [22:09:02]FM_MakeSignedData [22:09:02]SAM_PROTO_SignData [22:09:02]wFMCommunicate request_size=4 [22:09:02]MH_SAM_APDU [22:09:02]CAPDU: 80 0D 01 02 [22:09:02]Write to MH i2c: E2 08 00 BE 68 80 0D 01 02 00 00 00 00 9F [22:09:02]Write i2c OK [22:09:02]MH_I2C_Read... [22:09:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:09:02]Read from MH i2c: E2 [22:09:02]MH_I2C_Read... [22:09:02]Read from MH i2c: E2 03 00 [22:09:02]MH_I2C_Read... [22:09:02]Read from MH i2c: E2 03 00 BE 68 00 90 00 9A [22:09:02]RAPDU: 90 00 [22:09:02]wFMCommunicate OK [22:09:02]wFMCommunicate request_size=255 [22:09:02]MH_SAM_APDU [22:09: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 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 83 02 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8B 71 00 00 35 04 06 00 C9 [22:09:02]Write to MH i2c: E2 02 01 BF 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 83 02 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8B 71 00 00 35 04 06 00 C9 00 00 09 [22:09:02]Write i2c OK [22:09:02]MH_I2C_Read... [22:09:02]OFD Sender: No OFD packet to send [22:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:02]Read from MH i2c: E2 [22:09:02]MH_I2C_Read... [22:09:02]Read from MH i2c: E2 03 00 [22:09:02]MH_I2C_Read... [22:09:02]Read from MH i2c: E2 03 00 BF 68 00 90 00 9B [22:09:02]RAPDU: 90 00 [22:09:02]wFMCommunicate OK [22:09:02]wFMCommunicate request_size=10 [22:09:02]MH_SAM_APDU [22:09:02]CAPDU: 80 0D 02 02 05 EA 5B 0D 3C E9 [22:09:02]Write to MH i2c: E2 0D 00 C0 68 80 0D 02 02 05 00 EA 5B 0D 3C E9 00 00 23 [22:09:02]Write i2c OK [22:09:02]MH_I2C_Read... [22:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:02]Read from MH i2c: E2 [22:09:02]MH_I2C_Read... [22:09:02]Read from MH i2c: E2 03 00 [22:09:02]MH_I2C_Read... [22:09:02]Read from MH i2c: E2 03 00 C0 68 00 90 00 9C [22:09:02]RAPDU: 90 00 [22:09:02]wFMCommunicate OK [22:09:02]wFMCommunicate request_size=4 [22:09:02]MH_SAM_APDU [22:09:02]CAPDU: 80 0D 03 02 [22:09:02]Write to MH i2c: E2 08 00 C1 68 80 0D 03 02 00 00 00 00 A4 [22:09:02]Write i2c OK [22:09:02]MH_I2C_Read... [22:09:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:09:02]Read from MH i2c: E2 [22:09:02]MH_I2C_Read... [22:09:02]Read from MH i2c: E2 0B 00 [22:09:02]MH_I2C_Read... [22:09:02]Read from MH i2c: E2 0B 00 C1 68 00 5B 50 2C F5 76 C0 28 33 90 00 02 [22:09:02]RAPDU: 5B 50 2C F5 76 C0 28 33 90 00 [22:09:02]wFMCommunicate OK [22:09:02]SAM_PROTO_SignData done [22:09:02]FM_MakeSignedData done [22:09:02]CreateOFDProtocolMessage [22:09:02]wFMCommunicate request_size=4 [22:09:02]MH_SAM_APDU [22:09:02]CAPDU: 80 11 00 00 [22:09:02]Write to MH i2c: E2 08 00 C2 68 80 11 00 00 00 00 00 00 A4 [22:09:02]Write i2c OK [22:09:02]MH_I2C_Read... [22:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:02]Read from MH i2c: E2 [22:09:02]MH_I2C_Read... [22:09:02]Read from MH i2c: E2 17 00 [22:09:02]MH_I2C_Read... [22:09:02]Read from MH i2c: E2 17 00 C2 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F3 [22:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:09:02]wFMCommunicate OK [22:09:02]CreateOFDProtocolMessage done [22:09:02]OFDSenderStorePacket 29067 [22:09:02]StoreOFDPacket docnum=29067 [22:09:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 56 A9 07 01 AC 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 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 83 02 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8B 71 00 00 35 04 06 00 C9 EA 5B 0D 3C E9 5B 50 2C F5 76 C0 28 33 [22:09:02]CheckFolder [22:09:02]dirname=/storage/ofd_packets [22:09:02]CheckFolder done [22:09:02]ProducePacketName [22:09:02]name=ofd_packets/00029067 [22:09:02]NVStorageSaveData ofd_packets/00029067 [22:09:02]File name is /storage/ofd_packets/00029067 [22:09:02]Write 301 bytes [22:09:02]NVStorageSaveData done [22:09:02]OFDSenderStorePacket done [22:09:02]KKMCreateOFDPacket done [22:09:02]NVStorageSaveData kkm_last_timestamp [22:09:02]File name is /storage/kkm_last_timestamp [22:09:02]Write 4 bytes [22:09:02]NVStorageSaveData done [22:09:02]ExternCall_PrintAddStr [22:09:02]wPrintStart [22:09:02]Write to MH i2c: 01 00 00 C3 68 2B [22:09:02]Write i2c OK [22:09:02]MH_I2C_Read... [22:09:02]Read from MH i2c: 01 [22:09:02]MH_I2C_Read... [22:09:02]Read from MH i2c: 01 07 00 [22:09:02]MH_I2C_Read... [22:09:02]Read from MH i2c: 01 07 00 C3 68 00 00 00 00 00 FF 0F 40 [22:09:02]RasterBufferAndPrint [22:09:02]line Счет N : (1)347436 [22:09:02]line ИНН: 02508201610067 [22:09:02]line Контрольно-Кассовый Чек [22:09:02]line ПРОДАЖА [22:09:02]line ТРК (МРК, ГНК) : 42 [22:09:02]line Товар: 2710124130 [22:09:02]line Аи-92-К-5 [22:09:02]line 10.110 * 64.30 [22:09:02]line = 650.07 [22:09:02]line НДС 12% НСП 1% [22:09:02]line > о реализуемом товаре [22:09:02]line ИТОГО: 650.07 [22:09:02]line НСП 1% : 5.75 [22:09:02]line НДС 12% : 69.03 [22:09:02]line Наличными: 0.00 [22:09:02]line Безнал.: 650.07 [22:09:02]line Место: АЗС № 108 "Партнер Нефть" [22:09:02]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:09:02]line СНО: Общий режим [22:09:02]line Чек 274 13.04.2024 22:09 [22:09:02]line Смена: 115 ФФД: 1.0 [22:09:02]line ЗНМ: 0300000027 [22:09:02]line РНМ: 0000138879044617 [22:09:02]line Версия ККМ: 001 [22:09:02]line Платежная система: О! деньги [22:09:02]line ФМ: 0000000000963154 [22:09:02]line ФД: 29067 [22:09:02]line ФПД: 222008387124457 [22:09:02]line 1/tax-web-control/client/api/v1/ticket?date=20240413T220907&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29067&fm=222008387124457&tin=02508201610067®Number=0000138879044617&sum=65007 [22:09:02]OFD Sender: Processing packet 29067 [packets to send 8, broken 7] [22:09:02]ProducePacketName [22:09:02]name=ofd_packets/00029067 [22:09:02]OFD Sender: To server: pG, [22:09:02]CommunicateWithHost lk.salyk.kg:30040 [22:09:02]ConnectInit lk.salyk.kg [22:09:02]written 0, free lines is 4095 [22:09:02]Connected sock=10 [22:09: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 31 35 34 0F 01 00 00 56 A9 07 01 AC 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 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 83 02 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8B 71 00 00 35 04 06 00 C9 EA 5B 0D 3C E9 5B 50 2C F5 76 C0 28 33 [22:09:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 02 75 47 00 3B 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8B 71 00 00 F4 03 04 00 29 AD 1A 66 B6 04 01 00 00 78 39 EE 6F 21 19 5F 19 [22:09:03]CommunicateWithHost err = 0 [22:09:03]CheckOFDResponse [22:09:03]1017 (14) - 77093643461234 [22:09:03]1041 (16) - 0000000000963154 [22:09:03]1040 (4) - 29067 [22:09:03]1012 (4) - 13.04.2024 16:04 [22:09:03]1206 (1) - 0 [22:09:03]OFD Sender: Remove packet 29067 [22:09:03]ProducePacketName [22:09:03]name=ofd_packets/00029067 [22:09:03]NVStorageDeleteData [22:09:03]Write to MH i2c: 01 00 00 EC 68 54 [22:09:03]Write i2c OK [22:09:03]MH_I2C_Read... [22:09:03]Read from MH i2c: 01 [22:09:03]MH_I2C_Read... [22:09:03]Read from MH i2c: 01 07 00 [22:09:03]MH_I2C_Read... [22:09:03]Read from MH i2c: 01 07 00 EC 68 00 00 00 00 00 D8 0C 3F [22:09:03]RasterBufferAndPrint [22:09:03]line [22:09:03]line [22:09:03]line [22:09:03]line [22:09:03]line [22:09:03]written 0, free lines is 3295 [22:09:03]MH_Cut [22:09:03]Write to MH i2c: D1 01 00 F3 68 01 2D [22:09:03]Write i2c OK [22:09:03]MH_I2C_Read... [22:09:03]Read from MH i2c: D1 [22:09:03]MH_I2C_Read... [22:09:03]Read from MH i2c: D1 01 00 [22:09:03]MH_I2C_Read... [22:09:03]Read from MH i2c: D1 01 00 F3 68 00 2C [22:09:03]Write to MH i2c: 01 00 00 F4 68 5C [22:09:03]Write i2c OK [22:09:03]MH_I2C_Read... [22:09:03]OFD Sender: No OFD packet to send [22:09:04]*** Cut start [22:09:04]*** Partial cut [22:09:04]*** CUTSNS_PIN = 1 [22:09:04]*** CUTSNS_PIN = 0 [22:09:04]*** Brake cut motor [22:09:04]Read from MH i2c: 01 [22:09:04]*** Stop cut motor [22:09:04]*** Cut end [22:09:04]MH_I2C_Read... [22:09:04]Read from MH i2c: 01 07 00 [22:09:04]MH_I2C_Read... [22:09:04]Read from MH i2c: 01 07 00 F4 68 00 00 00 00 00 FF 0F 71 [22:09:04]process_action close_receipt done [22:09:04]requested_data is exist [22:09:04]produce_requested_data [22:09:04]requested_item fm.sn is exist - process it [22:09:04]wFMCommunicate request_size=4 [22:09:04]MH_SAM_APDU [22:09:04]CAPDU: 80 11 00 00 [22:09:04]Write to MH i2c: E2 08 00 F5 68 80 11 00 00 00 00 00 00 D7 [22:09:04]Write i2c OK [22:09:04]MH_I2C_Read... [22:09:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:04]Read from MH i2c: E2 [22:09:04]MH_I2C_Read... [22:09:04]Read from MH i2c: E2 17 00 [22:09:04]MH_I2C_Read... [22:09:04]Read from MH i2c: E2 17 00 F5 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 26 [22:09:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:09:04]wFMCommunicate OK [22:09:04]requested_item fd.num is exist - process it [22:09:04]SAM_PROTO_GetFieldsCounters [22:09:04]wFMCommunicate request_size=4 [22:09:04]MH_SAM_APDU [22:09:04]CAPDU: 80 13 00 00 [22:09:04]Write to MH i2c: E2 08 00 F6 68 80 13 00 00 00 00 00 00 DA [22:09:04]Write i2c OK [22:09:04]MH_I2C_Read... [22:09:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:09:04]Read from MH i2c: E2 [22:09:04]MH_I2C_Read... [22:09:04]Read from MH i2c: E2 62 00 [22:09:04]MH_I2C_Read... [22:09:04]Read from MH i2c: E2 62 00 F6 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8B 71 00 00 0E 04 04 00 73 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 C0 [22:09: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8B 71 00 00 0E 04 04 00 73 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 [22:09:04]wFMCommunicate OK [22:09:04]SAM_PROTO_GetFieldsCounters done [22:09:04]requested_item shift.num is exist - process it [22:09:04]requested_item shift.opened is exist - process it [22:09:04]req_shift_opened [22:09:04]FM_GetShiftState [22:09:04]SAM_PROTO_GetShiftState [22:09:04]wFMCommunicate request_size=4 [22:09:04]MH_SAM_APDU [22:09:04]CAPDU: 80 13 01 00 [22:09:04]Write to MH i2c: E2 08 00 F7 68 80 13 01 00 00 00 00 00 DC [22:09:04]Write i2c OK [22:09:04]MH_I2C_Read... [22:09:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:04]Read from MH i2c: E2 [22:09:04]MH_I2C_Read... [22:09:04]Read from MH i2c: E2 0E 00 [22:09:04]MH_I2C_Read... [22:09:04]Read from MH i2c: E2 0E 00 F7 68 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F5 [22:09:04]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [22:09:04]wFMCommunicate OK [22:09:04]SAM_PROTO_GetShiftState done [22:09:04]FM_GetShiftState done [22:09:04]req_shift_opened done [22:09:04]requested_item shift.open_date is exist - process it [22:09:04]req_shift_open_date [22:09:04]req_shift_open_date done [22:09:04]produce_requested_data done [22:09:04]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29067,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [22:09:04]process_action_free close_receipt [22:09:04]json_value_free [22:09:04]json_value_free done [22:09:04]process_json_proto returns [22:09:04]Send response to host [22:09:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29067,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [22:09:04]free response buf [22:09:04]execute_script done [22:09:04]execute_script returns [22:09:04]free content buf [22:09:04]Sock 7.Close socket [22:09:04]Sock 7.Thread stoped [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:28]OFD Sender: No OFD packet to send [22:10:33]OFD Sender: No OFD packet to send [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:58]OFD Sender: No OFD packet to send [22:12:03]OFD Sender: No OFD packet to send [22:12:08]OFD Sender: No OFD packet to send [22:12:13]OFD Sender: No OFD packet to send [22:12:18]OFD Sender: No OFD packet to send [22:12:23]OFD Sender: No OFD packet to send [22:12:27]accept exits with 9 [22:12:27]New connection [22:12:27]New thread 3066928484 created [22:12:27]Thread 3066785124 joined [22:12:27]Waiting for new connection... [22:12:27] Sock 9.Parse request [22:12:27]Sock 9.Check first char [22:12:27]Sock 9.First char is OK [22:12:27]request: POST /json_proto HTTP/1.0 [22:12:27]Method: POST [22:12:27]URL: /json_proto [22:12:27]Method is POST - this is cgi request [22:12:27]url: /json_proto [22:12:27]query_string will be loaded in cgi processing [22:12:27]execute_cgi json_proto POST (null) [22:12:27]execute_cgi path=json_proto method=POST [22:12:27]POST find Content-Length [22:12:27]Host: 172.17.33.3:8080 [22:12:27]Content-Length: 798 [22:12:27]Content-Type: application/json [22:12:27] [22:12:27]POST finish read [22:12:27]Found Content-Length = 798 [22:12:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 9.190, "sum" : 600.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:27]execute_script... [22:12: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)347437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 9.190, "sum" : 600.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:27]POST & json_proto [22:12:27]process_json_proto [22:12:27]json parsed OK: [22:12:27]protocol is kg_v1.0 [22:12:27]action value=close_receipt [22:12:27]process_action close_receipt [22:12:27]cmd_close_receipt [22:12:27]MH_GetDate [22:12:27]Write to MH i2c: F0 00 00 F8 68 4F [22:12:27]Write i2c OK [22:12:27]MH_I2C_Read... [22:12:27]Read from MH i2c: F0 [22:12:27]MH_I2C_Read... [22:12:27]Read from MH i2c: F0 09 00 [22:12:27]MH_I2C_Read... [22:12:27]Read from MH i2c: F0 09 00 F8 68 00 52 03 1B 66 23 5B 8F 65 A0 [22:12:27]GetLastDocTimeStamp 1713046147 [22:12:27]current date 1713046354 [22:12:27]FM_GetShiftState [22:12:27]SAM_PROTO_GetShiftState [22:12:27]wFMCommunicate request_size=4 [22:12:27]MH_SAM_APDU [22:12:27]CAPDU: 80 13 01 00 [22:12:27]Write to MH i2c: E2 08 00 F9 68 80 13 01 00 00 00 00 00 DE [22:12:27]Write i2c OK [22:12:27]MH_I2C_Read... [22:12:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:27]Read from MH i2c: E2 [22:12:27]MH_I2C_Read... [22:12:27]Read from MH i2c: E2 0E 00 [22:12:27]MH_I2C_Read... [22:12:27]Read from MH i2c: E2 0E 00 F9 68 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F7 [22:12:27]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [22:12:27]wFMCommunicate OK [22:12:27]SAM_PROTO_GetShiftState done [22:12:27]FM_GetShiftState done [22:12:27]opened in 1712967615 [22:12:27]opened+sec_in_day 1713054015 [22:12:27]quantity*price = 60010 [22:12:27]sum+1 = 60012 [22:12:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.11 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.11 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 275 13.04.2024 22:12 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29068 ФПД: 155377214408157 1/tax-web-control/client/api/v1/ticket?date=20240413T221234&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29068&fm=155377214408157&tin=02508201610067®Number=0000138879044617&sum=60011 [22:12:28]StoreToDocumentArchive [22:12:28]shift 115 fd 29068 [22:12:28]save to /storage/0115/doc_00029068 [22:12:28]save last doc name /storage/0115/doc_00029068 to /storage/kkm_last_doc_name [22:12:28]save OK [22:12:28]Clear old archive folders... [22:12:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:12:28]tlvbuf is 011DA4B0 [22:12:28]SAM_PROTO_ClearQueue [22:12:28]wFMCommunicate request_size=4 [22:12:28]MH_SAM_APDU [22:12:28]CAPDU: 80 09 00 00 [22:12:28]Write to MH i2c: E2 08 00 06 69 80 09 00 00 00 00 00 00 E1 [22:12:28]Write i2c OK [22:12:28]MH_I2C_Read... [22:12:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:28]Read from MH i2c: E2 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: E2 03 00 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: E2 03 00 06 69 00 90 00 E3 [22:12:28]RAPDU: 90 00 [22:12:28]wFMCommunicate OK [22:12:28]SAM_PROTO_ClearQueue done [22:12:28]KKMCreateOFDPacket [22:12:28]OFDProtocolAddRootSTLVToBuf [22:12:28]FM_MakeSignedData [22:12:28]FM_MakeSignedData [22:12:28]SAM_PROTO_SignData [22:12:28]wFMCommunicate request_size=4 [22:12:28]MH_SAM_APDU [22:12:28]CAPDU: 80 0D 01 02 [22:12:28]Write to MH i2c: E2 08 00 07 69 80 0D 01 02 00 00 00 00 E9 [22:12:28]Write i2c OK [22:12:28]MH_I2C_Read... [22:12:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:28]Read from MH i2c: E2 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: E2 03 00 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: E2 03 00 07 69 00 90 00 E4 [22:12:28]RAPDU: 90 00 [22:12:28]wFMCommunicate OK [22:12:28]wFMCommunicate request_size=255 [22:12:28]MH_SAM_APDU [22:12:28]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 52 03 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8C 71 00 00 35 04 06 00 [22:12:28]Write to MH i2c: E2 02 01 08 69 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 52 03 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8C 71 00 00 35 04 06 00 00 00 C9 [22:12:28]Write i2c OK [22:12:28]MH_I2C_Read... [22:12:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:29]Read from MH i2c: E2 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: E2 03 00 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: E2 03 00 08 69 00 90 00 E5 [22:12:29]RAPDU: 90 00 [22:12:29]wFMCommunicate OK [22:12:29]wFMCommunicate request_size=11 [22:12:29]MH_SAM_APDU [22:12:29]CAPDU: 80 0D 02 02 06 8D 50 93 AB C5 DD [22:12:29]Write to MH i2c: E2 0E 00 09 69 80 0D 02 02 06 00 8D 50 93 AB C5 DD 00 00 B5 [22:12:29]Write i2c OK [22:12:29]MH_I2C_Read... [22:12:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:29]Read from MH i2c: E2 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: E2 03 00 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: E2 03 00 09 69 00 90 00 E6 [22:12:29]RAPDU: 90 00 [22:12:29]wFMCommunicate OK [22:12:29]wFMCommunicate request_size=4 [22:12:29]MH_SAM_APDU [22:12:29]CAPDU: 80 0D 03 02 [22:12:29]Write to MH i2c: E2 08 00 0A 69 80 0D 03 02 00 00 00 00 EE [22:12:29]Write i2c OK [22:12:29]MH_I2C_Read... [22:12:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:29]Read from MH i2c: E2 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: E2 0B 00 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: E2 0B 00 0A 69 00 95 D4 9C D1 E4 2F F8 04 90 00 D4 [22:12:29]RAPDU: 95 D4 9C D1 E4 2F F8 04 90 00 [22:12:29]wFMCommunicate OK [22:12:29]SAM_PROTO_SignData done [22:12:29]FM_MakeSignedData done [22:12:29]CreateOFDProtocolMessage [22:12:29]wFMCommunicate request_size=4 [22:12:29]MH_SAM_APDU [22:12:29]CAPDU: 80 11 00 00 [22:12:29]Write to MH i2c: E2 08 00 0B 69 80 11 00 00 00 00 00 00 EE [22:12:29]Write i2c OK [22:12:29]MH_I2C_Read... [22:12:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:29]Read from MH i2c: E2 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: E2 17 00 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: E2 17 00 0B 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 3D [22:12:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:12:29]wFMCommunicate OK [22:12:29]CreateOFDProtocolMessage done [22:12:29]OFDSenderStorePacket 29068 [22:12:29]StoreOFDPacket docnum=29068 [22:12:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 6C 43 08 01 0C B6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 52 03 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8C 71 00 00 35 04 06 00 8D 50 93 AB C5 DD 95 D4 9C D1 E4 2F F8 04 [22:12:29]CheckFolder [22:12:29]dirname=/storage/ofd_packets [22:12:29]CheckFolder done [22:12:29]ProducePacketName [22:12:29]name=ofd_packets/00029068 [22:12:29]NVStorageSaveData ofd_packets/00029068 [22:12:29]File name is /storage/ofd_packets/00029068 [22:12:29]Write 302 bytes [22:12:29]NVStorageSaveData done [22:12:29]OFDSenderStorePacket done [22:12:29]KKMCreateOFDPacket done [22:12:29]NVStorageSaveData kkm_last_timestamp [22:12:29]File name is /storage/kkm_last_timestamp [22:12:29]Write 4 bytes [22:12:29]NVStorageSaveData done [22:12:29]ExternCall_PrintAddStr [22:12:29]wPrintStart [22:12:29]Write to MH i2c: 01 00 00 0C 69 75 [22:12:29]Write i2c OK [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: 01 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: 01 07 00 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: 01 07 00 0C 69 00 00 00 00 00 FF 0F 8A [22:12:29]RasterBufferAndPrint [22:12:29]line Счет N : (1)347437 [22:12:29]line ИНН: 02508201610067 [22:12:29]line Контрольно-Кассовый Чек [22:12:29]line ПРОДАЖА [22:12:29]line ТРК (МРК, ГНК) : 31 [22:12:29]line Товар: 2710124130 [22:12:29]line SUPER-92-К-5 [22:12:29]line 9.190 * 65.30 [22:12:29]line = 600.11 [22:12:29]line НДС 12% НСП 1% [22:12:29]line > о реализуемом товаре [22:12:29]line ИТОГО: 600.11 [22:12:29]line НСП 1% : 5.31 [22:12:29]line НДС 12% : 63.73 [22:12:29]line Наличными: 0.00 [22:12:29]line Безнал.: 600.11 [22:12:29]line Место: АЗС № 108 "Партнер Нефть" [22:12:29]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:12:29]line СНО: Общий режим [22:12:29]line Чек 275 13.04.2024 22:12 [22:12:29]line Смена: 115 ФФД: 1.0 [22:12:29]line ЗНМ: 0300000027 [22:12:29]line РНМ: 0000138879044617 [22:12:29]line Версия ККМ: 001 [22:12:29]line Платежная система: О! деньги [22:12:29]line ФМ: 0000000000963154 [22:12:29]line ФД: 29068 [22:12:29]line ФПД: 155377214408157 [22:12:29]line 1/tax-web-control/client/api/v1/ticket?date=20240413T221234&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29068&fm=155377214408157&tin=02508201610067®Number=0000138879044617&sum=60011 [22:12:29]OFD Sender: Processing packet 29068 [packets to send 8, broken 7] [22:12:29]ProducePacketName [22:12:29]name=ofd_packets/00029068 [22:12:29]OFD Sender: To server: pG, [22:12:29]CommunicateWithHost lk.salyk.kg:30040 [22:12:29]ConnectInit lk.salyk.kg [22:12:29]written 0, free lines is 4095 [22:12:29]Connected sock=6 [22:12: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 31 35 34 10 01 00 00 6C 43 08 01 0C B6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 6B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 52 03 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8C 71 00 00 35 04 06 00 8D 50 93 AB C5 DD 95 D4 9C D1 E4 2F F8 04 [22:12:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E6 0D 47 00 AB 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 31 35 34 10 04 04 00 8C 71 00 00 F4 03 04 00 F8 AD 1A 66 B6 04 01 00 00 8B BB E9 ED 91 7C 1C 87 [22:12:29]CommunicateWithHost err = 0 [22:12:29]CheckOFDResponse [22:12:29]1017 (14) - 77093643461234 [22:12:29]1041 (16) - 0000000000963154 [22:12:29]1040 (4) - 29068 [22:12:29]1012 (4) - 13.04.2024 16:08 [22:12:29]1206 (1) - 0 [22:12:29]OFD Sender: Remove packet 29068 [22:12:29]ProducePacketName [22:12:29]name=ofd_packets/00029068 [22:12:29]NVStorageDeleteData [22:12:30]Write to MH i2c: 01 00 00 35 69 9E [22:12:30]Write i2c OK [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: 01 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: 01 07 00 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: 01 07 00 35 69 00 00 00 00 00 E3 0C 94 [22:12:30]RasterBufferAndPrint [22:12:30]line [22:12:30]line [22:12:30]line [22:12:30]line [22:12:30]line [22:12:30]written 0, free lines is 3305 [22:12:30]MH_Cut [22:12:30]Write to MH i2c: D1 01 00 3C 69 01 77 [22:12:30]Write i2c OK [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: D1 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: D1 01 00 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: D1 01 00 3C 69 00 76 [22:12:30]Write to MH i2c: 01 00 00 3D 69 A6 [22:12:30]Write i2c OK [22:12:30]MH_I2C_Read... [22:12:30]OFD Sender: No OFD packet to send [22:12:30]*** Cut start [22:12:30]*** Partial cut [22:12:30]*** CUTSNS_PIN = 1 [22:12:30]*** CUTSNS_PIN = 0 [22:12:31]*** Brake cut motor [22:12:31]Read from MH i2c: 01 [22:12:31]MH_I2C_Read... [22:12:31]*** Stop cut motor [22:12:31]*** Cut end [22:12:31]Read from MH i2c: 01 07 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: 01 07 00 3D 69 00 00 00 00 00 FF 0F BB [22:12:31]process_action close_receipt done [22:12:31]requested_data is exist [22:12:31]produce_requested_data [22:12:31]requested_item fm.sn is exist - process it [22:12:31]wFMCommunicate request_size=4 [22:12:31]MH_SAM_APDU [22:12:31]CAPDU: 80 11 00 00 [22:12:31]Write to MH i2c: E2 08 00 3E 69 80 11 00 00 00 00 00 00 21 [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:31]Read from MH i2c: E2 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 17 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 17 00 3E 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 70 [22:12:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:12:31]wFMCommunicate OK [22:12:31]requested_item fd.num is exist - process it [22:12:31]SAM_PROTO_GetFieldsCounters [22:12:31]wFMCommunicate request_size=4 [22:12:31]MH_SAM_APDU [22:12:31]CAPDU: 80 13 00 00 [22:12:31]Write to MH i2c: E2 08 00 3F 69 80 13 00 00 00 00 00 00 24 [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:31]Read from MH i2c: E2 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 62 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 62 00 3F 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8C 71 00 00 0E 04 04 00 73 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 0E [22:12: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8C 71 00 00 0E 04 04 00 73 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 [22:12:31]wFMCommunicate OK [22:12:31]SAM_PROTO_GetFieldsCounters done [22:12:31]requested_item shift.num is exist - process it [22:12:31]requested_item shift.opened is exist - process it [22:12:31]req_shift_opened [22:12:31]FM_GetShiftState [22:12:31]SAM_PROTO_GetShiftState [22:12:31]wFMCommunicate request_size=4 [22:12:31]MH_SAM_APDU [22:12:31]CAPDU: 80 13 01 00 [22:12:31]Write to MH i2c: E2 08 00 40 69 80 13 01 00 00 00 00 00 26 [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:31]Read from MH i2c: E2 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 0E 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 0E 00 40 69 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 3F [22:12:31]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [22:12:31]wFMCommunicate OK [22:12:31]SAM_PROTO_GetShiftState done [22:12:31]FM_GetShiftState done [22:12:31]req_shift_opened done [22:12:31]requested_item shift.open_date is exist - process it [22:12:31]req_shift_open_date [22:12:31]req_shift_open_date done [22:12:31]produce_requested_data done [22:12:31]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29068,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [22:12:31]process_action_free close_receipt [22:12:31]json_value_free [22:12:31]json_value_free done [22:12:31]process_json_proto returns [22:12:31]Send response to host [22:12:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29068,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [22:12:31]free response buf [22:12:31]execute_script done [22:12:31]execute_script returns [22:12:31]free content buf [22:12:31]Sock 9.Close socket [22:12:31]Sock 9.Thread stoped [22:12:35]OFD Sender: No OFD packet to send [22:12:40]OFD Sender: No OFD packet to send [22:12:45]OFD Sender: No OFD packet to send [22:12:50]OFD Sender: No OFD packet to send [22:12:55]OFD Sender: No OFD packet to send [22:13:00]OFD Sender: No OFD packet to send [22:13:05]OFD Sender: No OFD packet to send [22:13:10]OFD Sender: No OFD packet to send [22:13:15]OFD Sender: No OFD packet to send [22:13:20]OFD Sender: No OFD packet to send [22:13:25]OFD Sender: No OFD packet to send [22:13:30]OFD Sender: No OFD packet to send [22:13:35]OFD Sender: No OFD packet to send [22:13:40]OFD Sender: No OFD packet to send [22:13:45]OFD Sender: No OFD packet to send [22:13:50]OFD Sender: No OFD packet to send [22:13:55]OFD Sender: No OFD packet to send [22:14:00]OFD Sender: No OFD packet to send [22:14:05]OFD Sender: No OFD packet to send [22:14:10]OFD Sender: No OFD packet to send [22:14:15]OFD Sender: No OFD packet to send [22:14:20]OFD Sender: No OFD packet to send [22:14:25]OFD Sender: No OFD packet to send [22:14:30]OFD Sender: No OFD packet to send [22:14:35]OFD Sender: No OFD packet to send [22:14:40]OFD Sender: No OFD packet to send [22:14:45]OFD Sender: No OFD packet to send [22:14:50]OFD Sender: No OFD packet to send [22:14:55]OFD Sender: No OFD packet to send [22:15:00]OFD Sender: No OFD packet to send [22:15:05]OFD Sender: No OFD packet to send [22:15:10]OFD Sender: No OFD packet to send [22:15:15]OFD Sender: No OFD packet to send [22:15:20]OFD Sender: No OFD packet to send [22:15:25]OFD Sender: No OFD packet to send [22:15:30]OFD Sender: No OFD packet to send [22:15:35]OFD Sender: No OFD packet to send [22:15:40]OFD Sender: No OFD packet to send [22:15:45]OFD Sender: No OFD packet to send [22:15:50]OFD Sender: No OFD packet to send [22:15:55]OFD Sender: No OFD packet to send [22:16:00]OFD Sender: No OFD packet to send [22:16:05]OFD Sender: No OFD packet to send [22:16:10]OFD Sender: No OFD packet to send [22:16:15]OFD Sender: No OFD packet to send [22:16:20]OFD Sender: No OFD packet to send [22:16:25]OFD Sender: No OFD packet to send [22:16:30]OFD Sender: No OFD packet to send [22:16:35]OFD Sender: No OFD packet to send [22:16:40]OFD Sender: No OFD packet to send [22:16:45]OFD Sender: No OFD packet to send [22:16:50]OFD Sender: No OFD packet to send [22:16:55]OFD Sender: No OFD packet to send [22:17:00]OFD Sender: No OFD packet to send [22:17:05]OFD Sender: No OFD packet to send [22:17:10]OFD Sender: No OFD packet to send [22:17:15]OFD Sender: No OFD packet to send [22:17:20]OFD Sender: No OFD packet to send [22:17:25]OFD Sender: No OFD packet to send [22:17:30]OFD Sender: No OFD packet to send [22:17:35]OFD Sender: No OFD packet to send [22:17:40]OFD Sender: No OFD packet to send [22:17:45]OFD Sender: No OFD packet to send [22:17:50]OFD Sender: No OFD packet to send [22:17:55]OFD Sender: No OFD packet to send [22:18:00]OFD Sender: No OFD packet to send [22:18:05]OFD Sender: No OFD packet to send [22:18:10]OFD Sender: No OFD packet to send [22:18:15]OFD Sender: No OFD packet to send [22:18:20]OFD Sender: No OFD packet to send [22:18:25]OFD Sender: No OFD packet to send [22:18:30]OFD Sender: No OFD packet to send [22:18:35]OFD Sender: No OFD packet to send [22:18:40]OFD Sender: No OFD packet to send [22:18:45]OFD Sender: No OFD packet to send [22:18:50]OFD Sender: No OFD packet to send [22:18:55]OFD Sender: No OFD packet to send [22:19:00]OFD Sender: No OFD packet to send [22:19:05]OFD Sender: No OFD packet to send [22:19:10]OFD Sender: No OFD packet to send [22:19:15]OFD Sender: No OFD packet to send [22:19:20]OFD Sender: No OFD packet to send [22:19:25]OFD Sender: No OFD packet to send [22:19:30]OFD Sender: No OFD packet to send [22:19:35]OFD Sender: No OFD packet to send [22:19:40]OFD Sender: No OFD packet to send [22:19:45]OFD Sender: No OFD packet to send [22:19:50]OFD Sender: No OFD packet to send [22:19:55]OFD Sender: No OFD packet to send [22:20:00]OFD Sender: No OFD packet to send [22:20:05]OFD Sender: No OFD packet to send [22:20:10]OFD Sender: No OFD packet to send [22:20:15]OFD Sender: No OFD packet to send [22:20:20]OFD Sender: No OFD packet to send [22:20:25]OFD Sender: No OFD packet to send [22:20:30]OFD Sender: No OFD packet to send [22:20:35]OFD Sender: No OFD packet to send [22:20:40]OFD Sender: No OFD packet to send [22:20:45]OFD Sender: No OFD packet to send [22:20:50]OFD Sender: No OFD packet to send [22:20:55]OFD Sender: No OFD packet to send [22:21:00]OFD Sender: No OFD packet to send [22:21:05]OFD Sender: No OFD packet to send [22:21:10]OFD Sender: No OFD packet to send [22:21:15]OFD Sender: No OFD packet to send [22:21:20]OFD Sender: No OFD packet to send [22:21:25]OFD Sender: No OFD packet to send [22:21:30]OFD Sender: No OFD packet to send [22:21:35]OFD Sender: No OFD packet to send [22:21:40]OFD Sender: No OFD packet to send [22:21:45]OFD Sender: No OFD packet to send [22:21:50]OFD Sender: No OFD packet to send [22:21:55]OFD Sender: No OFD packet to send [22:22:00]OFD Sender: No OFD packet to send [22:22:05]OFD Sender: No OFD packet to send [22:22:10]OFD Sender: No OFD packet to send [22:22:15]OFD Sender: No OFD packet to send [22:22:20]OFD Sender: No OFD packet to send [22:22:25]OFD Sender: No OFD packet to send [22:22:30]accept exits with 7 [22:22:30]New connection [22:22:30]New thread 3066785124 created [22:22:30]Thread 3066928484 joined [22:22:30]Waiting for new connection... [22:22:30] Sock 7.Parse request [22:22:30]Sock 7.Check first char [22:22:30]Sock 7.First char is OK [22:22:30]request: POST /json_proto HTTP/1.0 [22:22:30]Method: POST [22:22:30]URL: /json_proto [22:22:30]Method is POST - this is cgi request [22:22:30]url: /json_proto [22:22:30]query_string will be loaded in cgi processing [22:22:30]execute_cgi json_proto POST (null) [22:22:30]execute_cgi path=json_proto method=POST [22:22:30]POST find Content-Length [22:22:30]Host: 172.17.33.3:8080 [22:22:30]Content-Length: 805 [22:22:30]Content-Type: application/json [22:22:30] [22:22:30]POST finish read [22:22:30]Found Content-Length = 805 [22:22:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 69.070, "sum" : 5000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:22:30]execute_script... [22: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)347438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 69.070, "sum" : 5000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:22:30]POST & json_proto [22:22:30]process_json_proto [22:22:30]json parsed OK: [22:22:30]protocol is kg_v1.0 [22:22:30]action value=close_receipt [22:22:30]process_action close_receipt [22:22:30]cmd_close_receipt [22:22:30]MH_GetDate [22:22:30]Write to MH i2c: F0 00 00 41 69 99 [22:22:30]Write i2c OK [22:22:30]MH_I2C_Read... [22:22:30]Read from MH i2c: F0 [22:22:30]MH_I2C_Read... [22:22:30]Read from MH i2c: F0 09 00 [22:22:30]MH_I2C_Read... [22:22:30]Read from MH i2c: F0 09 00 41 69 00 AD 05 1B 66 23 5B 8F 65 47 [22:22:30]GetLastDocTimeStamp 1713046354 [22:22:30]current date 1713046957 [22:22:30]FM_GetShiftState [22:22:30]SAM_PROTO_GetShiftState [22:22:30]wFMCommunicate request_size=4 [22:22:30]MH_SAM_APDU [22:22:30]CAPDU: 80 13 01 00 [22:22:30]Write to MH i2c: E2 08 00 42 69 80 13 01 00 00 00 00 00 28 [22:22:30]Write i2c OK [22:22:30]MH_I2C_Read... [22:22:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:30]Read from MH i2c: E2 [22:22:30]MH_I2C_Read... [22:22:30]Read from MH i2c: E2 0E 00 [22:22:30]MH_I2C_Read... [22:22:30]Read from MH i2c: E2 0E 00 42 69 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 41 [22:22:30]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [22:22:30]wFMCommunicate OK [22:22:30]SAM_PROTO_GetShiftState done [22:22:30]FM_GetShiftState done [22:22:30]opened in 1712967615 [22:22:30]opened+sec_in_day 1713054015 [22:22:30]quantity*price = 500066 [22:22:30]sum+1 = 500068 [22:22:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.67 НСП 1% : 44.25 НДС 12% : 531.04 Наличными: 0.00 Безнал.: 5000.67 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 276 13.04.2024 22:22 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29069 ФПД: 154956755750669 1/tax-web-control/client/api/v1/ticket?date=20240413T222237&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29069&fm=154956755750669&tin=02508201610067®Number=0000138879044617&sum=500067 [22:22:31]StoreToDocumentArchive [22:22:31]shift 115 fd 29069 [22:22:31]save to /storage/0115/doc_00029069 [22:22:31]save last doc name /storage/0115/doc_00029069 to /storage/kkm_last_doc_name [22:22:31]save OK [22:22:31]Clear old archive folders... [22:22:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:22:31]tlvbuf is 0120BE00 [22:22:31]SAM_PROTO_ClearQueue [22:22:31]wFMCommunicate request_size=4 [22:22:31]MH_SAM_APDU [22:22:31]CAPDU: 80 09 00 00 [22:22:31]Write to MH i2c: E2 08 00 4F 69 80 09 00 00 00 00 00 00 2A [22:22:31]Write i2c OK [22:22:31]MH_I2C_Read... [22:22:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:22:31]Read from MH i2c: E2 [22:22:31]MH_I2C_Read... [22:22:31]Read from MH i2c: E2 03 00 [22:22:31]MH_I2C_Read... [22:22:31]Read from MH i2c: E2 03 00 4F 69 00 90 00 2C [22:22:31]RAPDU: 90 00 [22:22:31]wFMCommunicate OK [22:22:31]SAM_PROTO_ClearQueue done [22:22:31]KKMCreateOFDPacket [22:22:31]OFDProtocolAddRootSTLVToBuf [22:22:31]FM_MakeSignedData [22:22:31]FM_MakeSignedData [22:22:31]SAM_PROTO_SignData [22:22:31]wFMCommunicate request_size=4 [22:22:31]MH_SAM_APDU [22:22:31]CAPDU: 80 0D 01 02 [22:22:31]Write to MH i2c: E2 08 00 50 69 80 0D 01 02 00 00 00 00 32 [22:22:31]Write i2c OK [22:22:31]MH_I2C_Read... [22:22:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:22:31]Read from MH i2c: E2 [22:22:31]MH_I2C_Read... [22:22:31]Read from MH i2c: E2 03 00 [22:22:31]MH_I2C_Read... [22:22:31]Read from MH i2c: E2 03 00 50 69 00 90 00 2D [22:22:31]RAPDU: 90 00 [22:22:31]wFMCommunicate OK [22:22:31]wFMCommunicate request_size=255 [22:22:31]MH_SAM_APDU [22: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 CE 0D 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 63 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 AD 05 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8D 71 00 00 35 04 06 00 8C EE AE 61 [22:22:31]Write to MH i2c: E2 02 01 51 69 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 CE 0D 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 63 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 AD 05 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8D 71 00 00 35 04 06 00 8C EE AE 61 00 00 E8 [22:22:32]Write i2c OK [22:22:32]MH_I2C_Read... [22:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:32]Read from MH i2c: E2 [22:22:32]MH_I2C_Read... [22:22:32]Read from MH i2c: E2 03 00 [22:22:32]MH_I2C_Read... [22:22:32]Read from MH i2c: E2 03 00 51 69 00 90 00 2E [22:22:32]RAPDU: 90 00 [22:22:32]wFMCommunicate OK [22:22:32]wFMCommunicate request_size=7 [22:22:32]MH_SAM_APDU [22:22:32]CAPDU: 80 0D 02 02 02 CF 0D [22:22:32]Write to MH i2c: E2 0A 00 52 69 80 0D 02 02 02 00 CF 0D 00 00 15 [22:22:32]Write i2c OK [22:22:32]MH_I2C_Read... [22:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:32]Read from MH i2c: E2 [22:22:32]MH_I2C_Read... [22:22:32]Read from MH i2c: E2 03 00 [22:22:32]MH_I2C_Read... [22:22:32]Read from MH i2c: E2 03 00 52 69 00 90 00 2F [22:22:32]RAPDU: 90 00 [22:22:32]wFMCommunicate OK [22:22:32]wFMCommunicate request_size=4 [22:22:32]MH_SAM_APDU [22:22:32]CAPDU: 80 0D 03 02 [22:22:32]Write to MH i2c: E2 08 00 53 69 80 0D 03 02 00 00 00 00 37 [22:22:32]Write i2c OK [22:22:32]MH_I2C_Read... [22:22:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:22:32]Read from MH i2c: E2 [22:22:32]MH_I2C_Read... [22:22:32]Read from MH i2c: E2 0B 00 [22:22:32]MH_I2C_Read... [22:22:32]Read from MH i2c: E2 0B 00 53 69 00 67 C3 28 07 4F DF 99 83 90 00 DB [22:22:32]RAPDU: 67 C3 28 07 4F DF 99 83 90 00 [22:22:32]wFMCommunicate OK [22:22:32]SAM_PROTO_SignData done [22:22:32]FM_MakeSignedData done [22:22:32]CreateOFDProtocolMessage [22:22:32]wFMCommunicate request_size=4 [22:22:32]MH_SAM_APDU [22:22:32]CAPDU: 80 11 00 00 [22:22:32]Write to MH i2c: E2 08 00 54 69 80 11 00 00 00 00 00 00 37 [22:22:32]Write i2c OK [22:22:32]MH_I2C_Read... [22:22:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:32]Read from MH i2c: E2 [22:22:32]MH_I2C_Read... [22:22:32]Read from MH i2c: E2 17 00 [22:22:32]MH_I2C_Read... [22:22:32]Read from MH i2c: E2 17 00 54 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 86 [22:22:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:22:32]wFMCommunicate OK [22:22:32]CreateOFDProtocolMessage done [22:22:32]OFDSenderStorePacket 29069 [22:22:32]StoreOFDPacket docnum=29069 [22:22:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 AF 84 04 01 59 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 CE 0D 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 63 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 AD 05 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8D 71 00 00 35 04 06 00 8C EE AE 61 CF 0D 67 C3 28 07 4F DF 99 83 [22:22:32]CheckFolder [22:22:32]dirname=/storage/ofd_packets [22:22:32]CheckFolder done [22:22:32]ProducePacketName [22:22:32]name=ofd_packets/00029069 [22:22:32]NVStorageSaveData ofd_packets/00029069 [22:22:32]File name is /storage/ofd_packets/00029069 [22:22:32]Write 298 bytes [22:22:32]NVStorageSaveData done [22:22:32]OFDSenderStorePacket done [22:22:32]KKMCreateOFDPacket done [22:22:32]NVStorageSaveData kkm_last_timestamp [22:22:32]File name is /storage/kkm_last_timestamp [22:22:32]Write 4 bytes [22:22:32]NVStorageSaveData done [22:22:32]ExternCall_PrintAddStr [22:22:32]wPrintStart [22:22:32]Write to MH i2c: 01 00 00 55 69 BE [22:22:32]Write i2c OK [22:22:32]MH_I2C_Read... [22:22:32]Read from MH i2c: 01 [22:22:32]MH_I2C_Read... [22:22:32]Read from MH i2c: 01 07 00 [22:22:32]MH_I2C_Read... [22:22:32]Read from MH i2c: 01 07 00 55 69 00 00 00 00 00 FF 0F D3 [22:22:32]RasterBufferAndPrint [22:22:32]line Счет N : (1)347438 [22:22:32]line ИНН: 02508201610067 [22:22:32]line Контрольно-Кассовый Чек [22:22:32]line ПРОДАЖА [22:22:32]line ТРК (МРК, ГНК) : 11 [22:22:32]line Товар: 2710194210 [22:22:32]line ДТ-К-5 [22:22:32]line 69.070 * 72.40 [22:22:32]line = 5000.67 [22:22:32]line НДС 12% НСП 1% [22:22:32]line > о реализуемом товаре [22:22:32]line ИТОГО: 5000.67 [22:22:32]line НСП 1% : 44.25 [22:22:32]line НДС 12% : 531.04 [22:22:32]line Наличными: 0.00 [22:22:32]line Безнал.: 5000.67 [22:22:32]line Место: АЗС № 108 "Партнер Нефть" [22:22:32]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:22:32]line СНО: Общий режим [22:22:32]line Чек 276 13.04.2024 22:22 [22:22:32]line Смена: 115 ФФД: 1.0 [22:22:32]line ЗНМ: 0300000027 [22:22:32]line РНМ: 0000138879044617 [22:22:32]line Версия ККМ: 001 [22:22:32]line Платежная система: О! деньги [22:22:32]line ФМ: 0000000000963154 [22:22:32]line ФД: 29069 [22:22:32]line ФПД: 154956755750669 [22:22:32]line 1/tax-web-control/client/api/v1/ticket?date=20240413T222237&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29069&fm=154956755750669&tin=02508201610067®Number=0000138879044617&sum=500067 [22:22:32]OFD Sender: Processing packet 29069 [packets to send 8, broken 7] [22:22:32]ProducePacketName [22:22:32]name=ofd_packets/00029069 [22:22:32]OFD Sender: To server: pG, [22:22:32]CommunicateWithHost lk.salyk.kg:30040 [22:22:32]ConnectInit lk.salyk.kg [22:22:32]written 0, free lines is 4095 [22:22:32]Connected sock=10 [22: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 31 35 34 0C 01 00 00 AF 84 04 01 59 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 CE 0D 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 63 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 AD 05 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8D 71 00 00 35 04 06 00 8C EE AE 61 CF 0D 67 C3 28 07 4F DF 99 83 [22:22:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 B0 F1 47 00 E4 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 31 35 34 10 04 04 00 8D 71 00 00 F4 03 04 00 53 B0 1A 66 B6 04 01 00 00 A8 20 C2 69 44 E0 04 F6 [22:22:32]CommunicateWithHost err = 0 [22:22:32]CheckOFDResponse [22:22:32]1017 (14) - 77093643461234 [22:22:32]1041 (16) - 0000000000963154 [22:22:32]1040 (4) - 29069 [22:22:32]1012 (4) - 13.04.2024 16:18 [22:22:32]1206 (1) - 0 [22:22:32]OFD Sender: Remove packet 29069 [22:22:32]ProducePacketName [22:22:32]name=ofd_packets/00029069 [22:22:32]NVStorageDeleteData [22:22:33]Write to MH i2c: 01 00 00 7E 69 E7 [22:22:33]Write i2c OK [22:22:33]MH_I2C_Read... [22:22:33]Read from MH i2c: 01 [22:22:33]MH_I2C_Read... [22:22:33]Read from MH i2c: 01 07 00 [22:22:33]MH_I2C_Read... [22:22:33]Read from MH i2c: 01 07 00 7E 69 00 00 00 00 00 D7 0C D1 [22:22:33]RasterBufferAndPrint [22:22:33]line [22:22:33]line [22:22:33]line [22:22:33]line [22:22:33]line [22:22:33]written 0, free lines is 3294 [22:22:33]MH_Cut [22:22:33]Write to MH i2c: D1 01 00 85 69 01 C0 [22:22:33]Write i2c OK [22:22:33]MH_I2C_Read... [22:22:33]Read from MH i2c: D1 [22:22:33]MH_I2C_Read... [22:22:33]Read from MH i2c: D1 01 00 [22:22:33]MH_I2C_Read... [22:22:33]Read from MH i2c: D1 01 00 85 69 00 BF [22:22:33]Write to MH i2c: 01 00 00 86 69 EF [22:22:33]Write i2c OK [22:22:33]MH_I2C_Read... [22:22:33]OFD Sender: No OFD packet to send [22:22:33]*** Cut start [22:22:33]*** Partial cut [22:22:33]*** CUTSNS_PIN = 1 [22:22:34]*** CUTSNS_PIN = 0 [22:22:34]*** Brake cut motor [22:22:34]Read from MH i2c: 01 [22:22:34]MH_I2C_Read... [22:22:34]*** Stop cut motor [22:22:34]*** Cut end [22:22:34]Read from MH i2c: 01 07 00 [22:22:34]MH_I2C_Read... [22:22:34]Read from MH i2c: 01 07 00 86 69 00 00 00 00 00 FF 0F 04 [22:22:34]process_action close_receipt done [22:22:34]requested_data is exist [22:22:34]produce_requested_data [22:22:34]requested_item fm.sn is exist - process it [22:22:34]wFMCommunicate request_size=4 [22:22:34]MH_SAM_APDU [22:22:34]CAPDU: 80 11 00 00 [22:22:34]Write to MH i2c: E2 08 00 87 69 80 11 00 00 00 00 00 00 6A [22:22:34]Write i2c OK [22:22:34]MH_I2C_Read... [22:22:34]Read from MH i2c: E2 [22:22:34]MH_I2C_Read... [22:22:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:34]Read from MH i2c: E2 17 00 [22:22:34]MH_I2C_Read... [22:22:34]Read from MH i2c: E2 17 00 87 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B9 [22:22:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:22:34]wFMCommunicate OK [22:22:34]requested_item fd.num is exist - process it [22:22:34]SAM_PROTO_GetFieldsCounters [22:22:34]wFMCommunicate request_size=4 [22:22:34]MH_SAM_APDU [22:22:34]CAPDU: 80 13 00 00 [22:22:34]Write to MH i2c: E2 08 00 88 69 80 13 00 00 00 00 00 00 6D [22:22:34]Write i2c OK [22:22:34]MH_I2C_Read... [22:22:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:22:34]Read from MH i2c: E2 [22:22:34]MH_I2C_Read... [22:22:34]Read from MH i2c: E2 62 00 [22:22:34]MH_I2C_Read... [22:22:34]Read from MH i2c: E2 62 00 88 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8D 71 00 00 0E 04 04 00 73 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 5B [22: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8D 71 00 00 0E 04 04 00 73 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 [22:22:34]wFMCommunicate OK [22:22:34]SAM_PROTO_GetFieldsCounters done [22:22:34]requested_item shift.num is exist - process it [22:22:34]requested_item shift.opened is exist - process it [22:22:34]req_shift_opened [22:22:34]FM_GetShiftState [22:22:34]SAM_PROTO_GetShiftState [22:22:34]wFMCommunicate request_size=4 [22:22:34]MH_SAM_APDU [22:22:34]CAPDU: 80 13 01 00 [22:22:34]Write to MH i2c: E2 08 00 89 69 80 13 01 00 00 00 00 00 6F [22:22:34]Write i2c OK [22:22:34]MH_I2C_Read... [22:22:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:34]Read from MH i2c: E2 [22:22:34]MH_I2C_Read... [22:22:34]Read from MH i2c: E2 0E 00 [22:22:34]MH_I2C_Read... [22:22:34]Read from MH i2c: E2 0E 00 89 69 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 88 [22:22:34]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [22:22:34]wFMCommunicate OK [22:22:34]SAM_PROTO_GetShiftState done [22:22:34]FM_GetShiftState done [22:22:34]req_shift_opened done [22:22:34]requested_item shift.open_date is exist - process it [22:22:34]req_shift_open_date [22:22:34]req_shift_open_date done [22:22:34]produce_requested_data done [22:22:34]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29069,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [22:22:34]process_action_free close_receipt [22:22:34]json_value_free [22:22:34]json_value_free done [22:22:34]process_json_proto returns [22:22:34]Send response to host [22:22:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29069,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [22:22:34]free response buf [22:22:34]execute_script done [22:22:34]execute_script returns [22:22:34]free content buf [22:22:34]Sock 7.Close socket [22:22:34]Sock 7.Thread stoped [22:22:38]OFD Sender: No OFD packet to send [22:22:43]OFD Sender: No OFD packet to send [22:22:48]OFD Sender: No OFD packet to send [22:22:53]OFD Sender: No OFD packet to send [22:22:58]OFD Sender: No OFD packet to send [22:23:03]OFD Sender: No OFD packet to send [22:23:08]OFD Sender: No OFD packet to send [22:23:13]OFD Sender: No OFD packet to send [22:23:18]OFD Sender: No OFD packet to send [22:23:23]OFD Sender: No OFD packet to send [22:23:28]OFD Sender: No OFD packet to send [22:23:33]OFD Sender: No OFD packet to send [22:23:38]OFD Sender: No OFD packet to send [22:23:43]OFD Sender: No OFD packet to send [22:23:48]OFD Sender: No OFD packet to send [22:23:53]OFD Sender: No OFD packet to send [22:23:58]OFD Sender: No OFD packet to send [22:24:03]OFD Sender: No OFD packet to send [22:24:08]OFD Sender: No OFD packet to send [22:24:13]OFD Sender: No OFD packet to send [22:24:18]OFD Sender: No OFD packet to send [22:24:23]OFD Sender: No OFD packet to send [22:24:28]OFD Sender: No OFD packet to send [22:24:33]OFD Sender: No OFD packet to send [22:24:38]OFD Sender: No OFD packet to send [22:24:43]OFD Sender: No OFD packet to send [22:24:48]OFD Sender: No OFD packet to send [22:24:53]OFD Sender: No OFD packet to send [22:24:58]OFD Sender: No OFD packet to send [22:25:03]OFD Sender: No OFD packet to send [22:25:08]OFD Sender: No OFD packet to send [22:25:13]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:23]OFD Sender: No OFD packet to send [22:25:28]OFD Sender: No OFD packet to send [22:25:33]OFD Sender: No OFD packet to send [22:25:38]OFD Sender: No OFD packet to send [22:25:43]OFD Sender: No OFD packet to send [22:25:48]OFD Sender: No OFD packet to send [22:25:53]OFD Sender: No OFD packet to send [22:25:58]OFD Sender: No OFD packet to send [22:26:03]OFD Sender: No OFD packet to send [22:26:08]OFD Sender: No OFD packet to send [22:26:13]OFD Sender: No OFD packet to send [22:26:18]OFD Sender: No OFD packet to send [22:26:23]OFD Sender: No OFD packet to send [22:26:28]OFD Sender: No OFD packet to send [22:26:33]OFD Sender: No OFD packet to send [22:26:38]OFD Sender: No OFD packet to send [22:26:43]OFD Sender: No OFD packet to send [22:26:48]OFD Sender: No OFD packet to send [22:26:53]OFD Sender: No OFD packet to send [22:26:58]OFD Sender: No OFD packet to send [22:27:03]OFD Sender: No OFD packet to send [22:27:08]OFD Sender: No OFD packet to send [22:27:13]OFD Sender: No OFD packet to send [22:27:18]OFD Sender: No OFD packet to send [22:27:23]OFD Sender: No OFD packet to send [22:27:28]OFD Sender: No OFD packet to send [22:27:33]OFD Sender: No OFD packet to send [22:27:38]OFD Sender: No OFD packet to send [22:27:43]OFD Sender: No OFD packet to send [22:27:48]OFD Sender: No OFD packet to send [22:27:53]OFD Sender: No OFD packet to send [22:27:58]OFD Sender: No OFD packet to send [22:28:03]OFD Sender: No OFD packet to send [22:28:08]OFD Sender: No OFD packet to send [22:28:13]OFD Sender: No OFD packet to send [22:28:18]OFD Sender: No OFD packet to send [22:28:23]OFD Sender: No OFD packet to send [22:28:28]OFD Sender: No OFD packet to send [22:28:33]OFD Sender: No OFD packet to send [22:28:38]OFD Sender: No OFD packet to send [22:28:43]OFD Sender: No OFD packet to send [22:28:48]OFD Sender: No OFD packet to send [22:28:53]OFD Sender: No OFD packet to send [22:28:58]OFD Sender: No OFD packet to send [22:29:03]OFD Sender: No OFD packet to send [22:29:08]OFD Sender: No OFD packet to send [22:29:13]OFD Sender: No OFD packet to send [22:29:18]OFD Sender: No OFD packet to send [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:38]OFD Sender: No OFD packet to send [22:29:43]OFD Sender: No OFD packet to send [22:29:48]OFD Sender: No OFD packet to send [22:29:53]OFD Sender: No OFD packet to send [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:03]OFD Sender: No OFD packet to send [22:31:08]OFD Sender: No OFD packet to send [22:31:13]OFD Sender: No OFD packet to send [22:31:18]OFD Sender: No OFD packet to send [22:31:23]OFD Sender: No OFD packet to send [22:31:28]OFD Sender: No OFD packet to send [22:31:33]OFD Sender: No OFD packet to send [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]OFD Sender: No OFD packet to send [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:13]OFD Sender: No OFD packet to send [22:32:18]OFD Sender: No OFD packet to send [22:32:23]OFD Sender: No OFD packet to send [22:32:28]OFD Sender: No OFD packet to send [22:32:33]OFD Sender: No OFD packet to send [22:32:37]accept exits with 9 [22:32:37]New connection [22:32:37]New thread 3066928484 created [22:32:37]Thread 3066785124 joined [22:32:37]Waiting for new connection... [22:32:37] Sock 9.Parse request [22:32:37]Sock 9.Check first char [22:32:37]Sock 9.First char is OK [22:32:37]request: POST /json_proto HTTP/1.0 [22:32:37]Method: POST [22:32:37]URL: /json_proto [22:32:37]Method is POST - this is cgi request [22:32:37]url: /json_proto [22:32:37]query_string will be loaded in cgi processing [22:32:37]execute_cgi json_proto POST (null) [22:32:37]execute_cgi path=json_proto method=POST [22:32:37]POST find Content-Length [22:32:37]Host: 172.17.33.3:8080 [22:32:37]Content-Length: 805 [22:32:37]Content-Type: application/json [22:32:37] [22:32:37]POST finish read [22:32:37]Found Content-Length = 805 [22:32:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 28.640, "sum" : 2073.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2073.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:37]execute_script... [22:32: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)347439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 28.640, "sum" : 2073.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2073.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:37]POST & json_proto [22:32:37]process_json_proto [22:32:37]json parsed OK: [22:32:37]protocol is kg_v1.0 [22:32:37]action value=close_receipt [22:32:37]process_action close_receipt [22:32:37]cmd_close_receipt [22:32:37]MH_GetDate [22:32:37]Write to MH i2c: F0 00 00 8A 69 E2 [22:32:37]Write i2c OK [22:32:37]MH_I2C_Read... [22:32:37]Read from MH i2c: F0 [22:32:37]MH_I2C_Read... [22:32:37]Read from MH i2c: F0 09 00 [22:32:37]MH_I2C_Read... [22:32:37]Read from MH i2c: F0 09 00 8A 69 00 0C 08 1B 66 23 5B 8F 65 F2 [22:32:37]GetLastDocTimeStamp 1713046957 [22:32:37]current date 1713047564 [22:32:37]FM_GetShiftState [22:32:37]SAM_PROTO_GetShiftState [22:32:37]wFMCommunicate request_size=4 [22:32:37]MH_SAM_APDU [22:32:37]CAPDU: 80 13 01 00 [22:32:37]Write to MH i2c: E2 08 00 8B 69 80 13 01 00 00 00 00 00 71 [22:32:37]Write i2c OK [22:32:37]MH_I2C_Read... [22:32:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:37]Read from MH i2c: E2 [22:32:37]MH_I2C_Read... [22:32:37]Read from MH i2c: E2 0E 00 [22:32:37]MH_I2C_Read... [22:32:37]Read from MH i2c: E2 0E 00 8B 69 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 8A [22:32:37]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [22:32:37]wFMCommunicate OK [22:32:37]SAM_PROTO_GetShiftState done [22:32:37]FM_GetShiftState done [22:32:37]opened in 1712967615 [22:32:37]opened+sec_in_day 1713054015 [22:32:37]quantity*price = 207353 [22:32:37]sum+1 = 207355 [22:32:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2073.54 НСП 1% : 18.35 НДС 12% : 220.20 Наличными: 0.00 Безнал.: 2073.54 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 277 13.04.2024 22:32 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000963154 ФД: 29070 ФПД: 194224844083763 1/tax-web-control/client/api/v1/ticket?date=20240413T223244&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29070&fm=194224844083763&tin=02508201610067®Number=0000138879044617&sum=207354 [22:32:38]StoreToDocumentArchive [22:32:38]shift 115 fd 29070 [22:32:38]save to /storage/0115/doc_00029070 [22:32:38]save last doc name /storage/0115/doc_00029070 to /storage/kkm_last_doc_name [22:32:38]save OK [22:32:38]Clear old archive folders... [22:32:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:32:38]tlvbuf is 011ECB00 [22:32:38]SAM_PROTO_ClearQueue [22:32:38]wFMCommunicate request_size=4 [22:32:38]MH_SAM_APDU [22:32:38]CAPDU: 80 09 00 00 [22:32:38]Write to MH i2c: E2 08 00 98 69 80 09 00 00 00 00 00 00 73 [22:32:38]Write i2c OK [22:32:38]MH_I2C_Read... [22:32:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:32:38]Read from MH i2c: E2 [22:32:38]MH_I2C_Read... [22:32:38]Read from MH i2c: E2 03 00 [22:32:38]MH_I2C_Read... [22:32:38]Read from MH i2c: E2 03 00 98 69 00 90 00 75 [22:32:38]RAPDU: 90 00 [22:32:38]wFMCommunicate OK [22:32:38]SAM_PROTO_ClearQueue done [22:32:38]KKMCreateOFDPacket [22:32:38]OFDProtocolAddRootSTLVToBuf [22:32:38]FM_MakeSignedData [22:32:38]FM_MakeSignedData [22:32:38]SAM_PROTO_SignData [22:32:38]wFMCommunicate request_size=4 [22:32:38]MH_SAM_APDU [22:32:38]CAPDU: 80 0D 01 02 [22:32:38]Write to MH i2c: E2 08 00 99 69 80 0D 01 02 00 00 00 00 7B [22:32:38]Write i2c OK [22:32:38]MH_I2C_Read... [22:32:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:32:38]Read from MH i2c: E2 [22:32:38]MH_I2C_Read... [22:32:38]Read from MH i2c: E2 03 00 [22:32:38]MH_I2C_Read... [22:32:38]Read from MH i2c: E2 03 00 99 69 00 90 00 76 [22:32:38]RAPDU: 90 00 [22:32:38]wFMCommunicate OK [22:32:38]wFMCommunicate request_size=255 [22:32:38]MH_SAM_APDU [22:32: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 E0 6F 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 29 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA 29 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 56 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA 29 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 0C 08 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8E 71 00 00 35 04 06 00 B0 A5 7E D6 [22:32:38]Write to MH i2c: E2 02 01 9A 69 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 E0 6F 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 29 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA 29 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 56 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA 29 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 0C 08 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8E 71 00 00 35 04 06 00 B0 A5 7E D6 00 00 6C [22:32:38]Write i2c OK [22:32:38]MH_I2C_Read... [22:32:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:38]Read from MH i2c: E2 [22:32:38]MH_I2C_Read... [22:32:38]Read from MH i2c: E2 03 00 [22:32:38]MH_I2C_Read... [22:32:38]Read from MH i2c: E2 03 00 9A 69 00 90 00 77 [22:32:38]RAPDU: 90 00 [22:32:38]wFMCommunicate OK [22:32:38]wFMCommunicate request_size=7 [22:32:38]MH_SAM_APDU [22:32:38]CAPDU: 80 0D 02 02 02 92 33 [22:32:38]Write to MH i2c: E2 0A 00 9B 69 80 0D 02 02 02 00 92 33 00 00 47 [22:32:38]Write i2c OK [22:32:38]MH_I2C_Read... [22:32:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:38]Read from MH i2c: E2 [22:32:38]MH_I2C_Read... [22:32:38]Read from MH i2c: E2 03 00 [22:32:38]MH_I2C_Read... [22:32:38]Read from MH i2c: E2 03 00 9B 69 00 90 00 78 [22:32:38]RAPDU: 90 00 [22:32:38]wFMCommunicate OK [22:32:38]wFMCommunicate request_size=4 [22:32:38]MH_SAM_APDU [22:32:38]CAPDU: 80 0D 03 02 [22:32:38]Write to MH i2c: E2 08 00 9C 69 80 0D 03 02 00 00 00 00 80 [22:32:38]Write i2c OK [22:32:38]MH_I2C_Read... [22:32:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:32:38]Read from MH i2c: E2 [22:32:38]MH_I2C_Read... [22:32:38]Read from MH i2c: E2 0B 00 [22:32:38]MH_I2C_Read... [22:32:38]Read from MH i2c: E2 0B 00 9C 69 00 5B 47 C7 8C 39 F2 5B DE 90 00 DA [22:32:38]RAPDU: 5B 47 C7 8C 39 F2 5B DE 90 00 [22:32:38]wFMCommunicate OK [22:32:38]SAM_PROTO_SignData done [22:32:38]FM_MakeSignedData done [22:32:38]CreateOFDProtocolMessage [22:32:38]wFMCommunicate request_size=4 [22:32:38]MH_SAM_APDU [22:32:38]CAPDU: 80 11 00 00 [22:32:38]Write to MH i2c: E2 08 00 9D 69 80 11 00 00 00 00 00 00 80 [22:32:38]Write i2c OK [22:32:38]MH_I2C_Read... [22:32:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:38]Read from MH i2c: E2 [22:32:38]MH_I2C_Read... [22:32:38]Read from MH i2c: E2 17 00 [22:32:38]MH_I2C_Read... [22:32:38]Read from MH i2c: E2 17 00 9D 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 CF [22:32:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:32:38]wFMCommunicate OK [22:32:38]CreateOFDProtocolMessage done [22:32:38]OFDSenderStorePacket 29070 [22:32:38]StoreOFDPacket docnum=29070 [22:32:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 64 2F 04 01 4D 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 E0 6F 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 29 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA 29 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 56 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA 29 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 0C 08 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8E 71 00 00 35 04 06 00 B0 A5 7E D6 92 33 5B 47 C7 8C 39 F2 5B DE [22:32:38]CheckFolder [22:32:38]dirname=/storage/ofd_packets [22:32:38]CheckFolder done [22:32:38]ProducePacketName [22:32:38]name=ofd_packets/00029070 [22:32:38]NVStorageSaveData ofd_packets/00029070 [22:32:38]File name is /storage/ofd_packets/00029070 [22:32:38]Write 298 bytes [22:32:38]NVStorageSaveData done [22:32:38]OFDSenderStorePacket done [22:32:38]KKMCreateOFDPacket done [22:32:38]NVStorageSaveData kkm_last_timestamp [22:32:38]File name is /storage/kkm_last_timestamp [22:32:38]Write 4 bytes [22:32:38]NVStorageSaveData done [22:32:38]ExternCall_PrintAddStr [22:32:38]wPrintStart [22:32:38]Write to MH i2c: 01 00 00 9E 69 07 [22:32:38]Write i2c OK [22:32:38]MH_I2C_Read... [22:32:38]Read from MH i2c: 01 [22:32:38]MH_I2C_Read... [22:32:38]Read from MH i2c: 01 07 00 [22:32:38]MH_I2C_Read... [22:32:38]Read from MH i2c: 01 07 00 9E 69 00 00 00 00 00 FF 0F 1C [22:32:38]RasterBufferAndPrint [22:32:38]line Счет N : (1)347439 [22:32:38]line ИНН: 02508201610067 [22:32:38]line Контрольно-Кассовый Чек [22:32:38]line ПРОДАЖА [22:32:38]line ТРК (МРК, ГНК) : 11 [22:32:38]line Товар: 2710194210 [22:32:38]line ДТ-К-5 [22:32:38]line 28.640 * 72.40 [22:32:38]line = 2073.54 [22:32:38]line НДС 12% НСП 1% [22:32:38]line > о реализуемом товаре [22:32:38]line ИТОГО: 2073.54 [22:32:38]line НСП 1% : 18.35 [22:32:38]line НДС 12% : 220.20 [22:32:38]line Наличными: 0.00 [22:32:38]line Безнал.: 2073.54 [22:32:38]line Место: АЗС № 108 "Партнер Нефть" [22:32:38]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:32:38]line СНО: Общий режим [22:32:38]line Чек 277 13.04.2024 22:32 [22:32:38]line Смена: 115 ФФД: 1.0 [22:32:38]line ЗНМ: 0300000027 [22:32:38]line РНМ: 0000138879044617 [22:32:38]line Версия ККМ: 001 [22:32:38]line Платежная система: О! деньги [22:32:38]line ФМ: 0000000000963154 [22:32:38]line ФД: 29070 [22:32:38]line ФПД: 194224844083763 [22:32:39]line 1/tax-web-control/client/api/v1/ticket?date=20240413T223244&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29070&fm=194224844083763&tin=02508201610067®Number=0000138879044617&sum=207354 [22:32:39]OFD Sender: Processing packet 29070 [packets to send 8, broken 7] [22:32:39]ProducePacketName [22:32:39]name=ofd_packets/00029070 [22:32:39]OFD Sender: To server: pG, [22:32:39]CommunicateWithHost lk.salyk.kg:30040 [22:32:39]ConnectInit lk.salyk.kg [22:32:39]written 0, free lines is 4095 [22:32:39]Connected sock=10 [22:32: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 31 35 34 0C 01 00 00 64 2F 04 01 4D 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 E0 6F 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 29 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA 29 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 56 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA 29 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 0C 08 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8E 71 00 00 35 04 06 00 B0 A5 7E D6 92 33 5B 47 C7 8C 39 F2 5B DE [22:32:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 40 DC 47 00 E2 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 31 35 34 10 04 04 00 8E 71 00 00 F4 03 04 00 B1 B2 1A 66 B6 04 01 00 00 C2 88 AC 21 1D 77 92 99 [22:32:39]CommunicateWithHost err = 0 [22:32:39]CheckOFDResponse [22:32:39]1017 (14) - 77093643461234 [22:32:39]1041 (16) - 0000000000963154 [22:32:39]1040 (4) - 29070 [22:32:39]1012 (4) - 13.04.2024 16:28 [22:32:39]1206 (1) - 0 [22:32:39]OFD Sender: Remove packet 29070 [22:32:39]ProducePacketName [22:32:39]name=ofd_packets/00029070 [22:32:39]NVStorageDeleteData [22:32:39]Write to MH i2c: 01 00 00 C7 69 30 [22:32:39]Write i2c OK [22:32:39]MH_I2C_Read... [22:32:39]Read from MH i2c: 01 [22:32:39]MH_I2C_Read... [22:32:39]Read from MH i2c: 01 07 00 [22:32:39]MH_I2C_Read... [22:32:39]Read from MH i2c: 01 07 00 C7 69 00 00 00 00 00 E8 0C 2B [22:32:39]RasterBufferAndPrint [22:32:39]line [22:32:39]line [22:32:39]line [22:32:39]line [22:32:39]line [22:32:39]written 0, free lines is 3311 [22:32:39]MH_Cut [22:32:39]Write to MH i2c: D1 01 00 CE 69 01 09 [22:32:39]Write i2c OK [22:32:39]MH_I2C_Read... [22:32:39]Read from MH i2c: D1 [22:32:39]MH_I2C_Read... [22:32:39]Read from MH i2c: D1 01 00 [22:32:39]MH_I2C_Read... [22:32:39]Read from MH i2c: D1 01 00 CE 69 00 08 [22:32:39]Write to MH i2c: 01 00 00 CF 69 38 [22:32:39]Write i2c OK [22:32:39]MH_I2C_Read... [22:32:39]OFD Sender: No OFD packet to send [22:32:40]*** Cut start [22:32:40]*** Partial cut [22:32:40]*** CUTSNS_PIN = 1 [22:32:40]*** CUTSNS_PIN = 0 [22:32:40]*** Brake cut motor [22:32:41]Read from MH i2c: 01 [22:32:41]MH_I2C_Read... [22:32:41]*** Stop cut motor [22:32:41]*** Cut end [22:32:41]Read from MH i2c: 01 07 00 [22:32:41]MH_I2C_Read... [22:32:41]Read from MH i2c: 01 07 00 CF 69 00 00 00 00 00 FF 0F 4D [22:32:41]process_action close_receipt done [22:32:41]requested_data is exist [22:32:41]produce_requested_data [22:32:41]requested_item fm.sn is exist - process it [22:32:41]wFMCommunicate request_size=4 [22:32:41]MH_SAM_APDU [22:32:41]CAPDU: 80 11 00 00 [22:32:41]Write to MH i2c: E2 08 00 D0 69 80 11 00 00 00 00 00 00 B3 [22:32:41]Write i2c OK [22:32:41]MH_I2C_Read... [22:32:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:41]Read from MH i2c: E2 [22:32:41]MH_I2C_Read... [22:32:41]Read from MH i2c: E2 17 00 [22:32:41]MH_I2C_Read... [22:32:41]Read from MH i2c: E2 17 00 D0 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 02 [22:32:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:32:41]wFMCommunicate OK [22:32:41]requested_item fd.num is exist - process it [22:32:41]SAM_PROTO_GetFieldsCounters [22:32:41]wFMCommunicate request_size=4 [22:32:41]MH_SAM_APDU [22:32:41]CAPDU: 80 13 00 00 [22:32:41]Write to MH i2c: E2 08 00 D1 69 80 13 00 00 00 00 00 00 B6 [22:32:41]Write i2c OK [22:32:41]MH_I2C_Read... [22:32:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:32:41]Read from MH i2c: E2 [22:32:41]MH_I2C_Read... [22:32:41]Read from MH i2c: E2 62 00 [22:32:41]MH_I2C_Read... [22:32:41]Read from MH i2c: E2 62 00 D1 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8E 71 00 00 0E 04 04 00 73 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 A8 [22:32: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8E 71 00 00 0E 04 04 00 73 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 [22:32:41]wFMCommunicate OK [22:32:41]SAM_PROTO_GetFieldsCounters done [22:32:41]requested_item shift.num is exist - process it [22:32:41]requested_item shift.opened is exist - process it [22:32:41]req_shift_opened [22:32:41]FM_GetShiftState [22:32:41]SAM_PROTO_GetShiftState [22:32:41]wFMCommunicate request_size=4 [22:32:41]MH_SAM_APDU [22:32:41]CAPDU: 80 13 01 00 [22:32:41]Write to MH i2c: E2 08 00 D2 69 80 13 01 00 00 00 00 00 B8 [22:32:41]Write i2c OK [22:32:41]MH_I2C_Read... [22:32:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:41]Read from MH i2c: E2 [22:32:41]MH_I2C_Read... [22:32:41]Read from MH i2c: E2 0E 00 [22:32:41]MH_I2C_Read... [22:32:41]Read from MH i2c: E2 0E 00 D2 69 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D1 [22:32:41]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [22:32:41]wFMCommunicate OK [22:32:41]SAM_PROTO_GetShiftState done [22:32:41]FM_GetShiftState done [22:32:41]req_shift_opened done [22:32:41]requested_item shift.open_date is exist - process it [22:32:41]req_shift_open_date [22:32:41]req_shift_open_date done [22:32:41]produce_requested_data done [22:32:41]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29070,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [22:32:41]process_action_free close_receipt [22:32:41]json_value_free [22:32:41]json_value_free done [22:32:41]process_json_proto returns [22:32:41]Send response to host [22:32:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29070,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [22:32:41]free response buf [22:32:41]execute_script done [22:32:41]execute_script returns [22:32:41]free content buf [22:32:41]Sock 9.Close socket [22:32:41]Sock 9.Thread stoped [22:32:44]OFD Sender: No OFD packet to send [22:32:49]OFD Sender: No OFD packet to send [22:32:54]OFD Sender: No OFD packet to send [22:32:59]OFD Sender: No OFD packet to send [22:33:04]OFD Sender: No OFD packet to send [22:33:09]OFD Sender: No OFD packet to send [22:33:14]OFD Sender: No OFD packet to send [22:33:19]OFD Sender: No OFD packet to send [22:33:24]OFD Sender: No OFD packet to send [22:33:29]OFD Sender: No OFD packet to send [22:33:34]OFD Sender: No OFD packet to send [22:33:39]OFD Sender: No OFD packet to send [22:33:44]OFD Sender: No OFD packet to send [22:33:50]OFD Sender: No OFD packet to send [22:33:55]OFD Sender: No OFD packet to send [22:34:00]OFD Sender: No OFD packet to send [22:34:05]OFD Sender: No OFD packet to send [22:34:10]OFD Sender: No OFD packet to send [22:34:15]OFD Sender: No OFD packet to send [22:34:20]OFD Sender: No OFD packet to send [22:34:25]OFD Sender: No OFD packet to send [22:34:30]OFD Sender: No OFD packet to send [22:34:35]OFD Sender: No OFD packet to send [22:34:40]OFD Sender: No OFD packet to send [22:34:45]OFD Sender: No OFD packet to send [22:34:50]OFD Sender: No OFD packet to send [22:34:55]OFD Sender: No OFD packet to send [22:35:00]OFD Sender: No OFD packet to send [22:35:05]OFD Sender: No OFD packet to send [22:35:10]OFD Sender: No OFD packet to send [22:35:15]OFD Sender: No OFD packet to send [22:35:20]OFD Sender: No OFD packet to send [22:35:25]OFD Sender: No OFD packet to send [22:35:30]OFD Sender: No OFD packet to send [22:35:35]OFD Sender: No OFD packet to send [22:35:40]OFD Sender: No OFD packet to send [22:35:45]OFD Sender: No OFD packet to send [22:35:50]OFD Sender: No OFD packet to send [22:35:55]OFD Sender: No OFD packet to send [22:36:00]OFD Sender: No OFD packet to send [22:36:05]OFD Sender: No OFD packet to send [22:36:10]OFD Sender: No OFD packet to send [22:36:15]OFD Sender: No OFD packet to send [22:36:20]OFD Sender: No OFD packet to send [22:36:25]OFD Sender: No OFD packet to send [22:36:30]OFD Sender: No OFD packet to send [22:36:35]OFD Sender: No OFD packet to send [22:36:40]OFD Sender: No OFD packet to send [22:36:45]OFD Sender: No OFD packet to send [22:36:50]OFD Sender: No OFD packet to send [22:36:55]OFD Sender: No OFD packet to send [22:37:00]OFD Sender: No OFD packet to send [22:37:05]OFD Sender: No OFD packet to send [22:37:10]OFD Sender: No OFD packet to send [22:37:15]OFD Sender: No OFD packet to send [22:37:20]OFD Sender: No OFD packet to send [22:37:25]OFD Sender: No OFD packet to send [22:37:30]OFD Sender: No OFD packet to send [22:37:35]OFD Sender: No OFD packet to send [22:37:40]OFD Sender: No OFD packet to send [22:37:45]OFD Sender: No OFD packet to send [22:37:50]OFD Sender: No OFD packet to send [22:37:55]OFD Sender: No OFD packet to send [22:38:00]OFD Sender: No OFD packet to send [22:38:05]OFD Sender: No OFD packet to send [22:38:10]OFD Sender: No OFD packet to send [22:38:15]OFD Sender: No OFD packet to send [22:38:20]OFD Sender: No OFD packet to send [22:38:25]OFD Sender: No OFD packet to send [22:38:30]OFD Sender: No OFD packet to send [22:38:35]OFD Sender: No OFD packet to send [22:38:40]OFD Sender: No OFD packet to send [22:38:45]OFD Sender: No OFD packet to send [22:38:50]OFD Sender: No OFD packet to send [22:38:55]OFD Sender: No OFD packet to send [22:39:00]OFD Sender: No OFD packet to send [22:39:05]OFD Sender: No OFD packet to send [22:39:10]OFD Sender: No OFD packet to send [22:39:15]OFD Sender: No OFD packet to send [22:39:20]OFD Sender: No OFD packet to send [22:39:25]OFD Sender: No OFD packet to send [22:39:30]OFD Sender: No OFD packet to send [22:39:35]OFD Sender: No OFD packet to send [22:39:40]OFD Sender: No OFD packet to send [22:39:45]OFD Sender: No OFD packet to send [22:39:50]OFD Sender: No OFD packet to send [22:39:55]OFD Sender: No OFD packet to send [22:40:00]OFD Sender: No OFD packet to send [22:40:05]OFD Sender: No OFD packet to send [22:40:10]OFD Sender: No OFD packet to send [22:40:15]OFD Sender: No OFD packet to send [22:40:20]OFD Sender: No OFD packet to send [22:40:25]OFD Sender: No OFD packet to send [22:40:30]OFD Sender: No OFD packet to send [22:40:35]OFD Sender: No OFD packet to send [22:40:40]OFD Sender: No OFD packet to send [22:40:45]OFD Sender: No OFD packet to send [22:40:50]OFD Sender: No OFD packet to send [22:40:55]OFD Sender: No OFD packet to send [22:41:00]OFD Sender: No OFD packet to send [22:41:05]OFD Sender: No OFD packet to send [22:41:10]OFD Sender: No OFD packet to send [22:41:15]OFD Sender: No OFD packet to send [22:41:20]OFD Sender: No OFD packet to send [22:41:25]OFD Sender: No OFD packet to send [22:41:30]OFD Sender: No OFD packet to send [22:41:35]OFD Sender: No OFD packet to send [22:41:40]OFD Sender: No OFD packet to send [22:41:45]OFD Sender: No OFD packet to send [22:41:50]OFD Sender: No OFD packet to send [22:41:55]OFD Sender: No OFD packet to send [22:42:00]OFD Sender: No OFD packet to send [22:42:05]OFD Sender: No OFD packet to send [22:42:10]OFD Sender: No OFD packet to send [22:42:15]OFD Sender: No OFD packet to send [22:42:20]OFD Sender: No OFD packet to send [22:42:25]OFD Sender: No OFD packet to send [22:42:30]OFD Sender: No OFD packet to send [22:42:35]OFD Sender: No OFD packet to send [22:42:40]OFD Sender: No OFD packet to send [22:42:45]OFD Sender: No OFD packet to send [22:42:50]OFD Sender: No OFD packet to send [22:42:55]OFD Sender: No OFD packet to send [22:43:00]OFD Sender: No OFD packet to send [22:43:05]OFD Sender: No OFD packet to send [22:43:10]OFD Sender: No OFD packet to send [22:43:15]OFD Sender: No OFD packet to send [22:43:20]OFD Sender: No OFD packet to send [22:43:25]OFD Sender: No OFD packet to send [22:43:30]OFD Sender: No OFD packet to send [22:43:35]OFD Sender: No OFD packet to send [22:43:40]OFD Sender: No OFD packet to send [22:43:45]OFD Sender: No OFD packet to send [22:43:50]OFD Sender: No OFD packet to send [22:43:55]OFD Sender: No OFD packet to send [22:44:00]OFD Sender: No OFD packet to send [22:44:05]OFD Sender: No OFD packet to send [22:44:10]OFD Sender: No OFD packet to send [22:44:15]OFD Sender: No OFD packet to send [22:44:20]OFD Sender: No OFD packet to send [22:44:25]OFD Sender: No OFD packet to send [22:44:30]OFD Sender: No OFD packet to send [22:44:35]OFD Sender: No OFD packet to send [22:44:40]OFD Sender: No OFD packet to send [22:44:45]OFD Sender: No OFD packet to send [22:44:50]OFD Sender: No OFD packet to send [22:44:55]OFD Sender: No OFD packet to send [22:45:00]OFD Sender: No OFD packet to send [22:45:05]OFD Sender: No OFD packet to send [22:45:10]OFD Sender: No OFD packet to send [22:45:15]OFD Sender: No OFD packet to send [22:45:20]OFD Sender: No OFD packet to send [22:45:25]OFD Sender: No OFD packet to send [22:45:30]OFD Sender: No OFD packet to send [22:45:34]accept exits with 7 [22:45:34]New connection [22:45:34]New thread 3066785124 created [22:45:34]Thread 3066928484 joined [22:45:34]Waiting for new connection... [22:45:34] Sock 7.Parse request [22:45:34]Sock 7.Check first char [22:45:34]Sock 7.First char is OK [22:45:34]request: POST /json_proto HTTP/1.0 [22:45:34]Method: POST [22:45:34]URL: /json_proto [22:45:34]Method is POST - this is cgi request [22:45:34]url: /json_proto [22:45:34]query_string will be loaded in cgi processing [22:45:34]execute_cgi json_proto POST (null) [22:45:34]execute_cgi path=json_proto method=POST [22:45:34]POST find Content-Length [22:45:34]Host: 172.17.33.3:8080 [22:45:34]Content-Length: 679 [22:45:34]Content-Type: application/json [22:45:34] [22:45:34]POST finish read [22:45:34]Found Content-Length = 679 [22:45:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 41.440, "sum" : 3000.26, "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:45:34]execute_script... [22:45: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)347440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 41.440, "sum" : 3000.26, "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:45:34]POST & json_proto [22:45:34]process_json_proto [22:45:34]json parsed OK: [22:45:34]protocol is kg_v1.0 [22:45:34]action value=close_receipt [22:45:34]process_action close_receipt [22:45:34]cmd_close_receipt [22:45:34]MH_GetDate [22:45:34]Write to MH i2c: F0 00 00 D3 69 2B [22:45:34]Write i2c OK [22:45:34]MH_I2C_Read... [22:45:34]Read from MH i2c: F0 [22:45:34]MH_I2C_Read... [22:45:34]Read from MH i2c: F0 09 00 [22:45:34]MH_I2C_Read... [22:45:34]Read from MH i2c: F0 09 00 D3 69 00 15 0B 1B 66 23 5B 8F 65 47 [22:45:34]GetLastDocTimeStamp 1713047564 [22:45:34]current date 1713048341 [22:45:34]FM_GetShiftState [22:45:34]SAM_PROTO_GetShiftState [22:45:34]wFMCommunicate request_size=4 [22:45:34]MH_SAM_APDU [22:45:34]CAPDU: 80 13 01 00 [22:45:34]Write to MH i2c: E2 08 00 D4 69 80 13 01 00 00 00 00 00 BA [22:45:34]Write i2c OK [22:45:34]MH_I2C_Read... [22:45:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:34]Read from MH i2c: E2 [22:45:34]MH_I2C_Read... [22:45:34]Read from MH i2c: E2 0E 00 [22:45:34]MH_I2C_Read... [22:45:34]Read from MH i2c: E2 0E 00 D4 69 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D3 [22:45:34]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [22:45:34]wFMCommunicate OK [22:45:34]SAM_PROTO_GetShiftState done [22:45:34]FM_GetShiftState done [22:45:34]opened in 1712967615 [22:45:34]opened+sec_in_day 1713054015 [22:45:34]quantity*price = 300025 [22:45:34]sum+1 = 300027 [22:45:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.61 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 278 13.04.2024 22:45 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29071 ФПД: 64159233118131 1/tax-web-control/client/api/v1/ticket?date=20240413T224541&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29071&fm=64159233118131&tin=02508201610067®Number=0000138879044617&sum=300000 [22:45:35]StoreToDocumentArchive [22:45:35]shift 115 fd 29071 [22:45:35]save to /storage/0115/doc_00029071 [22:45:35]save last doc name /storage/0115/doc_00029071 to /storage/kkm_last_doc_name [22:45:35]save OK [22:45:35]Clear old archive folders... [22:45:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:45:35]tlvbuf is 012F3A80 [22:45:35]SAM_PROTO_ClearQueue [22:45:35]wFMCommunicate request_size=4 [22:45:35]MH_SAM_APDU [22:45:35]CAPDU: 80 09 00 00 [22:45:35]Write to MH i2c: E2 08 00 E1 69 80 09 00 00 00 00 00 00 BC [22:45:35]Write i2c OK [22:45:35]MH_I2C_Read... [22:45:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:45:35]Read from MH i2c: E2 [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: E2 03 00 [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: E2 03 00 E1 69 00 90 00 BE [22:45:35]RAPDU: 90 00 [22:45:35]wFMCommunicate OK [22:45:35]SAM_PROTO_ClearQueue done [22:45:35]KKMCreateOFDPacket [22:45:35]OFDProtocolAddRootSTLVToBuf [22:45:35]FM_MakeSignedData [22:45:35]FM_MakeSignedData [22:45:35]SAM_PROTO_SignData [22:45:35]wFMCommunicate request_size=4 [22:45:35]MH_SAM_APDU [22:45:35]CAPDU: 80 0D 01 02 [22:45:35]Write to MH i2c: E2 08 00 E2 69 80 0D 01 02 00 00 00 00 C4 [22:45:35]Write i2c OK [22:45:35]MH_I2C_Read... [22:45:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:45:35]Read from MH i2c: E2 [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: E2 03 00 [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: E2 03 00 E2 69 00 90 00 BF [22:45:35]RAPDU: 90 00 [22:45:35]wFMCommunicate OK [22:45:35]wFMCommunicate request_size=255 [22:45:35]MH_SAM_APDU [22:45: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 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 16 01 00 00 F4 03 04 00 15 0B 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8F 71 00 00 35 04 06 00 3A 5A 3C 4C [22:45:35]Write to MH i2c: E2 02 01 E3 69 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 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 16 01 00 00 F4 03 04 00 15 0B 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8F 71 00 00 35 04 06 00 3A 5A 3C 4C 00 00 43 [22:45:35]Write i2c OK [22:45:35]MH_I2C_Read... [22:45:35]OFD Sender: No OFD packet to send [22:45:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:35]Read from MH i2c: E2 [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: E2 03 00 [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: E2 03 00 E3 69 00 90 00 C0 [22:45:35]RAPDU: 90 00 [22:45:35]wFMCommunicate OK [22:45:35]wFMCommunicate request_size=7 [22:45:35]MH_SAM_APDU [22:45:35]CAPDU: 80 0D 02 02 02 8F B3 [22:45:35]Write to MH i2c: E2 0A 00 E4 69 80 0D 02 02 02 00 8F B3 00 00 0D [22:45:35]Write i2c OK [22:45:35]MH_I2C_Read... [22:45:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:35]Read from MH i2c: E2 [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: E2 03 00 [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: E2 03 00 E4 69 00 90 00 C1 [22:45:35]RAPDU: 90 00 [22:45:35]wFMCommunicate OK [22:45:35]wFMCommunicate request_size=4 [22:45:35]MH_SAM_APDU [22:45:35]CAPDU: 80 0D 03 02 [22:45:35]Write to MH i2c: E2 08 00 E5 69 80 0D 03 02 00 00 00 00 C9 [22:45:35]Write i2c OK [22:45:35]MH_I2C_Read... [22:45:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:45:35]Read from MH i2c: E2 [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: E2 0B 00 [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: E2 0B 00 E5 69 00 8B E5 6C 94 FF F8 E5 63 90 00 79 [22:45:35]RAPDU: 8B E5 6C 94 FF F8 E5 63 90 00 [22:45:35]wFMCommunicate OK [22:45:35]SAM_PROTO_SignData done [22:45:35]FM_MakeSignedData done [22:45:35]CreateOFDProtocolMessage [22:45:35]wFMCommunicate request_size=4 [22:45:35]MH_SAM_APDU [22:45:35]CAPDU: 80 11 00 00 [22:45:35]Write to MH i2c: E2 08 00 E6 69 80 11 00 00 00 00 00 00 C9 [22:45:35]Write i2c OK [22:45:35]MH_I2C_Read... [22:45:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:35]Read from MH i2c: E2 [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: E2 17 00 [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: E2 17 00 E6 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 18 [22:45:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:45:35]wFMCommunicate OK [22:45:35]CreateOFDProtocolMessage done [22:45:35]OFDSenderStorePacket 29071 [22:45:35]StoreOFDPacket docnum=29071 [22:45:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 AD 64 04 01 33 0D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 16 01 00 00 F4 03 04 00 15 0B 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8F 71 00 00 35 04 06 00 3A 5A 3C 4C 8F B3 8B E5 6C 94 FF F8 E5 63 [22:45:35]CheckFolder [22:45:35]dirname=/storage/ofd_packets [22:45:35]CheckFolder done [22:45:35]ProducePacketName [22:45:35]name=ofd_packets/00029071 [22:45:35]NVStorageSaveData ofd_packets/00029071 [22:45:35]File name is /storage/ofd_packets/00029071 [22:45:35]Write 298 bytes [22:45:35]NVStorageSaveData done [22:45:35]OFDSenderStorePacket done [22:45:35]KKMCreateOFDPacket done [22:45:35]NVStorageSaveData kkm_last_timestamp [22:45:35]File name is /storage/kkm_last_timestamp [22:45:35]Write 4 bytes [22:45:35]NVStorageSaveData done [22:45:35]ExternCall_PrintAddStr [22:45:35]wPrintStart [22:45:35]Write to MH i2c: 01 00 00 E7 69 50 [22:45:35]Write i2c OK [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: 01 [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: 01 07 00 [22:45:35]MH_I2C_Read... [22:45:35]Read from MH i2c: 01 07 00 E7 69 00 00 00 00 00 FF 0F 65 [22:45:35]RasterBufferAndPrint [22:45:35]line Счет N : (1)347440 [22:45:35]line ИНН: 02508201610067 [22:45:35]line Контрольно-Кассовый Чек [22:45:35]line ПРОДАЖА [22:45:35]line ТРК (МРК, ГНК) : 11 [22:45:35]line Товар: 2710194210 [22:45:35]line ДТ-К-5 [22:45:35]line 41.440 * 72.40 [22:45:35]line = 3000.26 [22:45:35]line НДС 12% НСП 1% [22:45:35]line > о реализуемом товаре [22:45:35]line ОКРУГЛЕНИЕ: -0.26 [22:45:35]line ИТОГО: 3000.00 [22:45:35]line Внесено: 3000.00 [22:45:35]line СДАЧА: 0.00 [22:45:35]line НСП 1% : 26.55 [22:45:35]line НДС 12% : 318.61 [22:45:35]line Наличными: 3000.00 [22:45:35]line Безнал.: 0.00 [22:45:35]line Место: АЗС № 108 "Партнер Нефть" [22:45:35]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [22:45:35]line СНО: Общий режим [22:45:35]line Чек 278 13.04.2024 22:45 [22:45:35]line Смена: 115 ФФД: 1.0 [22:45:35]line ЗНМ: 0300000027 [22:45:35]line РНМ: 0000138879044617 [22:45:35]line Версия ККМ: 001 [22:45:35]line ФМ: 0000000000963154 [22:45:36]line ФД: 29071 [22:45:36]line ФПД: 64159233118131 [22:45:36]line 1/tax-web-control/client/api/v1/ticket?date=20240413T224541&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29071&fm=64159233118131&tin=02508201610067®Number=0000138879044617&sum=300000 [22:45:36]OFD Sender: Processing packet 29071 [packets to send 8, broken 7] [22:45:36]ProducePacketName [22:45:36]name=ofd_packets/00029071 [22:45:36]OFD Sender: To server: pG, [22:45:36]CommunicateWithHost lk.salyk.kg:30040 [22:45:36]ConnectInit lk.salyk.kg [22:45:36]written 0, free lines is 4095 [22:45:36]Connected sock=10 [22:45: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 31 35 34 0C 01 00 00 AD 64 04 01 33 0D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 16 01 00 00 F4 03 04 00 15 0B 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 8F 71 00 00 35 04 06 00 3A 5A 3C 4C 8F B3 8B E5 6C 94 FF F8 E5 63 [22:45:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A8 70 47 00 1B 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 31 35 34 10 04 04 00 8F 71 00 00 F4 03 04 00 BA B5 1A 66 B6 04 01 00 00 AC EA 39 CA 5A 22 4D 62 [22:45:36]CommunicateWithHost err = 0 [22:45:36]CheckOFDResponse [22:45:36]1017 (14) - 77093643461234 [22:45:36]1041 (16) - 0000000000963154 [22:45:36]1040 (4) - 29071 [22:45:36]1012 (4) - 13.04.2024 16:41 [22:45:36]1206 (1) - 0 [22:45:36]OFD Sender: Remove packet 29071 [22:45:36]ProducePacketName [22:45:36]name=ofd_packets/00029071 [22:45:36]NVStorageDeleteData [22:45:36]Write to MH i2c: 01 00 00 11 6A 7B [22:45:36]Write i2c OK [22:45:36]MH_I2C_Read... [22:45:36]Read from MH i2c: 01 [22:45:36]MH_I2C_Read... [22:45:36]Read from MH i2c: 01 07 00 [22:45:36]MH_I2C_Read... [22:45:36]Read from MH i2c: 01 07 00 11 6A 00 00 00 00 00 C6 0C 54 [22:45:36]RasterBufferAndPrint [22:45:36]line [22:45:36]line [22:45:36]line [22:45:36]line [22:45:36]line [22:45:36]written 0, free lines is 3273 [22:45:36]MH_Cut [22:45:36]Write to MH i2c: D1 01 00 18 6A 01 54 [22:45:36]Write i2c OK [22:45:36]MH_I2C_Read... [22:45:36]Read from MH i2c: D1 [22:45:36]MH_I2C_Read... [22:45:36]Read from MH i2c: D1 01 00 [22:45:36]MH_I2C_Read... [22:45:36]Read from MH i2c: D1 01 00 18 6A 00 53 [22:45:36]Write to MH i2c: 01 00 00 19 6A 83 [22:45:36]Write i2c OK [22:45:36]MH_I2C_Read... [22:45:36]OFD Sender: No OFD packet to send [22:45:37]*** Cut start [22:45:37]*** Partial cut [22:45:37]*** CUTSNS_PIN = 1 [22:45:37]*** CUTSNS_PIN = 0 [22:45:37]*** Brake cut motor [22:45:37]Read from MH i2c: 01 [22:45:37]MH_I2C_Read... [22:45:37]*** Stop cut motor [22:45:37]*** Cut end [22:45:37]Read from MH i2c: 01 07 00 [22:45:37]MH_I2C_Read... [22:45:37]Read from MH i2c: 01 07 00 19 6A 00 00 00 00 00 FF 0F 98 [22:45:37]process_action close_receipt done [22:45:37]requested_data is exist [22:45:37]produce_requested_data [22:45:37]requested_item fm.sn is exist - process it [22:45:37]wFMCommunicate request_size=4 [22:45:37]MH_SAM_APDU [22:45:37]CAPDU: 80 11 00 00 [22:45:37]Write to MH i2c: E2 08 00 1A 6A 80 11 00 00 00 00 00 00 FE [22:45:37]Write i2c OK [22:45:37]MH_I2C_Read... [22:45:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:38]Read from MH i2c: E2 [22:45:38]MH_I2C_Read... [22:45:38]Read from MH i2c: E2 17 00 [22:45:38]MH_I2C_Read... [22:45:38]Read from MH i2c: E2 17 00 1A 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 4D [22:45:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [22:45:38]wFMCommunicate OK [22:45:38]requested_item fd.num is exist - process it [22:45:38]SAM_PROTO_GetFieldsCounters [22:45:38]wFMCommunicate request_size=4 [22:45:38]MH_SAM_APDU [22:45:38]CAPDU: 80 13 00 00 [22:45:38]Write to MH i2c: E2 08 00 1B 6A 80 13 00 00 00 00 00 00 01 [22:45:38]Write i2c OK [22:45:38]MH_I2C_Read... [22:45:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:45:38]Read from MH i2c: E2 [22:45:38]MH_I2C_Read... [22:45:38]Read from MH i2c: E2 62 00 [22:45:38]MH_I2C_Read... [22:45:38]Read from MH i2c: E2 62 00 1B 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8F 71 00 00 0E 04 04 00 73 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 F7 [22:45: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 8F 71 00 00 0E 04 04 00 73 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 [22:45:38]wFMCommunicate OK [22:45:38]SAM_PROTO_GetFieldsCounters done [22:45:38]requested_item shift.num is exist - process it [22:45:38]requested_item shift.opened is exist - process it [22:45:38]req_shift_opened [22:45:38]FM_GetShiftState [22:45:38]SAM_PROTO_GetShiftState [22:45:38]wFMCommunicate request_size=4 [22:45:38]MH_SAM_APDU [22:45:38]CAPDU: 80 13 01 00 [22:45:38]Write to MH i2c: E2 08 00 1C 6A 80 13 01 00 00 00 00 00 03 [22:45:38]Write i2c OK [22:45:38]MH_I2C_Read... [22:45:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:38]Read from MH i2c: E2 [22:45:38]MH_I2C_Read... [22:45:38]Read from MH i2c: E2 0E 00 [22:45:38]MH_I2C_Read... [22:45:38]Read from MH i2c: E2 0E 00 1C 6A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 1C [22:45:38]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [22:45:38]wFMCommunicate OK [22:45:38]SAM_PROTO_GetShiftState done [22:45:38]FM_GetShiftState done [22:45:38]req_shift_opened done [22:45:38]requested_item shift.open_date is exist - process it [22:45:38]req_shift_open_date [22:45:38]req_shift_open_date done [22:45:38]produce_requested_data done [22:45:38]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29071,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [22:45:38]process_action_free close_receipt [22:45:38]json_value_free [22:45:38]json_value_free done [22:45:38]process_json_proto returns [22:45:38]Send response to host [22:45:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29071,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [22:45:38]free response buf [22:45:38]execute_script done [22:45:38]execute_script returns [22:45:38]free content buf [22:45:38]Sock 7.Close socket [22:45:38]Sock 7.Thread stoped [22:45:41]OFD Sender: No OFD packet to send [22:45:46]OFD Sender: No OFD packet to send [22:45:51]OFD Sender: No OFD packet to send [22:45:56]OFD Sender: No OFD packet to send [22:46:01]OFD Sender: No OFD packet to send [22:46:06]OFD Sender: No OFD packet to send [22:46:11]OFD Sender: No OFD packet to send [22:46:16]OFD Sender: No OFD packet to send [22:46:21]OFD Sender: No OFD packet to send [22:46:26]OFD Sender: No OFD packet to send [22:46:31]OFD Sender: No OFD packet to send [22:46:36]OFD Sender: No OFD packet to send [22:46:41]OFD Sender: No OFD packet to send [22:46:46]OFD Sender: No OFD packet to send [22:46:51]OFD Sender: No OFD packet to send [22:46:56]OFD Sender: No OFD packet to send [22:47:01]OFD Sender: No OFD packet to send [22:47:06]OFD Sender: No OFD packet to send [22:47:11]OFD Sender: No OFD packet to send [22:47:16]OFD Sender: No OFD packet to send [22:47:21]OFD Sender: No OFD packet to send [22:47:26]OFD Sender: No OFD packet to send [22:47:31]OFD Sender: No OFD packet to send [22:47:36]OFD Sender: No OFD packet to send [22:47:41]OFD Sender: No OFD packet to send [22:47:46]OFD Sender: No OFD packet to send [22:47:51]OFD Sender: No OFD packet to send [22:47:56]OFD Sender: No OFD packet to send [22:48:01]OFD Sender: No OFD packet to send [22:48:06]OFD Sender: No OFD packet to send [22:48:11]OFD Sender: No OFD packet to send [22:48:16]OFD Sender: No OFD packet to send [22:48:21]OFD Sender: No OFD packet to send [22:48:26]OFD Sender: No OFD packet to send [22:48:32]OFD Sender: No OFD packet to send [22:48:37]OFD Sender: No OFD packet to send [22:48:42]OFD Sender: No OFD packet to send [22:48:47]OFD Sender: No OFD packet to send [22:48:52]OFD Sender: No OFD packet to send [22:48:57]OFD Sender: No OFD packet to send [22:49:02]OFD Sender: No OFD packet to send [22:49:07]OFD Sender: No OFD packet to send [22:49:12]OFD Sender: No OFD packet to send [22:49:17]OFD Sender: No OFD packet to send [22:49:22]OFD Sender: No OFD packet to send [22:49:27]OFD Sender: No OFD packet to send [22:49:32]OFD Sender: No OFD packet to send [22:49:37]OFD Sender: No OFD packet to send [22:49:42]OFD Sender: No OFD packet to send [22:49:47]OFD Sender: No OFD packet to send [22:49:52]OFD Sender: No OFD packet to send [22:49:57]OFD Sender: No OFD packet to send [22:50:02]OFD Sender: No OFD packet to send [22:50:07]OFD Sender: No OFD packet to send [22:50:12]OFD Sender: No OFD packet to send [22:50:17]OFD Sender: No OFD packet to send [22:50:22]OFD Sender: No OFD packet to send [22:50:27]OFD Sender: No OFD packet to send [22:50:32]OFD Sender: No OFD packet to send [22:50:37]OFD Sender: No OFD packet to send [22:50:42]OFD Sender: No OFD packet to send [22:50:47]OFD Sender: No OFD packet to send [22:50:52]OFD Sender: No OFD packet to send [22:50:57]OFD Sender: No OFD packet to send [22:51:02]OFD Sender: No OFD packet to send [22:51:07]OFD Sender: No OFD packet to send [22:51:12]OFD Sender: No OFD packet to send [22:51:17]OFD Sender: No OFD packet to send [22:51:22]OFD Sender: No OFD packet to send [22:51:27]OFD Sender: No OFD packet to send [22:51:32]OFD Sender: No OFD packet to send [22:51:37]OFD Sender: No OFD packet to send [22:51:42]OFD Sender: No OFD packet to send [22:51:47]OFD Sender: No OFD packet to send [22:51:52]OFD Sender: No OFD packet to send [22:51:57]OFD Sender: No OFD packet to send [22:52:02]OFD Sender: No OFD packet to send [22:52:07]OFD Sender: No OFD packet to send [22:52:12]OFD Sender: No OFD packet to send [22:52:17]OFD Sender: No OFD packet to send [22:52:22]OFD Sender: No OFD packet to send [22:52:27]OFD Sender: No OFD packet to send [22:52:32]OFD Sender: No OFD packet to send [22:52:37]OFD Sender: No OFD packet to send [22:52:42]OFD Sender: No OFD packet to send [22:52:47]OFD Sender: No OFD packet to send [22:52:52]OFD Sender: No OFD packet to send [22:52:57]OFD Sender: No OFD packet to send [22:53:02]OFD Sender: No OFD packet to send [22:53:07]OFD Sender: No OFD packet to send [22:53:12]OFD Sender: No OFD packet to send [22:53:17]OFD Sender: No OFD packet to send [22:53:22]OFD Sender: No OFD packet to send [22:53:27]OFD Sender: No OFD packet to send [22:53:32]OFD Sender: No OFD packet to send [22:53:37]OFD Sender: No OFD packet to send [22:53:42]OFD Sender: No OFD packet to send [22:53:47]OFD Sender: No OFD packet to send [22:53:52]OFD Sender: No OFD packet to send [22:53:57]OFD Sender: No OFD packet to send [22:54:02]OFD Sender: No OFD packet to send [22:54:07]OFD Sender: No OFD packet to send [22:54:12]OFD Sender: No OFD packet to send [22:54:17]OFD Sender: No OFD packet to send [22:54:22]OFD Sender: No OFD packet to send [22:54:27]OFD Sender: No OFD packet to send [22:54:32]OFD Sender: No OFD packet to send [22:54:37]OFD Sender: No OFD packet to send [22:54:42]OFD Sender: No OFD packet to send [22:54:47]OFD Sender: No OFD packet to send [22:54:52]OFD Sender: No OFD packet to send [22:54:57]OFD Sender: No OFD packet to send [22:55:02]OFD Sender: No OFD packet to send [22:55:07]OFD Sender: No OFD packet to send [22:55:12]OFD Sender: No OFD packet to send [22:55:17]OFD Sender: No OFD packet to send [22:55:22]OFD Sender: No OFD packet to send [22:55:27]OFD Sender: No OFD packet to send [22:55:32]OFD Sender: No OFD packet to send [22:55:37]OFD Sender: No OFD packet to send [22:55:42]OFD Sender: No OFD packet to send [22:55:47]OFD Sender: No OFD packet to send [22:55:52]OFD Sender: No OFD packet to send [22:55:57]OFD Sender: No OFD packet to send [22:56:02]OFD Sender: No OFD packet to send [22:56:07]OFD Sender: No OFD packet to send [22:56:12]OFD Sender: No OFD packet to send [22:56:17]OFD Sender: No OFD packet to send [22:56:22]OFD Sender: No OFD packet to send [22:56:27]OFD Sender: No OFD packet to send [22:56:32]OFD Sender: No OFD packet to send [22:56:37]OFD Sender: No OFD packet to send [22:56:42]OFD Sender: No OFD packet to send [22:56:47]OFD Sender: No OFD packet to send [22:56:52]OFD Sender: No OFD packet to send [22:56:57]OFD Sender: No OFD packet to send [22:57:02]OFD Sender: No OFD packet to send [22:57:07]OFD Sender: No OFD packet to send [22:57:12]OFD Sender: No OFD packet to send [22:57:17]OFD Sender: No OFD packet to send [22:57:22]OFD Sender: No OFD packet to send [22:57:27]OFD Sender: No OFD packet to send [22:57:32]OFD Sender: No OFD packet to send [22:57:37]OFD Sender: No OFD packet to send [22:57:42]OFD Sender: No OFD packet to send [22:57:47]OFD Sender: No OFD packet to send [22:57:52]OFD Sender: No OFD packet to send [22:57:57]OFD Sender: No OFD packet to send [22:58:02]OFD Sender: No OFD packet to send [22:58:07]OFD Sender: No OFD packet to send [22:58:12]OFD Sender: No OFD packet to send [22:58:17]OFD Sender: No OFD packet to send [22:58:22]OFD Sender: No OFD packet to send [22:58:27]OFD Sender: No OFD packet to send [22:58:32]OFD Sender: No OFD packet to send [22:58:37]OFD Sender: No OFD packet to send [22:58:42]OFD Sender: No OFD packet to send [22:58:47]OFD Sender: No OFD packet to send [22:58:52]OFD Sender: No OFD packet to send [22:58:57]OFD Sender: No OFD packet to send [22:59:02]OFD Sender: No OFD packet to send [22:59:07]OFD Sender: No OFD packet to send [22:59:12]OFD Sender: No OFD packet to send [22:59:17]OFD Sender: No OFD packet to send [22:59:22]OFD Sender: No OFD packet to send [22:59:27]OFD Sender: No OFD packet to send [22:59:32]OFD Sender: No OFD packet to send [22:59:37]OFD Sender: No OFD packet to send [22:59:42]OFD Sender: No OFD packet to send [22:59:47]OFD Sender: No OFD packet to send [22:59:52]OFD Sender: No OFD packet to send [22:59:57]OFD Sender: No OFD packet to send [23:00:02]OFD Sender: No OFD packet to send [23:00:07]OFD Sender: No OFD packet to send [23:00:12]OFD Sender: No OFD packet to send [23:00:17]OFD Sender: No OFD packet to send [23:00:22]OFD Sender: No OFD packet to send [23:00:27]OFD Sender: No OFD packet to send [23:00:32]OFD Sender: No OFD packet to send [23:00:37]OFD Sender: No OFD packet to send [23:00:42]OFD Sender: No OFD packet to send [23:00:47]OFD Sender: No OFD packet to send [23:00:52]OFD Sender: No OFD packet to send [23:00:57]OFD Sender: No OFD packet to send [23:01:02]OFD Sender: No OFD packet to send [23:01:07]OFD Sender: No OFD packet to send [23:01:12]OFD Sender: No OFD packet to send [23:01:17]OFD Sender: No OFD packet to send [23:01:22]OFD Sender: No OFD packet to send [23:01:27]OFD Sender: No OFD packet to send [23:01:32]OFD Sender: No OFD packet to send [23:01:37]OFD Sender: No OFD packet to send [23:01:42]OFD Sender: No OFD packet to send [23:01:47]OFD Sender: No OFD packet to send [23:01:52]OFD Sender: No OFD packet to send [23:01:57]OFD Sender: No OFD packet to send [23:02:02]OFD Sender: No OFD packet to send [23:02:07]OFD Sender: No OFD packet to send [23:02:11]accept exits with 9 [23:02:11]New connection [23:02:11]New thread 3066928484 created [23:02:11]Thread 3066785124 joined [23:02:11]Waiting for new connection... [23:02:11] Sock 9.Parse request [23:02:11]Sock 9.Check first char [23:02:11]Sock 9.First char is OK [23:02:11]request: POST /json_proto HTTP/1.0 [23:02:11]Method: POST [23:02:11]URL: /json_proto [23:02:11]Method is POST - this is cgi request [23:02:11]url: /json_proto [23:02:11]query_string will be loaded in cgi processing [23:02:11]execute_cgi json_proto POST (null) [23:02:11]execute_cgi path=json_proto method=POST [23:02:11]POST find Content-Length [23:02:11]Host: 172.17.33.3:8080 [23:02:11]Content-Length: 820 [23:02:11]Content-Type: application/json [23:02:11] [23:02:11]POST finish read [23:02:11]Found Content-Length = 820 [23:02:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 18.240, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:02:11]execute_script... [23:02: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)347441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 18.240, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:02:11]POST & json_proto [23:02:11]process_json_proto [23:02:11]json parsed OK: [23:02:11]protocol is kg_v1.0 [23:02:11]action value=close_receipt [23:02:11]process_action close_receipt [23:02:11]cmd_close_receipt [23:02:11]MH_GetDate [23:02:11]Write to MH i2c: F0 00 00 1D 6A 76 [23:02:11]Write i2c OK [23:02:11]MH_I2C_Read... [23:02:11]Read from MH i2c: F0 [23:02:11]MH_I2C_Read... [23:02:11]Read from MH i2c: F0 09 00 [23:02:11]MH_I2C_Read... [23:02:11]Read from MH i2c: F0 09 00 1D 6A 00 FA 0E 1B 66 23 5B 8F 65 7A [23:02:11]GetLastDocTimeStamp 1713048341 [23:02:11]current date 1713049338 [23:02:11]FM_GetShiftState [23:02:11]SAM_PROTO_GetShiftState [23:02:11]wFMCommunicate request_size=4 [23:02:11]MH_SAM_APDU [23:02:11]CAPDU: 80 13 01 00 [23:02:11]Write to MH i2c: E2 08 00 1E 6A 80 13 01 00 00 00 00 00 05 [23:02:11]Write i2c OK [23:02:11]MH_I2C_Read... [23:02:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:02:11]Read from MH i2c: E2 [23:02:11]MH_I2C_Read... [23:02:11]Read from MH i2c: E2 0E 00 [23:02:11]MH_I2C_Read... [23:02:11]Read from MH i2c: E2 0E 00 1E 6A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 1E [23:02:11]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:02:11]wFMCommunicate OK [23:02:11]SAM_PROTO_GetShiftState done [23:02:11]FM_GetShiftState done [23:02:11]opened in 1712967615 [23:02:11]opened+sec_in_day 1713054015 [23:02:11]quantity*price = 60009 [23:02:11]sum+1 = 60011 [23:02:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.10 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.10 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 279 13.04.2024 23:02 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29072 ФПД: 217915442295002 1/tax-web-control/client/api/v1/ticket?date=20240413T230218&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29072&fm=217915442295002&tin=02508201610067®Number=0000138879044617&sum=60010 [23:02:12]StoreToDocumentArchive [23:02:12]shift 115 fd 29072 [23:02:12]save to /storage/0115/doc_00029072 [23:02:12]save last doc name /storage/0115/doc_00029072 to /storage/kkm_last_doc_name [23:02:12]save OK [23:02:12]Clear old archive folders... [23:02:12]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:02:12]tlvbuf is 011DA5D0 [23:02:12]SAM_PROTO_ClearQueue [23:02:12]wFMCommunicate request_size=4 [23:02:12]MH_SAM_APDU [23:02:12]CAPDU: 80 09 00 00 [23:02:12]Write to MH i2c: E2 08 00 2B 6A 80 09 00 00 00 00 00 00 07 [23:02:12]Write i2c OK [23:02:12]MH_I2C_Read... [23:02:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:02:12]Read from MH i2c: E2 [23:02:12]MH_I2C_Read... [23:02:12]Read from MH i2c: E2 03 00 [23:02:12]MH_I2C_Read... [23:02:12]Read from MH i2c: E2 03 00 2B 6A 00 90 00 09 [23:02:12]RAPDU: 90 00 [23:02:12]wFMCommunicate OK [23:02:12]SAM_PROTO_ClearQueue done [23:02:12]KKMCreateOFDPacket [23:02:12]OFDProtocolAddRootSTLVToBuf [23:02:12]FM_MakeSignedData [23:02:12]FM_MakeSignedData [23:02:12]SAM_PROTO_SignData [23:02:12]wFMCommunicate request_size=4 [23:02:12]MH_SAM_APDU [23:02:12]CAPDU: 80 0D 01 02 [23:02:12]Write to MH i2c: E2 08 00 2C 6A 80 0D 01 02 00 00 00 00 0F [23:02:12]Write i2c OK [23:02:12]MH_I2C_Read... [23:02:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:02:12]Read from MH i2c: E2 [23:02:12]MH_I2C_Read... [23:02:12]Read from MH i2c: E2 03 00 [23:02:12]MH_I2C_Read... [23:02:12]Read from MH i2c: E2 03 00 2C 6A 00 90 00 0A [23:02:12]RAPDU: 90 00 [23:02:12]wFMCommunicate OK [23:02:12]wFMCommunicate request_size=255 [23:02:12]MH_SAM_APDU [23:02:12]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 40 47 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 FA 0E 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 90 71 00 00 35 04 06 00 C6 31 [23:02:12]Write to MH i2c: E2 02 01 2D 6A 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 40 47 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 FA 0E 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 90 71 00 00 35 04 06 00 C6 31 00 00 6D [23:02:12]Write i2c OK [23:02:12]MH_I2C_Read... [23:02:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:02:13]Read from MH i2c: E2 [23:02:13]MH_I2C_Read... [23:02:13]Read from MH i2c: E2 03 00 [23:02:13]MH_I2C_Read... [23:02:13]Read from MH i2c: E2 03 00 2D 6A 00 90 00 0B [23:02:13]RAPDU: 90 00 [23:02:13]wFMCommunicate OK [23:02:13]wFMCommunicate request_size=9 [23:02:13]MH_SAM_APDU [23:02:13]CAPDU: 80 0D 02 02 04 64 87 70 DA [23:02:13]Write to MH i2c: E2 0C 00 2E 6A 80 0D 02 02 04 00 64 87 70 DA 00 00 4F [23:02:13]Write i2c OK [23:02:13]MH_I2C_Read... [23:02:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:02:13]Read from MH i2c: E2 [23:02:13]MH_I2C_Read... [23:02:13]Read from MH i2c: E2 03 00 [23:02:13]MH_I2C_Read... [23:02:13]Read from MH i2c: E2 03 00 2E 6A 00 90 00 0C [23:02:13]RAPDU: 90 00 [23:02:13]wFMCommunicate OK [23:02:13]wFMCommunicate request_size=4 [23:02:13]MH_SAM_APDU [23:02:13]CAPDU: 80 0D 03 02 [23:02:13]Write to MH i2c: E2 08 00 2F 6A 80 0D 03 02 00 00 00 00 14 [23:02:13]Write i2c OK [23:02:13]MH_I2C_Read... [23:02:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:02:13]Read from MH i2c: E2 [23:02:13]MH_I2C_Read... [23:02:13]Read from MH i2c: E2 0B 00 [23:02:13]MH_I2C_Read... [23:02:13]Read from MH i2c: E2 0B 00 2F 6A 00 B3 42 4A 7A 4E FE 8C 33 90 00 D9 [23:02:13]RAPDU: B3 42 4A 7A 4E FE 8C 33 90 00 [23:02:13]wFMCommunicate OK [23:02:13]SAM_PROTO_SignData done [23:02:13]FM_MakeSignedData done [23:02:13]CreateOFDProtocolMessage [23:02:13]wFMCommunicate request_size=4 [23:02:13]MH_SAM_APDU [23:02:13]CAPDU: 80 11 00 00 [23:02:13]Write to MH i2c: E2 08 00 30 6A 80 11 00 00 00 00 00 00 14 [23:02:13]Write i2c OK [23:02:13]MH_I2C_Read... [23:02:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:02:13]Read from MH i2c: E2 [23:02:13]MH_I2C_Read... [23:02:13]Read from MH i2c: E2 17 00 [23:02:13]MH_I2C_Read... [23:02:13]Read from MH i2c: E2 17 00 30 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 63 [23:02:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:02:13]wFMCommunicate OK [23:02:13]CreateOFDProtocolMessage done [23:02:13]OFDSenderStorePacket 29072 [23:02:13]StoreOFDPacket docnum=29072 [23:02:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 EB DF 06 01 AE A0 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 40 47 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 FA 0E 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 90 71 00 00 35 04 06 00 C6 31 64 87 70 DA B3 42 4A 7A 4E FE 8C 33 [23:02:13]CheckFolder [23:02:13]dirname=/storage/ofd_packets [23:02:13]CheckFolder done [23:02:13]ProducePacketName [23:02:13]name=ofd_packets/00029072 [23:02:13]NVStorageSaveData ofd_packets/00029072 [23:02:13]File name is /storage/ofd_packets/00029072 [23:02:13]Write 300 bytes [23:02:13]NVStorageSaveData done [23:02:13]OFDSenderStorePacket done [23:02:13]KKMCreateOFDPacket done [23:02:13]NVStorageSaveData kkm_last_timestamp [23:02:13]File name is /storage/kkm_last_timestamp [23:02:13]Write 4 bytes [23:02:13]NVStorageSaveData done [23:02:13]ExternCall_PrintAddStr [23:02:13]wPrintStart [23:02:13]Write to MH i2c: 01 00 00 31 6A 9B [23:02:13]Write i2c OK [23:02:13]MH_I2C_Read... [23:02:13]Read from MH i2c: 01 [23:02:13]MH_I2C_Read... [23:02:13]Read from MH i2c: 01 07 00 [23:02:13]MH_I2C_Read... [23:02:13]Read from MH i2c: 01 07 00 31 6A 00 00 00 00 00 FF 0F B0 [23:02:13]RasterBufferAndPrint [23:02:13]line Счет N : (1)347441 [23:02:13]line ИНН: 02508201610067 [23:02:13]line Контрольно-Кассовый Чек [23:02:13]line ПРОДАЖА [23:02:13]line ТРК (МРК, ГНК) : 71 [23:02:13]line Товар: 2711129700 [23:02:13]line ГАЗ-К-5 [23:02:13]line 18.240 * 32.90 [23:02:13]line = 600.10 [23:02:13]line НДС 12% НСП 1% [23:02:13]line > о реализуемом товаре [23:02:13]line ИТОГО: 600.10 [23:02:13]line НСП 1% : 5.31 [23:02:13]line НДС 12% : 63.73 [23:02:13]line Наличными: 0.00 [23:02:13]line Безнал.: 600.10 [23:02:13]line Место: АЗС № 108 "Партнер Нефть" [23:02:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:02:13]line СНО: Общий режим [23:02:13]line Чек 279 13.04.2024 23:02 [23:02:13]line Смена: 115 ФФД: 1.0 [23:02:13]line ЗНМ: 0300000027 [23:02:13]line РНМ: 0000138879044617 [23:02:13]line Версия ККМ: 001 [23:02:13]line Платежная система: Бакай Банк [23:02:13]line ФМ: 0000000000963154 [23:02:13]line ФД: 29072 [23:02:13]line ФПД: 217915442295002 [23:02:13]line 1/tax-web-control/client/api/v1/ticket?date=20240413T230218&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29072&fm=217915442295002&tin=02508201610067®Number=0000138879044617&sum=60010 [23:02:13]OFD Sender: Processing packet 29072 [packets to send 8, broken 7] [23:02:13]ProducePacketName [23:02:13]name=ofd_packets/00029072 [23:02:13]OFD Sender: To server: pG, [23:02:13]CommunicateWithHost lk.salyk.kg:30040 [23:02:13]ConnectInit lk.salyk.kg [23:02:13]written 0, free lines is 4095 [23:02:13]Connected sock=10 [23:02: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 31 35 34 0E 01 00 00 EB DF 06 01 AE A0 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 40 47 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 FA 0E 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 90 71 00 00 35 04 06 00 C6 31 64 87 70 DA B3 42 4A 7A 4E FE 8C 33 [23:02:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 26 B0 47 00 D4 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 31 35 34 10 04 04 00 90 71 00 00 F4 03 04 00 A0 B9 1A 66 B6 04 01 00 00 0D A4 EE 8F 21 F7 8F C2 [23:02:13]CommunicateWithHost err = 0 [23:02:13]CheckOFDResponse [23:02:13]1017 (14) - 77093643461234 [23:02:13]1041 (16) - 0000000000963154 [23:02:13]1040 (4) - 29072 [23:02:13]1012 (4) - 13.04.2024 16:58 [23:02:13]1206 (1) - 0 [23:02:13]OFD Sender: Remove packet 29072 [23:02:13]ProducePacketName [23:02:13]name=ofd_packets/00029072 [23:02:13]NVStorageDeleteData [23:02:13]Write to MH i2c: 01 00 00 5A 6A C4 [23:02:13]Write i2c OK [23:02:13]MH_I2C_Read... [23:02:13]Read from MH i2c: 01 [23:02:13]MH_I2C_Read... [23:02:13]Read from MH i2c: 01 07 00 [23:02:13]MH_I2C_Read... [23:02:13]Read from MH i2c: 01 07 00 5A 6A 00 00 00 00 00 D5 0C AC [23:02:13]RasterBufferAndPrint [23:02:13]line [23:02:13]line [23:02:13]line [23:02:13]line [23:02:13]line [23:02:13]written 0, free lines is 3291 [23:02:13]MH_Cut [23:02:13]Write to MH i2c: D1 01 00 61 6A 01 9D [23:02:13]Write i2c OK [23:02:13]MH_I2C_Read... [23:02:13]Read from MH i2c: D1 [23:02:13]MH_I2C_Read... [23:02:13]Read from MH i2c: D1 01 00 [23:02:13]MH_I2C_Read... [23:02:13]Read from MH i2c: D1 01 00 61 6A 00 9C [23:02:13]Write to MH i2c: 01 00 00 62 6A CC [23:02:13]Write i2c OK [23:02:13]MH_I2C_Read... [23:02:14]OFD Sender: No OFD packet to send [23:02:14]*** Cut start [23:02:14]*** Partial cut [23:02:14]*** CUTSNS_PIN = 1 [23:02:14]*** CUTSNS_PIN = 0 [23:02:15]*** Brake cut motor [23:02:15]Read from MH i2c: 01 [23:02:15]MH_I2C_Read... [23:02:15]*** Stop cut motor [23:02:15]*** Cut end [23:02:15]Read from MH i2c: 01 07 00 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: 01 07 00 62 6A 00 00 00 00 00 FF 0F E1 [23:02:15]process_action close_receipt done [23:02:15]requested_data is exist [23:02:15]produce_requested_data [23:02:15]requested_item fm.sn is exist - process it [23:02:15]wFMCommunicate request_size=4 [23:02:15]MH_SAM_APDU [23:02:15]CAPDU: 80 11 00 00 [23:02:15]Write to MH i2c: E2 08 00 63 6A 80 11 00 00 00 00 00 00 47 [23:02:15]Write i2c OK [23:02:15]MH_I2C_Read... [23:02:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:02:15]Read from MH i2c: E2 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: E2 17 00 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: E2 17 00 63 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 96 [23:02:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:02:15]wFMCommunicate OK [23:02:15]requested_item fd.num is exist - process it [23:02:15]SAM_PROTO_GetFieldsCounters [23:02:15]wFMCommunicate request_size=4 [23:02:15]MH_SAM_APDU [23:02:15]CAPDU: 80 13 00 00 [23:02:15]Write to MH i2c: E2 08 00 64 6A 80 13 00 00 00 00 00 00 4A [23:02:15]Write i2c OK [23:02:15]MH_I2C_Read... [23:02:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:02:15]Read from MH i2c: E2 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: E2 62 00 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: E2 62 00 64 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 90 71 00 00 0E 04 04 00 73 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 44 [23:02: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 90 71 00 00 0E 04 04 00 73 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 [23:02:15]wFMCommunicate OK [23:02:15]SAM_PROTO_GetFieldsCounters done [23:02:15]requested_item shift.num is exist - process it [23:02:15]requested_item shift.opened is exist - process it [23:02:15]req_shift_opened [23:02:15]FM_GetShiftState [23:02:15]SAM_PROTO_GetShiftState [23:02:15]wFMCommunicate request_size=4 [23:02:15]MH_SAM_APDU [23:02:15]CAPDU: 80 13 01 00 [23:02:15]Write to MH i2c: E2 08 00 65 6A 80 13 01 00 00 00 00 00 4C [23:02:15]Write i2c OK [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: E2 [23:02:15]MH_I2C_Read... [23:02:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:02:15]Read from MH i2c: E2 0E 00 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: E2 0E 00 65 6A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 65 [23:02:15]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:02:15]wFMCommunicate OK [23:02:15]SAM_PROTO_GetShiftState done [23:02:15]FM_GetShiftState done [23:02:15]req_shift_opened done [23:02:15]requested_item shift.open_date is exist - process it [23:02:15]req_shift_open_date [23:02:15]req_shift_open_date done [23:02:15]produce_requested_data done [23:02:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29072,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [23:02:15]process_action_free close_receipt [23:02:15]json_value_free [23:02:15]json_value_free done [23:02:15]process_json_proto returns [23:02:15]Send response to host [23:02:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29072,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [23:02:15]free response buf [23:02:15]execute_script done [23:02:15]execute_script returns [23:02:15]free content buf [23:02:15]Sock 9.Close socket [23:02:15]Sock 9.Thread stoped [23:02:19]OFD Sender: No OFD packet to send [23:02:24]OFD Sender: No OFD packet to send [23:02:29]OFD Sender: No OFD packet to send [23:02:34]OFD Sender: No OFD packet to send [23:02:39]OFD Sender: No OFD packet to send [23:02:44]OFD Sender: No OFD packet to send [23:02:49]OFD Sender: No OFD packet to send [23:02:54]OFD Sender: No OFD packet to send [23:02:59]OFD Sender: No OFD packet to send [23:03:04]OFD Sender: No OFD packet to send [23:03:09]OFD Sender: No OFD packet to send [23:03:14]OFD Sender: No OFD packet to send [23:03:19]OFD Sender: No OFD packet to send [23:03:24]OFD Sender: No OFD packet to send [23:03:29]OFD Sender: No OFD packet to send [23:03:34]OFD Sender: No OFD packet to send [23:03:39]OFD Sender: No OFD packet to send [23:03:44]OFD Sender: No OFD packet to send [23:03:49]OFD Sender: No OFD packet to send [23:03:54]OFD Sender: No OFD packet to send [23:03:59]OFD Sender: No OFD packet to send [23:04:04]OFD Sender: No OFD packet to send [23:04:09]OFD Sender: No OFD packet to send [23:04:14]OFD Sender: No OFD packet to send [23:04:19]OFD Sender: No OFD packet to send [23:04:24]OFD Sender: No OFD packet to send [23:04:29]OFD Sender: No OFD packet to send [23:04:34]OFD Sender: No OFD packet to send [23:04:39]OFD Sender: No OFD packet to send [23:04:44]OFD Sender: No OFD packet to send [23:04:49]OFD Sender: No OFD packet to send [23:04:54]OFD Sender: No OFD packet to send [23:04:59]OFD Sender: No OFD packet to send [23:05:04]OFD Sender: No OFD packet to send [23:05:09]OFD Sender: No OFD packet to send [23:05:11]accept exits with 7 [23:05:11]New connection [23:05:11]New thread 3066785124 created [23:05:11]Thread 3066928484 joined [23:05:11]Waiting for new connection... [23:05:11] Sock 7.Parse request [23:05:11]Sock 7.Check first char [23:05:11]Sock 7.First char is OK [23:05:11]request: POST /json_proto HTTP/1.0 [23:05:11]Method: POST [23:05:11]URL: /json_proto [23:05:11]Method is POST - this is cgi request [23:05:11]url: /json_proto [23:05:11]query_string will be loaded in cgi processing [23:05:11]execute_cgi json_proto POST (null) [23:05:11]execute_cgi path=json_proto method=POST [23:05:11]POST find Content-Length [23:05:11]Host: 172.17.33.3:8080 [23:05:11]Content-Length: 817 [23:05:11]Content-Type: application/json [23:05:11] [23:05:11]POST finish read [23:05:11]Found Content-Length = 817 [23:05:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 1.810, "sum" : 59.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 59.55 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:05:11]execute_script... [23:05: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)347442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 1.810, "sum" : 59.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 59.55 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:05:11]POST & json_proto [23:05:11]process_json_proto [23:05:11]json parsed OK: [23:05:11]protocol is kg_v1.0 [23:05:11]action value=close_receipt [23:05:11]process_action close_receipt [23:05:11]cmd_close_receipt [23:05:11]MH_GetDate [23:05:11]Write to MH i2c: F0 00 00 66 6A BF [23:05:11]Write i2c OK [23:05:11]MH_I2C_Read... [23:05:11]Read from MH i2c: F0 [23:05:11]MH_I2C_Read... [23:05:11]Read from MH i2c: F0 09 00 [23:05:11]MH_I2C_Read... [23:05:11]Read from MH i2c: F0 09 00 66 6A 00 AE 0F 1B 66 23 5B 8F 65 78 [23:05:11]GetLastDocTimeStamp 1713049338 [23:05:11]current date 1713049518 [23:05:11]FM_GetShiftState [23:05:11]SAM_PROTO_GetShiftState [23:05:11]wFMCommunicate request_size=4 [23:05:11]MH_SAM_APDU [23:05:11]CAPDU: 80 13 01 00 [23:05:11]Write to MH i2c: E2 08 00 67 6A 80 13 01 00 00 00 00 00 4E [23:05:11]Write i2c OK [23:05:11]MH_I2C_Read... [23:05:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:11]Read from MH i2c: E2 [23:05:11]MH_I2C_Read... [23:05:11]Read from MH i2c: E2 0E 00 [23:05:11]MH_I2C_Read... [23:05:11]Read from MH i2c: E2 0E 00 67 6A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 67 [23:05:11]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:05:11]wFMCommunicate OK [23:05:11]SAM_PROTO_GetShiftState done [23:05:11]FM_GetShiftState done [23:05:11]opened in 1712967615 [23:05:11]opened+sec_in_day 1713054015 [23:05:11]quantity*price = 5954 [23:05:11]sum+1 = 5956 [23:05:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 59.55 НСП 1% : 0.53 НДС 12% : 6.32 Наличными: 0.00 Безнал.: 59.55 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 280 13.04.2024 23:05 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29073 ФПД: 133547425755428 1/tax-web-control/client/api/v1/ticket?date=20240413T230518&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29073&fm=133547425755428&tin=02508201610067®Number=0000138879044617&sum=5955 [23:05:12]StoreToDocumentArchive [23:05:12]shift 115 fd 29073 [23:05:12]save to /storage/0115/doc_00029073 [23:05:12]save last doc name /storage/0115/doc_00029073 to /storage/kkm_last_doc_name [23:05:12]save OK [23:05:12]Clear old archive folders... [23:05:12]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:05:12]tlvbuf is 011DA8C0 [23:05:12]SAM_PROTO_ClearQueue [23:05:12]wFMCommunicate request_size=4 [23:05:12]MH_SAM_APDU [23:05:12]CAPDU: 80 09 00 00 [23:05:12]Write to MH i2c: E2 08 00 74 6A 80 09 00 00 00 00 00 00 50 [23:05:12]Write i2c OK [23:05:12]MH_I2C_Read... [23:05:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:05:12]Read from MH i2c: E2 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 03 00 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 03 00 74 6A 00 90 00 52 [23:05:12]RAPDU: 90 00 [23:05:12]wFMCommunicate OK [23:05:12]SAM_PROTO_ClearQueue done [23:05:12]KKMCreateOFDPacket [23:05:12]OFDProtocolAddRootSTLVToBuf [23:05:12]FM_MakeSignedData [23:05:12]FM_MakeSignedData [23:05:12]SAM_PROTO_SignData [23:05:12]wFMCommunicate request_size=4 [23:05:12]MH_SAM_APDU [23:05:12]CAPDU: 80 0D 01 02 [23:05:12]Write to MH i2c: E2 08 00 75 6A 80 0D 01 02 00 00 00 00 58 [23:05:12]Write i2c OK [23:05:12]MH_I2C_Read... [23:05:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:05:12]Read from MH i2c: E2 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 03 00 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 03 00 75 6A 00 90 00 53 [23:05:12]RAPDU: 90 00 [23:05:12]wFMCommunicate OK [23:05:12]wFMCommunicate request_size=255 [23:05:12]MH_SAM_APDU [23:05:12]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 12 07 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 43 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 43 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 43 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 AE 0F 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 91 71 00 00 35 04 06 00 79 75 [23:05:12]Write to MH i2c: E2 02 01 76 6A 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 12 07 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 43 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 43 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 43 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 AE 0F 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 91 71 00 00 35 04 06 00 79 75 00 00 A5 [23:05:12]Write i2c OK [23:05:12]MH_I2C_Read... [23:05:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:12]Read from MH i2c: E2 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 03 00 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 03 00 76 6A 00 90 00 54 [23:05:12]RAPDU: 90 00 [23:05:12]wFMCommunicate OK [23:05:12]wFMCommunicate request_size=9 [23:05:12]MH_SAM_APDU [23:05:12]CAPDU: 80 0D 02 02 04 EE DF 71 24 [23:05:12]Write to MH i2c: E2 0C 00 77 6A 80 0D 02 02 04 00 EE DF 71 24 00 00 C5 [23:05:12]Write i2c OK [23:05:12]MH_I2C_Read... [23:05:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:12]Read from MH i2c: E2 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 03 00 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 03 00 77 6A 00 90 00 55 [23:05:12]RAPDU: 90 00 [23:05:12]wFMCommunicate OK [23:05:12]wFMCommunicate request_size=4 [23:05:12]MH_SAM_APDU [23:05:12]CAPDU: 80 0D 03 02 [23:05:12]Write to MH i2c: E2 08 00 78 6A 80 0D 03 02 00 00 00 00 5D [23:05:12]Write i2c OK [23:05:12]MH_I2C_Read... [23:05:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:05:12]Read from MH i2c: E2 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 0B 00 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 0B 00 78 6A 00 9B 19 C2 9C B0 E4 2B C7 90 00 F6 [23:05:12]RAPDU: 9B 19 C2 9C B0 E4 2B C7 90 00 [23:05:12]wFMCommunicate OK [23:05:12]SAM_PROTO_SignData done [23:05:12]FM_MakeSignedData done [23:05:12]CreateOFDProtocolMessage [23:05:12]wFMCommunicate request_size=4 [23:05:12]MH_SAM_APDU [23:05:12]CAPDU: 80 11 00 00 [23:05:12]Write to MH i2c: E2 08 00 79 6A 80 11 00 00 00 00 00 00 5D [23:05:12]Write i2c OK [23:05:12]MH_I2C_Read... [23:05:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:12]Read from MH i2c: E2 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 17 00 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 17 00 79 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AC [23:05:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:05:12]wFMCommunicate OK [23:05:12]CreateOFDProtocolMessage done [23:05:12]OFDSenderStorePacket 29073 [23:05:12]StoreOFDPacket docnum=29073 [23:05:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 27 0B 06 01 F3 A2 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 12 07 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 43 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 43 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 43 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 AE 0F 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 91 71 00 00 35 04 06 00 79 75 EE DF 71 24 9B 19 C2 9C B0 E4 2B C7 [23:05:12]CheckFolder [23:05:12]dirname=/storage/ofd_packets [23:05:12]CheckFolder done [23:05:12]ProducePacketName [23:05:12]name=ofd_packets/00029073 [23:05:12]NVStorageSaveData ofd_packets/00029073 [23:05:12]File name is /storage/ofd_packets/00029073 [23:05:12]Write 300 bytes [23:05:12]NVStorageSaveData done [23:05:12]OFDSenderStorePacket done [23:05:12]KKMCreateOFDPacket done [23:05:12]NVStorageSaveData kkm_last_timestamp [23:05:12]File name is /storage/kkm_last_timestamp [23:05:12]Write 4 bytes [23:05:12]NVStorageSaveData done [23:05:12]ExternCall_PrintAddStr [23:05:12]wPrintStart [23:05:12]Write to MH i2c: 01 00 00 7A 6A E4 [23:05:12]Write i2c OK [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: 01 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: 01 07 00 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: 01 07 00 7A 6A 00 00 00 00 00 FF 0F F9 [23:05:12]RasterBufferAndPrint [23:05:12]line Счет N : (1)347442 [23:05:12]line ИНН: 02508201610067 [23:05:12]line Контрольно-Кассовый Чек [23:05:12]line ПРОДАЖА [23:05:12]line ТРК (МРК, ГНК) : 71 [23:05:12]line Товар: 2711129700 [23:05:12]line ГАЗ-К-5 [23:05:12]line 1.810 * 32.90 [23:05:12]line = 59.55 [23:05:12]line НДС 12% НСП 1% [23:05:12]line > о реализуемом товаре [23:05:12]line ИТОГО: 59.55 [23:05:12]line НСП 1% : 0.53 [23:05:12]line НДС 12% : 6.32 [23:05:12]line Наличными: 0.00 [23:05:12]line Безнал.: 59.55 [23:05:12]line Место: АЗС № 108 "Партнер Нефть" [23:05:12]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:05:12]line СНО: Общий режим [23:05:12]line Чек 280 13.04.2024 23:05 [23:05:12]line Смена: 115 ФФД: 1.0 [23:05:12]line ЗНМ: 0300000027 [23:05:12]line РНМ: 0000138879044617 [23:05:12]line Версия ККМ: 001 [23:05:12]line Платежная система: Бакай Банк [23:05:12]line ФМ: 0000000000963154 [23:05:12]line ФД: 29073 [23:05:12]line ФПД: 133547425755428 [23:05:12]line 1/tax-web-control/client/api/v1/ticket?date=20240413T230518&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29073&fm=133547425755428&tin=02508201610067®Number=0000138879044617&sum=5955 [23:05:12]written 0, free lines is 4095 [23:05:12]OFD Sender: Processing packet 29073 [packets to send 8, broken 7] [23:05:12]ProducePacketName [23:05:12]name=ofd_packets/00029073 [23:05:12]OFD Sender: To server: pG, [23:05:12]CommunicateWithHost lk.salyk.kg:30040 [23:05:12]ConnectInit lk.salyk.kg [23:05:12]Connected sock=10 [23:05: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 31 35 34 0E 01 00 00 27 0B 06 01 F3 A2 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 12 07 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 43 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 43 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 43 17 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 AE 0F 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 91 71 00 00 35 04 06 00 79 75 EE DF 71 24 9B 19 C2 9C B0 E4 2B C7 [23:05:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 21 11 47 00 E7 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 91 71 00 00 F4 03 04 00 53 BA 1A 66 B6 04 01 00 00 95 60 DE D5 AC 30 92 DA [23:05:13]CommunicateWithHost err = 0 [23:05:13]CheckOFDResponse [23:05:13]1017 (14) - 77093643461234 [23:05:13]1041 (16) - 0000000000963154 [23:05:13]1040 (4) - 29073 [23:05:13]1012 (4) - 13.04.2024 17:01 [23:05:13]1206 (1) - 0 [23:05:13]OFD Sender: Remove packet 29073 [23:05:13]ProducePacketName [23:05:13]name=ofd_packets/00029073 [23:05:13]NVStorageDeleteData [23:05:13]Write to MH i2c: 01 00 00 A3 6A 0D [23:05:13]Write i2c OK [23:05:13]MH_I2C_Read... [23:05:13]Read from MH i2c: 01 [23:05:13]MH_I2C_Read... [23:05:13]Read from MH i2c: 01 07 00 [23:05:13]MH_I2C_Read... [23:05:13]Read from MH i2c: 01 07 00 A3 6A 00 00 00 00 00 D7 0C F7 [23:05:13]RasterBufferAndPrint [23:05:13]line [23:05:13]line [23:05:13]line [23:05:13]line [23:05:13]line [23:05:13]written 0, free lines is 3294 [23:05:13]MH_Cut [23:05:13]Write to MH i2c: D1 01 00 AA 6A 01 E6 [23:05:13]Write i2c OK [23:05:13]MH_I2C_Read... [23:05:13]Read from MH i2c: D1 [23:05:13]MH_I2C_Read... [23:05:13]Read from MH i2c: D1 01 00 [23:05:13]MH_I2C_Read... [23:05:13]Read from MH i2c: D1 01 00 AA 6A 00 E5 [23:05:13]Write to MH i2c: 01 00 00 AB 6A 15 [23:05:13]Write i2c OK [23:05:13]MH_I2C_Read... [23:05:13]OFD Sender: No OFD packet to send [23:05:13]*** Cut start [23:05:13]*** Partial cut [23:05:13]*** CUTSNS_PIN = 1 [23:05:14]*** CUTSNS_PIN = 0 [23:05:14]*** Brake cut motor [23:05:14]Read from MH i2c: 01 [23:05:14]MH_I2C_Read... [23:05:14]*** Stop cut motor [23:05:14]*** Cut end [23:05:14]Read from MH i2c: 01 07 00 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: 01 07 00 AB 6A 00 00 00 00 00 FF 0F 2A [23:05:14]process_action close_receipt done [23:05:14]requested_data is exist [23:05:14]produce_requested_data [23:05:14]requested_item fm.sn is exist - process it [23:05:14]wFMCommunicate request_size=4 [23:05:14]MH_SAM_APDU [23:05:14]CAPDU: 80 11 00 00 [23:05:14]Write to MH i2c: E2 08 00 AC 6A 80 11 00 00 00 00 00 00 90 [23:05:14]Write i2c OK [23:05:14]MH_I2C_Read... [23:05:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:14]Read from MH i2c: E2 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: E2 17 00 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: E2 17 00 AC 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 DF [23:05:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:05:14]wFMCommunicate OK [23:05:14]requested_item fd.num is exist - process it [23:05:14]SAM_PROTO_GetFieldsCounters [23:05:14]wFMCommunicate request_size=4 [23:05:14]MH_SAM_APDU [23:05:14]CAPDU: 80 13 00 00 [23:05:14]Write to MH i2c: E2 08 00 AD 6A 80 13 00 00 00 00 00 00 93 [23:05:14]Write i2c OK [23:05:14]MH_I2C_Read... [23:05:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:05:14]Read from MH i2c: E2 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: E2 62 00 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: E2 62 00 AD 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 91 71 00 00 0E 04 04 00 73 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 91 [23:05: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 91 71 00 00 0E 04 04 00 73 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 [23:05:14]wFMCommunicate OK [23:05:14]SAM_PROTO_GetFieldsCounters done [23:05:14]requested_item shift.num is exist - process it [23:05:14]requested_item shift.opened is exist - process it [23:05:14]req_shift_opened [23:05:14]FM_GetShiftState [23:05:14]SAM_PROTO_GetShiftState [23:05:14]wFMCommunicate request_size=4 [23:05:14]MH_SAM_APDU [23:05:14]CAPDU: 80 13 01 00 [23:05:14]Write to MH i2c: E2 08 00 AE 6A 80 13 01 00 00 00 00 00 95 [23:05:14]Write i2c OK [23:05:14]MH_I2C_Read... [23:05:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:14]Read from MH i2c: E2 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: E2 0E 00 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: E2 0E 00 AE 6A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 AE [23:05:14]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:05:14]wFMCommunicate OK [23:05:14]SAM_PROTO_GetShiftState done [23:05:14]FM_GetShiftState done [23:05:14]req_shift_opened done [23:05:14]requested_item shift.open_date is exist - process it [23:05:14]req_shift_open_date [23:05:14]req_shift_open_date done [23:05:14]produce_requested_data done [23:05:14]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29073,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [23:05:14]process_action_free close_receipt [23:05:14]json_value_free [23:05:14]json_value_free done [23:05:14]process_json_proto returns [23:05:14]Send response to host [23:05:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29073,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [23:05:14]free response buf [23:05:14]execute_script done [23:05:14]execute_script returns [23:05:14]free content buf [23:05:14]Sock 7.Close socket [23:05:14]Sock 7.Thread stoped [23:05:18]OFD Sender: No OFD packet to send [23:05:23]OFD Sender: No OFD packet to send [23:05:28]OFD Sender: No OFD packet to send [23:05:33]OFD Sender: No OFD packet to send [23:05:38]OFD Sender: No OFD packet to send [23:05:43]OFD Sender: No OFD packet to send [23:05:48]OFD Sender: No OFD packet to send [23:05:53]OFD Sender: No OFD packet to send [23:05:58]OFD Sender: No OFD packet to send [23:06:03]OFD Sender: No OFD packet to send [23:06:08]OFD Sender: No OFD packet to send [23:06:13]OFD Sender: No OFD packet to send [23:06:18]OFD Sender: No OFD packet to send [23:06:23]OFD Sender: No OFD packet to send [23:06:28]OFD Sender: No OFD packet to send [23:06:33]OFD Sender: No OFD packet to send [23:06:38]OFD Sender: No OFD packet to send [23:06:43]OFD Sender: No OFD packet to send [23:06:48]OFD Sender: No OFD packet to send [23:06:53]OFD Sender: No OFD packet to send [23:06:58]OFD Sender: No OFD packet to send [23:07:03]OFD Sender: No OFD packet to send [23:07:08]OFD Sender: No OFD packet to send [23:07:13]OFD Sender: No OFD packet to send [23:07:18]OFD Sender: No OFD packet to send [23:07:19]accept exits with 9 [23:07:19]New connection [23:07:19]New thread 3066928484 created [23:07:19]Thread 3066785124 joined [23:07:19]Waiting for new connection... [23:07:19] Sock 9.Parse request [23:07:19]Sock 9.Check first char [23:07:19]Sock 9.First char is OK [23:07:19]request: POST /json_proto HTTP/1.0 [23:07:19]Method: POST [23:07:19]URL: /json_proto [23:07:19]Method is POST - this is cgi request [23:07:19]url: /json_proto [23:07:19]query_string will be loaded in cgi processing [23:07:19]execute_cgi json_proto POST (null) [23:07:19]execute_cgi path=json_proto method=POST [23:07:19]POST find Content-Length [23:07:19]Host: 172.17.33.3:8080 [23:07:19]Content-Length: 678 [23:07:19]Content-Type: application/json [23:07:19] [23:07:19]POST finish read [23:07:19]Found Content-Length = 678 [23:07:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.890, "sum" : 700.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:07:19]execute_script... [23:07: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)347443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.890, "sum" : 700.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:07:19]POST & json_proto [23:07:19]process_json_proto [23:07:19]json parsed OK: [23:07:19]protocol is kg_v1.0 [23:07:19]action value=close_receipt [23:07:19]process_action close_receipt [23:07:19]cmd_close_receipt [23:07:19]MH_GetDate [23:07:19]Write to MH i2c: F0 00 00 AF 6A 08 [23:07:19]Write i2c OK [23:07:19]MH_I2C_Read... [23:07:19]Read from MH i2c: F0 [23:07:19]MH_I2C_Read... [23:07:19]Read from MH i2c: F0 09 00 [23:07:19]MH_I2C_Read... [23:07:19]Read from MH i2c: F0 09 00 AF 6A 00 2E 10 1B 66 23 5B 8F 65 42 [23:07:19]GetLastDocTimeStamp 1713049518 [23:07:19]current date 1713049646 [23:07:19]FM_GetShiftState [23:07:19]SAM_PROTO_GetShiftState [23:07:19]wFMCommunicate request_size=4 [23:07:19]MH_SAM_APDU [23:07:19]CAPDU: 80 13 01 00 [23:07:19]Write to MH i2c: E2 08 00 B0 6A 80 13 01 00 00 00 00 00 97 [23:07:19]Write i2c OK [23:07:19]MH_I2C_Read... [23:07:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:07:19]Read from MH i2c: E2 [23:07:19]MH_I2C_Read... [23:07:19]Read from MH i2c: E2 0E 00 [23:07:19]MH_I2C_Read... [23:07:19]Read from MH i2c: E2 0E 00 B0 6A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 B0 [23:07:19]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:07:19]wFMCommunicate OK [23:07:19]SAM_PROTO_GetShiftState done [23:07:19]FM_GetShiftState done [23:07:19]opened in 1712967615 [23:07:19]opened+sec_in_day 1713054015 [23:07:19]quantity*price = 70022 [23:07:19]sum+1 = 70024 [23:07:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 281 13.04.2024 23:07 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29074 ФПД: 66313795684923 1/tax-web-control/client/api/v1/ticket?date=20240413T230726&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29074&fm=66313795684923&tin=02508201610067®Number=0000138879044617&sum=70000 [23:07:20]StoreToDocumentArchive [23:07:20]shift 115 fd 29074 [23:07:20]save to /storage/0115/doc_00029074 [23:07:20]save last doc name /storage/0115/doc_00029074 to /storage/kkm_last_doc_name [23:07:20]save OK [23:07:20]Clear old archive folders... [23:07:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:07:20]tlvbuf is 011A24C0 [23:07:20]SAM_PROTO_ClearQueue [23:07:20]wFMCommunicate request_size=4 [23:07:20]MH_SAM_APDU [23:07:20]CAPDU: 80 09 00 00 [23:07:20]Write to MH i2c: E2 08 00 BD 6A 80 09 00 00 00 00 00 00 99 [23:07:20]Write i2c OK [23:07:20]MH_I2C_Read... [23:07:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:07:20]Read from MH i2c: E2 [23:07:20]MH_I2C_Read... [23:07:20]Read from MH i2c: E2 03 00 [23:07:20]MH_I2C_Read... [23:07:20]Read from MH i2c: E2 03 00 BD 6A 00 90 00 9B [23:07:20]RAPDU: 90 00 [23:07:20]wFMCommunicate OK [23:07:20]SAM_PROTO_ClearQueue done [23:07:20]KKMCreateOFDPacket [23:07:20]OFDProtocolAddRootSTLVToBuf [23:07:20]FM_MakeSignedData [23:07:20]FM_MakeSignedData [23:07:20]SAM_PROTO_SignData [23:07:20]wFMCommunicate request_size=4 [23:07:20]MH_SAM_APDU [23:07:20]CAPDU: 80 0D 01 02 [23:07:20]Write to MH i2c: E2 08 00 BE 6A 80 0D 01 02 00 00 00 00 A1 [23:07:20]Write i2c OK [23:07:20]MH_I2C_Read... [23:07:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:07:20]Read from MH i2c: E2 [23:07:20]MH_I2C_Read... [23:07:20]Read from MH i2c: E2 03 00 [23:07:20]MH_I2C_Read... [23:07:20]Read from MH i2c: E2 03 00 BE 6A 00 90 00 9C [23:07:20]RAPDU: 90 00 [23:07:20]wFMCommunicate OK [23:07:20]wFMCommunicate request_size=255 [23:07:20]MH_SAM_APDU [23:07: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 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 19 01 00 00 F4 03 04 00 2E 10 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 92 71 00 00 35 04 06 00 3C [23:07:20]Write to MH i2c: E2 02 01 BF 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 19 01 00 00 F4 03 04 00 2E 10 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 92 71 00 00 35 04 06 00 3C 00 00 72 [23:07:21]Write i2c OK [23:07:21]MH_I2C_Read... [23:07:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:07:21]Read from MH i2c: E2 [23:07:21]MH_I2C_Read... [23:07:21]Read from MH i2c: E2 03 00 [23:07:21]MH_I2C_Read... [23:07:21]Read from MH i2c: E2 03 00 BF 6A 00 90 00 9D [23:07:21]RAPDU: 90 00 [23:07:21]wFMCommunicate OK [23:07:21]wFMCommunicate request_size=10 [23:07:21]MH_SAM_APDU [23:07:21]CAPDU: 80 0D 02 02 05 4F E2 3C 4A 3B [23:07:21]Write to MH i2c: E2 0D 00 C0 6A 80 0D 02 02 05 00 4F E2 3C 4A 3B 00 00 A0 [23:07:21]Write i2c OK [23:07:21]MH_I2C_Read... [23:07:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:07:21]Read from MH i2c: E2 [23:07:21]MH_I2C_Read... [23:07:21]Read from MH i2c: E2 03 00 [23:07:21]MH_I2C_Read... [23:07:21]Read from MH i2c: E2 03 00 C0 6A 00 90 00 9E [23:07:21]RAPDU: 90 00 [23:07:21]wFMCommunicate OK [23:07:21]wFMCommunicate request_size=4 [23:07:21]MH_SAM_APDU [23:07:21]CAPDU: 80 0D 03 02 [23:07:21]Write to MH i2c: E2 08 00 C1 6A 80 0D 03 02 00 00 00 00 A6 [23:07:21]Write i2c OK [23:07:21]MH_I2C_Read... [23:07:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:07:21]Read from MH i2c: E2 [23:07:21]MH_I2C_Read... [23:07:21]Read from MH i2c: E2 0B 00 [23:07:21]MH_I2C_Read... [23:07:21]Read from MH i2c: E2 0B 00 C1 6A 00 C4 18 2C B2 FA BD 72 E9 90 00 73 [23:07:21]RAPDU: C4 18 2C B2 FA BD 72 E9 90 00 [23:07:21]wFMCommunicate OK [23:07:21]SAM_PROTO_SignData done [23:07:21]FM_MakeSignedData done [23:07:21]CreateOFDProtocolMessage [23:07:21]wFMCommunicate request_size=4 [23:07:21]MH_SAM_APDU [23:07:21]CAPDU: 80 11 00 00 [23:07:21]Write to MH i2c: E2 08 00 C2 6A 80 11 00 00 00 00 00 00 A6 [23:07:21]Write i2c OK [23:07:21]MH_I2C_Read... [23:07:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:07:21]Read from MH i2c: E2 [23:07:21]MH_I2C_Read... [23:07:21]Read from MH i2c: E2 17 00 [23:07:21]MH_I2C_Read... [23:07:21]Read from MH i2c: E2 17 00 C2 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F5 [23:07:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:07:21]wFMCommunicate OK [23:07:21]CreateOFDProtocolMessage done [23:07:21]OFDSenderStorePacket 29074 [23:07:21]StoreOFDPacket docnum=29074 [23:07:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 56 F3 07 01 F9 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 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 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 19 01 00 00 F4 03 04 00 2E 10 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 92 71 00 00 35 04 06 00 3C 4F E2 3C 4A 3B C4 18 2C B2 FA BD 72 E9 [23:07:21]CheckFolder [23:07:21]dirname=/storage/ofd_packets [23:07:21]CheckFolder done [23:07:21]ProducePacketName [23:07:21]name=ofd_packets/00029074 [23:07:21]NVStorageSaveData ofd_packets/00029074 [23:07:21]File name is /storage/ofd_packets/00029074 [23:07:21]Write 301 bytes [23:07:21]NVStorageSaveData done [23:07:21]OFDSenderStorePacket done [23:07:21]KKMCreateOFDPacket done [23:07:21]NVStorageSaveData kkm_last_timestamp [23:07:21]File name is /storage/kkm_last_timestamp [23:07:21]Write 4 bytes [23:07:21]NVStorageSaveData done [23:07:21]ExternCall_PrintAddStr [23:07:21]wPrintStart [23:07:21]Write to MH i2c: 01 00 00 C3 6A 2D [23:07:21]Write i2c OK [23:07:21]MH_I2C_Read... [23:07:21]Read from MH i2c: 01 [23:07:21]MH_I2C_Read... [23:07:21]Read from MH i2c: 01 07 00 [23:07:21]MH_I2C_Read... [23:07:21]Read from MH i2c: 01 07 00 C3 6A 00 00 00 00 00 FF 0F 42 [23:07:21]RasterBufferAndPrint [23:07:21]line Счет N : (1)347443 [23:07:21]line ИНН: 02508201610067 [23:07:21]line Контрольно-Кассовый Чек [23:07:21]line ПРОДАЖА [23:07:21]line ТРК (МРК, ГНК) : 13 [23:07:21]line Товар: 2710124130 [23:07:21]line Аи-92-К-5 [23:07:21]line 10.890 * 64.30 [23:07:21]line = 700.23 [23:07:21]line НДС 12% НСП 1% [23:07:21]line > о реализуемом товаре [23:07:21]line ОКРУГЛЕНИЕ: -0.23 [23:07:21]line ИТОГО: 700.00 [23:07:21]line Внесено: 700.00 [23:07:21]line СДАЧА: 0.00 [23:07:21]line НСП 1% : 6.20 [23:07:21]line НДС 12% : 74.36 [23:07:21]line Наличными: 700.00 [23:07:21]line Безнал.: 0.00 [23:07:21]line Место: АЗС № 108 "Партнер Нефть" [23:07:21]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:07:21]line СНО: Общий режим [23:07:21]line Чек 281 13.04.2024 23:07 [23:07:21]line Смена: 115 ФФД: 1.0 [23:07:21]line ЗНМ: 0300000027 [23:07:21]line РНМ: 0000138879044617 [23:07:21]line Версия ККМ: 001 [23:07:21]line ФМ: 0000000000963154 [23:07:21]line ФД: 29074 [23:07:21]line ФПД: 66313795684923 [23:07:21]line 1/tax-web-control/client/api/v1/ticket?date=20240413T230726&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29074&fm=66313795684923&tin=02508201610067®Number=0000138879044617&sum=70000 [23:07:21]OFD Sender: Processing packet 29074 [packets to send 8, broken 7] [23:07:21]ProducePacketName [23:07:21]name=ofd_packets/00029074 [23:07:21]OFD Sender: To server: pG, [23:07:21]CommunicateWithHost lk.salyk.kg:30040 [23:07:21]ConnectInit lk.salyk.kg [23:07:21]written 0, free lines is 4095 [23:07:21]Connected sock=10 [23:07: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 31 35 34 0F 01 00 00 56 F3 07 01 F9 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 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 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 19 01 00 00 F4 03 04 00 2E 10 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 92 71 00 00 35 04 06 00 3C 4F E2 3C 4A 3B C4 18 2C B2 FA BD 72 E9 [23:07:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6C 47 47 00 38 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 92 71 00 00 F4 03 04 00 D4 BA 1A 66 B6 04 01 00 00 42 62 D5 17 E1 F0 57 7E [23:07:22]CommunicateWithHost err = 0 [23:07:22]CheckOFDResponse [23:07:22]1017 (14) - 77093643461234 [23:07:22]1041 (16) - 0000000000963154 [23:07:22]1040 (4) - 29074 [23:07:22]1012 (4) - 13.04.2024 17:03 [23:07:22]1206 (1) - 0 [23:07:22]OFD Sender: Remove packet 29074 [23:07:22]ProducePacketName [23:07:22]name=ofd_packets/00029074 [23:07:22]NVStorageDeleteData [23:07:22]Write to MH i2c: 01 00 00 ED 6A 57 [23:07:22]Write i2c OK [23:07:22]MH_I2C_Read... [23:07:22]Read from MH i2c: 01 [23:07:22]MH_I2C_Read... [23:07:22]Read from MH i2c: 01 07 00 [23:07:22]MH_I2C_Read... [23:07:22]Read from MH i2c: 01 07 00 ED 6A 00 00 00 00 00 C2 0C 2C [23:07:22]RasterBufferAndPrint [23:07:22]line [23:07:22]line [23:07:22]line [23:07:22]line [23:07:22]line [23:07:22]written 0, free lines is 3270 [23:07:22]MH_Cut [23:07:22]Write to MH i2c: D1 01 00 F4 6A 01 30 [23:07:22]Write i2c OK [23:07:22]MH_I2C_Read... [23:07:22]Read from MH i2c: D1 [23:07:22]MH_I2C_Read... [23:07:22]Read from MH i2c: D1 01 00 [23:07:22]MH_I2C_Read... [23:07:22]Read from MH i2c: D1 01 00 F4 6A 00 2F [23:07:22]Write to MH i2c: 01 00 00 F5 6A 5F [23:07:22]Write i2c OK [23:07:22]MH_I2C_Read... [23:07:22]OFD Sender: No OFD packet to send [23:07:22]*** Cut start [23:07:22]*** Partial cut [23:07:22]*** CUTSNS_PIN = 1 [23:07:23]*** CUTSNS_PIN = 0 [23:07:23]*** Brake cut motor [23:07:23]Read from MH i2c: 01 [23:07:23]MH_I2C_Read... [23:07:23]*** Stop cut motor [23:07:23]*** Cut end [23:07:23]Read from MH i2c: 01 07 00 [23:07:23]MH_I2C_Read... [23:07:23]Read from MH i2c: 01 07 00 F5 6A 00 00 00 00 00 FF 0F 74 [23:07:23]process_action close_receipt done [23:07:23]requested_data is exist [23:07:23]produce_requested_data [23:07:23]requested_item fm.sn is exist - process it [23:07:23]wFMCommunicate request_size=4 [23:07:23]MH_SAM_APDU [23:07:23]CAPDU: 80 11 00 00 [23:07:23]Write to MH i2c: E2 08 00 F6 6A 80 11 00 00 00 00 00 00 DA [23:07:23]Write i2c OK [23:07:23]MH_I2C_Read... [23:07:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:07:23]Read from MH i2c: E2 [23:07:23]MH_I2C_Read... [23:07:23]Read from MH i2c: E2 17 00 [23:07:23]MH_I2C_Read... [23:07:23]Read from MH i2c: E2 17 00 F6 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 29 [23:07:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:07:23]wFMCommunicate OK [23:07:23]requested_item fd.num is exist - process it [23:07:23]SAM_PROTO_GetFieldsCounters [23:07:23]wFMCommunicate request_size=4 [23:07:23]MH_SAM_APDU [23:07:23]CAPDU: 80 13 00 00 [23:07:23]Write to MH i2c: E2 08 00 F7 6A 80 13 00 00 00 00 00 00 DD [23:07:23]Write i2c OK [23:07:23]MH_I2C_Read... [23:07:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:07:23]Read from MH i2c: E2 [23:07:23]MH_I2C_Read... [23:07:23]Read from MH i2c: E2 62 00 [23:07:23]MH_I2C_Read... [23:07:23]Read from MH i2c: E2 62 00 F7 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 92 71 00 00 0E 04 04 00 73 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 DF [23:07: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 92 71 00 00 0E 04 04 00 73 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 [23:07:23]wFMCommunicate OK [23:07:23]SAM_PROTO_GetFieldsCounters done [23:07:23]requested_item shift.num is exist - process it [23:07:23]requested_item shift.opened is exist - process it [23:07:23]req_shift_opened [23:07:23]FM_GetShiftState [23:07:23]SAM_PROTO_GetShiftState [23:07:23]wFMCommunicate request_size=4 [23:07:23]MH_SAM_APDU [23:07:23]CAPDU: 80 13 01 00 [23:07:23]Write to MH i2c: E2 08 00 F8 6A 80 13 01 00 00 00 00 00 DF [23:07:23]Write i2c OK [23:07:23]MH_I2C_Read... [23:07:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:07:23]Read from MH i2c: E2 [23:07:23]MH_I2C_Read... [23:07:23]Read from MH i2c: E2 0E 00 [23:07:23]MH_I2C_Read... [23:07:23]Read from MH i2c: E2 0E 00 F8 6A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 F8 [23:07:23]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:07:23]wFMCommunicate OK [23:07:23]SAM_PROTO_GetShiftState done [23:07:23]FM_GetShiftState done [23:07:23]req_shift_opened done [23:07:23]requested_item shift.open_date is exist - process it [23:07:23]req_shift_open_date [23:07:23]req_shift_open_date done [23:07:23]produce_requested_data done [23:07:23]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29074,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [23:07:23]process_action_free close_receipt [23:07:23]json_value_free [23:07:23]json_value_free done [23:07:23]process_json_proto returns [23:07:23]Send response to host [23:07:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29074,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [23:07:23]free response buf [23:07:23]execute_script done [23:07:23]execute_script returns [23:07:23]free content buf [23:07:23]Sock 9.Close socket [23:07:23]Sock 9.Thread stoped [23:07:27]OFD Sender: No OFD packet to send [23:07:32]OFD Sender: No OFD packet to send [23:07:37]OFD Sender: No OFD packet to send [23:07:42]OFD Sender: No OFD packet to send [23:07:47]OFD Sender: No OFD packet to send [23:07:52]OFD Sender: No OFD packet to send [23:07:57]OFD Sender: No OFD packet to send [23:08:02]OFD Sender: No OFD packet to send [23:08:07]OFD Sender: No OFD packet to send [23:08:12]OFD Sender: No OFD packet to send [23:08:17]OFD Sender: No OFD packet to send [23:08:22]OFD Sender: No OFD packet to send [23:08:27]OFD Sender: No OFD packet to send [23:08:32]OFD Sender: No OFD packet to send [23:08:37]OFD Sender: No OFD packet to send [23:08:42]OFD Sender: No OFD packet to send [23:08:47]OFD Sender: No OFD packet to send [23:08:52]OFD Sender: No OFD packet to send [23:08:57]OFD Sender: No OFD packet to send [23:09:02]OFD Sender: No OFD packet to send [23:09:07]OFD Sender: No OFD packet to send [23:09:12]OFD Sender: No OFD packet to send [23:09:17]OFD Sender: No OFD packet to send [23:09:22]OFD Sender: No OFD packet to send [23:09:27]OFD Sender: No OFD packet to send [23:09:32]OFD Sender: No OFD packet to send [23:09:37]OFD Sender: No OFD packet to send [23:09:42]OFD Sender: No OFD packet to send [23:09:47]OFD Sender: No OFD packet to send [23:09:52]OFD Sender: No OFD packet to send [23:09:57]OFD Sender: No OFD packet to send [23:10:02]OFD Sender: No OFD packet to send [23:10:07]OFD Sender: No OFD packet to send [23:10:12]OFD Sender: No OFD packet to send [23:10:17]OFD Sender: No OFD packet to send [23:10:22]OFD Sender: No OFD packet to send [23:10:27]OFD Sender: No OFD packet to send [23:10:32]OFD Sender: No OFD packet to send [23:10:37]OFD Sender: No OFD packet to send [23:10:42]OFD Sender: No OFD packet to send [23:10:47]OFD Sender: No OFD packet to send [23:10:52]OFD Sender: No OFD packet to send [23:10:57]OFD Sender: No OFD packet to send [23:11:02]OFD Sender: No OFD packet to send [23:11:07]OFD Sender: No OFD packet to send [23:11:12]OFD Sender: No OFD packet to send [23:11:17]OFD Sender: No OFD packet to send [23:11:20]accept exits with 7 [23:11:20]New connection [23:11:20]New thread 3066785124 created [23:11:20]Thread 3066928484 joined [23:11:20]Waiting for new connection... [23:11:20] Sock 7.Parse request [23:11:20]Sock 7.Check first char [23:11:20]Sock 7.First char is OK [23:11:20]request: POST /json_proto HTTP/1.0 [23:11:20]Method: POST [23:11:20]URL: /json_proto [23:11:20]Method is POST - this is cgi request [23:11:20]url: /json_proto [23:11:20]query_string will be loaded in cgi processing [23:11:20]execute_cgi json_proto POST (null) [23:11:20]execute_cgi path=json_proto method=POST [23:11:20]POST find Content-Length [23:11:20]Host: 172.17.33.3:8080 [23:11:20]Content-Length: 840 [23:11:20]Content-Type: application/json [23:11:20] [23:11:20]POST finish read [23:11:20]Found Content-Length = 840 [23:11:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.360, "sum" : 280.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 280.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:20]execute_script... [23:11: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)347444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.360, "sum" : 280.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 280.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:20]POST & json_proto [23:11:20]process_json_proto [23:11:20]json parsed OK: [23:11:20]protocol is kg_v1.0 [23:11:20]action value=close_receipt [23:11:20]process_action close_receipt [23:11:20]cmd_close_receipt [23:11:20]MH_GetDate [23:11:20]Write to MH i2c: F0 00 00 F9 6A 52 [23:11:20]Write i2c OK [23:11:20]MH_I2C_Read... [23:11:20]Read from MH i2c: F0 [23:11:20]MH_I2C_Read... [23:11:20]Read from MH i2c: F0 09 00 [23:11:20]MH_I2C_Read... [23:11:20]Read from MH i2c: F0 09 00 F9 6A 00 20 11 1B 66 23 5B 8F 65 7F [23:11:20]GetLastDocTimeStamp 1713049646 [23:11:20]current date 1713049888 [23:11:20]FM_GetShiftState [23:11:20]SAM_PROTO_GetShiftState [23:11:20]wFMCommunicate request_size=4 [23:11:20]MH_SAM_APDU [23:11:20]CAPDU: 80 13 01 00 [23:11:20]Write to MH i2c: E2 08 00 FA 6A 80 13 01 00 00 00 00 00 E1 [23:11:20]Write i2c OK [23:11:20]MH_I2C_Read... [23:11:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:21]Read from MH i2c: E2 [23:11:21]MH_I2C_Read... [23:11:21]Read from MH i2c: E2 0E 00 [23:11:21]MH_I2C_Read... [23:11:21]Read from MH i2c: E2 0E 00 FA 6A 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 FA [23:11:21]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:11:21]wFMCommunicate OK [23:11:21]SAM_PROTO_GetShiftState done [23:11:21]FM_GetShiftState done [23:11:21]opened in 1712967615 [23:11:21]opened+sec_in_day 1713054015 [23:11:21]quantity*price = 28034 [23:11:21]sum+1 = 28036 [23:11:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.35 НСП 1% : 2.48 НДС 12% : 29.77 Наличными: 0.00 Безнал.: 280.35 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 282 13.04.2024 23:11 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29075 ФПД: 21229680174666 1/tax-web-control/client/api/v1/ticket?date=20240413T231128&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29075&fm=21229680174666&tin=02508201610067®Number=0000138879044617&sum=28035 [23:11:22]StoreToDocumentArchive [23:11:22]shift 115 fd 29075 [23:11:22]save to /storage/0115/doc_00029075 [23:11:22]save last doc name /storage/0115/doc_00029075 to /storage/kkm_last_doc_name [23:11:22]save OK [23:11:22]Clear old archive folders... [23:11:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:11:22]tlvbuf is 0125FCE0 [23:11:22]SAM_PROTO_ClearQueue [23:11:22]wFMCommunicate request_size=4 [23:11:22]MH_SAM_APDU [23:11:22]CAPDU: 80 09 00 00 [23:11:22]Write to MH i2c: E2 08 00 07 6B 80 09 00 00 00 00 00 00 E4 [23:11:22]Write i2c OK [23:11:22]MH_I2C_Read... [23:11:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:11:22]Read from MH i2c: E2 [23:11:22]MH_I2C_Read... [23:11:22]Read from MH i2c: E2 03 00 [23:11:22]MH_I2C_Read... [23:11:22]Read from MH i2c: E2 03 00 07 6B 00 90 00 E6 [23:11:22]RAPDU: 90 00 [23:11:22]wFMCommunicate OK [23:11:22]SAM_PROTO_ClearQueue done [23:11:22]KKMCreateOFDPacket [23:11:22]OFDProtocolAddRootSTLVToBuf [23:11:22]FM_MakeSignedData [23:11:22]FM_MakeSignedData [23:11:22]SAM_PROTO_SignData [23:11:22]wFMCommunicate request_size=4 [23:11:22]MH_SAM_APDU [23:11:22]CAPDU: 80 0D 01 02 [23:11:22]Write to MH i2c: E2 08 00 08 6B 80 0D 01 02 00 00 00 00 EC [23:11:22]Write i2c OK [23:11:22]MH_I2C_Read... [23:11:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:11:22]Read from MH i2c: E2 [23:11:22]MH_I2C_Read... [23:11:22]Read from MH i2c: E2 03 00 [23:11:22]MH_I2C_Read... [23:11:22]Read from MH i2c: E2 03 00 08 6B 00 90 00 E7 [23:11:22]RAPDU: 90 00 [23:11:22]wFMCommunicate OK [23:11:22]wFMCommunicate request_size=255 [23:11:22]MH_SAM_APDU [23:11: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 08 11 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 83 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 20 11 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 93 71 00 00 35 04 06 00 13 [23:11:22]Write to MH i2c: E2 02 01 09 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 11 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 83 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 20 11 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 93 71 00 00 35 04 06 00 13 00 00 2E [23:11:22]Write i2c OK [23:11:22]MH_I2C_Read... [23:11:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:22]Read from MH i2c: E2 [23:11:22]MH_I2C_Read... [23:11:22]Read from MH i2c: E2 03 00 [23:11:22]MH_I2C_Read... [23:11:22]Read from MH i2c: E2 03 00 09 6B 00 90 00 E8 [23:11:22]RAPDU: 90 00 [23:11:22]wFMCommunicate OK [23:11:22]wFMCommunicate request_size=10 [23:11:22]MH_SAM_APDU [23:11:22]CAPDU: 80 0D 02 02 05 4E EB 8B A6 4A [23:11:22]Write to MH i2c: E2 0D 00 0A 6B 80 0D 02 02 05 00 4E EB 8B A6 4A 00 00 AD [23:11:22]Write i2c OK [23:11:22]MH_I2C_Read... [23:11:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:22]Read from MH i2c: E2 [23:11:22]MH_I2C_Read... [23:11:22]Read from MH i2c: E2 03 00 [23:11:22]MH_I2C_Read... [23:11:22]Read from MH i2c: E2 03 00 0A 6B 00 90 00 E9 [23:11:22]RAPDU: 90 00 [23:11:22]wFMCommunicate OK [23:11:22]wFMCommunicate request_size=4 [23:11:22]MH_SAM_APDU [23:11:22]CAPDU: 80 0D 03 02 [23:11:22]Write to MH i2c: E2 08 00 0B 6B 80 0D 03 02 00 00 00 00 F1 [23:11:22]Write i2c OK [23:11:22]MH_I2C_Read... [23:11:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:11:22]Read from MH i2c: E2 [23:11:22]MH_I2C_Read... [23:11:22]Read from MH i2c: E2 0B 00 [23:11:22]MH_I2C_Read... [23:11:22]Read from MH i2c: E2 0B 00 0B 6B 00 64 E2 A9 0E 95 F4 EC 22 90 00 86 [23:11:22]RAPDU: 64 E2 A9 0E 95 F4 EC 22 90 00 [23:11:22]wFMCommunicate OK [23:11:22]SAM_PROTO_SignData done [23:11:22]FM_MakeSignedData done [23:11:22]CreateOFDProtocolMessage [23:11:22]wFMCommunicate request_size=4 [23:11:22]MH_SAM_APDU [23:11:22]CAPDU: 80 11 00 00 [23:11:22]Write to MH i2c: E2 08 00 0C 6B 80 11 00 00 00 00 00 00 F1 [23:11:22]Write i2c OK [23:11:22]MH_I2C_Read... [23:11:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:22]Read from MH i2c: E2 [23:11:22]MH_I2C_Read... [23:11:22]Read from MH i2c: E2 17 00 [23:11:22]MH_I2C_Read... [23:11:22]Read from MH i2c: E2 17 00 0C 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 40 [23:11:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:11:22]wFMCommunicate OK [23:11:22]CreateOFDProtocolMessage done [23:11:22]OFDSenderStorePacket 29075 [23:11:22]StoreOFDPacket docnum=29075 [23:11:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 51 37 07 01 2C 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 11 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 83 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 20 11 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 93 71 00 00 35 04 06 00 13 4E EB 8B A6 4A 64 E2 A9 0E 95 F4 EC 22 [23:11:22]CheckFolder [23:11:22]dirname=/storage/ofd_packets [23:11:22]CheckFolder done [23:11:22]ProducePacketName [23:11:22]name=ofd_packets/00029075 [23:11:22]NVStorageSaveData ofd_packets/00029075 [23:11:22]File name is /storage/ofd_packets/00029075 [23:11:22]Write 301 bytes [23:11:22]NVStorageSaveData done [23:11:22]OFDSenderStorePacket done [23:11:22]KKMCreateOFDPacket done [23:11:22]NVStorageSaveData kkm_last_timestamp [23:11:22]File name is /storage/kkm_last_timestamp [23:11:22]Write 4 bytes [23:11:22]NVStorageSaveData done [23:11:22]ExternCall_PrintAddStr [23:11:22]wPrintStart [23:11:22]Write to MH i2c: 01 00 00 0D 6B 78 [23:11:22]Write i2c OK [23:11:22]MH_I2C_Read... [23:11:22]Read from MH i2c: 01 [23:11:22]MH_I2C_Read... [23:11:22]Read from MH i2c: 01 07 00 [23:11:22]MH_I2C_Read... [23:11:22]Read from MH i2c: 01 07 00 0D 6B 00 00 00 00 00 FF 0F 8D [23:11:22]RasterBufferAndPrint [23:11:22]line Счет N : (1)347444 [23:11:22]line ИНН: 02508201610067 [23:11:22]line Контрольно-Кассовый Чек [23:11:22]line ПРОДАЖА [23:11:22]line ТРК (МРК, ГНК) : 13 [23:11:22]line Товар: 2710124130 [23:11:22]line Аи-92-К-5 [23:11:22]line 4.360 * 64.30 [23:11:22]line = 280.35 [23:11:22]line НДС 12% НСП 1% [23:11:22]line > о реализуемом товаре [23:11:22]line ИТОГО: 280.35 [23:11:22]line НСП 1% : 2.48 [23:11:22]line НДС 12% : 29.77 [23:11:22]line Наличными: 0.00 [23:11:22]line Безнал.: 280.35 [23:11:22]line Место: АЗС № 108 "Партнер Нефть" [23:11:22]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:11:22]line СНО: Общий режим [23:11:22]line Чек 282 13.04.2024 23:11 [23:11:22]line Смена: 115 ФФД: 1.0 [23:11:22]line ЗНМ: 0300000027 [23:11:22]line РНМ: 0000138879044617 [23:11:22]line Версия ККМ: 001 [23:11:22]line Платежная система: АКБ Кыргызстан [23:11:22]line ФМ: 0000000000963154 [23:11:22]line ФД: 29075 [23:11:23]line ФПД: 21229680174666 [23:11:23]line 1/tax-web-control/client/api/v1/ticket?date=20240413T231128&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29075&fm=21229680174666&tin=02508201610067®Number=0000138879044617&sum=28035 [23:11:23]OFD Sender: Processing packet 29075 [packets to send 8, broken 7] [23:11:23]ProducePacketName [23:11:23]name=ofd_packets/00029075 [23:11:23]OFD Sender: To server: pG, [23:11:23]CommunicateWithHost lk.salyk.kg:30040 [23:11:23]ConnectInit lk.salyk.kg [23:11:23]written 0, free lines is 4095 [23:11:23]Connected sock=10 [23:11: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 31 35 34 0F 01 00 00 51 37 07 01 2C 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 11 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 83 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 20 11 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 93 71 00 00 35 04 06 00 13 4E EB 8B A6 4A 64 E2 A9 0E 95 F4 EC 22 [23:11:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 4B 95 47 00 CF 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 31 35 34 10 04 04 00 93 71 00 00 F4 03 04 00 C5 BB 1A 66 B6 04 01 00 00 30 E4 0B 20 65 0E D4 34 [23:11:23]CommunicateWithHost err = 0 [23:11:23]CheckOFDResponse [23:11:23]1017 (14) - 77093643461234 [23:11:23]1041 (16) - 0000000000963154 [23:11:23]1040 (4) - 29075 [23:11:23]1012 (4) - 13.04.2024 17:07 [23:11:23]1206 (1) - 0 [23:11:23]OFD Sender: Remove packet 29075 [23:11:23]ProducePacketName [23:11:23]name=ofd_packets/00029075 [23:11:23]NVStorageDeleteData [23:11:23]Write to MH i2c: 01 00 00 36 6B A1 [23:11:23]Write i2c OK [23:11:23]MH_I2C_Read... [23:11:23]Read from MH i2c: 01 [23:11:23]MH_I2C_Read... [23:11:23]Read from MH i2c: 01 07 00 [23:11:23]MH_I2C_Read... [23:11:23]Read from MH i2c: 01 07 00 36 6B 00 00 00 00 00 E2 0C 96 [23:11:23]RasterBufferAndPrint [23:11:23]line [23:11:23]line [23:11:23]line [23:11:23]line [23:11:23]line [23:11:23]written 0, free lines is 3304 [23:11:23]MH_Cut [23:11:23]Write to MH i2c: D1 01 00 3D 6B 01 7A [23:11:23]Write i2c OK [23:11:23]MH_I2C_Read... [23:11:23]Read from MH i2c: D1 [23:11:23]MH_I2C_Read... [23:11:23]Read from MH i2c: D1 01 00 [23:11:23]MH_I2C_Read... [23:11:23]Read from MH i2c: D1 01 00 3D 6B 00 79 [23:11:23]Write to MH i2c: 01 00 00 3E 6B A9 [23:11:23]Write i2c OK [23:11:23]MH_I2C_Read... [23:11:23]OFD Sender: No OFD packet to send [23:11:24]*** Cut start [23:11:24]*** Partial cut [23:11:24]*** CUTSNS_PIN = 1 [23:11:24]*** CUTSNS_PIN = 0 [23:11:24]*** Brake cut motor [23:11:24]Read from MH i2c: 01 [23:11:24]MH_I2C_Read... [23:11:24]*** Stop cut motor [23:11:24]*** Cut end [23:11:24]Read from MH i2c: 01 07 00 [23:11:24]MH_I2C_Read... [23:11:24]Read from MH i2c: 01 07 00 3E 6B 00 00 00 00 00 FF 0F BE [23:11:24]process_action close_receipt done [23:11:24]requested_data is exist [23:11:24]produce_requested_data [23:11:24]requested_item fm.sn is exist - process it [23:11:24]wFMCommunicate request_size=4 [23:11:24]MH_SAM_APDU [23:11:24]CAPDU: 80 11 00 00 [23:11:24]Write to MH i2c: E2 08 00 3F 6B 80 11 00 00 00 00 00 00 24 [23:11:24]Write i2c OK [23:11:24]MH_I2C_Read... [23:11:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:24]Read from MH i2c: E2 [23:11:24]MH_I2C_Read... [23:11:24]Read from MH i2c: E2 17 00 [23:11:24]MH_I2C_Read... [23:11:24]Read from MH i2c: E2 17 00 3F 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 73 [23:11:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:11:24]wFMCommunicate OK [23:11:24]requested_item fd.num is exist - process it [23:11:24]SAM_PROTO_GetFieldsCounters [23:11:24]wFMCommunicate request_size=4 [23:11:24]MH_SAM_APDU [23:11:24]CAPDU: 80 13 00 00 [23:11:24]Write to MH i2c: E2 08 00 40 6B 80 13 00 00 00 00 00 00 27 [23:11:24]Write i2c OK [23:11:24]MH_I2C_Read... [23:11:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:11:25]Read from MH i2c: E2 [23:11:25]MH_I2C_Read... [23:11:25]Read from MH i2c: E2 62 00 [23:11:25]MH_I2C_Read... [23:11:25]Read from MH i2c: E2 62 00 40 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 93 71 00 00 0E 04 04 00 73 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 2D [23:11: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 93 71 00 00 0E 04 04 00 73 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 [23:11:25]wFMCommunicate OK [23:11:25]SAM_PROTO_GetFieldsCounters done [23:11:25]requested_item shift.num is exist - process it [23:11:25]requested_item shift.opened is exist - process it [23:11:25]req_shift_opened [23:11:25]FM_GetShiftState [23:11:25]SAM_PROTO_GetShiftState [23:11:25]wFMCommunicate request_size=4 [23:11:25]MH_SAM_APDU [23:11:25]CAPDU: 80 13 01 00 [23:11:25]Write to MH i2c: E2 08 00 41 6B 80 13 01 00 00 00 00 00 29 [23:11:25]Write i2c OK [23:11:25]MH_I2C_Read... [23:11:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:25]Read from MH i2c: E2 [23:11:25]MH_I2C_Read... [23:11:25]Read from MH i2c: E2 0E 00 [23:11:25]MH_I2C_Read... [23:11:25]Read from MH i2c: E2 0E 00 41 6B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 42 [23:11:25]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:11:25]wFMCommunicate OK [23:11:25]SAM_PROTO_GetShiftState done [23:11:25]FM_GetShiftState done [23:11:25]req_shift_opened done [23:11:25]requested_item shift.open_date is exist - process it [23:11:25]req_shift_open_date [23:11:25]req_shift_open_date done [23:11:25]produce_requested_data done [23:11:25]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29075,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [23:11:25]process_action_free close_receipt [23:11:25]json_value_free [23:11:25]json_value_free done [23:11:25]process_json_proto returns [23:11:25]Send response to host [23:11:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29075,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [23:11:25]free response buf [23:11:25]execute_script done [23:11:25]execute_script returns [23:11:25]free content buf [23:11:25]Sock 7.Close socket [23:11:25]Sock 7.Thread stoped [23:11:28]OFD Sender: No OFD packet to send [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:48]OFD Sender: No OFD packet to send [23:11:53]OFD Sender: No OFD packet to send [23:11:58]OFD Sender: No OFD packet to send [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:43]OFD Sender: No OFD packet to send [23:12:48]OFD Sender: No OFD packet to send [23:12:53]OFD Sender: No OFD packet to send [23:12:58]OFD Sender: No OFD packet to send [23:13:03]OFD Sender: No OFD packet to send [23:13:08]OFD Sender: No OFD packet to send [23:13:13]OFD Sender: No OFD packet to send [23:13:18]OFD Sender: No OFD packet to send [23:13:23]OFD Sender: No OFD packet to send [23:13:28]OFD Sender: No OFD packet to send [23:13:33]OFD Sender: No OFD packet to send [23:13:38]OFD Sender: No OFD packet to send [23:13:43]OFD Sender: No OFD packet to send [23:13:48]OFD Sender: No OFD packet to send [23:13:53]OFD Sender: No OFD packet to send [23:13:58]OFD Sender: No OFD packet to send [23:14:03]OFD Sender: No OFD packet to send [23:14:08]OFD Sender: No OFD packet to send [23:14:13]OFD Sender: No OFD packet to send [23:14:18]OFD Sender: No OFD packet to send [23:14:23]OFD Sender: No OFD packet to send [23:14:28]OFD Sender: No OFD packet to send [23:14:33]OFD Sender: No OFD packet to send [23:14:38]OFD Sender: No OFD packet to send [23:14:43]OFD Sender: No OFD packet to send [23:14:48]OFD Sender: No OFD packet to send [23:14:53]OFD Sender: No OFD packet to send [23:14:58]OFD Sender: No OFD packet to send [23:15:03]OFD Sender: No OFD packet to send [23:15:08]OFD Sender: No OFD packet to send [23:15:13]OFD Sender: No OFD packet to send [23:15:18]OFD Sender: No OFD packet to send [23:15:23]OFD Sender: No OFD packet to send [23:15:28]OFD Sender: No OFD packet to send [23:15:33]OFD Sender: No OFD packet to send [23:15:38]OFD Sender: No OFD packet to send [23:15:43]OFD Sender: No OFD packet to send [23:15:48]OFD Sender: No OFD packet to send [23:15:53]OFD Sender: No OFD packet to send [23:15:58]OFD Sender: No OFD packet to send [23:16:03]OFD Sender: No OFD packet to send [23:16:08]OFD Sender: No OFD packet to send [23:16:14]OFD Sender: No OFD packet to send [23:16:19]OFD Sender: No OFD packet to send [23:16:24]OFD Sender: No OFD packet to send [23:16:29]OFD Sender: No OFD packet to send [23:16:34]OFD Sender: No OFD packet to send [23:16:39]OFD Sender: No OFD packet to send [23:16:44]OFD Sender: No OFD packet to send [23:16:49]OFD Sender: No OFD packet to send [23:16:54]OFD Sender: No OFD packet to send [23:16:59]OFD Sender: No OFD packet to send [23:17:04]OFD Sender: No OFD packet to send [23:17:09]OFD Sender: No OFD packet to send [23:17:14]OFD Sender: No OFD packet to send [23:17:19]OFD Sender: No OFD packet to send [23:17:24]OFD Sender: No OFD packet to send [23:17:29]OFD Sender: No OFD packet to send [23:17:34]OFD Sender: No OFD packet to send [23:17:39]OFD Sender: No OFD packet to send [23:17:44]OFD Sender: No OFD packet to send [23:17:49]OFD Sender: No OFD packet to send [23:17:54]OFD Sender: No OFD packet to send [23:17:59]OFD Sender: No OFD packet to send [23:18:04]OFD Sender: No OFD packet to send [23:18:09]OFD Sender: No OFD packet to send [23:18:14]OFD Sender: No OFD packet to send [23:18:19]OFD Sender: No OFD packet to send [23:18:24]OFD Sender: No OFD packet to send [23:18:29]OFD Sender: No OFD packet to send [23:18:34]OFD Sender: No OFD packet to send [23:18:39]OFD Sender: No OFD packet to send [23:18:44]OFD Sender: No OFD packet to send [23:18:49]OFD Sender: No OFD packet to send [23:18:54]OFD Sender: No OFD packet to send [23:18:59]OFD Sender: No OFD packet to send [23:19:04]OFD Sender: No OFD packet to send [23:19:09]OFD Sender: No OFD packet to send [23:19:14]OFD Sender: No OFD packet to send [23:19:19]OFD Sender: No OFD packet to send [23:19:24]OFD Sender: No OFD packet to send [23:19:29]OFD Sender: No OFD packet to send [23:19:34]OFD Sender: No OFD packet to send [23:19:39]OFD Sender: No OFD packet to send [23:19:44]OFD Sender: No OFD packet to send [23:19:49]OFD Sender: No OFD packet to send [23:19:54]OFD Sender: No OFD packet to send [23:19:59]OFD Sender: No OFD packet to send [23:20:04]OFD Sender: No OFD packet to send [23:20:09]OFD Sender: No OFD packet to send [23:20:14]OFD Sender: No OFD packet to send [23:20:19]OFD Sender: No OFD packet to send [23:20:24]OFD Sender: No OFD packet to send [23:20:29]OFD Sender: No OFD packet to send [23:20:34]OFD Sender: No OFD packet to send [23:20:39]OFD Sender: No OFD packet to send [23:20:44]OFD Sender: No OFD packet to send [23:20:49]OFD Sender: No OFD packet to send [23:20:54]OFD Sender: No OFD packet to send [23:20:59]OFD Sender: No OFD packet to send [23:21:04]OFD Sender: No OFD packet to send [23:21:09]OFD Sender: No OFD packet to send [23:21:14]OFD Sender: No OFD packet to send [23:21:19]OFD Sender: No OFD packet to send [23:21:24]OFD Sender: No OFD packet to send [23:21:29]OFD Sender: No OFD packet to send [23:21:34]OFD Sender: No OFD packet to send [23:21:39]OFD Sender: No OFD packet to send [23:21:44]OFD Sender: No OFD packet to send [23:21:49]OFD Sender: No OFD packet to send [23:21:54]OFD Sender: No OFD packet to send [23:21:59]OFD Sender: No OFD packet to send [23:22:04]OFD Sender: No OFD packet to send [23:22:09]OFD Sender: No OFD packet to send [23:22:14]OFD Sender: No OFD packet to send [23:22:19]OFD Sender: No OFD packet to send [23:22:24]OFD Sender: No OFD packet to send [23:22:29]OFD Sender: No OFD packet to send [23:22:34]OFD Sender: No OFD packet to send [23:22:39]OFD Sender: No OFD packet to send [23:22:44]OFD Sender: No OFD packet to send [23:22:49]OFD Sender: No OFD packet to send [23:22:54]OFD Sender: No OFD packet to send [23:22:59]OFD Sender: No OFD packet to send [23:23:04]OFD Sender: No OFD packet to send [23:23:09]OFD Sender: No OFD packet to send [23:23:14]OFD Sender: No OFD packet to send [23:23:19]OFD Sender: No OFD packet to send [23:23:24]OFD Sender: No OFD packet to send [23:23:29]OFD Sender: No OFD packet to send [23:23:34]OFD Sender: No OFD packet to send [23:23:37]accept exits with 9 [23:23:37]New connection [23:23:37]New thread 3066928484 created [23:23:37]Thread 3066785124 joined [23:23:37]Waiting for new connection... [23:23:37] Sock 9.Parse request [23:23:37]Sock 9.Check first char [23:23:37]Sock 9.First char is OK [23:23:37]request: POST /json_proto HTTP/1.0 [23:23:37]Method: POST [23:23:37]URL: /json_proto [23:23:37]Method is POST - this is cgi request [23:23:37]url: /json_proto [23:23:37]query_string will be loaded in cgi processing [23:23:37]execute_cgi json_proto POST (null) [23:23:37]execute_cgi path=json_proto method=POST [23:23:37]POST find Content-Length [23:23:37]Host: 172.17.33.3:8080 [23:23:37]Content-Length: 816 [23:23:37]Content-Type: application/json [23:23:37] [23:23:37]POST finish read [23:23:37]Found Content-Length = 816 [23:23:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347445", "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" : 64.30, "quantity" : 7.780, "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:37]execute_script... [23:23: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)347445", "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" : 64.30, "quantity" : 7.780, "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:37]POST & json_proto [23:23:37]process_json_proto [23:23:37]json parsed OK: [23:23:37]protocol is kg_v1.0 [23:23:37]action value=close_receipt [23:23:37]process_action close_receipt [23:23:37]cmd_close_receipt [23:23:37]MH_GetDate [23:23:37]Write to MH i2c: F0 00 00 42 6B 9C [23:23:37]Write i2c OK [23:23:37]MH_I2C_Read... [23:23:37]Read from MH i2c: F0 [23:23:37]MH_I2C_Read... [23:23:37]Read from MH i2c: F0 09 00 [23:23:37]MH_I2C_Read... [23:23:37]Read from MH i2c: F0 09 00 42 6B 00 00 14 1B 66 23 5B 8F 65 AC [23:23:37]GetLastDocTimeStamp 1713049888 [23:23:37]current date 1713050624 [23:23:37]FM_GetShiftState [23:23:37]SAM_PROTO_GetShiftState [23:23:37]wFMCommunicate request_size=4 [23:23:37]MH_SAM_APDU [23:23:37]CAPDU: 80 13 01 00 [23:23:37]Write to MH i2c: E2 08 00 43 6B 80 13 01 00 00 00 00 00 2B [23:23:37]Write i2c OK [23:23:37]MH_I2C_Read... [23:23:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:37]Read from MH i2c: E2 [23:23:37]MH_I2C_Read... [23:23:37]Read from MH i2c: E2 0E 00 [23:23:37]MH_I2C_Read... [23:23:37]Read from MH i2c: E2 0E 00 43 6B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 44 [23:23:37]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:23:37]wFMCommunicate OK [23:23:37]SAM_PROTO_GetShiftState done [23:23:37]FM_GetShiftState done [23:23:37]opened in 1712967615 [23:23:37]opened+sec_in_day 1713054015 [23:23:37]quantity*price = 50025 [23:23:37]sum+1 = 50026 [23:23:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 283 13.04.2024 23:23 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29076 ФПД: 202860230331483 1/tax-web-control/client/api/v1/ticket?date=20240413T232344&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29076&fm=202860230331483&tin=02508201610067®Number=0000138879044617&sum=50025 [23:23:38]StoreToDocumentArchive [23:23:38]shift 115 fd 29076 [23:23:38]save to /storage/0115/doc_00029076 [23:23:38]save last doc name /storage/0115/doc_00029076 to /storage/kkm_last_doc_name [23:23:38]save OK [23:23:38]Clear old archive folders... [23:23:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:23:38]tlvbuf is 0120BDB0 [23:23:38]SAM_PROTO_ClearQueue [23:23:38]wFMCommunicate request_size=4 [23:23:38]MH_SAM_APDU [23:23:38]CAPDU: 80 09 00 00 [23:23:38]Write to MH i2c: E2 08 00 50 6B 80 09 00 00 00 00 00 00 2D [23:23:38]Write i2c OK [23:23:38]MH_I2C_Read... [23:23:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:23:38]Read from MH i2c: E2 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: E2 03 00 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: E2 03 00 50 6B 00 90 00 2F [23:23:38]RAPDU: 90 00 [23:23:38]wFMCommunicate OK [23:23:38]SAM_PROTO_ClearQueue done [23:23:38]KKMCreateOFDPacket [23:23:38]OFDProtocolAddRootSTLVToBuf [23:23:38]FM_MakeSignedData [23:23:38]FM_MakeSignedData [23:23:38]SAM_PROTO_SignData [23:23:38]wFMCommunicate request_size=4 [23:23:38]MH_SAM_APDU [23:23:38]CAPDU: 80 0D 01 02 [23:23:38]Write to MH i2c: E2 08 00 51 6B 80 0D 01 02 00 00 00 00 35 [23:23:38]Write i2c OK [23:23:38]MH_I2C_Read... [23:23:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:23:38]Read from MH i2c: E2 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: E2 03 00 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: E2 03 00 51 6B 00 90 00 30 [23:23:38]RAPDU: 90 00 [23:23:38]wFMCommunicate OK [23:23:38]wFMCommunicate request_size=255 [23:23:38]MH_SAM_APDU [23:23: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 1B 01 00 00 F4 03 04 00 00 14 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 94 71 00 00 35 04 06 00 B8 [23:23:38]Write to MH i2c: E2 02 01 52 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 1B 01 00 00 F4 03 04 00 00 14 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 94 71 00 00 35 04 06 00 B8 00 00 0A [23:23:38]Write i2c OK [23:23:38]MH_I2C_Read... [23:23:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:38]Read from MH i2c: E2 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: E2 03 00 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: E2 03 00 52 6B 00 90 00 31 [23:23:38]RAPDU: 90 00 [23:23:38]wFMCommunicate OK [23:23:38]wFMCommunicate request_size=10 [23:23:38]MH_SAM_APDU [23:23:38]CAPDU: 80 0D 02 02 05 80 13 F7 CC 5B [23:23:38]Write to MH i2c: E2 0D 00 53 6B 80 0D 02 02 05 00 80 13 F7 CC 5B 00 00 F3 [23:23:38]Write i2c OK [23:23:38]MH_I2C_Read... [23:23:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:38]Read from MH i2c: E2 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: E2 03 00 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: E2 03 00 53 6B 00 90 00 32 [23:23:38]RAPDU: 90 00 [23:23:38]wFMCommunicate OK [23:23:38]wFMCommunicate request_size=4 [23:23:38]MH_SAM_APDU [23:23:38]CAPDU: 80 0D 03 02 [23:23:38]Write to MH i2c: E2 08 00 54 6B 80 0D 03 02 00 00 00 00 3A [23:23:38]Write i2c OK [23:23:38]MH_I2C_Read... [23:23:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:23:38]Read from MH i2c: E2 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: E2 0B 00 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: E2 0B 00 54 6B 00 BC D3 5A 10 0C 61 F0 C5 90 00 56 [23:23:38]RAPDU: BC D3 5A 10 0C 61 F0 C5 90 00 [23:23:38]wFMCommunicate OK [23:23:38]SAM_PROTO_SignData done [23:23:38]FM_MakeSignedData done [23:23:38]CreateOFDProtocolMessage [23:23:38]wFMCommunicate request_size=4 [23:23:38]MH_SAM_APDU [23:23:38]CAPDU: 80 11 00 00 [23:23:38]Write to MH i2c: E2 08 00 55 6B 80 11 00 00 00 00 00 00 3A [23:23:38]Write i2c OK [23:23:38]MH_I2C_Read... [23:23:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:38]Read from MH i2c: E2 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: E2 17 00 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: E2 17 00 55 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 89 [23:23:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:23:38]wFMCommunicate OK [23:23:38]CreateOFDProtocolMessage done [23:23:38]OFDSenderStorePacket 29076 [23:23:38]StoreOFDPacket docnum=29076 [23:23:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 28 DB 07 01 87 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 1B 01 00 00 F4 03 04 00 00 14 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 94 71 00 00 35 04 06 00 B8 80 13 F7 CC 5B BC D3 5A 10 0C 61 F0 C5 [23:23:38]CheckFolder [23:23:38]dirname=/storage/ofd_packets [23:23:38]CheckFolder done [23:23:38]ProducePacketName [23:23:38]name=ofd_packets/00029076 [23:23:38]NVStorageSaveData ofd_packets/00029076 [23:23:38]File name is /storage/ofd_packets/00029076 [23:23:38]Write 301 bytes [23:23:38]NVStorageSaveData done [23:23:38]OFDSenderStorePacket done [23:23:38]KKMCreateOFDPacket done [23:23:38]NVStorageSaveData kkm_last_timestamp [23:23:38]File name is /storage/kkm_last_timestamp [23:23:38]Write 4 bytes [23:23:38]NVStorageSaveData done [23:23:38]ExternCall_PrintAddStr [23:23:38]wPrintStart [23:23:38]Write to MH i2c: 01 00 00 56 6B C1 [23:23:38]OFD Sender: Processing packet 29076 [packets to send 8, broken 7] [23:23:38]ProducePacketName [23:23:38]name=ofd_packets/00029076 [23:23:38]OFD Sender: To server: pG, [23:23:38]CommunicateWithHost lk.salyk.kg:30040 [23:23:38]ConnectInit lk.salyk.kg [23:23:38]Write i2c OK [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: 01 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: 01 07 00 [23:23:38]MH_I2C_Read... [23:23:38]Read from MH i2c: 01 07 00 56 6B 00 00 00 00 00 FF 0F D6 [23:23:38]RasterBufferAndPrint [23:23:38]line Счет N : (1)347445 [23:23:38]line ИНН: 02508201610067 [23:23:38]line Контрольно-Кассовый Чек [23:23:38]line ПРОДАЖА [23:23:38]line ТРК (МРК, ГНК) : 42 [23:23:38]line Товар: 2710124130 [23:23:38]line Аи-92-К-5 [23:23:38]line 7.780 * 64.30 [23:23:38]line = 500.25 [23:23:38]line НДС 12% НСП 1% [23:23:38]line > о реализуемом товаре [23:23:38]line ИТОГО: 500.25 [23:23:38]line НСП 1% : 4.43 [23:23:38]line НДС 12% : 53.12 [23:23:38]line Наличными: 0.00 [23:23:38]line Безнал.: 500.25 [23:23:38]line Место: АЗС № 108 "Партнер Нефть" [23:23:38]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:23:38]line СНО: Общий режим [23:23:38]line Чек 283 13.04.2024 23:23 [23:23:38]line Смена: 115 ФФД: 1.0 [23:23:38]line ЗНМ: 0300000027 [23:23:38]line РНМ: 0000138879044617 [23:23:38]line Версия ККМ: 001 [23:23:38]line Платежная система: Бакай Банк [23:23:38]line ФМ: 0000000000963154 [23:23:38]line ФД: 29076 [23:23:38]line ФПД: 202860230331483 [23:23:39]line 1/tax-web-control/client/api/v1/ticket?date=20240413T232344&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29076&fm=202860230331483&tin=02508201610067®Number=0000138879044617&sum=50025 [23:23:39]Connected sock=10 [23:23: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 31 35 34 0F 01 00 00 28 DB 07 01 87 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 1B 01 00 00 F4 03 04 00 00 14 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 94 71 00 00 35 04 06 00 B8 80 13 F7 CC 5B BC D3 5A 10 0C 61 F0 C5 [23:23:39]written 0, free lines is 4095 [23:23:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E3 10 47 00 6D 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 31 35 34 10 04 04 00 94 71 00 00 F4 03 04 00 A5 BE 1A 66 B6 04 01 00 00 D8 29 F6 D2 06 9B 3E CC [23:23:39]CommunicateWithHost err = 0 [23:23:39]CheckOFDResponse [23:23:39]1017 (14) - 77093643461234 [23:23:39]1041 (16) - 0000000000963154 [23:23:39]1040 (4) - 29076 [23:23:39]1012 (4) - 13.04.2024 17:19 [23:23:39]1206 (1) - 0 [23:23:39]OFD Sender: Remove packet 29076 [23:23:39]ProducePacketName [23:23:39]name=ofd_packets/00029076 [23:23:39]NVStorageDeleteData [23:23:39]Write to MH i2c: 01 00 00 7F 6B EA [23:23:39]Write i2c OK [23:23:39]MH_I2C_Read... [23:23:39]Read from MH i2c: 01 [23:23:39]MH_I2C_Read... [23:23:39]Read from MH i2c: 01 07 00 [23:23:39]MH_I2C_Read... [23:23:39]Read from MH i2c: 01 07 00 7F 6B 00 00 00 00 00 DF 0C DC [23:23:39]RasterBufferAndPrint [23:23:39]line [23:23:39]line [23:23:39]line [23:23:39]line [23:23:39]line [23:23:39]written 0, free lines is 3302 [23:23:39]MH_Cut [23:23:39]Write to MH i2c: D1 01 00 86 6B 01 C3 [23:23:39]Write i2c OK [23:23:39]MH_I2C_Read... [23:23:39]Read from MH i2c: D1 [23:23:39]MH_I2C_Read... [23:23:39]Read from MH i2c: D1 01 00 [23:23:39]MH_I2C_Read... [23:23:39]Read from MH i2c: D1 01 00 86 6B 00 C2 [23:23:39]Write to MH i2c: 01 00 00 87 6B F2 [23:23:39]Write i2c OK [23:23:39]MH_I2C_Read... [23:23:39]OFD Sender: No OFD packet to send [23:23:40]*** Cut start [23:23:40]*** Partial cut [23:23:40]*** CUTSNS_PIN = 1 [23:23:40]*** CUTSNS_PIN = 0 [23:23:40]*** Brake cut motor [23:23:41]*** Stop cut motor [23:23:41]*** Cut end [23:23:41]Read from MH i2c: 01 [23:23:41]MH_I2C_Read... [23:23:41]Read from MH i2c: 01 07 00 [23:23:41]MH_I2C_Read... [23:23:41]Read from MH i2c: 01 07 00 87 6B 00 00 00 00 00 FF 0F 07 [23:23:41]process_action close_receipt done [23:23:41]requested_data is exist [23:23:41]produce_requested_data [23:23:41]requested_item fm.sn is exist - process it [23:23:41]wFMCommunicate request_size=4 [23:23:41]MH_SAM_APDU [23:23:41]CAPDU: 80 11 00 00 [23:23:41]Write to MH i2c: E2 08 00 88 6B 80 11 00 00 00 00 00 00 6D [23:23:41]Write i2c OK [23:23:41]MH_I2C_Read... [23:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:41]Read from MH i2c: E2 [23:23:41]MH_I2C_Read... [23:23:41]Read from MH i2c: E2 17 00 [23:23:41]MH_I2C_Read... [23:23:41]Read from MH i2c: E2 17 00 88 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 BC [23:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:23:41]wFMCommunicate OK [23:23:41]requested_item fd.num is exist - process it [23:23:41]SAM_PROTO_GetFieldsCounters [23:23:41]wFMCommunicate request_size=4 [23:23:41]MH_SAM_APDU [23:23:41]CAPDU: 80 13 00 00 [23:23:41]Write to MH i2c: E2 08 00 89 6B 80 13 00 00 00 00 00 00 70 [23:23:41]Write i2c OK [23:23:41]MH_I2C_Read... [23:23:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:23:41]Read from MH i2c: E2 [23:23:41]MH_I2C_Read... [23:23:41]Read from MH i2c: E2 62 00 [23:23:41]MH_I2C_Read... [23:23:41]Read from MH i2c: E2 62 00 89 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 94 71 00 00 0E 04 04 00 73 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 7A [23:23: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 94 71 00 00 0E 04 04 00 73 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 [23:23:41]wFMCommunicate OK [23:23:41]SAM_PROTO_GetFieldsCounters done [23:23:41]requested_item shift.num is exist - process it [23:23:41]requested_item shift.opened is exist - process it [23:23:41]req_shift_opened [23:23:41]FM_GetShiftState [23:23:41]SAM_PROTO_GetShiftState [23:23:41]wFMCommunicate request_size=4 [23:23:41]MH_SAM_APDU [23:23:41]CAPDU: 80 13 01 00 [23:23:41]Write to MH i2c: E2 08 00 8A 6B 80 13 01 00 00 00 00 00 72 [23:23:41]Write i2c OK [23:23:41]MH_I2C_Read... [23:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:41]Read from MH i2c: E2 [23:23:41]MH_I2C_Read... [23:23:41]Read from MH i2c: E2 0E 00 [23:23:41]MH_I2C_Read... [23:23:41]Read from MH i2c: E2 0E 00 8A 6B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 8B [23:23:41]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:23:41]wFMCommunicate OK [23:23:41]SAM_PROTO_GetShiftState done [23:23:41]FM_GetShiftState done [23:23:41]req_shift_opened done [23:23:41]requested_item shift.open_date is exist - process it [23:23:41]req_shift_open_date [23:23:41]req_shift_open_date done [23:23:41]produce_requested_data done [23:23:41]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29076,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [23:23:41]process_action_free close_receipt [23:23:41]json_value_free [23:23:41]json_value_free done [23:23:41]process_json_proto returns [23:23:41]Send response to host [23:23:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29076,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [23:23:41]free response buf [23:23:41]execute_script done [23:23:41]execute_script returns [23:23:41]free content buf [23:23:41]Sock 9.Close socket [23:23:41]Sock 9.Thread stoped [23:23:44]OFD Sender: No OFD packet to send [23:23:49]OFD Sender: No OFD packet to send [23:23:54]OFD Sender: No OFD packet to send [23:23:59]OFD Sender: No OFD packet to send [23:24:04]OFD Sender: No OFD packet to send [23:24:09]OFD Sender: No OFD packet to send [23:24:14]OFD Sender: No OFD packet to send [23:24:19]OFD Sender: No OFD packet to send [23:24:24]OFD Sender: No OFD packet to send [23:24:29]OFD Sender: No OFD packet to send [23:24:34]OFD Sender: No OFD packet to send [23:24:39]OFD Sender: No OFD packet to send [23:24:44]OFD Sender: No OFD packet to send [23:24:49]OFD Sender: No OFD packet to send [23:24:54]OFD Sender: No OFD packet to send [23:24:59]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:10]OFD Sender: No OFD packet to send [23:26:15]OFD Sender: No OFD packet to send [23:26:20]OFD Sender: No OFD packet to send [23:26:25]OFD Sender: No OFD packet to send [23:26:30]OFD Sender: No OFD packet to send [23:26:35]OFD Sender: No OFD packet to send [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:05]OFD Sender: No OFD packet to send [23:27:10]OFD Sender: No OFD packet to send [23:27:15]OFD Sender: No OFD packet to send [23:27:20]OFD Sender: No OFD packet to send [23:27:25]OFD Sender: No OFD packet to send [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:40]OFD Sender: No OFD packet to send [23:27:45]OFD Sender: No OFD packet to send [23:27:50]OFD Sender: No OFD packet to send [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:25]OFD Sender: No OFD packet to send [23:28:30]OFD Sender: No OFD packet to send [23:28:35]OFD Sender: No OFD packet to send [23:28:40]OFD Sender: No OFD packet to send [23:28:45]OFD Sender: No OFD packet to send [23:28:50]OFD Sender: No OFD packet to send [23:28:55]OFD Sender: No OFD packet to send [23:29:00]OFD Sender: No OFD packet to send [23:29:05]OFD Sender: No OFD packet to send [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:45]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:31:59]accept exits with 7 [23:31:59]New connection [23:31:59]New thread 3066785124 created [23:31:59]Thread 3066928484 joined [23:31:59]Waiting for new connection... [23:31:59] Sock 7.Parse request [23:31:59]Sock 7.Check first char [23:31:59]Sock 7.First char is OK [23:31:59]request: POST /json_proto HTTP/1.0 [23:31:59]Method: POST [23:31:59]URL: /json_proto [23:31:59]Method is POST - this is cgi request [23:31:59]url: /json_proto [23:31:59]query_string will be loaded in cgi processing [23:31:59]execute_cgi json_proto POST (null) [23:31:59]execute_cgi path=json_proto method=POST [23:31:59]POST find Content-Length [23:31:59]Host: 172.17.33.3:8080 [23:31:59]Content-Length: 820 [23:31:59]Content-Type: application/json [23:31:59] [23:31:59]POST finish read [23:31:59]Found Content-Length = 820 [23:31:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 11.980, "sum" : 394.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 394.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:59]execute_script... [23:31: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)347446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 11.980, "sum" : 394.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 394.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:59]POST & json_proto [23:31:59]process_json_proto [23:31:59]json parsed OK: [23:31:59]protocol is kg_v1.0 [23:31:59]action value=close_receipt [23:31:59]process_action close_receipt [23:31:59]cmd_close_receipt [23:31:59]MH_GetDate [23:31:59]Write to MH i2c: F0 00 00 8B 6B E5 [23:31:59]Write i2c OK [23:31:59]MH_I2C_Read... [23:31:59]Read from MH i2c: F0 [23:31:59]MH_I2C_Read... [23:31:59]Read from MH i2c: F0 09 00 [23:31:59]MH_I2C_Read... [23:31:59]Read from MH i2c: F0 09 00 8B 6B 00 F6 15 1B 66 23 5B 8F 65 EC [23:31:59]GetLastDocTimeStamp 1713050624 [23:31:59]current date 1713051126 [23:31:59]FM_GetShiftState [23:31:59]SAM_PROTO_GetShiftState [23:31:59]wFMCommunicate request_size=4 [23:31:59]MH_SAM_APDU [23:31:59]CAPDU: 80 13 01 00 [23:31:59]Write to MH i2c: E2 08 00 8C 6B 80 13 01 00 00 00 00 00 74 [23:31:59]Write i2c OK [23:31:59]MH_I2C_Read... [23:31:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:59]Read from MH i2c: E2 [23:31:59]MH_I2C_Read... [23:31:59]Read from MH i2c: E2 0E 00 [23:31:59]MH_I2C_Read... [23:31:59]Read from MH i2c: E2 0E 00 8C 6B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 8D [23:31:59]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:31:59]wFMCommunicate OK [23:31:59]SAM_PROTO_GetShiftState done [23:31:59]FM_GetShiftState done [23:31:59]opened in 1712967615 [23:31:59]opened+sec_in_day 1713054015 [23:31:59]quantity*price = 39414 [23:31:59]sum+1 = 39415 [23:31:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 394.14 НСП 1% : 3.49 НДС 12% : 41.86 Наличными: 0.00 Безнал.: 394.14 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 284 13.04.2024 23:32 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000963154 ФД: 29077 ФПД: 174067710547294 1/tax-web-control/client/api/v1/ticket?date=20240413T233206&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29077&fm=174067710547294&tin=02508201610067®Number=0000138879044617&sum=39414 [23:32:00]StoreToDocumentArchive [23:32:00]shift 115 fd 29077 [23:32:00]save to /storage/0115/doc_00029077 [23:32:00]save last doc name /storage/0115/doc_00029077 to /storage/kkm_last_doc_name [23:32:00]save OK [23:32:00]Clear old archive folders... [23:32:00]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:32:00]tlvbuf is 011CB470 [23:32:00]SAM_PROTO_ClearQueue [23:32:00]wFMCommunicate request_size=4 [23:32:00]MH_SAM_APDU [23:32:00]CAPDU: 80 09 00 00 [23:32:00]Write to MH i2c: E2 08 00 99 6B 80 09 00 00 00 00 00 00 76 [23:32:00]Write i2c OK [23:32:00]MH_I2C_Read... [23:32:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:32:00]Read from MH i2c: E2 [23:32:00]MH_I2C_Read... [23:32:00]Read from MH i2c: E2 03 00 [23:32:00]MH_I2C_Read... [23:32:00]Read from MH i2c: E2 03 00 99 6B 00 90 00 78 [23:32:00]RAPDU: 90 00 [23:32:00]wFMCommunicate OK [23:32:00]SAM_PROTO_ClearQueue done [23:32:00]KKMCreateOFDPacket [23:32:00]OFDProtocolAddRootSTLVToBuf [23:32:00]FM_MakeSignedData [23:32:00]FM_MakeSignedData [23:32:00]SAM_PROTO_SignData [23:32:00]wFMCommunicate request_size=4 [23:32:00]MH_SAM_APDU [23:32:00]CAPDU: 80 0D 01 02 [23:32:00]Write to MH i2c: E2 08 00 9A 6B 80 0D 01 02 00 00 00 00 7E [23:32:00]Write i2c OK [23:32:00]MH_I2C_Read... [23:32:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:32:00]Read from MH i2c: E2 [23:32:00]MH_I2C_Read... [23:32:00]Read from MH i2c: E2 03 00 [23:32:00]MH_I2C_Read... [23:32:00]Read from MH i2c: E2 03 00 9A 6B 00 90 00 79 [23:32:00]RAPDU: 90 00 [23:32:00]wFMCommunicate OK [23:32:00]wFMCommunicate request_size=255 [23:32:00]MH_SAM_APDU [23:32: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 35 FF 03 08 00 03 CC 2E 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 F6 99 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 99 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 99 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 F6 15 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 71 00 00 35 04 06 00 9E 50 [23:32:00]Write to MH i2c: E2 02 01 9B 6B 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 CC 2E 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 F6 99 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 99 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 99 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 F6 15 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 71 00 00 35 04 06 00 9E 50 00 00 BA [23:32:00]Write i2c OK [23:32:00]MH_I2C_Read... [23:32:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:01]Read from MH i2c: E2 [23:32:01]MH_I2C_Read... [23:32:01]Read from MH i2c: E2 03 00 [23:32:01]MH_I2C_Read... [23:32:01]Read from MH i2c: E2 03 00 9B 6B 00 90 00 7A [23:32:01]RAPDU: 90 00 [23:32:01]wFMCommunicate OK [23:32:01]wFMCommunicate request_size=9 [23:32:01]MH_SAM_APDU [23:32:01]CAPDU: 80 0D 02 02 04 4C 0D D5 5E [23:32:01]Write to MH i2c: E2 0C 00 9C 6B 80 0D 02 02 04 00 4C 0D D5 5E 00 00 15 [23:32:01]Write i2c OK [23:32:01]MH_I2C_Read... [23:32:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:01]Read from MH i2c: E2 [23:32:01]MH_I2C_Read... [23:32:01]Read from MH i2c: E2 03 00 [23:32:01]MH_I2C_Read... [23:32:01]Read from MH i2c: E2 03 00 9C 6B 00 90 00 7B [23:32:01]RAPDU: 90 00 [23:32:01]wFMCommunicate OK [23:32:01]wFMCommunicate request_size=4 [23:32:01]MH_SAM_APDU [23:32:01]CAPDU: 80 0D 03 02 [23:32:01]Write to MH i2c: E2 08 00 9D 6B 80 0D 03 02 00 00 00 00 83 [23:32:01]Write i2c OK [23:32:01]MH_I2C_Read... [23:32:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:32:01]Read from MH i2c: E2 [23:32:01]MH_I2C_Read... [23:32:01]Read from MH i2c: E2 0B 00 [23:32:01]MH_I2C_Read... [23:32:01]Read from MH i2c: E2 0B 00 9D 6B 00 14 C7 53 2E 2D B1 55 F5 90 00 08 [23:32:01]RAPDU: 14 C7 53 2E 2D B1 55 F5 90 00 [23:32:01]wFMCommunicate OK [23:32:01]SAM_PROTO_SignData done [23:32:01]FM_MakeSignedData done [23:32:01]CreateOFDProtocolMessage [23:32:01]wFMCommunicate request_size=4 [23:32:01]MH_SAM_APDU [23:32:01]CAPDU: 80 11 00 00 [23:32:01]Write to MH i2c: E2 08 00 9E 6B 80 11 00 00 00 00 00 00 83 [23:32:01]Write i2c OK [23:32:01]MH_I2C_Read... [23:32:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:01]Read from MH i2c: E2 [23:32:01]MH_I2C_Read... [23:32:01]Read from MH i2c: E2 17 00 [23:32:01]MH_I2C_Read... [23:32:01]Read from MH i2c: E2 17 00 9E 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D2 [23:32:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:32:01]wFMCommunicate OK [23:32:01]CreateOFDProtocolMessage done [23:32:01]OFDSenderStorePacket 29077 [23:32:01]StoreOFDPacket docnum=29077 [23:32:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 3A C1 06 01 4C F6 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 CC 2E 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 F6 99 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 99 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 99 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 F6 15 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 71 00 00 35 04 06 00 9E 50 4C 0D D5 5E 14 C7 53 2E 2D B1 55 F5 [23:32:01]CheckFolder [23:32:01]dirname=/storage/ofd_packets [23:32:01]CheckFolder done [23:32:01]ProducePacketName [23:32:01]name=ofd_packets/00029077 [23:32:01]NVStorageSaveData ofd_packets/00029077 [23:32:01]File name is /storage/ofd_packets/00029077 [23:32:01]Write 300 bytes [23:32:01]NVStorageSaveData done [23:32:01]OFDSenderStorePacket done [23:32:01]KKMCreateOFDPacket done [23:32:01]NVStorageSaveData kkm_last_timestamp [23:32:01]File name is /storage/kkm_last_timestamp [23:32:01]Write 4 bytes [23:32:01]NVStorageSaveData done [23:32:01]ExternCall_PrintAddStr [23:32:01]wPrintStart [23:32:01]Write to MH i2c: 01 00 00 9F 6B 0A [23:32:01]Write i2c OK [23:32:01]MH_I2C_Read... [23:32:01]Read from MH i2c: 01 [23:32:01]MH_I2C_Read... [23:32:01]Read from MH i2c: 01 07 00 [23:32:01]MH_I2C_Read... [23:32:01]Read from MH i2c: 01 07 00 9F 6B 00 00 00 00 00 FF 0F 1F [23:32:01]RasterBufferAndPrint [23:32:01]line Счет N : (1)347446 [23:32:01]line ИНН: 02508201610067 [23:32:01]line Контрольно-Кассовый Чек [23:32:01]line ПРОДАЖА [23:32:01]line ТРК (МРК, ГНК) : 71 [23:32:01]line Товар: 2711129700 [23:32:01]line ГАЗ-К-5 [23:32:01]line 11.980 * 32.90 [23:32:01]line = 394.14 [23:32:01]line НДС 12% НСП 1% [23:32:01]line > о реализуемом товаре [23:32:01]line ИТОГО: 394.14 [23:32:01]line НСП 1% : 3.49 [23:32:01]line НДС 12% : 41.86 [23:32:01]line Наличными: 0.00 [23:32:01]line Безнал.: 394.14 [23:32:01]line Место: АЗС № 108 "Партнер Нефть" [23:32:01]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:32:01]line СНО: Общий режим [23:32:01]line Чек 284 13.04.2024 23:32 [23:32:01]line Смена: 115 ФФД: 1.0 [23:32:01]line ЗНМ: 0300000027 [23:32:01]line РНМ: 0000138879044617 [23:32:01]line Версия ККМ: 001 [23:32:01]line Платежная система: Бакай Банк [23:32:01]line ФМ: 0000000000963154 [23:32:01]line ФД: 29077 [23:32:01]line ФПД: 174067710547294 [23:32:01]line 1/tax-web-control/client/api/v1/ticket?date=20240413T233206&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29077&fm=174067710547294&tin=02508201610067®Number=0000138879044617&sum=39414 [23:32:01]OFD Sender: Processing packet 29077 [packets to send 8, broken 7] [23:32:01]ProducePacketName [23:32:01]name=ofd_packets/00029077 [23:32:01]OFD Sender: To server: pG, [23:32:01]CommunicateWithHost lk.salyk.kg:30040 [23:32:01]ConnectInit lk.salyk.kg [23:32:01]written 0, free lines is 4095 [23:32:01]Connected sock=9 [23:32: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 31 35 34 0E 01 00 00 3A C1 06 01 4C F6 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 CC 2E 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 F6 99 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 99 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 99 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 F6 15 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 95 71 00 00 35 04 06 00 9E 50 4C 0D D5 5E 14 C7 53 2E 2D B1 55 F5 [23:32:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 AE C4 47 00 35 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 31 35 34 10 04 04 00 95 71 00 00 F4 03 04 00 9C C0 1A 66 B6 04 01 00 00 98 5F A3 E0 1E 36 C4 5F [23:32:01]CommunicateWithHost err = 0 [23:32:01]CheckOFDResponse [23:32:01]1017 (14) - 77093643461234 [23:32:01]1041 (16) - 0000000000963154 [23:32:01]1040 (4) - 29077 [23:32:01]1012 (4) - 13.04.2024 17:27 [23:32:01]1206 (1) - 0 [23:32:01]OFD Sender: Remove packet 29077 [23:32:01]ProducePacketName [23:32:01]name=ofd_packets/00029077 [23:32:01]NVStorageDeleteData [23:32:02]Write to MH i2c: 01 00 00 C8 6B 33 [23:32:02]Write i2c OK [23:32:02]MH_I2C_Read... [23:32:02]Read from MH i2c: 01 [23:32:02]MH_I2C_Read... [23:32:02]Read from MH i2c: 01 07 00 [23:32:02]MH_I2C_Read... [23:32:02]Read from MH i2c: 01 07 00 C8 6B 00 00 00 00 00 D4 0C 1A [23:32:02]RasterBufferAndPrint [23:32:02]line [23:32:02]line [23:32:02]line [23:32:02]line [23:32:02]line [23:32:02]written 0, free lines is 3290 [23:32:02]MH_Cut [23:32:02]Write to MH i2c: D1 01 00 CF 6B 01 0C [23:32:02]Write i2c OK [23:32:02]MH_I2C_Read... [23:32:02]Read from MH i2c: D1 [23:32:02]MH_I2C_Read... [23:32:02]Read from MH i2c: D1 01 00 [23:32:02]MH_I2C_Read... [23:32:02]Read from MH i2c: D1 01 00 CF 6B 00 0B [23:32:02]Write to MH i2c: 01 00 00 D0 6B 3B [23:32:02]Write i2c OK [23:32:02]MH_I2C_Read... [23:32:02]OFD Sender: No OFD packet to send [23:32:02]*** Cut start [23:32:02]*** Partial cut [23:32:02]*** CUTSNS_PIN = 1 [23:32:02]*** CUTSNS_PIN = 0 [23:32:03]*** Brake cut motor [23:32:03]Read from MH i2c: 01 [23:32:03]MH_I2C_Read... [23:32:03]*** Stop cut motor [23:32:03]*** Cut end [23:32:03]Read from MH i2c: 01 07 00 [23:32:03]MH_I2C_Read... [23:32:03]Read from MH i2c: 01 07 00 D0 6B 00 00 00 00 00 FF 0F 50 [23:32:03]process_action close_receipt done [23:32:03]requested_data is exist [23:32:03]produce_requested_data [23:32:03]requested_item fm.sn is exist - process it [23:32:03]wFMCommunicate request_size=4 [23:32:03]MH_SAM_APDU [23:32:03]CAPDU: 80 11 00 00 [23:32:03]Write to MH i2c: E2 08 00 D1 6B 80 11 00 00 00 00 00 00 B6 [23:32:03]Write i2c OK [23:32:03]MH_I2C_Read... [23:32:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:03]Read from MH i2c: E2 [23:32:03]MH_I2C_Read... [23:32:03]Read from MH i2c: E2 17 00 [23:32:03]MH_I2C_Read... [23:32:03]Read from MH i2c: E2 17 00 D1 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 05 [23:32:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:32:03]wFMCommunicate OK [23:32:03]requested_item fd.num is exist - process it [23:32:03]SAM_PROTO_GetFieldsCounters [23:32:03]wFMCommunicate request_size=4 [23:32:03]MH_SAM_APDU [23:32:03]CAPDU: 80 13 00 00 [23:32:03]Write to MH i2c: E2 08 00 D2 6B 80 13 00 00 00 00 00 00 B9 [23:32:03]Write i2c OK [23:32:03]MH_I2C_Read... [23:32:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:32:03]Read from MH i2c: E2 [23:32:03]MH_I2C_Read... [23:32:03]Read from MH i2c: E2 62 00 [23:32:03]MH_I2C_Read... [23:32:03]Read from MH i2c: E2 62 00 D2 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 95 71 00 00 0E 04 04 00 73 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 C7 [23:32: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 95 71 00 00 0E 04 04 00 73 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 [23:32:03]wFMCommunicate OK [23:32:03]SAM_PROTO_GetFieldsCounters done [23:32:03]requested_item shift.num is exist - process it [23:32:03]requested_item shift.opened is exist - process it [23:32:03]req_shift_opened [23:32:03]FM_GetShiftState [23:32:03]SAM_PROTO_GetShiftState [23:32:03]wFMCommunicate request_size=4 [23:32:03]MH_SAM_APDU [23:32:03]CAPDU: 80 13 01 00 [23:32:03]Write to MH i2c: E2 08 00 D3 6B 80 13 01 00 00 00 00 00 BB [23:32:03]Write i2c OK [23:32:03]MH_I2C_Read... [23:32:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:03]Read from MH i2c: E2 [23:32:03]MH_I2C_Read... [23:32:03]Read from MH i2c: E2 0E 00 [23:32:03]MH_I2C_Read... [23:32:03]Read from MH i2c: E2 0E 00 D3 6B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D4 [23:32:03]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:32:03]wFMCommunicate OK [23:32:03]SAM_PROTO_GetShiftState done [23:32:03]FM_GetShiftState done [23:32:03]req_shift_opened done [23:32:03]requested_item shift.open_date is exist - process it [23:32:03]req_shift_open_date [23:32:03]req_shift_open_date done [23:32:03]produce_requested_data done [23:32:03]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29077,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [23:32:03]process_action_free close_receipt [23:32:03]json_value_free [23:32:03]json_value_free done [23:32:03]process_json_proto returns [23:32:03]Send response to host [23:32:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29077,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [23:32:03]free response buf [23:32:03]execute_script done [23:32:03]execute_script returns [23:32:03]free content buf [23:32:03]Sock 7.Close socket [23:32:03]Sock 7.Thread stoped [23:32:07]OFD Sender: No OFD packet to send [23:32:12]OFD Sender: No OFD packet to send [23:32:17]OFD Sender: No OFD packet to send [23:32:22]OFD Sender: No OFD packet to send [23:32:27]OFD Sender: No OFD packet to send [23:32:32]OFD Sender: No OFD packet to send [23:32:37]OFD Sender: No OFD packet to send [23:32:42]OFD Sender: No OFD packet to send [23:32:47]OFD Sender: No OFD packet to send [23:32:52]OFD Sender: No OFD packet to send [23:32:57]OFD Sender: No OFD packet to send [23:33:02]OFD Sender: No OFD packet to send [23:33:04]accept exits with 10 [23:33:04]New connection [23:33:04]New thread 3066928484 created [23:33:04]Thread 3066785124 joined [23:33:04]Waiting for new connection... [23:33:04] Sock 10.Parse request [23:33:04]Sock 10.Check first char [23:33:04]Sock 10.First char is OK [23:33:04]request: POST /json_proto HTTP/1.0 [23:33:04]Method: POST [23:33:04]URL: /json_proto [23:33:04]Method is POST - this is cgi request [23:33:04]url: /json_proto [23:33:04]query_string will be loaded in cgi processing [23:33:04]execute_cgi json_proto POST (null) [23:33:04]execute_cgi path=json_proto method=POST [23:33:04]POST find Content-Length [23:33:04]Host: 172.17.33.3:8080 [23:33:04]Content-Length: 681 [23:33:04]Content-Type: application/json [23:33:04] [23:33:04]POST finish read [23:33:04]Found Content-Length = 681 [23:33:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 12.350, "sum" : 406.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 406.00, "total" : 406.00, "payments": [ { "type": 0, "sum" : 406.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:33:04]execute_script... [23:33: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)347447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 12.350, "sum" : 406.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 406.00, "total" : 406.00, "payments": [ { "type": 0, "sum" : 406.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:33:04]POST & json_proto [23:33:04]process_json_proto [23:33:04]json parsed OK: [23:33:04]protocol is kg_v1.0 [23:33:04]action value=close_receipt [23:33:04]process_action close_receipt [23:33:04]cmd_close_receipt [23:33:04]MH_GetDate [23:33:04]Write to MH i2c: F0 00 00 D4 6B 2E [23:33:04]Write i2c OK [23:33:04]MH_I2C_Read... [23:33:04]Read from MH i2c: F0 [23:33:04]MH_I2C_Read... [23:33:04]Read from MH i2c: F0 09 00 [23:33:04]MH_I2C_Read... [23:33:04]Read from MH i2c: F0 09 00 D4 6B 00 37 16 1B 66 23 5B 8F 65 77 [23:33:04]GetLastDocTimeStamp 1713051126 [23:33:04]current date 1713051191 [23:33:04]FM_GetShiftState [23:33:04]SAM_PROTO_GetShiftState [23:33:04]wFMCommunicate request_size=4 [23:33:04]MH_SAM_APDU [23:33:04]CAPDU: 80 13 01 00 [23:33:04]Write to MH i2c: E2 08 00 D5 6B 80 13 01 00 00 00 00 00 BD [23:33:04]Write i2c OK [23:33:04]MH_I2C_Read... [23:33:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:04]Read from MH i2c: E2 [23:33:04]MH_I2C_Read... [23:33:04]Read from MH i2c: E2 0E 00 [23:33:04]MH_I2C_Read... [23:33:04]Read from MH i2c: E2 0E 00 D5 6B 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 D6 [23:33:04]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:33:04]wFMCommunicate OK [23:33:04]SAM_PROTO_GetShiftState done [23:33:04]FM_GetShiftState done [23:33:04]opened in 1712967615 [23:33:04]opened+sec_in_day 1713054015 [23:33:04]quantity*price = 40631 [23:33:04]sum+1 = 40633 [23:33:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 406.00 Внесено: 406.00 СДАЧА: 0.00 НСП 1% : 3.60 НДС 12% : 43.15 Наличными: 406.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 285 13.04.2024 23:33 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29078 ФПД: 241286129832828 1/tax-web-control/client/api/v1/ticket?date=20240413T233311&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29078&fm=241286129832828&tin=02508201610067®Number=0000138879044617&sum=40600 [23:33:05]StoreToDocumentArchive [23:33:05]shift 115 fd 29078 [23:33:05]save to /storage/0115/doc_00029078 [23:33:05]save last doc name /storage/0115/doc_00029078 to /storage/kkm_last_doc_name [23:33:05]save OK [23:33:05]Clear old archive folders... [23:33:05]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:33:05]tlvbuf is 011CB4F0 [23:33:05]SAM_PROTO_ClearQueue [23:33:05]wFMCommunicate request_size=4 [23:33:05]MH_SAM_APDU [23:33:05]CAPDU: 80 09 00 00 [23:33:05]Write to MH i2c: E2 08 00 E2 6B 80 09 00 00 00 00 00 00 BF [23:33:05]Write i2c OK [23:33:05]MH_I2C_Read... [23:33:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:33:05]Read from MH i2c: E2 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: E2 03 00 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: E2 03 00 E2 6B 00 90 00 C1 [23:33:05]RAPDU: 90 00 [23:33:05]wFMCommunicate OK [23:33:05]SAM_PROTO_ClearQueue done [23:33:05]KKMCreateOFDPacket [23:33:05]OFDProtocolAddRootSTLVToBuf [23:33:05]FM_MakeSignedData [23:33:05]FM_MakeSignedData [23:33:05]SAM_PROTO_SignData [23:33:05]wFMCommunicate request_size=4 [23:33:05]MH_SAM_APDU [23:33:05]CAPDU: 80 0D 01 02 [23:33:05]Write to MH i2c: E2 08 00 E3 6B 80 0D 01 02 00 00 00 00 C7 [23:33:05]Write i2c OK [23:33:05]MH_I2C_Read... [23:33:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:33:05]Read from MH i2c: E2 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: E2 03 00 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: E2 03 00 E3 6B 00 90 00 C2 [23:33:05]RAPDU: 90 00 [23:33:05]wFMCommunicate OK [23:33:05]wFMCommunicate request_size=255 [23:33:05]MH_SAM_APDU [23:33:05]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 30 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B8 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 10 00 00 00 00 07 04 06 00 98 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 37 16 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 96 71 00 00 35 04 06 00 DB 72 [23:33:05]Write to MH i2c: E2 02 01 E4 6B 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 30 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B8 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 10 00 00 00 00 07 04 06 00 98 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 37 16 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 96 71 00 00 35 04 06 00 DB 72 00 00 BB [23:33:05]Write i2c OK [23:33:05]MH_I2C_Read... [23:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:33:05]Read from MH i2c: E2 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: E2 03 00 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: E2 03 00 E4 6B 00 90 00 C3 [23:33:05]RAPDU: 90 00 [23:33:05]wFMCommunicate OK [23:33:05]wFMCommunicate request_size=9 [23:33:05]MH_SAM_APDU [23:33:05]CAPDU: 80 0D 02 02 04 CE 0E D3 7C [23:33:05]Write to MH i2c: E2 0C 00 E5 6B 80 0D 02 02 04 00 CE 0E D3 7C 00 00 FD [23:33:05]Write i2c OK [23:33:05]MH_I2C_Read... [23:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:33:05]Read from MH i2c: E2 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: E2 03 00 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: E2 03 00 E5 6B 00 90 00 C4 [23:33:05]RAPDU: 90 00 [23:33:05]wFMCommunicate OK [23:33:05]wFMCommunicate request_size=4 [23:33:05]MH_SAM_APDU [23:33:05]CAPDU: 80 0D 03 02 [23:33:05]Write to MH i2c: E2 08 00 E6 6B 80 0D 03 02 00 00 00 00 CC [23:33:05]Write i2c OK [23:33:05]MH_I2C_Read... [23:33:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:33:05]Read from MH i2c: E2 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: E2 0B 00 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: E2 0B 00 E6 6B 00 CC 18 E8 0A 2E A4 E3 38 90 00 90 [23:33:05]RAPDU: CC 18 E8 0A 2E A4 E3 38 90 00 [23:33:05]wFMCommunicate OK [23:33:05]SAM_PROTO_SignData done [23:33:05]FM_MakeSignedData done [23:33:05]CreateOFDProtocolMessage [23:33:05]wFMCommunicate request_size=4 [23:33:05]MH_SAM_APDU [23:33:05]CAPDU: 80 11 00 00 [23:33:05]Write to MH i2c: E2 08 00 E7 6B 80 11 00 00 00 00 00 00 CC [23:33:05]Write i2c OK [23:33:05]MH_I2C_Read... [23:33:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:33:06]Read from MH i2c: E2 [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: E2 17 00 [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: E2 17 00 E7 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1B [23:33:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:33:06]wFMCommunicate OK [23:33:06]CreateOFDProtocolMessage done [23:33:06]OFDSenderStorePacket 29078 [23:33:06]StoreOFDPacket docnum=29078 [23:33:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 51 39 06 01 E3 07 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 30 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B8 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 10 00 00 00 00 07 04 06 00 98 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 37 16 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 96 71 00 00 35 04 06 00 DB 72 CE 0E D3 7C CC 18 E8 0A 2E A4 E3 38 [23:33:06]CheckFolder [23:33:06]dirname=/storage/ofd_packets [23:33:06]CheckFolder done [23:33:06]ProducePacketName [23:33:06]name=ofd_packets/00029078 [23:33:06]NVStorageSaveData ofd_packets/00029078 [23:33:06]File name is /storage/ofd_packets/00029078 [23:33:06]Write 300 bytes [23:33:06]NVStorageSaveData done [23:33:06]OFDSenderStorePacket done [23:33:06]KKMCreateOFDPacket done [23:33:06]NVStorageSaveData kkm_last_timestamp [23:33:06]File name is /storage/kkm_last_timestamp [23:33:06]Write 4 bytes [23:33:06]NVStorageSaveData done [23:33:06]ExternCall_PrintAddStr [23:33:06]wPrintStart [23:33:06]Write to MH i2c: 01 00 00 E8 6B 53 [23:33:06]Write i2c OK [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: 01 [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: 01 07 00 [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: 01 07 00 E8 6B 00 00 00 00 00 FF 0F 68 [23:33:06]RasterBufferAndPrint [23:33:06]line Счет N : (1)347447 [23:33:06]line ИНН: 02508201610067 [23:33:06]line Контрольно-Кассовый Чек [23:33:06]line ПРОДАЖА [23:33:06]line ТРК (МРК, ГНК) : 71 [23:33:06]line Товар: 2711129700 [23:33:06]line ГАЗ-К-5 [23:33:06]line 12.350 * 32.90 [23:33:06]line = 406.32 [23:33:06]line НДС 12% НСП 1% [23:33:06]line > о реализуемом товаре [23:33:06]line ОКРУГЛЕНИЕ: -0.32 [23:33:06]line ИТОГО: 406.00 [23:33:06]line Внесено: 406.00 [23:33:06]line СДАЧА: 0.00 [23:33:06]line НСП 1% : 3.60 [23:33:06]line НДС 12% : 43.15 [23:33:06]line Наличными: 406.00 [23:33:06]line Безнал.: 0.00 [23:33:06]line Место: АЗС № 108 "Партнер Нефть" [23:33:06]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:33:06]line СНО: Общий режим [23:33:06]line Чек 285 13.04.2024 23:33 [23:33:06]line Смена: 115 ФФД: 1.0 [23:33:06]line ЗНМ: 0300000027 [23:33:06]line РНМ: 0000138879044617 [23:33:06]line Версия ККМ: 001 [23:33:06]line ФМ: 0000000000963154 [23:33:06]line ФД: 29078 [23:33:06]line ФПД: 241286129832828 [23:33:06]line 1/tax-web-control/client/api/v1/ticket?date=20240413T233311&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29078&fm=241286129832828&tin=02508201610067®Number=0000138879044617&sum=40600 [23:33:06]OFD Sender: Processing packet 29078 [packets to send 8, broken 7] [23:33:06]ProducePacketName [23:33:06]name=ofd_packets/00029078 [23:33:06]OFD Sender: To server: pG, [23:33:06]CommunicateWithHost lk.salyk.kg:30040 [23:33:06]ConnectInit lk.salyk.kg [23:33:06]written 0, free lines is 4095 [23:33:06]Connected sock=9 [23:33: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 31 35 34 0E 01 00 00 51 39 06 01 E3 07 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3E 30 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B8 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 10 00 00 00 00 07 04 06 00 98 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 37 16 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 96 71 00 00 35 04 06 00 DB 72 CE 0E D3 7C CC 18 E8 0A 2E A4 E3 38 [23:33:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 E5 62 47 00 38 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 31 35 34 10 04 04 00 96 71 00 00 F4 03 04 00 DD C0 1A 66 B6 04 01 00 00 1C 71 1A 4A D6 62 A0 3F [23:33:06]CommunicateWithHost err = 0 [23:33:06]CheckOFDResponse [23:33:06]1017 (14) - 77093643461234 [23:33:06]1041 (16) - 0000000000963154 [23:33:06]1040 (4) - 29078 [23:33:06]1012 (4) - 13.04.2024 17:29 [23:33:06]1206 (1) - 0 [23:33:06]OFD Sender: Remove packet 29078 [23:33:06]ProducePacketName [23:33:06]name=ofd_packets/00029078 [23:33:06]NVStorageDeleteData [23:33:06]Write to MH i2c: 01 00 00 12 6C 7E [23:33:06]Write i2c OK [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: 01 [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: 01 07 00 [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: 01 07 00 12 6C 00 00 00 00 00 BC 0C 4D [23:33:06]RasterBufferAndPrint [23:33:06]line [23:33:06]line [23:33:06]line [23:33:06]line [23:33:06]line [23:33:06]written 0, free lines is 3266 [23:33:06]MH_Cut [23:33:06]Write to MH i2c: D1 01 00 19 6C 01 57 [23:33:06]Write i2c OK [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: D1 [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: D1 01 00 [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: D1 01 00 19 6C 00 56 [23:33:06]Write to MH i2c: 01 00 00 1A 6C 86 [23:33:06]Write i2c OK [23:33:06]MH_I2C_Read... [23:33:07]OFD Sender: No OFD packet to send [23:33:07]*** Cut start [23:33:07]*** Partial cut [23:33:07]*** CUTSNS_PIN = 1 [23:33:07]*** CUTSNS_PIN = 0 [23:33:07]*** Brake cut motor [23:33:08]Read from MH i2c: 01 [23:33:08]MH_I2C_Read... [23:33:08]*** Stop cut motor [23:33:08]*** Cut end [23:33:08]Read from MH i2c: 01 07 00 [23:33:08]MH_I2C_Read... [23:33:08]Read from MH i2c: 01 07 00 1A 6C 00 00 00 00 00 FF 0F 9B [23:33:08]process_action close_receipt done [23:33:08]requested_data is exist [23:33:08]produce_requested_data [23:33:08]requested_item fm.sn is exist - process it [23:33:08]wFMCommunicate request_size=4 [23:33:08]MH_SAM_APDU [23:33:08]CAPDU: 80 11 00 00 [23:33:08]Write to MH i2c: E2 08 00 1B 6C 80 11 00 00 00 00 00 00 01 [23:33:08]Write i2c OK [23:33:08]MH_I2C_Read... [23:33:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:33:08]Read from MH i2c: E2 [23:33:08]MH_I2C_Read... [23:33:08]Read from MH i2c: E2 17 00 [23:33:08]MH_I2C_Read... [23:33:08]Read from MH i2c: E2 17 00 1B 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 50 [23:33:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:33:08]wFMCommunicate OK [23:33:08]requested_item fd.num is exist - process it [23:33:08]SAM_PROTO_GetFieldsCounters [23:33:08]wFMCommunicate request_size=4 [23:33:08]MH_SAM_APDU [23:33:08]CAPDU: 80 13 00 00 [23:33:08]Write to MH i2c: E2 08 00 1C 6C 80 13 00 00 00 00 00 00 04 [23:33:08]Write i2c OK [23:33:08]MH_I2C_Read... [23:33:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:33:08]Read from MH i2c: E2 [23:33:08]MH_I2C_Read... [23:33:08]Read from MH i2c: E2 62 00 [23:33:08]MH_I2C_Read... [23:33:08]Read from MH i2c: E2 62 00 1C 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 96 71 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 16 [23:33: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 96 71 00 00 0E 04 04 00 73 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 [23:33:08]wFMCommunicate OK [23:33:08]SAM_PROTO_GetFieldsCounters done [23:33:08]requested_item shift.num is exist - process it [23:33:08]requested_item shift.opened is exist - process it [23:33:08]req_shift_opened [23:33:08]FM_GetShiftState [23:33:08]SAM_PROTO_GetShiftState [23:33:08]wFMCommunicate request_size=4 [23:33:08]MH_SAM_APDU [23:33:08]CAPDU: 80 13 01 00 [23:33:08]Write to MH i2c: E2 08 00 1D 6C 80 13 01 00 00 00 00 00 06 [23:33:08]Write i2c OK [23:33:08]MH_I2C_Read... [23:33:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:08]Read from MH i2c: E2 [23:33:08]MH_I2C_Read... [23:33:08]Read from MH i2c: E2 0E 00 [23:33:08]MH_I2C_Read... [23:33:08]Read from MH i2c: E2 0E 00 1D 6C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 1F [23:33:08]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:33:08]wFMCommunicate OK [23:33:08]SAM_PROTO_GetShiftState done [23:33:08]FM_GetShiftState done [23:33:08]req_shift_opened done [23:33:08]requested_item shift.open_date is exist - process it [23:33:08]req_shift_open_date [23:33:08]req_shift_open_date done [23:33:08]produce_requested_data done [23:33:08]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29078,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [23:33:08]process_action_free close_receipt [23:33:08]json_value_free [23:33:08]json_value_free done [23:33:08]process_json_proto returns [23:33:08]Send response to host [23:33:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29078,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [23:33:08]free response buf [23:33:08]execute_script done [23:33:08]execute_script returns [23:33:08]free content buf [23:33:08]Sock 10.Close socket [23:33:08]Sock 10.Thread stoped [23:33:12]OFD Sender: No OFD packet to send [23:33:17]OFD Sender: No OFD packet to send [23:33:22]OFD Sender: No OFD packet to send [23:33:27]OFD Sender: No OFD packet to send [23:33:32]OFD Sender: No OFD packet to send [23:33:37]OFD Sender: No OFD packet to send [23:33:42]OFD Sender: No OFD packet to send [23:33:47]OFD Sender: No OFD packet to send [23:33:52]OFD Sender: No OFD packet to send [23:33:57]OFD Sender: No OFD packet to send [23:34:02]OFD Sender: No OFD packet to send [23:34:07]OFD Sender: No OFD packet to send [23:34:12]OFD Sender: No OFD packet to send [23:34:17]OFD Sender: No OFD packet to send [23:34:22]OFD Sender: No OFD packet to send [23:34:27]OFD Sender: No OFD packet to send [23:34:32]OFD Sender: No OFD packet to send [23:34:37]OFD Sender: No OFD packet to send [23:34:42]OFD Sender: No OFD packet to send [23:34:47]OFD Sender: No OFD packet to send [23:34:52]OFD Sender: No OFD packet to send [23:34:57]OFD Sender: No OFD packet to send [23:35:02]OFD Sender: No OFD packet to send [23:35:07]OFD Sender: No OFD packet to send [23:35:12]OFD Sender: No OFD packet to send [23:35:17]OFD Sender: No OFD packet to send [23:35:22]OFD Sender: No OFD packet to send [23:35:27]OFD Sender: No OFD packet to send [23:35:29]accept exits with 7 [23:35:29]New connection [23:35:29]New thread 3066785124 created [23:35:29]Thread 3066928484 joined [23:35:29]Waiting for new connection... [23:35:29] Sock 7.Parse request [23:35:29]Sock 7.Check first char [23:35:29]Sock 7.First char is OK [23:35:29]request: POST /json_proto HTTP/1.0 [23:35:29]Method: POST [23:35:29]URL: /json_proto [23:35:29]Method is POST - this is cgi request [23:35:29]url: /json_proto [23:35:29]query_string will be loaded in cgi processing [23:35:29]execute_cgi json_proto POST (null) [23:35:29]execute_cgi path=json_proto method=POST [23:35:29]POST find Content-Length [23:35:29]Host: 172.17.33.3:8080 [23:35:29]Content-Length: 678 [23:35:29]Content-Type: application/json [23:35:29] [23:35:29]POST finish read [23:35:29]Found Content-Length = 678 [23:35:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.110, "sum" : 650.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:35:29]execute_script... [23:35: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)347449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.110, "sum" : 650.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:35:29]POST & json_proto [23:35:29]process_json_proto [23:35:29]json parsed OK: [23:35:29]protocol is kg_v1.0 [23:35:29]action value=close_receipt [23:35:29]process_action close_receipt [23:35:29]cmd_close_receipt [23:35:29]MH_GetDate [23:35:29]Write to MH i2c: F0 00 00 1E 6C 79 [23:35:29]Write i2c OK [23:35:29]MH_I2C_Read... [23:35:29]Read from MH i2c: F0 [23:35:29]MH_I2C_Read... [23:35:29]Read from MH i2c: F0 09 00 [23:35:29]MH_I2C_Read... [23:35:29]Read from MH i2c: F0 09 00 1E 6C 00 C8 16 1B 66 23 5B 8F 65 53 [23:35:29]GetLastDocTimeStamp 1713051191 [23:35:29]current date 1713051336 [23:35:29]FM_GetShiftState [23:35:29]SAM_PROTO_GetShiftState [23:35:29]wFMCommunicate request_size=4 [23:35:29]MH_SAM_APDU [23:35:29]CAPDU: 80 13 01 00 [23:35:29]Write to MH i2c: E2 08 00 1F 6C 80 13 01 00 00 00 00 00 08 [23:35:29]Write i2c OK [23:35:29]MH_I2C_Read... [23:35:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:35:29]Read from MH i2c: E2 [23:35:29]MH_I2C_Read... [23:35:29]Read from MH i2c: E2 0E 00 [23:35:29]MH_I2C_Read... [23:35:29]Read from MH i2c: E2 0E 00 1F 6C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 21 [23:35:29]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:35:29]wFMCommunicate OK [23:35:29]SAM_PROTO_GetShiftState done [23:35:29]FM_GetShiftState done [23:35:29]opened in 1712967615 [23:35:29]opened+sec_in_day 1713054015 [23:35:29]quantity*price = 65007 [23:35:29]sum+1 = 65008 [23:35:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 286 13.04.2024 23:35 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29079 ФПД: 37635505441889 1/tax-web-control/client/api/v1/ticket?date=20240413T233536&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29079&fm=37635505441889&tin=02508201610067®Number=0000138879044617&sum=65000 [23:35:30]StoreToDocumentArchive [23:35:30]shift 115 fd 29079 [23:35:30]save to /storage/0115/doc_00029079 [23:35:30]save last doc name /storage/0115/doc_00029079 to /storage/kkm_last_doc_name [23:35:30]save OK [23:35:30]Clear old archive folders... [23:35:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:35:30]tlvbuf is 011CB3E0 [23:35:30]SAM_PROTO_ClearQueue [23:35:30]wFMCommunicate request_size=4 [23:35:30]MH_SAM_APDU [23:35:30]CAPDU: 80 09 00 00 [23:35:30]Write to MH i2c: E2 08 00 2C 6C 80 09 00 00 00 00 00 00 0A [23:35:30]Write i2c OK [23:35:30]MH_I2C_Read... [23:35:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:35:30]Read from MH i2c: E2 [23:35:30]MH_I2C_Read... [23:35:30]Read from MH i2c: E2 03 00 [23:35:30]MH_I2C_Read... [23:35:30]Read from MH i2c: E2 03 00 2C 6C 00 90 00 0C [23:35:30]RAPDU: 90 00 [23:35:30]wFMCommunicate OK [23:35:30]SAM_PROTO_ClearQueue done [23:35:30]KKMCreateOFDPacket [23:35:30]OFDProtocolAddRootSTLVToBuf [23:35:30]FM_MakeSignedData [23:35:30]FM_MakeSignedData [23:35:30]SAM_PROTO_SignData [23:35:30]wFMCommunicate request_size=4 [23:35:30]MH_SAM_APDU [23:35:30]CAPDU: 80 0D 01 02 [23:35:30]Write to MH i2c: E2 08 00 2D 6C 80 0D 01 02 00 00 00 00 12 [23:35:30]Write i2c OK [23:35:30]MH_I2C_Read... [23:35:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:35:30]Read from MH i2c: E2 [23:35:30]MH_I2C_Read... [23:35:30]Read from MH i2c: E2 03 00 [23:35:30]MH_I2C_Read... [23:35:30]Read from MH i2c: E2 03 00 2D 6C 00 90 00 0D [23:35:30]RAPDU: 90 00 [23:35:30]wFMCommunicate OK [23:35:30]wFMCommunicate request_size=255 [23:35:30]MH_SAM_APDU [23:35: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 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 C8 16 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 97 71 00 00 35 04 06 00 22 [23:35:30]Write to MH i2c: E2 02 01 2E 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 C8 16 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 97 71 00 00 35 04 06 00 22 00 00 38 [23:35:30]Write i2c OK [23:35:30]MH_I2C_Read... [23:35:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:30]Read from MH i2c: E2 [23:35:30]MH_I2C_Read... [23:35:30]Read from MH i2c: E2 03 00 [23:35:30]MH_I2C_Read... [23:35:30]Read from MH i2c: E2 03 00 2E 6C 00 90 00 0E [23:35:30]RAPDU: 90 00 [23:35:30]wFMCommunicate OK [23:35:30]wFMCommunicate request_size=10 [23:35:30]MH_SAM_APDU [23:35:30]CAPDU: 80 0D 02 02 05 3A B2 EE CC 61 [23:35:30]Write to MH i2c: E2 0D 00 2F 6C 80 0D 02 02 05 00 3A B2 EE CC 61 00 00 26 [23:35:30]Write i2c OK [23:35:30]MH_I2C_Read... [23:35:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:30]Read from MH i2c: E2 [23:35:30]MH_I2C_Read... [23:35:30]Read from MH i2c: E2 03 00 [23:35:30]MH_I2C_Read... [23:35:30]Read from MH i2c: E2 03 00 2F 6C 00 90 00 0F [23:35:30]RAPDU: 90 00 [23:35:30]wFMCommunicate OK [23:35:30]wFMCommunicate request_size=4 [23:35:30]MH_SAM_APDU [23:35:30]CAPDU: 80 0D 03 02 [23:35:30]Write to MH i2c: E2 08 00 30 6C 80 0D 03 02 00 00 00 00 17 [23:35:30]Write i2c OK [23:35:30]MH_I2C_Read... [23:35:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:35:30]Read from MH i2c: E2 [23:35:30]MH_I2C_Read... [23:35:30]Read from MH i2c: E2 0B 00 [23:35:30]MH_I2C_Read... [23:35:30]Read from MH i2c: E2 0B 00 30 6C 00 9E BC 27 0A 55 8D BF D5 90 00 19 [23:35:30]RAPDU: 9E BC 27 0A 55 8D BF D5 90 00 [23:35:30]wFMCommunicate OK [23:35:30]SAM_PROTO_SignData done [23:35:30]FM_MakeSignedData done [23:35:30]CreateOFDProtocolMessage [23:35:30]wFMCommunicate request_size=4 [23:35:30]MH_SAM_APDU [23:35:30]CAPDU: 80 11 00 00 [23:35:30]Write to MH i2c: E2 08 00 31 6C 80 11 00 00 00 00 00 00 17 [23:35:30]Write i2c OK [23:35:30]MH_I2C_Read... [23:35:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:35:30]Read from MH i2c: E2 [23:35:30]MH_I2C_Read... [23:35:30]Read from MH i2c: E2 17 00 [23:35:30]MH_I2C_Read... [23:35:30]Read from MH i2c: E2 17 00 31 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 66 [23:35:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:35:30]wFMCommunicate OK [23:35:30]CreateOFDProtocolMessage done [23:35:30]OFDSenderStorePacket 29079 [23:35:30]StoreOFDPacket docnum=29079 [23:35:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 10 75 07 01 B6 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 C8 16 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 97 71 00 00 35 04 06 00 22 3A B2 EE CC 61 9E BC 27 0A 55 8D BF D5 [23:35:30]CheckFolder [23:35:30]dirname=/storage/ofd_packets [23:35:30]CheckFolder done [23:35:30]ProducePacketName [23:35:30]name=ofd_packets/00029079 [23:35:30]NVStorageSaveData ofd_packets/00029079 [23:35:30]File name is /storage/ofd_packets/00029079 [23:35:30]Write 301 bytes [23:35:30]NVStorageSaveData done [23:35:30]OFDSenderStorePacket done [23:35:30]KKMCreateOFDPacket done [23:35:30]NVStorageSaveData kkm_last_timestamp [23:35:30]File name is /storage/kkm_last_timestamp [23:35:30]Write 4 bytes [23:35:30]NVStorageSaveData done [23:35:30]ExternCall_PrintAddStr [23:35:30]wPrintStart [23:35:30]Write to MH i2c: 01 00 00 32 6C 9E [23:35:30]Write i2c OK [23:35:30]MH_I2C_Read... [23:35:30]Read from MH i2c: 01 [23:35:30]MH_I2C_Read... [23:35:30]Read from MH i2c: 01 07 00 [23:35:30]MH_I2C_Read... [23:35:30]Read from MH i2c: 01 07 00 32 6C 00 00 00 00 00 FF 0F B3 [23:35:30]RasterBufferAndPrint [23:35:30]line Счет N : (1)347449 [23:35:30]line ИНН: 02508201610067 [23:35:30]line Контрольно-Кассовый Чек [23:35:30]line ПРОДАЖА [23:35:30]line ТРК (МРК, ГНК) : 23 [23:35:30]line Товар: 2710124130 [23:35:30]line Аи-92-К-5 [23:35:30]line 10.110 * 64.30 [23:35:30]line = 650.07 [23:35:30]line НДС 12% НСП 1% [23:35:30]line > о реализуемом товаре [23:35:30]line ОКРУГЛЕНИЕ: -0.07 [23:35:30]line ИТОГО: 650.00 [23:35:30]line Внесено: 650.00 [23:35:30]line СДАЧА: 0.00 [23:35:30]line НСП 1% : 5.75 [23:35:30]line НДС 12% : 69.03 [23:35:30]line Наличными: 650.00 [23:35:30]line Безнал.: 0.00 [23:35:30]line Место: АЗС № 108 "Партнер Нефть" [23:35:30]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:35:30]line СНО: Общий режим [23:35:30]line Чек 286 13.04.2024 23:35 [23:35:30]line Смена: 115 ФФД: 1.0 [23:35:30]line ЗНМ: 0300000027 [23:35:30]line РНМ: 0000138879044617 [23:35:30]line Версия ККМ: 001 [23:35:30]line ФМ: 0000000000963154 [23:35:30]line ФД: 29079 [23:35:30]line ФПД: 37635505441889 [23:35:31]line 1/tax-web-control/client/api/v1/ticket?date=20240413T233536&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29079&fm=37635505441889&tin=02508201610067®Number=0000138879044617&sum=65000 [23:35:31]OFD Sender: Processing packet 29079 [packets to send 8, broken 7] [23:35:31]ProducePacketName [23:35:31]name=ofd_packets/00029079 [23:35:31]OFD Sender: To server: pG, [23:35:31]CommunicateWithHost lk.salyk.kg:30040 [23:35:31]ConnectInit lk.salyk.kg [23:35:31]written 0, free lines is 4095 [23:35:31]Connected sock=9 [23:35: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 31 35 34 0F 01 00 00 10 75 07 01 B6 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 C8 16 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 97 71 00 00 35 04 06 00 22 3A B2 EE CC 61 9E BC 27 0A 55 8D BF D5 [23:35:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 C9 EE 47 00 3B 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 31 35 34 10 04 04 00 97 71 00 00 F4 03 04 00 6E C1 1A 66 B6 04 01 00 00 87 E8 27 C6 9C EA D8 1F [23:35:31]CommunicateWithHost err = 0 [23:35:31]CheckOFDResponse [23:35:31]1017 (14) - 77093643461234 [23:35:31]1041 (16) - 0000000000963154 [23:35:31]1040 (4) - 29079 [23:35:31]1012 (4) - 13.04.2024 17:31 [23:35:31]1206 (1) - 0 [23:35:31]OFD Sender: Remove packet 29079 [23:35:31]ProducePacketName [23:35:31]name=ofd_packets/00029079 [23:35:31]NVStorageDeleteData [23:35:31]Write to MH i2c: 01 00 00 5C 6C C8 [23:35:31]Write i2c OK [23:35:31]MH_I2C_Read... [23:35:31]Read from MH i2c: 01 [23:35:31]MH_I2C_Read... [23:35:31]Read from MH i2c: 01 07 00 [23:35:31]MH_I2C_Read... [23:35:31]Read from MH i2c: 01 07 00 5C 6C 00 00 00 00 00 CD 0C A8 [23:35:31]RasterBufferAndPrint [23:35:31]line [23:35:31]line [23:35:31]line [23:35:31]line [23:35:31]line [23:35:31]written 0, free lines is 3283 [23:35:31]MH_Cut [23:35:31]Write to MH i2c: D1 01 00 63 6C 01 A1 [23:35:31]Write i2c OK [23:35:31]MH_I2C_Read... [23:35:31]Read from MH i2c: D1 [23:35:31]MH_I2C_Read... [23:35:31]Read from MH i2c: D1 01 00 [23:35:31]MH_I2C_Read... [23:35:31]Read from MH i2c: D1 01 00 63 6C 00 A0 [23:35:31]Write to MH i2c: 01 00 00 64 6C D0 [23:35:31]Write i2c OK [23:35:31]MH_I2C_Read... [23:35:32]OFD Sender: No OFD packet to send [23:35:32]*** Cut start [23:35:32]*** Partial cut [23:35:32]*** CUTSNS_PIN = 1 [23:35:32]*** CUTSNS_PIN = 0 [23:35:32]*** Brake cut motor [23:35:33]Read from MH i2c: 01 [23:35:33]MH_I2C_Read... [23:35:33]*** Stop cut motor [23:35:33]*** Cut end [23:35:33]Read from MH i2c: 01 07 00 [23:35:33]MH_I2C_Read... [23:35:33]Read from MH i2c: 01 07 00 64 6C 00 00 00 00 00 FF 0F E5 [23:35:33]process_action close_receipt done [23:35:33]requested_data is exist [23:35:33]produce_requested_data [23:35:33]requested_item fm.sn is exist - process it [23:35:33]wFMCommunicate request_size=4 [23:35:33]MH_SAM_APDU [23:35:33]CAPDU: 80 11 00 00 [23:35:33]Write to MH i2c: E2 08 00 65 6C 80 11 00 00 00 00 00 00 4B [23:35:33]Write i2c OK [23:35:33]MH_I2C_Read... [23:35:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:35:33]Read from MH i2c: E2 [23:35:33]MH_I2C_Read... [23:35:33]Read from MH i2c: E2 17 00 [23:35:33]MH_I2C_Read... [23:35:33]Read from MH i2c: E2 17 00 65 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9A [23:35:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:35:33]wFMCommunicate OK [23:35:33]requested_item fd.num is exist - process it [23:35:33]SAM_PROTO_GetFieldsCounters [23:35:33]wFMCommunicate request_size=4 [23:35:33]MH_SAM_APDU [23:35:33]CAPDU: 80 13 00 00 [23:35:33]Write to MH i2c: E2 08 00 66 6C 80 13 00 00 00 00 00 00 4E [23:35:33]Write i2c OK [23:35:33]MH_I2C_Read... [23:35:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:35:33]Read from MH i2c: E2 [23:35:33]MH_I2C_Read... [23:35:33]Read from MH i2c: E2 62 00 [23:35:33]MH_I2C_Read... [23:35:33]Read from MH i2c: E2 62 00 66 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 97 71 00 00 0E 04 04 00 73 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 64 [23:35: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 97 71 00 00 0E 04 04 00 73 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 [23:35:33]wFMCommunicate OK [23:35:33]SAM_PROTO_GetFieldsCounters done [23:35:33]requested_item shift.num is exist - process it [23:35:33]requested_item shift.opened is exist - process it [23:35:33]req_shift_opened [23:35:33]FM_GetShiftState [23:35:33]SAM_PROTO_GetShiftState [23:35:33]wFMCommunicate request_size=4 [23:35:33]MH_SAM_APDU [23:35:33]CAPDU: 80 13 01 00 [23:35:33]Write to MH i2c: E2 08 00 67 6C 80 13 01 00 00 00 00 00 50 [23:35:33]Write i2c OK [23:35:33]MH_I2C_Read... [23:35:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:35:33]Read from MH i2c: E2 [23:35:33]MH_I2C_Read... [23:35:33]Read from MH i2c: E2 0E 00 [23:35:33]MH_I2C_Read... [23:35:33]Read from MH i2c: E2 0E 00 67 6C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 69 [23:35:33]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:35:33]wFMCommunicate OK [23:35:33]SAM_PROTO_GetShiftState done [23:35:33]FM_GetShiftState done [23:35:33]req_shift_opened done [23:35:33]requested_item shift.open_date is exist - process it [23:35:33]req_shift_open_date [23:35:33]req_shift_open_date done [23:35:33]produce_requested_data done [23:35:33]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29079,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [23:35:33]process_action_free close_receipt [23:35:33]json_value_free [23:35:33]json_value_free done [23:35:33]process_json_proto returns [23:35:33]Send response to host [23:35:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29079,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [23:35:33]free response buf [23:35:33]execute_script done [23:35:33]execute_script returns [23:35:33]free content buf [23:35:33]Sock 7.Close socket [23:35:33]Sock 7.Thread stoped [23:35:35]accept exits with 10 [23:35:35]New connection [23:35:35]New thread 3066928484 created [23:35:35]Thread 3066785124 joined [23:35:35]Waiting for new connection... [23:35:35] Sock 10.Parse request [23:35:35]Sock 10.Check first char [23:35:35]Sock 10.First char is OK [23:35:35]request: POST /json_proto HTTP/1.0 [23:35:35]Method: POST [23:35:35]URL: /json_proto [23:35:35]Method is POST - this is cgi request [23:35:35]url: /json_proto [23:35:35]query_string will be loaded in cgi processing [23:35:35]execute_cgi json_proto POST (null) [23:35:35]execute_cgi path=json_proto method=POST [23:35:35]POST find Content-Length [23:35:35]Host: 172.17.33.3:8080 [23:35:35]Content-Length: 685 [23:35:35]Content-Type: application/json [23:35:35] [23:35:35]POST finish read [23:35:35]Found Content-Length = 685 [23:35:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:35:35]execute_script... [23:35: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)347448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:35:35]POST & json_proto [23:35:35]process_json_proto [23:35:35]json parsed OK: [23:35:35]protocol is kg_v1.0 [23:35:35]action value=close_receipt [23:35:35]process_action close_receipt [23:35:35]cmd_close_receipt [23:35:35]MH_GetDate [23:35:35]Write to MH i2c: F0 00 00 68 6C C3 [23:35:35]Write i2c OK [23:35:35]MH_I2C_Read... [23:35:35]Read from MH i2c: F0 [23:35:35]MH_I2C_Read... [23:35:35]Read from MH i2c: F0 09 00 [23:35:35]MH_I2C_Read... [23:35:35]Read from MH i2c: F0 09 00 68 6C 00 CE 16 1B 66 23 5B 8F 65 A3 [23:35:35]GetLastDocTimeStamp 1713051336 [23:35:35]current date 1713051342 [23:35:35]FM_GetShiftState [23:35:35]SAM_PROTO_GetShiftState [23:35:35]wFMCommunicate request_size=4 [23:35:35]MH_SAM_APDU [23:35:35]CAPDU: 80 13 01 00 [23:35:35]Write to MH i2c: E2 08 00 69 6C 80 13 01 00 00 00 00 00 52 [23:35:35]Write i2c OK [23:35:35]MH_I2C_Read... [23:35:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:35:35]Read from MH i2c: E2 [23:35:35]MH_I2C_Read... [23:35:35]Read from MH i2c: E2 0E 00 [23:35:35]MH_I2C_Read... [23:35:35]Read from MH i2c: E2 0E 00 69 6C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 6B [23:35:35]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:35:35]wFMCommunicate OK [23:35:35]SAM_PROTO_GetShiftState done [23:35:35]FM_GetShiftState done [23:35:35]opened in 1712967615 [23:35:35]opened+sec_in_day 1713054015 [23:35:35]quantity*price = 100016 [23:35:35]sum+1 = 100017 [23:35:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 287 13.04.2024 23:35 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29080 ФПД: 235022905125531 1/tax-web-control/client/api/v1/ticket?date=20240413T233542&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29080&fm=235022905125531&tin=02508201610067®Number=0000138879044617&sum=100000 [23:35:36]StoreToDocumentArchive [23:35:36]shift 115 fd 29080 [23:35:36]save to /storage/0115/doc_00029080 [23:35:36]save last doc name /storage/0115/doc_00029080 to /storage/kkm_last_doc_name [23:35:36]save OK [23:35:36]Clear old archive folders... [23:35:36]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:35:36]tlvbuf is 01214740 [23:35:36]SAM_PROTO_ClearQueue [23:35:36]wFMCommunicate request_size=4 [23:35:36]MH_SAM_APDU [23:35:36]CAPDU: 80 09 00 00 [23:35:36]Write to MH i2c: E2 08 00 76 6C 80 09 00 00 00 00 00 00 54 [23:35:36]Write i2c OK [23:35:36]MH_I2C_Read... [23:35:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:35:37]Read from MH i2c: E2 [23:35:37]MH_I2C_Read... [23:35:37]Read from MH i2c: E2 03 00 [23:35:37]MH_I2C_Read... [23:35:37]Read from MH i2c: E2 03 00 76 6C 00 90 00 56 [23:35:37]RAPDU: 90 00 [23:35:37]wFMCommunicate OK [23:35:37]SAM_PROTO_ClearQueue done [23:35:37]KKMCreateOFDPacket [23:35:37]OFDProtocolAddRootSTLVToBuf [23:35:37]FM_MakeSignedData [23:35:37]FM_MakeSignedData [23:35:37]SAM_PROTO_SignData [23:35:37]wFMCommunicate request_size=4 [23:35:37]MH_SAM_APDU [23:35:37]CAPDU: 80 0D 01 02 [23:35:37]Write to MH i2c: E2 08 00 77 6C 80 0D 01 02 00 00 00 00 5C [23:35:37]Write i2c OK [23:35:37]MH_I2C_Read... [23:35:37]OFD Sender: No OFD packet to send [23:35:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:35:37]Read from MH i2c: E2 [23:35:37]MH_I2C_Read... [23:35:37]Read from MH i2c: E2 03 00 [23:35:37]MH_I2C_Read... [23:35:37]Read from MH i2c: E2 03 00 77 6C 00 90 00 57 [23:35:37]RAPDU: 90 00 [23:35:37]wFMCommunicate OK [23:35:37]wFMCommunicate request_size=255 [23:35:37]MH_SAM_APDU [23:35:37]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 CE 16 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 71 00 00 35 04 06 00 D5 C0 [23:35:37]Write to MH i2c: E2 02 01 78 6C 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 CE 16 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 71 00 00 35 04 06 00 D5 C0 00 00 88 [23:35:37]Write i2c OK [23:35:37]MH_I2C_Read... [23:35:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:37]Read from MH i2c: E2 [23:35:37]MH_I2C_Read... [23:35:37]Read from MH i2c: E2 03 00 [23:35:37]MH_I2C_Read... [23:35:37]Read from MH i2c: E2 03 00 78 6C 00 90 00 58 [23:35:37]RAPDU: 90 00 [23:35:37]wFMCommunicate OK [23:35:37]wFMCommunicate request_size=9 [23:35:37]MH_SAM_APDU [23:35:37]CAPDU: 80 0D 02 02 04 88 C6 2A 9B [23:35:37]Write to MH i2c: E2 0C 00 79 6C 80 0D 02 02 04 00 88 C6 2A 9B 00 00 7A [23:35:37]Write i2c OK [23:35:37]MH_I2C_Read... [23:35:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:37]Read from MH i2c: E2 [23:35:37]MH_I2C_Read... [23:35:37]Read from MH i2c: E2 03 00 [23:35:37]MH_I2C_Read... [23:35:37]Read from MH i2c: E2 03 00 79 6C 00 90 00 59 [23:35:37]RAPDU: 90 00 [23:35:37]wFMCommunicate OK [23:35:37]wFMCommunicate request_size=4 [23:35:37]MH_SAM_APDU [23:35:37]CAPDU: 80 0D 03 02 [23:35:37]Write to MH i2c: E2 08 00 7A 6C 80 0D 03 02 00 00 00 00 61 [23:35:37]Write i2c OK [23:35:37]MH_I2C_Read... [23:35:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:35:37]Read from MH i2c: E2 [23:35:37]MH_I2C_Read... [23:35:37]Read from MH i2c: E2 0B 00 [23:35:37]MH_I2C_Read... [23:35:37]Read from MH i2c: E2 0B 00 7A 6C 00 95 2C A3 73 9A 0C 4B 42 90 00 6C [23:35:37]RAPDU: 95 2C A3 73 9A 0C 4B 42 90 00 [23:35:37]wFMCommunicate OK [23:35:37]SAM_PROTO_SignData done [23:35:37]FM_MakeSignedData done [23:35:37]CreateOFDProtocolMessage [23:35:37]wFMCommunicate request_size=4 [23:35:37]MH_SAM_APDU [23:35:37]CAPDU: 80 11 00 00 [23:35:37]Write to MH i2c: E2 08 00 7B 6C 80 11 00 00 00 00 00 00 61 [23:35:37]Write i2c OK [23:35:37]MH_I2C_Read... [23:35:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:35:37]Read from MH i2c: E2 [23:35:37]MH_I2C_Read... [23:35:37]Read from MH i2c: E2 17 00 [23:35:37]MH_I2C_Read... [23:35:37]Read from MH i2c: E2 17 00 7B 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B0 [23:35:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:35:37]wFMCommunicate OK [23:35:37]CreateOFDProtocolMessage done [23:35:37]OFDSenderStorePacket 29080 [23:35:37]StoreOFDPacket docnum=29080 [23:35:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 0D EB 06 01 F6 9E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 CE 16 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 71 00 00 35 04 06 00 D5 C0 88 C6 2A 9B 95 2C A3 73 9A 0C 4B 42 [23:35:37]CheckFolder [23:35:37]dirname=/storage/ofd_packets [23:35:37]CheckFolder done [23:35:37]ProducePacketName [23:35:37]name=ofd_packets/00029080 [23:35:37]NVStorageSaveData ofd_packets/00029080 [23:35:37]File name is /storage/ofd_packets/00029080 [23:35:37]Write 300 bytes [23:35:37]NVStorageSaveData done [23:35:37]OFDSenderStorePacket done [23:35:37]KKMCreateOFDPacket done [23:35:37]NVStorageSaveData kkm_last_timestamp [23:35:37]File name is /storage/kkm_last_timestamp [23:35:37]Write 4 bytes [23:35:37]NVStorageSaveData done [23:35:37]ExternCall_PrintAddStr [23:35:37]wPrintStart [23:35:37]Write to MH i2c: 01 00 00 7C 6C E8 [23:35:37]Write i2c OK [23:35:37]MH_I2C_Read... [23:35:37]Read from MH i2c: 01 [23:35:37]MH_I2C_Read... [23:35:37]Read from MH i2c: 01 07 00 [23:35:37]MH_I2C_Read... [23:35:37]Read from MH i2c: 01 07 00 7C 6C 00 00 00 00 00 FF 0F FD [23:35:37]RasterBufferAndPrint [23:35:37]line Счет N : (1)347448 [23:35:37]line ИНН: 02508201610067 [23:35:37]line Контрольно-Кассовый Чек [23:35:37]line ПРОДАЖА [23:35:37]line ТРК (МРК, ГНК) : 71 [23:35:37]line Товар: 2711129700 [23:35:37]line ГАЗ-К-5 [23:35:37]line 30.400 * 32.90 [23:35:37]line = 1000.16 [23:35:37]line НДС 12% НСП 1% [23:35:37]line > о реализуемом товаре [23:35:37]line ОКРУГЛЕНИЕ: -0.16 [23:35:37]line ИТОГО: 1000.00 [23:35:37]line Внесено: 1000.00 [23:35:37]line СДАЧА: 0.00 [23:35:37]line НСП 1% : 8.85 [23:35:37]line НДС 12% : 106.21 [23:35:37]line Наличными: 1000.00 [23:35:37]line Безнал.: 0.00 [23:35:37]line Место: АЗС № 108 "Партнер Нефть" [23:35:37]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:35:37]line СНО: Общий режим [23:35:37]line Чек 287 13.04.2024 23:35 [23:35:37]line Смена: 115 ФФД: 1.0 [23:35:37]line ЗНМ: 0300000027 [23:35:37]line РНМ: 0000138879044617 [23:35:37]line Версия ККМ: 001 [23:35:37]line ФМ: 0000000000963154 [23:35:37]line ФД: 29080 [23:35:37]line ФПД: 235022905125531 [23:35:37]line 1/tax-web-control/client/api/v1/ticket?date=20240413T233542&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29080&fm=235022905125531&tin=02508201610067®Number=0000138879044617&sum=100000 [23:35:37]written 0, free lines is 4095 [23:35:37]OFD Sender: Processing packet 29080 [packets to send 8, broken 7] [23:35:37]ProducePacketName [23:35:37]name=ofd_packets/00029080 [23:35:37]OFD Sender: To server: pG, [23:35:37]CommunicateWithHost lk.salyk.kg:30040 [23:35:37]ConnectInit lk.salyk.kg [23:35:37]Connected sock=9 [23:35: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 31 35 34 0E 01 00 00 0D EB 06 01 F6 9E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 CE 16 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 71 00 00 35 04 06 00 D5 C0 88 C6 2A 9B 95 2C A3 73 9A 0C 4B 42 [23:35:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 9C B7 47 00 E2 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 98 71 00 00 F4 03 04 00 74 C1 1A 66 B6 04 01 00 00 A9 8F 5A 01 E0 42 00 D0 [23:35:37]CommunicateWithHost err = 0 [23:35:37]CheckOFDResponse [23:35:37]1017 (14) - 77093643461234 [23:35:37]1041 (16) - 0000000000963154 [23:35:37]1040 (4) - 29080 [23:35:37]1012 (4) - 13.04.2024 17:31 [23:35:37]1206 (1) - 0 [23:35:37]OFD Sender: Remove packet 29080 [23:35:37]ProducePacketName [23:35:37]name=ofd_packets/00029080 [23:35:37]NVStorageDeleteData [23:35:38]Write to MH i2c: 01 00 00 A6 6C 12 [23:35:38]Write i2c OK [23:35:38]MH_I2C_Read... [23:35:38]Read from MH i2c: 01 [23:35:38]MH_I2C_Read... [23:35:38]Read from MH i2c: 01 07 00 [23:35:38]MH_I2C_Read... [23:35:38]Read from MH i2c: 01 07 00 A6 6C 00 00 00 00 00 C2 0C E7 [23:35:38]RasterBufferAndPrint [23:35:38]line [23:35:38]line [23:35:38]line [23:35:38]line [23:35:38]line [23:35:38]written 0, free lines is 3278 [23:35:38]MH_Cut [23:35:38]Write to MH i2c: D1 01 00 AD 6C 01 EB [23:35:38]Write i2c OK [23:35:38]MH_I2C_Read... [23:35:38]Read from MH i2c: D1 [23:35:38]MH_I2C_Read... [23:35:38]Read from MH i2c: D1 01 00 [23:35:38]MH_I2C_Read... [23:35:38]Read from MH i2c: D1 01 00 AD 6C 00 EA [23:35:38]Write to MH i2c: 01 00 00 AE 6C 1A [23:35:38]Write i2c OK [23:35:38]MH_I2C_Read... [23:35:38]OFD Sender: No OFD packet to send [23:35:38]*** Cut start [23:35:38]*** Partial cut [23:35:38]*** CUTSNS_PIN = 1 [23:35:38]*** CUTSNS_PIN = 0 [23:35:39]*** Brake cut motor [23:35:39]Read from MH i2c: 01 [23:35:39]MH_I2C_Read... [23:35:39]*** Stop cut motor [23:35:39]*** Cut end [23:35:39]Read from MH i2c: 01 07 00 [23:35:39]MH_I2C_Read... [23:35:39]Read from MH i2c: 01 07 00 AE 6C 00 00 00 00 00 FF 0F 2F [23:35:39]process_action close_receipt done [23:35:39]requested_data is exist [23:35:39]produce_requested_data [23:35:39]requested_item fm.sn is exist - process it [23:35:39]wFMCommunicate request_size=4 [23:35:39]MH_SAM_APDU [23:35:39]CAPDU: 80 11 00 00 [23:35:39]Write to MH i2c: E2 08 00 AF 6C 80 11 00 00 00 00 00 00 95 [23:35:39]Write i2c OK [23:35:39]MH_I2C_Read... [23:35:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:35:39]Read from MH i2c: E2 [23:35:39]MH_I2C_Read... [23:35:39]Read from MH i2c: E2 17 00 [23:35:39]MH_I2C_Read... [23:35:39]Read from MH i2c: E2 17 00 AF 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E4 [23:35:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:35:39]wFMCommunicate OK [23:35:39]requested_item fd.num is exist - process it [23:35:39]SAM_PROTO_GetFieldsCounters [23:35:39]wFMCommunicate request_size=4 [23:35:39]MH_SAM_APDU [23:35:39]CAPDU: 80 13 00 00 [23:35:39]Write to MH i2c: E2 08 00 B0 6C 80 13 00 00 00 00 00 00 98 [23:35:39]Write i2c OK [23:35:39]MH_I2C_Read... [23:35:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:35:39]Read from MH i2c: E2 [23:35:39]MH_I2C_Read... [23:35:39]Read from MH i2c: E2 62 00 [23:35:39]MH_I2C_Read... [23:35:39]Read from MH i2c: E2 62 00 B0 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 98 71 00 00 0E 04 04 00 73 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 B2 [23:35:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 98 71 00 00 0E 04 04 00 73 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 [23:35:39]wFMCommunicate OK [23:35:39]SAM_PROTO_GetFieldsCounters done [23:35:39]requested_item shift.num is exist - process it [23:35:39]requested_item shift.opened is exist - process it [23:35:39]req_shift_opened [23:35:39]FM_GetShiftState [23:35:39]SAM_PROTO_GetShiftState [23:35:39]wFMCommunicate request_size=4 [23:35:39]MH_SAM_APDU [23:35:39]CAPDU: 80 13 01 00 [23:35:39]Write to MH i2c: E2 08 00 B1 6C 80 13 01 00 00 00 00 00 9A [23:35:39]Write i2c OK [23:35:39]MH_I2C_Read... [23:35:39]Read from MH i2c: E2 [23:35:39]MH_I2C_Read... [23:35:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:35:39]Read from MH i2c: E2 0E 00 [23:35:39]MH_I2C_Read... [23:35:39]Read from MH i2c: E2 0E 00 B1 6C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 B3 [23:35:39]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:35:39]wFMCommunicate OK [23:35:39]SAM_PROTO_GetShiftState done [23:35:39]FM_GetShiftState done [23:35:39]req_shift_opened done [23:35:39]requested_item shift.open_date is exist - process it [23:35:39]req_shift_open_date [23:35:39]req_shift_open_date done [23:35:39]produce_requested_data done [23:35:39]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29080,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [23:35:39]process_action_free close_receipt [23:35:39]json_value_free [23:35:39]json_value_free done [23:35:39]process_json_proto returns [23:35:39]Send response to host [23:35:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29080,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [23:35:39]free response buf [23:35:39]execute_script done [23:35:39]execute_script returns [23:35:39]free content buf [23:35:39]Sock 10.Close socket [23:35:39]Sock 10.Thread stoped [23:35:43]OFD Sender: No OFD packet to send [23:35:48]OFD Sender: No OFD packet to send [23:35:53]OFD Sender: No OFD packet to send [23:35:58]OFD Sender: No OFD packet to send [23:36:03]OFD Sender: No OFD packet to send [23:36:08]OFD Sender: No OFD packet to send [23:36:13]OFD Sender: No OFD packet to send [23:36:18]OFD Sender: No OFD packet to send [23:36:23]OFD Sender: No OFD packet to send [23:36:28]OFD Sender: No OFD packet to send [23:36:33]OFD Sender: No OFD packet to send [23:36:38]OFD Sender: No OFD packet to send [23:36:43]OFD Sender: No OFD packet to send [23:36:48]OFD Sender: No OFD packet to send [23:36:53]OFD Sender: No OFD packet to send [23:36:58]OFD Sender: No OFD packet to send [23:37:03]OFD Sender: No OFD packet to send [23:37:08]OFD Sender: No OFD packet to send [23:37:13]OFD Sender: No OFD packet to send [23:37:18]OFD Sender: No OFD packet to send [23:37:23]OFD Sender: No OFD packet to send [23:37:28]OFD Sender: No OFD packet to send [23:37:33]OFD Sender: No OFD packet to send [23:37:38]OFD Sender: No OFD packet to send [23:37:43]OFD Sender: No OFD packet to send [23:37:48]OFD Sender: No OFD packet to send [23:37:53]OFD Sender: No OFD packet to send [23:37:58]OFD Sender: No OFD packet to send [23:38:03]OFD Sender: No OFD packet to send [23:38:08]OFD Sender: No OFD packet to send [23:38:13]OFD Sender: No OFD packet to send [23:38:18]OFD Sender: No OFD packet to send [23:38:23]OFD Sender: No OFD packet to send [23:38:28]OFD Sender: No OFD packet to send [23:38:33]OFD Sender: No OFD packet to send [23:38:38]OFD Sender: No OFD packet to send [23:38:43]OFD Sender: No OFD packet to send [23:38:48]OFD Sender: No OFD packet to send [23:38:53]OFD Sender: No OFD packet to send [23:38:58]OFD Sender: No OFD packet to send [23:39:03]OFD Sender: No OFD packet to send [23:39:08]OFD Sender: No OFD packet to send [23:39:13]OFD Sender: No OFD packet to send [23:39:18]OFD Sender: No OFD packet to send [23:39:23]OFD Sender: No OFD packet to send [23:39:28]OFD Sender: No OFD packet to send [23:39:33]OFD Sender: No OFD packet to send [23:39:38]OFD Sender: No OFD packet to send [23:39:43]OFD Sender: No OFD packet to send [23:39:48]OFD Sender: No OFD packet to send [23:39:53]OFD Sender: No OFD packet to send [23:39:58]OFD Sender: No OFD packet to send [23:40:03]OFD Sender: No OFD packet to send [23:40:08]OFD Sender: No OFD packet to send [23:40:13]OFD Sender: No OFD packet to send [23:40:18]OFD Sender: No OFD packet to send [23:40:23]OFD Sender: No OFD packet to send [23:40:28]OFD Sender: No OFD packet to send [23:40:33]OFD Sender: No OFD packet to send [23:40:38]OFD Sender: No OFD packet to send [23:40:43]OFD Sender: No OFD packet to send [23:40:48]OFD Sender: No OFD packet to send [23:40:53]OFD Sender: No OFD packet to send [23:40:58]OFD Sender: No OFD packet to send [23:41:03]OFD Sender: No OFD packet to send [23:41:08]OFD Sender: No OFD packet to send [23:41:13]OFD Sender: No OFD packet to send [23:41:18]OFD Sender: No OFD packet to send [23:41:23]OFD Sender: No OFD packet to send [23:41:28]OFD Sender: No OFD packet to send [23:41:33]OFD Sender: No OFD packet to send [23:41:38]OFD Sender: No OFD packet to send [23:41:43]OFD Sender: No OFD packet to send [23:41:48]OFD Sender: No OFD packet to send [23:41:53]OFD Sender: No OFD packet to send [23:41:58]OFD Sender: No OFD packet to send [23:42:03]OFD Sender: No OFD packet to send [23:42:08]OFD Sender: No OFD packet to send [23:42:13]OFD Sender: No OFD packet to send [23:42:18]OFD Sender: No OFD packet to send [23:42:23]accept exits with 7 [23:42:23]New connection [23:42:23]New thread 3066785124 created [23:42:23]Thread 3066928484 joined [23:42:23]Waiting for new connection... [23:42:23] Sock 7.Parse request [23:42:23]Sock 7.Check first char [23:42:23]Sock 7.First char is OK [23:42:23]request: POST /json_proto HTTP/1.0 [23:42:23]Method: POST [23:42:23]URL: /json_proto [23:42:23]Method is POST - this is cgi request [23:42:23]url: /json_proto [23:42:23]query_string will be loaded in cgi processing [23:42:23]execute_cgi json_proto POST (null) [23:42:23]execute_cgi path=json_proto method=POST [23:42:23]POST find Content-Length [23:42:23]Host: 172.17.33.3:8080 [23:42:23]Content-Length: 677 [23:42:23]Content-Type: application/json [23:42:23] [23:42:23]POST finish read [23:42:23]Found Content-Length = 677 [23:42:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.230, "sum" : 400.59, "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" ] } } [23:42:23]execute_script... [23: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)347450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.230, "sum" : 400.59, "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" ] } } [23:42:23]POST & json_proto [23:42:23]process_json_proto [23:42:23]json parsed OK: [23:42:23]protocol is kg_v1.0 [23:42:23]action value=close_receipt [23:42:23]process_action close_receipt [23:42:23]cmd_close_receipt [23:42:23]MH_GetDate [23:42:23]Write to MH i2c: F0 00 00 B2 6C 0D [23:42:23]Write i2c OK [23:42:23]MH_I2C_Read... [23:42:23]Read from MH i2c: F0 [23:42:23]MH_I2C_Read... [23:42:23]Read from MH i2c: F0 09 00 [23:42:23]MH_I2C_Read... [23:42:23]Read from MH i2c: F0 09 00 B2 6C 00 66 18 1B 66 23 5B 8F 65 87 [23:42:23]GetLastDocTimeStamp 1713051342 [23:42:23]current date 1713051750 [23:42:23]FM_GetShiftState [23:42:23]SAM_PROTO_GetShiftState [23:42:23]wFMCommunicate request_size=4 [23:42:23]MH_SAM_APDU [23:42:23]CAPDU: 80 13 01 00 [23:42:23]Write to MH i2c: E2 08 00 B3 6C 80 13 01 00 00 00 00 00 9C [23:42:23]Write i2c OK [23:42:23]MH_I2C_Read... [23:42:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:23]Read from MH i2c: E2 [23:42:23]MH_I2C_Read... [23:42:23]Read from MH i2c: E2 0E 00 [23:42:23]MH_I2C_Read... [23:42:23]Read from MH i2c: E2 0E 00 B3 6C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 B5 [23:42:23]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:42:23]wFMCommunicate OK [23:42:23]SAM_PROTO_GetShiftState done [23:42:23]FM_GetShiftState done [23:42:23]opened in 1712967615 [23:42:23]opened+sec_in_day 1713054015 [23:42:23]quantity*price = 40058 [23:42:23]sum+1 = 40060 [23:42:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 288 13.04.2024 23:42 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29081 ФПД: 179504920458782 1/tax-web-control/client/api/v1/ticket?date=20240413T234230&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29081&fm=179504920458782&tin=02508201610067®Number=0000138879044617&sum=40000 [23:42:24]StoreToDocumentArchive [23:42:24]shift 115 fd 29081 [23:42:24]save to /storage/0115/doc_00029081 [23:42:24]save last doc name /storage/0115/doc_00029081 to /storage/kkm_last_doc_name [23:42:24]save OK [23:42:24]Clear old archive folders... [23:42:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:42:24]tlvbuf is 011D4A80 [23:42:24]SAM_PROTO_ClearQueue [23:42:24]wFMCommunicate request_size=4 [23:42:24]MH_SAM_APDU [23:42:24]CAPDU: 80 09 00 00 [23:42:24]Write to MH i2c: E2 08 00 C0 6C 80 09 00 00 00 00 00 00 9E [23:42:24]Write i2c OK [23:42:24]MH_I2C_Read... [23:42:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:42:24]Read from MH i2c: E2 [23:42:24]MH_I2C_Read... [23:42:24]Read from MH i2c: E2 03 00 [23:42:24]MH_I2C_Read... [23:42:24]Read from MH i2c: E2 03 00 C0 6C 00 90 00 A0 [23:42:24]RAPDU: 90 00 [23:42:24]wFMCommunicate OK [23:42:24]SAM_PROTO_ClearQueue done [23:42:24]KKMCreateOFDPacket [23:42:24]OFDProtocolAddRootSTLVToBuf [23:42:24]FM_MakeSignedData [23:42:24]FM_MakeSignedData [23:42:24]SAM_PROTO_SignData [23:42:24]wFMCommunicate request_size=4 [23:42:24]MH_SAM_APDU [23:42:24]CAPDU: 80 0D 01 02 [23:42:24]Write to MH i2c: E2 08 00 C1 6C 80 0D 01 02 00 00 00 00 A6 [23:42:24]Write i2c OK [23:42:24]MH_I2C_Read... [23:42:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:42:24]Read from MH i2c: E2 [23:42:24]MH_I2C_Read... [23:42:24]Read from MH i2c: E2 03 00 [23:42:24]MH_I2C_Read... [23:42:24]Read from MH i2c: E2 03 00 C1 6C 00 90 00 A1 [23:42:24]RAPDU: 90 00 [23:42:24]wFMCommunicate OK [23:42:24]wFMCommunicate request_size=255 [23:42:24]MH_SAM_APDU [23:42: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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 20 01 00 00 F4 03 04 00 66 18 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 99 71 00 00 35 04 06 00 A3 [23:42:24]Write to MH i2c: E2 02 01 C2 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 20 01 00 00 F4 03 04 00 66 18 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 99 71 00 00 35 04 06 00 A3 00 00 92 [23:42:24]Write i2c OK [23:42:24]MH_I2C_Read... [23:42:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:42:24]Read from MH i2c: E2 [23:42:24]MH_I2C_Read... [23:42:24]Read from MH i2c: E2 03 00 [23:42:24]MH_I2C_Read... [23:42:24]Read from MH i2c: E2 03 00 C2 6C 00 90 00 A2 [23:42:24]RAPDU: 90 00 [23:42:24]wFMCommunicate OK [23:42:24]wFMCommunicate request_size=10 [23:42:24]MH_SAM_APDU [23:42:24]CAPDU: 80 0D 02 02 05 42 3F 04 F6 1E [23:42:24]Write to MH i2c: E2 0D 00 C3 6C 80 0D 02 02 05 00 42 3F 04 F6 1E 00 00 4C [23:42:24]Write i2c OK [23:42:24]MH_I2C_Read... [23:42:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:42:24]Read from MH i2c: E2 [23:42:24]MH_I2C_Read... [23:42:24]Read from MH i2c: E2 03 00 [23:42:24]MH_I2C_Read... [23:42:24]Read from MH i2c: E2 03 00 C3 6C 00 90 00 A3 [23:42:24]RAPDU: 90 00 [23:42:24]wFMCommunicate OK [23:42:24]wFMCommunicate request_size=4 [23:42:24]MH_SAM_APDU [23:42:24]CAPDU: 80 0D 03 02 [23:42:24]Write to MH i2c: E2 08 00 C4 6C 80 0D 03 02 00 00 00 00 AB [23:42:24]Write i2c OK [23:42:24]MH_I2C_Read... [23:42:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:42:24]Read from MH i2c: E2 [23:42:24]MH_I2C_Read... [23:42:24]Read from MH i2c: E2 0B 00 [23:42:24]MH_I2C_Read... [23:42:24]Read from MH i2c: E2 0B 00 C4 6C 00 98 45 6F 07 07 57 7B C8 90 00 A0 [23:42:24]RAPDU: 98 45 6F 07 07 57 7B C8 90 00 [23:42:24]wFMCommunicate OK [23:42:24]SAM_PROTO_SignData done [23:42:24]FM_MakeSignedData done [23:42:24]CreateOFDProtocolMessage [23:42:24]wFMCommunicate request_size=4 [23:42:24]MH_SAM_APDU [23:42:24]CAPDU: 80 11 00 00 [23:42:24]Write to MH i2c: E2 08 00 C5 6C 80 11 00 00 00 00 00 00 AB [23:42:24]Write i2c OK [23:42:24]MH_I2C_Read... [23:42:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:25]Read from MH i2c: E2 [23:42:25]MH_I2C_Read... [23:42:25]Read from MH i2c: E2 17 00 [23:42:25]MH_I2C_Read... [23:42:25]Read from MH i2c: E2 17 00 C5 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 FA [23:42:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:42:25]wFMCommunicate OK [23:42:25]CreateOFDProtocolMessage done [23:42:25]OFDSenderStorePacket 29081 [23:42:25]StoreOFDPacket docnum=29081 [23:42:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 53 74 07 01 10 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 20 01 00 00 F4 03 04 00 66 18 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 99 71 00 00 35 04 06 00 A3 42 3F 04 F6 1E 98 45 6F 07 07 57 7B C8 [23:42:25]CheckFolder [23:42:25]dirname=/storage/ofd_packets [23:42:25]CheckFolder done [23:42:25]ProducePacketName [23:42:25]name=ofd_packets/00029081 [23:42:25]NVStorageSaveData ofd_packets/00029081 [23:42:25]File name is /storage/ofd_packets/00029081 [23:42:25]Write 301 bytes [23:42:25]NVStorageSaveData done [23:42:25]OFDSenderStorePacket done [23:42:25]KKMCreateOFDPacket done [23:42:25]NVStorageSaveData kkm_last_timestamp [23:42:25]File name is /storage/kkm_last_timestamp [23:42:25]Write 4 bytes [23:42:25]NVStorageSaveData done [23:42:25]ExternCall_PrintAddStr [23:42:25]wPrintStart [23:42:25]Write to MH i2c: 01 00 00 C6 6C 32 [23:42:25]Write i2c OK [23:42:25]MH_I2C_Read... [23:42:25]Read from MH i2c: 01 [23:42:25]MH_I2C_Read... [23:42:25]Read from MH i2c: 01 07 00 [23:42:25]MH_I2C_Read... [23:42:25]Read from MH i2c: 01 07 00 C6 6C 00 00 00 00 00 FF 0F 47 [23:42:25]RasterBufferAndPrint [23:42:25]line Счет N : (1)347450 [23:42:25]line ИНН: 02508201610067 [23:42:25]line Контрольно-Кассовый Чек [23:42:25]line ПРОДАЖА [23:42:25]line ТРК (МРК, ГНК) : 23 [23:42:25]line Товар: 2710124130 [23:42:25]line Аи-92-К-5 [23:42:25]line 6.230 * 64.30 [23:42:25]line = 400.59 [23:42:25]line НДС 12% НСП 1% [23:42:25]line > о реализуемом товаре [23:42:25]line ОКРУГЛЕНИЕ: -0.59 [23:42:25]line ИТОГО: 400.00 [23:42:25]line Внесено: 400.00 [23:42:25]line СДАЧА: 0.00 [23:42:25]line НСП 1% : 3.54 [23:42:25]line НДС 12% : 42.54 [23:42:25]line Наличными: 400.00 [23:42:25]line Безнал.: 0.00 [23:42:25]line Место: АЗС № 108 "Партнер Нефть" [23:42:25]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:42:25]line СНО: Общий режим [23:42:25]line Чек 288 13.04.2024 23:42 [23:42:25]line Смена: 115 ФФД: 1.0 [23:42:25]line ЗНМ: 0300000027 [23:42:25]line РНМ: 0000138879044617 [23:42:25]line Версия ККМ: 001 [23:42:25]line ФМ: 0000000000963154 [23:42:25]line ФД: 29081 [23:42:25]line ФПД: 179504920458782 [23:42:25]line 1/tax-web-control/client/api/v1/ticket?date=20240413T234230&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29081&fm=179504920458782&tin=02508201610067®Number=0000138879044617&sum=40000 [23:42:25]OFD Sender: Processing packet 29081 [packets to send 8, broken 7] [23:42:25]ProducePacketName [23:42:25]name=ofd_packets/00029081 [23:42:25]OFD Sender: To server: pG, [23:42:25]CommunicateWithHost lk.salyk.kg:30040 [23:42:25]ConnectInit lk.salyk.kg [23:42:25]written 0, free lines is 4095 [23:42:25]Connected sock=10 [23:42: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 31 35 34 0F 01 00 00 53 74 07 01 10 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 20 01 00 00 F4 03 04 00 66 18 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 99 71 00 00 35 04 06 00 A3 42 3F 04 F6 1E 98 45 6F 07 07 57 7B C8 [23:42:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 F7 BF 47 00 92 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 31 35 34 10 04 04 00 99 71 00 00 F4 03 04 00 0C C3 1A 66 B6 04 01 00 00 D4 78 89 D5 18 C4 D5 C9 [23:42:25]CommunicateWithHost err = 0 [23:42:25]CheckOFDResponse [23:42:25]1017 (14) - 77093643461234 [23:42:25]1041 (16) - 0000000000963154 [23:42:25]1040 (4) - 29081 [23:42:25]1012 (4) - 13.04.2024 17:38 [23:42:25]1206 (1) - 0 [23:42:25]OFD Sender: Remove packet 29081 [23:42:25]ProducePacketName [23:42:25]name=ofd_packets/00029081 [23:42:25]NVStorageDeleteData [23:42:25]Write to MH i2c: 01 00 00 F0 6C 5C [23:42:25]Write i2c OK [23:42:25]MH_I2C_Read... [23:42:25]Read from MH i2c: 01 [23:42:25]MH_I2C_Read... [23:42:25]Read from MH i2c: 01 07 00 [23:42:25]MH_I2C_Read... [23:42:25]Read from MH i2c: 01 07 00 F0 6C 00 00 00 00 00 CC 0C 3B [23:42:25]RasterBufferAndPrint [23:42:25]line [23:42:25]line [23:42:25]line [23:42:25]line [23:42:25]line [23:42:25]written 0, free lines is 3282 [23:42:25]MH_Cut [23:42:25]Write to MH i2c: D1 01 00 F7 6C 01 35 [23:42:25]Write i2c OK [23:42:25]MH_I2C_Read... [23:42:25]Read from MH i2c: D1 [23:42:25]MH_I2C_Read... [23:42:25]Read from MH i2c: D1 01 00 [23:42:25]MH_I2C_Read... [23:42:25]Read from MH i2c: D1 01 00 F7 6C 00 34 [23:42:25]Write to MH i2c: 01 00 00 F8 6C 64 [23:42:25]Write i2c OK [23:42:25]MH_I2C_Read... [23:42:26]OFD Sender: No OFD packet to send [23:42:26]*** Cut start [23:42:26]*** Partial cut [23:42:26]*** CUTSNS_PIN = 1 [23:42:26]*** CUTSNS_PIN = 0 [23:42:26]*** Brake cut motor [23:42:27]Read from MH i2c: 01 [23:42:27]MH_I2C_Read... [23:42:27]*** Stop cut motor [23:42:27]*** Cut end [23:42:27]Read from MH i2c: 01 07 00 [23:42:27]MH_I2C_Read... [23:42:27]Read from MH i2c: 01 07 00 F8 6C 00 00 00 00 00 FF 0F 79 [23:42:27]process_action close_receipt done [23:42:27]requested_data is exist [23:42:27]produce_requested_data [23:42:27]requested_item fm.sn is exist - process it [23:42:27]wFMCommunicate request_size=4 [23:42:27]MH_SAM_APDU [23:42:27]CAPDU: 80 11 00 00 [23:42:27]Write to MH i2c: E2 08 00 F9 6C 80 11 00 00 00 00 00 00 DF [23:42:27]Write i2c OK [23:42:27]MH_I2C_Read... [23:42:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:27]Read from MH i2c: E2 [23:42:27]MH_I2C_Read... [23:42:27]Read from MH i2c: E2 17 00 [23:42:27]MH_I2C_Read... [23:42:27]Read from MH i2c: E2 17 00 F9 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 2E [23:42:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:42:27]wFMCommunicate OK [23:42:27]requested_item fd.num is exist - process it [23:42:27]SAM_PROTO_GetFieldsCounters [23:42:27]wFMCommunicate request_size=4 [23:42:27]MH_SAM_APDU [23:42:27]CAPDU: 80 13 00 00 [23:42:27]Write to MH i2c: E2 08 00 FA 6C 80 13 00 00 00 00 00 00 E2 [23:42:27]Write i2c OK [23:42:27]MH_I2C_Read... [23:42:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:42:27]Read from MH i2c: E2 [23:42:27]MH_I2C_Read... [23:42:27]Read from MH i2c: E2 62 00 [23:42:27]MH_I2C_Read... [23:42:27]Read from MH i2c: E2 62 00 FA 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 99 71 00 00 0E 04 04 00 73 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 [23: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 99 71 00 00 0E 04 04 00 73 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 [23:42:27]wFMCommunicate OK [23:42:27]SAM_PROTO_GetFieldsCounters done [23:42:27]requested_item shift.num is exist - process it [23:42:27]requested_item shift.opened is exist - process it [23:42:27]req_shift_opened [23:42:27]FM_GetShiftState [23:42:27]SAM_PROTO_GetShiftState [23:42:27]wFMCommunicate request_size=4 [23:42:27]MH_SAM_APDU [23:42:27]CAPDU: 80 13 01 00 [23:42:27]Write to MH i2c: E2 08 00 FB 6C 80 13 01 00 00 00 00 00 E4 [23:42:27]Write i2c OK [23:42:27]MH_I2C_Read... [23:42:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:27]Read from MH i2c: E2 [23:42:27]MH_I2C_Read... [23:42:27]Read from MH i2c: E2 0E 00 [23:42:27]MH_I2C_Read... [23:42:27]Read from MH i2c: E2 0E 00 FB 6C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 FD [23:42:27]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:42:27]wFMCommunicate OK [23:42:27]SAM_PROTO_GetShiftState done [23:42:27]FM_GetShiftState done [23:42:27]req_shift_opened done [23:42:27]requested_item shift.open_date is exist - process it [23:42:27]req_shift_open_date [23:42:27]req_shift_open_date done [23:42:27]produce_requested_data done [23:42:27]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29081,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [23:42:27]process_action_free close_receipt [23:42:27]json_value_free [23:42:27]json_value_free done [23:42:27]process_json_proto returns [23:42:27]Send response to host [23:42:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29081,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [23:42:27]free response buf [23:42:27]execute_script done [23:42:27]execute_script returns [23:42:27]free content buf [23:42:27]Sock 7.Close socket [23:42:27]Sock 7.Thread stoped [23:42:31]OFD Sender: No OFD packet to send [23:42:36]OFD Sender: No OFD packet to send [23:42:41]OFD Sender: No OFD packet to send [23:42:46]OFD Sender: No OFD packet to send [23:42:51]OFD Sender: No OFD packet to send [23:42:56]OFD Sender: No OFD packet to send [23:43:01]OFD Sender: No OFD packet to send [23:43:06]OFD Sender: No OFD packet to send [23:43:11]OFD Sender: No OFD packet to send [23:43:16]OFD Sender: No OFD packet to send [23:43:21]OFD Sender: No OFD packet to send [23:43:26]OFD Sender: No OFD packet to send [23:43:31]OFD Sender: No OFD packet to send [23:43:36]OFD Sender: No OFD packet to send [23:43:41]OFD Sender: No OFD packet to send [23:43:46]OFD Sender: No OFD packet to send [23:43:51]OFD Sender: No OFD packet to send [23:43:56]OFD Sender: No OFD packet to send [23:44:01]OFD Sender: No OFD packet to send [23:44:06]OFD Sender: No OFD packet to send [23:44:11]OFD Sender: No OFD packet to send [23:44:11]accept exits with 9 [23:44:11]New connection [23:44:11]New thread 3066928484 created [23:44:11]Thread 3066785124 joined [23:44:11]Waiting for new connection... [23:44:11] Sock 9.Parse request [23:44:11]Sock 9.Check first char [23:44:11]Sock 9.First char is OK [23:44:11]request: POST /json_proto HTTP/1.0 [23:44:11]Method: POST [23:44:11]URL: /json_proto [23:44:11]Method is POST - this is cgi request [23:44:11]url: /json_proto [23:44:11]query_string will be loaded in cgi processing [23:44:11]execute_cgi json_proto POST (null) [23:44:11]execute_cgi path=json_proto method=POST [23:44:11]POST find Content-Length [23:44:11]Host: 172.17.33.3:8080 [23:44:11]Content-Length: 682 [23:44:11]Content-Type: application/json [23:44:11] [23:44:11]POST finish read [23:44:11]Found Content-Length = 682 [23:44:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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" ] } } [23:44:11]execute_script... [23:44: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)347451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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" ] } } [23:44:11]POST & json_proto [23:44:11]process_json_proto [23:44:11]json parsed OK: [23:44:11]protocol is kg_v1.0 [23:44:11]action value=close_receipt [23:44:11]process_action close_receipt [23:44:11]cmd_close_receipt [23:44:11]MH_GetDate [23:44:11]Write to MH i2c: F0 00 00 FC 6C 57 [23:44:11]Write i2c OK [23:44:11]MH_I2C_Read... [23:44:11]Read from MH i2c: F0 [23:44:11]MH_I2C_Read... [23:44:11]Read from MH i2c: F0 09 00 [23:44:11]MH_I2C_Read... [23:44:11]Read from MH i2c: F0 09 00 FC 6C 00 D3 18 1B 66 23 5B 8F 65 3E [23:44:11]GetLastDocTimeStamp 1713051750 [23:44:11]current date 1713051859 [23:44:11]FM_GetShiftState [23:44:11]SAM_PROTO_GetShiftState [23:44:11]wFMCommunicate request_size=4 [23:44:11]MH_SAM_APDU [23:44:11]CAPDU: 80 13 01 00 [23:44:11]Write to MH i2c: E2 08 00 FD 6C 80 13 01 00 00 00 00 00 E6 [23:44:11]Write i2c OK [23:44:11]MH_I2C_Read... [23:44:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:11]Read from MH i2c: E2 [23:44:11]MH_I2C_Read... [23:44:11]Read from MH i2c: E2 0E 00 [23:44:11]MH_I2C_Read... [23:44:11]Read from MH i2c: E2 0E 00 FD 6C 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 FF [23:44:11]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:44:11]wFMCommunicate OK [23:44:11]SAM_PROTO_GetShiftState done [23:44:11]FM_GetShiftState done [23:44:11]opened in 1712967615 [23:44:11]opened+sec_in_day 1713054015 [23:44:11]quantity*price = 100050 [23:44:11]sum+1 = 100052 [23:44: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 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 289 13.04.2024 23:44 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29082 ФПД: 61749276301138 1/tax-web-control/client/api/v1/ticket?date=20240413T234419&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29082&fm=61749276301138&tin=02508201610067®Number=0000138879044617&sum=100000 [23:44:13]StoreToDocumentArchive [23:44:13]shift 115 fd 29082 [23:44:13]save to /storage/0115/doc_00029082 [23:44:13]save last doc name /storage/0115/doc_00029082 to /storage/kkm_last_doc_name [23:44:13]save OK [23:44:13]Clear old archive folders... [23:44:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:44:13]tlvbuf is 011EE4E0 [23:44:13]SAM_PROTO_ClearQueue [23:44:13]wFMCommunicate request_size=4 [23:44:13]MH_SAM_APDU [23:44:13]CAPDU: 80 09 00 00 [23:44:13]Write to MH i2c: E2 08 00 0A 6D 80 09 00 00 00 00 00 00 E9 [23:44:13]Write i2c OK [23:44:13]MH_I2C_Read... [23:44:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:44:13]Read from MH i2c: E2 [23:44:13]MH_I2C_Read... [23:44:13]Read from MH i2c: E2 03 00 [23:44:13]MH_I2C_Read... [23:44:13]Read from MH i2c: E2 03 00 0A 6D 00 90 00 EB [23:44:13]RAPDU: 90 00 [23:44:13]wFMCommunicate OK [23:44:13]SAM_PROTO_ClearQueue done [23:44:13]KKMCreateOFDPacket [23:44:13]OFDProtocolAddRootSTLVToBuf [23:44:13]FM_MakeSignedData [23:44:13]FM_MakeSignedData [23:44:13]SAM_PROTO_SignData [23:44:13]wFMCommunicate request_size=4 [23:44:13]MH_SAM_APDU [23:44:13]CAPDU: 80 0D 01 02 [23:44:13]Write to MH i2c: E2 08 00 0B 6D 80 0D 01 02 00 00 00 00 F1 [23:44:13]Write i2c OK [23:44:13]MH_I2C_Read... [23:44:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:44:13]Read from MH i2c: E2 [23:44:13]MH_I2C_Read... [23:44:13]Read from MH i2c: E2 03 00 [23:44:13]MH_I2C_Read... [23:44:13]Read from MH i2c: E2 03 00 0B 6D 00 90 00 EC [23:44:13]RAPDU: 90 00 [23:44:13]wFMCommunicate OK [23:44:13]wFMCommunicate request_size=255 [23:44:13]MH_SAM_APDU [23:44: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 21 01 00 00 F4 03 04 00 D3 18 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9A 71 00 00 35 04 06 00 38 [23:44:13]Write to MH i2c: E2 02 01 0C 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 21 01 00 00 F4 03 04 00 D3 18 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9A 71 00 00 35 04 06 00 38 00 00 61 [23:44:13]Write i2c OK [23:44:13]MH_I2C_Read... [23:44:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:13]Read from MH i2c: E2 [23:44:13]MH_I2C_Read... [23:44:13]Read from MH i2c: E2 03 00 [23:44:13]MH_I2C_Read... [23:44:13]Read from MH i2c: E2 03 00 0C 6D 00 90 00 ED [23:44:13]RAPDU: 90 00 [23:44:13]wFMCommunicate OK [23:44:13]wFMCommunicate request_size=10 [23:44:13]MH_SAM_APDU [23:44:13]CAPDU: 80 0D 02 02 05 29 1F AD D7 52 [23:44:13]Write to MH i2c: E2 0D 00 0D 6D 80 0D 02 02 05 00 29 1F AD D7 52 00 00 1C [23:44:13]Write i2c OK [23:44:13]MH_I2C_Read... [23:44:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:13]Read from MH i2c: E2 [23:44:13]MH_I2C_Read... [23:44:13]Read from MH i2c: E2 03 00 [23:44:13]MH_I2C_Read... [23:44:13]Read from MH i2c: E2 03 00 0D 6D 00 90 00 EE [23:44:13]RAPDU: 90 00 [23:44:13]wFMCommunicate OK [23:44:13]wFMCommunicate request_size=4 [23:44:13]MH_SAM_APDU [23:44:13]CAPDU: 80 0D 03 02 [23:44:13]Write to MH i2c: E2 08 00 0E 6D 80 0D 03 02 00 00 00 00 F6 [23:44:13]Write i2c OK [23:44:13]MH_I2C_Read... [23:44:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:44:13]Read from MH i2c: E2 [23:44:13]MH_I2C_Read... [23:44:13]Read from MH i2c: E2 0B 00 [23:44:13]MH_I2C_Read... [23:44:13]Read from MH i2c: E2 0B 00 0E 6D 00 1C E8 A9 46 A5 F0 2A D4 90 00 7D [23:44:13]RAPDU: 1C E8 A9 46 A5 F0 2A D4 90 00 [23:44:13]wFMCommunicate OK [23:44:13]SAM_PROTO_SignData done [23:44:13]FM_MakeSignedData done [23:44:13]CreateOFDProtocolMessage [23:44:13]wFMCommunicate request_size=4 [23:44:13]MH_SAM_APDU [23:44:13]CAPDU: 80 11 00 00 [23:44:13]Write to MH i2c: E2 08 00 0F 6D 80 11 00 00 00 00 00 00 F6 [23:44:13]Write i2c OK [23:44:13]MH_I2C_Read... [23:44:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:44:13]Read from MH i2c: E2 [23:44:13]MH_I2C_Read... [23:44:13]Read from MH i2c: E2 17 00 [23:44:13]MH_I2C_Read... [23:44:13]Read from MH i2c: E2 17 00 0F 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 45 [23:44:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:44:13]wFMCommunicate OK [23:44:13]CreateOFDProtocolMessage done [23:44:13]OFDSenderStorePacket 29082 [23:44:13]StoreOFDPacket docnum=29082 [23:44:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6C C6 07 01 EE F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 21 01 00 00 F4 03 04 00 D3 18 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9A 71 00 00 35 04 06 00 38 29 1F AD D7 52 1C E8 A9 46 A5 F0 2A D4 [23:44:13]CheckFolder [23:44:13]dirname=/storage/ofd_packets [23:44:13]CheckFolder done [23:44:13]ProducePacketName [23:44:13]name=ofd_packets/00029082 [23:44:13]NVStorageSaveData ofd_packets/00029082 [23:44:13]File name is /storage/ofd_packets/00029082 [23:44:13]Write 301 bytes [23:44:13]NVStorageSaveData done [23:44:13]OFDSenderStorePacket done [23:44:13]KKMCreateOFDPacket done [23:44:13]NVStorageSaveData kkm_last_timestamp [23:44:13]File name is /storage/kkm_last_timestamp [23:44:13]Write 4 bytes [23:44:13]NVStorageSaveData done [23:44:13]ExternCall_PrintAddStr [23:44:13]wPrintStart [23:44:13]Write to MH i2c: 01 00 00 10 6D 7D [23:44:13]Write i2c OK [23:44:13]MH_I2C_Read... [23:44:13]Read from MH i2c: 01 [23:44:13]MH_I2C_Read... [23:44:13]Read from MH i2c: 01 07 00 [23:44:13]MH_I2C_Read... [23:44:13]Read from MH i2c: 01 07 00 10 6D 00 00 00 00 00 FF 0F 92 [23:44:13]RasterBufferAndPrint [23:44:13]line Счет N : (1)347451 [23:44:13]line ИНН: 02508201610067 [23:44:13]line Контрольно-Кассовый Чек [23:44:13]line ПРОДАЖА [23:44:13]line ТРК (МРК, ГНК) : 23 [23:44:13]line Товар: 2710124130 [23:44:13]line Аи-92-К-5 [23:44:13]line 15.560 * 64.30 [23:44:13]line = 1000.51 [23:44:13]line НДС 12% НСП 1% [23:44:13]line > о реализуемом товаре [23:44:13]line ОКРУГЛЕНИЕ: -0.51 [23:44:13]line ИТОГО: 1000.00 [23:44:13]line Внесено: 1000.00 [23:44:13]line СДАЧА: 0.00 [23:44:13]line НСП 1% : 8.85 [23:44:13]line НДС 12% : 106.25 [23:44:13]line Наличными: 1000.00 [23:44:13]line Безнал.: 0.00 [23:44:13]line Место: АЗС № 108 "Партнер Нефть" [23:44:13]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:44:13]line СНО: Общий режим [23:44:13]line Чек 289 13.04.2024 23:44 [23:44:13]line Смена: 115 ФФД: 1.0 [23:44:13]line ЗНМ: 0300000027 [23:44:13]line РНМ: 0000138879044617 [23:44:13]line Версия ККМ: 001 [23:44:13]line ФМ: 0000000000963154 [23:44:13]line ФД: 29082 [23:44:13]line ФПД: 61749276301138 [23:44:13]line 1/tax-web-control/client/api/v1/ticket?date=20240413T234419&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29082&fm=61749276301138&tin=02508201610067®Number=0000138879044617&sum=100000 [23:44:13]written 0, free lines is 4095 [23:44:13]OFD Sender: Processing packet 29082 [packets to send 8, broken 7] [23:44:13]ProducePacketName [23:44:13]name=ofd_packets/00029082 [23:44:13]OFD Sender: To server: pG, [23:44:13]CommunicateWithHost lk.salyk.kg:30040 [23:44:13]ConnectInit lk.salyk.kg [23:44:13]Connected sock=11 [23:44: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 31 35 34 0F 01 00 00 6C C6 07 01 EE F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 21 01 00 00 F4 03 04 00 D3 18 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9A 71 00 00 35 04 06 00 38 29 1F AD D7 52 1C E8 A9 46 A5 F0 2A D4 [23:44:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 1B CA 47 00 12 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 31 35 34 10 04 04 00 9A 71 00 00 F4 03 04 00 78 C3 1A 66 B6 04 01 00 00 57 FD 8D DD 7F 2A 90 AC [23:44:13]CommunicateWithHost err = 0 [23:44:13]CheckOFDResponse [23:44:13]1017 (14) - 77093643461234 [23:44:13]1041 (16) - 0000000000963154 [23:44:13]1040 (4) - 29082 [23:44:13]1012 (4) - 13.04.2024 17:40 [23:44:13]1206 (1) - 0 [23:44:13]OFD Sender: Remove packet 29082 [23:44:13]ProducePacketName [23:44:13]name=ofd_packets/00029082 [23:44:13]NVStorageDeleteData [23:44:14]Write to MH i2c: 01 00 00 3A 6D A7 [23:44:14]Write i2c OK [23:44:14]MH_I2C_Read... [23:44:14]Read from MH i2c: 01 [23:44:14]MH_I2C_Read... [23:44:14]Read from MH i2c: 01 07 00 [23:44:14]MH_I2C_Read... [23:44:14]Read from MH i2c: 01 07 00 3A 6D 00 00 00 00 00 CC 0C 86 [23:44:14]RasterBufferAndPrint [23:44:14]line [23:44:14]line [23:44:14]line [23:44:14]line [23:44:14]line [23:44:14]written 0, free lines is 3280 [23:44:14]MH_Cut [23:44:14]Write to MH i2c: D1 01 00 41 6D 01 80 [23:44:14]Write i2c OK [23:44:14]MH_I2C_Read... [23:44:14]Read from MH i2c: D1 [23:44:14]MH_I2C_Read... [23:44:14]Read from MH i2c: D1 01 00 [23:44:14]MH_I2C_Read... [23:44:14]Read from MH i2c: D1 01 00 41 6D 00 7F [23:44:14]Write to MH i2c: 01 00 00 42 6D AF [23:44:14]Write i2c OK [23:44:14]MH_I2C_Read... [23:44:14]OFD Sender: No OFD packet to send [23:44:14]*** Cut start [23:44:14]*** Partial cut [23:44:14]*** CUTSNS_PIN = 1 [23:44:14]*** CUTSNS_PIN = 0 [23:44:15]*** Brake cut motor [23:44:15]Read from MH i2c: 01 [23:44:15]MH_I2C_Read... [23:44:15]*** Stop cut motor [23:44:15]*** Cut end [23:44:15]Read from MH i2c: 01 07 00 [23:44:15]MH_I2C_Read... [23:44:15]Read from MH i2c: 01 07 00 42 6D 00 00 00 00 00 FF 0F C4 [23:44:15]process_action close_receipt done [23:44:15]requested_data is exist [23:44:15]produce_requested_data [23:44:15]requested_item fm.sn is exist - process it [23:44:15]wFMCommunicate request_size=4 [23:44:15]MH_SAM_APDU [23:44:15]CAPDU: 80 11 00 00 [23:44:15]Write to MH i2c: E2 08 00 43 6D 80 11 00 00 00 00 00 00 2A [23:44:15]Write i2c OK [23:44:15]MH_I2C_Read... [23:44:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:44:15]Read from MH i2c: E2 [23:44:15]MH_I2C_Read... [23:44:15]Read from MH i2c: E2 17 00 [23:44:15]MH_I2C_Read... [23:44:15]Read from MH i2c: E2 17 00 43 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 79 [23:44:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:44:15]wFMCommunicate OK [23:44:15]requested_item fd.num is exist - process it [23:44:15]SAM_PROTO_GetFieldsCounters [23:44:15]wFMCommunicate request_size=4 [23:44:15]MH_SAM_APDU [23:44:15]CAPDU: 80 13 00 00 [23:44:15]Write to MH i2c: E2 08 00 44 6D 80 13 00 00 00 00 00 00 2D [23:44:15]Write i2c OK [23:44:15]MH_I2C_Read... [23:44:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:44:15]Read from MH i2c: E2 [23:44:15]MH_I2C_Read... [23:44:15]Read from MH i2c: E2 62 00 [23:44:15]MH_I2C_Read... [23:44:15]Read from MH i2c: E2 62 00 44 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9A 71 00 00 0E 04 04 00 73 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 [23:44: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9A 71 00 00 0E 04 04 00 73 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 [23:44:15]wFMCommunicate OK [23:44:15]SAM_PROTO_GetFieldsCounters done [23:44:15]requested_item shift.num is exist - process it [23:44:15]requested_item shift.opened is exist - process it [23:44:15]req_shift_opened [23:44:15]FM_GetShiftState [23:44:15]SAM_PROTO_GetShiftState [23:44:15]wFMCommunicate request_size=4 [23:44:15]MH_SAM_APDU [23:44:15]CAPDU: 80 13 01 00 [23:44:15]Write to MH i2c: E2 08 00 45 6D 80 13 01 00 00 00 00 00 2F [23:44:15]Write i2c OK [23:44:15]MH_I2C_Read... [23:44:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:15]Read from MH i2c: E2 [23:44:15]MH_I2C_Read... [23:44:15]Read from MH i2c: E2 0E 00 [23:44:15]MH_I2C_Read... [23:44:15]Read from MH i2c: E2 0E 00 45 6D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 48 [23:44:15]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:44:15]wFMCommunicate OK [23:44:15]SAM_PROTO_GetShiftState done [23:44:15]FM_GetShiftState done [23:44:15]req_shift_opened done [23:44:15]requested_item shift.open_date is exist - process it [23:44:15]req_shift_open_date [23:44:15]req_shift_open_date done [23:44:15]produce_requested_data done [23:44:15]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29082,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [23:44:15]process_action_free close_receipt [23:44:15]json_value_free [23:44:15]json_value_free done [23:44:15]process_json_proto returns [23:44:15]Send response to host [23:44:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29082,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [23:44:15]free response buf [23:44:15]execute_script done [23:44:15]execute_script returns [23:44:15]free content buf [23:44:15]Sock 9.Close socket [23:44:15]Sock 9.Thread stoped [23:44:19]OFD Sender: No OFD packet to send [23:44:24]OFD Sender: No OFD packet to send [23:44:29]OFD Sender: No OFD packet to send [23:44:34]OFD Sender: No OFD packet to send [23:44:39]OFD Sender: No OFD packet to send [23:44:44]OFD Sender: No OFD packet to send [23:44:49]OFD Sender: No OFD packet to send [23:44:54]OFD Sender: No OFD packet to send [23:44:59]OFD Sender: No OFD packet to send [23:45:04]OFD Sender: No OFD packet to send [23:45:09]OFD Sender: No OFD packet to send [23:45:14]OFD Sender: No OFD packet to send [23:45:19]OFD Sender: No OFD packet to send [23:45:24]OFD Sender: No OFD packet to send [23:45:29]OFD Sender: No OFD packet to send [23:45:34]OFD Sender: No OFD packet to send [23:45:39]OFD Sender: No OFD packet to send [23:45:44]OFD Sender: No OFD packet to send [23:45:49]OFD Sender: No OFD packet to send [23:45:54]OFD Sender: No OFD packet to send [23:45:59]OFD Sender: No OFD packet to send [23:46:04]OFD Sender: No OFD packet to send [23:46:09]OFD Sender: No OFD packet to send [23:46:14]OFD Sender: No OFD packet to send [23:46:19]OFD Sender: No OFD packet to send [23:46:24]OFD Sender: No OFD packet to send [23:46:29]OFD Sender: No OFD packet to send [23:46:34]OFD Sender: No OFD packet to send [23:46:39]OFD Sender: No OFD packet to send [23:46:44]OFD Sender: No OFD packet to send [23:46:49]OFD Sender: No OFD packet to send [23:46:54]OFD Sender: No OFD packet to send [23:46:55]accept exits with 7 [23:46:55]New connection [23:46:55]New thread 3066785124 created [23:46:55]Thread 3066928484 joined [23:46:55]Waiting for new connection... [23:46:55] Sock 7.Parse request [23:46:55]Sock 7.Check first char [23:46:55]Sock 7.First char is OK [23:46:55]request: POST /json_proto HTTP/1.0 [23:46:55]Method: POST [23:46:55]URL: /json_proto [23:46:55]Method is POST - this is cgi request [23:46:55]url: /json_proto [23:46:55]query_string will be loaded in cgi processing [23:46:55]execute_cgi json_proto POST (null) [23:46:55]execute_cgi path=json_proto method=POST [23:46:55]POST find Content-Length [23:46:55]Host: 172.17.33.3:8080 [23:46:55]Content-Length: 840 [23:46:55]Content-Type: application/json [23:46:55] [23:46:55]POST finish read [23:46:55]Found Content-Length = 840 [23:46:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347452", "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" : 64.30, "quantity" : 3.120, "sum" : 200.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:55]execute_script... [23:46: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)347452", "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" : 64.30, "quantity" : 3.120, "sum" : 200.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:55]POST & json_proto [23:46:55]process_json_proto [23:46:55]json parsed OK: [23:46:55]protocol is kg_v1.0 [23:46:55]action value=close_receipt [23:46:55]process_action close_receipt [23:46:55]cmd_close_receipt [23:46:55]MH_GetDate [23:46:55]Write to MH i2c: F0 00 00 46 6D A2 [23:46:55]Write i2c OK [23:46:55]MH_I2C_Read... [23:46:55]Read from MH i2c: F0 [23:46:55]MH_I2C_Read... [23:46:55]Read from MH i2c: F0 09 00 [23:46:55]MH_I2C_Read... [23:46:55]Read from MH i2c: F0 09 00 46 6D 00 77 19 1B 66 23 5B 8F 65 2E [23:46:55]GetLastDocTimeStamp 1713051859 [23:46:55]current date 1713052023 [23:46:55]FM_GetShiftState [23:46:55]SAM_PROTO_GetShiftState [23:46:55]wFMCommunicate request_size=4 [23:46:55]MH_SAM_APDU [23:46:55]CAPDU: 80 13 01 00 [23:46:55]Write to MH i2c: E2 08 00 47 6D 80 13 01 00 00 00 00 00 31 [23:46:55]Write i2c OK [23:46:55]MH_I2C_Read... [23:46:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:55]Read from MH i2c: E2 [23:46:55]MH_I2C_Read... [23:46:55]Read from MH i2c: E2 0E 00 [23:46:55]MH_I2C_Read... [23:46:55]Read from MH i2c: E2 0E 00 47 6D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 4A [23:46:55]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:46:55]wFMCommunicate OK [23:46:55]SAM_PROTO_GetShiftState done [23:46:55]FM_GetShiftState done [23:46:55]opened in 1712967615 [23:46:55]opened+sec_in_day 1713054015 [23:46:55]quantity*price = 20061 [23:46:55]sum+1 = 20063 [23:46:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.62 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 0.00 Безнал.: 200.62 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 290 13.04.2024 23:47 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29083 ФПД: 95356397993881 1/tax-web-control/client/api/v1/ticket?date=20240413T234703&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29083&fm=95356397993881&tin=02508201610067®Number=0000138879044617&sum=20062 [23:46:57]StoreToDocumentArchive [23:46:57]shift 115 fd 29083 [23:46:57]save to /storage/0115/doc_00029083 [23:46:57]save last doc name /storage/0115/doc_00029083 to /storage/kkm_last_doc_name [23:46:57]save OK [23:46:57]Clear old archive folders... [23:46:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:46:57]tlvbuf is 011E36B0 [23:46:57]SAM_PROTO_ClearQueue [23:46:57]wFMCommunicate request_size=4 [23:46:57]MH_SAM_APDU [23:46:57]CAPDU: 80 09 00 00 [23:46:57]Write to MH i2c: E2 08 00 54 6D 80 09 00 00 00 00 00 00 33 [23:46:57]Write i2c OK [23:46:57]MH_I2C_Read... [23:46:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:46:57]Read from MH i2c: E2 [23:46:57]MH_I2C_Read... [23:46:57]Read from MH i2c: E2 03 00 [23:46:57]MH_I2C_Read... [23:46:57]Read from MH i2c: E2 03 00 54 6D 00 90 00 35 [23:46:57]RAPDU: 90 00 [23:46:57]wFMCommunicate OK [23:46:57]SAM_PROTO_ClearQueue done [23:46:57]KKMCreateOFDPacket [23:46:57]OFDProtocolAddRootSTLVToBuf [23:46:57]FM_MakeSignedData [23:46:57]FM_MakeSignedData [23:46:57]SAM_PROTO_SignData [23:46:57]wFMCommunicate request_size=4 [23:46:57]MH_SAM_APDU [23:46:57]CAPDU: 80 0D 01 02 [23:46:57]Write to MH i2c: E2 08 00 55 6D 80 0D 01 02 00 00 00 00 3B [23:46:57]Write i2c OK [23:46:57]MH_I2C_Read... [23:46:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:46:57]Read from MH i2c: E2 [23:46:57]MH_I2C_Read... [23:46:57]Read from MH i2c: E2 03 00 [23:46:57]MH_I2C_Read... [23:46:57]Read from MH i2c: E2 03 00 55 6D 00 90 00 36 [23:46:57]RAPDU: 90 00 [23:46:57]wFMCommunicate OK [23:46:57]wFMCommunicate request_size=255 [23:46:57]MH_SAM_APDU [23:46: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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 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 52 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 77 19 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9B 71 00 00 35 04 06 00 56 [23:46:57]Write to MH i2c: E2 02 01 56 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 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 52 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 77 19 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9B 71 00 00 35 04 06 00 56 00 00 ED [23:46:57]Write i2c OK [23:46:57]MH_I2C_Read... [23:46:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:57]Read from MH i2c: E2 [23:46:57]MH_I2C_Read... [23:46:57]Read from MH i2c: E2 03 00 [23:46:57]MH_I2C_Read... [23:46:57]Read from MH i2c: E2 03 00 56 6D 00 90 00 37 [23:46:57]RAPDU: 90 00 [23:46:57]wFMCommunicate OK [23:46:57]wFMCommunicate request_size=10 [23:46:57]MH_SAM_APDU [23:46:57]CAPDU: 80 0D 02 02 05 B9 E4 3A BF 99 [23:46:57]Write to MH i2c: E2 0D 00 57 6D 80 0D 02 02 05 00 B9 E4 3A BF 99 00 00 77 [23:46:57]Write i2c OK [23:46:57]MH_I2C_Read... [23:46:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:57]Read from MH i2c: E2 [23:46:57]MH_I2C_Read... [23:46:57]Read from MH i2c: E2 03 00 [23:46:57]MH_I2C_Read... [23:46:57]Read from MH i2c: E2 03 00 57 6D 00 90 00 38 [23:46:57]RAPDU: 90 00 [23:46:57]wFMCommunicate OK [23:46:57]wFMCommunicate request_size=4 [23:46:57]MH_SAM_APDU [23:46:57]CAPDU: 80 0D 03 02 [23:46:57]Write to MH i2c: E2 08 00 58 6D 80 0D 03 02 00 00 00 00 40 [23:46:57]Write i2c OK [23:46:57]MH_I2C_Read... [23:46:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:46:57]Read from MH i2c: E2 [23:46:57]MH_I2C_Read... [23:46:57]Read from MH i2c: E2 0B 00 [23:46:57]MH_I2C_Read... [23:46:57]Read from MH i2c: E2 0B 00 58 6D 00 0C 36 23 6A 85 44 1D 8D 90 00 83 [23:46:57]RAPDU: 0C 36 23 6A 85 44 1D 8D 90 00 [23:46:57]wFMCommunicate OK [23:46:57]SAM_PROTO_SignData done [23:46:57]FM_MakeSignedData done [23:46:57]CreateOFDProtocolMessage [23:46:57]wFMCommunicate request_size=4 [23:46:57]MH_SAM_APDU [23:46:57]CAPDU: 80 11 00 00 [23:46:57]Write to MH i2c: E2 08 00 59 6D 80 11 00 00 00 00 00 00 40 [23:46:57]Write i2c OK [23:46:57]MH_I2C_Read... [23:46:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:57]Read from MH i2c: E2 [23:46:57]MH_I2C_Read... [23:46:57]Read from MH i2c: E2 17 00 [23:46:57]MH_I2C_Read... [23:46:57]Read from MH i2c: E2 17 00 59 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8F [23:46:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:46:57]wFMCommunicate OK [23:46:57]CreateOFDProtocolMessage done [23:46:57]OFDSenderStorePacket 29083 [23:46:57]StoreOFDPacket docnum=29083 [23:46:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 8E 6A 07 01 A0 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 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 52 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 77 19 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9B 71 00 00 35 04 06 00 56 B9 E4 3A BF 99 0C 36 23 6A 85 44 1D 8D [23:46:57]CheckFolder [23:46:57]dirname=/storage/ofd_packets [23:46:57]CheckFolder done [23:46:57]ProducePacketName [23:46:57]name=ofd_packets/00029083 [23:46:57]NVStorageSaveData ofd_packets/00029083 [23:46:57]File name is /storage/ofd_packets/00029083 [23:46:57]Write 301 bytes [23:46:57]NVStorageSaveData done [23:46:57]OFDSenderStorePacket done [23:46:57]KKMCreateOFDPacket done [23:46:57]NVStorageSaveData kkm_last_timestamp [23:46:57]File name is /storage/kkm_last_timestamp [23:46:57]Write 4 bytes [23:46:57]NVStorageSaveData done [23:46:57]ExternCall_PrintAddStr [23:46:57]wPrintStart [23:46:57]Write to MH i2c: 01 00 00 5A 6D C7 [23:46:57]Write i2c OK [23:46:57]MH_I2C_Read... [23:46:57]Read from MH i2c: 01 [23:46:57]MH_I2C_Read... [23:46:57]Read from MH i2c: 01 07 00 [23:46:57]MH_I2C_Read... [23:46:57]Read from MH i2c: 01 07 00 5A 6D 00 00 00 00 00 FF 0F DC [23:46:57]RasterBufferAndPrint [23:46:57]line Счет N : (1)347452 [23:46:57]line ИНН: 02508201610067 [23:46:57]line Контрольно-Кассовый Чек [23:46:57]line ПРОДАЖА [23:46:57]line ТРК (МРК, ГНК) : 32 [23:46:57]line Товар: 2710124130 [23:46:57]line Аи-92-К-5 [23:46:57]line 3.120 * 64.30 [23:46:57]line = 200.62 [23:46:57]line НДС 12% НСП 1% [23:46:57]line > о реализуемом товаре [23:46:57]line ИТОГО: 200.62 [23:46:57]line НСП 1% : 1.77 [23:46:57]line НДС 12% : 21.30 [23:46:57]line Наличными: 0.00 [23:46:57]line Безнал.: 200.62 [23:46:57]line Место: АЗС № 108 "Партнер Нефть" [23:46:57]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:46:57]line СНО: Общий режим [23:46:57]line Чек 290 13.04.2024 23:47 [23:46:57]line Смена: 115 ФФД: 1.0 [23:46:57]line ЗНМ: 0300000027 [23:46:57]line РНМ: 0000138879044617 [23:46:57]line Версия ККМ: 001 [23:46:57]line Платежная система: АКБ Кыргызстан [23:46:57]line ФМ: 0000000000963154 [23:46:57]line ФД: 29083 [23:46:57]line ФПД: 95356397993881 [23:46:57]line 1/tax-web-control/client/api/v1/ticket?date=20240413T234703&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29083&fm=95356397993881&tin=02508201610067®Number=0000138879044617&sum=20062 [23:46:57]OFD Sender: Processing packet 29083 [packets to send 8, broken 7] [23:46:57]ProducePacketName [23:46:57]name=ofd_packets/00029083 [23:46:57]OFD Sender: To server: pG, [23:46:57]CommunicateWithHost lk.salyk.kg:30040 [23:46:57]ConnectInit lk.salyk.kg [23:46:57]written 0, free lines is 4095 [23:46:58]Connected sock=10 [23:46: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 31 35 34 0F 01 00 00 8E 6A 07 01 A0 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 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 52 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 77 19 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9B 71 00 00 35 04 06 00 56 B9 E4 3A BF 99 0C 36 23 6A 85 44 1D 8D [23:46:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 3D 76 47 00 87 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9B 71 00 00 F4 03 04 00 1C C4 1A 66 B6 04 01 00 00 61 3A 9E 69 97 82 48 17 [23:46:58]CommunicateWithHost err = 0 [23:46:58]CheckOFDResponse [23:46:58]1017 (14) - 77093643461234 [23:46:58]1041 (16) - 0000000000963154 [23:46:58]1040 (4) - 29083 [23:46:58]1012 (4) - 13.04.2024 17:42 [23:46:58]1206 (1) - 0 [23:46:58]OFD Sender: Remove packet 29083 [23:46:58]ProducePacketName [23:46:58]name=ofd_packets/00029083 [23:46:58]NVStorageDeleteData [23:46:58]Write to MH i2c: 01 00 00 83 6D F0 [23:46:58]Write i2c OK [23:46:58]MH_I2C_Read... [23:46:58]Read from MH i2c: 01 [23:46:58]MH_I2C_Read... [23:46:58]Read from MH i2c: 01 07 00 [23:46:58]MH_I2C_Read... [23:46:58]Read from MH i2c: 01 07 00 83 6D 00 00 00 00 00 E2 0C E5 [23:46:58]RasterBufferAndPrint [23:46:58]line [23:46:58]line [23:46:58]line [23:46:58]line [23:46:58]line [23:46:58]written 0, free lines is 3304 [23:46:58]MH_Cut [23:46:58]Write to MH i2c: D1 01 00 8A 6D 01 C9 [23:46:58]Write i2c OK [23:46:58]MH_I2C_Read... [23:46:58]Read from MH i2c: D1 [23:46:58]MH_I2C_Read... [23:46:58]Read from MH i2c: D1 01 00 [23:46:58]MH_I2C_Read... [23:46:58]Read from MH i2c: D1 01 00 8A 6D 00 C8 [23:46:58]Write to MH i2c: 01 00 00 8B 6D F8 [23:46:58]Write i2c OK [23:46:58]MH_I2C_Read... [23:46:58]OFD Sender: No OFD packet to send [23:46:59]*** Cut start [23:46:59]*** Partial cut [23:46:59]*** CUTSNS_PIN = 1 [23:46:59]*** CUTSNS_PIN = 0 [23:46:59]*** Brake cut motor [23:46:59]Read from MH i2c: 01 [23:46:59]MH_I2C_Read... [23:46:59]*** Stop cut motor [23:46:59]*** Cut end [23:46:59]Read from MH i2c: 01 07 00 [23:46:59]MH_I2C_Read... [23:46:59]Read from MH i2c: 01 07 00 8B 6D 00 00 00 00 00 FF 0F 0D [23:46:59]process_action close_receipt done [23:46:59]requested_data is exist [23:46:59]produce_requested_data [23:46:59]requested_item fm.sn is exist - process it [23:46:59]wFMCommunicate request_size=4 [23:46:59]MH_SAM_APDU [23:46:59]CAPDU: 80 11 00 00 [23:46:59]Write to MH i2c: E2 08 00 8C 6D 80 11 00 00 00 00 00 00 73 [23:46:59]Write i2c OK [23:46:59]MH_I2C_Read... [23:46:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:59]Read from MH i2c: E2 [23:46:59]MH_I2C_Read... [23:46:59]Read from MH i2c: E2 17 00 [23:46:59]MH_I2C_Read... [23:46:59]Read from MH i2c: E2 17 00 8C 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C2 [23:46:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:46:59]wFMCommunicate OK [23:46:59]requested_item fd.num is exist - process it [23:46:59]SAM_PROTO_GetFieldsCounters [23:46:59]wFMCommunicate request_size=4 [23:46:59]MH_SAM_APDU [23:46:59]CAPDU: 80 13 00 00 [23:46:59]Write to MH i2c: E2 08 00 8D 6D 80 13 00 00 00 00 00 00 76 [23:46:59]Write i2c OK [23:46:59]MH_I2C_Read... [23:46:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:46:59]Read from MH i2c: E2 [23:46:59]MH_I2C_Read... [23:46:59]Read from MH i2c: E2 62 00 [23:46:59]MH_I2C_Read... [23:46:59]Read from MH i2c: E2 62 00 8D 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9B 71 00 00 0E 04 04 00 73 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 9C [23:46: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9B 71 00 00 0E 04 04 00 73 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 [23:46:59]wFMCommunicate OK [23:46:59]SAM_PROTO_GetFieldsCounters done [23:46:59]requested_item shift.num is exist - process it [23:46:59]requested_item shift.opened is exist - process it [23:46:59]req_shift_opened [23:46:59]FM_GetShiftState [23:46:59]SAM_PROTO_GetShiftState [23:46:59]wFMCommunicate request_size=4 [23:46:59]MH_SAM_APDU [23:46:59]CAPDU: 80 13 01 00 [23:46:59]Write to MH i2c: E2 08 00 8E 6D 80 13 01 00 00 00 00 00 78 [23:46:59]Write i2c OK [23:46:59]MH_I2C_Read... [23:47:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:00]Read from MH i2c: E2 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 0E 00 [23:47:00]MH_I2C_Read... [23:47:00]Read from MH i2c: E2 0E 00 8E 6D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 91 [23:47:00]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:47:00]wFMCommunicate OK [23:47:00]SAM_PROTO_GetShiftState done [23:47:00]FM_GetShiftState done [23:47:00]req_shift_opened done [23:47:00]requested_item shift.open_date is exist - process it [23:47:00]req_shift_open_date [23:47:00]req_shift_open_date done [23:47:00]produce_requested_data done [23:47:00]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29083,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [23:47:00]process_action_free close_receipt [23:47:00]json_value_free [23:47:00]json_value_free done [23:47:00]process_json_proto returns [23:47:00]Send response to host [23:47:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29083,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [23:47:00]free response buf [23:47:00]execute_script done [23:47:00]execute_script returns [23:47:00]free content buf [23:47:00]Sock 7.Close socket [23:47:00]Sock 7.Thread stoped [23:47:03]OFD Sender: No OFD packet to send [23:47:08]OFD Sender: No OFD packet to send [23:47:13]OFD Sender: No OFD packet to send [23:47:14]accept exits with 9 [23:47:14]New connection [23:47:14]New thread 3066928484 created [23:47:14]Thread 3066785124 joined [23:47:14]Waiting for new connection... [23:47:14] Sock 9.Parse request [23:47:14]Sock 9.Check first char [23:47:14]Sock 9.First char is OK [23:47:14]request: POST /json_proto HTTP/1.0 [23:47:14]Method: POST [23:47:14]URL: /json_proto [23:47:14]Method is POST - this is cgi request [23:47:14]url: /json_proto [23:47:14]query_string will be loaded in cgi processing [23:47:14]execute_cgi json_proto POST (null) [23:47:14]execute_cgi path=json_proto method=POST [23:47:14]POST find Content-Length [23:47:14]Host: 172.17.33.3:8080 [23:47:14]Content-Length: 837 [23:47:14]Content-Type: application/json [23:47:14] [23:47:14]POST finish read [23:47:14]Found Content-Length = 837 [23:47:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 6.910, "sum" : 500.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:14]execute_script... [23:47: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)347453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.40, "quantity" : 6.910, "sum" : 500.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:14]POST & json_proto [23:47:14]process_json_proto [23:47:14]json parsed OK: [23:47:14]protocol is kg_v1.0 [23:47:14]action value=close_receipt [23:47:14]process_action close_receipt [23:47:14]cmd_close_receipt [23:47:14]MH_GetDate [23:47:14]Write to MH i2c: F0 00 00 8F 6D EB [23:47:14]Write i2c OK [23:47:14]MH_I2C_Read... [23:47:14]Read from MH i2c: F0 [23:47:14]MH_I2C_Read... [23:47:14]Read from MH i2c: F0 09 00 [23:47:14]MH_I2C_Read... [23:47:14]Read from MH i2c: F0 09 00 8F 6D 00 89 19 1B 66 23 5B 8F 65 89 [23:47:14]GetLastDocTimeStamp 1713052023 [23:47:14]current date 1713052041 [23:47:14]FM_GetShiftState [23:47:14]SAM_PROTO_GetShiftState [23:47:14]wFMCommunicate request_size=4 [23:47:14]MH_SAM_APDU [23:47:14]CAPDU: 80 13 01 00 [23:47:14]Write to MH i2c: E2 08 00 90 6D 80 13 01 00 00 00 00 00 7A [23:47:14]Write i2c OK [23:47:14]MH_I2C_Read... [23:47:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:14]Read from MH i2c: E2 [23:47:14]MH_I2C_Read... [23:47:14]Read from MH i2c: E2 0E 00 [23:47:14]MH_I2C_Read... [23:47:14]Read from MH i2c: E2 0E 00 90 6D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 93 [23:47:14]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:47:14]wFMCommunicate OK [23:47:14]SAM_PROTO_GetShiftState done [23:47:14]FM_GetShiftState done [23:47:14]opened in 1712967615 [23:47:14]opened+sec_in_day 1713054015 [23:47:14]quantity*price = 50028 [23:47:14]sum+1 = 50029 [23:47:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.28 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.28 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 291 13.04.2024 23:47 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29084 ФПД: 32088859194926 1/tax-web-control/client/api/v1/ticket?date=20240413T234721&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29084&fm=32088859194926&tin=02508201610067®Number=0000138879044617&sum=50028 [23:47:15]StoreToDocumentArchive [23:47:15]shift 115 fd 29084 [23:47:15]save to /storage/0115/doc_00029084 [23:47:15]save last doc name /storage/0115/doc_00029084 to /storage/kkm_last_doc_name [23:47:15]save OK [23:47:15]Clear old archive folders... [23:47:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:47:15]tlvbuf is 0120E690 [23:47:15]SAM_PROTO_ClearQueue [23:47:15]wFMCommunicate request_size=4 [23:47:15]MH_SAM_APDU [23:47:15]CAPDU: 80 09 00 00 [23:47:15]Write to MH i2c: E2 08 00 9D 6D 80 09 00 00 00 00 00 00 7C [23:47:15]Write i2c OK [23:47:15]MH_I2C_Read... [23:47:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:47:15]Read from MH i2c: E2 [23:47:15]MH_I2C_Read... [23:47:15]Read from MH i2c: E2 03 00 [23:47:15]MH_I2C_Read... [23:47:15]Read from MH i2c: E2 03 00 9D 6D 00 90 00 7E [23:47:15]RAPDU: 90 00 [23:47:15]wFMCommunicate OK [23:47:15]SAM_PROTO_ClearQueue done [23:47:15]KKMCreateOFDPacket [23:47:15]OFDProtocolAddRootSTLVToBuf [23:47:15]FM_MakeSignedData [23:47:15]FM_MakeSignedData [23:47:15]SAM_PROTO_SignData [23:47:15]wFMCommunicate request_size=4 [23:47:15]MH_SAM_APDU [23:47:15]CAPDU: 80 0D 01 02 [23:47:15]Write to MH i2c: E2 08 00 9E 6D 80 0D 01 02 00 00 00 00 84 [23:47:15]Write i2c OK [23:47:15]MH_I2C_Read... [23:47:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:47:16]Read from MH i2c: E2 [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: E2 03 00 [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: E2 03 00 9E 6D 00 90 00 7F [23:47:16]RAPDU: 90 00 [23:47:16]wFMCommunicate OK [23:47:16]wFMCommunicate request_size=255 [23:47:16]MH_SAM_APDU [23:47:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 89 19 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9C 71 00 00 35 04 06 00 1D 2F 45 0D [23:47:16]Write to MH i2c: E2 02 01 9F 6D 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 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 89 19 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9C 71 00 00 35 04 06 00 1D 2F 45 0D 00 00 FD [23:47:16]Write i2c OK [23:47:16]MH_I2C_Read... [23:47:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:16]Read from MH i2c: E2 [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: E2 03 00 [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: E2 03 00 9F 6D 00 90 00 80 [23:47:16]RAPDU: 90 00 [23:47:16]wFMCommunicate OK [23:47:16]wFMCommunicate request_size=7 [23:47:16]MH_SAM_APDU [23:47:16]CAPDU: 80 0D 02 02 02 B6 2E [23:47:16]Write to MH i2c: E2 0A 00 A0 6D 80 0D 02 02 02 00 B6 2E 00 00 6F [23:47:16]Write i2c OK [23:47:16]MH_I2C_Read... [23:47:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:16]Read from MH i2c: E2 [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: E2 03 00 [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: E2 03 00 A0 6D 00 90 00 81 [23:47:16]RAPDU: 90 00 [23:47:16]wFMCommunicate OK [23:47:16]wFMCommunicate request_size=4 [23:47:16]MH_SAM_APDU [23:47:16]CAPDU: 80 0D 03 02 [23:47:16]Write to MH i2c: E2 08 00 A1 6D 80 0D 03 02 00 00 00 00 89 [23:47:16]Write i2c OK [23:47:16]MH_I2C_Read... [23:47:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:47:16]Read from MH i2c: E2 [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: E2 0B 00 [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: E2 0B 00 A1 6D 00 30 A0 52 C4 60 2C C5 A5 90 00 66 [23:47:16]RAPDU: 30 A0 52 C4 60 2C C5 A5 90 00 [23:47:16]wFMCommunicate OK [23:47:16]SAM_PROTO_SignData done [23:47:16]FM_MakeSignedData done [23:47:16]CreateOFDProtocolMessage [23:47:16]wFMCommunicate request_size=4 [23:47:16]MH_SAM_APDU [23:47:16]CAPDU: 80 11 00 00 [23:47:16]Write to MH i2c: E2 08 00 A2 6D 80 11 00 00 00 00 00 00 89 [23:47:16]Write i2c OK [23:47:16]MH_I2C_Read... [23:47:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:16]Read from MH i2c: E2 [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: E2 17 00 [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: E2 17 00 A2 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D8 [23:47:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:47:16]wFMCommunicate OK [23:47:16]CreateOFDProtocolMessage done [23:47:16]OFDSenderStorePacket 29084 [23:47:16]StoreOFDPacket docnum=29084 [23:47:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 06 47 04 01 97 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 89 19 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9C 71 00 00 35 04 06 00 1D 2F 45 0D B6 2E 30 A0 52 C4 60 2C C5 A5 [23:47:16]CheckFolder [23:47:16]dirname=/storage/ofd_packets [23:47:16]CheckFolder done [23:47:16]ProducePacketName [23:47:16]name=ofd_packets/00029084 [23:47:16]NVStorageSaveData ofd_packets/00029084 [23:47:16]File name is /storage/ofd_packets/00029084 [23:47:16]Write 298 bytes [23:47:16]NVStorageSaveData done [23:47:16]OFDSenderStorePacket done [23:47:16]KKMCreateOFDPacket done [23:47:16]NVStorageSaveData kkm_last_timestamp [23:47:16]File name is /storage/kkm_last_timestamp [23:47:16]Write 4 bytes [23:47:16]NVStorageSaveData done [23:47:16]ExternCall_PrintAddStr [23:47:16]wPrintStart [23:47:16]Write to MH i2c: 01 00 00 A3 6D 10 [23:47:16]Write i2c OK [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: 01 [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: 01 07 00 [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: 01 07 00 A3 6D 00 00 00 00 00 FF 0F 25 [23:47:16]RasterBufferAndPrint [23:47:16]line Счет N : (1)347453 [23:47:16]line ИНН: 02508201610067 [23:47:16]line Контрольно-Кассовый Чек [23:47:16]line ПРОДАЖА [23:47:16]line ТРК (МРК, ГНК) : 21 [23:47:16]line Товар: 2710194210 [23:47:16]line ДТ-К-5 [23:47:16]line 6.910 * 72.40 [23:47:16]line = 500.28 [23:47:16]line НДС 12% НСП 1% [23:47:16]line > о реализуемом товаре [23:47:16]line ИТОГО: 500.28 [23:47:16]line НСП 1% : 4.43 [23:47:16]line НДС 12% : 53.13 [23:47:16]line Наличными: 0.00 [23:47:16]line Безнал.: 500.28 [23:47:16]line Место: АЗС № 108 "Партнер Нефть" [23:47:16]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:47:16]line СНО: Общий режим [23:47:16]line Чек 291 13.04.2024 23:47 [23:47:16]line Смена: 115 ФФД: 1.0 [23:47:16]line ЗНМ: 0300000027 [23:47:16]line РНМ: 0000138879044617 [23:47:16]line Версия ККМ: 001 [23:47:16]line Платежная система: АКБ Кыргызстан [23:47:16]line ФМ: 0000000000963154 [23:47:16]line ФД: 29084 [23:47:16]line ФПД: 32088859194926 [23:47:16]line 1/tax-web-control/client/api/v1/ticket?date=20240413T234721&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29084&fm=32088859194926&tin=02508201610067®Number=0000138879044617&sum=50028 [23:47:16]OFD Sender: Processing packet 29084 [packets to send 8, broken 7] [23:47:16]ProducePacketName [23:47:16]name=ofd_packets/00029084 [23:47:16]OFD Sender: To server: pG, [23:47:16]CommunicateWithHost lk.salyk.kg:30040 [23:47:16]ConnectInit lk.salyk.kg [23:47:16]written 0, free lines is 4095 [23:47:16]Connected sock=10 [23:47: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 31 35 34 0C 01 00 00 06 47 04 01 97 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 89 19 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9C 71 00 00 35 04 06 00 1D 2F 45 0D B6 2E 30 A0 52 C4 60 2C C5 A5 [23:47:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 99 47 47 00 D2 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9C 71 00 00 F4 03 04 00 2F C4 1A 66 B6 04 01 00 00 42 62 4D 09 B7 1F EA D3 [23:47:17]CommunicateWithHost err = 0 [23:47:17]CheckOFDResponse [23:47:17]1017 (14) - 77093643461234 [23:47:17]1041 (16) - 0000000000963154 [23:47:17]1040 (4) - 29084 [23:47:17]1012 (4) - 13.04.2024 17:43 [23:47:17]1206 (1) - 0 [23:47:17]OFD Sender: Remove packet 29084 [23:47:17]ProducePacketName [23:47:17]name=ofd_packets/00029084 [23:47:17]NVStorageDeleteData [23:47:17]Write to MH i2c: 01 00 00 CC 6D 39 [23:47:17]Write i2c OK [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: 01 [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: 01 07 00 [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: 01 07 00 CC 6D 00 00 00 00 00 E6 0C 32 [23:47:17]RasterBufferAndPrint [23:47:17]line [23:47:17]line [23:47:17]line [23:47:17]line [23:47:17]line [23:47:17]written 0, free lines is 3311 [23:47:17]MH_Cut [23:47:17]Write to MH i2c: D1 01 00 D3 6D 01 12 [23:47:17]Write i2c OK [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: D1 [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: D1 01 00 [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: D1 01 00 D3 6D 00 11 [23:47:17]Write to MH i2c: 01 00 00 D4 6D 41 [23:47:17]Write i2c OK [23:47:17]MH_I2C_Read... [23:47:17]OFD Sender: No OFD packet to send [23:47:18]*** Cut start [23:47:18]*** Partial cut [23:47:18]*** CUTSNS_PIN = 1 [23:47:18]*** CUTSNS_PIN = 0 [23:47:18]*** Brake cut motor [23:47:18]Read from MH i2c: 01 [23:47:18]MH_I2C_Read... [23:47:18]*** Stop cut motor [23:47:18]*** Cut end [23:47:18]Read from MH i2c: 01 07 00 [23:47:18]MH_I2C_Read... [23:47:18]Read from MH i2c: 01 07 00 D4 6D 00 00 00 00 00 FF 0F 56 [23:47:18]process_action close_receipt done [23:47:18]requested_data is exist [23:47:18]produce_requested_data [23:47:18]requested_item fm.sn is exist - process it [23:47:18]wFMCommunicate request_size=4 [23:47:18]MH_SAM_APDU [23:47:18]CAPDU: 80 11 00 00 [23:47:18]Write to MH i2c: E2 08 00 D5 6D 80 11 00 00 00 00 00 00 BC [23:47:18]Write i2c OK [23:47:18]MH_I2C_Read... [23:47:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:18]Read from MH i2c: E2 [23:47:18]MH_I2C_Read... [23:47:18]Read from MH i2c: E2 17 00 [23:47:18]MH_I2C_Read... [23:47:18]Read from MH i2c: E2 17 00 D5 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0B [23:47:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:47:18]wFMCommunicate OK [23:47:18]requested_item fd.num is exist - process it [23:47:18]SAM_PROTO_GetFieldsCounters [23:47:18]wFMCommunicate request_size=4 [23:47:18]MH_SAM_APDU [23:47:18]CAPDU: 80 13 00 00 [23:47:18]Write to MH i2c: E2 08 00 D6 6D 80 13 00 00 00 00 00 00 BF [23:47:18]Write i2c OK [23:47:18]MH_I2C_Read... [23:47:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:18]Read from MH i2c: E2 [23:47:18]MH_I2C_Read... [23:47:18]Read from MH i2c: E2 62 00 [23:47:18]MH_I2C_Read... [23:47:18]Read from MH i2c: E2 62 00 D6 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9C 71 00 00 0E 04 04 00 73 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 E9 [23:47: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9C 71 00 00 0E 04 04 00 73 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 [23:47:18]wFMCommunicate OK [23:47:18]SAM_PROTO_GetFieldsCounters done [23:47:18]requested_item shift.num is exist - process it [23:47:18]requested_item shift.opened is exist - process it [23:47:18]req_shift_opened [23:47:18]FM_GetShiftState [23:47:18]SAM_PROTO_GetShiftState [23:47:18]wFMCommunicate request_size=4 [23:47:18]MH_SAM_APDU [23:47:18]CAPDU: 80 13 01 00 [23:47:18]Write to MH i2c: E2 08 00 D7 6D 80 13 01 00 00 00 00 00 C1 [23:47:18]Write i2c OK [23:47:18]MH_I2C_Read... [23:47:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:18]Read from MH i2c: E2 [23:47:18]MH_I2C_Read... [23:47:18]Read from MH i2c: E2 0E 00 [23:47:18]MH_I2C_Read... [23:47:18]Read from MH i2c: E2 0E 00 D7 6D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 DA [23:47:18]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:47:18]wFMCommunicate OK [23:47:18]SAM_PROTO_GetShiftState done [23:47:18]FM_GetShiftState done [23:47:18]req_shift_opened done [23:47:18]requested_item shift.open_date is exist - process it [23:47:18]req_shift_open_date [23:47:18]req_shift_open_date done [23:47:18]produce_requested_data done [23:47:18]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29084,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [23:47:18]process_action_free close_receipt [23:47:18]json_value_free [23:47:18]json_value_free done [23:47:18]process_json_proto returns [23:47:18]Send response to host [23:47:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29084,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [23:47:18]free response buf [23:47:18]execute_script done [23:47:18]execute_script returns [23:47:18]free content buf [23:47:18]Sock 9.Close socket [23:47:18]Sock 9.Thread stoped [23:47:22]OFD Sender: No OFD packet to send [23:47:27]OFD Sender: No OFD packet to send [23:47:32]OFD Sender: No OFD packet to send [23:47:37]OFD Sender: No OFD packet to send [23:47:42]OFD Sender: No OFD packet to send [23:47:47]OFD Sender: No OFD packet to send [23:47:52]OFD Sender: No OFD packet to send [23:47:57]OFD Sender: No OFD packet to send [23:48:02]OFD Sender: No OFD packet to send [23:48:07]OFD Sender: No OFD packet to send [23:48:12]OFD Sender: No OFD packet to send [23:48:17]OFD Sender: No OFD packet to send [23:48:22]OFD Sender: No OFD packet to send [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:42]OFD Sender: No OFD packet to send [23:48:47]OFD Sender: No OFD packet to send [23:48:52]OFD Sender: No OFD packet to send [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:42]OFD Sender: No OFD packet to send [23:49:47]OFD Sender: No OFD packet to send [23:49:52]OFD Sender: No OFD packet to send [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:17]OFD Sender: No OFD packet to send [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:37]OFD Sender: No OFD packet to send [23:51:42]OFD Sender: No OFD packet to send [23:51:47]OFD Sender: No OFD packet to send [23:51:52]OFD Sender: No OFD packet to send [23:51:57]OFD Sender: No OFD packet to send [23:52:02]OFD Sender: No OFD packet to send [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:17]OFD Sender: No OFD packet to send [23:52:22]OFD Sender: No OFD packet to send [23:52:27]OFD Sender: No OFD packet to send [23:52:32]OFD Sender: No OFD packet to send [23:52:37]OFD Sender: No OFD packet to send [23:52:42]OFD Sender: No OFD packet to send [23:52:47]OFD Sender: No OFD packet to send [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:02]OFD Sender: No OFD packet to send [23:53:07]OFD Sender: No OFD packet to send [23:53:12]OFD Sender: No OFD packet to send [23:53:17]OFD Sender: No OFD packet to send [23:53:22]OFD Sender: No OFD packet to send [23:53:27]OFD Sender: No OFD packet to send [23:53:32]OFD Sender: No OFD packet to send [23:53:37]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:57]OFD Sender: No OFD packet to send [23:54:02]OFD Sender: No OFD packet to send [23:54:07]OFD Sender: No OFD packet to send [23:54:12]OFD Sender: No OFD packet to send [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:37]OFD Sender: No OFD packet to send [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:52]OFD Sender: No OFD packet to send [23:54:56]accept exits with 7 [23:54:56]New connection [23:54:56]New thread 3066785124 created [23:54:56]Thread 3066928484 joined [23:54:56]Waiting for new connection... [23:54:56] Sock 7.Parse request [23:54:56]Sock 7.Check first char [23:54:56]Sock 7.First char is OK [23:54:56]request: POST /json_proto HTTP/1.0 [23:54:56]Method: POST [23:54:56]URL: /json_proto [23:54:56]Method is POST - this is cgi request [23:54:56]url: /json_proto [23:54:56]query_string will be loaded in cgi processing [23:54:56]execute_cgi json_proto POST (null) [23:54:56]execute_cgi path=json_proto method=POST [23:54:56]POST find Content-Length [23:54:56]Host: 172.17.33.3:8080 [23:54:56]Content-Length: 682 [23:54:56]Content-Type: application/json [23:54:56] [23:54:56]POST finish read [23:54:56]Found Content-Length = 682 [23:54:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347454", "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" : 64.30, "quantity" : 15.560, "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" ] } } [23:54:56]execute_script... [23:54:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347454", "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" : 64.30, "quantity" : 15.560, "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" ] } } [23:54:56]POST & json_proto [23:54:56]process_json_proto [23:54:56]json parsed OK: [23:54:56]protocol is kg_v1.0 [23:54:56]action value=close_receipt [23:54:56]process_action close_receipt [23:54:56]cmd_close_receipt [23:54:56]MH_GetDate [23:54:56]Write to MH i2c: F0 00 00 D8 6D 34 [23:54:56]Write i2c OK [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: F0 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: F0 09 00 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: F0 09 00 D8 6D 00 57 1B 1B 66 23 5B 8F 65 A2 [23:54:56]GetLastDocTimeStamp 1713052041 [23:54:56]current date 1713052503 [23:54:56]FM_GetShiftState [23:54:56]SAM_PROTO_GetShiftState [23:54:56]wFMCommunicate request_size=4 [23:54:56]MH_SAM_APDU [23:54:56]CAPDU: 80 13 01 00 [23:54:56]Write to MH i2c: E2 08 00 D9 6D 80 13 01 00 00 00 00 00 C3 [23:54:56]Write i2c OK [23:54:56]MH_I2C_Read... [23:54:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:56]Read from MH i2c: E2 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: E2 0E 00 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: E2 0E 00 D9 6D 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 DC [23:54:56]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:54:56]wFMCommunicate OK [23:54:56]SAM_PROTO_GetShiftState done [23:54:56]FM_GetShiftState done [23:54:56]opened in 1712967615 [23:54:56]opened+sec_in_day 1713054015 [23:54:56]quantity*price = 100050 [23:54:56]sum+1 = 100052 [23:54:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 292 13.04.2024 23:55 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29085 ФПД: 257663057151386 1/tax-web-control/client/api/v1/ticket?date=20240413T235503&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29085&fm=257663057151386&tin=02508201610067®Number=0000138879044617&sum=100000 [23:54:57]StoreToDocumentArchive [23:54:57]shift 115 fd 29085 [23:54:57]save to /storage/0115/doc_00029085 [23:54:57]save last doc name /storage/0115/doc_00029085 to /storage/kkm_last_doc_name [23:54:57]save OK [23:54:57]Clear old archive folders... [23:54:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:54:57]tlvbuf is 0120E8A0 [23:54:57]SAM_PROTO_ClearQueue [23:54:57]wFMCommunicate request_size=4 [23:54:57]MH_SAM_APDU [23:54:57]CAPDU: 80 09 00 00 [23:54:57]Write to MH i2c: E2 08 00 E6 6D 80 09 00 00 00 00 00 00 C5 [23:54:57]Write i2c OK [23:54:57]MH_I2C_Read... [23:54:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:54:57]Read from MH i2c: E2 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: E2 03 00 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: E2 03 00 E6 6D 00 90 00 C7 [23:54:57]RAPDU: 90 00 [23:54:57]wFMCommunicate OK [23:54:57]SAM_PROTO_ClearQueue done [23:54:57]KKMCreateOFDPacket [23:54:57]OFDProtocolAddRootSTLVToBuf [23:54:57]FM_MakeSignedData [23:54:57]FM_MakeSignedData [23:54:57]SAM_PROTO_SignData [23:54:57]wFMCommunicate request_size=4 [23:54:57]MH_SAM_APDU [23:54:57]CAPDU: 80 0D 01 02 [23:54:57]Write to MH i2c: E2 08 00 E7 6D 80 0D 01 02 00 00 00 00 CD [23:54:57]Write i2c OK [23:54:57]MH_I2C_Read... [23:54:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:54:57]Read from MH i2c: E2 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: E2 03 00 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: E2 03 00 E7 6D 00 90 00 C8 [23:54:57]RAPDU: 90 00 [23:54:57]wFMCommunicate OK [23:54:57]wFMCommunicate request_size=255 [23:54:57]MH_SAM_APDU [23:54: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 57 1B 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9D 71 00 00 35 04 06 00 EA [23:54:57]Write to MH i2c: E2 02 01 E8 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 57 1B 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9D 71 00 00 35 04 06 00 EA 00 00 7C [23:54:57]Write i2c OK [23:54:57]MH_I2C_Read... [23:54:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:57]Read from MH i2c: E2 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: E2 03 00 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: E2 03 00 E8 6D 00 90 00 C9 [23:54:57]RAPDU: 90 00 [23:54:57]wFMCommunicate OK [23:54:57]wFMCommunicate request_size=10 [23:54:57]MH_SAM_APDU [23:54:57]CAPDU: 80 0D 02 02 05 57 DA FE 45 9A [23:54:57]Write to MH i2c: E2 0D 00 E9 6D 80 0D 02 02 05 00 57 DA FE 45 9A 00 00 E8 [23:54:57]Write i2c OK [23:54:57]MH_I2C_Read... [23:54:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:57]Read from MH i2c: E2 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: E2 03 00 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: E2 03 00 E9 6D 00 90 00 CA [23:54:57]RAPDU: 90 00 [23:54:57]wFMCommunicate OK [23:54:57]wFMCommunicate request_size=4 [23:54:57]MH_SAM_APDU [23:54:57]CAPDU: 80 0D 03 02 [23:54:57]Write to MH i2c: E2 08 00 EA 6D 80 0D 03 02 00 00 00 00 D2 [23:54:57]Write i2c OK [23:54:57]MH_I2C_Read... [23:54:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:54:57]Read from MH i2c: E2 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: E2 0B 00 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: E2 0B 00 EA 6D 00 C3 63 05 05 76 A5 06 3F 90 00 63 [23:54:57]RAPDU: C3 63 05 05 76 A5 06 3F 90 00 [23:54:57]wFMCommunicate OK [23:54:57]SAM_PROTO_SignData done [23:54:57]FM_MakeSignedData done [23:54:57]CreateOFDProtocolMessage [23:54:57]wFMCommunicate request_size=4 [23:54:57]MH_SAM_APDU [23:54:57]CAPDU: 80 11 00 00 [23:54:57]Write to MH i2c: E2 08 00 EB 6D 80 11 00 00 00 00 00 00 D2 [23:54:57]Write i2c OK [23:54:57]MH_I2C_Read... [23:54:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:57]Read from MH i2c: E2 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: E2 17 00 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: E2 17 00 EB 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 21 [23:54:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:54:57]wFMCommunicate OK [23:54:57]CreateOFDProtocolMessage done [23:54:57]OFDSenderStorePacket 29085 [23:54:57]StoreOFDPacket docnum=29085 [23:54:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 55 7B 07 01 25 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 57 1B 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9D 71 00 00 35 04 06 00 EA 57 DA FE 45 9A C3 63 05 05 76 A5 06 3F [23:54:57]CheckFolder [23:54:57]dirname=/storage/ofd_packets [23:54:57]CheckFolder done [23:54:57]ProducePacketName [23:54:57]name=ofd_packets/00029085 [23:54:57]NVStorageSaveData ofd_packets/00029085 [23:54:57]File name is /storage/ofd_packets/00029085 [23:54:57]Write 301 bytes [23:54:57]NVStorageSaveData done [23:54:57]OFDSenderStorePacket done [23:54:57]KKMCreateOFDPacket done [23:54:57]NVStorageSaveData kkm_last_timestamp [23:54:57]File name is /storage/kkm_last_timestamp [23:54:57]Write 4 bytes [23:54:57]NVStorageSaveData done [23:54:57]ExternCall_PrintAddStr [23:54:57]wPrintStart [23:54:57]Write to MH i2c: 01 00 00 EC 6D 59 [23:54:57]OFD Sender: Processing packet 29085 [packets to send 8, broken 7] [23:54:57]ProducePacketName [23:54:57]name=ofd_packets/00029085 [23:54:57]OFD Sender: To server: pG, [23:54:57]CommunicateWithHost lk.salyk.kg:30040 [23:54:57]ConnectInit lk.salyk.kg [23:54:57]Write i2c OK [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: 01 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: 01 07 00 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: 01 07 00 EC 6D 00 00 00 00 00 FF 0F 6E [23:54:57]RasterBufferAndPrint [23:54:57]line Счет N : (1)347454 [23:54:57]line ИНН: 02508201610067 [23:54:57]line Контрольно-Кассовый Чек [23:54:57]line ПРОДАЖА [23:54:57]line ТРК (МРК, ГНК) : 32 [23:54:57]line Товар: 2710124130 [23:54:57]line Аи-92-К-5 [23:54:57]line 15.560 * 64.30 [23:54:57]line = 1000.51 [23:54:57]line НДС 12% НСП 1% [23:54:57]line > о реализуемом товаре [23:54:57]line ОКРУГЛЕНИЕ: -0.51 [23:54:57]line ИТОГО: 1000.00 [23:54:57]line Внесено: 1000.00 [23:54:57]line СДАЧА: 0.00 [23:54:57]line НСП 1% : 8.85 [23:54:57]line НДС 12% : 106.25 [23:54:57]line Наличными: 1000.00 [23:54:57]line Безнал.: 0.00 [23:54:57]line Место: АЗС № 108 "Партнер Нефть" [23:54:57]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:54:57]line СНО: Общий режим [23:54:57]line Чек 292 13.04.2024 23:55 [23:54:57]line Смена: 115 ФФД: 1.0 [23:54:57]line ЗНМ: 0300000027 [23:54:57]line РНМ: 0000138879044617 [23:54:57]line Версия ККМ: 001 [23:54:57]line ФМ: 0000000000963154 [23:54:57]line ФД: 29085 [23:54:57]line ФПД: 257663057151386 [23:54:57]line 1/tax-web-control/client/api/v1/ticket?date=20240413T235503&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29085&fm=257663057151386&tin=02508201610067®Number=0000138879044617&sum=100000 [23:54:58]Connected sock=10 [23:54:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 55 7B 07 01 25 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 57 1B 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9D 71 00 00 35 04 06 00 EA 57 DA FE 45 9A C3 63 05 05 76 A5 06 3F [23:54:58]written 0, free lines is 4095 [23:54:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 90 C9 47 00 33 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 31 35 34 10 04 04 00 9D 71 00 00 F4 03 04 00 FC C5 1A 66 B6 04 01 00 00 BD 95 97 91 54 EF D9 EA [23:54:58]CommunicateWithHost err = 0 [23:54:58]CheckOFDResponse [23:54:58]1017 (14) - 77093643461234 [23:54:58]1041 (16) - 0000000000963154 [23:54:58]1040 (4) - 29085 [23:54:58]1012 (4) - 13.04.2024 17:50 [23:54:58]1206 (1) - 0 [23:54:58]OFD Sender: Remove packet 29085 [23:54:58]ProducePacketName [23:54:58]name=ofd_packets/00029085 [23:54:58]NVStorageDeleteData [23:54:58]Write to MH i2c: 01 00 00 16 6E 84 [23:54:58]Write i2c OK [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: 01 [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: 01 07 00 [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: 01 07 00 16 6E 00 00 00 00 00 C3 0C 5A [23:54:58]RasterBufferAndPrint [23:54:58]line [23:54:58]line [23:54:58]line [23:54:58]line [23:54:58]line [23:54:58]written 0, free lines is 3272 [23:54:58]MH_Cut [23:54:58]Write to MH i2c: D1 01 00 1D 6E 01 5D [23:54:58]Write i2c OK [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: D1 [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: D1 01 00 [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: D1 01 00 1D 6E 00 5C [23:54:58]Write to MH i2c: 01 00 00 1E 6E 8C [23:54:58]Write i2c OK [23:54:58]MH_I2C_Read... [23:54:58]OFD Sender: No OFD packet to send [23:54:59]*** Cut start [23:54:59]*** Partial cut [23:54:59]*** CUTSNS_PIN = 1 [23:54:59]*** CUTSNS_PIN = 0 [23:54:59]*** Brake cut motor [23:55:00]Read from MH i2c: 01 [23:55:00]MH_I2C_Read... [23:55:00]*** Stop cut motor [23:55:00]*** Cut end [23:55:00]Read from MH i2c: 01 07 00 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: 01 07 00 1E 6E 00 00 00 00 00 FF 0F A1 [23:55:00]process_action close_receipt done [23:55:00]requested_data is exist [23:55:00]produce_requested_data [23:55:00]requested_item fm.sn is exist - process it [23:55:00]wFMCommunicate request_size=4 [23:55:00]MH_SAM_APDU [23:55:00]CAPDU: 80 11 00 00 [23:55:00]Write to MH i2c: E2 08 00 1F 6E 80 11 00 00 00 00 00 00 07 [23:55:00]Write i2c OK [23:55:00]MH_I2C_Read... [23:55:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:00]Read from MH i2c: E2 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: E2 17 00 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: E2 17 00 1F 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 56 [23:55:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:55:00]wFMCommunicate OK [23:55:00]requested_item fd.num is exist - process it [23:55:00]SAM_PROTO_GetFieldsCounters [23:55:00]wFMCommunicate request_size=4 [23:55:00]MH_SAM_APDU [23:55:00]CAPDU: 80 13 00 00 [23:55:00]Write to MH i2c: E2 08 00 20 6E 80 13 00 00 00 00 00 00 0A [23:55:00]Write i2c OK [23:55:00]MH_I2C_Read... [23:55:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:00]Read from MH i2c: E2 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: E2 62 00 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: E2 62 00 20 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9D 71 00 00 0E 04 04 00 73 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 38 [23:55:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9D 71 00 00 0E 04 04 00 73 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 [23:55:00]wFMCommunicate OK [23:55:00]SAM_PROTO_GetFieldsCounters done [23:55:00]requested_item shift.num is exist - process it [23:55:00]requested_item shift.opened is exist - process it [23:55:00]req_shift_opened [23:55:00]FM_GetShiftState [23:55:00]SAM_PROTO_GetShiftState [23:55:00]wFMCommunicate request_size=4 [23:55:00]MH_SAM_APDU [23:55:00]CAPDU: 80 13 01 00 [23:55:00]Write to MH i2c: E2 08 00 21 6E 80 13 01 00 00 00 00 00 0C [23:55:00]Write i2c OK [23:55:00]MH_I2C_Read... [23:55:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:00]Read from MH i2c: E2 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: E2 0E 00 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: E2 0E 00 21 6E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 25 [23:55:00]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:55:00]wFMCommunicate OK [23:55:00]SAM_PROTO_GetShiftState done [23:55:00]FM_GetShiftState done [23:55:00]req_shift_opened done [23:55:00]requested_item shift.open_date is exist - process it [23:55:00]req_shift_open_date [23:55:00]req_shift_open_date done [23:55:00]produce_requested_data done [23:55:00]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29085,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [23:55:00]process_action_free close_receipt [23:55:00]json_value_free [23:55:00]json_value_free done [23:55:00]process_json_proto returns [23:55:00]Send response to host [23:55:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29085,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [23:55:00]free response buf [23:55:00]execute_script done [23:55:00]execute_script returns [23:55:00]free content buf [23:55:00]Sock 7.Close socket [23:55:00]Sock 7.Thread stoped [23:55:03]OFD Sender: No OFD packet to send [23:55:08]OFD Sender: No OFD packet to send [23:55:13]OFD Sender: No OFD packet to send [23:55:18]OFD Sender: No OFD packet to send [23:55:23]OFD Sender: No OFD packet to send [23:55:28]OFD Sender: No OFD packet to send [23:55:33]OFD Sender: No OFD packet to send [23:55:38]OFD Sender: No OFD packet to send [23:55:43]OFD Sender: No OFD packet to send [23:55:48]OFD Sender: No OFD packet to send [23:55:53]OFD Sender: No OFD packet to send [23:55:58]OFD Sender: No OFD packet to send [23:56:03]OFD Sender: No OFD packet to send [23:56:08]OFD Sender: No OFD packet to send [23:56:13]OFD Sender: No OFD packet to send [23:56:18]OFD Sender: No OFD packet to send [23:56:23]OFD Sender: No OFD packet to send [23:56:28]OFD Sender: No OFD packet to send [23:56:33]OFD Sender: No OFD packet to send [23:56:38]OFD Sender: No OFD packet to send [23:56:43]OFD Sender: No OFD packet to send [23:56:48]OFD Sender: No OFD packet to send [23:56:53]OFD Sender: No OFD packet to send [23:56:58]OFD Sender: No OFD packet to send [23:57:03]OFD Sender: No OFD packet to send [23:57:08]OFD Sender: No OFD packet to send [23:57:13]OFD Sender: No OFD packet to send [23:57:18]OFD Sender: No OFD packet to send [23:57:23]OFD Sender: No OFD packet to send [23:57:28]OFD Sender: No OFD packet to send [23:57:33]OFD Sender: No OFD packet to send [23:57:38]OFD Sender: No OFD packet to send [23:57:43]OFD Sender: No OFD packet to send [23:57:48]OFD Sender: No OFD packet to send [23:57:53]OFD Sender: No OFD packet to send [23:57:58]OFD Sender: No OFD packet to send [23:58:03]OFD Sender: No OFD packet to send [23:58:08]OFD Sender: No OFD packet to send [23:58:13]OFD Sender: No OFD packet to send [23:58:18]OFD Sender: No OFD packet to send [23:58:23]OFD Sender: No OFD packet to send [23:58:28]OFD Sender: No OFD packet to send [23:58:33]accept exits with 9 [23:58:33]New connection [23:58:33]New thread 3066928484 created [23:58:33]Thread 3066785124 joined [23:58:33]Waiting for new connection... [23:58:33] Sock 9.Parse request [23:58:33]Sock 9.Check first char [23:58:33]Sock 9.First char is OK [23:58:33]request: POST /json_proto HTTP/1.0 [23:58:33]Method: POST [23:58:33]URL: /json_proto [23:58:33]Method is POST - this is cgi request [23:58:33]url: /json_proto [23:58:33]query_string will be loaded in cgi processing [23:58:33]execute_cgi json_proto POST (null) [23:58:33]execute_cgi path=json_proto method=POST [23:58:33]POST find Content-Length [23:58:33]Host: 172.17.33.3:8080 [23:58:33]Content-Length: 675 [23:58:33]Content-Type: application/json [23:58:33] [23:58:33]POST finish read [23:58:33]Found Content-Length = 675 [23:58:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:58:33]execute_script... [23:58: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)347455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:58:33]POST & json_proto [23:58:33]process_json_proto [23:58:33]json parsed OK: [23:58:33]protocol is kg_v1.0 [23:58:33]action value=close_receipt [23:58:33]process_action close_receipt [23:58:33]cmd_close_receipt [23:58:33]MH_GetDate [23:58:33]Write to MH i2c: F0 00 00 22 6E 7F [23:58:33]Write i2c OK [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: F0 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: F0 09 00 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: F0 09 00 22 6E 00 31 1C 1B 66 23 5B 8F 65 C8 [23:58:33]GetLastDocTimeStamp 1713052503 [23:58:33]current date 1713052721 [23:58:33]FM_GetShiftState [23:58:33]SAM_PROTO_GetShiftState [23:58:33]wFMCommunicate request_size=4 [23:58:33]MH_SAM_APDU [23:58:33]CAPDU: 80 13 01 00 [23:58:33]Write to MH i2c: E2 08 00 23 6E 80 13 01 00 00 00 00 00 0E [23:58:33]Write i2c OK [23:58:33]MH_I2C_Read... [23:58:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:33]Read from MH i2c: E2 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: E2 0E 00 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: E2 0E 00 23 6E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 27 [23:58:33]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:58:33]wFMCommunicate OK [23:58:33]SAM_PROTO_GetShiftState done [23:58:33]FM_GetShiftState done [23:58:33]opened in 1712967615 [23:58:33]opened+sec_in_day 1713054015 [23:58:33]quantity*price = 100039 [23:58:33]sum+1 = 100041 [23:58:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 293 13.04.2024 23:58 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29086 ФПД: 151786278840441 1/tax-web-control/client/api/v1/ticket?date=20240413T235841&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29086&fm=151786278840441&tin=02508201610067®Number=0000138879044617&sum=100000 [23:58:35]StoreToDocumentArchive [23:58:35]shift 115 fd 29086 [23:58:35]save to /storage/0115/doc_00029086 [23:58:35]save last doc name /storage/0115/doc_00029086 to /storage/kkm_last_doc_name [23:58:35]save OK [23:58:35]Clear old archive folders... [23:58:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:58:35]tlvbuf is 01224400 [23:58:35]SAM_PROTO_ClearQueue [23:58:35]wFMCommunicate request_size=4 [23:58:35]MH_SAM_APDU [23:58:35]CAPDU: 80 09 00 00 [23:58:35]Write to MH i2c: E2 08 00 30 6E 80 09 00 00 00 00 00 00 10 [23:58:35]Write i2c OK [23:58:35]MH_I2C_Read... [23:58:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:58:35]Read from MH i2c: E2 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 03 00 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 03 00 30 6E 00 90 00 12 [23:58:35]RAPDU: 90 00 [23:58:35]wFMCommunicate OK [23:58:35]SAM_PROTO_ClearQueue done [23:58:35]KKMCreateOFDPacket [23:58:35]OFDProtocolAddRootSTLVToBuf [23:58:35]FM_MakeSignedData [23:58:35]FM_MakeSignedData [23:58:35]SAM_PROTO_SignData [23:58:35]wFMCommunicate request_size=4 [23:58:35]MH_SAM_APDU [23:58:35]CAPDU: 80 0D 01 02 [23:58:35]Write to MH i2c: E2 08 00 31 6E 80 0D 01 02 00 00 00 00 18 [23:58:35]Write i2c OK [23:58:35]MH_I2C_Read... [23:58:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:58:35]Read from MH i2c: E2 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 03 00 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 03 00 31 6E 00 90 00 13 [23:58:35]RAPDU: 90 00 [23:58:35]wFMCommunicate OK [23:58:35]wFMCommunicate request_size=255 [23:58:35]MH_SAM_APDU [23:58:35]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 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 31 1C 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9E 71 00 00 35 04 06 00 [23:58:35]Write to MH i2c: E2 02 01 32 6E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 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 31 1C 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9E 71 00 00 35 04 06 00 00 00 CB [23:58:35]Write i2c OK [23:58:35]MH_I2C_Read... [23:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:35]Read from MH i2c: E2 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 03 00 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 03 00 32 6E 00 90 00 14 [23:58:35]RAPDU: 90 00 [23:58:35]wFMCommunicate OK [23:58:35]wFMCommunicate request_size=11 [23:58:35]MH_SAM_APDU [23:58:35]CAPDU: 80 0D 02 02 06 8A 0C 7F 3B 68 79 [23:58:35]Write to MH i2c: E2 0E 00 33 6E 80 0D 02 02 06 00 8A 0C 7F 3B 68 79 00 00 58 [23:58:35]Write i2c OK [23:58:35]MH_I2C_Read... [23:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:35]Read from MH i2c: E2 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 03 00 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 03 00 33 6E 00 90 00 15 [23:58:35]RAPDU: 90 00 [23:58:35]wFMCommunicate OK [23:58:35]wFMCommunicate request_size=4 [23:58:35]MH_SAM_APDU [23:58:35]CAPDU: 80 0D 03 02 [23:58:35]Write to MH i2c: E2 08 00 34 6E 80 0D 03 02 00 00 00 00 1D [23:58:35]Write i2c OK [23:58:35]MH_I2C_Read... [23:58:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:58:35]Read from MH i2c: E2 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 0B 00 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 0B 00 34 6E 00 D2 90 34 1F AD 74 C4 1A 90 00 D2 [23:58:35]RAPDU: D2 90 34 1F AD 74 C4 1A 90 00 [23:58:35]wFMCommunicate OK [23:58:35]SAM_PROTO_SignData done [23:58:35]FM_MakeSignedData done [23:58:35]CreateOFDProtocolMessage [23:58:35]wFMCommunicate request_size=4 [23:58:35]MH_SAM_APDU [23:58:35]CAPDU: 80 11 00 00 [23:58:35]Write to MH i2c: E2 08 00 35 6E 80 11 00 00 00 00 00 00 1D [23:58:35]Write i2c OK [23:58:35]MH_I2C_Read... [23:58:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:35]Read from MH i2c: E2 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 17 00 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 17 00 35 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6C [23:58:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:58:35]wFMCommunicate OK [23:58:35]CreateOFDProtocolMessage done [23:58:35]OFDSenderStorePacket 29086 [23:58:35]StoreOFDPacket docnum=29086 [23:58:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 81 29 08 01 A6 AA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 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 31 1C 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9E 71 00 00 35 04 06 00 8A 0C 7F 3B 68 79 D2 90 34 1F AD 74 C4 1A [23:58:35]CheckFolder [23:58:35]dirname=/storage/ofd_packets [23:58:35]CheckFolder done [23:58:35]ProducePacketName [23:58:35]name=ofd_packets/00029086 [23:58:35]NVStorageSaveData ofd_packets/00029086 [23:58:35]File name is /storage/ofd_packets/00029086 [23:58:35]Write 302 bytes [23:58:35]NVStorageSaveData done [23:58:35]OFDSenderStorePacket done [23:58:35]KKMCreateOFDPacket done [23:58:35]NVStorageSaveData kkm_last_timestamp [23:58:35]File name is /storage/kkm_last_timestamp [23:58:35]Write 4 bytes [23:58:35]NVStorageSaveData done [23:58:35]ExternCall_PrintAddStr [23:58:35]wPrintStart [23:58:35]Write to MH i2c: 01 00 00 36 6E A4 [23:58:35]Write i2c OK [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: 01 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: 01 07 00 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: 01 07 00 36 6E 00 00 00 00 00 FF 0F B9 [23:58:35]RasterBufferAndPrint [23:58:35]line Счет N : (1)347455 [23:58:35]line ИНН: 02508201610067 [23:58:35]line Контрольно-Кассовый Чек [23:58:35]line ПРОДАЖА [23:58:35]line ТРК (МРК, ГНК) : 31 [23:58:35]line Товар: 2710124130 [23:58:35]line SUPER-92-К-5 [23:58:35]line 15.320 * 65.30 [23:58:35]line = 1000.40 [23:58:35]line НДС 12% НСП 1% [23:58:35]line > о реализуемом товаре [23:58:35]line ОКРУГЛЕНИЕ: -0.40 [23:58:35]line ИТОГО: 1000.00 [23:58:35]line Внесено: 1000.00 [23:58:35]line СДАЧА: 0.00 [23:58:35]line НСП 1% : 8.85 [23:58:35]line НДС 12% : 106.24 [23:58:35]line Наличными: 1000.00 [23:58:35]line Безнал.: 0.00 [23:58:35]line Место: АЗС № 108 "Партнер Нефть" [23:58:35]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [23:58:35]line СНО: Общий режим [23:58:35]line Чек 293 13.04.2024 23:58 [23:58:35]line Смена: 115 ФФД: 1.0 [23:58:35]line ЗНМ: 0300000027 [23:58:35]line РНМ: 0000138879044617 [23:58:35]line Версия ККМ: 001 [23:58:35]line ФМ: 0000000000963154 [23:58:35]line ФД: 29086 [23:58:35]line ФПД: 151786278840441 [23:58:35]line 1/tax-web-control/client/api/v1/ticket?date=20240413T235841&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29086&fm=151786278840441&tin=02508201610067®Number=0000138879044617&sum=100000 [23:58:35]OFD Sender: Processing packet 29086 [packets to send 8, broken 7] [23:58:35]ProducePacketName [23:58:35]name=ofd_packets/00029086 [23:58:35]OFD Sender: To server: pG, [23:58:35]CommunicateWithHost lk.salyk.kg:30040 [23:58:35]ConnectInit lk.salyk.kg [23:58:35]written 0, free lines is 4095 [23:58:35]Connected sock=10 [23:58: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 31 35 34 10 01 00 00 81 29 08 01 A6 AA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 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 31 1C 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9E 71 00 00 35 04 06 00 8A 0C 7F 3B 68 79 D2 90 34 1F AD 74 C4 1A [23:58:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 24 5F 47 00 61 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 31 35 34 10 04 04 00 9E 71 00 00 F4 03 04 00 D6 C6 1A 66 B6 04 01 00 00 9C 54 EA 90 59 31 28 B8 [23:58:36]CommunicateWithHost err = 0 [23:58:36]CheckOFDResponse [23:58:36]1017 (14) - 77093643461234 [23:58:36]1041 (16) - 0000000000963154 [23:58:36]1040 (4) - 29086 [23:58:36]1012 (4) - 13.04.2024 17:54 [23:58:36]1206 (1) - 0 [23:58:36]OFD Sender: Remove packet 29086 [23:58:36]ProducePacketName [23:58:36]name=ofd_packets/00029086 [23:58:36]NVStorageDeleteData [23:58:36]Write to MH i2c: 01 00 00 60 6E CE [23:58:36]Write i2c OK [23:58:36]MH_I2C_Read... [23:58:36]Read from MH i2c: 01 [23:58:36]MH_I2C_Read... [23:58:36]Read from MH i2c: 01 07 00 [23:58:36]MH_I2C_Read... [23:58:36]Read from MH i2c: 01 07 00 60 6E 00 00 00 00 00 C8 0C A9 [23:58:36]RasterBufferAndPrint [23:58:36]line [23:58:36]line [23:58:36]line [23:58:36]line [23:58:36]line [23:58:36]written 0, free lines is 3278 [23:58:36]MH_Cut [23:58:36]Write to MH i2c: D1 01 00 67 6E 01 A7 [23:58:36]Write i2c OK [23:58:36]MH_I2C_Read... [23:58:36]Read from MH i2c: D1 [23:58:36]MH_I2C_Read... [23:58:36]Read from MH i2c: D1 01 00 [23:58:36]MH_I2C_Read... [23:58:36]Read from MH i2c: D1 01 00 67 6E 00 A6 [23:58:36]Write to MH i2c: 01 00 00 68 6E D6 [23:58:36]Write i2c OK [23:58:36]MH_I2C_Read... [23:58:36]OFD Sender: No OFD packet to send [23:58:37]*** Cut start [23:58:37]*** Partial cut [23:58:37]*** CUTSNS_PIN = 1 [23:58:37]*** CUTSNS_PIN = 0 [23:58:37]*** Brake cut motor [23:58:37]Read from MH i2c: 01 [23:58:37]MH_I2C_Read... [23:58:37]*** Stop cut motor [23:58:37]*** Cut end [23:58:37]Read from MH i2c: 01 07 00 [23:58:37]MH_I2C_Read... [23:58:37]Read from MH i2c: 01 07 00 68 6E 00 00 00 00 00 FF 0F EB [23:58:37]process_action close_receipt done [23:58:37]requested_data is exist [23:58:37]produce_requested_data [23:58:37]requested_item fm.sn is exist - process it [23:58:37]wFMCommunicate request_size=4 [23:58:37]MH_SAM_APDU [23:58:37]CAPDU: 80 11 00 00 [23:58:37]Write to MH i2c: E2 08 00 69 6E 80 11 00 00 00 00 00 00 51 [23:58:37]Write i2c OK [23:58:37]MH_I2C_Read... [23:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:37]Read from MH i2c: E2 [23:58:37]MH_I2C_Read... [23:58:37]Read from MH i2c: E2 17 00 [23:58:37]MH_I2C_Read... [23:58:37]Read from MH i2c: E2 17 00 69 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A0 [23:58:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [23:58:37]wFMCommunicate OK [23:58:37]requested_item fd.num is exist - process it [23:58:37]SAM_PROTO_GetFieldsCounters [23:58:37]wFMCommunicate request_size=4 [23:58:37]MH_SAM_APDU [23:58:37]CAPDU: 80 13 00 00 [23:58:37]Write to MH i2c: E2 08 00 6A 6E 80 13 00 00 00 00 00 00 54 [23:58:37]Write i2c OK [23:58:37]MH_I2C_Read... [23:58:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:58:37]Read from MH i2c: E2 [23:58:37]MH_I2C_Read... [23:58:37]Read from MH i2c: E2 62 00 [23:58:37]MH_I2C_Read... [23:58:37]Read from MH i2c: E2 62 00 6A 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9E 71 00 00 0E 04 04 00 73 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 86 [23:58: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9E 71 00 00 0E 04 04 00 73 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 [23:58:37]wFMCommunicate OK [23:58:37]SAM_PROTO_GetFieldsCounters done [23:58:37]requested_item shift.num is exist - process it [23:58:37]requested_item shift.opened is exist - process it [23:58:37]req_shift_opened [23:58:37]FM_GetShiftState [23:58:37]SAM_PROTO_GetShiftState [23:58:37]wFMCommunicate request_size=4 [23:58:37]MH_SAM_APDU [23:58:37]CAPDU: 80 13 01 00 [23:58:37]Write to MH i2c: E2 08 00 6B 6E 80 13 01 00 00 00 00 00 56 [23:58:37]Write i2c OK [23:58:37]MH_I2C_Read... [23:58:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:38]Read from MH i2c: E2 [23:58:38]MH_I2C_Read... [23:58:38]Read from MH i2c: E2 0E 00 [23:58:38]MH_I2C_Read... [23:58:38]Read from MH i2c: E2 0E 00 6B 6E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 6F [23:58:38]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [23:58:38]wFMCommunicate OK [23:58:38]SAM_PROTO_GetShiftState done [23:58:38]FM_GetShiftState done [23:58:38]req_shift_opened done [23:58:38]requested_item shift.open_date is exist - process it [23:58:38]req_shift_open_date [23:58:38]req_shift_open_date done [23:58:38]produce_requested_data done [23:58:38]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29086,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [23:58:38]process_action_free close_receipt [23:58:38]json_value_free [23:58:38]json_value_free done [23:58:38]process_json_proto returns [23:58:38]Send response to host [23:58:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29086,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [23:58:38]free response buf [23:58:38]execute_script done [23:58:38]execute_script returns [23:58:38]free content buf [23:58:38]Sock 9.Close socket [23:58:38]Sock 9.Thread stoped [23:58:41]OFD Sender: No OFD packet to send [23:58:46]OFD Sender: No OFD packet to send [23:58:51]OFD Sender: No OFD packet to send [23:58:56]OFD Sender: No OFD packet to send [23:59:01]OFD Sender: No OFD packet to send [23:59:06]OFD Sender: No OFD packet to send [23:59:11]OFD Sender: No OFD packet to send [23:59:16]OFD Sender: No OFD packet to send [23:59:21]OFD Sender: No OFD packet to send [23:59:26]OFD Sender: No OFD packet to send [23:59:31]OFD Sender: No OFD packet to send [23:59:36]OFD Sender: No OFD packet to send [23:59:41]OFD Sender: No OFD packet to send [23:59:46]OFD Sender: No OFD packet to send [23:59:51]OFD Sender: No OFD packet to send [23:59:56]OFD Sender: No OFD packet to send [00:00:01]OFD Sender: No OFD packet to send [00:00:06]OFD Sender: No OFD packet to send [00:00:11]OFD Sender: No OFD packet to send [00:00:16]OFD Sender: No OFD packet to send [00:00:21]OFD Sender: No OFD packet to send [00:00:26]OFD Sender: No OFD packet to send [00:00:31]OFD Sender: No OFD packet to send [00:00:36]OFD Sender: No OFD packet to send [00:00:41]OFD Sender: No OFD packet to send [00:00:46]OFD Sender: No OFD packet to send [00:00:51]OFD Sender: No OFD packet to send [00:00:56]OFD Sender: No OFD packet to send [00:01:01]OFD Sender: No OFD packet to send [00:01:06]OFD Sender: No OFD packet to send [00:01:11]OFD Sender: No OFD packet to send [00:01:16]OFD Sender: No OFD packet to send [00:01:21]OFD Sender: No OFD packet to send [00:01:26]OFD Sender: No OFD packet to send [00:01:31]OFD Sender: No OFD packet to send [00:01:36]OFD Sender: No OFD packet to send [00:01:41]OFD Sender: No OFD packet to send [00:01:46]OFD Sender: No OFD packet to send [00:01:51]OFD Sender: No OFD packet to send [00:01:56]OFD Sender: No OFD packet to send [00:02:01]OFD Sender: No OFD packet to send [00:02:06]OFD Sender: No OFD packet to send [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:21]OFD Sender: No OFD packet to send [00:03:26]OFD Sender: No OFD packet to send [00:03:31]OFD Sender: No OFD packet to send [00:03:36]OFD Sender: No OFD packet to send [00:03:41]OFD Sender: No OFD packet to send [00:03:46]OFD Sender: No OFD packet to send [00:03:51]OFD Sender: No OFD packet to send [00:03:56]OFD Sender: No OFD packet to send [00:04:01]OFD Sender: No OFD packet to send [00:04:06]OFD Sender: No OFD packet to send [00:04:11]OFD Sender: No OFD packet to send [00:04:16]OFD Sender: No OFD packet to send [00:04:21]OFD Sender: No OFD packet to send [00:04:26]OFD Sender: No OFD packet to send [00:04:31]OFD Sender: No OFD packet to send [00:04:36]OFD Sender: No OFD packet to send [00:04:41]OFD Sender: No OFD packet to send [00:04:46]OFD Sender: No OFD packet to send [00:04:51]OFD Sender: No OFD packet to send [00:04:56]OFD Sender: No OFD packet to send [00:05:01]OFD Sender: No OFD packet to send [00:05:06]OFD Sender: No OFD packet to send [00:05:11]OFD Sender: No OFD packet to send [00:05:16]OFD Sender: No OFD packet to send [00:05:21]OFD Sender: No OFD packet to send [00:05:26]OFD Sender: No OFD packet to send [00:05:31]OFD Sender: No OFD packet to send [00:05:36]OFD Sender: No OFD packet to send [00:05:41]OFD Sender: No OFD packet to send [00:05:46]OFD Sender: No OFD packet to send [00:05:51]OFD Sender: No OFD packet to send [00:05:56]OFD Sender: No OFD packet to send [00:05:57]accept exits with 7 [00:05:57]New connection [00:05:57]New thread 3066785124 created [00:05:57]Thread 3066928484 joined [00:05:57]Waiting for new connection... [00:05:57] Sock 7.Parse request [00:05:57]Sock 7.Check first char [00:05:57]Sock 7.First char is OK [00:05:57]request: POST /json_proto HTTP/1.0 [00:05:57]Method: POST [00:05:57]URL: /json_proto [00:05:57]Method is POST - this is cgi request [00:05:57]url: /json_proto [00:05:57]query_string will be loaded in cgi processing [00:05:57]execute_cgi json_proto POST (null) [00:05:57]execute_cgi path=json_proto method=POST [00:05:57]POST find Content-Length [00:05:57]Host: 172.17.33.3:8080 [00:05:57]Content-Length: 679 [00:05:57]Content-Type: application/json [00:05:57] [00:05:57]POST finish read [00:05:57]Found Content-Length = 679 [00:05:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347456", "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" : 72.40, "quantity" : 41.440, "sum" : 3000.26, "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" ] } } [00:05:57]execute_script... [00:05: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)347456", "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" : 72.40, "quantity" : 41.440, "sum" : 3000.26, "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" ] } } [00:05:57]POST & json_proto [00:05:57]process_json_proto [00:05:57]json parsed OK: [00:05:57]protocol is kg_v1.0 [00:05:57]action value=close_receipt [00:05:57]process_action close_receipt [00:05:57]cmd_close_receipt [00:05:57]MH_GetDate [00:05:57]Write to MH i2c: F0 00 00 6C 6E C9 [00:05:57]Write i2c OK [00:05:57]MH_I2C_Read... [00:05:57]Read from MH i2c: F0 [00:05:57]MH_I2C_Read... [00:05:57]Read from MH i2c: F0 09 00 [00:05:57]MH_I2C_Read... [00:05:57]Read from MH i2c: F0 09 00 6C 6E 00 EC 1D 1B 66 23 5B 8F 65 CE [00:05:57]GetLastDocTimeStamp 1713052721 [00:05:57]current date 1713053164 [00:05:57]FM_GetShiftState [00:05:57]SAM_PROTO_GetShiftState [00:05:57]wFMCommunicate request_size=4 [00:05:57]MH_SAM_APDU [00:05:57]CAPDU: 80 13 01 00 [00:05:57]Write to MH i2c: E2 08 00 6D 6E 80 13 01 00 00 00 00 00 58 [00:05:57]Write i2c OK [00:05:57]MH_I2C_Read... [00:05:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:57]Read from MH i2c: E2 [00:05:57]MH_I2C_Read... [00:05:57]Read from MH i2c: E2 0E 00 [00:05:57]MH_I2C_Read... [00:05:57]Read from MH i2c: E2 0E 00 6D 6E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 71 [00:05:57]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [00:05:57]wFMCommunicate OK [00:05:57]SAM_PROTO_GetShiftState done [00:05:57]FM_GetShiftState done [00:05:57]opened in 1712967615 [00:05:57]opened+sec_in_day 1713054015 [00:05:57]quantity*price = 300025 [00:05:57]sum+1 = 300027 [00:05:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.61 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 294 14.04.2024 00:06 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29087 ФПД: 37954656809716 1/tax-web-control/client/api/v1/ticket?date=20240414T000604&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29087&fm=37954656809716&tin=02508201610067®Number=0000138879044617&sum=300000 [00:05:58]StoreToDocumentArchive [00:05:58]shift 115 fd 29087 [00:05:58]save to /storage/0115/doc_00029087 [00:05:58]save last doc name /storage/0115/doc_00029087 to /storage/kkm_last_doc_name [00:05:58]save OK [00:05:58]Clear old archive folders... [00:05:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:05:58]tlvbuf is 011B72E0 [00:05:58]SAM_PROTO_ClearQueue [00:05:58]wFMCommunicate request_size=4 [00:05:58]MH_SAM_APDU [00:05:58]CAPDU: 80 09 00 00 [00:05:58]Write to MH i2c: E2 08 00 7A 6E 80 09 00 00 00 00 00 00 5A [00:05:58]Write i2c OK [00:05:58]MH_I2C_Read... [00:05:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:05:58]Read from MH i2c: E2 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: E2 03 00 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: E2 03 00 7A 6E 00 90 00 5C [00:05:58]RAPDU: 90 00 [00:05:58]wFMCommunicate OK [00:05:58]SAM_PROTO_ClearQueue done [00:05:58]KKMCreateOFDPacket [00:05:58]OFDProtocolAddRootSTLVToBuf [00:05:58]FM_MakeSignedData [00:05:58]FM_MakeSignedData [00:05:58]SAM_PROTO_SignData [00:05:58]wFMCommunicate request_size=4 [00:05:58]MH_SAM_APDU [00:05:58]CAPDU: 80 0D 01 02 [00:05:58]Write to MH i2c: E2 08 00 7B 6E 80 0D 01 02 00 00 00 00 62 [00:05:58]Write i2c OK [00:05:58]MH_I2C_Read... [00:05:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:05:58]Read from MH i2c: E2 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: E2 03 00 [00:05:58]MH_I2C_Read... [00:05:58]Read from MH i2c: E2 03 00 7B 6E 00 90 00 5D [00:05:58]RAPDU: 90 00 [00:05:58]wFMCommunicate OK [00:05:58]wFMCommunicate request_size=255 [00:05:58]MH_SAM_APDU [00:05: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 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 26 01 00 00 F4 03 04 00 EC 1D 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9F 71 00 00 35 04 06 00 22 85 01 D6 [00:05:58]Write to MH i2c: E2 02 01 7C 6E 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 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 26 01 00 00 F4 03 04 00 EC 1D 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9F 71 00 00 35 04 06 00 22 85 01 D6 00 00 4C [00:05:59]Write i2c OK [00:05:59]MH_I2C_Read... [00:05:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:59]Read from MH i2c: E2 [00:05:59]MH_I2C_Read... [00:05:59]Read from MH i2c: E2 03 00 [00:05:59]MH_I2C_Read... [00:05:59]Read from MH i2c: E2 03 00 7C 6E 00 90 00 5E [00:05:59]RAPDU: 90 00 [00:05:59]wFMCommunicate OK [00:05:59]wFMCommunicate request_size=7 [00:05:59]MH_SAM_APDU [00:05:59]CAPDU: 80 0D 02 02 02 32 F4 [00:05:59]Write to MH i2c: E2 0A 00 7D 6E 80 0D 02 02 02 00 32 F4 00 00 8F [00:05:59]Write i2c OK [00:05:59]MH_I2C_Read... [00:05:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:59]Read from MH i2c: E2 [00:05:59]MH_I2C_Read... [00:05:59]Read from MH i2c: E2 03 00 [00:05:59]MH_I2C_Read... [00:05:59]Read from MH i2c: E2 03 00 7D 6E 00 90 00 5F [00:05:59]RAPDU: 90 00 [00:05:59]wFMCommunicate OK [00:05:59]wFMCommunicate request_size=4 [00:05:59]MH_SAM_APDU [00:05:59]CAPDU: 80 0D 03 02 [00:05:59]Write to MH i2c: E2 08 00 7E 6E 80 0D 03 02 00 00 00 00 67 [00:05:59]Write i2c OK [00:05:59]MH_I2C_Read... [00:05:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:05:59]Read from MH i2c: E2 [00:05:59]MH_I2C_Read... [00:05:59]Read from MH i2c: E2 0B 00 [00:05:59]MH_I2C_Read... [00:05:59]Read from MH i2c: E2 0B 00 7E 6E 00 40 A7 F1 BF 03 7D B0 5F 90 00 8E [00:05:59]RAPDU: 40 A7 F1 BF 03 7D B0 5F 90 00 [00:05:59]wFMCommunicate OK [00:05:59]SAM_PROTO_SignData done [00:05:59]FM_MakeSignedData done [00:05:59]CreateOFDProtocolMessage [00:05:59]wFMCommunicate request_size=4 [00:05:59]MH_SAM_APDU [00:05:59]CAPDU: 80 11 00 00 [00:05:59]Write to MH i2c: E2 08 00 7F 6E 80 11 00 00 00 00 00 00 67 [00:05:59]Write i2c OK [00:05:59]MH_I2C_Read... [00:05:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:05:59]Read from MH i2c: E2 [00:05:59]MH_I2C_Read... [00:05:59]Read from MH i2c: E2 17 00 [00:05:59]MH_I2C_Read... [00:05:59]Read from MH i2c: E2 17 00 7F 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B6 [00:05:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:05:59]wFMCommunicate OK [00:05:59]CreateOFDProtocolMessage done [00:05:59]OFDSenderStorePacket 29087 [00:05:59]StoreOFDPacket docnum=29087 [00:05:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 14 F0 04 01 E2 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 26 01 00 00 F4 03 04 00 EC 1D 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9F 71 00 00 35 04 06 00 22 85 01 D6 32 F4 40 A7 F1 BF 03 7D B0 5F [00:05:59]CheckFolder [00:05:59]dirname=/storage/ofd_packets [00:05:59]CheckFolder done [00:05:59]ProducePacketName [00:05:59]name=ofd_packets/00029087 [00:05:59]NVStorageSaveData ofd_packets/00029087 [00:05:59]File name is /storage/ofd_packets/00029087 [00:05:59]Write 298 bytes [00:05:59]NVStorageSaveData done [00:05:59]OFDSenderStorePacket done [00:05:59]KKMCreateOFDPacket done [00:05:59]NVStorageSaveData kkm_last_timestamp [00:05:59]File name is /storage/kkm_last_timestamp [00:05:59]Write 4 bytes [00:05:59]NVStorageSaveData done [00:05:59]ExternCall_PrintAddStr [00:05:59]wPrintStart [00:05:59]Write to MH i2c: 01 00 00 80 6E EE [00:05:59]Write i2c OK [00:05:59]MH_I2C_Read... [00:05:59]Read from MH i2c: 01 [00:05:59]MH_I2C_Read... [00:05:59]Read from MH i2c: 01 07 00 [00:05:59]MH_I2C_Read... [00:05:59]Read from MH i2c: 01 07 00 80 6E 00 00 00 00 00 FF 0F 03 [00:05:59]RasterBufferAndPrint [00:05:59]line Счет N : (1)347456 [00:05:59]line ИНН: 02508201610067 [00:05:59]line Контрольно-Кассовый Чек [00:05:59]line ПРОДАЖА [00:05:59]line ТРК (МРК, ГНК) : 51 [00:05:59]line Товар: 2710194210 [00:05:59]line ДТ-К-5 [00:05:59]line 41.440 * 72.40 [00:05:59]line = 3000.26 [00:05:59]line НДС 12% НСП 1% [00:05:59]line > о реализуемом товаре [00:05:59]line ОКРУГЛЕНИЕ: -0.26 [00:05:59]line ИТОГО: 3000.00 [00:05:59]line Внесено: 3000.00 [00:05:59]line СДАЧА: 0.00 [00:05:59]line НСП 1% : 26.55 [00:05:59]line НДС 12% : 318.61 [00:05:59]line Наличными: 3000.00 [00:05:59]line Безнал.: 0.00 [00:05:59]line Место: АЗС № 108 "Партнер Нефть" [00:05:59]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:05:59]line СНО: Общий режим [00:05:59]line Чек 294 14.04.2024 00:06 [00:05:59]line Смена: 115 ФФД: 1.0 [00:05:59]line ЗНМ: 0300000027 [00:05:59]line РНМ: 0000138879044617 [00:05:59]line Версия ККМ: 001 [00:05:59]line ФМ: 0000000000963154 [00:05:59]line ФД: 29087 [00:05:59]line ФПД: 37954656809716 [00:05:59]line 1/tax-web-control/client/api/v1/ticket?date=20240414T000604&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29087&fm=37954656809716&tin=02508201610067®Number=0000138879044617&sum=300000 [00:05:59]OFD Sender: Processing packet 29087 [packets to send 8, broken 7] [00:05:59]ProducePacketName [00:05:59]name=ofd_packets/00029087 [00:05:59]OFD Sender: To server: pG, [00:05:59]CommunicateWithHost lk.salyk.kg:30040 [00:05:59]ConnectInit lk.salyk.kg [00:05:59]written 0, free lines is 4095 [00:05:59]Connected sock=11 [00:05: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 31 35 34 0C 01 00 00 14 F0 04 01 E2 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 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 75 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 26 01 00 00 F4 03 04 00 EC 1D 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 9F 71 00 00 35 04 06 00 22 85 01 D6 32 F4 40 A7 F1 BF 03 7D B0 5F [00:05:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 6F 82 47 00 30 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 31 35 34 10 04 04 00 9F 71 00 00 F4 03 04 00 92 C8 1A 66 B6 04 01 00 00 43 46 EA 99 BF 42 F1 B8 [00:05:59]CommunicateWithHost err = 0 [00:05:59]CheckOFDResponse [00:05:59]1017 (14) - 77093643461234 [00:05:59]1041 (16) - 0000000000963154 [00:05:59]1040 (4) - 29087 [00:05:59]1012 (4) - 13.04.2024 18:01 [00:05:59]1206 (1) - 0 [00:05:59]OFD Sender: Remove packet 29087 [00:05:59]ProducePacketName [00:05:59]name=ofd_packets/00029087 [00:05:59]NVStorageDeleteData [00:06:00]Write to MH i2c: 01 00 00 AA 6E 18 [00:06:00]Write i2c OK [00:06:00]MH_I2C_Read... [00:06:00]Read from MH i2c: 01 [00:06:00]MH_I2C_Read... [00:06:00]Read from MH i2c: 01 07 00 [00:06:00]MH_I2C_Read... [00:06:00]Read from MH i2c: 01 07 00 AA 6E 00 00 00 00 00 CB 0C F6 [00:06:00]RasterBufferAndPrint [00:06:00]line [00:06:00]line [00:06:00]line [00:06:00]line [00:06:00]line [00:06:00]written 0, free lines is 3280 [00:06:00]MH_Cut [00:06:00]Write to MH i2c: D1 01 00 B1 6E 01 F1 [00:06:00]Write i2c OK [00:06:00]MH_I2C_Read... [00:06:00]Read from MH i2c: D1 [00:06:00]MH_I2C_Read... [00:06:00]Read from MH i2c: D1 01 00 [00:06:00]MH_I2C_Read... [00:06:00]Read from MH i2c: D1 01 00 B1 6E 00 F0 [00:06:00]Write to MH i2c: 01 00 00 B2 6E 20 [00:06:00]Write i2c OK [00:06:00]MH_I2C_Read... [00:06:00]OFD Sender: No OFD packet to send [00:06:00]*** Cut start [00:06:00]*** Partial cut [00:06:01]*** CUTSNS_PIN = 1 [00:06:01]*** CUTSNS_PIN = 0 [00:06:01]*** Brake cut motor [00:06:01]Read from MH i2c: 01 [00:06:01]MH_I2C_Read... [00:06:01]*** Stop cut motor [00:06:01]*** Cut end [00:06:01]Read from MH i2c: 01 07 00 [00:06:01]MH_I2C_Read... [00:06:01]Read from MH i2c: 01 07 00 B2 6E 00 00 00 00 00 FF 0F 35 [00:06:01]process_action close_receipt done [00:06:01]requested_data is exist [00:06:01]produce_requested_data [00:06:01]requested_item fm.sn is exist - process it [00:06:01]wFMCommunicate request_size=4 [00:06:01]MH_SAM_APDU [00:06:01]CAPDU: 80 11 00 00 [00:06:01]Write to MH i2c: E2 08 00 B3 6E 80 11 00 00 00 00 00 00 9B [00:06:01]Write i2c OK [00:06:01]MH_I2C_Read... [00:06:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:01]Read from MH i2c: E2 [00:06:01]MH_I2C_Read... [00:06:01]Read from MH i2c: E2 17 00 [00:06:01]MH_I2C_Read... [00:06:01]Read from MH i2c: E2 17 00 B3 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EA [00:06:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:06:01]wFMCommunicate OK [00:06:01]requested_item fd.num is exist - process it [00:06:01]SAM_PROTO_GetFieldsCounters [00:06:01]wFMCommunicate request_size=4 [00:06:01]MH_SAM_APDU [00:06:01]CAPDU: 80 13 00 00 [00:06:01]Write to MH i2c: E2 08 00 B4 6E 80 13 00 00 00 00 00 00 9E [00:06:01]Write i2c OK [00:06:01]MH_I2C_Read... [00:06:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:01]Read from MH i2c: E2 [00:06:01]MH_I2C_Read... [00:06:01]Read from MH i2c: E2 62 00 [00:06:01]MH_I2C_Read... [00:06:01]Read from MH i2c: E2 62 00 B4 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9F 71 00 00 0E 04 04 00 73 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 D4 [00:06: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 9F 71 00 00 0E 04 04 00 73 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 [00:06:01]wFMCommunicate OK [00:06:01]SAM_PROTO_GetFieldsCounters done [00:06:01]requested_item shift.num is exist - process it [00:06:01]requested_item shift.opened is exist - process it [00:06:01]req_shift_opened [00:06:01]FM_GetShiftState [00:06:01]SAM_PROTO_GetShiftState [00:06:01]wFMCommunicate request_size=4 [00:06:01]MH_SAM_APDU [00:06:01]CAPDU: 80 13 01 00 [00:06:01]Write to MH i2c: E2 08 00 B5 6E 80 13 01 00 00 00 00 00 A0 [00:06:01]Write i2c OK [00:06:01]MH_I2C_Read... [00:06:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:01]Read from MH i2c: E2 [00:06:01]MH_I2C_Read... [00:06:01]Read from MH i2c: E2 0E 00 [00:06:01]MH_I2C_Read... [00:06:01]Read from MH i2c: E2 0E 00 B5 6E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 B9 [00:06:01]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [00:06:01]wFMCommunicate OK [00:06:01]SAM_PROTO_GetShiftState done [00:06:01]FM_GetShiftState done [00:06:01]req_shift_opened done [00:06:01]requested_item shift.open_date is exist - process it [00:06:01]req_shift_open_date [00:06:01]req_shift_open_date done [00:06:01]produce_requested_data done [00:06:01]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29087,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [00:06:01]process_action_free close_receipt [00:06:01]json_value_free [00:06:01]json_value_free done [00:06:01]process_json_proto returns [00:06:01]Send response to host [00:06:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29087,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [00:06:01]free response buf [00:06:01]execute_script done [00:06:01]execute_script returns [00:06:01]free content buf [00:06:01]Sock 7.Close socket [00:06:01]Sock 7.Thread stoped [00:06:05]OFD Sender: No OFD packet to send [00:06:10]OFD Sender: No OFD packet to send [00:06:15]OFD Sender: No OFD packet to send [00:06:20]OFD Sender: No OFD packet to send [00:06:25]OFD Sender: No OFD packet to send [00:06:30]OFD Sender: No OFD packet to send [00:06:35]OFD Sender: No OFD packet to send [00:06:40]OFD Sender: No OFD packet to send [00:06:45]OFD Sender: No OFD packet to send [00:06:50]OFD Sender: No OFD packet to send [00:06:55]OFD Sender: No OFD packet to send [00:07:00]OFD Sender: No OFD packet to send [00:07:00]accept exits with 9 [00:07:00]New connection [00:07:00]New thread 3066928484 created [00:07:00]Thread 3066785124 joined [00:07:00]Waiting for new connection... [00:07:00] Sock 9.Parse request [00:07:00]Sock 9.Check first char [00:07:00]Sock 9.First char is OK [00:07:00]request: POST /json_proto HTTP/1.0 [00:07:00]Method: POST [00:07:00]URL: /json_proto [00:07:00]Method is POST - this is cgi request [00:07:00]url: /json_proto [00:07:00]query_string will be loaded in cgi processing [00:07:00]execute_cgi json_proto POST (null) [00:07:00]execute_cgi path=json_proto method=POST [00:07:00]POST find Content-Length [00:07:00]Host: 172.17.33.3:8080 [00:07:00]Content-Length: 674 [00:07:00]Content-Type: application/json [00:07:00] [00:07:00]POST finish read [00:07:00]Found Content-Length = 674 [00:07:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347457", "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" : 72.40, "quantity" : 3.620, "sum" : 262.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 262.00, "total" : 262.00, "payments": [ { "type": 0, "sum" : 262.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:00]execute_script... [00:07: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)347457", "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" : 72.40, "quantity" : 3.620, "sum" : 262.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 262.00, "total" : 262.00, "payments": [ { "type": 0, "sum" : 262.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:00]POST & json_proto [00:07:00]process_json_proto [00:07:00]json parsed OK: [00:07:00]protocol is kg_v1.0 [00:07:00]action value=close_receipt [00:07:00]process_action close_receipt [00:07:00]cmd_close_receipt [00:07:00]MH_GetDate [00:07:00]Write to MH i2c: F0 00 00 B6 6E 13 [00:07:00]Write i2c OK [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: F0 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: F0 09 00 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: F0 09 00 B6 6E 00 2C 1E 1B 66 23 5B 8F 65 59 [00:07:00]GetLastDocTimeStamp 1713053164 [00:07:00]current date 1713053228 [00:07:00]FM_GetShiftState [00:07:00]SAM_PROTO_GetShiftState [00:07:00]wFMCommunicate request_size=4 [00:07:00]MH_SAM_APDU [00:07:00]CAPDU: 80 13 01 00 [00:07:00]Write to MH i2c: E2 08 00 B7 6E 80 13 01 00 00 00 00 00 A2 [00:07:00]Write i2c OK [00:07:00]MH_I2C_Read... [00:07:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:00]Read from MH i2c: E2 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: E2 0E 00 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: E2 0E 00 B7 6E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 BB [00:07:00]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [00:07:00]wFMCommunicate OK [00:07:00]SAM_PROTO_GetShiftState done [00:07:00]FM_GetShiftState done [00:07:00]opened in 1712967615 [00:07:00]opened+sec_in_day 1713054015 [00:07:00]quantity*price = 26208 [00:07:00]sum+1 = 26210 [00:07:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 262.00 Внесено: 262.00 СДАЧА: 0.00 НСП 1% : 2.32 НДС 12% : 27.83 Наличными: 262.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 295 14.04.2024 00:07 Смена: 115 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29088 ФПД: 8305897766242 1/tax-web-control/client/api/v1/ticket?date=20240414T000708&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29088&fm=8305897766242&tin=02508201610067®Number=0000138879044617&sum=26200 [00:07:02]StoreToDocumentArchive [00:07:02]shift 115 fd 29088 [00:07:02]save to /storage/0115/doc_00029088 [00:07:02]save last doc name /storage/0115/doc_00029088 to /storage/kkm_last_doc_name [00:07:02]save OK [00:07:02]Clear old archive folders... [00:07:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:07:02]tlvbuf is 01285F20 [00:07:02]SAM_PROTO_ClearQueue [00:07:02]wFMCommunicate request_size=4 [00:07:02]MH_SAM_APDU [00:07:02]CAPDU: 80 09 00 00 [00:07:02]Write to MH i2c: E2 08 00 C4 6E 80 09 00 00 00 00 00 00 A4 [00:07:02]Write i2c OK [00:07:02]MH_I2C_Read... [00:07:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:07:02]Read from MH i2c: E2 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 03 00 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 03 00 C4 6E 00 90 00 A6 [00:07:02]RAPDU: 90 00 [00:07:02]wFMCommunicate OK [00:07:02]SAM_PROTO_ClearQueue done [00:07:02]KKMCreateOFDPacket [00:07:02]OFDProtocolAddRootSTLVToBuf [00:07:02]FM_MakeSignedData [00:07:02]FM_MakeSignedData [00:07:02]SAM_PROTO_SignData [00:07:02]wFMCommunicate request_size=4 [00:07:02]MH_SAM_APDU [00:07:02]CAPDU: 80 0D 01 02 [00:07:02]Write to MH i2c: E2 08 00 C5 6E 80 0D 01 02 00 00 00 00 AC [00:07:02]Write i2c OK [00:07:02]MH_I2C_Read... [00:07:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:07:02]Read from MH i2c: E2 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 03 00 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 03 00 C5 6E 00 90 00 A7 [00:07:02]RAPDU: 90 00 [00:07:02]wFMCommunicate OK [00:07:02]wFMCommunicate request_size=255 [00:07:02]MH_SAM_APDU [00:07:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 0E 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 61 66 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 66 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 0A 00 00 00 00 07 04 06 00 58 66 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 2C 1E 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A0 71 00 00 35 04 06 00 07 8D DE 15 [00:07:02]Write to MH i2c: E2 02 01 C6 6E 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 24 0E 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 61 66 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 66 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 0A 00 00 00 00 07 04 06 00 58 66 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 2C 1E 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A0 71 00 00 35 04 06 00 07 8D DE 15 00 00 CE [00:07:02]Write i2c OK [00:07:02]MH_I2C_Read... [00:07:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:02]Read from MH i2c: E2 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 03 00 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 03 00 C6 6E 00 90 00 A8 [00:07:02]RAPDU: 90 00 [00:07:02]wFMCommunicate OK [00:07:02]wFMCommunicate request_size=7 [00:07:02]MH_SAM_APDU [00:07:02]CAPDU: 80 0D 02 02 02 FD 62 [00:07:02]Write to MH i2c: E2 0A 00 C7 6E 80 0D 02 02 02 00 FD 62 00 00 12 [00:07:02]Write i2c OK [00:07:02]MH_I2C_Read... [00:07:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:02]Read from MH i2c: E2 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 03 00 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 03 00 C7 6E 00 90 00 A9 [00:07:02]RAPDU: 90 00 [00:07:02]wFMCommunicate OK [00:07:02]wFMCommunicate request_size=4 [00:07:02]MH_SAM_APDU [00:07:02]CAPDU: 80 0D 03 02 [00:07:02]Write to MH i2c: E2 08 00 C8 6E 80 0D 03 02 00 00 00 00 B1 [00:07:02]Write i2c OK [00:07:02]MH_I2C_Read... [00:07:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:07:02]Read from MH i2c: E2 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 0B 00 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 0B 00 C8 6E 00 B1 2F 92 49 E8 DA 6F 79 90 00 17 [00:07:02]RAPDU: B1 2F 92 49 E8 DA 6F 79 90 00 [00:07:02]wFMCommunicate OK [00:07:02]SAM_PROTO_SignData done [00:07:02]FM_MakeSignedData done [00:07:02]CreateOFDProtocolMessage [00:07:02]wFMCommunicate request_size=4 [00:07:02]MH_SAM_APDU [00:07:02]CAPDU: 80 11 00 00 [00:07:02]Write to MH i2c: E2 08 00 C9 6E 80 11 00 00 00 00 00 00 B1 [00:07:02]Write i2c OK [00:07:02]MH_I2C_Read... [00:07:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:02]Read from MH i2c: E2 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 17 00 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 17 00 C9 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 00 [00:07:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:07:02]wFMCommunicate OK [00:07:02]CreateOFDProtocolMessage done [00:07:02]OFDSenderStorePacket 29088 [00:07:02]StoreOFDPacket docnum=29088 [00:07:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0C 01 00 00 1F 37 04 01 62 F7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 0E 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 61 66 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 66 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 0A 00 00 00 00 07 04 06 00 58 66 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 2C 1E 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A0 71 00 00 35 04 06 00 07 8D DE 15 FD 62 B1 2F 92 49 E8 DA 6F 79 [00:07:02]CheckFolder [00:07:02]dirname=/storage/ofd_packets [00:07:02]CheckFolder done [00:07:02]ProducePacketName [00:07:02]name=ofd_packets/00029088 [00:07:02]NVStorageSaveData ofd_packets/00029088 [00:07:02]File name is /storage/ofd_packets/00029088 [00:07:02]Write 298 bytes [00:07:02]NVStorageSaveData done [00:07:02]OFDSenderStorePacket done [00:07:02]KKMCreateOFDPacket done [00:07:02]NVStorageSaveData kkm_last_timestamp [00:07:02]File name is /storage/kkm_last_timestamp [00:07:02]Write 4 bytes [00:07:02]NVStorageSaveData done [00:07:02]ExternCall_PrintAddStr [00:07:02]wPrintStart [00:07:02]Write to MH i2c: 01 00 00 CA 6E 38 [00:07:02]Write i2c OK [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: 01 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: 01 07 00 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: 01 07 00 CA 6E 00 00 00 00 00 FF 0F 4D [00:07:02]RasterBufferAndPrint [00:07:02]line Счет N : (1)347457 [00:07:02]line ИНН: 02508201610067 [00:07:02]line Контрольно-Кассовый Чек [00:07:02]line ПРОДАЖА [00:07:02]line ТРК (МРК, ГНК) : 61 [00:07:02]line Товар: 2710194210 [00:07:02]line ДТ-К-5 [00:07:02]line 3.620 * 72.40 [00:07:02]line = 262.09 [00:07:02]line НДС 12% НСП 1% [00:07:02]line > о реализуемом товаре [00:07:02]line ОКРУГЛЕНИЕ: -0.09 [00:07:02]line ИТОГО: 262.00 [00:07:02]line Внесено: 262.00 [00:07:02]line СДАЧА: 0.00 [00:07:02]line НСП 1% : 2.32 [00:07:02]line НДС 12% : 27.83 [00:07:02]line Наличными: 262.00 [00:07:02]line Безнал.: 0.00 [00:07:02]line Место: АЗС № 108 "Партнер Нефть" [00:07:02]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:07:02]line СНО: Общий режим [00:07:02]line Чек 295 14.04.2024 00:07 [00:07:02]line Смена: 115 ФФД: 1.0 [00:07:02]line ЗНМ: 0300000027 [00:07:02]line РНМ: 0000138879044617 [00:07:02]line Версия ККМ: 001 [00:07:02]line ФМ: 0000000000963154 [00:07:02]line ФД: 29088 [00:07:02]line ФПД: 8305897766242 [00:07:02]line 1/tax-web-control/client/api/v1/ticket?date=20240414T000708&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29088&fm=8305897766242&tin=02508201610067®Number=0000138879044617&sum=26200 [00:07:02]OFD Sender: Processing packet 29088 [packets to send 8, broken 7] [00:07:02]ProducePacketName [00:07:02]name=ofd_packets/00029088 [00:07:02]OFD Sender: To server: pG, [00:07:02]CommunicateWithHost lk.salyk.kg:30040 [00:07:02]ConnectInit lk.salyk.kg [00:07:02]written 0, free lines is 4095 [00:07:03]Connected sock=10 [00:07: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 31 35 34 0C 01 00 00 1F 37 04 01 62 F7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 0E 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 61 66 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 66 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 0A 00 00 00 00 07 04 06 00 58 66 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 2C 1E 1B 66 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A0 71 00 00 35 04 06 00 07 8D DE 15 FD 62 B1 2F 92 49 E8 DA 6F 79 [00:07:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 A6 5C 47 00 7B 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 31 35 34 10 04 04 00 A0 71 00 00 F4 03 04 00 D1 C8 1A 66 B6 04 01 00 00 7C A1 0C 90 03 80 11 8B [00:07:03]CommunicateWithHost err = 0 [00:07:03]CheckOFDResponse [00:07:03]1017 (14) - 77093643461234 [00:07:03]1041 (16) - 0000000000963154 [00:07:03]1040 (4) - 29088 [00:07:03]1012 (4) - 13.04.2024 18:02 [00:07:03]1206 (1) - 0 [00:07:03]OFD Sender: Remove packet 29088 [00:07:03]ProducePacketName [00:07:03]name=ofd_packets/00029088 [00:07:03]NVStorageDeleteData [00:07:03]Write to MH i2c: 01 00 00 F4 6E 62 [00:07:03]Write i2c OK [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: 01 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: 01 07 00 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: 01 07 00 F4 6E 00 00 00 00 00 B9 0C 2E [00:07:03]RasterBufferAndPrint [00:07:03]line [00:07:03]line [00:07:03]line [00:07:03]line [00:07:03]line [00:07:03]written 0, free lines is 3261 [00:07:03]MH_Cut [00:07:03]Write to MH i2c: D1 01 00 FB 6E 01 3B [00:07:03]Write i2c OK [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: D1 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: D1 01 00 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: D1 01 00 FB 6E 00 3A [00:07:03]Write to MH i2c: 01 00 00 FC 6E 6A [00:07:03]Write i2c OK [00:07:03]MH_I2C_Read... [00:07:03]OFD Sender: No OFD packet to send [00:07:04]*** Cut start [00:07:04]*** Partial cut [00:07:04]*** CUTSNS_PIN = 1 [00:07:04]*** CUTSNS_PIN = 0 [00:07:04]*** Brake cut motor [00:07:04]Read from MH i2c: 01 [00:07:04]MH_I2C_Read... [00:07:04]*** Stop cut motor [00:07:04]*** Cut end [00:07:04]Read from MH i2c: 01 07 00 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: 01 07 00 FC 6E 00 00 00 00 00 FF 0F 7F [00:07:04]process_action close_receipt done [00:07:04]requested_data is exist [00:07:04]produce_requested_data [00:07:04]requested_item fm.sn is exist - process it [00:07:04]wFMCommunicate request_size=4 [00:07:04]MH_SAM_APDU [00:07:04]CAPDU: 80 11 00 00 [00:07:04]Write to MH i2c: E2 08 00 FD 6E 80 11 00 00 00 00 00 00 E5 [00:07:04]Write i2c OK [00:07:04]MH_I2C_Read... [00:07:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:04]Read from MH i2c: E2 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 17 00 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 17 00 FD 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 34 [00:07:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:07:04]wFMCommunicate OK [00:07:04]requested_item fd.num is exist - process it [00:07:04]SAM_PROTO_GetFieldsCounters [00:07:04]wFMCommunicate request_size=4 [00:07:04]MH_SAM_APDU [00:07:04]CAPDU: 80 13 00 00 [00:07:04]Write to MH i2c: E2 08 00 FE 6E 80 13 00 00 00 00 00 00 E8 [00:07:04]Write i2c OK [00:07:04]MH_I2C_Read... [00:07:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:05]Read from MH i2c: E2 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 62 00 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 62 00 FE 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A0 71 00 00 0E 04 04 00 73 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 22 [00:07: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A0 71 00 00 0E 04 04 00 73 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 [00:07:05]wFMCommunicate OK [00:07:05]SAM_PROTO_GetFieldsCounters done [00:07:05]requested_item shift.num is exist - process it [00:07:05]requested_item shift.opened is exist - process it [00:07:05]req_shift_opened [00:07:05]FM_GetShiftState [00:07:05]SAM_PROTO_GetShiftState [00:07:05]wFMCommunicate request_size=4 [00:07:05]MH_SAM_APDU [00:07:05]CAPDU: 80 13 01 00 [00:07:05]Write to MH i2c: E2 08 00 FF 6E 80 13 01 00 00 00 00 00 EA [00:07:05]Write i2c OK [00:07:05]MH_I2C_Read... [00:07:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:05]Read from MH i2c: E2 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 0E 00 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 0E 00 FF 6E 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 03 [00:07:05]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [00:07:05]wFMCommunicate OK [00:07:05]SAM_PROTO_GetShiftState done [00:07:05]FM_GetShiftState done [00:07:05]req_shift_opened done [00:07:05]requested_item shift.open_date is exist - process it [00:07:05]req_shift_open_date [00:07:05]req_shift_open_date done [00:07:05]produce_requested_data done [00:07:05]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29088,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [00:07:05]process_action_free close_receipt [00:07:05]json_value_free [00:07:05]json_value_free done [00:07:05]process_json_proto returns [00:07:05]Send response to host [00:07:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29088,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [00:07:05]free response buf [00:07:05]execute_script done [00:07:05]execute_script returns [00:07:05]free content buf [00:07:05]Sock 9.Close socket [00:07:05]Sock 9.Thread stoped [00:07:08]OFD Sender: No OFD packet to send [00:07:13]OFD Sender: No OFD packet to send [00:07:18]OFD Sender: No OFD packet to send [00:07:23]OFD Sender: No OFD packet to send [00:07:28]OFD Sender: No OFD packet to send [00:07:33]OFD Sender: No OFD packet to send [00:07:38]OFD Sender: No OFD packet to send [00:07:43]OFD Sender: No OFD packet to send [00:07:48]OFD Sender: No OFD packet to send [00:07:53]OFD Sender: No OFD packet to send [00:07:58]OFD Sender: No OFD packet to send [00:08:03]OFD Sender: No OFD packet to send [00:08:08]OFD Sender: No OFD packet to send [00:08:13]OFD Sender: No OFD packet to send [00:08:18]OFD Sender: No OFD packet to send [00:08:23]OFD Sender: No OFD packet to send [00:08:28]OFD Sender: No OFD packet to send [00:08:33]OFD Sender: No OFD packet to send [00:08:38]OFD Sender: No OFD packet to send [00:08:43]OFD Sender: No OFD packet to send [00:08:48]OFD Sender: No OFD packet to send [00:08:53]OFD Sender: No OFD packet to send [00:08:58]OFD Sender: No OFD packet to send [00:09:03]OFD Sender: No OFD packet to send [00:09:08]OFD Sender: No OFD packet to send [00:09:13]OFD Sender: No OFD packet to send [00:09:18]OFD Sender: No OFD packet to send [00:09:23]OFD Sender: No OFD packet to send [00:09:28]OFD Sender: No OFD packet to send [00:09:33]OFD Sender: No OFD packet to send [00:09:38]OFD Sender: No OFD packet to send [00:09:43]OFD Sender: No OFD packet to send [00:09:48]OFD Sender: No OFD packet to send [00:09:53]OFD Sender: No OFD packet to send [00:09:58]OFD Sender: No OFD packet to send [00:10:03]OFD Sender: No OFD packet to send [00:10:08]OFD Sender: No OFD packet to send [00:10:13]OFD Sender: No OFD packet to send [00:10:18]OFD Sender: No OFD packet to send [00:10:23]OFD Sender: No OFD packet to send [00:10:27]accept exits with 7 [00:10:27]New connection [00:10:27]New thread 3066785124 created [00:10:27]Thread 3066928484 joined [00:10:27]Waiting for new connection... [00:10:27] Sock 7.Parse request [00:10:27]Sock 7.Check first char [00:10:27]Sock 7.First char is OK [00:10:27]request: POST /json_proto HTTP/1.0 [00:10:27]Method: POST [00:10:27]URL: /json_proto [00:10:27]Method is POST - this is cgi request [00:10:27]url: /json_proto [00:10:27]query_string will be loaded in cgi processing [00:10:27]execute_cgi json_proto POST (null) [00:10:27]execute_cgi path=json_proto method=POST [00:10:27]POST find Content-Length [00:10:27]Host: 172.17.33.3:8080 [00:10:27]Content-Length: 215 [00:10:27]Content-Type: application/json [00:10:27] [00:10:27]POST finish read [00:10:27]Found Content-Length = 215 [00:10:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:27]execute_script... [00:10:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:27]POST & json_proto [00:10:27]process_json_proto [00:10:27]json parsed OK: [00:10:27]protocol is kg_v1.0 [00:10:27]action value=get_value [00:10:27]process_action get_value [00:10:27]cmd_get_value [00:10:27]process_action get_value done [00:10:27]requested_data is exist [00:10:27]produce_requested_data [00:10:27]requested_item kkm.sn is exist - process it [00:10:27]requested_item kkm.ver is exist - process it [00:10:27]requested_item fm.sn is exist - process it [00:10:27]wFMCommunicate request_size=4 [00:10:27]MH_SAM_APDU [00:10:27]CAPDU: 80 11 00 00 [00:10:27]Write to MH i2c: E2 08 00 00 6F 80 11 00 00 00 00 00 00 E9 [00:10:27]Write i2c OK [00:10:27]MH_I2C_Read... [00:10:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:27]Read from MH i2c: E2 [00:10:27]MH_I2C_Read... [00:10:27]Read from MH i2c: E2 17 00 [00:10:27]MH_I2C_Read... [00:10:27]Read from MH i2c: E2 17 00 00 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 38 [00:10:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:10:27]wFMCommunicate OK [00:10:27]requested_item fd.num is exist - process it [00:10:27]SAM_PROTO_GetFieldsCounters [00:10:27]wFMCommunicate request_size=4 [00:10:27]MH_SAM_APDU [00:10:27]CAPDU: 80 13 00 00 [00:10:27]Write to MH i2c: E2 08 00 01 6F 80 13 00 00 00 00 00 00 EC [00:10:27]Write i2c OK [00:10:27]MH_I2C_Read... [00:10:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:10:27]Read from MH i2c: E2 [00:10:27]MH_I2C_Read... [00:10:27]Read from MH i2c: E2 62 00 [00:10:27]MH_I2C_Read... [00:10:27]Read from MH i2c: E2 62 00 01 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A0 71 00 00 0E 04 04 00 73 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 26 [00:10:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A0 71 00 00 0E 04 04 00 73 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 [00:10:27]wFMCommunicate OK [00:10:27]SAM_PROTO_GetFieldsCounters done [00:10:27]requested_item shift.num is exist - process it [00:10:27]requested_item shift.opened is exist - process it [00:10:27]req_shift_opened [00:10:27]FM_GetShiftState [00:10:27]SAM_PROTO_GetShiftState [00:10:27]wFMCommunicate request_size=4 [00:10:27]MH_SAM_APDU [00:10:27]CAPDU: 80 13 01 00 [00:10:27]Write to MH i2c: E2 08 00 02 6F 80 13 01 00 00 00 00 00 EE [00:10:27]Write i2c OK [00:10:27]MH_I2C_Read... [00:10:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:27]Read from MH i2c: E2 [00:10:27]MH_I2C_Read... [00:10:27]Read from MH i2c: E2 0E 00 [00:10:27]MH_I2C_Read... [00:10:27]Read from MH i2c: E2 0E 00 02 6F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 07 [00:10:27]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [00:10:27]wFMCommunicate OK [00:10:27]SAM_PROTO_GetShiftState done [00:10:27]FM_GetShiftState done [00:10:27]req_shift_opened done [00:10:27]requested_item shift.open_date is exist - process it [00:10:27]req_shift_open_date [00:10:27]req_shift_open_date done [00:10:27]produce_requested_data done [00:10:27]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29088,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [00:10:27]process_action_free get_value [00:10:27]json_value_free [00:10:27]json_value_free done [00:10:27]process_json_proto returns [00:10:27]Send response to host [00:10:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29088,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [00:10:27]free response buf [00:10:27]execute_script done [00:10:27]execute_script returns [00:10:27]free content buf [00:10:27]Sock 7.Close socket [00:10:27]Sock 7.Thread stoped [00:10:27]accept exits with 9 [00:10:27]New connection [00:10:27]New thread 3066928484 created [00:10:27]Thread 3066785124 joined [00:10:27]Waiting for new connection... [00:10:27] Sock 9.Parse request [00:10:27]Sock 9.Check first char [00:10:27]Sock 9.First char is OK [00:10:27]request: POST /json_proto HTTP/1.0 [00:10:27]Method: POST [00:10:27]URL: /json_proto [00:10:27]Method is POST - this is cgi request [00:10:27]url: /json_proto [00:10:27]query_string will be loaded in cgi processing [00:10:27]execute_cgi json_proto POST (null) [00:10:27]execute_cgi path=json_proto method=POST [00:10:27]POST find Content-Length [00:10:27]Host: 172.17.33.3:8080 [00:10:27]Content-Length: 331 [00:10:27]Content-Type: application/json [00:10:27] [00:10:27]POST finish read [00:10:27]Found Content-Length = 331 [00:10:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:10:27]execute_script... [00:10:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:10:28]POST & json_proto [00:10:28]process_json_proto [00:10:28]json parsed OK: [00:10:28]protocol is kg_v1.0 [00:10:28]action value=get_value [00:10:28]process_action get_value [00:10:28]cmd_get_value [00:10:28]process_action get_value done [00:10:28]requested_data is exist [00:10:28]produce_requested_data [00:10:28]requested_item fm.sale.total is exist - process it [00:10:28]SAM_PROTO_GetFMData [00:10:28]wFMCommunicate request_size=4 [00:10:28]MH_SAM_APDU [00:10:28]CAPDU: 80 13 03 00 [00:10:28]Write to MH i2c: E2 08 00 03 6F 80 13 03 00 00 00 00 00 F1 [00:10:28]Write i2c OK [00:10:28]MH_I2C_Read... [00:10:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:10:28]Read from MH i2c: E2 [00:10:28]MH_I2C_Read... [00:10:28]Read from MH i2c: E2 FD 00 [00:10:28]MH_I2C_Read... [00:10:28]Read from MH i2c: E2 FD 00 03 6F 00 C3 04 85 04 BF 04 6E 04 04 00 BA 70 00 00 69 04 A1 00 6F 04 04 00 5A 6D 00 00 B1 04 04 00 87 CF 0A B2 70 04 04 00 10 87 51 71 72 04 04 00 77 48 B9 40 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 BC 2D E9 12 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 76 65 93 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 9C 00 6F 04 04 00 60 03 00 00 B1 04 04 00 18 17 A1 0C 70 04 04 00 18 17 A1 0C 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 17 60 57 01 EF 03 09 00 F6 90 00 54 [00:10:28]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 BA 70 00 00 69 04 A1 00 6F 04 04 00 5A 6D 00 00 B1 04 04 00 87 CF 0A B2 70 04 04 00 10 87 51 71 72 04 04 00 77 48 B9 40 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 BC 2D E9 12 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 76 65 93 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 9C 00 6F 04 04 00 60 03 00 00 B1 04 04 00 18 17 A1 0C 70 04 04 00 18 17 A1 0C 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 17 60 57 01 EF 03 09 00 F6 90 00 [00:10:28]wFMCommunicate OK [00:10:28]wFMCommunicate request_size=4 [00:10:28]MH_SAM_APDU [00:10:28]CAPDU: 80 17 00 00 [00:10:28]Write to MH i2c: E2 08 00 04 6F 80 17 00 00 00 00 00 00 F3 [00:10:28]Write i2c OK [00:10:28]MH_I2C_Read... [00:10:28]OFD Sender: No OFD packet to send [00:10:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:28]Read from MH i2c: E2 [00:10:28]MH_I2C_Read... [00:10:28]Read from MH i2c: E2 FD 00 [00:10:28]MH_I2C_Read... [00:10:28]Read from MH i2c: E2 FD 00 04 6F 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 9C 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 52 [00:10:28]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 9C 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 [00:10:28]wFMCommunicate OK [00:10:28]wFMCommunicate request_size=4 [00:10:28]MH_SAM_APDU [00:10:28]CAPDU: 80 17 00 00 [00:10:28]Write to MH i2c: E2 08 00 05 6F 80 17 00 00 00 00 00 00 F4 [00:10:28]Write i2c OK [00:10:28]MH_I2C_Read... [00:10:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:29]Read from MH i2c: E2 [00:10:29]MH_I2C_Read... [00:10:29]Read from MH i2c: E2 FD 00 [00:10:29]MH_I2C_Read... [00:10:29]Read from MH i2c: E2 FD 00 05 6F 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 12 [00:10:29]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:29]wFMCommunicate OK [00:10:29]wFMCommunicate request_size=4 [00:10:29]MH_SAM_APDU [00:10:29]CAPDU: 80 17 00 00 [00:10:29]Write to MH i2c: E2 08 00 06 6F 80 17 00 00 00 00 00 00 F5 [00:10:29]Write i2c OK [00:10:29]MH_I2C_Read... [00:10:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:29]Read from MH i2c: E2 [00:10:29]MH_I2C_Read... [00:10:29]Read from MH i2c: E2 FD 00 [00:10:29]MH_I2C_Read... [00:10:29]Read from MH i2c: E2 FD 00 06 6F 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 67 [00:10:29]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:10:29]wFMCommunicate OK [00:10:29]wFMCommunicate request_size=4 [00:10:29]MH_SAM_APDU [00:10:29]CAPDU: 80 17 00 00 [00:10:29]Write to MH i2c: E2 08 00 07 6F 80 17 00 00 00 00 00 00 F6 [00:10:29]Write i2c OK [00:10:29]MH_I2C_Read... [00:10:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:10:29]Read from MH i2c: E2 [00:10:29]MH_I2C_Read... [00:10:29]Read from MH i2c: E2 E0 00 [00:10:29]MH_I2C_Read... [00:10:29]Read from MH i2c: E2 E0 00 07 6F 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E0 [00:10:29]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:10:29]wFMCommunicate OK [00:10:29]SAM_PROTO_GetFMData done [00:10:29]requested_item fm.sale_refund.total is exist - process it [00:10:29]requested_item fm.buy.total is exist - process it [00:10:29]requested_item shift.sale.total is exist - process it [00:10:29]SAM_PROTO_GetShiftData [00:10:29]wFMCommunicate request_size=4 [00:10:29]MH_SAM_APDU [00:10:29]CAPDU: 80 13 02 00 [00:10:29]Write to MH i2c: E2 08 00 08 6F 80 13 02 00 00 00 00 00 F5 [00:10:29]Write i2c OK [00:10:29]MH_I2C_Read... [00:10:30]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:10:30]Read from MH i2c: E2 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 FD 00 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 FD 00 08 6F 00 BC 04 AA 04 B8 04 6E 04 04 00 27 01 00 00 69 04 9E 00 6F 04 04 00 22 01 00 00 B1 04 04 00 27 26 F4 01 70 04 03 00 C8 4C E5 72 04 04 00 5F D9 0E 01 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 68 1F 35 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 2D 6D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 F0 9C 09 70 04 03 00 F0 9C 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 67 05 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 CC [00:10:30]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 27 01 00 00 69 04 9E 00 6F 04 04 00 22 01 00 00 B1 04 04 00 27 26 F4 01 70 04 03 00 C8 4C E5 72 04 04 00 5F D9 0E 01 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 68 1F 35 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 2D 6D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 F0 9C 09 70 04 03 00 F0 9C 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 67 05 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:10:30]wFMCommunicate OK [00:10:30]wFMCommunicate request_size=4 [00:10:30]MH_SAM_APDU [00:10:30]CAPDU: 80 17 00 00 [00:10:30]Write to MH i2c: E2 08 00 09 6F 80 17 00 00 00 00 00 00 F8 [00:10:30]Write i2c OK [00:10:30]MH_I2C_Read... [00:10:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:30]Read from MH i2c: E2 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 FD 00 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 FD 00 09 6F 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 7F [00:10:30]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [00:10:30]wFMCommunicate OK [00:10:30]wFMCommunicate request_size=4 [00:10:30]MH_SAM_APDU [00:10:30]CAPDU: 80 17 00 00 [00:10:30]Write to MH i2c: E2 08 00 0A 6F 80 17 00 00 00 00 00 00 F9 [00:10:30]Write i2c OK [00:10:30]MH_I2C_Read... [00:10:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:30]Read from MH i2c: E2 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 FD 00 [00:10:30]MH_I2C_Read... [00:10:30]Read from MH i2c: E2 FD 00 0A 6F 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 22 [00:10:30]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [00:10:30]wFMCommunicate OK [00:10:30]wFMCommunicate request_size=4 [00:10:30]MH_SAM_APDU [00:10:30]CAPDU: 80 17 00 00 [00:10:30]Write to MH i2c: E2 08 00 0B 6F 80 17 00 00 00 00 00 00 FA [00:10:30]Write i2c OK [00:10:30]MH_I2C_Read... [00:10:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:31]Read from MH i2c: E2 [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: E2 FD 00 [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: E2 FD 00 0B 6F 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 7B [00:10:31]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:10:31]wFMCommunicate OK [00:10:31]wFMCommunicate request_size=4 [00:10:31]MH_SAM_APDU [00:10:31]CAPDU: 80 17 00 00 [00:10:31]Write to MH i2c: E2 08 00 0C 6F 80 17 00 00 00 00 00 00 FB [00:10:31]Write i2c OK [00:10:31]MH_I2C_Read... [00:10:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:10:31]Read from MH i2c: E2 [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: E2 D9 00 [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: E2 D9 00 0C 6F 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DA [00:10:31]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:10:31]wFMCommunicate OK [00:10:31]SAM_PROTO_GetShiftData done [00:10:31]requested_item shift.sale.total_cash is exist - process it [00:10:31]requested_item shift.sale_refund.total is exist - process it [00:10:31]requested_item shift.sale_refund.total_cash is exist - process it [00:10:31]requested_item shift.buy.total is exist - process it [00:10:31]requested_item shift.buy.total_cash is exist - process it [00:10:31]produce_requested_data done [00:10:31]produce_requested_data return {"fm.sale.total":29870529.35,"fm.sale_refund.total":2118838.00,"fm.buy.total":0.00,"shift.sale.total":327777.67,"shift.sale.total_cash":150274.00,"shift.sale_refund.total":6300.00,"shift.sale_refund.total_cash":6300.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:10:31]process_action_free get_value [00:10:31]json_value_free [00:10:31]json_value_free done [00:10:31]process_json_proto returns [00:10:31]Send response to host [00:10:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29870529.35,"fm.sale_refund.total":2118838.00,"fm.buy.total":0.00,"shift.sale.total":327777.67,"shift.sale.total_cash":150274.00,"shift.sale_refund.total":6300.00,"shift.sale_refund.total_cash":6300.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:10:31]free response buf [00:10:31]execute_script done [00:10:31]execute_script returns [00:10:31]free content buf [00:10:31]Sock 9.Close socket [00:10:31]Sock 9.Thread stoped [00:10:31]accept exits with 7 [00:10:31]New connection [00:10:31]New thread 3066785124 created [00:10:31]Thread 3066928484 joined [00:10:31]Waiting for new connection... [00:10:31] Sock 7.Parse request [00:10:31]Sock 7.Check first char [00:10:31]Sock 7.First char is OK [00:10:31]request: POST /json_proto HTTP/1.0 [00:10:31]Method: POST [00:10:31]URL: /json_proto [00:10:31]Method is POST - this is cgi request [00:10:31]url: /json_proto [00:10:31]query_string will be loaded in cgi processing [00:10:31]execute_cgi json_proto POST (null) [00:10:31]execute_cgi path=json_proto method=POST [00:10:31]POST find Content-Length [00:10:31]Host: 172.17.33.3:8080 [00:10:31]Content-Length: 331 [00:10:31]Content-Type: application/json [00:10:31] [00:10:31]POST finish read [00:10:31]Found Content-Length = 331 [00:10:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:10:31]execute_script... [00:10:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:10:31]POST & json_proto [00:10:31]process_json_proto [00:10:31]json parsed OK: [00:10:31]protocol is kg_v1.0 [00:10:31]action value=get_value [00:10:31]process_action get_value [00:10:31]cmd_get_value [00:10:31]process_action get_value done [00:10:31]requested_data is exist [00:10:31]produce_requested_data [00:10:31]requested_item fm.sale.total is exist - process it [00:10:31]SAM_PROTO_GetFMData [00:10:31]wFMCommunicate request_size=4 [00:10:31]MH_SAM_APDU [00:10:31]CAPDU: 80 13 03 00 [00:10:31]Write to MH i2c: E2 08 00 0D 6F 80 13 03 00 00 00 00 00 FB [00:10:31]Write i2c OK [00:10:31]MH_I2C_Read... [00:10:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:10:31]Read from MH i2c: E2 [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: E2 FD 00 [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: E2 FD 00 0D 6F 00 C3 04 85 04 BF 04 6E 04 04 00 BA 70 00 00 69 04 A1 00 6F 04 04 00 5A 6D 00 00 B1 04 04 00 87 CF 0A B2 70 04 04 00 10 87 51 71 72 04 04 00 77 48 B9 40 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 BC 2D E9 12 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 76 65 93 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 9C 00 6F 04 04 00 60 03 00 00 B1 04 04 00 18 17 A1 0C 70 04 04 00 18 17 A1 0C 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 17 60 57 01 EF 03 09 00 F6 90 00 5E [00:10:32]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 BA 70 00 00 69 04 A1 00 6F 04 04 00 5A 6D 00 00 B1 04 04 00 87 CF 0A B2 70 04 04 00 10 87 51 71 72 04 04 00 77 48 B9 40 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 BC 2D E9 12 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 76 65 93 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 9C 00 6F 04 04 00 60 03 00 00 B1 04 04 00 18 17 A1 0C 70 04 04 00 18 17 A1 0C 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 17 60 57 01 EF 03 09 00 F6 90 00 [00:10:32]wFMCommunicate OK [00:10:32]wFMCommunicate request_size=4 [00:10:32]MH_SAM_APDU [00:10:32]CAPDU: 80 17 00 00 [00:10:32]Write to MH i2c: E2 08 00 0E 6F 80 17 00 00 00 00 00 00 FD [00:10:32]Write i2c OK [00:10:32]MH_I2C_Read... [00:10:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:32]Read from MH i2c: E2 [00:10:32]MH_I2C_Read... [00:10:32]Read from MH i2c: E2 FD 00 [00:10:32]MH_I2C_Read... [00:10:32]Read from MH i2c: E2 FD 00 0E 6F 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 9C 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 5C [00:10:32]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 9C 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 [00:10:32]wFMCommunicate OK [00:10:32]wFMCommunicate request_size=4 [00:10:32]MH_SAM_APDU [00:10:32]CAPDU: 80 17 00 00 [00:10:32]Write to MH i2c: E2 08 00 0F 6F 80 17 00 00 00 00 00 00 FE [00:10:32]Write i2c OK [00:10:32]MH_I2C_Read... [00:10:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:32]Read from MH i2c: E2 [00:10:32]MH_I2C_Read... [00:10:32]Read from MH i2c: E2 FD 00 [00:10:32]MH_I2C_Read... [00:10:32]Read from MH i2c: E2 FD 00 0F 6F 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1C [00:10:32]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:32]wFMCommunicate OK [00:10:32]wFMCommunicate request_size=4 [00:10:32]MH_SAM_APDU [00:10:32]CAPDU: 80 17 00 00 [00:10:32]Write to MH i2c: E2 08 00 10 6F 80 17 00 00 00 00 00 00 FF [00:10:32]Write i2c OK [00:10:32]MH_I2C_Read... [00:10:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:33]Read from MH i2c: E2 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 FD 00 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 FD 00 10 6F 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 71 [00:10:33]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:10:33]wFMCommunicate OK [00:10:33]wFMCommunicate request_size=4 [00:10:33]MH_SAM_APDU [00:10:33]CAPDU: 80 17 00 00 [00:10:33]Write to MH i2c: E2 08 00 11 6F 80 17 00 00 00 00 00 00 00 [00:10:33]Write i2c OK [00:10:33]MH_I2C_Read... [00:10:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:10:33]Read from MH i2c: E2 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 E0 00 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 E0 00 11 6F 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EA [00:10:33]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:10:33]wFMCommunicate OK [00:10:33]SAM_PROTO_GetFMData done [00:10:33]requested_item fm.sale_refund.total is exist - process it [00:10:33]requested_item fm.buy.total is exist - process it [00:10:33]requested_item shift.sale.total is exist - process it [00:10:33]SAM_PROTO_GetShiftData [00:10:33]wFMCommunicate request_size=4 [00:10:33]MH_SAM_APDU [00:10:33]CAPDU: 80 13 02 00 [00:10:33]Write to MH i2c: E2 08 00 12 6F 80 13 02 00 00 00 00 00 FF [00:10:33]Write i2c OK [00:10:33]MH_I2C_Read... [00:10:33]OFD Sender: No OFD packet to send [00:10:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:10:34]Read from MH i2c: E2 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 FD 00 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 FD 00 12 6F 00 BC 04 AA 04 B8 04 6E 04 04 00 27 01 00 00 69 04 9E 00 6F 04 04 00 22 01 00 00 B1 04 04 00 27 26 F4 01 70 04 03 00 C8 4C E5 72 04 04 00 5F D9 0E 01 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 68 1F 35 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 2D 6D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 F0 9C 09 70 04 03 00 F0 9C 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 67 05 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 D6 [00:10:34]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 27 01 00 00 69 04 9E 00 6F 04 04 00 22 01 00 00 B1 04 04 00 27 26 F4 01 70 04 03 00 C8 4C E5 72 04 04 00 5F D9 0E 01 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 68 1F 35 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 2D 6D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 F0 9C 09 70 04 03 00 F0 9C 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 67 05 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:10:34]wFMCommunicate OK [00:10:34]wFMCommunicate request_size=4 [00:10:34]MH_SAM_APDU [00:10:34]CAPDU: 80 17 00 00 [00:10:34]Write to MH i2c: E2 08 00 13 6F 80 17 00 00 00 00 00 00 02 [00:10:34]Write i2c OK [00:10:34]MH_I2C_Read... [00:10:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:34]Read from MH i2c: E2 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 FD 00 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 FD 00 13 6F 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 89 [00:10:34]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [00:10:34]wFMCommunicate OK [00:10:34]wFMCommunicate request_size=4 [00:10:34]MH_SAM_APDU [00:10:34]CAPDU: 80 17 00 00 [00:10:34]Write to MH i2c: E2 08 00 14 6F 80 17 00 00 00 00 00 00 03 [00:10:34]Write i2c OK [00:10:34]MH_I2C_Read... [00:10:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:34]Read from MH i2c: E2 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 FD 00 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 FD 00 14 6F 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 2C [00:10:34]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [00:10:35]wFMCommunicate OK [00:10:35]wFMCommunicate request_size=4 [00:10:35]MH_SAM_APDU [00:10:35]CAPDU: 80 17 00 00 [00:10:35]Write to MH i2c: E2 08 00 15 6F 80 17 00 00 00 00 00 00 04 [00:10:35]Write i2c OK [00:10:35]MH_I2C_Read... [00:10:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:35]Read from MH i2c: E2 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 FD 00 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 FD 00 15 6F 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 85 [00:10:35]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:10:35]wFMCommunicate OK [00:10:35]wFMCommunicate request_size=4 [00:10:35]MH_SAM_APDU [00:10:35]CAPDU: 80 17 00 00 [00:10:35]Write to MH i2c: E2 08 00 16 6F 80 17 00 00 00 00 00 00 05 [00:10:35]Write i2c OK [00:10:35]MH_I2C_Read... [00:10:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:10:35]Read from MH i2c: E2 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 D9 00 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 D9 00 16 6F 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E4 [00:10:35]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:10:35]wFMCommunicate OK [00:10:35]SAM_PROTO_GetShiftData done [00:10:35]requested_item shift.sale.total_cash is exist - process it [00:10:35]requested_item shift.sale_refund.total is exist - process it [00:10:35]requested_item shift.sale_refund.total_cash is exist - process it [00:10:35]requested_item shift.buy.total is exist - process it [00:10:35]requested_item shift.buy.total_cash is exist - process it [00:10:35]produce_requested_data done [00:10:35]produce_requested_data return {"fm.sale.total":29870529.35,"fm.sale_refund.total":2118838.00,"fm.buy.total":0.00,"shift.sale.total":327777.67,"shift.sale.total_cash":150274.00,"shift.sale_refund.total":6300.00,"shift.sale_refund.total_cash":6300.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:10:35]process_action_free get_value [00:10:35]json_value_free [00:10:35]json_value_free done [00:10:35]process_json_proto returns [00:10:35]Send response to host [00:10:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29870529.35,"fm.sale_refund.total":2118838.00,"fm.buy.total":0.00,"shift.sale.total":327777.67,"shift.sale.total_cash":150274.00,"shift.sale_refund.total":6300.00,"shift.sale_refund.total_cash":6300.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:10:35]free response buf [00:10:35]execute_script done [00:10:35]execute_script returns [00:10:35]free content buf [00:10:35]Sock 7.Close socket [00:10:35]Sock 7.Thread stoped [00:10:35]accept exits with 9 [00:10:35]New connection [00:10:35]New thread 3066928484 created [00:10:35]Thread 3066785124 joined [00:10:35]Waiting for new connection... [00:10:35] Sock 9.Parse request [00:10:35]Sock 9.Check first char [00:10:35]Sock 9.First char is OK [00:10:35]request: POST /json_proto HTTP/1.0 [00:10:35]Method: POST [00:10:35]URL: /json_proto [00:10:35]Method is POST - this is cgi request [00:10:35]url: /json_proto [00:10:35]query_string will be loaded in cgi processing [00:10:35]execute_cgi json_proto POST (null) [00:10:35]execute_cgi path=json_proto method=POST [00:10:35]POST find Content-Length [00:10:35]Host: 172.17.33.3:8080 [00:10:35]Content-Length: 269 [00:10:35]Content-Type: application/json [00:10:35] [00:10:35]POST finish read [00:10:35]Found Content-Length = 269 [00:10:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:35]execute_script... [00:10:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:35]POST & json_proto [00:10:35]process_json_proto [00:10:35]json parsed OK: [00:10:35]protocol is kg_v1.0 [00:10:35]action value=x_report [00:10:35]process_action x_report [00:10:35]cmd_x_report [00:10:35]MH_GetDate [00:10:35]Write to MH i2c: F0 00 00 17 6F 75 [00:10:35]Write i2c OK [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: F0 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: F0 09 00 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: F0 09 00 17 6F 00 03 1F 1B 66 23 5B 8F 65 93 [00:10:35]GetLastDocTimeStamp 1713053228 [00:10:35]current date 1713053443 [00:10:35]FM_GetShiftState [00:10:35]SAM_PROTO_GetShiftState [00:10:35]wFMCommunicate request_size=4 [00:10:35]MH_SAM_APDU [00:10:35]CAPDU: 80 13 01 00 [00:10:36]Write to MH i2c: E2 08 00 18 6F 80 13 01 00 00 00 00 00 04 [00:10:36]Write i2c OK [00:10:36]MH_I2C_Read... [00:10:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:36]Read from MH i2c: E2 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 0E 00 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 0E 00 18 6F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 1D [00:10:36]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [00:10:36]wFMCommunicate OK [00:10:36]SAM_PROTO_GetShiftState done [00:10:36]FM_GetShiftState done [00:10:36]KKMCreateXReportDocument [00:10:36]Load OK [00:10:36]Malloc new data [00:10:36]MH_GetDate [00:10:36]Write to MH i2c: F0 00 00 19 6F 77 [00:10:36]Write i2c OK [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: F0 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: F0 09 00 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: F0 09 00 19 6F 00 03 1F 1B 66 23 5B 8F 65 95 [00:10:36]Malloc new data [00:10:36]Malloc new data [00:10:36]wFMCommunicate request_size=4 [00:10:36]MH_SAM_APDU [00:10:36]CAPDU: 80 11 00 00 [00:10:36]Write to MH i2c: E2 08 00 1A 6F 80 11 00 00 00 00 00 00 03 [00:10:36]Write i2c OK [00:10:36]MH_I2C_Read... [00:10:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:36]Read from MH i2c: E2 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 17 00 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 17 00 1A 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 52 [00:10:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:10:36]wFMCommunicate OK [00:10:36]SAM_PROTO_GetFieldsCounters [00:10:36]wFMCommunicate request_size=4 [00:10:36]MH_SAM_APDU [00:10:36]CAPDU: 80 13 00 00 [00:10:36]Write to MH i2c: E2 08 00 1B 6F 80 13 00 00 00 00 00 00 06 [00:10:36]Write i2c OK [00:10:36]MH_I2C_Read... [00:10:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:10:36]Read from MH i2c: E2 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 62 00 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 62 00 1B 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A0 71 00 00 0E 04 04 00 73 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 40 [00:10: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A0 71 00 00 0E 04 04 00 73 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 [00:10:36]wFMCommunicate OK [00:10:36]SAM_PROTO_GetFieldsCounters done [00:10:36]Malloc new data [00:10:36]Malloc new data [00:10:36]Malloc new data [00:10:36]KKMCreateXReportDocument OK [00:10:36]KKMSetXReportData OK [00:10:36]KKMPrepareXReportFMData [00:10:36]SAM_PROTO_GetShiftData [00:10:36]wFMCommunicate request_size=4 [00:10:36]MH_SAM_APDU [00:10:36]CAPDU: 80 13 02 00 [00:10:36]Write to MH i2c: E2 08 00 1C 6F 80 13 02 00 00 00 00 00 09 [00:10:36]Write i2c OK [00:10:36]MH_I2C_Read... [00:10:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:10:36]Read from MH i2c: E2 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 FD 00 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 FD 00 1C 6F 00 BC 04 AA 04 B8 04 6E 04 04 00 27 01 00 00 69 04 9E 00 6F 04 04 00 22 01 00 00 B1 04 04 00 27 26 F4 01 70 04 03 00 C8 4C E5 72 04 04 00 5F D9 0E 01 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 68 1F 35 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 2D 6D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 F0 9C 09 70 04 03 00 F0 9C 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 67 05 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 E0 [00:10:37]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 27 01 00 00 69 04 9E 00 6F 04 04 00 22 01 00 00 B1 04 04 00 27 26 F4 01 70 04 03 00 C8 4C E5 72 04 04 00 5F D9 0E 01 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 68 1F 35 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 2D 6D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 F0 9C 09 70 04 03 00 F0 9C 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 67 05 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:10:37]wFMCommunicate OK [00:10:37]wFMCommunicate request_size=4 [00:10:37]MH_SAM_APDU [00:10:37]CAPDU: 80 17 00 00 [00:10:37]Write to MH i2c: E2 08 00 1D 6F 80 17 00 00 00 00 00 00 0C [00:10:37]Write i2c OK [00:10:37]MH_I2C_Read... [00:10:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:37]Read from MH i2c: E2 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: E2 FD 00 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: E2 FD 00 1D 6F 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 93 [00:10:37]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [00:10:37]wFMCommunicate OK [00:10:37]wFMCommunicate request_size=4 [00:10:37]MH_SAM_APDU [00:10:37]CAPDU: 80 17 00 00 [00:10:37]Write to MH i2c: E2 08 00 1E 6F 80 17 00 00 00 00 00 00 0D [00:10:37]Write i2c OK [00:10:37]MH_I2C_Read... [00:10:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:37]Read from MH i2c: E2 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: E2 FD 00 [00:10:37]MH_I2C_Read... [00:10:37]Read from MH i2c: E2 FD 00 1E 6F 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 36 [00:10:38]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [00:10:38]wFMCommunicate OK [00:10:38]wFMCommunicate request_size=4 [00:10:38]MH_SAM_APDU [00:10:38]CAPDU: 80 17 00 00 [00:10:38]Write to MH i2c: E2 08 00 1F 6F 80 17 00 00 00 00 00 00 0E [00:10:38]Write i2c OK [00:10:38]MH_I2C_Read... [00:10:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:38]Read from MH i2c: E2 [00:10:38]MH_I2C_Read... [00:10:38]Read from MH i2c: E2 FD 00 [00:10:38]MH_I2C_Read... [00:10:38]Read from MH i2c: E2 FD 00 1F 6F 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 8F [00:10:38]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:10:38]wFMCommunicate OK [00:10:38]wFMCommunicate request_size=4 [00:10:38]MH_SAM_APDU [00:10:38]CAPDU: 80 17 00 00 [00:10:38]Write to MH i2c: E2 08 00 20 6F 80 17 00 00 00 00 00 00 0F [00:10:38]Write i2c OK [00:10:38]MH_I2C_Read... [00:10:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:10:38]Read from MH i2c: E2 [00:10:38]MH_I2C_Read... [00:10:38]Read from MH i2c: E2 D9 00 [00:10:38]MH_I2C_Read... [00:10:38]Read from MH i2c: E2 D9 00 20 6F 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EE [00:10:38]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:10:39]wFMCommunicate OK [00:10:39]SAM_PROTO_GetShiftData done [00:10:39]1194 (1208) - счетчики итогов смены [00:10:39] 1134 (4) - 295 - количество чеков со всеми признаками расчетов [00:10:39] 1129 (158) - счетчики операций «приход» [00:10:39] 1135 (4) - 290 - количество чеков по признаку расчетов [00:10:39] 1201 (4) - 327777.67 - общая итоговая сумма в чеках [00:10:39] 1136 (3) - 150274.00 - итоговая сумма в чеках наличными [00:10:39] 1138 (4) - 177503.67 - итоговая сумма в чеках безналичными [00:10:39] 1024 (123) - суммы налогов [00:10:39] 1006 (9) - суммы НДС [00:10:39] 1010 (1) - 0% - код ставки НДС [00:10:39] 1011 (0) - 0.00 - сумма НДС по ставке [00:10:39] 1006 (12) - суммы НДС [00:10:39] 1010 (1) - 12% - код ставки НДС [00:10:39] 1011 (3) - 34814.48 - сумма НДС по ставке [00:10:39] 1007 (9) - суммы НСП [00:10:39] 1014 (1) - 0% - код ставки НСП [00:10:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:39] OFD Sender: No OFD packet to send [00:10:39]1007 (12) - суммы НСП [00:10:39] 1014 (1) - 1% - код ставки НСП [00:10:39] 1015 (3) - 2900.93 - сумма НСП по ставке [00:10:39] 1007 (9) - суммы НСП [00:10:39] 1014 (1) - 2% - код ставки НСП [00:10:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:39] 1007 (9) - суммы НСП [00:10:39] 1014 (1) - 3% - код ставки НСП [00:10:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:39] 1007 (9) - суммы НСП [00:10:39] 1014 (1) - 5% - код ставки НСП [00:10:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:39] 1007 (9) - суммы НСП [00:10:39] 1014 (1) - 0,50% - код ставки НСП [00:10:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:39] 1007 (9) - суммы НСП [00:10:39] 1014 (1) - 1,50% - код ставки НСП [00:10:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:39] 1130 (152) - счетчики операций «возврат прихода» [00:10:39] 1135 (4) - 5 - количество чеков по признаку расчетов [00:10:39] 1201 (3) - 6300.00 - общая итоговая сумма в чеках [00:10:39] 1136 (3) - 6300.00 - итоговая сумма в чеках наличными [00:10:39] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:10:39] 1024 (122) - суммы налогов [00:10:39] 1006 (9) - суммы НДС [00:10:39] 1010 (1) - 0% - код ставки НДС [00:10:39] 1011 (0) - 0.00 - сумма НДС по ставке [00:10:39] 1006 (12) - суммы НДС [00:10:39] 1010 (1) - 12% - код ставки НДС [00:10:39] 1011 (3) - 669.19 - сумма НДС по ставке [00:10:39] 1007 (9) - суммы НСП [00:10:39] 1014 (1) - 0% - код ставки НСП [00:10:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:39] 1007 (11) - суммы НСП [00:10:39] 1014 (1) - 1% - код ставки НСП [00:10:39] 1015 (2) - 55.76 - сумма НСП по ставке [00:10:39] 1007 (9) - суммы НСП [00:10:39] 1014 (1) - 2% - код ставки НСП [00:10:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:39] 1007 (9) - суммы НСП [00:10:39] 1014 (1) - 3% - код ставки НСП [00:10:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:39] 1007 (9) - суммы НСП [00:10:39] 1014 (1) - 5% - код ставки НСП [00:10:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:39] 1007 (9) - суммы НСП [00:10:39] 1014 (1) - 0,50% - код ставки НСП [00:10:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:39] 1007 (9) - суммы НСП [00:10:39] 1014 (1) - 1,50% - код ставки НСП [00:10:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:39] 1131 (141) - счетчики операций «расход» [00:10:39] 1135 (4) - 0 - количество чеков по признаку расчетов [00:10:39] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:10:39] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:10:39] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:10:39] 1024 (117) - суммы налогов [00:10:39] 1006 (9) - суммы НДС [00:10:39] 1010 (1) - 0% - код ставки НДС [00:10:39] 1011 (0) - 0.00 - сумма НДС по ставке [00:10:39] 1006 (9) - суммы НДС [00:10:39] 1010 (1) - 12% - код ставки НДС [00:10:39] 1011 (0) - 0.00 - сумма НДС по ставке [00:10:39] 1007 (9) - суммы НСП [00:10:39] 1014 (1) - 0% - код ставки НСП [00:10:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:39] 1007 (9) - суммы НСП [00:10:39] 1014 (1) - 1% - код ставки НСП [00:10:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:39] 1007 (9) - суммы НСП [00:10:39] 1014 (1) - 2% - код ставки НСП [00:10:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:39] 1007 (9) - суммы НСП [00:10:39] 1014 (1) - 3% - код ставки НСП [00:10:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:39] 1007 (9) - суммы НСП [00:10:39] 1014 (1) - 5% - код ставки НСП [00:10:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:39] 1007 (9) - суммы НСП [00:10:39] 1014 (1) - 0,50% - код ставки НСП [00:10:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:39] 1007 (9) - суммы НСП [00:10:39] 1014 (1) - 1,50% - код ставки НСП [00:10:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:39] 1132 (141) - счетчики операций «возврат расхода» [00:10:39] 1135 (4) - 0 - количество чеков по признаку расчетов [00:10:39] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:10:39] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:10:39] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:10:39] 1024 (117) - суммы налогов [00:10:39] 1006 (9) - суммы НДС [00:10:39] 1010 (1) - 0% - код ставки НДС [00:10:39] 1011 (0) - 0.00 - сумма НДС по ставке [00:10:39] 1006 (9) - суммы НДС [00:10:39] 1010 (1) - 12% - код ставки НДС [00:10:39] 1011 (0) - 0.00 - сумма НДС по ставке [00:10:39] 1007 (9) - суммы НСП [00:10:39] 1014 (1) - 0% - код ставки НСП [00:10:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:39] 1007 (9) - суммы НСП [00:10:39] 1014 (1) - 1% - код ставки НСП [00:10:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:39] 1007 (9) - суммы НСП [00:10:39] 1014 (1) - 2% - код ставки НСП [00:10:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:39] 1007 (9) - суммы НСП [00:10:39] 1014 (1) - 3% - код ставки НСП [00:10:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:39] 1007 (9) - суммы НСП [00:10:39] 1014 (1) - 5% - код ставки НСП [00:10:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:39] 1007 (9) - суммы НСП [00:10:39] 1014 (1) - 0,50% - код ставки НСП [00:10:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:39] 1007 (9) - суммы НСП [00:10:39] 1014 (1) - 1,50% - код ставки НСП [00:10:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:39] 1133 (588) - - счетчики коррекции - не используются [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1194 (04AA) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1134 (046E) [00:10:39]Malloc new data [00:10:39]Processing tag 1129 (0469) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1135 (046F) [00:10:39]Malloc new data [00:10:39]Processing tag 1201 (04B1) [00:10:39]Malloc new data [00:10:39]Processing tag 1136 (0470) [00:10:39]Malloc new data [00:10:39]Processing tag 1138 (0472) [00:10:39]Malloc new data [00:10:39]Processing tag 1024 (0400) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1006 (03EE) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1010 (03F2) [00:10:39]Malloc new data [00:10:39]Processing tag 1011 (03F3) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1006 (03EE) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1010 (03F2) [00:10:39]Malloc new data [00:10:39]Processing tag 1011 (03F3) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1007 (03EF) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1014 (03F6) [00:10:39]Malloc new data [00:10:39]Processing tag 1015 (03F7) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1007 (03EF) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1014 (03F6) [00:10:39]Malloc new data [00:10:39]Processing tag 1015 (03F7) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1007 (03EF) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1014 (03F6) [00:10:39]Malloc new data [00:10:39]Processing tag 1015 (03F7) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1007 (03EF) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1014 (03F6) [00:10:39]Malloc new data [00:10:39]Processing tag 1015 (03F7) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1007 (03EF) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1014 (03F6) [00:10:39]Malloc new data [00:10:39]Processing tag 1015 (03F7) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1007 (03EF) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1014 (03F6) [00:10:39]Malloc new data [00:10:39]Processing tag 1015 (03F7) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1007 (03EF) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1014 (03F6) [00:10:39]Malloc new data [00:10:39]Processing tag 1015 (03F7) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]SetTLVBufToDocument err=0 [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1130 (046A) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1135 (046F) [00:10:39]Malloc new data [00:10:39]Processing tag 1201 (04B1) [00:10:39]Malloc new data [00:10:39]Processing tag 1136 (0470) [00:10:39]Malloc new data [00:10:39]Processing tag 1138 (0472) [00:10:39]Malloc new data [00:10:39]Processing tag 1024 (0400) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1006 (03EE) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1010 (03F2) [00:10:39]Malloc new data [00:10:39]Processing tag 1011 (03F3) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1006 (03EE) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1010 (03F2) [00:10:39]Malloc new data [00:10:39]Processing tag 1011 (03F3) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1007 (03EF) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1014 (03F6) [00:10:39]Malloc new data [00:10:39]Processing tag 1015 (03F7) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1007 (03EF) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1014 (03F6) [00:10:39]Malloc new data [00:10:39]Processing tag 1015 (03F7) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1007 (03EF) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1014 (03F6) [00:10:39]Malloc new data [00:10:39]Processing tag 1015 (03F7) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1007 (03EF) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1014 (03F6) [00:10:39]Malloc new data [00:10:39]Processing tag 1015 (03F7) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1007 (03EF) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1014 (03F6) [00:10:39]Malloc new data [00:10:39]Processing tag 1015 (03F7) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1007 (03EF) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1014 (03F6) [00:10:39]Malloc new data [00:10:39]Processing tag 1015 (03F7) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1007 (03EF) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1014 (03F6) [00:10:39]Malloc new data [00:10:39]Processing tag 1015 (03F7) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]SetTLVBufToDocument err=0 [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1131 (046B) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1135 (046F) [00:10:39]Malloc new data [00:10:39]Processing tag 1201 (04B1) [00:10:39]Malloc new data [00:10:39]Processing tag 1136 (0470) [00:10:39]Malloc new data [00:10:39]Processing tag 1138 (0472) [00:10:39]Malloc new data [00:10:39]Processing tag 1024 (0400) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1006 (03EE) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1010 (03F2) [00:10:39]Malloc new data [00:10:39]Processing tag 1011 (03F3) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1006 (03EE) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1010 (03F2) [00:10:39]Malloc new data [00:10:39]Processing tag 1011 (03F3) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1007 (03EF) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1014 (03F6) [00:10:39]Malloc new data [00:10:39]Processing tag 1015 (03F7) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1007 (03EF) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1014 (03F6) [00:10:39]Malloc new data [00:10:39]Processing tag 1015 (03F7) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1007 (03EF) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1014 (03F6) [00:10:39]Malloc new data [00:10:39]Processing tag 1015 (03F7) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1007 (03EF) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1014 (03F6) [00:10:39]Malloc new data [00:10:39]Processing tag 1015 (03F7) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1007 (03EF) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1014 (03F6) [00:10:39]Malloc new data [00:10:39]Processing tag 1015 (03F7) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1007 (03EF) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1014 (03F6) [00:10:39]Malloc new data [00:10:39]Processing tag 1015 (03F7) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1007 (03EF) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1014 (03F6) [00:10:39]Malloc new data [00:10:39]Processing tag 1015 (03F7) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]SetTLVBufToDocument err=0 [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1132 (046C) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1135 (046F) [00:10:39]Malloc new data [00:10:39]Processing tag 1201 (04B1) [00:10:39]Malloc new data [00:10:39]Processing tag 1136 (0470) [00:10:39]Malloc new data [00:10:39]Processing tag 1138 (0472) [00:10:39]Malloc new data [00:10:39]Processing tag 1024 (0400) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1006 (03EE) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1010 (03F2) [00:10:39]Malloc new data [00:10:39]Processing tag 1011 (03F3) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1006 (03EE) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1010 (03F2) [00:10:39]Malloc new data [00:10:39]Processing tag 1011 (03F3) [00:10:39]Malloc new data [00:10:39]SetTLVBufToDocument err=0 [00:10:39]Processing tag 1007 (03EF) [00:10:39]Load OK [00:10:39]SetTLVBufToDocument [00:10:39]Processing tag 1014 (03F6) [00:10:39]Malloc new data [00:10:39]Processing tag 1015 (03F7) [00:10:40]Malloc new data [00:10:40]SetTLVBufToDocument err=0 [00:10:40]Processing tag 1007 (03EF) [00:10:40]Load OK [00:10:40]SetTLVBufToDocument [00:10:40]Processing tag 1014 (03F6) [00:10:40]Malloc new data [00:10:40]Processing tag 1015 (03F7) [00:10:40]Malloc new data [00:10:40]SetTLVBufToDocument err=0 [00:10:40]Processing tag 1007 (03EF) [00:10:40]Load OK [00:10:40]SetTLVBufToDocument [00:10:40]Processing tag 1014 (03F6) [00:10:40]Malloc new data [00:10:40]Processing tag 1015 (03F7) [00:10:40]Malloc new data [00:10:40]SetTLVBufToDocument err=0 [00:10:40]Processing tag 1007 (03EF) [00:10:40]Load OK [00:10:40]SetTLVBufToDocument [00:10:40]Processing tag 1014 (03F6) [00:10:40]Malloc new data [00:10:40]Processing tag 1015 (03F7) [00:10:40]Malloc new data [00:10:40]SetTLVBufToDocument err=0 [00:10:40]Processing tag 1007 (03EF) [00:10:40]Load OK [00:10:40]SetTLVBufToDocument [00:10:40]Processing tag 1014 (03F6) [00:10:40]Malloc new data [00:10:40]Processing tag 1015 (03F7) [00:10:40]Malloc new data [00:10:40]SetTLVBufToDocument err=0 [00:10:40]Processing tag 1007 (03EF) [00:10:40]Load OK [00:10:40]SetTLVBufToDocument [00:10:40]Processing tag 1014 (03F6) [00:10:40]Malloc new data [00:10:40]Processing tag 1015 (03F7) [00:10:40]Malloc new data [00:10:40]SetTLVBufToDocument err=0 [00:10:40]Processing tag 1007 (03EF) [00:10:40]Load OK [00:10:40]SetTLVBufToDocument [00:10:40]Processing tag 1014 (03F6) [00:10:40]Malloc new data [00:10:40]Processing tag 1015 (03F7) [00:10:40]Malloc new data [00:10:40]SetTLVBufToDocument err=0 [00:10:40]SetTLVBufToDocument err=0 [00:10:40]SetTLVBufToDocument err=0 [00:10:40]Processing tag 1133 (046D) [00:10:40]Malloc new data [00:10:40]SetTLVBufToDocument err=0 [00:10:40]SetTLVBufToDocument err=0 [00:10:40]Malloc new data [00:10:40]SAM_PROTO_GetFMData [00:10:40]wFMCommunicate request_size=4 [00:10:40]MH_SAM_APDU [00:10:40]CAPDU: 80 13 03 00 [00:10:40]Write to MH i2c: E2 08 00 21 6F 80 13 03 00 00 00 00 00 0F [00:10:40]Write i2c OK [00:10:40]MH_I2C_Read... [00:10:40]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:10:40]Read from MH i2c: E2 [00:10:40]MH_I2C_Read... [00:10:40]Read from MH i2c: E2 FD 00 [00:10:40]MH_I2C_Read... [00:10:40]Read from MH i2c: E2 FD 00 21 6F 00 C3 04 85 04 BF 04 6E 04 04 00 BA 70 00 00 69 04 A1 00 6F 04 04 00 5A 6D 00 00 B1 04 04 00 87 CF 0A B2 70 04 04 00 10 87 51 71 72 04 04 00 77 48 B9 40 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 BC 2D E9 12 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 76 65 93 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 9C 00 6F 04 04 00 60 03 00 00 B1 04 04 00 18 17 A1 0C 70 04 04 00 18 17 A1 0C 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 17 60 57 01 EF 03 09 00 F6 90 00 72 [00:10:40]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 BA 70 00 00 69 04 A1 00 6F 04 04 00 5A 6D 00 00 B1 04 04 00 87 CF 0A B2 70 04 04 00 10 87 51 71 72 04 04 00 77 48 B9 40 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 BC 2D E9 12 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 76 65 93 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 9C 00 6F 04 04 00 60 03 00 00 B1 04 04 00 18 17 A1 0C 70 04 04 00 18 17 A1 0C 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 17 60 57 01 EF 03 09 00 F6 90 00 [00:10:40]wFMCommunicate OK [00:10:40]wFMCommunicate request_size=4 [00:10:40]MH_SAM_APDU [00:10:40]CAPDU: 80 17 00 00 [00:10:40]Write to MH i2c: E2 08 00 22 6F 80 17 00 00 00 00 00 00 11 [00:10:40]Write i2c OK [00:10:40]MH_I2C_Read... [00:10:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:41]Read from MH i2c: E2 [00:10:41]MH_I2C_Read... [00:10:41]Read from MH i2c: E2 FD 00 [00:10:41]MH_I2C_Read... [00:10:41]Read from MH i2c: E2 FD 00 22 6F 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 9C 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 70 [00:10:41]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 9C 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 [00:10:41]wFMCommunicate OK [00:10:41]wFMCommunicate request_size=4 [00:10:41]MH_SAM_APDU [00:10:41]CAPDU: 80 17 00 00 [00:10:41]Write to MH i2c: E2 08 00 23 6F 80 17 00 00 00 00 00 00 12 [00:10:41]Write i2c OK [00:10:41]MH_I2C_Read... [00:10:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:41]Read from MH i2c: E2 [00:10:41]MH_I2C_Read... [00:10:41]Read from MH i2c: E2 FD 00 [00:10:41]MH_I2C_Read... [00:10:41]Read from MH i2c: E2 FD 00 23 6F 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 30 [00:10:41]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:10:42]wFMCommunicate OK [00:10:42]wFMCommunicate request_size=4 [00:10:42]MH_SAM_APDU [00:10:42]CAPDU: 80 17 00 00 [00:10:42]Write to MH i2c: E2 08 00 24 6F 80 17 00 00 00 00 00 00 13 [00:10:42]Write i2c OK [00:10:42]MH_I2C_Read... [00:10:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:42]Read from MH i2c: E2 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: E2 FD 00 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: E2 FD 00 24 6F 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 85 [00:10:42]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:10:42]wFMCommunicate OK [00:10:42]wFMCommunicate request_size=4 [00:10:42]MH_SAM_APDU [00:10:42]CAPDU: 80 17 00 00 [00:10:42]Write to MH i2c: E2 08 00 25 6F 80 17 00 00 00 00 00 00 14 [00:10:42]Write i2c OK [00:10:42]MH_I2C_Read... [00:10:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:10:42]Read from MH i2c: E2 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: E2 E0 00 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: E2 E0 00 25 6F 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FE [00:10:43]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:10:43]wFMCommunicate OK [00:10:43]SAM_PROTO_GetFMData done [00:10:43]FM_GetFMData:85 04 BF 04 6E 04 04 00 BA 70 00 00 69 04 A1 00 6F 04 04 00 5A 6D 00 00 B1 04 04 00 87 CF 0A B2 70 04 04 00 10 87 51 71 72 04 04 00 77 48 B9 40 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 BC 2D E9 12 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 76 65 93 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 9C 00 6F 04 04 00 60 03 00 00 B1 04 04 00 18 17 A1 0C 70 04 04 00 18 17 A1 0C 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 17 60 57 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 9C 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:10:43]oper:6F 04 04 00 5A 6D 00 00 B1 04 04 00 87 CF 0A B2 70 04 04 00 10 87 51 71 72 04 04 00 77 48 B9 40 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 BC 2D E9 12 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 76 65 93 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:10:43]total:87 CF 0A B2 [00:10:43]Malloc new data [00:10:43]oper:6F 04 04 00 60 03 00 00 B1 04 04 00 18 17 A1 0C 70 04 04 00 18 17 A1 0C 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 17 60 57 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 9C 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:10:44]total:18 17 A1 0C [00:10:44]Malloc new data [00:10:44]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:10:44]total: [00:10:44]Malloc new data [00:10:44]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 OFD Sender: No OFD packet to send [00:10:44]EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:10:44]total: [00:10:44]Malloc new data [00:10:44]KKMPrepareXReportFMData err=0 [00:10:44]Х отчет ИНН: 02508201610067 Кассир: Шадыканова Ж. 14.04.2024 00:10 Смена: 10 РНМ: 0000138879044617 ЗНМ: 0300000027 СНО: Общий режим Всего чеков: 295 ИТОГИ ПРИХОД Чеков: 290 Общий итог: 327777.67 Итого наличными: 150274.00 Итого безнал.: 177503.67 НДС 0% : 0.00 НДС 12% : 34814.48 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2900.93 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 5 Общий итог: 6300.00 Итого наличными: 6300.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 669.19 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 55.76 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 143974.00 НС Приход: 29870529.35 НС Возвр.Прихода: 2118838.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000963154 [00:10:44]StoreToDocumentArchive [00:10:44]MH_GetDate [00:10:44]Write to MH i2c: F0 00 00 26 6F 84 [00:10:44]Write i2c OK [00:10:44]MH_I2C_Read... [00:10:44]Read from MH i2c: F0 [00:10:44]MH_I2C_Read... [00:10:44]Read from MH i2c: F0 09 00 [00:10:44]MH_I2C_Read... [00:10:44]Read from MH i2c: F0 09 00 26 6F 00 0B 1F 1B 66 23 5B 8F 65 AA [00:10:44]shift 10 fd 1713053451 [00:10:44]Create dir for shift 0010 [00:10:44]save to /storage/0010/doc_1713053451 [00:10:44]save last doc name /storage/0010/doc_1713053451 to /storage/kkm_last_doc_name [00:10:44]save OK [00:10:44]Clear old archive folders... [00:10:44]NVStorageSaveData kkm_last_timestamp [00:10:44]File name is /storage/kkm_last_timestamp [00:10:44]Write 4 bytes [00:10:44]NVStorageSaveData done [00:10:44]ExternCall_PrintAddStr [00:10:44]wPrintStart [00:10:44]Write to MH i2c: 01 00 00 27 6F 96 [00:10:44]Write i2c OK [00:10:44]MH_I2C_Read... [00:10:44]Read from MH i2c: 01 [00:10:44]MH_I2C_Read... [00:10:44]Read from MH i2c: 01 07 00 [00:10:44]MH_I2C_Read... [00:10:44]Read from MH i2c: 01 07 00 27 6F 00 00 00 00 00 FF 0F AB [00:10:44]RasterBufferAndPrint [00:10:44]line Х отчет [00:10:44]line ИНН: 02508201610067 [00:10:44]line Кассир: Шадыканова Ж. [00:10:44]line 14.04.2024 00:10 [00:10:44]line Смена: 10 [00:10:44]line РНМ: 0000138879044617 [00:10:44]line ЗНМ: 0300000027 [00:10:44]line СНО: Общий режим [00:10:44]line Всего чеков: 295 [00:10:44]line ИТОГИ ПРИХОД [00:10:44]line Чеков: 290 [00:10:44]line Общий итог: 327777.67 [00:10:44]line Итого наличными: 150274.00 [00:10:44]line Итого безнал.: 177503.67 [00:10:44]line НДС 0% : 0.00 [00:10:44]line НДС 12% : 34814.48 [00:10:44]line НСП 0% : 0.00 [00:10:44]line НСП 1,50% : 0.00 [00:10:44]line НСП 0,50% : 0.00 [00:10:44]line НСП 5% : 0.00 [00:10:44]line НСП 3% : 0.00 [00:10:44]line НСП 2% : 0.00 [00:10:44]line НСП 1% : 2900.93 [00:10:44]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:10:44]line Чеков: 5 [00:10:44]line Общий итог: 6300.00 [00:10:44]line Итого наличными: 6300.00 [00:10:44]line Итого безнал.: 0.00 [00:10:44]line НДС 0% : 0.00 [00:10:44]line НДС 12% : 669.19 [00:10:44]line НСП 0% : 0.00 [00:10:44]line НСП 1,50% : 0.00 [00:10:44]line НСП 0,50% : 0.00 [00:10:44]line НСП 5% : 0.00 [00:10:44]line НСП 3% : 0.00 [00:10:44]line НСП 2% : 0.00 [00:10:44]line НСП 1% : 55.76 [00:10:44]line ИТОГИ РАСХОД [00:10:44]line Чеков: 0 [00:10:44]line Общий итог: 0.00 [00:10:44]line Итого наличными: 0.00 [00:10:44]line Итого безнал.: 0.00 [00:10:44]line НДС 0% : 0.00 [00:10:44]line НДС 12% : 0.00 [00:10:44]line НСП 0% : 0.00 [00:10:44]line НСП 1,50% : 0.00 [00:10:44]line НСП 0,50% : 0.00 [00:10:44]line НСП 5% : 0.00 [00:10:44]line НСП 3% : 0.00 [00:10:44]line НСП 2% : 0.00 [00:10:44]line НСП 1% : 0.00 [00:10:44]line ИТОГИ ВОЗВРАТ РАСХОДА [00:10:44]line Чеков: 0 [00:10:44]line Общий итог: 0.00 [00:10:44]line Итого наличными: 0.00 [00:10:44]line Итого безнал.: 0.00 [00:10:44]line НДС 0% : 0.00 [00:10:44]line НДС 12% : 0.00 [00:10:44]line НСП 0% : 0.00 [00:10:44]line НСП 1,50% : 0.00 [00:10:44]line НСП 0,50% : 0.00 [00:10:44]line НСП 5% : 0.00 [00:10:44]line НСП 3% : 0.00 [00:10:44]line НСП 2% : 0.00 [00:10:44]line НСП 1% : 0.00 [00:10:44]line Сумма внесений: 0.00 [00:10:44]line Сумма выплат: 0.00 [00:10:44]line Нал. в кассе: 143974.00 [00:10:44]line НС Приход: 29870529.35 [00:10:44]line НС Возвр.Прихода: 2118838.00 [00:10:44]line НС Расход: 0.00 [00:10:44]line НС Возвр.Расхода: 0.00 [00:10:44]line ФМ: 0000000000963154 [00:10:44]written 0, free lines is 4095 [00:10:45]Write to MH i2c: 01 00 00 72 6F E1 [00:10:45]Write i2c OK [00:10:45]MH_I2C_Read... [00:10:45]Read from MH i2c: 01 [00:10:45]MH_I2C_Read... [00:10:45]Read from MH i2c: 01 07 00 [00:10:45]MH_I2C_Read... [00:10:45]Read from MH i2c: 01 07 00 72 6F 00 00 00 00 00 89 0A 7B [00:10:45]RasterBufferAndPrint [00:10:45]line [00:10:45]line [00:10:45]line [00:10:45]line [00:10:45]line [00:10:45]written 0, free lines is 2730 [00:10:45]MH_Cut [00:10:45]Write to MH i2c: D1 01 00 79 6F 01 BA [00:10:45]Write i2c OK [00:10:45]MH_I2C_Read... [00:10:45]Read from MH i2c: D1 [00:10:45]MH_I2C_Read... [00:10:45]Read from MH i2c: D1 01 00 [00:10:45]MH_I2C_Read... [00:10:45]Read from MH i2c: D1 01 00 79 6F 00 B9 [00:10:45]Write to MH i2c: 01 00 00 7A 6F E9 [00:10:45]Write i2c OK [00:10:45]MH_I2C_Read... [00:10:46]*** Cut start [00:10:46]*** Partial cut [00:10:46]*** CUTSNS_PIN = 1 [00:10:46]*** CUTSNS_PIN = 0 [00:10:46]*** Brake cut motor [00:10:47]Read from MH i2c: 01 [00:10:47]MH_I2C_Read... [00:10:47]*** Stop cut motor [00:10:47]*** Cut end [00:10:47]Read from MH i2c: 01 07 00 [00:10:47]MH_I2C_Read... [00:10:47]Read from MH i2c: 01 07 00 7A 6F 00 00 00 00 00 FF 0F FE [00:10:47]process_action x_report done [00:10:47]requested_data is exist [00:10:47]produce_requested_data [00:10:47]requested_item fd.num is exist - process it [00:10:47]SAM_PROTO_GetFieldsCounters [00:10:47]wFMCommunicate request_size=4 [00:10:47]MH_SAM_APDU [00:10:47]CAPDU: 80 13 00 00 [00:10:47]Write to MH i2c: E2 08 00 7B 6F 80 13 00 00 00 00 00 00 66 [00:10:47]Write i2c OK [00:10:47]MH_I2C_Read... [00:10:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:10:47]Read from MH i2c: E2 [00:10:47]MH_I2C_Read... [00:10:47]Read from MH i2c: E2 62 00 [00:10:47]MH_I2C_Read... [00:10:47]Read from MH i2c: E2 62 00 7B 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A0 71 00 00 0E 04 04 00 73 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 A0 [00:10: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A0 71 00 00 0E 04 04 00 73 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 [00:10:47]wFMCommunicate OK [00:10:47]SAM_PROTO_GetFieldsCounters done [00:10:47]requested_item shift.num is exist - process it [00:10:47]requested_item shift.opened is exist - process it [00:10:47]req_shift_opened [00:10:47]FM_GetShiftState [00:10:47]SAM_PROTO_GetShiftState [00:10:47]wFMCommunicate request_size=4 [00:10:47]MH_SAM_APDU [00:10:47]CAPDU: 80 13 01 00 [00:10:47]Write to MH i2c: E2 08 00 7C 6F 80 13 01 00 00 00 00 00 68 [00:10:47]Write i2c OK [00:10:47]MH_I2C_Read... [00:10:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:47]Read from MH i2c: E2 [00:10:47]MH_I2C_Read... [00:10:47]Read from MH i2c: E2 0E 00 [00:10:47]MH_I2C_Read... [00:10:47]Read from MH i2c: E2 0E 00 7C 6F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 81 [00:10:47]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [00:10:47]wFMCommunicate OK [00:10:47]SAM_PROTO_GetShiftState done [00:10:47]FM_GetShiftState done [00:10:47]req_shift_opened done [00:10:47]requested_item shift.open_date is exist - process it [00:10:47]req_shift_open_date [00:10:47]req_shift_open_date done [00:10:47]produce_requested_data done [00:10:47]produce_requested_data return {"fd.num":29088,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [00:10:47]process_action_free x_report [00:10:47]json_value_free [00:10:47]json_value_free done [00:10:47]process_json_proto returns [00:10:47]Send response to host [00:10:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":29088,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [00:10:47]free response buf [00:10:47]execute_script done [00:10:47]execute_script returns [00:10:47]free content buf [00:10:47]Sock 9.Close socket [00:10:47]Sock 9.Thread stoped [00:10:49]OFD Sender: No OFD packet to send [00:10:54]OFD Sender: No OFD packet to send [00:10:59]OFD Sender: No OFD packet to send [00:11:04]OFD Sender: No OFD packet to send [00:11:09]OFD Sender: No OFD packet to send [00:11:14]accept exits with 7 [00:11:14]New connection [00:11:14]New thread 3066785124 created [00:11:14]Thread 3066928484 joined [00:11:14]Waiting for new connection... [00:11:14] Sock 7.Parse request [00:11:14]Sock 7.Check first char [00:11:14]Sock 7.First char is OK [00:11:14]request: POST /json_proto HTTP/1.0 [00:11:14]Method: POST [00:11:14]URL: /json_proto [00:11:14]Method is POST - this is cgi request [00:11:14]url: /json_proto [00:11:14]query_string will be loaded in cgi processing [00:11:14]execute_cgi json_proto POST (null) [00:11:14]execute_cgi path=json_proto method=POST [00:11:14]POST find Content-Length [00:11:14]Host: 172.17.33.3:8080 [00:11:14]Content-Length: 215 [00:11:14]Content-Type: application/json [00:11:14] [00:11:14]POST finish read [00:11:14]Found Content-Length = 215 [00:11:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:14]execute_script... [00:11:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:14]POST & json_proto [00:11:14]process_json_proto [00:11:14]json parsed OK: [00:11:14]protocol is kg_v1.0 [00:11:14]action value=get_value [00:11:14]process_action get_value [00:11:14]cmd_get_value [00:11:14]process_action get_value done [00:11:14]requested_data is exist [00:11:14]produce_requested_data [00:11:14]requested_item kkm.sn is exist - process it [00:11:14]requested_item kkm.ver is exist - process it [00:11:14]requested_item fm.sn is exist - process it [00:11:14]wFMCommunicate request_size=4 [00:11:14]MH_SAM_APDU [00:11:14]CAPDU: 80 11 00 00 [00:11:14]Write to MH i2c: E2 08 00 7D 6F 80 11 00 00 00 00 00 00 66 [00:11:14]Write i2c OK [00:11:14]MH_I2C_Read... [00:11:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:14]Read from MH i2c: E2 [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: E2 17 00 [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: E2 17 00 7D 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B5 [00:11:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:11:14]wFMCommunicate OK [00:11:14]requested_item fd.num is exist - process it [00:11:14]SAM_PROTO_GetFieldsCounters [00:11:14]wFMCommunicate request_size=4 [00:11:14]MH_SAM_APDU [00:11:14]CAPDU: 80 13 00 00 [00:11:14]Write to MH i2c: E2 08 00 7E 6F 80 13 00 00 00 00 00 00 69 [00:11:14]Write i2c OK [00:11:14]MH_I2C_Read... [00:11:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:14]Read from MH i2c: E2 [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: E2 62 00 [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: E2 62 00 7E 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A0 71 00 00 0E 04 04 00 73 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 A3 [00:11: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A0 71 00 00 0E 04 04 00 73 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 [00:11:14]wFMCommunicate OK [00:11:14]SAM_PROTO_GetFieldsCounters done [00:11:14]requested_item shift.num is exist - process it [00:11:14]requested_item shift.opened is exist - process it [00:11:14]req_shift_opened [00:11:14]FM_GetShiftState [00:11:14]SAM_PROTO_GetShiftState [00:11:14]wFMCommunicate request_size=4 [00:11:14]MH_SAM_APDU [00:11:14]CAPDU: 80 13 01 00 [00:11:14]Write to MH i2c: E2 08 00 7F 6F 80 13 01 00 00 00 00 00 6B [00:11:14]OFD Sender: No OFD packet to send [00:11:14]Write i2c OK [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: E2 [00:11:14]MH_I2C_Read... [00:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:14]Read from MH i2c: E2 0E 00 [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: E2 0E 00 7F 6F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 84 [00:11:14]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [00:11:14]wFMCommunicate OK [00:11:14]SAM_PROTO_GetShiftState done [00:11:14]FM_GetShiftState done [00:11:14]req_shift_opened done [00:11:14]requested_item shift.open_date is exist - process it [00:11:14]req_shift_open_date [00:11:14]req_shift_open_date done [00:11:14]produce_requested_data done [00:11:14]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29088,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615} [00:11:14]process_action_free get_value [00:11:14]json_value_free [00:11:14]json_value_free done [00:11:14]process_json_proto returns [00:11:14]Send response to host [00:11:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29088,"shift.num":115,"shift.opened":1,"shift.open_date":1712967615}}} [00:11:14]free response buf [00:11:14]execute_script done [00:11:14]execute_script returns [00:11:14]free content buf [00:11:14]Sock 7.Close socket [00:11:14]Sock 7.Thread stoped [00:11:14]accept exits with 9 [00:11:14]New connection [00:11:14]New thread 3066928484 created [00:11:14]Thread 3066785124 joined [00:11:14]Waiting for new connection... [00:11:14] Sock 9.Parse request [00:11:14]Sock 9.Check first char [00:11:14]Sock 9.First char is OK [00:11:14]request: POST /json_proto HTTP/1.0 [00:11:14]Method: POST [00:11:14]URL: /json_proto [00:11:14]Method is POST - this is cgi request [00:11:14]url: /json_proto [00:11:14]query_string will be loaded in cgi processing [00:11:14]execute_cgi json_proto POST (null) [00:11:14]execute_cgi path=json_proto method=POST [00:11:14]POST find Content-Length [00:11:14]Host: 172.17.33.3:8080 [00:11:14]Content-Length: 331 [00:11:14]Content-Type: application/json [00:11:14] [00:11:14]POST finish read [00:11:14]Found Content-Length = 331 [00:11:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:11:14]execute_script... [00:11:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:11:14]POST & json_proto [00:11:14]process_json_proto [00:11:14]json parsed OK: [00:11:14]protocol is kg_v1.0 [00:11:14]action value=get_value [00:11:14]process_action get_value [00:11:14]cmd_get_value [00:11:14]process_action get_value done [00:11:14]requested_data is exist [00:11:14]produce_requested_data [00:11:14]requested_item fm.sale.total is exist - process it [00:11:14]SAM_PROTO_GetFMData [00:11:14]wFMCommunicate request_size=4 [00:11:14]MH_SAM_APDU [00:11:14]CAPDU: 80 13 03 00 [00:11:14]Write to MH i2c: E2 08 00 80 6F 80 13 03 00 00 00 00 00 6E [00:11:14]Write i2c OK [00:11:14]MH_I2C_Read... [00:11:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:11:14]Read from MH i2c: E2 [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: E2 FD 00 [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: E2 FD 00 80 6F 00 C3 04 85 04 BF 04 6E 04 04 00 BA 70 00 00 69 04 A1 00 6F 04 04 00 5A 6D 00 00 B1 04 04 00 87 CF 0A B2 70 04 04 00 10 87 51 71 72 04 04 00 77 48 B9 40 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 BC 2D E9 12 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 76 65 93 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 9C 00 6F 04 04 00 60 03 00 00 B1 04 04 00 18 17 A1 0C 70 04 04 00 18 17 A1 0C 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 17 60 57 01 EF 03 09 00 F6 90 00 D1 [00:11:14]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 BA 70 00 00 69 04 A1 00 6F 04 04 00 5A 6D 00 00 B1 04 04 00 87 CF 0A B2 70 04 04 00 10 87 51 71 72 04 04 00 77 48 B9 40 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 BC 2D E9 12 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 76 65 93 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 9C 00 6F 04 04 00 60 03 00 00 B1 04 04 00 18 17 A1 0C 70 04 04 00 18 17 A1 0C 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 17 60 57 01 EF 03 09 00 F6 90 00 [00:11:14]wFMCommunicate OK [00:11:14]wFMCommunicate request_size=4 [00:11:14]MH_SAM_APDU [00:11:14]CAPDU: 80 17 00 00 [00:11:14]Write to MH i2c: E2 08 00 81 6F 80 17 00 00 00 00 00 00 70 [00:11:14]Write i2c OK [00:11:14]MH_I2C_Read... [00:11:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:15]Read from MH i2c: E2 [00:11:15]MH_I2C_Read... [00:11:15]Read from MH i2c: E2 FD 00 [00:11:15]MH_I2C_Read... [00:11:15]Read from MH i2c: E2 FD 00 81 6F 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 9C 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 CF [00:11:15]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 9C 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 [00:11:15]wFMCommunicate OK [00:11:15]wFMCommunicate request_size=4 [00:11:15]MH_SAM_APDU [00:11:15]CAPDU: 80 17 00 00 [00:11:15]Write to MH i2c: E2 08 00 82 6F 80 17 00 00 00 00 00 00 71 [00:11:15]Write i2c OK [00:11:15]MH_I2C_Read... [00:11:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:15]Read from MH i2c: E2 [00:11:15]MH_I2C_Read... [00:11:15]Read from MH i2c: E2 FD 00 [00:11:15]MH_I2C_Read... [00:11:15]Read from MH i2c: E2 FD 00 82 6F 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8F [00:11:15]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:15]wFMCommunicate OK [00:11:15]wFMCommunicate request_size=4 [00:11:15]MH_SAM_APDU [00:11:15]CAPDU: 80 17 00 00 [00:11:15]Write to MH i2c: E2 08 00 83 6F 80 17 00 00 00 00 00 00 72 [00:11:15]Write i2c OK [00:11:15]MH_I2C_Read... [00:11:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:15]Read from MH i2c: E2 [00:11:15]MH_I2C_Read... [00:11:15]Read from MH i2c: E2 FD 00 [00:11:15]MH_I2C_Read... [00:11:16]Read from MH i2c: E2 FD 00 83 6F 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 E4 [00:11:16]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:11:16]wFMCommunicate OK [00:11:16]wFMCommunicate request_size=4 [00:11:16]MH_SAM_APDU [00:11:16]CAPDU: 80 17 00 00 [00:11:16]Write to MH i2c: E2 08 00 84 6F 80 17 00 00 00 00 00 00 73 [00:11:16]Write i2c OK [00:11:16]MH_I2C_Read... [00:11:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:11:16]Read from MH i2c: E2 [00:11:16]MH_I2C_Read... [00:11:16]Read from MH i2c: E2 E0 00 [00:11:16]MH_I2C_Read... [00:11:16]Read from MH i2c: E2 E0 00 84 6F 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5D [00:11:16]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:11:16]wFMCommunicate OK [00:11:16]SAM_PROTO_GetFMData done [00:11:16]requested_item fm.sale_refund.total is exist - process it [00:11:16]requested_item fm.buy.total is exist - process it [00:11:16]requested_item shift.sale.total is exist - process it [00:11:16]SAM_PROTO_GetShiftData [00:11:16]wFMCommunicate request_size=4 [00:11:16]MH_SAM_APDU [00:11:16]CAPDU: 80 13 02 00 [00:11:16]Write to MH i2c: E2 08 00 85 6F 80 13 02 00 00 00 00 00 72 [00:11:16]Write i2c OK [00:11:16]MH_I2C_Read... [00:11:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:11:17]Read from MH i2c: E2 [00:11:17]MH_I2C_Read... [00:11:17]Read from MH i2c: E2 FD 00 [00:11:17]MH_I2C_Read... [00:11:17]Read from MH i2c: E2 FD 00 85 6F 00 BC 04 AA 04 B8 04 6E 04 04 00 27 01 00 00 69 04 9E 00 6F 04 04 00 22 01 00 00 B1 04 04 00 27 26 F4 01 70 04 03 00 C8 4C E5 72 04 04 00 5F D9 0E 01 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 68 1F 35 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 2D 6D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 F0 9C 09 70 04 03 00 F0 9C 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 67 05 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 49 [00:11:17]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 27 01 00 00 69 04 9E 00 6F 04 04 00 22 01 00 00 B1 04 04 00 27 26 F4 01 70 04 03 00 C8 4C E5 72 04 04 00 5F D9 0E 01 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 68 1F 35 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 2D 6D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 F0 9C 09 70 04 03 00 F0 9C 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 67 05 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:11:17]wFMCommunicate OK [00:11:17]wFMCommunicate request_size=4 [00:11:17]MH_SAM_APDU [00:11:17]CAPDU: 80 17 00 00 [00:11:17]Write to MH i2c: E2 08 00 86 6F 80 17 00 00 00 00 00 00 75 [00:11:17]Write i2c OK [00:11:17]MH_I2C_Read... [00:11:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:17]Read from MH i2c: E2 [00:11:17]MH_I2C_Read... [00:11:17]Read from MH i2c: E2 FD 00 [00:11:17]MH_I2C_Read... [00:11:17]Read from MH i2c: E2 FD 00 86 6F 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 FC [00:11:17]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [00:11:17]wFMCommunicate OK [00:11:17]wFMCommunicate request_size=4 [00:11:17]MH_SAM_APDU [00:11:17]CAPDU: 80 17 00 00 [00:11:17]Write to MH i2c: E2 08 00 87 6F 80 17 00 00 00 00 00 00 76 [00:11:17]Write i2c OK [00:11:17]MH_I2C_Read... [00:11:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:17]Read from MH i2c: E2 [00:11:17]MH_I2C_Read... [00:11:17]Read from MH i2c: E2 FD 00 [00:11:17]MH_I2C_Read... [00:11:17]Read from MH i2c: E2 FD 00 87 6F 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 9F [00:11:18]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [00:11:18]wFMCommunicate OK [00:11:18]wFMCommunicate request_size=4 [00:11:18]MH_SAM_APDU [00:11:18]CAPDU: 80 17 00 00 [00:11:18]Write to MH i2c: E2 08 00 88 6F 80 17 00 00 00 00 00 00 77 [00:11:18]Write i2c OK [00:11:18]MH_I2C_Read... [00:11:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:18]Read from MH i2c: E2 [00:11:18]MH_I2C_Read... [00:11:18]Read from MH i2c: E2 FD 00 [00:11:18]MH_I2C_Read... [00:11:18]Read from MH i2c: E2 FD 00 88 6F 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 F8 [00:11:18]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:11:18]wFMCommunicate OK [00:11:18]wFMCommunicate request_size=4 [00:11:18]MH_SAM_APDU [00:11:18]CAPDU: 80 17 00 00 [00:11:18]Write to MH i2c: E2 08 00 89 6F 80 17 00 00 00 00 00 00 78 [00:11:18]Write i2c OK [00:11:18]MH_I2C_Read... [00:11:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:11:18]Read from MH i2c: E2 [00:11:18]MH_I2C_Read... [00:11:18]Read from MH i2c: E2 D9 00 [00:11:18]MH_I2C_Read... [00:11:18]Read from MH i2c: E2 D9 00 89 6F 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 57 [00:11:19]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:11:19]wFMCommunicate OK [00:11:19]SAM_PROTO_GetShiftData done [00:11:19]requested_item shift.sale.total_cash is exist - process it [00:11:19]requested_item shift.sale_refund.total is exist - process it [00:11:19]requested_item shift.sale_refund.total_cash is exist - process it [00:11:19]requested_item shift.buy.total is exist - process it [00:11:19]requested_item shift.buy.total_cash is exist - process it [00:11:19]produce_requested_data done [00:11:19]produce_requested_data return {"fm.sale.total":29870529.35,"fm.sale_refund.total":2118838.00,"fm.buy.total":0.00,"shift.sale.total":327777.67,"shift.sale.total_cash":150274.00,"shift.sale_refund.total":6300.00,"shift.sale_refund.total_cash":6300.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:11:19]process_action_free get_value [00:11:19]json_value_free [00:11:19]json_value_free done [00:11:19]process_json_proto returns [00:11:19]Send response to host [00:11:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29870529.35,"fm.sale_refund.total":2118838.00,"fm.buy.total":0.00,"shift.sale.total":327777.67,"shift.sale.total_cash":150274.00,"shift.sale_refund.total":6300.00,"shift.sale_refund.total_cash":6300.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:11:19]free response buf [00:11:19]execute_script done [00:11:19]execute_script returns [00:11:19]free content buf [00:11:19]Sock 9.Close socket [00:11:19]Sock 9.Thread stoped [00:11:19]accept exits with 7 [00:11:19]New connection [00:11:19]New thread 3066785124 created [00:11:19]Thread 3066928484 joined [00:11:19]Waiting for new connection... [00:11:19] Sock 7.Parse request [00:11:19]Sock 7.Check first char [00:11:19]Sock 7.First char is OK [00:11:19]request: POST /json_proto HTTP/1.0 [00:11:19]Method: POST [00:11:19]URL: /json_proto [00:11:19]Method is POST - this is cgi request [00:11:19]url: /json_proto [00:11:19]query_string will be loaded in cgi processing [00:11:19]execute_cgi json_proto POST (null) [00:11:19]execute_cgi path=json_proto method=POST [00:11:19]POST find Content-Length [00:11:19]Host: 172.17.33.3:8080 [00:11:19]Content-Length: 331 [00:11:19]Content-Type: application/json [00:11:19] [00:11:19]POST finish read [00:11:19]Found Content-Length = 331 [00:11:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:11:19]execute_script... [00:11:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:11:19]POST & json_proto [00:11:19]process_json_proto [00:11:19]json parsed OK: [00:11:19]protocol is kg_v1.0 [00:11:19]action value=get_value [00:11:19]process_action get_value [00:11:19]cmd_get_value [00:11:19]process_action get_value done [00:11:19]requested_data is exist [00:11:19]produce_requested_data [00:11:19]requested_item fm.sale.total is exist - process it [00:11:19]SAM_PROTO_GetFMData [00:11:19]wFMCommunicate request_size=4 [00:11:19]MH_SAM_APDU [00:11:19]CAPDU: 80 13 03 00 [00:11:19]Write to MH i2c: E2 08 00 8A 6F 80 13 03 00 00 00 00 00 78 [00:11:19]Write i2c OK [00:11:19]MH_I2C_Read... [00:11:19]OFD Sender: No OFD packet to send [00:11:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:11:19]Read from MH i2c: E2 [00:11:19]MH_I2C_Read... [00:11:19]Read from MH i2c: E2 FD 00 [00:11:19]MH_I2C_Read... [00:11:19]Read from MH i2c: E2 FD 00 8A 6F 00 C3 04 85 04 BF 04 6E 04 04 00 BA 70 00 00 69 04 A1 00 6F 04 04 00 5A 6D 00 00 B1 04 04 00 87 CF 0A B2 70 04 04 00 10 87 51 71 72 04 04 00 77 48 B9 40 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 BC 2D E9 12 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 76 65 93 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 9C 00 6F 04 04 00 60 03 00 00 B1 04 04 00 18 17 A1 0C 70 04 04 00 18 17 A1 0C 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 17 60 57 01 EF 03 09 00 F6 90 00 DB [00:11:19]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 BA 70 00 00 69 04 A1 00 6F 04 04 00 5A 6D 00 00 B1 04 04 00 87 CF 0A B2 70 04 04 00 10 87 51 71 72 04 04 00 77 48 B9 40 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 BC 2D E9 12 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 76 65 93 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 9C 00 6F 04 04 00 60 03 00 00 B1 04 04 00 18 17 A1 0C 70 04 04 00 18 17 A1 0C 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 17 60 57 01 EF 03 09 00 F6 90 00 [00:11:19]wFMCommunicate OK [00:11:19]wFMCommunicate request_size=4 [00:11:19]MH_SAM_APDU [00:11:19]CAPDU: 80 17 00 00 [00:11:19]Write to MH i2c: E2 08 00 8B 6F 80 17 00 00 00 00 00 00 7A [00:11:19]Write i2c OK [00:11:19]MH_I2C_Read... [00:11:20]Read from MH i2c: E2 [00:11:20]MH_I2C_Read... [00:11:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:20]Read from MH i2c: E2 FD 00 [00:11:20]MH_I2C_Read... [00:11:20]Read from MH i2c: E2 FD 00 8B 6F 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 9C 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 D9 [00:11:20]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 9C 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 [00:11:20]wFMCommunicate OK [00:11:20]wFMCommunicate request_size=4 [00:11:20]MH_SAM_APDU [00:11:20]CAPDU: 80 17 00 00 [00:11:20]Write to MH i2c: E2 08 00 8C 6F 80 17 00 00 00 00 00 00 7B [00:11:20]Write i2c OK [00:11:20]MH_I2C_Read... [00:11:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:20]Read from MH i2c: E2 [00:11:20]MH_I2C_Read... [00:11:20]Read from MH i2c: E2 FD 00 [00:11:20]MH_I2C_Read... [00:11:20]Read from MH i2c: E2 FD 00 8C 6F 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 99 [00:11:20]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:20]wFMCommunicate OK [00:11:20]wFMCommunicate request_size=4 [00:11:20]MH_SAM_APDU [00:11:20]CAPDU: 80 17 00 00 [00:11:20]Write to MH i2c: E2 08 00 8D 6F 80 17 00 00 00 00 00 00 7C [00:11:20]Write i2c OK [00:11:20]MH_I2C_Read... [00:11:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:21]Read from MH i2c: E2 [00:11:21]MH_I2C_Read... [00:11:21]Read from MH i2c: E2 FD 00 [00:11:21]MH_I2C_Read... [00:11:21]Read from MH i2c: E2 FD 00 8D 6F 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 EE [00:11:21]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:11:21]wFMCommunicate OK [00:11:21]wFMCommunicate request_size=4 [00:11:21]MH_SAM_APDU [00:11:21]CAPDU: 80 17 00 00 [00:11:21]Write to MH i2c: E2 08 00 8E 6F 80 17 00 00 00 00 00 00 7D [00:11:21]Write i2c OK [00:11:21]MH_I2C_Read... [00:11:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:11:21]Read from MH i2c: E2 [00:11:21]MH_I2C_Read... [00:11:21]Read from MH i2c: E2 E0 00 [00:11:21]MH_I2C_Read... [00:11:21]Read from MH i2c: E2 E0 00 8E 6F 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 67 [00:11:21]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:11:21]wFMCommunicate OK [00:11:21]SAM_PROTO_GetFMData done [00:11:21]requested_item fm.sale_refund.total is exist - process it [00:11:21]requested_item fm.buy.total is exist - process it [00:11:21]requested_item shift.sale.total is exist - process it [00:11:21]SAM_PROTO_GetShiftData [00:11:21]wFMCommunicate request_size=4 [00:11:21]MH_SAM_APDU [00:11:21]CAPDU: 80 13 02 00 [00:11:21]Write to MH i2c: E2 08 00 8F 6F 80 13 02 00 00 00 00 00 7C [00:11:21]Write i2c OK [00:11:21]MH_I2C_Read... [00:11:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:11:22]Read from MH i2c: E2 [00:11:22]MH_I2C_Read... [00:11:22]Read from MH i2c: E2 FD 00 [00:11:22]MH_I2C_Read... [00:11:22]Read from MH i2c: E2 FD 00 8F 6F 00 BC 04 AA 04 B8 04 6E 04 04 00 27 01 00 00 69 04 9E 00 6F 04 04 00 22 01 00 00 B1 04 04 00 27 26 F4 01 70 04 03 00 C8 4C E5 72 04 04 00 5F D9 0E 01 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 68 1F 35 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 2D 6D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 F0 9C 09 70 04 03 00 F0 9C 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 67 05 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 53 [00:11:22]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 27 01 00 00 69 04 9E 00 6F 04 04 00 22 01 00 00 B1 04 04 00 27 26 F4 01 70 04 03 00 C8 4C E5 72 04 04 00 5F D9 0E 01 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 68 1F 35 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 2D 6D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 F0 9C 09 70 04 03 00 F0 9C 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 67 05 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:11:22]wFMCommunicate OK [00:11:22]wFMCommunicate request_size=4 [00:11:22]MH_SAM_APDU [00:11:22]CAPDU: 80 17 00 00 [00:11:22]Write to MH i2c: E2 08 00 90 6F 80 17 00 00 00 00 00 00 7F [00:11:22]Write i2c OK [00:11:22]MH_I2C_Read... [00:11:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:22]Read from MH i2c: E2 [00:11:22]MH_I2C_Read... [00:11:22]Read from MH i2c: E2 FD 00 [00:11:22]MH_I2C_Read... [00:11:22]Read from MH i2c: E2 FD 00 90 6F 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 06 [00:11:22]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [00:11:23]wFMCommunicate OK [00:11:23]wFMCommunicate request_size=4 [00:11:23]MH_SAM_APDU [00:11:23]CAPDU: 80 17 00 00 [00:11:23]Write to MH i2c: E2 08 00 91 6F 80 17 00 00 00 00 00 00 80 [00:11:23]Write i2c OK [00:11:23]MH_I2C_Read... [00:11:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:23]Read from MH i2c: E2 [00:11:23]MH_I2C_Read... [00:11:23]Read from MH i2c: E2 FD 00 [00:11:23]MH_I2C_Read... [00:11:23]Read from MH i2c: E2 FD 00 91 6F 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 A9 [00:11:23]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [00:11:23]wFMCommunicate OK [00:11:23]wFMCommunicate request_size=4 [00:11:23]MH_SAM_APDU [00:11:23]CAPDU: 80 17 00 00 [00:11:23]Write to MH i2c: E2 08 00 92 6F 80 17 00 00 00 00 00 00 81 [00:11:23]Write i2c OK [00:11:23]MH_I2C_Read... [00:11:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:23]Read from MH i2c: E2 [00:11:23]MH_I2C_Read... [00:11:23]Read from MH i2c: E2 FD 00 [00:11:23]MH_I2C_Read... [00:11:23]Read from MH i2c: E2 FD 00 92 6F 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 02 [00:11:24]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:11:24]wFMCommunicate OK [00:11:24]wFMCommunicate request_size=4 [00:11:24]MH_SAM_APDU [00:11:24]CAPDU: 80 17 00 00 [00:11:24]Write to MH i2c: E2 08 00 93 6F 80 17 00 00 00 00 00 00 82 [00:11:24]Write i2c OK [00:11:24]MH_I2C_Read... [00:11:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:11:24]Read from MH i2c: E2 [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: E2 D9 00 [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: E2 D9 00 93 6F 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 61 [00:11: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 OFD Sender: No OFD packet to send [00:11:24]F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:11:24]wFMCommunicate OK [00:11:24]SAM_PROTO_GetShiftData done [00:11:24]requested_item shift.sale.total_cash is exist - process it [00:11:24]requested_item shift.sale_refund.total is exist - process it [00:11:24]requested_item shift.sale_refund.total_cash is exist - process it [00:11:24]requested_item shift.buy.total is exist - process it [00:11:24]requested_item shift.buy.total_cash is exist - process it [00:11:24]produce_requested_data done [00:11:24]produce_requested_data return {"fm.sale.total":29870529.35,"fm.sale_refund.total":2118838.00,"fm.buy.total":0.00,"shift.sale.total":327777.67,"shift.sale.total_cash":150274.00,"shift.sale_refund.total":6300.00,"shift.sale_refund.total_cash":6300.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:11:24]process_action_free get_value [00:11:24]json_value_free [00:11:24]json_value_free done [00:11:24]process_json_proto returns [00:11:24]Send response to host [00:11:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29870529.35,"fm.sale_refund.total":2118838.00,"fm.buy.total":0.00,"shift.sale.total":327777.67,"shift.sale.total_cash":150274.00,"shift.sale_refund.total":6300.00,"shift.sale_refund.total_cash":6300.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:11:24]free response buf [00:11:24]execute_script done [00:11:24]execute_script returns [00:11:24]free content buf [00:11:24]Sock 7.Close socket [00:11:24]Sock 7.Thread stoped [00:11:24]accept exits with 9 [00:11:24]New connection [00:11:24]New thread 3066928484 created [00:11:24]Thread 3066785124 joined [00:11:24]Waiting for new connection... [00:11:24] Sock 9.Parse request [00:11:24]Sock 9.Check first char [00:11:24]Sock 9.First char is OK [00:11:24]request: POST /json_proto HTTP/1.0 [00:11:24]Method: POST [00:11:24]URL: /json_proto [00:11:24]Method is POST - this is cgi request [00:11:24]url: /json_proto [00:11:24]query_string will be loaded in cgi processing [00:11:24]execute_cgi json_proto POST (null) [00:11:24]execute_cgi path=json_proto method=POST [00:11:24]POST find Content-Length [00:11:24]Host: 172.17.33.3:8080 [00:11:24]Content-Length: 272 [00:11:24]Content-Type: application/json [00:11:24] [00:11:24]POST finish read [00:11:24]Found Content-Length = 272 [00:11:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:24]execute_script... [00:11:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0428\u0430\u0434\u044B\u043A\u0430\u043D\u043E\u0432\u0430 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:24]POST & json_proto [00:11:24]process_json_proto [00:11:24]json parsed OK: [00:11:24]protocol is kg_v1.0 [00:11:24]action value=close_shift [00:11:24]process_action close_shift [00:11:24]cmd_close_shift [00:11:24]MH_GetDate [00:11:24]Write to MH i2c: F0 00 00 94 6F F2 [00:11:24]Write i2c OK [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: F0 [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: F0 09 00 [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: F0 09 00 94 6F 00 33 1F 1B 66 23 5B 8F 65 40 [00:11:24]GetLastDocTimeStamp 1713053443 [00:11:24]current date 1713053491 [00:11:24]FM_GetShiftState [00:11:24]SAM_PROTO_GetShiftState [00:11:24]wFMCommunicate request_size=4 [00:11:24]MH_SAM_APDU [00:11:24]CAPDU: 80 13 01 00 [00:11:24]Write to MH i2c: E2 08 00 95 6F 80 13 01 00 00 00 00 00 81 [00:11:24]Write i2c OK [00:11:24]MH_I2C_Read... [00:11:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:24]Read from MH i2c: E2 [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: E2 0E 00 [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: E2 0E 00 95 6F 00 09 00 01 BF CF 19 66 00 00 00 00 90 00 9A [00:11:24]RAPDU: 09 00 01 BF CF 19 66 00 00 00 00 90 00 [00:11:24]wFMCommunicate OK [00:11:24]SAM_PROTO_GetShiftState done [00:11:24]FM_GetShiftState done [00:11:24]KKMCreateCloseShiftDocument [00:11:24]Load OK [00:11:24]Malloc new data [00:11:24]MH_GetDate [00:11:24]Write to MH i2c: F0 00 00 96 6F F4 [00:11:24]Write i2c OK [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: F0 [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: F0 09 00 [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: F0 09 00 96 6F 00 34 1F 1B 66 23 5B 8F 65 43 [00:11:24]Malloc new data [00:11:24]Malloc new data [00:11:24]Malloc new data [00:11:24]Malloc new data [00:11:24]KKMCreateCloseShiftDocument OK [00:11:24]KKMSetCloseShiftData OK [00:11:24]ProcessDocumentItem done err = 0, tmpTLVsize=75 [00:11:24]tlvbuf is 01392F90 [00:11:24]KKMLoadAndSignCloseShiftData [00:11:24]SAM_PROTO_ProcessDocument [00:11:24]wFMCommunicate request_size=9 [00:11:24]MH_SAM_APDU [00:11:24]CAPDU: 80 15 01 00 04 05 00 4B 00 [00:11:24]Write to MH i2c: E2 0C 00 97 6F 80 15 01 00 04 00 05 00 4B 00 00 00 DD [00:11:24]Write i2c OK [00:11:24]MH_I2C_Read... [00:11:24]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:11:24]Read from MH i2c: E2 [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: E2 03 00 [00:11:24]MH_I2C_Read... [00:11:24]Read from MH i2c: E2 03 00 97 6F 00 90 00 7A [00:11:24]RAPDU: 90 00 [00:11:24]wFMCommunicate OK [00:11:24]wFMCommunicate request_size=23 [00:11:24]MH_SAM_APDU [00:11:24]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:11:24]Write to MH i2c: E2 1A 00 98 6F 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 7C [00:11:25]Write i2c OK [00:11:25]MH_I2C_Read... [00:11:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:25]Read from MH i2c: E2 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: E2 03 00 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: E2 03 00 98 6F 00 90 00 7B [00:11:25]RAPDU: 90 00 [00:11:25]wFMCommunicate OK [00:11:25]wFMCommunicate request_size=34 [00:11:25]MH_SAM_APDU [00:11:25]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 A8 D0 B0 D0 B4 D1 8B D0 BA D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 [00:11:25]Write to MH i2c: E2 25 00 99 6F 80 15 02 00 1D 00 FD 03 19 00 D0 A8 D0 B0 D0 B4 D1 8B D0 BA D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 00 00 AE [00:11:25]Write i2c OK [00:11:25]MH_I2C_Read... [00:11:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:25]Read from MH i2c: E2 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: E2 03 00 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: E2 03 00 99 6F 00 90 00 7C [00:11:25]RAPDU: 90 00 [00:11:25]wFMCommunicate OK [00:11:25]wFMCommunicate request_size=13 [00:11:25]MH_SAM_APDU [00:11:25]CAPDU: 80 15 02 00 08 F4 03 04 00 34 1F 1B 66 [00:11:25]Write to MH i2c: E2 10 00 9A 6F 80 15 02 00 08 00 F4 03 04 00 34 1F 1B 66 00 00 68 [00:11:25]Write i2c OK [00:11:25]MH_I2C_Read... [00:11:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:25]Read from MH i2c: E2 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: E2 03 00 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: E2 03 00 9A 6F 00 90 00 7D [00:11:25]RAPDU: 90 00 [00:11:25]wFMCommunicate OK [00:11:25]wFMCommunicate request_size=25 [00:11:25]MH_SAM_APDU [00:11:25]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 [00:11:25]Write to MH i2c: E2 1C 00 9B 6F 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 00 00 0D [00:11:25]Write i2c OK [00:11:25]MH_I2C_Read... [00:11:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:25]Read from MH i2c: E2 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: E2 03 00 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: E2 03 00 9B 6F 00 90 00 7E [00:11:25]RAPDU: 90 00 [00:11:25]wFMCommunicate OK [00:11:25]wFMCommunicate request_size=4 [00:11:25]MH_SAM_APDU [00:11:25]CAPDU: 80 15 03 00 [00:11:25]Write to MH i2c: E2 08 00 9C 6F 80 15 03 00 00 00 00 00 8C [00:11:25]Write i2c OK [00:11:25]MH_I2C_Read... [00:11:25]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:11:25]Read from MH i2c: E2 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: E2 FD 00 [00:11:25]MH_I2C_Read... [00:11:25]Read from MH i2c: E2 FD 00 9C 6F 00 FF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A1 71 00 00 0E 04 04 00 73 00 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 29 01 00 00 AA 04 B8 04 6E 04 04 00 27 01 00 00 69 04 9E 00 6F 04 04 00 22 01 00 00 B1 04 04 00 27 26 F4 01 70 04 03 00 C8 4C E5 72 04 04 00 5F D9 0E 01 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 68 1F 35 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 2D 6D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 F0 90 00 99 [00:11:26]RAPDU: FF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A1 71 00 00 0E 04 04 00 73 00 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 29 01 00 00 AA 04 B8 04 6E 04 04 00 27 01 00 00 69 04 9E 00 6F 04 04 00 22 01 00 00 B1 04 04 00 27 26 F4 01 70 04 03 00 C8 4C E5 72 04 04 00 5F D9 0E 01 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 68 1F 35 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 2D 6D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 F0 90 00 [00:11:26]wFMCommunicate OK [00:11:26]SAM_PROTO_ProcessDocument answer len = 1279 [00:11:26]SAM_PROTO_ProcessDocument remain to read = 1031 [00:11:26]wFMCommunicate request_size=4 [00:11:26]MH_SAM_APDU [00:11:26]CAPDU: 80 17 00 00 [00:11:26]Write to MH i2c: E2 08 00 9D 6F 80 17 00 00 00 00 00 00 8C [00:11:26]Write i2c OK [00:11:26]MH_I2C_Read... [00:11:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:26]Read from MH i2c: E2 [00:11:26]MH_I2C_Read... [00:11:26]Read from MH i2c: E2 FD 00 [00:11:26]MH_I2C_Read... [00:11:26]Read from MH i2c: E2 FD 00 9D 6F 00 9C 09 70 04 03 00 F0 9C 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 67 05 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 E9 [00:11:26]RAPDU: 9C 09 70 04 03 00 F0 9C 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 67 05 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:11:26]wFMCommunicate OK [00:11:26]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:11:26]SAM_PROTO_ProcessDocument remain to read = 781 [00:11:26]wFMCommunicate request_size=4 [00:11:26]MH_SAM_APDU [00:11:26]CAPDU: 80 17 00 00 [00:11:26]Write to MH i2c: E2 08 00 9E 6F 80 17 00 00 00 00 00 00 8D [00:11:26]Write i2c OK [00:11:26]MH_I2C_Read... [00:11:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:27]Read from MH i2c: E2 [00:11:27]MH_I2C_Read... [00:11:27]Read from MH i2c: E2 FD 00 [00:11:27]MH_I2C_Read... [00:11:27]Read from MH i2c: E2 FD 00 9E 6F 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 90 00 F3 [00:11:27]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 90 00 [00:11:27]wFMCommunicate OK [00:11:27]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:11:27]SAM_PROTO_ProcessDocument remain to read = 531 [00:11:27]wFMCommunicate request_size=4 [00:11:27]MH_SAM_APDU [00:11:27]CAPDU: 80 17 00 00 [00:11:27]Write to MH i2c: E2 08 00 9F 6F 80 17 00 00 00 00 00 00 8E [00:11:27]Write i2c OK [00:11:27]MH_I2C_Read... [00:11:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:27]Read from MH i2c: E2 [00:11:27]MH_I2C_Read... [00:11:27]Read from MH i2c: E2 FD 00 [00:11:27]MH_I2C_Read... [00:11:27]Read from MH i2c: E2 FD 00 9F 6F 00 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 2F [00:11:27]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 [00:11:27]wFMCommunicate OK [00:11:27]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:11:28]SAM_PROTO_ProcessDocument remain to read = 281 [00:11:28]wFMCommunicate request_size=4 [00:11:28]MH_SAM_APDU [00:11:28]CAPDU: 80 17 00 00 [00:11:28]Write to MH i2c: E2 08 00 A0 6F 80 17 00 00 00 00 00 00 8F [00:11:28]Write i2c OK [00:11:28]MH_I2C_Read... [00:11:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:28]Read from MH i2c: E2 [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: E2 FD 00 [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: E2 FD 00 A0 6F 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 90 00 3B [00:11:28]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 90 00 [00:11:28]wFMCommunicate OK [00:11:28]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:11:28]SAM_PROTO_ProcessDocument remain to read = 31 [00:11:28]wFMCommunicate request_size=4 [00:11:28]MH_SAM_APDU [00:11:28]CAPDU: 80 17 00 00 [00:11:28]Write to MH i2c: E2 08 00 A1 6F 80 17 00 00 00 00 00 00 90 [00:11:28]Write i2c OK [00:11:28]MH_I2C_Read... [00:11:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 31! [00:11:28]Read from MH i2c: E2 [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: E2 22 00 [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: E2 22 00 A1 6F 00 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 CA 30 F8 F4 CD 41 90 00 CE [00:11:28]RAPDU: 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 CA 30 F8 F4 CD 41 90 00 [00:11:28]wFMCommunicate OK [00:11:28]SAM_PROTO_ProcessDocument received (without SW) 31 bytes [00:11:28]SAM_PROTO_ProcessDocument done [00:11:28]1209 (1) - 1.0 - номер версии ФФД [00:11:28]1041 (16) - 0000000000963154 - номер ФМ [00:11:28]1040 (4) - 29089 - номер ФД [00:11:28]1038 (4) - 115 - номер смены [00:11:28]1118 (4) - 295 - количество кассовых чеков за смену [00:11:28]1111 (4) - 297 - общее количество ФД за смену [00:11:28]1194 (1208) - счетчики итогов смены [00:11:28] 1134 (4) - 295 - количество чеков со всеми признаками расчетов [00:11:28] 1129 (158) - счетчики операций «приход» [00:11:28] 1135 (4) - 290 - количество чеков по признаку расчетов [00:11:28] 1201 (4) - 327777.67 - общая итоговая сумма в чеках [00:11:28] 1136 (3) - 150274.00 - итоговая сумма в чеках наличными [00:11:28] 1138 (4) - 177503.67 - итоговая сумма в чеках безналичными [00:11:28] 1024 (123) - суммы налогов [00:11:28] 1006 (9) - суммы НДС [00:11:28] 1010 (1) - 0% - код ставки НДС [00:11:28] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:28] 1006 (12) - суммы НДС [00:11:28] 1010 (1) - 12% - код ставки НДС [00:11:28] 1011 (3) - 34814.48 - сумма НДС по ставке [00:11:28] 1007 (9) - суммы НСП [00:11:28] 1014 (1) - 0% - код ставки НСП [00:11:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:28] 1007 (12) - суммы НСП [00:11:28] 1014 (1) - 1% - код ставки НСП [00:11:28] 1015 (3) - 2900.93 - сумма НСП по ставке [00:11:28] 1007 (9) - суммы НСП [00:11:28] 1014 (1) - 2% - код ставки НСП [00:11:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:28] 1007 (9) - суммы НСП [00:11:28] 1014 (1) - 3% - код ставки НСП [00:11:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:28] 1007 (9) - суммы НСП [00:11:28] 1014 (1) - 5% - код ставки НСП [00:11:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:28] 1007 (9) - суммы НСП [00:11:28] 1014 (1) - 0,50% - код ставки НСП [00:11:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:28] 1007 (9) - суммы НСП [00:11:28] 1014 (1) - 1,50% - код ставки НСП [00:11:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:28] 1130 (152) - счетчики операций «возврат прихода» [00:11:28] 1135 (4) - 5 - количество чеков по признаку расчетов [00:11:28] 1201 (3) - 6300.00 - общая итоговая сумма в чеках [00:11:28] 1136 (3) - 6300.00 - итоговая сумма в чеках наличными [00:11:28] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:11:28] 1024 (122) - суммы налогов [00:11:28] 1006 (9) - суммы НДС [00:11:28] 1010 (1) - 0% - код ставки НДС [00:11:28] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:28] 1006 (12) - суммы НДС [00:11:28] 1010 (1) - 12% - код ставки НДС [00:11:28] 1011 (3) - 669.19 - сумма НДС по ставке [00:11:28] 1007 (9) - суммы НСП [00:11:28] 1014 (1) - 0% - код ставки НСП [00:11:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:28] 1007 (11) - суммы НСП [00:11:28] 1014 (1) - 1% - код ставки НСП [00:11:28] 1015 (2) - 55.76 - сумма НСП по ставке [00:11:28] 1007 (9) - суммы НСП [00:11:28] 1014 (1) - 2% - код ставки НСП [00:11:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:28] 1007 (9) - суммы НСП [00:11:28] 1014 (1) - 3% - код ставки НСП [00:11:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:28] 1007 (9) - суммы НСП [00:11:28] 1014 (1) - 5% - код ставки НСП [00:11:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:28] 1007 (9) - суммы НСП [00:11:28] 1014 (1) - 0,50% - код ставки НСП [00:11:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:28] 1007 (9) - суммы НСП [00:11:28] 1014 (1) - 1,50% - код ставки НСП [00:11:28] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:28] 1131 (141) - счетчики операций «расход» [00:11:28] 1135 (4) - 0 - количество чеков по признаку расчетов [00:11:28] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:11:28] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:11:28] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:11:28] 1024 (117) - суммы налогов [00:11:28] 1006 (9) - суммы НДС [00:11:28] 1010 (1) - 0% - код ставки НДС [00:11:28] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:29] 1006 (9) - суммы НДС [00:11:29] 1010 (1) - 12% - код ставки НДС [00:11:29] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:29] 1007 (9) - суммы НСП [00:11:29] 1014 (1) - 0% - код ставки НСП [00:11:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:29] 1007 (9) - суммы НСП [00:11:29] 1014 (1) - 1% - код ставки НСП [00:11:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:29] 1007 (9) - суммы НСП [00:11:29] 1014 (1) - 2% - код ставки НСП [00:11:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:29] 1007 (9) - суммы НСП [00:11:29] 1014 (1) - 3% - код ставки НСП [00:11:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:29] 1007 (9) - суммы НСП [00:11:29] 1014 (1) - 5% - код ставки НСП [00:11:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:29] 1007 (9) - суммы НСП [00:11:29] 1014 (1) - 0,50% - код ставки НСП [00:11:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:29] 1007 (9) - суммы НСП [00:11:29] 1014 (1) - 1,50% - код ставки НСП [00:11:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:29] 1132 (141) - счетчики операций «возврат расхода» [00:11:29] 1135 (4) - 0 - количество чеков по признаку расчетов [00:11:29] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:11:29] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:11:29] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:11:29] 1024 (117) - суммы налогов [00:11:29] 1006 (9) - суммы НДС [00:11:29] 1010 (1) - 0% - код ставки НДС [00:11:29] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:29] 1006 (9) - суммы НДС [00:11:29] 1010 (1) - 12% - код ставки НДС [00:11:29] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:29] 1007 (9) - суммы НСП [00:11:29] 1014 (1) - 0% - код ставки НСП [00:11:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:29] 1007 (9) - суммы НСП [00:11:29] 1014 (1) - 1% - код ставки НСП [00:11:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:29] 1007 (9) - суммы НСП [00:11:29] 1014 (1) - 2% - код ставки НСП [00:11:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:29] 1007 (9) - суммы НСП [00:11:29] 1014 (1) - 3% - код ставки НСП [00:11:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:29] 1007 (9) - суммы НСП [00:11:29] 1014 (1) - 5% - код ставки НСП [00:11:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:29] 1007 (9) - суммы НСП [00:11:29] 1014 (1) - 0,50% - код ставки НСП [00:11:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:29] 1007 (9) - суммы НСП [00:11:29] 1014 (1) - 1,50% - код ставки НСП [00:11:29] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:29] 1133 (588) - - счетчики коррекции - не используются [00:11:29]1077 (6) - 222311684033857 - ФПД [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1209 (04B9) [00:11:29]Malloc new data [00:11:29]Processing tag 1041 (0411) [00:11:29]Processing tag 1040 (0410) [00:11:29]Malloc new data [00:11:29]Processing tag 1038 (040E) [00:11:29]Malloc new data [00:11:29]Processing tag 1118 (045E) [00:11:29]Malloc new data [00:11:29]Processing tag 1111 (0457) [00:11:29]Malloc new data [00:11:29]Processing tag 1194 (04AA) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1134 (046E) [00:11:29]Malloc new data [00:11:29]Processing tag 1129 (0469) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1135 (046F) [00:11:29]Malloc new data [00:11:29]Processing tag 1201 (04B1) [00:11:29]Malloc new data [00:11:29]Processing tag 1136 (0470) [00:11:29]Malloc new data [00:11:29]Processing tag 1138 (0472) [00:11:29]Malloc new data [00:11:29]Processing tag 1024 (0400) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1006 (03EE) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1010 (03F2) [00:11:29]Malloc new data [00:11:29]Processing tag 1011 (03F3) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1006 (03EE) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1010 (03F2) [00:11:29]Malloc new data [00:11:29]Processing tag 1011 (03F3) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]SetTLVBufToDocument err=0 [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1130 (046A) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1135 (046F) [00:11:29]Malloc new data [00:11:29]Processing tag 1201 (04B1) [00:11:29]Malloc new data [00:11:29]Processing tag 1136 (0470) [00:11:29]Malloc new data [00:11:29]Processing tag 1138 (0472) [00:11:29]Malloc new data [00:11:29]Processing tag 1024 (0400) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1006 (03EE) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1010 (03F2) [00:11:29]Malloc new data [00:11:29]Processing tag 1011 (03F3) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1006 (03EE) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1010 (03F2) [00:11:29]Malloc new data [00:11:29]Processing tag 1011 (03F3) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]SetTLVBufToDocument err=0 [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1131 (046B) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1135 (046F) [00:11:29]Malloc new data [00:11:29]Processing tag 1201 (04B1) [00:11:29]Malloc new data [00:11:29]Processing tag 1136 (0470) [00:11:29]Malloc new data [00:11:29]Processing tag 1138 (0472) [00:11:29]Malloc new data [00:11:29]Processing tag 1024 (0400) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1006 (03EE) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1010 (03F2) [00:11:29]Malloc new data [00:11:29]Processing tag 1011 (03F3) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1006 (03EE) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1010 (03F2) [00:11:29]Malloc new data [00:11:29]Processing tag 1011 (03F3) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]SetTLVBufToDocument err=0 [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1132 (046C) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1135 (046F) [00:11:29]Malloc new data [00:11:29]Processing tag 1201 (04B1) [00:11:29]Malloc new data [00:11:29]Processing tag 1136 (0470) [00:11:29]Malloc new data [00:11:29]Processing tag 1138 (0472) [00:11:29]Malloc new data [00:11:29]Processing tag 1024 (0400) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1006 (03EE) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1010 (03F2) [00:11:29]Malloc new data [00:11:29]Processing tag 1011 (03F3) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1006 (03EE) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1010 (03F2) [00:11:29]Malloc new data [00:11:29]Processing tag 1011 (03F3) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]OFD Sender: No OFD packet to send [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1007 (03EF) [00:11:29]Load OK [00:11:29]SetTLVBufToDocument [00:11:29]Processing tag 1014 (03F6) [00:11:29]Malloc new data [00:11:29]Processing tag 1015 (03F7) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]SetTLVBufToDocument err=0 [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1133 (046D) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Processing tag 1077 (0435) [00:11:29]Malloc new data [00:11:29]SetTLVBufToDocument err=0 [00:11:29]Malloc new data [00:11:29]SAM_PROTO_GetFMData [00:11:29]wFMCommunicate request_size=4 [00:11:29]MH_SAM_APDU [00:11:29]CAPDU: 80 13 03 00 [00:11:29]Write to MH i2c: E2 08 00 A2 6F 80 13 03 00 00 00 00 00 90 [00:11:29]Write i2c OK [00:11:29]MH_I2C_Read... [00:11:30]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:11:30]Read from MH i2c: E2 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 FD 00 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 FD 00 A2 6F 00 C3 04 85 04 BF 04 6E 04 04 00 BA 70 00 00 69 04 A1 00 6F 04 04 00 5A 6D 00 00 B1 04 04 00 87 CF 0A B2 70 04 04 00 10 87 51 71 72 04 04 00 77 48 B9 40 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 BC 2D E9 12 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 76 65 93 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 9C 00 6F 04 04 00 60 03 00 00 B1 04 04 00 18 17 A1 0C 70 04 04 00 18 17 A1 0C 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 17 60 57 01 EF 03 09 00 F6 90 00 F3 [00:11:30]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 BA 70 00 00 69 04 A1 00 6F 04 04 00 5A 6D 00 00 B1 04 04 00 87 CF 0A B2 70 04 04 00 10 87 51 71 72 04 04 00 77 48 B9 40 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 BC 2D E9 12 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 76 65 93 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 9C 00 6F 04 04 00 60 03 00 00 B1 04 04 00 18 17 A1 0C 70 04 04 00 18 17 A1 0C 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 17 60 57 01 EF 03 09 00 F6 90 00 [00:11:30]wFMCommunicate OK [00:11:30]wFMCommunicate request_size=4 [00:11:30]MH_SAM_APDU [00:11:30]CAPDU: 80 17 00 00 [00:11:30]Write to MH i2c: E2 08 00 A3 6F 80 17 00 00 00 00 00 00 92 [00:11:30]Write i2c OK [00:11:30]MH_I2C_Read... [00:11:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:31]Read from MH i2c: E2 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: E2 FD 00 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: E2 FD 00 A3 6F 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 9C 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 F1 [00:11:31]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 9C 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 [00:11:31]wFMCommunicate OK [00:11:31]wFMCommunicate request_size=4 [00:11:31]MH_SAM_APDU [00:11:31]CAPDU: 80 17 00 00 [00:11:31]Write to MH i2c: E2 08 00 A4 6F 80 17 00 00 00 00 00 00 93 [00:11:31]Write i2c OK [00:11:31]MH_I2C_Read... [00:11:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:31]Read from MH i2c: E2 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: E2 FD 00 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: E2 FD 00 A4 6F 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B1 [00:11:32]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:32]wFMCommunicate OK [00:11:32]wFMCommunicate request_size=4 [00:11:32]MH_SAM_APDU [00:11:32]CAPDU: 80 17 00 00 [00:11:32]Write to MH i2c: E2 08 00 A5 6F 80 17 00 00 00 00 00 00 94 [00:11:32]Write i2c OK [00:11:32]MH_I2C_Read... [00:11:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:32]Read from MH i2c: E2 [00:11:32]MH_I2C_Read... [00:11:32]Read from MH i2c: E2 FD 00 [00:11:32]MH_I2C_Read... [00:11:32]Read from MH i2c: E2 FD 00 A5 6F 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 06 [00:11:32]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:11:32]wFMCommunicate OK [00:11:32]wFMCommunicate request_size=4 [00:11:32]MH_SAM_APDU [00:11:32]CAPDU: 80 17 00 00 [00:11:32]Write to MH i2c: E2 08 00 A6 6F 80 17 00 00 00 00 00 00 95 [00:11:32]Write i2c OK [00:11:32]MH_I2C_Read... [00:11:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:11:33]Read from MH i2c: E2 [00:11:33]MH_I2C_Read... [00:11:33]Read from MH i2c: E2 E0 00 [00:11:33]MH_I2C_Read... [00:11:33]Read from MH i2c: E2 E0 00 A6 6F 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7F [00:11:33]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:11:33]wFMCommunicate OK [00:11:33]SAM_PROTO_GetFMData done [00:11:33]Malloc new data [00:11:33]Malloc new data [00:11:33]Malloc new data [00:11:33]Malloc new data [00:11:33]KKMLoadAndSignCloseShiftData err=0 [00:11:33]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Шадыканова Ж. 14.04.2024 00:11 Смена: 115 РНМ: 0000138879044617 ЗНМ: 0300000027 СНО: Общий режим Чеков за смену: 295 ФД за смену: 297 Всего чеков: 295 ИТОГИ ПРИХОД Чеков: 290 Общий итог: 327777.67 Итого наличными: 150274.00 Итого безнал.: 177503.67 НДС 0% : 0.00 НДС 12% : 34814.48 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2900.93 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 5 Общий итог: 6300.00 Итого наличными: 6300.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 669.19 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 55.76 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 143974.00 НС Приход: 29870529.35 НС Возвр.Прихода: 2118838.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 29089 ФМ: 0000000000963154 ФПД: 222311684033857 [00:11:33]StoreToDocumentArchive [00:11:33]shift 115 fd 29089 [00:11:33]save to /storage/0115/doc_00029089 [00:11:33]save last doc name /storage/0115/doc_00029089 to /storage/kkm_last_doc_name [00:11:33]save OK [00:11:33]Clear old archive folders... [00:11:33]Remove dir /storage/0010 [00:11:33]opendir ok [00:11:33]file . [00:11:33]file .. [00:11:33]file doc_1713053451 [00:11:33]remove file /storage/0010/doc_1713053451 [00:11:33]remove dir /storage/0010 [00:11:33]NVStorageSaveData kkm_registers [00:11:33]File name is /storage/kkm_registers [00:11:33]Write 24 bytes [00:11:33]NVStorageSaveData done [00:11:33]NVStorageSaveData kkm_registers [00:11:33]File name is /storage/kkm_registers [00:11:33]Write 24 bytes [00:11:33]NVStorageSaveData done [00:11:33]ProcessDocumentItem done err = 0, tmpTLVsize=1393 [00:11:33]tlvbuf is 013C5850 [00:11:33]SAM_PROTO_ClearQueue [00:11:33]wFMCommunicate request_size=4 [00:11:33]MH_SAM_APDU [00:11:33]CAPDU: 80 09 00 00 [00:11:33]Write to MH i2c: E2 08 00 A7 6F 80 09 00 00 00 00 00 00 88 [00:11:33]Write i2c OK [00:11:33]MH_I2C_Read... [00:11:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:11:33]Read from MH i2c: E2 [00:11:33]MH_I2C_Read... [00:11:33]Read from MH i2c: E2 03 00 [00:11:33]MH_I2C_Read... [00:11:33]Read from MH i2c: E2 03 00 A7 6F 00 90 00 8A [00:11:33]RAPDU: 90 00 [00:11:33]wFMCommunicate OK [00:11:33]SAM_PROTO_ClearQueue done [00:11:33]KKMCreateOFDPacket [00:11:33]OFDProtocolAddRootSTLVToBuf [00:11:33]FM_MakeSignedData [00:11:33]FM_MakeSignedData [00:11:33]SAM_PROTO_SignData [00:11:33]wFMCommunicate request_size=4 [00:11:33]MH_SAM_APDU [00:11:33]CAPDU: 80 0D 01 02 [00:11:33]Write to MH i2c: E2 08 00 A8 6F 80 0D 01 02 00 00 00 00 90 [00:11:33]Write i2c OK [00:11:33]MH_I2C_Read... [00:11:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:11:33]Read from MH i2c: E2 [00:11:33]MH_I2C_Read... [00:11:33]Read from MH i2c: E2 03 00 [00:11:33]MH_I2C_Read... [00:11:33]Read from MH i2c: E2 03 00 A8 6F 00 90 00 8B [00:11:33]RAPDU: 90 00 [00:11:33]wFMCommunicate OK [00:11:33]wFMCommunicate request_size=255 [00:11:33]MH_SAM_APDU [00:11:33]CAPDU: 80 0D 02 02 FA 05 00 71 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A8 D0 B0 D0 B4 D1 8B D0 BA D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 F4 03 04 00 34 1F 1B 66 0E 04 04 00 73 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 5E 04 04 00 27 01 00 00 57 04 04 00 29 01 00 00 AA 04 DF 04 6E 04 04 00 27 01 00 00 69 04 A5 00 6F 04 04 00 22 01 00 00 B1 04 04 00 27 26 F4 01 70 04 03 00 C8 4C E5 72 04 04 00 5F D9 0E 01 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 68 1F 35 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 [00:11:33]Write to MH i2c: E2 02 01 A9 6F 80 0D 02 02 FA 00 05 00 71 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A8 D0 B0 D0 B4 D1 8B D0 BA D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 F4 03 04 00 34 1F 1B 66 0E 04 04 00 73 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 5E 04 04 00 27 01 00 00 57 04 04 00 29 01 00 00 AA 04 DF 04 6E 04 04 00 27 01 00 00 69 04 A5 00 6F 04 04 00 22 01 00 00 B1 04 04 00 27 26 F4 01 70 04 03 00 C8 4C E5 72 04 04 00 5F D9 0E 01 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 68 1F 35 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 00 00 2B [00:11:34]Write i2c OK [00:11:34]MH_I2C_Read... [00:11:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:34]Read from MH i2c: E2 [00:11:34]MH_I2C_Read... [00:11:34]Read from MH i2c: E2 03 00 [00:11:34]MH_I2C_Read... [00:11:34]Read from MH i2c: E2 03 00 A9 6F 00 90 00 8C [00:11:34]RAPDU: 90 00 [00:11:34]wFMCommunicate OK [00:11:34]wFMCommunicate request_size=255 [00:11:34]MH_SAM_APDU [00:11:34]CAPDU: 80 0D 02 02 FA 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2D 6D 04 6A 04 A0 00 6F 04 04 00 05 00 00 00 B1 04 03 00 F0 9C 09 70 04 03 00 F0 9C 09 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 67 05 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 15 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 [00:11:34]Write to MH i2c: E2 02 01 AA 6F 80 0D 02 02 FA 00 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2D 6D 04 6A 04 A0 00 6F 04 04 00 05 00 00 00 B1 04 03 00 F0 9C 09 70 04 03 00 F0 9C 09 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 67 05 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 15 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 00 00 39 [00:11:34]Write i2c OK [00:11:34]MH_I2C_Read... [00:11:34]OFD Sender: No OFD packet to send [00:11:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:35]Read from MH i2c: E2 [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: E2 03 00 [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: E2 03 00 AA 6F 00 90 00 8D [00:11:35]RAPDU: 90 00 [00:11:35]wFMCommunicate OK [00:11:35]wFMCommunicate request_size=255 [00:11:35]MH_SAM_APDU [00:11:35]CAPDU: 80 0D 02 02 FA 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 [00:11:35]Write to MH i2c: E2 02 01 AB 6F 80 0D 02 02 FA 00 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 00 00 5B [00:11:35]Write i2c OK [00:11:35]MH_I2C_Read... [00:11:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:35]Read from MH i2c: E2 [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: E2 03 00 [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: E2 03 00 AB 6F 00 90 00 8E [00:11:35]RAPDU: 90 00 [00:11:35]wFMCommunicate OK [00:11:35]wFMCommunicate request_size=255 [00:11:35]MH_SAM_APDU [00:11:35]CAPDU: 80 0D 02 02 FA 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 [00:11:36]Write to MH i2c: E2 02 01 AC 6F 80 0D 02 02 FA 00 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 00 00 62 [00:11:36]Write i2c OK [00:11:36]MH_I2C_Read... [00:11:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:36]Read from MH i2c: E2 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 03 00 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 03 00 AC 6F 00 90 00 8F [00:11:36]RAPDU: 90 00 [00:11:36]wFMCommunicate OK [00:11:36]wFMCommunicate request_size=255 [00:11:36]MH_SAM_APDU [00:11:36]CAPDU: 80 0D 02 02 FA F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 [00:11:36]Write to MH i2c: E2 02 01 AD 6F 80 0D 02 02 FA 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 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 00 2A [00:11:37]Write i2c OK [00:11:37]MH_I2C_Read... [00:11:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:37]Read from MH i2c: E2 [00:11:37]MH_I2C_Read... [00:11:37]Read from MH i2c: E2 03 00 [00:11:37]MH_I2C_Read... [00:11:37]Read from MH i2c: E2 03 00 AD 6F 00 90 00 90 [00:11:37]RAPDU: 90 00 [00:11:37]wFMCommunicate OK [00:11:37]wFMCommunicate request_size=152 [00:11:37]MH_SAM_APDU [00:11:37]CAPDU: 80 0D 02 02 93 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 A1 71 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 CA 30 F8 F4 CD 41 [00:11:37]Write to MH i2c: E2 9B 00 AE 6F 80 0D 02 02 93 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 A1 71 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 CA 30 F8 F4 CD 41 00 00 D6 [00:11:37]Write i2c OK [00:11:37]MH_I2C_Read... [00:11:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:37]Read from MH i2c: E2 [00:11:37]MH_I2C_Read... [00:11:37]Read from MH i2c: E2 03 00 [00:11:37]MH_I2C_Read... [00:11:37]Read from MH i2c: E2 03 00 AE 6F 00 90 00 91 [00:11:37]RAPDU: 90 00 [00:11:37]wFMCommunicate OK [00:11:37]wFMCommunicate request_size=4 [00:11:37]MH_SAM_APDU [00:11:37]CAPDU: 80 0D 03 02 [00:11:37]Write to MH i2c: E2 08 00 AF 6F 80 0D 03 02 00 00 00 00 99 [00:11:37]Write i2c OK [00:11:37]MH_I2C_Read... [00:11:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:11:37]Read from MH i2c: E2 [00:11:37]MH_I2C_Read... [00:11:37]Read from MH i2c: E2 0B 00 [00:11:38]MH_I2C_Read... [00:11:38]Read from MH i2c: E2 0B 00 AF 6F 00 2B 44 E2 D1 84 E8 A9 26 90 00 F7 [00:11:38]RAPDU: 2B 44 E2 D1 84 E8 A9 26 90 00 [00:11:38]wFMCommunicate OK [00:11:38]SAM_PROTO_SignData done [00:11:38]FM_MakeSignedData done [00:11:38]CreateOFDProtocolMessage [00:11:38]wFMCommunicate request_size=4 [00:11:38]MH_SAM_APDU [00:11:38]CAPDU: 80 11 00 00 [00:11:38]Write to MH i2c: E2 08 00 B0 6F 80 11 00 00 00 00 00 00 99 [00:11:38]Write i2c OK [00:11:38]MH_I2C_Read... [00:11:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:38]Read from MH i2c: E2 [00:11:38]MH_I2C_Read... [00:11:38]Read from MH i2c: E2 17 00 [00:11:38]MH_I2C_Read... [00:11:38]Read from MH i2c: E2 17 00 B0 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E8 [00:11:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:11:38]wFMCommunicate OK [00:11:38]CreateOFDProtocolMessage done [00:11:38]OFDSenderStorePacket 29089 [00:11:38]StoreOFDPacket docnum=29089 [00:11:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 85 05 00 00 75 8C 7D 05 50 F5 5A 05 01 00 05 00 71 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A8 D0 B0 D0 B4 D1 8B D0 BA D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 F4 03 04 00 34 1F 1B 66 0E 04 04 00 73 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 5E 04 04 00 27 01 00 00 57 04 04 00 29 01 00 00 AA 04 DF 04 6E 04 04 00 27 01 00 00 69 04 A5 00 6F 04 04 00 22 01 00 00 B1 04 04 00 27 26 F4 01 70 04 03 00 C8 4C E5 72 04 04 00 5F D9 0E 01 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 68 1F 35 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2D 6D 04 6A 04 A0 00 6F 04 04 00 05 00 00 00 B1 04 03 00 F0 9C 09 70 04 03 00 F0 9C 09 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 67 05 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 15 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 A1 71 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 CA 30 F8 F4 CD 41 2B 44 E2 D1 84 E8 A9 26 [00:11:38]CheckFolder [00:11:38]dirname=/storage/ofd_packets [00:11:38]CheckFolder done [00:11:38]ProducePacketName [00:11:38]name=ofd_packets/00029089 [00:11:38]NVStorageSaveData ofd_packets/00029089 [00:11:38]File name is /storage/ofd_packets/00029089 [00:11:38]Write 1443 bytes [00:11:38]NVStorageSaveData done [00:11:38]OFDSenderStorePacket done [00:11:38]KKMCreateOFDPacket done [00:11:38]NVStorageSaveData kkm_last_timestamp [00:11:38]File name is /storage/kkm_last_timestamp [00:11:38]Write 4 bytes [00:11:38]NVStorageSaveData done [00:11:38]ExternCall_PrintAddStr [00:11:38]wPrintStart [00:11:38]Write to MH i2c: 01 00 00 B1 6F 20 [00:11:38]Write i2c OK [00:11:38]MH_I2C_Read... [00:11:38]Read from MH i2c: 01 [00:11:38]MH_I2C_Read... [00:11:38]Read from MH i2c: 01 07 00 [00:11:38]MH_I2C_Read... [00:11:38]Read from MH i2c: 01 07 00 B1 6F 00 00 00 00 00 FF 0F 35 [00:11:38]RasterBufferAndPrint [00:11:38]line Отчет о закрытии смены [00:11:38]line ФФД: 1.0 [00:11:38]line ИНН: 02508201610067 [00:11:38]line Кассир: Шадыканова Ж. [00:11:38]line 14.04.2024 00:11 [00:11:38]line Смена: 115 [00:11:38]line РНМ: 0000138879044617 [00:11:38]line ЗНМ: 0300000027 [00:11:38]line СНО: Общий режим [00:11:38]line Чеков за смену: 295 [00:11:38]line ФД за смену: 297 [00:11:38]line Всего чеков: 295 [00:11:38]line ИТОГИ ПРИХОД [00:11:38]line Чеков: 290 [00:11:38]line Общий итог: 327777.67 [00:11:38]line Итого наличными: 150274.00 [00:11:38]line Итого безнал.: 177503.67 [00:11:38]line НДС 0% : 0.00 [00:11:38]line НДС 12% : 34814.48 [00:11:38]line НСП 0% : 0.00 [00:11:38]line НСП 1,50% : 0.00 [00:11:38]line НСП 0,50% : 0.00 [00:11:38]line НСП 5% : 0.00 [00:11:38]line НСП 3% : 0.00 [00:11:38]line НСП 2% : 0.00 [00:11:38]line НСП 1% : 2900.93 [00:11:38]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:11:38]line Чеков: 5 [00:11:38]line Общий итог: 6300.00 [00:11:38]line Итого наличными: 6300.00 [00:11:38]line Итого безнал.: 0.00 [00:11:38]line НДС 0% : 0.00 [00:11:38]line НДС 12% : 669.19 [00:11:38]line НСП 0% : 0.00 [00:11:38]line НСП 1,50% : 0.00 [00:11:38]line НСП 0,50% : 0.00 [00:11:38]line НСП 5% : 0.00 [00:11:38]line НСП 3% : 0.00 [00:11:38]line НСП 2% : 0.00 [00:11:38]line НСП 1% : 55.76 [00:11:38]line ИТОГИ РАСХОД [00:11:38]line Чеков: 0 [00:11:38]line Общий итог: 0.00 [00:11:38]line Итого наличными: 0.00 [00:11:38]line Итого безнал.: 0.00 [00:11:38]line НДС 0% : 0.00 [00:11:38]line НДС 12% : 0.00 [00:11:38]line НСП 0% : 0.00 [00:11:38]line НСП 1,50% : 0.00 [00:11:38]line НСП 0,50% : 0.00 [00:11:38]line НСП 5% : 0.00 [00:11:38]line НСП 3% : 0.00 [00:11:38]line НСП 2% : 0.00 [00:11:38]line НСП 1% : 0.00 [00:11:38]line ИТОГИ ВОЗВРАТ РАСХОДА [00:11:38]line Чеков: 0 [00:11:38]line Общий итог: 0.00 [00:11:38]line Итого наличными: 0.00 [00:11:38]line Итого безнал.: 0.00 [00:11:38]OFD Sender: Processing packet 29089 [packets to send 8, broken 7] [00:11:38]ProducePacketName [00:11:38]name=ofd_packets/00029089 [00:11:38]OFD Sender: To server: pG, [00:11:38]CommunicateWithHost lk.salyk.kg:30040 [00:11:38]ConnectInit lk.salyk.kg [00:11:38]line НДС 0% : 0.00 [00:11:38]line НДС 12% : 0.00 [00:11:38]line НСП 0% : 0.00 [00:11:38]line НСП 1,50% : 0.00 [00:11:38]line НСП 0,50% : 0.00 [00:11:38]line НСП 5% : 0.00 [00:11:38]line НСП 3% : 0.00 [00:11:38]line НСП 2% : 0.00 [00:11:38]line НСП 1% : 0.00 [00:11:38]line Сумма внесений: 0.00 [00:11:38]line Сумма выплат: 0.00 [00:11:38]line Нал. в кассе: 143974.00 [00:11:38]line НС Приход: 29870529.35 [00:11:38]line НС Возвр.Прихода: 2118838.00 [00:11:38]line НС Расход: 0.00 [00:11:38]line НС Возвр.Расхода: 0.00 [00:11:38]line ФД: 29089 [00:11:38]line ФМ: 0000000000963154 [00:11:38]line ФПД: 222311684033857 [00:11:38]written 0, free lines is 4095 [00:11:38]Connected sock=10 [00:11:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 85 05 00 00 75 8C 7D 05 50 F5 5A 05 01 00 05 00 71 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 A8 D0 B0 D0 B4 D1 8B D0 BA D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 D0 96 2E 20 F4 03 04 00 34 1F 1B 66 0E 04 04 00 73 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 5E 04 04 00 27 01 00 00 57 04 04 00 29 01 00 00 AA 04 DF 04 6E 04 04 00 27 01 00 00 69 04 A5 00 6F 04 04 00 22 01 00 00 B1 04 04 00 27 26 F4 01 70 04 03 00 C8 4C E5 72 04 04 00 5F D9 0E 01 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 68 1F 35 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2D 6D 04 6A 04 A0 00 6F 04 04 00 05 00 00 00 B1 04 03 00 F0 9C 09 70 04 03 00 F0 9C 09 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 67 05 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 15 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 Write to MH i2c: 00 01 00 00 EF 00 03 01 0A 70 00 71 F6 [00:11:39]03 Write i2c OK [00:11:39]01 MH_I2C_Read... [00:11:39]00 Read from MH i2c: 00 01 F7 [00:11:39]03 MH_I2C_Read... [00:11:39]01 00 00 EF 03 0A Read from MH i2c: 00 01 F6 07 03 00 01 [00:11:39]00 MH_I2C_Read... [00:11:39]06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 Read from MH i2c: 00 01 00 07 EF 00 03 01 0A 70 00 F6 03 01 00 01 F7 03 01 00 00 6D 00 04 00 4C 00 02 00 78 00 04 DA 04 0A 00 5C 00 [00:11:39]00 RasterBufferAndPrint [00:11:39]00 line [00:11:39]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 line [00:11:39]F7 line [00:11:39]03 line [00:11:39]00 line [00:11:39]00 EF written 0, free lines is 3368 [00:11:39]03 09 MH_Cut [00:11:39]00 Write to MH i2c: F6 D1 03 01 01 00 00 08 04 70 F7 01 03 4A 00 [00:11:39]00 Write i2c OK [00:11:39]MH_I2C_Read... [00:11:39]Read from MH i2c: D1 [00:11:40]MH_I2C_Read... [00:11:40]Read from MH i2c: D1 01 00 [00:11:40]EF MH_I2C_Read... [00:11:40]03 Read from MH i2c: 09 D1 00 01 F6 00 03 08 01 70 00 05 F7 03 00 00 EF 03 00 09 49 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D [00:11:40]00 Write to MH i2c: 6F 01 04 00 04 00 00 09 00 70 00 79 00 [00:11:40]00 Write i2c OK [00:11:40]B1 MH_I2C_Read... [00:11:40]04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 A1 71 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 CA 30 F8 F4 CD 41 2B 44 E2 D1 84 E8 A9 26 [00:11:40]Received data: 87 *** Cut start [00:11:40]95 *** Partial cut [00:11:40]F6 *** CUTSNS_PIN = 1 [00:11:40]70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 FB 34 47 00 E6 61 A5 07 01 00 07 00 3B *** CUTSNS_PIN = 0 [00:11:40]00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A1 71 00 00 F4 03 04 00 E7 C9 1A 66 B6 04 01 00 00 49 38 E6 48 6E FD B6 1D [00:11:40]CommunicateWithHost err = 0 [00:11:40]CheckOFDResponse [00:11:40]1017 (14) - 77093643461234 [00:11:40]1041 (16) - 0000000000963154 [00:11:40]1040 (4) - 29089 [00:11:40]1012 (4) - 13.04.2024 18:07 [00:11:40]1206 (1) - 0 [00:11:40]OFD Sender: Remove packet 29089 [00:11:40]ProducePacketName [00:11:40]name=ofd_packets/00029089 [00:11:40]NVStorageDeleteData [00:11:40]*** Brake cut motor [00:11:41]Read from MH i2c: 01 [00:11:41]MH_I2C_Read... [00:11:41]*** Stop cut motor [00:11:41]*** Cut end [00:11:41]Read from MH i2c: 01 07 00 [00:11:41]MH_I2C_Read... [00:11:41]Read from MH i2c: 01 07 00 09 70 00 00 00 00 00 FF 0F 8E [00:11:41]process_action close_shift done [00:11:41]requested_data is exist [00:11:41]produce_requested_data [00:11:41]requested_item fd.num is exist - process it [00:11:41]SAM_PROTO_GetFieldsCounters [00:11:41]wFMCommunicate request_size=4 [00:11:41]MH_SAM_APDU [00:11:41]CAPDU: 80 13 00 00 [00:11:41]Write to MH i2c: E2 08 00 0A 70 80 13 00 00 00 00 00 00 F6 [00:11:41]OFD Sender: No OFD packet to send [00:11:41]Write i2c OK [00:11:41]MH_I2C_Read... [00:11:41]Read from MH i2c: E2 [00:11:41]MH_I2C_Read... [00:11:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:41]Read from MH i2c: E2 62 00 [00:11:41]MH_I2C_Read... [00:11:41]Read from MH i2c: E2 62 00 0A 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A1 71 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 32 [00:11: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A1 71 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:11:41]wFMCommunicate OK [00:11:41]SAM_PROTO_GetFieldsCounters done [00:11:41]requested_item shift.num is exist - process it [00:11:41]requested_item shift.opened is exist - process it [00:11:41]req_shift_opened [00:11:41]FM_GetShiftState [00:11:41]SAM_PROTO_GetShiftState [00:11:41]wFMCommunicate request_size=4 [00:11:41]MH_SAM_APDU [00:11:41]CAPDU: 80 13 01 00 [00:11:41]Write to MH i2c: E2 08 00 0B 70 80 13 01 00 00 00 00 00 F8 [00:11:41]Write i2c OK [00:11:41]MH_I2C_Read... [00:11:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:41]Read from MH i2c: E2 [00:11:41]MH_I2C_Read... [00:11:41]Read from MH i2c: E2 0E 00 [00:11:41]MH_I2C_Read... [00:11:41]Read from MH i2c: E2 0E 00 0B 70 00 09 00 00 00 00 00 00 00 00 00 00 90 00 03 [00:11:41]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:11:41]wFMCommunicate OK [00:11:41]SAM_PROTO_GetShiftState done [00:11:41]FM_GetShiftState done [00:11:41]req_shift_opened done [00:11:41]requested_item shift.open_date is exist - process it [00:11:41]req_shift_open_date [00:11:41]FM_GetShiftState [00:11:41]SAM_PROTO_GetShiftState [00:11:41]wFMCommunicate request_size=4 [00:11:41]MH_SAM_APDU [00:11:41]CAPDU: 80 13 01 00 [00:11:41]Write to MH i2c: E2 08 00 0C 70 80 13 01 00 00 00 00 00 F9 [00:11:41]Write i2c OK [00:11:41]MH_I2C_Read... [00:11:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:41]Read from MH i2c: E2 [00:11:41]MH_I2C_Read... [00:11:41]Read from MH i2c: E2 0E 00 [00:11:41]MH_I2C_Read... [00:11:41]Read from MH i2c: E2 0E 00 0C 70 00 09 00 00 00 00 00 00 00 00 00 00 90 00 04 [00:11:41]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:11:41]wFMCommunicate OK [00:11:41]SAM_PROTO_GetShiftState done [00:11:41]FM_GetShiftState done [00:11:41]req_shift_open_date done [00:11:41]produce_requested_data done [00:11:41]produce_requested_data return {"fd.num":29089,"shift.num":115,"shift.opened":0,"shift.open_date":0} [00:11:41]process_action_free close_shift [00:11:41]json_value_free [00:11:41]json_value_free done [00:11:41]process_json_proto returns [00:11:41]Send response to host [00:11:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":29089,"shift.num":115,"shift.opened":0,"shift.open_date":0}}} [00:11:41]free response buf [00:11:41]execute_script done [00:11:41]execute_script returns [00:11:41]free content buf [00:11:41]Sock 9.Close socket [00:11:41]Sock 9.Thread stoped [00:11:46]OFD Sender: No OFD packet to send [00:11:51]OFD Sender: No OFD packet to send [00:11:56]OFD Sender: No OFD packet to send [00:12:01]OFD Sender: No OFD packet to send [00:12:06]OFD Sender: No OFD packet to send [00:12:11]OFD Sender: No OFD packet to send [00:12:16]OFD Sender: No OFD packet to send [00:12:21]OFD Sender: No OFD packet to send [00:12:26]OFD Sender: No OFD packet to send [00:12:31]OFD Sender: No OFD packet to send [00:12:36]OFD Sender: No OFD packet to send [00:12:41]OFD Sender: No OFD packet to send [00:12:46]OFD Sender: No OFD packet to send [00:12:51]OFD Sender: No OFD packet to send [00:12:56]OFD Sender: No OFD packet to send [00:13:01]OFD Sender: No OFD packet to send [00:13:06]OFD Sender: No OFD packet to send [00:13:11]OFD Sender: No OFD packet to send [00:13:16]OFD Sender: No OFD packet to send [00:13:21]OFD Sender: No OFD packet to send [00:13:26]OFD Sender: No OFD packet to send [00:13:31]OFD Sender: No OFD packet to send [00:13:36]OFD Sender: No OFD packet to send [00:13:41]OFD Sender: No OFD packet to send [00:13:46]OFD Sender: No OFD packet to send [00:13:51]OFD Sender: No OFD packet to send [00:13:56]OFD Sender: No OFD packet to send [00:14:01]OFD Sender: No OFD packet to send [00:14:06]OFD Sender: No OFD packet to send [00:14:11]OFD Sender: No OFD packet to send [00:14:16]OFD Sender: No OFD packet to send [00:14:21]OFD Sender: No OFD packet to send [00:14:26]OFD Sender: No OFD packet to send [00:14:31]OFD Sender: No OFD packet to send [00:14:36]OFD Sender: No OFD packet to send [00:14:41]OFD Sender: No OFD packet to send [00:14:46]OFD Sender: No OFD packet to send [00:14:51]OFD Sender: No OFD packet to send [00:14:56]OFD Sender: No OFD packet to send [00:15:01]OFD Sender: No OFD packet to send [00:15:06]OFD Sender: No OFD packet to send [00:15:11]OFD Sender: No OFD packet to send [00:15:16]OFD Sender: No OFD packet to send [00:15:21]OFD Sender: No OFD packet to send [00:15:26]OFD Sender: No OFD packet to send [00:15:31]OFD Sender: No OFD packet to send [00:15:36]OFD Sender: No OFD packet to send [00:15:41]OFD Sender: No OFD packet to send [00:15:46]OFD Sender: No OFD packet to send [00:15:51]OFD Sender: No OFD packet to send [00:15:56]OFD Sender: No OFD packet to send [00:16:01]OFD Sender: No OFD packet to send [00:16:06]OFD Sender: No OFD packet to send [00:16:11]OFD Sender: No OFD packet to send [00:16:16]OFD Sender: No OFD packet to send [00:16:21]OFD Sender: No OFD packet to send [00:16:26]OFD Sender: No OFD packet to send [00:16:31]OFD Sender: No OFD packet to send [00:16:36]OFD Sender: No OFD packet to send [00:16:41]OFD Sender: No OFD packet to send [00:16:46]OFD Sender: No OFD packet to send [00:16:51]OFD Sender: No OFD packet to send [00:16:56]OFD Sender: No OFD packet to send [00:17:01]OFD Sender: No OFD packet to send [00:17:06]OFD Sender: No OFD packet to send [00:17:11]OFD Sender: No OFD packet to send [00:17:16]OFD Sender: No OFD packet to send [00:17:21]OFD Sender: No OFD packet to send [00:17:26]OFD Sender: No OFD packet to send [00:17:31]OFD Sender: No OFD packet to send [00:17:36]OFD Sender: No OFD packet to send [00:17:41]OFD Sender: No OFD packet to send [00:17:46]OFD Sender: No OFD packet to send [00:17:51]OFD Sender: No OFD packet to send [00:17:56]OFD Sender: No OFD packet to send [00:18:01]OFD Sender: No OFD packet to send [00:18:06]OFD Sender: No OFD packet to send [00:18:11]OFD Sender: No OFD packet to send [00:18:16]OFD Sender: No OFD packet to send [00:18:21]OFD Sender: No OFD packet to send [00:18:26]OFD Sender: No OFD packet to send [00:18:31]OFD Sender: No OFD packet to send [00:18:36]OFD Sender: No OFD packet to send [00:18:41]OFD Sender: No OFD packet to send [00:18:46]OFD Sender: No OFD packet to send [00:18:51]OFD Sender: No OFD packet to send [00:18:56]OFD Sender: No OFD packet to send [00:18:59]accept exits with 7 [00:18:59]New connection [00:18:59]New thread 3066785124 created [00:18:59]Thread 3066928484 joined [00:18:59]Waiting for new connection... [00:18:59] Sock 7.Parse request [00:18:59]Sock 7.Check first char [00:18:59]Sock 7.First char is OK [00:18:59]request: POST /json_proto HTTP/1.0 [00:18:59]Method: POST [00:18:59]URL: /json_proto [00:18:59]Method is POST - this is cgi request [00:18:59]url: /json_proto [00:18:59]query_string will be loaded in cgi processing [00:18:59]execute_cgi json_proto POST (null) [00:18:59]execute_cgi path=json_proto method=POST [00:18:59]POST find Content-Length [00:18:59]Host: 172.17.33.3:8080 [00:18:59]Content-Length: 215 [00:18:59]Content-Type: application/json [00:18:59] [00:18:59]POST finish read [00:18:59]Found Content-Length = 215 [00:18:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:59]execute_script... [00:18:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:59]POST & json_proto [00:18:59]process_json_proto [00:18:59]json parsed OK: [00:18:59]protocol is kg_v1.0 [00:18:59]action value=get_value [00:18:59]process_action get_value [00:18:59]cmd_get_value [00:18:59]process_action get_value done [00:18:59]requested_data is exist [00:18:59]produce_requested_data [00:18:59]requested_item kkm.sn is exist - process it [00:18:59]requested_item kkm.ver is exist - process it [00:18:59]requested_item fm.sn is exist - process it [00:18:59]wFMCommunicate request_size=4 [00:18:59]MH_SAM_APDU [00:18:59]CAPDU: 80 11 00 00 [00:18:59]Write to MH i2c: E2 08 00 0D 70 80 11 00 00 00 00 00 00 F7 [00:18:59]Write i2c OK [00:18:59]MH_I2C_Read... [00:18:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:59]Read from MH i2c: E2 [00:18:59]MH_I2C_Read... [00:18:59]Read from MH i2c: E2 17 00 [00:18:59]MH_I2C_Read... [00:18:59]Read from MH i2c: E2 17 00 0D 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 46 [00:18:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:18:59]wFMCommunicate OK [00:18:59]requested_item fd.num is exist - process it [00:18:59]SAM_PROTO_GetFieldsCounters [00:18:59]wFMCommunicate request_size=4 [00:18:59]MH_SAM_APDU [00:18:59]CAPDU: 80 13 00 00 [00:18:59]Write to MH i2c: E2 08 00 0E 70 80 13 00 00 00 00 00 00 FA [00:18:59]Write i2c OK [00:18:59]MH_I2C_Read... [00:18:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:59]Read from MH i2c: E2 [00:18:59]MH_I2C_Read... [00:18:59]Read from MH i2c: E2 62 00 [00:18:59]MH_I2C_Read... [00:18:59]Read from MH i2c: E2 62 00 0E 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A1 71 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 36 [00:18: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A1 71 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:18:59]wFMCommunicate OK [00:18:59]SAM_PROTO_GetFieldsCounters done [00:18:59]requested_item shift.num is exist - process it [00:18:59]requested_item shift.opened is exist - process it [00:18:59]req_shift_opened [00:18:59]FM_GetShiftState [00:18:59]SAM_PROTO_GetShiftState [00:18:59]wFMCommunicate request_size=4 [00:18:59]MH_SAM_APDU [00:18:59]CAPDU: 80 13 01 00 [00:18:59]Write to MH i2c: E2 08 00 0F 70 80 13 01 00 00 00 00 00 FC [00:18:59]Write i2c OK [00:18:59]MH_I2C_Read... [00:18:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:59]Read from MH i2c: E2 [00:18:59]MH_I2C_Read... [00:18:59]Read from MH i2c: E2 0E 00 [00:18:59]MH_I2C_Read... [00:18:59]Read from MH i2c: E2 0E 00 0F 70 00 09 00 00 00 00 00 00 00 00 00 00 90 00 07 [00:18:59]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:18:59]wFMCommunicate OK [00:18:59]SAM_PROTO_GetShiftState done [00:18:59]FM_GetShiftState done [00:18:59]req_shift_opened done [00:18:59]requested_item shift.open_date is exist - process it [00:18:59]req_shift_open_date [00:18:59]FM_GetShiftState [00:18:59]SAM_PROTO_GetShiftState [00:18:59]wFMCommunicate request_size=4 [00:18:59]MH_SAM_APDU [00:18:59]CAPDU: 80 13 01 00 [00:18:59]Write to MH i2c: E2 08 00 10 70 80 13 01 00 00 00 00 00 FD [00:18:59]Write i2c OK [00:18:59]MH_I2C_Read... [00:19:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:00]Read from MH i2c: E2 [00:19:00]MH_I2C_Read... [00:19:00]Read from MH i2c: E2 0E 00 [00:19:00]MH_I2C_Read... [00:19:00]Read from MH i2c: E2 0E 00 10 70 00 09 00 00 00 00 00 00 00 00 00 00 90 00 08 [00:19:00]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:19:00]wFMCommunicate OK [00:19:00]SAM_PROTO_GetShiftState done [00:19:00]FM_GetShiftState done [00:19:00]req_shift_open_date done [00:19:00]produce_requested_data done [00:19:00]produce_requested_data return {"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29089,"shift.num":115,"shift.opened":0,"shift.open_date":0} [00:19:00]process_action_free get_value [00:19:00]json_value_free [00:19:00]json_value_free done [00:19:00]process_json_proto returns [00:19:00]Send response to host [00:19:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000027","kkm.ver":"001","fm.sn":"0000000000963154","fd.num":29089,"shift.num":115,"shift.opened":0,"shift.open_date":0}}} [00:19:00]free response buf [00:19:00]execute_script done [00:19:00]execute_script returns [00:19:00]free content buf [00:19:00]Sock 7.Close socket [00:19:00]Sock 7.Thread stoped [00:19:00]accept exits with 9 [00:19:00]New connection [00:19:00]New thread 3066928484 created [00:19:00]Thread 3066785124 joined [00:19:00]Waiting for new connection... [00:19:00] Sock 9.Parse request [00:19:00]Sock 9.Check first char [00:19:00]Sock 9.First char is OK [00:19:00]request: POST /json_proto HTTP/1.0 [00:19:00]Method: POST [00:19:00]URL: /json_proto [00:19:00]Method is POST - this is cgi request [00:19:00]url: /json_proto [00:19:00]query_string will be loaded in cgi processing [00:19:00]execute_cgi json_proto POST (null) [00:19:00]execute_cgi path=json_proto method=POST [00:19:00]POST find Content-Length [00:19:00]Host: 172.17.33.3:8080 [00:19:00]Content-Length: 331 [00:19:00]Content-Type: application/json [00:19:00] [00:19:00]POST finish read [00:19:00]Found Content-Length = 331 [00:19:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:00]execute_script... [00:19:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:00]POST & json_proto [00:19:00]process_json_proto [00:19:00]json parsed OK: [00:19:00]protocol is kg_v1.0 [00:19:00]action value=get_value [00:19:00]process_action get_value [00:19:00]cmd_get_value [00:19:00]process_action get_value done [00:19:00]requested_data is exist [00:19:00]produce_requested_data [00:19:00]requested_item fm.sale.total is exist - process it [00:19:00]SAM_PROTO_GetFMData [00:19:00]wFMCommunicate request_size=4 [00:19:00]MH_SAM_APDU [00:19:00]CAPDU: 80 13 03 00 [00:19:00]Write to MH i2c: E2 08 00 11 70 80 13 03 00 00 00 00 00 00 [00:19:00]Write i2c OK [00:19:00]MH_I2C_Read... [00:19:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:00]Read from MH i2c: E2 [00:19:00]MH_I2C_Read... [00:19:00]Read from MH i2c: E2 FD 00 [00:19:00]MH_I2C_Read... [00:19:00]Read from MH i2c: E2 FD 00 11 70 00 C3 04 85 04 BF 04 6E 04 04 00 BA 70 00 00 69 04 A1 00 6F 04 04 00 5A 6D 00 00 B1 04 04 00 87 CF 0A B2 70 04 04 00 10 87 51 71 72 04 04 00 77 48 B9 40 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 BC 2D E9 12 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 76 65 93 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 9C 00 6F 04 04 00 60 03 00 00 B1 04 04 00 18 17 A1 0C 70 04 04 00 18 17 A1 0C 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 17 60 57 01 EF 03 09 00 F6 90 00 63 [00:19:00]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 BA 70 00 00 69 04 A1 00 6F 04 04 00 5A 6D 00 00 B1 04 04 00 87 CF 0A B2 70 04 04 00 10 87 51 71 72 04 04 00 77 48 B9 40 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 BC 2D E9 12 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 76 65 93 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 9C 00 6F 04 04 00 60 03 00 00 B1 04 04 00 18 17 A1 0C 70 04 04 00 18 17 A1 0C 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 17 60 57 01 EF 03 09 00 F6 90 00 [00:19:00]wFMCommunicate OK [00:19:00]wFMCommunicate request_size=4 [00:19:00]MH_SAM_APDU [00:19:00]CAPDU: 80 17 00 00 [00:19:00]Write to MH i2c: E2 08 00 12 70 80 17 00 00 00 00 00 00 02 [00:19:00]Write i2c OK [00:19:00]MH_I2C_Read... [00:19:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:01]Read from MH i2c: E2 [00:19:01]MH_I2C_Read... [00:19:01]Read from MH i2c: E2 FD 00 [00:19:01]MH_I2C_Read... [00:19:01]Read from MH i2c: E2 FD 00 12 70 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 9C 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 61 [00:19:01]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 9C 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 [00:19:01]wFMCommunicate OK [00:19:01]wFMCommunicate request_size=4 [00:19:01]MH_SAM_APDU [00:19:01]CAPDU: 80 17 00 00 [00:19:01]Write to MH i2c: E2 08 00 13 70 80 17 00 00 00 00 00 00 03 [00:19:01]Write i2c OK [00:19:01]MH_I2C_Read... [00:19:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:01]Read from MH i2c: E2 [00:19:01]MH_I2C_Read... [00:19:01]Read from MH i2c: E2 FD 00 [00:19:01]MH_I2C_Read... [00:19:01]Read from MH i2c: E2 FD 00 13 70 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 21 [00:19:01]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:01]wFMCommunicate OK [00:19:01]wFMCommunicate request_size=4 [00:19:01]MH_SAM_APDU [00:19:01]CAPDU: 80 17 00 00 [00:19:01]Write to MH i2c: E2 08 00 14 70 80 17 00 00 00 00 00 00 04 [00:19:01]Write i2c OK [00:19:01]MH_I2C_Read... [00:19:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:01]Read from MH i2c: E2 [00:19:01]MH_I2C_Read... [00:19:01]Read from MH i2c: E2 FD 00 [00:19:01]MH_I2C_Read... [00:19:01]Read from MH i2c: E2 FD 00 14 70 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 76 [00:19:01]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:19:01]wFMCommunicate OK [00:19:01]wFMCommunicate request_size=4 [00:19:01]MH_SAM_APDU [00:19:01]CAPDU: 80 17 00 00 [00:19:01]Write to MH i2c: E2 08 00 15 70 80 17 00 00 00 00 00 00 05 [00:19:01]Write i2c OK [00:19:01]MH_I2C_Read... [00:19:01]OFD Sender: No OFD packet to send [00:19:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:19:01]Read from MH i2c: E2 [00:19:01]MH_I2C_Read... [00:19:01]Read from MH i2c: E2 E0 00 [00:19:01]MH_I2C_Read... [00:19:01]Read from MH i2c: E2 E0 00 15 70 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EF [00:19:01]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:01]wFMCommunicate OK [00:19:01]SAM_PROTO_GetFMData done [00:19:01]requested_item fm.sale_refund.total is exist - process it [00:19:01]requested_item fm.buy.total is exist - process it [00:19:01]requested_item shift.sale.total is exist - process it [00:19:01]SAM_PROTO_GetShiftData [00:19:01]wFMCommunicate request_size=4 [00:19:01]MH_SAM_APDU [00:19:01]CAPDU: 80 13 02 00 [00:19:01]Write to MH i2c: E2 08 00 16 70 80 13 02 00 00 00 00 00 04 [00:19:01]Write i2c OK [00:19:01]MH_I2C_Read... [00:19:02]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:02]Read from MH i2c: E2 [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: E2 FD 00 [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: E2 FD 00 16 70 00 BC 04 AA 04 B8 04 6E 04 04 00 27 01 00 00 69 04 9E 00 6F 04 04 00 22 01 00 00 B1 04 04 00 27 26 F4 01 70 04 03 00 C8 4C E5 72 04 04 00 5F D9 0E 01 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 68 1F 35 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 2D 6D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 F0 9C 09 70 04 03 00 F0 9C 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 67 05 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 DB [00:19:02]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 27 01 00 00 69 04 9E 00 6F 04 04 00 22 01 00 00 B1 04 04 00 27 26 F4 01 70 04 03 00 C8 4C E5 72 04 04 00 5F D9 0E 01 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 68 1F 35 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 2D 6D 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 05 00 00 00 B1 04 03 00 F0 9C 09 70 04 03 00 F0 9C 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 67 05 01 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:19:02]wFMCommunicate OK [00:19:02]wFMCommunicate request_size=4 [00:19:02]MH_SAM_APDU [00:19:02]CAPDU: 80 17 00 00 [00:19:02]Write to MH i2c: E2 08 00 17 70 80 17 00 00 00 00 00 00 07 [00:19:02]Write i2c OK [00:19:02]MH_I2C_Read... [00:19:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:02]Read from MH i2c: E2 [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: E2 FD 00 [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: E2 FD 00 17 70 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 8E [00:19:02]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C8 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [00:19:02]wFMCommunicate OK [00:19:02]wFMCommunicate request_size=4 [00:19:02]MH_SAM_APDU [00:19:02]CAPDU: 80 17 00 00 [00:19:02]Write to MH i2c: E2 08 00 18 70 80 17 00 00 00 00 00 00 08 [00:19:02]Write i2c OK [00:19:02]MH_I2C_Read... [00:19:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:02]Read from MH i2c: E2 [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: E2 FD 00 [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: E2 FD 00 18 70 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 31 [00:19:02]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [00:19:02]wFMCommunicate OK [00:19:02]wFMCommunicate request_size=4 [00:19:02]MH_SAM_APDU [00:19:02]CAPDU: 80 17 00 00 [00:19:02]Write to MH i2c: E2 08 00 19 70 80 17 00 00 00 00 00 00 09 [00:19:02]Write i2c OK [00:19:02]MH_I2C_Read... [00:19:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:03]Read from MH i2c: E2 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 FD 00 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 FD 00 19 70 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 8A [00:19:03]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:19:03]wFMCommunicate OK [00:19:03]wFMCommunicate request_size=4 [00:19:03]MH_SAM_APDU [00:19:03]CAPDU: 80 17 00 00 [00:19:03]Write to MH i2c: E2 08 00 1A 70 80 17 00 00 00 00 00 00 0A [00:19:03]Write i2c OK [00:19:03]MH_I2C_Read... [00:19:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:19:03]Read from MH i2c: E2 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 D9 00 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 D9 00 1A 70 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E9 [00:19:03]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:03]wFMCommunicate OK [00:19:03]SAM_PROTO_GetShiftData done [00:19:03]requested_item shift.sale.total_cash is exist - process it [00:19:03]requested_item shift.sale_refund.total is exist - process it [00:19:03]requested_item shift.sale_refund.total_cash is exist - process it [00:19:03]requested_item shift.buy.total is exist - process it [00:19:03]requested_item shift.buy.total_cash is exist - process it [00:19:03]produce_requested_data done [00:19:03]produce_requested_data return {"fm.sale.total":29870529.35,"fm.sale_refund.total":2118838.00,"fm.buy.total":0.00,"shift.sale.total":327777.67,"shift.sale.total_cash":150274.00,"shift.sale_refund.total":6300.00,"shift.sale_refund.total_cash":6300.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:19:03]process_action_free get_value [00:19:03]json_value_free [00:19:03]json_value_free done [00:19:03]process_json_proto returns [00:19:03]Send response to host [00:19:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29870529.35,"fm.sale_refund.total":2118838.00,"fm.buy.total":0.00,"shift.sale.total":327777.67,"shift.sale.total_cash":150274.00,"shift.sale_refund.total":6300.00,"shift.sale_refund.total_cash":6300.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:19:03]free response buf [00:19:03]execute_script done [00:19:03]execute_script returns [00:19:03]free content buf [00:19:03]Sock 9.Close socket [00:19:03]Sock 9.Thread stoped [00:19:03]accept exits with 7 [00:19:03]New connection [00:19:03]New thread 3066785124 created [00:19:03]Thread 3066928484 joined [00:19:03]Waiting for new connection... [00:19:03] Sock 7.Parse request [00:19:03]Sock 7.Check first char [00:19:03]Sock 7.First char is OK [00:19:03]request: POST /json_proto HTTP/1.0 [00:19:03]Method: POST [00:19:03]URL: /json_proto [00:19:03]Method is POST - this is cgi request [00:19:03]url: /json_proto [00:19:03]query_string will be loaded in cgi processing [00:19:03]execute_cgi json_proto POST (null) [00:19:03]execute_cgi path=json_proto method=POST [00:19:03]POST find Content-Length [00:19:03]Host: 172.17.33.3:8080 [00:19:03]Content-Length: 266 [00:19:03]Content-Type: application/json [00:19:03] [00:19:03]POST finish read [00:19:03]Found Content-Length = 266 [00:19:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:03]execute_script... [00:19:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u043B\u0438\u043A\u0431\u0430\u0435\u0432\u0430. \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:03]POST & json_proto [00:19:03]process_json_proto [00:19:03]json parsed OK: [00:19:03]protocol is kg_v1.0 [00:19:03]action value=open_shift [00:19:03]process_action open_shift [00:19:03]cmd_open_shift [00:19:03]MH_GetDate [00:19:03]Write to MH i2c: F0 00 00 1B 70 7A [00:19:03]Write i2c OK [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: F0 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: F0 09 00 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: F0 09 00 1B 70 00 FF 20 1B 66 23 5B 8F 65 95 [00:19:03]GetLastDocTimeStamp 1713053492 [00:19:03]current date 1713053951 [00:19:03]FM_GetShiftState [00:19:03]SAM_PROTO_GetShiftState [00:19:03]wFMCommunicate request_size=4 [00:19:03]MH_SAM_APDU [00:19:03]CAPDU: 80 13 01 00 [00:19:03]Write to MH i2c: E2 08 00 1C 70 80 13 01 00 00 00 00 00 09 [00:19:03]Write i2c OK [00:19:03]MH_I2C_Read... [00:19:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:03]Read from MH i2c: E2 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 0E 00 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 0E 00 1C 70 00 09 00 00 00 00 00 00 00 00 00 00 90 00 14 [00:19:03]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:19:03]wFMCommunicate OK [00:19:03]SAM_PROTO_GetShiftState done [00:19:03]FM_GetShiftState done [00:19:03]KKMCreateOpenShiftDocument [00:19:03]Load OK [00:19:03]Malloc new data [00:19:03]MH_GetDate [00:19:03]Write to MH i2c: F0 00 00 1D 70 7C [00:19:03]Write i2c OK [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: F0 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: F0 09 00 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: F0 09 00 1D 70 00 FF 20 1B 66 23 5B 8F 65 97 [00:19:03]Malloc new data [00:19:03]KKMCreateOpenShiftDocument OK [00:19:03]KKMSetOpenShiftData OK [00:19:03]ProcessDocumentItem done err = 0, tmpTLVsize=202 [00:19:03]tlvbuf is 011C20A0 [00:19:03]KKMLoadAndSignOpenShiftData [00:19:03]SAM_PROTO_ProcessDocument [00:19:03]wFMCommunicate request_size=9 [00:19:03]MH_SAM_APDU [00:19:03]CAPDU: 80 15 01 00 04 02 00 CA 00 [00:19:03]Write to MH i2c: E2 0C 00 1E 70 80 15 01 00 04 00 02 00 CA 00 00 00 E1 [00:19:03]Write i2c OK [00:19:03]MH_I2C_Read... [00:19:03]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:19:03]Read from MH i2c: E2 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 03 00 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 03 00 1E 70 00 90 00 02 [00:19:03]RAPDU: 90 00 [00:19:03]wFMCommunicate OK [00:19:03]wFMCommunicate request_size=23 [00:19:03]MH_SAM_APDU [00:19:03]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:19:03]Write to MH i2c: E2 1A 00 1F 70 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 04 [00:19:03]Write i2c OK [00:19:03]MH_I2C_Read... [00:19:03]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:03]Read from MH i2c: E2 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 03 00 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 03 00 1F 70 00 90 00 03 [00:19:03]RAPDU: 90 00 [00:19:03]wFMCommunicate OK [00:19:03]wFMCommunicate request_size=33 [00:19:03]MH_SAM_APDU [00:19:03]CAPDU: 80 15 02 00 1C FD 03 18 00 D0 90 D0 BB D0 B8 D0 BA D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 2E 20 D0 94 2E 20 [00:19:03]Write to MH i2c: E2 24 00 20 70 80 15 02 00 1C 00 FD 03 18 00 D0 90 D0 BB D0 B8 D0 BA D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 2E 20 D0 94 2E 20 00 00 E5 [00:19:04]Write i2c OK [00:19:04]MH_I2C_Read... [00:19:04]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:04]Read from MH i2c: E2 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 03 00 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 03 00 20 70 00 90 00 04 [00:19:04]RAPDU: 90 00 [00:19:04]wFMCommunicate OK [00:19:04]wFMCommunicate request_size=87 [00:19:04]MH_SAM_APDU [00:19:04]CAPDU: 80 15 02 00 52 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 [00:19:04]Write to MH i2c: E2 5A 00 21 70 80 15 02 00 52 00 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 00 00 35 [00:19:04]Write i2c OK [00:19:04]MH_I2C_Read... [00:19:04]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:04]Read from MH i2c: E2 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 03 00 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 03 00 21 70 00 90 00 05 [00:19:04]RAPDU: 90 00 [00:19:04]wFMCommunicate OK [00:19:04]wFMCommunicate request_size=51 [00:19:04]MH_SAM_APDU [00:19:04]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:19:04]Write to MH i2c: E2 36 00 22 70 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 BD [00:19:04]Write i2c OK [00:19:04]MH_I2C_Read... [00:19:04]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:04]Read from MH i2c: E2 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 03 00 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 03 00 22 70 00 90 00 06 [00:19:04]RAPDU: 90 00 [00:19:04]wFMCommunicate OK [00:19:04]wFMCommunicate request_size=13 [00:19:04]MH_SAM_APDU [00:19:04]CAPDU: 80 15 02 00 08 F4 03 04 00 FF 20 1B 66 [00:19:04]Write to MH i2c: E2 10 00 23 70 80 15 02 00 08 00 F4 03 04 00 FF 20 1B 66 00 00 BE [00:19:04]Write i2c OK [00:19:04]MH_I2C_Read... [00:19:04]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:04]Read from MH i2c: E2 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 03 00 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 03 00 23 70 00 90 00 07 [00:19:04]RAPDU: 90 00 [00:19:04]wFMCommunicate OK [00:19:04]wFMCommunicate request_size=25 [00:19:04]MH_SAM_APDU [00:19:04]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 [00:19:04]Write to MH i2c: E2 1C 00 24 70 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 00 00 97 [00:19:04]Write i2c OK [00:19:04]MH_I2C_Read... [00:19:04]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:04]Read from MH i2c: E2 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 03 00 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 03 00 24 70 00 90 00 08 [00:19:04]RAPDU: 90 00 [00:19:04]wFMCommunicate OK [00:19:04]wFMCommunicate request_size=4 [00:19:04]MH_SAM_APDU [00:19:04]CAPDU: 80 15 03 00 [00:19:04]Write to MH i2c: E2 08 00 25 70 80 15 03 00 00 00 00 00 16 [00:19:04]Write i2c OK [00:19:04]MH_I2C_Read... [00:19:04]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:19:04]Read from MH i2c: E2 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 38 00 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 38 00 25 70 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A2 71 00 00 0E 04 04 00 74 00 00 00 35 04 06 00 59 FA 37 5C 91 BE 90 00 9A [00:19:04]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A2 71 00 00 0E 04 04 00 74 00 00 00 35 04 06 00 59 FA 37 5C 91 BE 90 00 [00:19:04]wFMCommunicate OK [00:19:04]SAM_PROTO_ProcessDocument answer len = 51 [00:19:04]SAM_PROTO_ProcessDocument done [00:19:04]SetTLVBufToDocument [00:19:04]Processing tag 1209 (04B9) [00:19:04]Malloc new data [00:19:04]Processing tag 1041 (0411) [00:19:04]Processing tag 1040 (0410) [00:19:04]Malloc new data [00:19:04]Processing tag 1038 (040E) [00:19:04]Malloc new data [00:19:04]Processing tag 1077 (0435) [00:19:04]Malloc new data [00:19:04]SetTLVBufToDocument err=0 [00:19:04]KKMLoadAndSignOpenShiftData store KKM data [00:19:04]KKMLoadAndSignOpenShiftData err=0 [00:19:04]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Аликбаева. Д. Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 Место: АЗС № 108 "Партнер Нефть" 14.04.2024 00:19 Смена: 116 РНМ: 0000138879044617 ЗНМ: 0300000027 ФД: 29090 ФМ: 0000000000963154 ФПД: 98931205509566 [00:19:04]StoreToDocumentArchive [00:19:04]shift 116 fd 29090 [00:19:04]Create dir for shift 0116 [00:19:04]save to /storage/0116/doc_00029090 [00:19:04]save last doc name /storage/0116/doc_00029090 to /storage/kkm_last_doc_name [00:19:04]save OK [00:19:04]Clear old archive folders... [00:19:04]Remove dir /storage/0115 [00:19:04]opendir ok [00:19:04]file . [00:19:04]file .. [00:19:04]file doc_00028793 [00:19:04]remove file /storage/0115/doc_00028793 [00:19:04]file doc_00028794 [00:19:04]remove file /storage/0115/doc_00028794 [00:19:04]file doc_00028795 [00:19:04]remove file /storage/0115/doc_00028795 [00:19:04]file doc_00028796 [00:19:04]remove file /storage/0115/doc_00028796 [00:19:04]file doc_00028797 [00:19:04]remove file /storage/0115/doc_00028797 [00:19:04]file doc_00028798 [00:19:04]remove file /storage/0115/doc_00028798 [00:19:04]file doc_00028799 [00:19:04]remove file /storage/0115/doc_00028799 [00:19:04]file doc_00028800 [00:19:04]remove file /storage/0115/doc_00028800 [00:19:04]file doc_00028801 [00:19:04]remove file /storage/0115/doc_00028801 [00:19:04]file doc_00028802 [00:19:04]remove file /storage/0115/doc_00028802 [00:19:04]file doc_00028803 [00:19:04]remove file /storage/0115/doc_00028803 [00:19:04]file doc_00028804 [00:19:04]remove file /storage/0115/doc_00028804 [00:19:04]file doc_00028805 [00:19:04]remove file /storage/0115/doc_00028805 [00:19:04]file doc_00028806 [00:19:04]remove file /storage/0115/doc_00028806 [00:19:04]file doc_00028807 [00:19:04]remove file /storage/0115/doc_00028807 [00:19:04]file doc_00028808 [00:19:04]remove file /storage/0115/doc_00028808 [00:19:04]file doc_00028809 [00:19:04]remove file /storage/0115/doc_00028809 [00:19:04]file doc_00028810 [00:19:04]remove file /storage/0115/doc_00028810 [00:19:04]file doc_00028811 [00:19:04]remove file /storage/0115/doc_00028811 [00:19:04]file doc_00028812 [00:19:04]remove file /storage/0115/doc_00028812 [00:19:04]file doc_00028813 [00:19:04]remove file /storage/0115/doc_00028813 [00:19:04]file doc_00028814 [00:19:04]remove file /storage/0115/doc_00028814 [00:19:04]file doc_00028815 [00:19:04]remove file /storage/0115/doc_00028815 [00:19:04]file doc_00028816 [00:19:04]remove file /storage/0115/doc_00028816 [00:19:04]file doc_00028817 [00:19:04]remove file /storage/0115/doc_00028817 [00:19:04]file doc_00028818 [00:19:04]remove file /storage/0115/doc_00028818 [00:19:04]file doc_00028819 [00:19:04]remove file /storage/0115/doc_00028819 [00:19:04]file doc_00028820 [00:19:04]remove file /storage/0115/doc_00028820 [00:19:04]file doc_00028821 [00:19:04]remove file /storage/0115/doc_00028821 [00:19:04]file doc_00028822 [00:19:04]remove file /storage/0115/doc_00028822 [00:19:04]file doc_00028823 [00:19:04]remove file /storage/0115/doc_00028823 [00:19:04]file doc_00028824 [00:19:04]remove file /storage/0115/doc_00028824 [00:19:04]file doc_00028825 [00:19:04]remove file /storage/0115/doc_00028825 [00:19:04]file doc_00028826 [00:19:04]remove file /storage/0115/doc_00028826 [00:19:04]file doc_00028827 [00:19:04]remove file /storage/0115/doc_00028827 [00:19:04]file doc_00028828 [00:19:04]remove file /storage/0115/doc_00028828 [00:19:04]file doc_00028829 [00:19:04]remove file /storage/0115/doc_00028829 [00:19:04]file doc_00028830 [00:19:04]remove file /storage/0115/doc_00028830 [00:19:04]file doc_00028831 [00:19:04]remove file /storage/0115/doc_00028831 [00:19:04]file doc_00028832 [00:19:04]remove file /storage/0115/doc_00028832 [00:19:04]file doc_00028833 [00:19:04]remove file /storage/0115/doc_00028833 [00:19:04]file doc_00028834 [00:19:04]remove file /storage/0115/doc_00028834 [00:19:04]file doc_00028835 [00:19:04]remove file /storage/0115/doc_00028835 [00:19:04]file doc_00028836 [00:19:04]remove file /storage/0115/doc_00028836 [00:19:04]file doc_00028837 [00:19:04]remove file /storage/0115/doc_00028837 [00:19:04]file doc_00028838 [00:19:04]remove file /storage/0115/doc_00028838 [00:19:04]file doc_00028839 [00:19:04]remove file /storage/0115/doc_00028839 [00:19:04]file doc_00028840 [00:19:04]remove file /storage/0115/doc_00028840 [00:19:04]file doc_00028841 [00:19:04]remove file /storage/0115/doc_00028841 [00:19:04]file doc_00028842 [00:19:04]remove file /storage/0115/doc_00028842 [00:19:04]file doc_00028843 [00:19:04]remove file /storage/0115/doc_00028843 [00:19:04]file doc_00028844 [00:19:04]remove file /storage/0115/doc_00028844 [00:19:04]file doc_00028845 [00:19:04]remove file /storage/0115/doc_00028845 [00:19:04]file doc_00028846 [00:19:04]remove file /storage/0115/doc_00028846 [00:19:04]file doc_00028847 [00:19:04]remove file /storage/0115/doc_00028847 [00:19:04]file doc_00028848 [00:19:04]remove file /storage/0115/doc_00028848 [00:19:04]file doc_00028849 [00:19:04]remove file /storage/0115/doc_00028849 [00:19:04]file doc_00028850 [00:19:04]remove file /storage/0115/doc_00028850 [00:19:04]file doc_00028851 [00:19:04]remove file /storage/0115/doc_00028851 [00:19:04]file doc_00028852 [00:19:04]remove file /storage/0115/doc_00028852 [00:19:04]file doc_00028853 [00:19:04]remove file /storage/0115/doc_00028853 [00:19:04]file doc_00028854 [00:19:04]remove file /storage/0115/doc_00028854 [00:19:04]file doc_00028855 [00:19:04]remove file /storage/0115/doc_00028855 [00:19:04]file doc_00028856 [00:19:04]remove file /storage/0115/doc_00028856 [00:19:04]file doc_00028857 [00:19:04]remove file /storage/0115/doc_00028857 [00:19:04]file doc_00028858 [00:19:04]remove file /storage/0115/doc_00028858 [00:19:04]file doc_00028859 [00:19:04]remove file /storage/0115/doc_00028859 [00:19:04]file doc_00028860 [00:19:04]remove file /storage/0115/doc_00028860 [00:19:04]file doc_00028861 [00:19:04]remove file /storage/0115/doc_00028861 [00:19:04]file doc_00028862 [00:19:04]remove file /storage/0115/doc_00028862 [00:19:04]file doc_00028863 [00:19:04]remove file /storage/0115/doc_00028863 [00:19:04]file doc_00028864 [00:19:04]remove file /storage/0115/doc_00028864 [00:19:04]file doc_00028865 [00:19:04]remove file /storage/0115/doc_00028865 [00:19:04]file doc_00028866 [00:19:04]remove file /storage/0115/doc_00028866 [00:19:04]file doc_00028867 [00:19:04]remove file /storage/0115/doc_00028867 [00:19:04]file doc_00028868 [00:19:05]remove file /storage/0115/doc_00028868 [00:19:05]file doc_00028869 [00:19:05]remove file /storage/0115/doc_00028869 [00:19:05]file doc_00028870 [00:19:05]remove file /storage/0115/doc_00028870 [00:19:05]file doc_00028871 [00:19:05]remove file /storage/0115/doc_00028871 [00:19:05]file doc_00028872 [00:19:05]remove file /storage/0115/doc_00028872 [00:19:05]file doc_00028873 [00:19:05]remove file /storage/0115/doc_00028873 [00:19:05]file doc_00028874 [00:19:05]remove file /storage/0115/doc_00028874 [00:19:05]file doc_00028875 [00:19:05]remove file /storage/0115/doc_00028875 [00:19:05]file doc_00028876 [00:19:05]remove file /storage/0115/doc_00028876 [00:19:05]file doc_00028877 [00:19:05]remove file /storage/0115/doc_00028877 [00:19:05]file doc_00028878 [00:19:05]remove file /storage/0115/doc_00028878 [00:19:05]file doc_00028879 [00:19:05]remove file /storage/0115/doc_00028879 [00:19:05]file doc_00028880 [00:19:05]remove file /storage/0115/doc_00028880 [00:19:05]file doc_00028881 [00:19:05]remove file /storage/0115/doc_00028881 [00:19:05]file doc_00028882 [00:19:05]remove file /storage/0115/doc_00028882 [00:19:05]file doc_00028883 [00:19:05]remove file /storage/0115/doc_00028883 [00:19:05]file doc_00028884 [00:19:05]remove file /storage/0115/doc_00028884 [00:19:05]file doc_00028885 [00:19:05]remove file /storage/0115/doc_00028885 [00:19:05]file doc_00028886 [00:19:05]remove file /storage/0115/doc_00028886 [00:19:05]file doc_00028887 [00:19:05]remove file /storage/0115/doc_00028887 [00:19:05]file doc_00028888 [00:19:05]remove file /storage/0115/doc_00028888 [00:19:05]file doc_00028889 [00:19:05]remove file /storage/0115/doc_00028889 [00:19:05]file doc_00028890 [00:19:05]remove file /storage/0115/doc_00028890 [00:19:05]file doc_00028891 [00:19:05]remove file /storage/0115/doc_00028891 [00:19:05]file doc_00028892 [00:19:05]remove file /storage/0115/doc_00028892 [00:19:05]file doc_00028893 [00:19:05]remove file /storage/0115/doc_00028893 [00:19:05]file doc_00028894 [00:19:05]remove file /storage/0115/doc_00028894 [00:19:05]file doc_00028895 [00:19:05]remove file /storage/0115/doc_00028895 [00:19:05]file doc_00028896 [00:19:05]remove file /storage/0115/doc_00028896 [00:19:05]file doc_00028897 [00:19:05]remove file /storage/0115/doc_00028897 [00:19:05]file doc_00028898 [00:19:05]remove file /storage/0115/doc_00028898 [00:19:05]file doc_00028899 [00:19:05]remove file /storage/0115/doc_00028899 [00:19:05]file doc_00028900 [00:19:05]remove file /storage/0115/doc_00028900 [00:19:05]file doc_00028901 [00:19:05]remove file /storage/0115/doc_00028901 [00:19:05]file doc_00028902 [00:19:05]remove file /storage/0115/doc_00028902 [00:19:05]file doc_00028903 [00:19:05]remove file /storage/0115/doc_00028903 [00:19:05]file doc_00028904 [00:19:05]remove file /storage/0115/doc_00028904 [00:19:05]file doc_00028905 [00:19:05]remove file /storage/0115/doc_00028905 [00:19:05]file doc_00028906 [00:19:05]remove file /storage/0115/doc_00028906 [00:19:05]file doc_00028907 [00:19:05]remove file /storage/0115/doc_00028907 [00:19:05]file doc_00028908 [00:19:05]remove file /storage/0115/doc_00028908 [00:19:05]file doc_00028909 [00:19:05]remove file /storage/0115/doc_00028909 [00:19:05]file doc_00028910 [00:19:05]remove file /storage/0115/doc_00028910 [00:19:05]file doc_00028911 [00:19:05]remove file /storage/0115/doc_00028911 [00:19:05]file doc_00028912 [00:19:05]remove file /storage/0115/doc_00028912 [00:19:05]file doc_00028913 [00:19:05]remove file /storage/0115/doc_00028913 [00:19:05]file doc_00028914 [00:19:05]remove file /storage/0115/doc_00028914 [00:19:05]file doc_00028915 [00:19:05]remove file /storage/0115/doc_00028915 [00:19:05]file doc_00028916 [00:19:05]remove file /storage/0115/doc_00028916 [00:19:05]file doc_00028917 [00:19:05]remove file /storage/0115/doc_00028917 [00:19:05]file doc_00028918 [00:19:05]remove file /storage/0115/doc_00028918 [00:19:05]file doc_00028919 [00:19:05]remove file /storage/0115/doc_00028919 [00:19:05]file doc_00028920 [00:19:05]remove file /storage/0115/doc_00028920 [00:19:05]file doc_00028921 [00:19:05]remove file /storage/0115/doc_00028921 [00:19:05]file doc_00028922 [00:19:05]remove file /storage/0115/doc_00028922 [00:19:05]file doc_00028923 [00:19:05]remove file /storage/0115/doc_00028923 [00:19:05]file doc_00028924 [00:19:05]remove file /storage/0115/doc_00028924 [00:19:05]file doc_00028925 [00:19:05]remove file /storage/0115/doc_00028925 [00:19:05]file doc_00028926 [00:19:05]remove file /storage/0115/doc_00028926 [00:19:05]file doc_00028927 [00:19:05]remove file /storage/0115/doc_00028927 [00:19:05]file doc_00028928 [00:19:05]remove file /storage/0115/doc_00028928 [00:19:05]file doc_00028929 [00:19:05]remove file /storage/0115/doc_00028929 [00:19:05]file doc_00028930 [00:19:05]remove file /storage/0115/doc_00028930 [00:19:05]file doc_00028931 [00:19:05]remove file /storage/0115/doc_00028931 [00:19:05]file doc_00028932 [00:19:05]remove file /storage/0115/doc_00028932 [00:19:05]file doc_00028933 [00:19:05]remove file /storage/0115/doc_00028933 [00:19:05]file doc_00028934 [00:19:05]remove file /storage/0115/doc_00028934 [00:19:05]file doc_00028935 [00:19:05]remove file /storage/0115/doc_00028935 [00:19:05]file doc_00028936 [00:19:05]remove file /storage/0115/doc_00028936 [00:19:05]file doc_00028937 [00:19:05]remove file /storage/0115/doc_00028937 [00:19:05]file doc_00028938 [00:19:05]remove file /storage/0115/doc_00028938 [00:19:05]file doc_00028939 [00:19:05]remove file /storage/0115/doc_00028939 [00:19:05]file doc_00028940 [00:19:05]remove file /storage/0115/doc_00028940 [00:19:05]file doc_00028941 [00:19:05]remove file /storage/0115/doc_00028941 [00:19:05]file doc_00028942 [00:19:05]remove file /storage/0115/doc_00028942 [00:19:05]file doc_00028943 [00:19:05]remove file /storage/0115/doc_00028943 [00:19:05]file doc_00028944 [00:19:05]remove file /storage/0115/doc_00028944 [00:19:05]file doc_00028945 [00:19:05]remove file /storage/0115/doc_00028945 [00:19:05]file doc_00028946 [00:19:05]remove file /storage/0115/doc_00028946 [00:19:05]file doc_00028947 [00:19:05]remove file /storage/0115/doc_00028947 [00:19:05]file doc_00028948 [00:19:05]remove file /storage/0115/doc_00028948 [00:19:05]file doc_00028949 [00:19:05]remove file /storage/0115/doc_00028949 [00:19:05]file doc_00028950 [00:19:05]remove file /storage/0115/doc_00028950 [00:19:05]file doc_00028951 [00:19:05]remove file /storage/0115/doc_00028951 [00:19:05]file doc_00028952 [00:19:05]remove file /storage/0115/doc_00028952 [00:19:05]file doc_00028953 [00:19:05]remove file /storage/0115/doc_00028953 [00:19:05]file doc_00028954 [00:19:05]remove file /storage/0115/doc_00028954 [00:19:05]file doc_00028955 [00:19:05]remove file /storage/0115/doc_00028955 [00:19:05]file doc_00028956 [00:19:05]remove file /storage/0115/doc_00028956 [00:19:05]file doc_00028957 [00:19:05]remove file /storage/0115/doc_00028957 [00:19:05]file doc_00028958 [00:19:05]remove file /storage/0115/doc_00028958 [00:19:05]file doc_00028959 [00:19:05]remove file /storage/0115/doc_00028959 [00:19:05]file doc_00028960 [00:19:05]remove file /storage/0115/doc_00028960 [00:19:05]file doc_00028961 [00:19:05]remove file /storage/0115/doc_00028961 [00:19:05]file doc_00028962 [00:19:05]remove file /storage/0115/doc_00028962 [00:19:05]file doc_00028963 [00:19:05]remove file /storage/0115/doc_00028963 [00:19:05]file doc_00028964 [00:19:05]remove file /storage/0115/doc_00028964 [00:19:05]file doc_00028965 [00:19:05]remove file /storage/0115/doc_00028965 [00:19:05]file doc_00028966 [00:19:05]remove file /storage/0115/doc_00028966 [00:19:05]file doc_00028967 [00:19:05]remove file /storage/0115/doc_00028967 [00:19:05]file doc_00028968 [00:19:05]remove file /storage/0115/doc_00028968 [00:19:05]file doc_00028969 [00:19:05]remove file /storage/0115/doc_00028969 [00:19:05]file doc_00028970 [00:19:05]remove file /storage/0115/doc_00028970 [00:19:05]file doc_00028971 [00:19:05]remove file /storage/0115/doc_00028971 [00:19:05]file doc_00028972 [00:19:05]remove file /storage/0115/doc_00028972 [00:19:05]file doc_00028973 [00:19:05]remove file /storage/0115/doc_00028973 [00:19:05]file doc_00028974 [00:19:05]remove file /storage/0115/doc_00028974 [00:19:05]file doc_00028975 [00:19:05]remove file /storage/0115/doc_00028975 [00:19:05]file doc_00028976 [00:19:05]remove file /storage/0115/doc_00028976 [00:19:05]file doc_00028977 [00:19:05]remove file /storage/0115/doc_00028977 [00:19:05]file doc_00028978 [00:19:05]remove file /storage/0115/doc_00028978 [00:19:05]file doc_00028979 [00:19:05]remove file /storage/0115/doc_00028979 [00:19:05]file doc_00028980 [00:19:05]remove file /storage/0115/doc_00028980 [00:19:05]file doc_00028981 [00:19:05]remove file /storage/0115/doc_00028981 [00:19:05]file doc_00028982 [00:19:05]remove file /storage/0115/doc_00028982 [00:19:05]file doc_00028983 [00:19:05]remove file /storage/0115/doc_00028983 [00:19:05]file doc_00028984 [00:19:05]remove file /storage/0115/doc_00028984 [00:19:05]file doc_00028985 [00:19:05]remove file /storage/0115/doc_00028985 [00:19:05]file doc_00028986 [00:19:05]remove file /storage/0115/doc_00028986 [00:19:05]file doc_00028987 [00:19:05]remove file /storage/0115/doc_00028987 [00:19:05]file doc_00028988 [00:19:05]remove file /storage/0115/doc_00028988 [00:19:05]file doc_00028989 [00:19:05]remove file /storage/0115/doc_00028989 [00:19:05]file doc_00028990 [00:19:05]remove file /storage/0115/doc_00028990 [00:19:05]file doc_00028991 [00:19:05]remove file /storage/0115/doc_00028991 [00:19:05]file doc_00028992 [00:19:05]remove file /storage/0115/doc_00028992 [00:19:05]file doc_00028993 [00:19:05]remove file /storage/0115/doc_00028993 [00:19:05]file doc_00028994 [00:19:05]remove file /storage/0115/doc_00028994 [00:19:05]file doc_00028995 [00:19:05]remove file /storage/0115/doc_00028995 [00:19:05]file doc_00028996 [00:19:05]remove file /storage/0115/doc_00028996 [00:19:05]file doc_00028997 [00:19:05]remove file /storage/0115/doc_00028997 [00:19:05]file doc_00028998 [00:19:05]remove file /storage/0115/doc_00028998 [00:19:05]file doc_00028999 [00:19:05]remove file /storage/0115/doc_00028999 [00:19:05]file doc_00029000 [00:19:05]remove file /storage/0115/doc_00029000 [00:19:05]file doc_00029001 [00:19:05]remove file /storage/0115/doc_00029001 [00:19:05]file doc_00029002 [00:19:05]remove file /storage/0115/doc_00029002 [00:19:05]file doc_00029003 [00:19:05]remove file /storage/0115/doc_00029003 [00:19:05]file doc_00029004 [00:19:05]remove file /storage/0115/doc_00029004 [00:19:05]file doc_00029005 [00:19:06]remove file /storage/0115/doc_00029005 [00:19:06]file doc_00029006 [00:19:06]remove file /storage/0115/doc_00029006 [00:19:06]file doc_00029007 [00:19:06]remove file /storage/0115/doc_00029007 [00:19:06]file doc_00029008 [00:19:06]remove file /storage/0115/doc_00029008 [00:19:06]file doc_00029009 [00:19:06]remove file /storage/0115/doc_00029009 [00:19:06]file doc_00029010 [00:19:06]remove file /storage/0115/doc_00029010 [00:19:06]file doc_00029011 [00:19:06]remove file /storage/0115/doc_00029011 [00:19:06]file doc_00029012 [00:19:06]remove file /storage/0115/doc_00029012 [00:19:06]file doc_00029013 [00:19:06]remove file /storage/0115/doc_00029013 [00:19:06]file doc_00029014 [00:19:06]remove file /storage/0115/doc_00029014 [00:19:06]file doc_00029015 [00:19:06]remove file /storage/0115/doc_00029015 [00:19:06]file doc_00029016 [00:19:06]remove file /storage/0115/doc_00029016 [00:19:06]file doc_00029017 [00:19:06]remove file /storage/0115/doc_00029017 [00:19:06]file doc_00029018 [00:19:06]remove file /storage/0115/doc_00029018 [00:19:06]file doc_00029019 [00:19:06]remove file /storage/0115/doc_00029019 [00:19:06]file doc_00029020 [00:19:06]remove file /storage/0115/doc_00029020 [00:19:06]file doc_00029021 [00:19:06]remove file /storage/0115/doc_00029021 [00:19:06]file doc_00029022 [00:19:06]remove file /storage/0115/doc_00029022 [00:19:06]file doc_00029023 [00:19:06]remove file /storage/0115/doc_00029023 [00:19:06]file doc_00029024 [00:19:06]remove file /storage/0115/doc_00029024 [00:19:06]file doc_00029025 [00:19:06]remove file /storage/0115/doc_00029025 [00:19:06]file doc_00029026 [00:19:06]remove file /storage/0115/doc_00029026 [00:19:06]file doc_00029027 [00:19:06]remove file /storage/0115/doc_00029027 [00:19:06]file doc_00029028 [00:19:06]remove file /storage/0115/doc_00029028 [00:19:06]file doc_00029029 [00:19:06]remove file /storage/0115/doc_00029029 [00:19:06]file doc_00029030 [00:19:06]remove file /storage/0115/doc_00029030 [00:19:06]file doc_00029031 [00:19:06]remove file /storage/0115/doc_00029031 [00:19:06]file doc_00029032 [00:19:06]remove file /storage/0115/doc_00029032 [00:19:06]file doc_00029033 [00:19:06]remove file /storage/0115/doc_00029033 [00:19:06]file doc_00029034 [00:19:06]remove file /storage/0115/doc_00029034 [00:19:06]file doc_00029035 [00:19:06]remove file /storage/0115/doc_00029035 [00:19:06]file doc_00029036 [00:19:06]remove file /storage/0115/doc_00029036 [00:19:06]file doc_00029037 [00:19:06]remove file /storage/0115/doc_00029037 [00:19:06]file doc_00029038 [00:19:06]remove file /storage/0115/doc_00029038 [00:19:06]file doc_00029039 [00:19:06]remove file /storage/0115/doc_00029039 [00:19:06]file doc_00029040 [00:19:06]remove file /storage/0115/doc_00029040 [00:19:06]file doc_00029041 [00:19:06]remove file /storage/0115/doc_00029041 [00:19:06]file doc_00029042 [00:19:06]remove file /storage/0115/doc_00029042 [00:19:06]file doc_00029043 [00:19:06]remove file /storage/0115/doc_00029043 [00:19:06]file doc_00029044 [00:19:06]remove file /storage/0115/doc_00029044 [00:19:06]file doc_00029045 [00:19:06]remove file /storage/0115/doc_00029045 [00:19:06]file doc_00029046 [00:19:06]remove file /storage/0115/doc_00029046 [00:19:06]file doc_00029047 [00:19:06]remove file /storage/0115/doc_00029047 [00:19:06]file doc_00029048 [00:19:06]remove file /storage/0115/doc_00029048 [00:19:06]file doc_00029049 [00:19:06]remove file /storage/0115/doc_00029049 [00:19:06]file doc_00029050 [00:19:06]remove file /storage/0115/doc_00029050 [00:19:06]file doc_00029051 [00:19:06]remove file /storage/0115/doc_00029051 [00:19:06]file doc_00029052 [00:19:06]remove file /storage/0115/doc_00029052 [00:19:06]file doc_00029053 [00:19:06]remove file /storage/0115/doc_00029053 [00:19:06]file doc_00029054 [00:19:06]remove file /storage/0115/doc_00029054 [00:19:06]file doc_00029055 [00:19:06]remove file /storage/0115/doc_00029055 [00:19:06]file doc_00029056 [00:19:06]remove file /storage/0115/doc_00029056 [00:19:06]file doc_00029057 [00:19:06]remove file /storage/0115/doc_00029057 [00:19:06]file doc_00029058 [00:19:06]remove file /storage/0115/doc_00029058 [00:19:06]file doc_00029059 [00:19:06]remove file /storage/0115/doc_00029059 [00:19:06]file doc_00029060 [00:19:06]remove file /storage/0115/doc_00029060 [00:19:06]file doc_00029061 [00:19:06]remove file /storage/0115/doc_00029061 [00:19:06]file doc_00029062 [00:19:06]remove file /storage/0115/doc_00029062 [00:19:06]file doc_00029063 [00:19:06]remove file /storage/0115/doc_00029063 [00:19:06]file doc_00029064 [00:19:06]remove file /storage/0115/doc_00029064 [00:19:06]file doc_00029065 [00:19:06]remove file /storage/0115/doc_00029065 [00:19:06]file doc_00029066 [00:19:06]remove file /storage/0115/doc_00029066 [00:19:06]file doc_00029067 [00:19:06]remove file /storage/0115/doc_00029067 [00:19:06]file doc_00029068 [00:19:06]remove file /storage/0115/doc_00029068 [00:19:06]file doc_00029069 [00:19:06]remove file /storage/0115/doc_00029069 [00:19:06]file doc_00029070 [00:19:06]remove file /storage/0115/doc_00029070 [00:19:06]file doc_00029071 [00:19:06]remove file /storage/0115/doc_00029071 [00:19:06]file doc_00029072 [00:19:06]remove file /storage/0115/doc_00029072 [00:19:06]file doc_00029073 [00:19:06]remove file /storage/0115/doc_00029073 [00:19:06]file doc_00029074 [00:19:06]remove file /storage/0115/doc_00029074 [00:19:06]file doc_00029075 [00:19:06]remove file /storage/0115/doc_00029075 [00:19:06]file doc_00029076 [00:19:06]remove file /storage/0115/doc_00029076 [00:19:06]file doc_00029077 [00:19:06]remove file /storage/0115/doc_00029077 [00:19:06]file doc_00029078 [00:19:06]remove file /storage/0115/doc_00029078 [00:19:06]file doc_00029079 [00:19:06]remove file /storage/0115/doc_00029079 [00:19:06]file doc_00029080 [00:19:06]remove file /storage/0115/doc_00029080 [00:19:06]file doc_00029081 [00:19:06]remove file /storage/0115/doc_00029081 [00:19:06]file doc_00029082 [00:19:06]remove file /storage/0115/doc_00029082 [00:19:06]file doc_00029083 [00:19:06]remove file /storage/0115/doc_00029083 [00:19:06]file doc_00029084 [00:19:06]remove file /storage/0115/doc_00029084 [00:19:06]file doc_00029085 [00:19:06]remove file /storage/0115/doc_00029085 [00:19:06]file doc_00029086 [00:19:06]remove file /storage/0115/doc_00029086 [00:19:06]file doc_00029087 [00:19:06]remove file /storage/0115/doc_00029087 [00:19:06]file doc_00029088 [00:19:06]remove file /storage/0115/doc_00029088 [00:19:06]file doc_00029089 [00:19:06]remove file /storage/0115/doc_00029089 [00:19:06]remove dir /storage/0115 [00:19:06]ProcessDocumentItem done err = 0, tmpTLVsize=253 [00:19:06]tlvbuf is 0139D9D0 [00:19:06]SAM_PROTO_ClearQueue [00:19:06]wFMCommunicate request_size=4 [00:19:06]MH_SAM_APDU [00:19:06]CAPDU: 80 09 00 00 [00:19:06]Write to MH i2c: E2 08 00 26 70 80 09 00 00 00 00 00 00 08 [00:19:06]Write i2c OK [00:19:06]MH_I2C_Read... [00:19:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:19:06]Read from MH i2c: E2 [00:19:06]MH_I2C_Read... [00:19:06]Read from MH i2c: E2 03 00 [00:19:06]MH_I2C_Read... [00:19:06]Read from MH i2c: E2 03 00 26 70 00 90 00 0A [00:19:06]RAPDU: 90 00 [00:19:06]wFMCommunicate OK [00:19:06]SAM_PROTO_ClearQueue done [00:19:06]KKMCreateOFDPacket [00:19:06]OFDProtocolAddRootSTLVToBuf [00:19:06]FM_MakeSignedData [00:19:06]FM_MakeSignedData [00:19:06]SAM_PROTO_SignData [00:19:06]wFMCommunicate request_size=4 [00:19:06]MH_SAM_APDU [00:19:06]CAPDU: 80 0D 01 02 [00:19:06]Write to MH i2c: E2 08 00 27 70 80 0D 01 02 00 00 00 00 10 [00:19:06]Write i2c OK [00:19:06]MH_I2C_Read... [00:19:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:19:06]Read from MH i2c: E2 [00:19:06]MH_I2C_Read... [00:19:06]Read from MH i2c: E2 03 00 [00:19:06]MH_I2C_Read... [00:19:06]Read from MH i2c: E2 03 00 27 70 00 90 00 0B [00:19:06]RAPDU: 90 00 [00:19:06]wFMCommunicate OK [00:19:06]wFMCommunicate request_size=255 [00:19:06]MH_SAM_APDU [00:19:06]CAPDU: 80 0D 02 02 FA 02 00 FD 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 18 00 D0 90 D0 BB D0 B8 D0 BA D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 2E 20 D0 94 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 FF 20 1B 66 0E 04 04 00 74 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A2 71 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 [00:19:06]Write to MH i2c: E2 02 01 28 70 80 0D 02 02 FA 00 02 00 FD 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 18 00 D0 90 D0 BB D0 B8 D0 BA D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 2E 20 D0 94 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 FF 20 1B 66 0E 04 04 00 74 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A2 71 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 00 2D [00:19:06]Write i2c OK [00:19:06]MH_I2C_Read... [00:19:06]OFD Sender: No OFD packet to send [00:19:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:07]Read from MH i2c: E2 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: E2 03 00 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: E2 03 00 28 70 00 90 00 0C [00:19:07]RAPDU: 90 00 [00:19:07]wFMCommunicate OK [00:19:07]wFMCommunicate request_size=12 [00:19:07]MH_SAM_APDU [00:19:07]CAPDU: 80 0D 02 02 07 00 59 FA 37 5C 91 BE [00:19:07]Write to MH i2c: E2 0F 00 29 70 80 0D 02 02 07 00 00 59 FA 37 5C 91 BE 00 00 56 [00:19:07]Write i2c OK [00:19:07]MH_I2C_Read... [00:19:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:07]Read from MH i2c: E2 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: E2 03 00 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: E2 03 00 29 70 00 90 00 0D [00:19:07]RAPDU: 90 00 [00:19:07]wFMCommunicate OK [00:19:07]wFMCommunicate request_size=4 [00:19:07]MH_SAM_APDU [00:19:07]CAPDU: 80 0D 03 02 [00:19:07]Write to MH i2c: E2 08 00 2A 70 80 0D 03 02 00 00 00 00 15 [00:19:07]Write i2c OK [00:19:07]MH_I2C_Read... [00:19:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:19:07]Read from MH i2c: E2 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: E2 0B 00 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: E2 0B 00 2A 70 00 B8 9C 43 61 80 72 AE 04 90 00 B2 [00:19:07]RAPDU: B8 9C 43 61 80 72 AE 04 90 00 [00:19:07]wFMCommunicate OK [00:19:07]SAM_PROTO_SignData done [00:19:07]FM_MakeSignedData done [00:19:07]CreateOFDProtocolMessage [00:19:07]wFMCommunicate request_size=4 [00:19:07]MH_SAM_APDU [00:19:07]CAPDU: 80 11 00 00 [00:19:07]Write to MH i2c: E2 08 00 2B 70 80 11 00 00 00 00 00 00 15 [00:19:07]Write i2c OK [00:19:07]MH_I2C_Read... [00:19:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:07]Read from MH i2c: E2 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: E2 17 00 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: E2 17 00 2B 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 64 [00:19:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:19:07]wFMCommunicate OK [00:19:07]CreateOFDProtocolMessage done [00:19:07]OFDSenderStorePacket 29090 [00:19:07]StoreOFDPacket docnum=29090 [00:19:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 11 01 00 00 10 4F 09 01 72 2F 5A 02 01 00 02 00 FD 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 18 00 D0 90 D0 BB D0 B8 D0 BA D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 2E 20 D0 94 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 FF 20 1B 66 0E 04 04 00 74 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A2 71 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 59 FA 37 5C 91 BE B8 9C 43 61 80 72 AE 04 [00:19:07]CheckFolder [00:19:07]dirname=/storage/ofd_packets [00:19:07]CheckFolder done [00:19:07]ProducePacketName [00:19:07]name=ofd_packets/00029090 [00:19:07]NVStorageSaveData ofd_packets/00029090 [00:19:07]File name is /storage/ofd_packets/00029090 [00:19:07]Write 303 bytes [00:19:07]NVStorageSaveData done [00:19:07]OFDSenderStorePacket done [00:19:07]KKMCreateOFDPacket done [00:19:07]NVStorageSaveData kkm_last_timestamp [00:19:07]File name is /storage/kkm_last_timestamp [00:19:07]Write 4 bytes [00:19:07]NVStorageSaveData done [00:19:07]ExternCall_PrintAddStr [00:19:07]wPrintStart [00:19:07]Write to MH i2c: 01 00 00 2C 70 9C [00:19:07]Write i2c OK [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: 01 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: 01 07 00 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: 01 07 00 2C 70 00 00 00 00 00 FF 0F B1 [00:19:07]RasterBufferAndPrint [00:19:07]line Отчет об открытии смены [00:19:07]line ФФД: 1.0 [00:19:07]line ИНН: 02508201610067 [00:19:07]line Кассир: Аликбаева. Д. [00:19:07]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:19:07]line Место: АЗС № 108 "Партнер Нефть" [00:19:07]line 14.04.2024 00:19 [00:19:07]line Смена: 116 [00:19:07]line РНМ: 0000138879044617 [00:19:07]line ЗНМ: 0300000027 [00:19:07]line ФД: 29090 [00:19:07]line ФМ: 0000000000963154 [00:19:07]line ФПД: 98931205509566 [00:19:07]written 0, free lines is 4095 [00:19:07]OFD Sender: Processing packet 29090 [packets to send 8, broken 7] [00:19:07]ProducePacketName [00:19:07]name=ofd_packets/00029090 [00:19:07]OFD Sender: To server: pG, [00:19:07]CommunicateWithHost lk.salyk.kg:30040 [00:19:07]ConnectInit lk.salyk.kg [00:19:07]Connected sock=11 [00:19: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 31 35 34 11 01 00 00 10 4F 09 01 72 2F 5A 02 01 00 02 00 FD 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 18 00 D0 90 D0 BB D0 B8 D0 BA D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 2E 20 D0 94 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A0 D0 BE D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 BA D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 38 31 20 D0 90 2C 20 34 32 2E 38 36 33 30 37 39 2C 20 37 34 2E 33 31 38 38 35 34 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 FF 20 1B 66 0E 04 04 00 74 00 00 00 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A2 71 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 35 04 06 00 59 FA 37 5C 91 BE B8 9C 43 61 80 72 AE 04 [00:19:07]Write to MH i2c: 01 00 00 3E 70 AE [00:19:07]Write i2c OK [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: 01 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: 01 07 00 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: 01 07 00 3E 70 00 00 00 00 00 57 0E 1A [00:19:07]RasterBufferAndPrint [00:19:07]line [00:19:07]line [00:19:07]line [00:19:07]line [00:19:07]line [00:19:07]written 0, free lines is 3681 [00:19:07]MH_Cut [00:19:07]Write to MH i2c: D1 01 00 45 70 01 87 [00:19:07]Write i2c OK [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: D1 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: D1 01 00 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: D1 01 00 45 70 00 86 [00:19:07]Write to MH i2c: 01 00 00 46 70 B6 [00:19:07]Write i2c OK [00:19:07]MH_I2C_Read... [00:19:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 FD F4 47 00 3D 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 31 35 34 10 04 04 00 A2 71 00 00 F4 03 04 00 A6 CB 1A 66 B6 04 01 00 00 5D 1B A6 81 87 44 F5 23 [00:19:07]CommunicateWithHost err = 0 [00:19:07]CheckOFDResponse [00:19:07]1017 (14) - 77093643461234 [00:19:07]1041 (16) - 0000000000963154 [00:19:07]1040 (4) - 29090 [00:19:07]1012 (4) - 13.04.2024 18:15 [00:19:07]1206 (1) - 0 [00:19:07]OFD Sender: Remove packet 29090 [00:19:07]ProducePacketName [00:19:07]name=ofd_packets/00029090 [00:19:07]NVStorageDeleteData [00:19:08]*** Cut start [00:19:08]*** Partial cut [00:19:08]*** CUTSNS_PIN = 1 [00:19:08]*** CUTSNS_PIN = 0 [00:19:08]OFD Sender: No OFD packet to send [00:19:08]*** Brake cut motor [00:19:08]Read from MH i2c: 01 [00:19:08]MH_I2C_Read... [00:19:08]*** Stop cut motor [00:19:08]*** Cut end [00:19:08]Read from MH i2c: 01 07 00 [00:19:08]MH_I2C_Read... [00:19:08]Read from MH i2c: 01 07 00 46 70 00 00 00 00 00 FF 0F CB [00:19:08]process_action open_shift done [00:19:08]requested_data is exist [00:19:08]produce_requested_data [00:19:08]requested_item fd.num is exist - process it [00:19:08]SAM_PROTO_GetFieldsCounters [00:19:08]wFMCommunicate request_size=4 [00:19:08]MH_SAM_APDU [00:19:08]CAPDU: 80 13 00 00 [00:19:08]Write to MH i2c: E2 08 00 47 70 80 13 00 00 00 00 00 00 33 [00:19:08]Write i2c OK [00:19:08]MH_I2C_Read... [00:19:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:08]Read from MH i2c: E2 [00:19:08]MH_I2C_Read... [00:19:08]Read from MH i2c: E2 62 00 [00:19:08]MH_I2C_Read... [00:19:08]Read from MH i2c: E2 62 00 47 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A2 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [00:19: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A2 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:08]wFMCommunicate OK [00:19:08]SAM_PROTO_GetFieldsCounters done [00:19:08]requested_item shift.num is exist - process it [00:19:08]requested_item shift.opened is exist - process it [00:19:08]req_shift_opened [00:19:08]FM_GetShiftState [00:19:08]SAM_PROTO_GetShiftState [00:19:08]wFMCommunicate request_size=4 [00:19:08]MH_SAM_APDU [00:19:08]CAPDU: 80 13 01 00 [00:19:08]Write to MH i2c: E2 08 00 48 70 80 13 01 00 00 00 00 00 35 [00:19:08]Write i2c OK [00:19:08]MH_I2C_Read... [00:19:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:08]Read from MH i2c: E2 [00:19:08]MH_I2C_Read... [00:19:08]Read from MH i2c: E2 0E 00 [00:19:08]MH_I2C_Read... [00:19:08]Read from MH i2c: E2 0E 00 48 70 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 E1 [00:19:08]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [00:19:08]wFMCommunicate OK [00:19:08]SAM_PROTO_GetShiftState done [00:19:08]FM_GetShiftState done [00:19:08]req_shift_opened done [00:19:08]requested_item shift.open_date is exist - process it [00:19:08]req_shift_open_date [00:19:08]req_shift_open_date done [00:19:08]produce_requested_data done [00:19:08]produce_requested_data return {"fd.num":29090,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [00:19:08]process_action_free open_shift [00:19:08]json_value_free [00:19:08]json_value_free done [00:19:08]process_json_proto returns [00:19:08]Send response to host [00:19:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":29090,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [00:19:08]free response buf [00:19:08]execute_script done [00:19:08]execute_script returns [00:19:08]free content buf [00:19:08]Sock 7.Close socket [00:19:08]Sock 7.Thread stoped [00:19:08]accept exits with 9 [00:19:08]New connection [00:19:08]New thread 3066928484 created [00:19:08]Thread 3066785124 joined [00:19:08]Waiting for new connection... [00:19:08] Sock 9.Parse request [00:19:08]Sock 9.Check first char [00:19:08]Sock 9.First char is OK [00:19:08]request: POST /json_proto HTTP/1.0 [00:19:08]Method: POST [00:19:08]URL: /json_proto [00:19:08]Method is POST - this is cgi request [00:19:08]url: /json_proto [00:19:08]query_string will be loaded in cgi processing [00:19:08]execute_cgi json_proto POST (null) [00:19:08]execute_cgi path=json_proto method=POST [00:19:08]POST find Content-Length [00:19:08]Host: 172.17.33.3:8080 [00:19:08]Content-Length: 331 [00:19:08]Content-Type: application/json [00:19:08] [00:19:08]POST finish read [00:19:08]Found Content-Length = 331 [00:19:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:08]execute_script... [00:19:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:08]POST & json_proto [00:19:08]process_json_proto [00:19:08]json parsed OK: [00:19:08]protocol is kg_v1.0 [00:19:08]action value=get_value [00:19:08]process_action get_value [00:19:08]cmd_get_value [00:19:08]process_action get_value done [00:19:09]requested_data is exist [00:19:09]produce_requested_data [00:19:09]requested_item fm.sale.total is exist - process it [00:19:09]SAM_PROTO_GetFMData [00:19:09]wFMCommunicate request_size=4 [00:19:09]MH_SAM_APDU [00:19:09]CAPDU: 80 13 03 00 [00:19:09]Write to MH i2c: E2 08 00 49 70 80 13 03 00 00 00 00 00 38 [00:19:09]Write i2c OK [00:19:09]MH_I2C_Read... [00:19:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:09]Read from MH i2c: E2 [00:19:09]MH_I2C_Read... [00:19:09]Read from MH i2c: E2 FD 00 [00:19:09]MH_I2C_Read... [00:19:09]Read from MH i2c: E2 FD 00 49 70 00 C3 04 85 04 BF 04 6E 04 04 00 BA 70 00 00 69 04 A1 00 6F 04 04 00 5A 6D 00 00 B1 04 04 00 87 CF 0A B2 70 04 04 00 10 87 51 71 72 04 04 00 77 48 B9 40 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 BC 2D E9 12 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 76 65 93 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 9C 00 6F 04 04 00 60 03 00 00 B1 04 04 00 18 17 A1 0C 70 04 04 00 18 17 A1 0C 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 17 60 57 01 EF 03 09 00 F6 90 00 9B [00:19:09]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 BA 70 00 00 69 04 A1 00 6F 04 04 00 5A 6D 00 00 B1 04 04 00 87 CF 0A B2 70 04 04 00 10 87 51 71 72 04 04 00 77 48 B9 40 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 BC 2D E9 12 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 76 65 93 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 9C 00 6F 04 04 00 60 03 00 00 B1 04 04 00 18 17 A1 0C 70 04 04 00 18 17 A1 0C 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 17 60 57 01 EF 03 09 00 F6 90 00 [00:19:09]wFMCommunicate OK [00:19:09]wFMCommunicate request_size=4 [00:19:09]MH_SAM_APDU [00:19:09]CAPDU: 80 17 00 00 [00:19:09]Write to MH i2c: E2 08 00 4A 70 80 17 00 00 00 00 00 00 3A [00:19:09]Write i2c OK [00:19:09]MH_I2C_Read... [00:19:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:09]Read from MH i2c: E2 [00:19:09]MH_I2C_Read... [00:19:09]Read from MH i2c: E2 FD 00 [00:19:09]MH_I2C_Read... [00:19:09]Read from MH i2c: E2 FD 00 4A 70 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 9C 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 99 [00:19:09]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 E7 9C 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 [00:19:09]wFMCommunicate OK [00:19:09]wFMCommunicate request_size=4 [00:19:09]MH_SAM_APDU [00:19:09]CAPDU: 80 17 00 00 [00:19:09]Write to MH i2c: E2 08 00 4B 70 80 17 00 00 00 00 00 00 3B [00:19:09]Write i2c OK [00:19:09]MH_I2C_Read... [00:19:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:10]Read from MH i2c: E2 [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: E2 FD 00 [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: E2 FD 00 4B 70 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 59 [00:19:10]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:10]wFMCommunicate OK [00:19:10]wFMCommunicate request_size=4 [00:19:10]MH_SAM_APDU [00:19:10]CAPDU: 80 17 00 00 [00:19:10]Write to MH i2c: E2 08 00 4C 70 80 17 00 00 00 00 00 00 3C [00:19:10]Write i2c OK [00:19:10]MH_I2C_Read... [00:19:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:10]Read from MH i2c: E2 [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: E2 FD 00 [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: E2 FD 00 4C 70 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 AE [00:19:10]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:19:10]wFMCommunicate OK [00:19:10]wFMCommunicate request_size=4 [00:19:10]MH_SAM_APDU [00:19:10]CAPDU: 80 17 00 00 [00:19:10]Write to MH i2c: E2 08 00 4D 70 80 17 00 00 00 00 00 00 3D [00:19:10]Write i2c OK [00:19:10]MH_I2C_Read... [00:19:11]Read from MH i2c: E2 [00:19:11]MH_I2C_Read... [00:19:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [00:19:11]Read from MH i2c: E2 E0 00 [00:19:11]MH_I2C_Read... [00:19:11]Read from MH i2c: E2 E0 00 4D 70 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 27 [00:19:11]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:11]wFMCommunicate OK [00:19:11]SAM_PROTO_GetFMData done [00:19:11]requested_item fm.sale_refund.total is exist - process it [00:19:11]requested_item fm.buy.total is exist - process it [00:19:11]requested_item shift.sale.total is exist - process it [00:19:11]SAM_PROTO_GetShiftData [00:19:11]wFMCommunicate request_size=4 [00:19:11]MH_SAM_APDU [00:19:11]CAPDU: 80 13 02 00 [00:19:11]Write to MH i2c: E2 08 00 4E 70 80 13 02 00 00 00 00 00 3C [00:19:11]Write i2c OK [00:19:11]MH_I2C_Read... [00:19:11]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:11]Read from MH i2c: E2 [00:19:11]MH_I2C_Read... [00:19:11]Read from MH i2c: E2 FD 00 [00:19:11]MH_I2C_Read... [00:19:11]Read from MH i2c: E2 FD 00 4E 70 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 AF [00:19:11]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:19:11]wFMCommunicate OK [00:19:11]wFMCommunicate request_size=4 [00:19:11]MH_SAM_APDU [00:19:11]CAPDU: 80 17 00 00 [00:19:11]Write to MH i2c: E2 08 00 4F 70 80 17 00 00 00 00 00 00 3F [00:19:11]Write i2c OK [00:19:11]MH_I2C_Read... [00:19:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:12]Read from MH i2c: E2 [00:19:12]MH_I2C_Read... [00:19:12]Read from MH i2c: E2 FD 00 [00:19:12]MH_I2C_Read... [00:19:12]Read from MH i2c: E2 FD 00 4F 70 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 47 [00:19:12]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:19:12]wFMCommunicate OK [00:19:12]wFMCommunicate request_size=4 [00:19:12]MH_SAM_APDU [00:19:12]CAPDU: 80 17 00 00 [00:19:12]Write to MH i2c: E2 08 00 50 70 80 17 00 00 00 00 00 00 40 [00:19:12]Write i2c OK [00:19:12]MH_I2C_Read... [00:19:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:12]Read from MH i2c: E2 [00:19:12]MH_I2C_Read... [00:19:12]Read from MH i2c: E2 FD 00 [00:19:12]MH_I2C_Read... [00:19:12]Read from MH i2c: E2 FD 00 50 70 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 12 [00:19:12]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:19:12]wFMCommunicate OK [00:19:12]wFMCommunicate request_size=4 [00:19:12]MH_SAM_APDU [00:19:12]CAPDU: 80 17 00 00 [00:19:12]Write to MH i2c: E2 08 00 51 70 80 17 00 00 00 00 00 00 41 [00:19:12]Write i2c OK [00:19:12]MH_I2C_Read... [00:19:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:13]Read from MH i2c: E2 [00:19:13]MH_I2C_Read... [00:19:13]Read from MH i2c: E2 FD 00 [00:19:13]MH_I2C_Read... [00:19:13]Read from MH i2c: E2 FD 00 51 70 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 B3 [00:19:13]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 OFD Sender: No OFD packet to send [00:19:13]01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:19:13]wFMCommunicate OK [00:19:13]wFMCommunicate request_size=4 [00:19:13]MH_SAM_APDU [00:19:13]CAPDU: 80 17 00 00 [00:19:13]Write to MH i2c: E2 08 00 52 70 80 17 00 00 00 00 00 00 42 [00:19:13]Write i2c OK [00:19:13]MH_I2C_Read... [00:19:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:19:13]Read from MH i2c: E2 [00:19:13]MH_I2C_Read... [00:19:13]Read from MH i2c: E2 BD 00 [00:19:13]MH_I2C_Read... [00:19:13]Read from MH i2c: E2 BD 00 52 70 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 28 [00:19:13]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:13]wFMCommunicate OK [00:19:13]SAM_PROTO_GetShiftData done [00:19:13]requested_item shift.sale.total_cash is exist - process it [00:19:13]requested_item shift.sale_refund.total is exist - process it [00:19:13]requested_item shift.sale_refund.total_cash is exist - process it [00:19:13]requested_item shift.buy.total is exist - process it [00:19:13]requested_item shift.buy.total_cash is exist - process it [00:19:13]produce_requested_data done [00:19:13]produce_requested_data return {"fm.sale.total":29870529.35,"fm.sale_refund.total":2118838.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:19:13]process_action_free get_value [00:19:13]json_value_free [00:19:13]json_value_free done [00:19:13]process_json_proto returns [00:19:13]Send response to host [00:19:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":29870529.35,"fm.sale_refund.total":2118838.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:19:13]free response buf [00:19:13]execute_script done [00:19:13]execute_script returns [00:19:13]free content buf [00:19:13]Sock 9.Close socket [00:19:13]Sock 9.Thread stoped [00:19:18]OFD Sender: No OFD packet to send [00:19:23]OFD Sender: No OFD packet to send [00:19:28]OFD Sender: No OFD packet to send [00:19:33]OFD Sender: No OFD packet to send [00:19:38]OFD Sender: No OFD packet to send [00:19:43]OFD Sender: No OFD packet to send [00:19:48]OFD Sender: No OFD packet to send [00:19:53]OFD Sender: No OFD packet to send [00:19:58]OFD Sender: No OFD packet to send [00:20:03]OFD Sender: No OFD packet to send [00:20:08]OFD Sender: No OFD packet to send [00:20:13]OFD Sender: No OFD packet to send [00:20:18]OFD Sender: No OFD packet to send [00:20:23]OFD Sender: No OFD packet to send [00:20:28]OFD Sender: No OFD packet to send [00:20:33]OFD Sender: No OFD packet to send [00:20:38]OFD Sender: No OFD packet to send [00:20:43]OFD Sender: No OFD packet to send [00:20:48]OFD Sender: No OFD packet to send [00:20:53]OFD Sender: No OFD packet to send [00:20:58]OFD Sender: No OFD packet to send [00:21:03]OFD Sender: No OFD packet to send [00:21:08]OFD Sender: No OFD packet to send [00:21:13]OFD Sender: No OFD packet to send [00:21:18]OFD Sender: No OFD packet to send [00:21:23]OFD Sender: No OFD packet to send [00:21:28]OFD Sender: No OFD packet to send [00:21:33]OFD Sender: No OFD packet to send [00:21:38]OFD Sender: No OFD packet to send [00:21:43]OFD Sender: No OFD packet to send [00:21:48]OFD Sender: No OFD packet to send [00:21:53]OFD Sender: No OFD packet to send [00:21:58]OFD Sender: No OFD packet to send [00:22:03]OFD Sender: No OFD packet to send [00:22:08]OFD Sender: No OFD packet to send [00:22:13]OFD Sender: No OFD packet to send [00:22:18]OFD Sender: No OFD packet to send [00:22:23]OFD Sender: No OFD packet to send [00:22:28]OFD Sender: No OFD packet to send [00:22:33]OFD Sender: No OFD packet to send [00:22:38]OFD Sender: No OFD packet to send [00:22:43]OFD Sender: No OFD packet to send [00:22:48]OFD Sender: No OFD packet to send [00:22:53]OFD Sender: No OFD packet to send [00:22:58]OFD Sender: No OFD packet to send [00:23:03]OFD Sender: No OFD packet to send [00:23:08]OFD Sender: No OFD packet to send [00:23:13]OFD Sender: No OFD packet to send [00:23:18]OFD Sender: No OFD packet to send [00:23:23]OFD Sender: No OFD packet to send [00:23:28]OFD Sender: No OFD packet to send [00:23:33]OFD Sender: No OFD packet to send [00:23:38]OFD Sender: No OFD packet to send [00:23:43]OFD Sender: No OFD packet to send [00:23:48]OFD Sender: No OFD packet to send [00:23:53]OFD Sender: No OFD packet to send [00:23:58]OFD Sender: No OFD packet to send [00:24:03]OFD Sender: No OFD packet to send [00:24:08]OFD Sender: No OFD packet to send [00:24:13]OFD Sender: No OFD packet to send [00:24:18]OFD Sender: No OFD packet to send [00:24:23]OFD Sender: No OFD packet to send [00:24:28]OFD Sender: No OFD packet to send [00:24:33]OFD Sender: No OFD packet to send [00:24:38]OFD Sender: No OFD packet to send [00:24:43]OFD Sender: No OFD packet to send [00:24:48]OFD Sender: No OFD packet to send [00:24:53]OFD Sender: No OFD packet to send [00:24:58]OFD Sender: No OFD packet to send [00:25:03]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:13]OFD Sender: No OFD packet to send [00:25:18]OFD Sender: No OFD packet to send [00:25:23]OFD Sender: No OFD packet to send [00:25:28]OFD Sender: No OFD packet to send [00:25:33]OFD Sender: No OFD packet to send [00:25:38]OFD Sender: No OFD packet to send [00:25:43]OFD Sender: No OFD packet to send [00:25:48]OFD Sender: No OFD packet to send [00:25:53]OFD Sender: No OFD packet to send [00:25:58]OFD Sender: No OFD packet to send [00:26:03]OFD Sender: No OFD packet to send [00:26:08]OFD Sender: No OFD packet to send [00:26:13]OFD Sender: No OFD packet to send [00:26:18]OFD Sender: No OFD packet to send [00:26:23]OFD Sender: No OFD packet to send [00:26:28]OFD Sender: No OFD packet to send [00:26:33]OFD Sender: No OFD packet to send [00:26:38]OFD Sender: No OFD packet to send [00:26:43]OFD Sender: No OFD packet to send [00:26:48]OFD Sender: No OFD packet to send [00:26:53]OFD Sender: No OFD packet to send [00:26:58]OFD Sender: No OFD packet to send [00:27:03]OFD Sender: No OFD packet to send [00:27:08]OFD Sender: No OFD packet to send [00:27:13]OFD Sender: No OFD packet to send [00:27:18]OFD Sender: No OFD packet to send [00:27:23]OFD Sender: No OFD packet to send [00:27:28]OFD Sender: No OFD packet to send [00:27:33]OFD Sender: No OFD packet to send [00:27:38]OFD Sender: No OFD packet to send [00:27:43]OFD Sender: No OFD packet to send [00:27:48]OFD Sender: No OFD packet to send [00:27:53]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28:03]OFD Sender: No OFD packet to send [00:28:08]OFD Sender: No OFD packet to send [00:28:13]OFD Sender: No OFD packet to send [00:28:18]OFD Sender: No OFD packet to send [00:28:23]OFD Sender: No OFD packet to send [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:03]OFD Sender: No OFD packet to send [00:30:08]OFD Sender: No OFD packet to send [00:30:13]OFD Sender: No OFD packet to send [00:30:18]OFD Sender: No OFD packet to send [00:30:23]OFD Sender: No OFD packet to send [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:38]OFD Sender: No OFD packet to send [00:30:43]OFD Sender: No OFD packet to send [00:30:48]OFD Sender: No OFD packet to send [00:30:53]OFD Sender: No OFD packet to send [00:30:58]OFD Sender: No OFD packet to send [00:31:03]OFD Sender: No OFD packet to send [00:31:08]OFD Sender: No OFD packet to send [00:31:13]OFD Sender: No OFD packet to send [00:31:18]OFD Sender: No OFD packet to send [00:31:23]OFD Sender: No OFD packet to send [00:31:28]OFD Sender: No OFD packet to send [00:31:33]OFD Sender: No OFD packet to send [00:31:38]OFD Sender: No OFD packet to send [00:31:43]OFD Sender: No OFD packet to send [00:31:48]OFD Sender: No OFD packet to send [00:31:53]OFD Sender: No OFD packet to send [00:31:58]OFD Sender: No OFD packet to send [00:32:03]OFD Sender: No OFD packet to send [00:32:09]OFD Sender: No OFD packet to send [00:32:14]OFD Sender: No OFD packet to send [00:32:19]OFD Sender: No OFD packet to send [00:32:24]OFD Sender: No OFD packet to send [00:32:29]OFD Sender: No OFD packet to send [00:32:34]OFD Sender: No OFD packet to send [00:32:39]OFD Sender: No OFD packet to send [00:32:44]OFD Sender: No OFD packet to send [00:32:49]OFD Sender: No OFD packet to send [00:32:54]OFD Sender: No OFD packet to send [00:32:59]OFD Sender: No OFD packet to send [00:33:04]OFD Sender: No OFD packet to send [00:33:09]OFD Sender: No OFD packet to send [00:33:14]OFD Sender: No OFD packet to send [00:33:19]OFD Sender: No OFD packet to send [00:33:24]OFD Sender: No OFD packet to send [00:33:29]OFD Sender: No OFD packet to send [00:33:34]OFD Sender: No OFD packet to send [00:33:39]OFD Sender: No OFD packet to send [00:33:44]OFD Sender: No OFD packet to send [00:33:49]OFD Sender: No OFD packet to send [00:33:54]OFD Sender: No OFD packet to send [00:33:59]OFD Sender: No OFD packet to send [00:34:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:34:14]OFD Sender: No OFD packet to send [00:34:19]OFD Sender: No OFD packet to send [00:34:24]OFD Sender: No OFD packet to send [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:09]OFD Sender: No OFD packet to send [00:35:14]OFD Sender: No OFD packet to send [00:35:19]OFD Sender: No OFD packet to send [00:35:24]OFD Sender: No OFD packet to send [00:35:29]OFD Sender: No OFD packet to send [00:35:34]OFD Sender: No OFD packet to send [00:35:39]OFD Sender: No OFD packet to send [00:35:44]OFD Sender: No OFD packet to send [00:35:49]OFD Sender: No OFD packet to send [00:35:54]OFD Sender: No OFD packet to send [00:35:59]OFD Sender: No OFD packet to send [00:36:04]OFD Sender: No OFD packet to send [00:36:09]OFD Sender: No OFD packet to send [00:36:14]OFD Sender: No OFD packet to send [00:36:19]OFD Sender: No OFD packet to send [00:36:24]OFD Sender: No OFD packet to send [00:36:29]OFD Sender: No OFD packet to send [00:36:34]OFD Sender: No OFD packet to send [00:36:39]OFD Sender: No OFD packet to send [00:36:44]OFD Sender: No OFD packet to send [00:36:49]OFD Sender: No OFD packet to send [00:36:54]OFD Sender: No OFD packet to send [00:36:59]OFD Sender: No OFD packet to send [00:37:04]OFD Sender: No OFD packet to send [00:37:09]OFD Sender: No OFD packet to send [00:37:14]OFD Sender: No OFD packet to send [00:37:19]OFD Sender: No OFD packet to send [00:37:24]OFD Sender: No OFD packet to send [00:37:29]OFD Sender: No OFD packet to send [00:37:34]OFD Sender: No OFD packet to send [00:37:39]OFD Sender: No OFD packet to send [00:37:44]OFD Sender: No OFD packet to send [00:37:49]OFD Sender: No OFD packet to send [00:37:54]OFD Sender: No OFD packet to send [00:37:59]OFD Sender: No OFD packet to send [00:38:04]OFD Sender: No OFD packet to send [00:38:09]OFD Sender: No OFD packet to send [00:38:14]OFD Sender: No OFD packet to send [00:38:19]OFD Sender: No OFD packet to send [00:38:24]OFD Sender: No OFD packet to send [00:38:29]OFD Sender: No OFD packet to send [00:38:34]OFD Sender: No OFD packet to send [00:38:39]OFD Sender: No OFD packet to send [00:38:44]OFD Sender: No OFD packet to send [00:38:49]OFD Sender: No OFD packet to send [00:38:54]OFD Sender: No OFD packet to send [00:38:59]OFD Sender: No OFD packet to send [00:39:04]OFD Sender: No OFD packet to send [00:39:09]OFD Sender: No OFD packet to send [00:39:14]OFD Sender: No OFD packet to send [00:39:19]OFD Sender: No OFD packet to send [00:39:24]OFD Sender: No OFD packet to send [00:39:29]OFD Sender: No OFD packet to send [00:39:34]OFD Sender: No OFD packet to send [00:39:39]OFD Sender: No OFD packet to send [00:39:44]OFD Sender: No OFD packet to send [00:39:49]OFD Sender: No OFD packet to send [00:39:54]OFD Sender: No OFD packet to send [00:39:59]OFD Sender: No OFD packet to send [00:40:04]OFD Sender: No OFD packet to send [00:40:09]OFD Sender: No OFD packet to send [00:40:14]OFD Sender: No OFD packet to send [00:40:19]OFD Sender: No OFD packet to send [00:40:24]OFD Sender: No OFD packet to send [00:40:29]OFD Sender: No OFD packet to send [00:40:34]OFD Sender: No OFD packet to send [00:40:39]OFD Sender: No OFD packet to send [00:40:44]OFD Sender: No OFD packet to send [00:40:49]OFD Sender: No OFD packet to send [00:40:54]OFD Sender: No OFD packet to send [00:40:59]OFD Sender: No OFD packet to send [00:41:04]OFD Sender: No OFD packet to send [00:41:09]OFD Sender: No OFD packet to send [00:41:14]OFD Sender: No OFD packet to send [00:41:19]OFD Sender: No OFD packet to send [00:41:24]OFD Sender: No OFD packet to send [00:41:29]OFD Sender: No OFD packet to send [00:41:34]OFD Sender: No OFD packet to send [00:41:39]OFD Sender: No OFD packet to send [00:41:44]OFD Sender: No OFD packet to send [00:41:49]OFD Sender: No OFD packet to send [00:41:54]OFD Sender: No OFD packet to send [00:41:59]OFD Sender: No OFD packet to send [00:42:04]OFD Sender: No OFD packet to send [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:19]OFD Sender: No OFD packet to send [00:42:24]OFD Sender: No OFD packet to send [00:42:29]OFD Sender: No OFD packet to send [00:42:34]OFD Sender: No OFD packet to send [00:42:39]OFD Sender: No OFD packet to send [00:42:44]OFD Sender: No OFD packet to send [00:42:49]OFD Sender: No OFD packet to send [00:42:54]OFD Sender: No OFD packet to send [00:42:59]OFD Sender: No OFD packet to send [00:43:04]OFD Sender: No OFD packet to send [00:43:09]OFD Sender: No OFD packet to send [00:43:14]OFD Sender: No OFD packet to send [00:43:19]OFD Sender: No OFD packet to send [00:43:24]OFD Sender: No OFD packet to send [00:43:29]OFD Sender: No OFD packet to send [00:43:34]OFD Sender: No OFD packet to send [00:43:39]OFD Sender: No OFD packet to send [00:43:44]OFD Sender: No OFD packet to send [00:43:49]OFD Sender: No OFD packet to send [00:43:54]OFD Sender: No OFD packet to send [00:43:59]OFD Sender: No OFD packet to send [00:44:04]OFD Sender: No OFD packet to send [00:44:09]OFD Sender: No OFD packet to send [00:44:14]OFD Sender: No OFD packet to send [00:44:19]OFD Sender: No OFD packet to send [00:44:24]OFD Sender: No OFD packet to send [00:44:29]OFD Sender: No OFD packet to send [00:44:34]OFD Sender: No OFD packet to send [00:44:39]OFD Sender: No OFD packet to send [00:44:44]OFD Sender: No OFD packet to send [00:44:49]OFD Sender: No OFD packet to send [00:44:54]OFD Sender: No OFD packet to send [00:44:59]OFD Sender: No OFD packet to send [00:45:04]OFD Sender: No OFD packet to send [00:45:09]OFD Sender: No OFD packet to send [00:45:14]OFD Sender: No OFD packet to send [00:45:19]OFD Sender: No OFD packet to send [00:45:24]OFD Sender: No OFD packet to send [00:45:29]OFD Sender: No OFD packet to send [00:45:34]OFD Sender: No OFD packet to send [00:45:39]OFD Sender: No OFD packet to send [00:45:44]OFD Sender: No OFD packet to send [00:45:49]OFD Sender: No OFD packet to send [00:45:54]OFD Sender: No OFD packet to send [00:45:59]OFD Sender: No OFD packet to send [00:46:04]OFD Sender: No OFD packet to send [00:46:09]OFD Sender: No OFD packet to send [00:46:14]OFD Sender: No OFD packet to send [00:46:19]OFD Sender: No OFD packet to send [00:46:22]accept exits with 7 [00:46:22]New connection [00:46:22]New thread 3066785124 created [00:46:22]Thread 3066928484 joined [00:46:22]Waiting for new connection... [00:46:22] Sock 7.Parse request [00:46:22]Sock 7.Check first char [00:46:22]Sock 7.First char is OK [00:46:22]request: POST /json_proto HTTP/1.0 [00:46:22]Method: POST [00:46:22]URL: /json_proto [00:46:22]Method is POST - this is cgi request [00:46:22]url: /json_proto [00:46:22]query_string will be loaded in cgi processing [00:46:22]execute_cgi json_proto POST (null) [00:46:22]execute_cgi path=json_proto method=POST [00:46:22]POST find Content-Length [00:46:22]Host: 172.17.33.3:8080 [00:46:22]Content-Length: 843 [00:46:22]Content-Type: application/json [00:46:22] [00:46:22]POST finish read [00:46:22]Found Content-Length = 843 [00:46:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347458", "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" : 72.50, "quantity" : 13.800, "sum" : 1000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:46:22]execute_script... [00:46: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)347458", "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" : 72.50, "quantity" : 13.800, "sum" : 1000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:46:22]POST & json_proto [00:46:22]process_json_proto [00:46:22]json parsed OK: [00:46:22]protocol is kg_v1.0 [00:46:22]action value=close_receipt [00:46:22]process_action close_receipt [00:46:22]cmd_close_receipt [00:46:22]MH_GetDate [00:46:22]Write to MH i2c: F0 00 00 53 70 B2 [00:46:22]Write i2c OK [00:46:22]MH_I2C_Read... [00:46:22]Read from MH i2c: F0 [00:46:22]MH_I2C_Read... [00:46:22]Read from MH i2c: F0 09 00 [00:46:22]MH_I2C_Read... [00:46:22]Read from MH i2c: F0 09 00 53 70 00 65 27 1B 66 23 5B 8F 65 3A [00:46:22]GetLastDocTimeStamp 1713053951 [00:46:22]current date 1713055589 [00:46:22]FM_GetShiftState [00:46:22]SAM_PROTO_GetShiftState [00:46:22]wFMCommunicate request_size=4 [00:46:22]MH_SAM_APDU [00:46:22]CAPDU: 80 13 01 00 [00:46:22]Write to MH i2c: E2 08 00 54 70 80 13 01 00 00 00 00 00 41 [00:46:22]Write i2c OK [00:46:22]MH_I2C_Read... [00:46:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:46:22]Read from MH i2c: E2 [00:46:22]MH_I2C_Read... [00:46:22]Read from MH i2c: E2 0E 00 [00:46:22]MH_I2C_Read... [00:46:22]Read from MH i2c: E2 0E 00 54 70 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 ED [00:46:22]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [00:46:22]wFMCommunicate OK [00:46:22]SAM_PROTO_GetShiftState done [00:46:22]FM_GetShiftState done [00:46:22]opened in 1713053951 [00:46:22]opened+sec_in_day 1713140351 [00:46:22]quantity*price = 100050 [00:46:22]sum+1 = 100051 [00:46:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.50 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.50 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 1 14.04.2024 00:46 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29091 ФПД: 167885701180276 1/tax-web-control/client/api/v1/ticket?date=20240414T004629&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29091&fm=167885701180276&tin=02508201610067®Number=0000138879044617&sum=100050 [00:46:23]StoreToDocumentArchive [00:46:23]shift 116 fd 29091 [00:46:23]save to /storage/0116/doc_00029091 [00:46:23]save last doc name /storage/0116/doc_00029091 to /storage/kkm_last_doc_name [00:46:23]save OK [00:46:23]Clear old archive folders... [00:46:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:46:23]tlvbuf is 011A20C0 [00:46:23]SAM_PROTO_ClearQueue [00:46:23]wFMCommunicate request_size=4 [00:46:23]MH_SAM_APDU [00:46:23]CAPDU: 80 09 00 00 [00:46:23]Write to MH i2c: E2 08 00 61 70 80 09 00 00 00 00 00 00 43 [00:46:23]Write i2c OK [00:46:23]MH_I2C_Read... [00:46:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:46:23]Read from MH i2c: E2 [00:46:23]MH_I2C_Read... [00:46:23]Read from MH i2c: E2 03 00 [00:46:23]MH_I2C_Read... [00:46:23]Read from MH i2c: E2 03 00 61 70 00 90 00 45 [00:46:23]RAPDU: 90 00 [00:46:23]wFMCommunicate OK [00:46:23]SAM_PROTO_ClearQueue done [00:46:23]KKMCreateOFDPacket [00:46:23]OFDProtocolAddRootSTLVToBuf [00:46:23]FM_MakeSignedData [00:46:23]FM_MakeSignedData [00:46:23]SAM_PROTO_SignData [00:46:23]wFMCommunicate request_size=4 [00:46:23]MH_SAM_APDU [00:46:23]CAPDU: 80 0D 01 02 [00:46:23]Write to MH i2c: E2 08 00 62 70 80 0D 01 02 00 00 00 00 4B [00:46:23]Write i2c OK [00:46:23]MH_I2C_Read... [00:46:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:46:23]Read from MH i2c: E2 [00:46:23]MH_I2C_Read... [00:46:23]Read from MH i2c: E2 03 00 [00:46:23]MH_I2C_Read... [00:46:23]Read from MH i2c: E2 03 00 62 70 00 90 00 46 [00:46:23]RAPDU: 90 00 [00:46:23]wFMCommunicate OK [00:46:23]wFMCommunicate request_size=255 [00:46:23]MH_SAM_APDU [00:46: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 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 65 27 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A3 71 00 00 35 04 06 00 98 [00:46:23]Write to MH i2c: E2 02 01 63 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 65 27 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A3 71 00 00 35 04 06 00 98 00 00 5C [00:46:23]Write i2c OK [00:46:23]MH_I2C_Read... [00:46:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:46:23]Read from MH i2c: E2 [00:46:23]MH_I2C_Read... [00:46:23]Read from MH i2c: E2 03 00 [00:46:23]MH_I2C_Read... [00:46:23]Read from MH i2c: E2 03 00 63 70 00 90 00 47 [00:46:23]RAPDU: 90 00 [00:46:23]wFMCommunicate OK [00:46:23]wFMCommunicate request_size=10 [00:46:23]MH_SAM_APDU [00:46:23]CAPDU: 80 0D 02 02 05 B0 EF 94 EB 74 [00:46:23]Write to MH i2c: E2 0D 00 64 70 80 0D 02 02 05 00 B0 EF 94 EB 74 00 00 EA [00:46:23]Write i2c OK [00:46:23]MH_I2C_Read... [00:46:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:46:23]Read from MH i2c: E2 [00:46:23]MH_I2C_Read... [00:46:23]Read from MH i2c: E2 03 00 [00:46:23]MH_I2C_Read... [00:46:23]Read from MH i2c: E2 03 00 64 70 00 90 00 48 [00:46:23]RAPDU: 90 00 [00:46:23]wFMCommunicate OK [00:46:23]wFMCommunicate request_size=4 [00:46:23]MH_SAM_APDU [00:46:23]CAPDU: 80 0D 03 02 [00:46:23]Write to MH i2c: E2 08 00 65 70 80 0D 03 02 00 00 00 00 50 [00:46:23]Write i2c OK [00:46:23]MH_I2C_Read... [00:46:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:46:23]Read from MH i2c: E2 [00:46:23]MH_I2C_Read... [00:46:23]Read from MH i2c: E2 0B 00 [00:46:23]MH_I2C_Read... [00:46:23]Read from MH i2c: E2 0B 00 65 70 00 FA AA B5 C9 05 21 EB 9D 90 00 21 [00:46:23]RAPDU: FA AA B5 C9 05 21 EB 9D 90 00 [00:46:23]wFMCommunicate OK [00:46:23]SAM_PROTO_SignData done [00:46:23]FM_MakeSignedData done [00:46:23]CreateOFDProtocolMessage [00:46:23]wFMCommunicate request_size=4 [00:46:23]MH_SAM_APDU [00:46:23]CAPDU: 80 11 00 00 [00:46:23]Write to MH i2c: E2 08 00 66 70 80 11 00 00 00 00 00 00 50 [00:46:23]Write i2c OK [00:46:23]MH_I2C_Read... [00:46:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:46:23]Read from MH i2c: E2 [00:46:23]MH_I2C_Read... [00:46:23]Read from MH i2c: E2 17 00 [00:46:23]MH_I2C_Read... [00:46:23]Read from MH i2c: E2 17 00 66 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 9F [00:46:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:46:23]wFMCommunicate OK [00:46:23]CreateOFDProtocolMessage done [00:46:23]OFDSenderStorePacket 29091 [00:46:23]StoreOFDPacket docnum=29091 [00:46:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 91 F2 07 01 69 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 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 65 27 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A3 71 00 00 35 04 06 00 98 B0 EF 94 EB 74 FA AA B5 C9 05 21 EB 9D [00:46:23]CheckFolder [00:46:23]dirname=/storage/ofd_packets [00:46:23]CheckFolder done [00:46:23]ProducePacketName [00:46:23]name=ofd_packets/00029091 [00:46:23]NVStorageSaveData ofd_packets/00029091 [00:46:23]File name is /storage/ofd_packets/00029091 [00:46:23]Write 301 bytes [00:46:23]NVStorageSaveData done [00:46:23]OFDSenderStorePacket done [00:46:23]KKMCreateOFDPacket done [00:46:23]NVStorageSaveData kkm_last_timestamp [00:46:23]File name is /storage/kkm_last_timestamp [00:46:23]Write 4 bytes [00:46:23]NVStorageSaveData done [00:46:23]ExternCall_PrintAddStr [00:46:23]wPrintStart [00:46:23]Write to MH i2c: 01 00 00 67 70 D7 [00:46:23]Write i2c OK [00:46:23]MH_I2C_Read... [00:46:23]Read from MH i2c: 01 [00:46:23]MH_I2C_Read... [00:46:23]Read from MH i2c: 01 07 00 [00:46:23]MH_I2C_Read... [00:46:23]Read from MH i2c: 01 07 00 67 70 00 00 00 00 00 FF 0F EC [00:46:23]RasterBufferAndPrint [00:46:23]line Счет N : (1)347458 [00:46:23]line ИНН: 02508201610067 [00:46:23]line Контрольно-Кассовый Чек [00:46:23]line ПРОДАЖА [00:46:23]line ТРК (МРК, ГНК) : 33 [00:46:23]line Товар: 2710124500 [00:46:23]line Аи-95-К-5 [00:46:23]line 13.800 * 72.50 [00:46:23]line = 1000.50 [00:46:23]line НДС 12% НСП 1% [00:46:23]line > о реализуемом товаре [00:46:23]line ИТОГО: 1000.50 [00:46:23]line НСП 1% : 8.85 [00:46:23]line НДС 12% : 106.25 [00:46:23]line Наличными: 0.00 [00:46:23]line Безнал.: 1000.50 [00:46:23]line Место: АЗС № 108 "Партнер Нефть" [00:46:23]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:46:23]line СНО: Общий режим [00:46:23]line Чек 1 14.04.2024 00:46 [00:46:23]line Смена: 116 ФФД: 1.0 [00:46:23]line ЗНМ: 0300000027 [00:46:23]line РНМ: 0000138879044617 [00:46:23]line Версия ККМ: 001 [00:46:23]line Платежная система: АКБ Кыргызстан [00:46:24]line ФМ: 0000000000963154 [00:46:24]line ФД: 29091 [00:46:24]line ФПД: 167885701180276 [00:46:24]line 1/tax-web-control/client/api/v1/ticket?date=20240414T004629&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29091&fm=167885701180276&tin=02508201610067®Number=0000138879044617&sum=100050 [00:46:24]OFD Sender: Processing packet 29091 [packets to send 8, broken 7] [00:46:24]ProducePacketName [00:46:24]name=ofd_packets/00029091 [00:46:24]OFD Sender: To server: pG, [00:46:24]CommunicateWithHost lk.salyk.kg:30040 [00:46:24]ConnectInit lk.salyk.kg [00:46:24]written 0, free lines is 4095 [00:46:24]Connected sock=10 [00:46: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 31 35 34 0F 01 00 00 91 F2 07 01 69 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 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 65 27 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A3 71 00 00 35 04 06 00 98 B0 EF 94 EB 74 FA AA B5 C9 05 21 EB 9D [00:46:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 5A 63 47 00 0A 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A3 71 00 00 F4 03 04 00 0B D2 1A 66 B6 04 01 00 00 5A 65 0F 73 F9 4B E5 93 [00:46:24]CommunicateWithHost err = 0 [00:46:24]CheckOFDResponse [00:46:24]1017 (14) - 77093643461234 [00:46:24]1041 (16) - 0000000000963154 [00:46:24]1040 (4) - 29091 [00:46:24]1012 (4) - 13.04.2024 18:42 [00:46:24]1206 (1) - 0 [00:46:24]OFD Sender: Remove packet 29091 [00:46:24]ProducePacketName [00:46:24]name=ofd_packets/00029091 [00:46:24]NVStorageDeleteData [00:46:24]Write to MH i2c: 01 00 00 90 70 00 [00:46:24]Write i2c OK [00:46:24]MH_I2C_Read... [00:46:24]Read from MH i2c: 01 [00:46:24]MH_I2C_Read... [00:46:24]Read from MH i2c: 01 07 00 [00:46:24]MH_I2C_Read... [00:46:24]Read from MH i2c: 01 07 00 90 70 00 00 00 00 00 D9 0C EC [00:46:24]RasterBufferAndPrint [00:46:24]line [00:46:24]line [00:46:24]line [00:46:24]line [00:46:24]line [00:46:24]written 0, free lines is 3296 [00:46:24]MH_Cut [00:46:24]Write to MH i2c: D1 01 00 97 70 01 D9 [00:46:24]Write i2c OK [00:46:24]MH_I2C_Read... [00:46:24]Read from MH i2c: D1 [00:46:24]MH_I2C_Read... [00:46:24]Read from MH i2c: D1 01 00 [00:46:24]MH_I2C_Read... [00:46:24]Read from MH i2c: D1 01 00 97 70 00 D8 [00:46:24]Write to MH i2c: 01 00 00 98 70 08 [00:46:24]Write i2c OK [00:46:24]MH_I2C_Read... [00:46:24]OFD Sender: No OFD packet to send [00:46:25]*** Cut start [00:46:25]*** Partial cut [00:46:25]*** CUTSNS_PIN = 1 [00:46:25]*** CUTSNS_PIN = 0 [00:46:25]*** Brake cut motor [00:46:25]Read from MH i2c: 01 [00:46:25]MH_I2C_Read... [00:46:25]*** Stop cut motor [00:46:25]*** Cut end [00:46:25]Read from MH i2c: 01 07 00 [00:46:25]MH_I2C_Read... [00:46:25]Read from MH i2c: 01 07 00 98 70 00 00 00 00 00 FF 0F 1D [00:46:25]process_action close_receipt done [00:46:25]requested_data is exist [00:46:25]produce_requested_data [00:46:25]requested_item fm.sn is exist - process it [00:46:25]wFMCommunicate request_size=4 [00:46:25]MH_SAM_APDU [00:46:25]CAPDU: 80 11 00 00 [00:46:25]Write to MH i2c: E2 08 00 99 70 80 11 00 00 00 00 00 00 83 [00:46:25]Write i2c OK [00:46:25]MH_I2C_Read... [00:46:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:46:26]Read from MH i2c: E2 [00:46:26]MH_I2C_Read... [00:46:26]Read from MH i2c: E2 17 00 [00:46:26]MH_I2C_Read... [00:46:26]Read from MH i2c: E2 17 00 99 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D2 [00:46:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:46:26]wFMCommunicate OK [00:46:26]requested_item fd.num is exist - process it [00:46:26]SAM_PROTO_GetFieldsCounters [00:46:26]wFMCommunicate request_size=4 [00:46:26]MH_SAM_APDU [00:46:26]CAPDU: 80 13 00 00 [00:46:26]Write to MH i2c: E2 08 00 9A 70 80 13 00 00 00 00 00 00 86 [00:46:26]Write i2c OK [00:46:26]MH_I2C_Read... [00:46:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:46:26]Read from MH i2c: E2 [00:46:26]MH_I2C_Read... [00:46:26]Read from MH i2c: E2 62 00 [00:46:26]MH_I2C_Read... [00:46:26]Read from MH i2c: E2 62 00 9A 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A3 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [00:46: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A3 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:46:26]wFMCommunicate OK [00:46:26]SAM_PROTO_GetFieldsCounters done [00:46:26]requested_item shift.num is exist - process it [00:46:26]requested_item shift.opened is exist - process it [00:46:26]req_shift_opened [00:46:26]FM_GetShiftState [00:46:26]SAM_PROTO_GetShiftState [00:46:26]wFMCommunicate request_size=4 [00:46:26]MH_SAM_APDU [00:46:26]CAPDU: 80 13 01 00 [00:46:26]Write to MH i2c: E2 08 00 9B 70 80 13 01 00 00 00 00 00 88 [00:46:26]Write i2c OK [00:46:26]MH_I2C_Read... [00:46:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:46:26]Read from MH i2c: E2 [00:46:26]MH_I2C_Read... [00:46:26]Read from MH i2c: E2 0E 00 [00:46:26]MH_I2C_Read... [00:46:26]Read from MH i2c: E2 0E 00 9B 70 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 34 [00:46:26]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [00:46:26]wFMCommunicate OK [00:46:26]SAM_PROTO_GetShiftState done [00:46:26]FM_GetShiftState done [00:46:26]req_shift_opened done [00:46:26]requested_item shift.open_date is exist - process it [00:46:26]req_shift_open_date [00:46:26]req_shift_open_date done [00:46:26]produce_requested_data done [00:46:26]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29091,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [00:46:26]process_action_free close_receipt [00:46:26]json_value_free [00:46:26]json_value_free done [00:46:26]process_json_proto returns [00:46:26]Send response to host [00:46:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29091,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [00:46:26]free response buf [00:46:26]execute_script done [00:46:26]execute_script returns [00:46:26]free content buf [00:46:26]Sock 7.Close socket [00:46:26]Sock 7.Thread stoped [00:46:29]OFD Sender: No OFD packet to send [00:46:34]OFD Sender: No OFD packet to send [00:46:39]OFD Sender: No OFD packet to send [00:46:44]OFD Sender: No OFD packet to send [00:46:49]OFD Sender: No OFD packet to send [00:46:54]OFD Sender: No OFD packet to send [00:46:59]OFD Sender: No OFD packet to send [00:47:04]OFD Sender: No OFD packet to send [00:47:09]OFD Sender: No OFD packet to send [00:47:14]OFD Sender: No OFD packet to send [00:47:19]OFD Sender: No OFD packet to send [00:47:24]OFD Sender: No OFD packet to send [00:47:29]OFD Sender: No OFD packet to send [00:47:34]OFD Sender: No OFD packet to send [00:47:39]OFD Sender: No OFD packet to send [00:47:44]OFD Sender: No OFD packet to send [00:47:49]OFD Sender: No OFD packet to send [00:47:54]OFD Sender: No OFD packet to send [00:47:59]OFD Sender: No OFD packet to send [00:48:04]OFD Sender: No OFD packet to send [00:48:09]OFD Sender: No OFD packet to send [00:48:14]OFD Sender: No OFD packet to send [00:48:19]OFD Sender: No OFD packet to send [00:48:24]OFD Sender: No OFD packet to send [00:48:29]OFD Sender: No OFD packet to send [00:48:34]OFD Sender: No OFD packet to send [00:48:39]OFD Sender: No OFD packet to send [00:48:44]OFD Sender: No OFD packet to send [00:48:50]OFD Sender: No OFD packet to send [00:48:55]OFD Sender: No OFD packet to send [00:49:00]OFD Sender: No OFD packet to send [00:49:05]OFD Sender: No OFD packet to send [00:49:10]OFD Sender: No OFD packet to send [00:49:15]OFD Sender: No OFD packet to send [00:49:20]OFD Sender: No OFD packet to send [00:49:25]OFD Sender: No OFD packet to send [00:49:30]OFD Sender: No OFD packet to send [00:49:35]OFD Sender: No OFD packet to send [00:49:40]OFD Sender: No OFD packet to send [00:49:45]OFD Sender: No OFD packet to send [00:49:50]OFD Sender: No OFD packet to send [00:49:55]OFD Sender: No OFD packet to send [00:50:00]OFD Sender: No OFD packet to send [00:50:05]OFD Sender: No OFD packet to send [00:50:09]accept exits with 9 [00:50:09]New connection [00:50:09]New thread 3066928484 created [00:50:09]Thread 3066785124 joined [00:50:09]Waiting for new connection... [00:50:09] Sock 9.Parse request [00:50:09]Sock 9.Check first char [00:50:09]Sock 9.First char is OK [00:50:09]request: POST /json_proto HTTP/1.0 [00:50:09]Method: POST [00:50:09]URL: /json_proto [00:50:09]Method is POST - this is cgi request [00:50:09]url: /json_proto [00:50:09]query_string will be loaded in cgi processing [00:50:09]execute_cgi json_proto POST (null) [00:50:09]execute_cgi path=json_proto method=POST [00:50:09]POST find Content-Length [00:50:09]Host: 172.17.33.3:8080 [00:50:09]Content-Length: 840 [00:50:09]Content-Type: application/json [00:50:09] [00:50:09]POST finish read [00:50:09]Found Content-Length = 840 [00:50:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347459", "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" : 64.30, "quantity" : 7.780, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:50:09]execute_script... [00:50:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347459", "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" : 64.30, "quantity" : 7.780, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:50:09]POST & json_proto [00:50:09]process_json_proto [00:50:09]json parsed OK: [00:50:09]protocol is kg_v1.0 [00:50:09]action value=close_receipt [00:50:09]process_action close_receipt [00:50:09]cmd_close_receipt [00:50:09]MH_GetDate [00:50:09]Write to MH i2c: F0 00 00 9C 70 FB [00:50:09]Write i2c OK [00:50:09]MH_I2C_Read... [00:50:09]Read from MH i2c: F0 [00:50:09]MH_I2C_Read... [00:50:09]Read from MH i2c: F0 09 00 [00:50:09]MH_I2C_Read... [00:50:09]Read from MH i2c: F0 09 00 9C 70 00 49 28 1B 66 23 5B 8F 65 68 [00:50:09]GetLastDocTimeStamp 1713055589 [00:50:09]current date 1713055817 [00:50:09]FM_GetShiftState [00:50:09]SAM_PROTO_GetShiftState [00:50:09]wFMCommunicate request_size=4 [00:50:09]MH_SAM_APDU [00:50:09]CAPDU: 80 13 01 00 [00:50:09]Write to MH i2c: E2 08 00 9D 70 80 13 01 00 00 00 00 00 8A [00:50:09]Write i2c OK [00:50:09]MH_I2C_Read... [00:50:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:50:09]Read from MH i2c: E2 [00:50:09]MH_I2C_Read... [00:50:09]Read from MH i2c: E2 0E 00 [00:50:09]MH_I2C_Read... [00:50:09]Read from MH i2c: E2 0E 00 9D 70 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 36 [00:50:09]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [00:50:09]wFMCommunicate OK [00:50:09]SAM_PROTO_GetShiftState done [00:50:09]FM_GetShiftState done [00:50:09]opened in 1713053951 [00:50:09]opened+sec_in_day 1713140351 [00:50:09]quantity*price = 50025 [00:50:09]sum+1 = 50026 [00:50:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 2 14.04.2024 00:50 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29092 ФПД: 273159236108269 1/tax-web-control/client/api/v1/ticket?date=20240414T005017&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29092&fm=273159236108269&tin=02508201610067®Number=0000138879044617&sum=50025 [00:50:11]StoreToDocumentArchive [00:50:11]shift 116 fd 29092 [00:50:11]save to /storage/0116/doc_00029092 [00:50:11]save last doc name /storage/0116/doc_00029092 to /storage/kkm_last_doc_name [00:50:11]save OK [00:50:11]Clear old archive folders... [00:50:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:50:11]tlvbuf is 011FB2E0 [00:50:11]SAM_PROTO_ClearQueue [00:50:11]wFMCommunicate request_size=4 [00:50:11]MH_SAM_APDU [00:50:11]CAPDU: 80 09 00 00 [00:50:11]Write to MH i2c: E2 08 00 AA 70 80 09 00 00 00 00 00 00 8C [00:50:11]Write i2c OK [00:50:11]MH_I2C_Read... [00:50:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:50:11]Read from MH i2c: E2 [00:50:11]MH_I2C_Read... [00:50:11]Read from MH i2c: E2 03 00 [00:50:11]MH_I2C_Read... [00:50:11]Read from MH i2c: E2 03 00 AA 70 00 90 00 8E [00:50:11]RAPDU: 90 00 [00:50:11]wFMCommunicate OK [00:50:11]SAM_PROTO_ClearQueue done [00:50:11]KKMCreateOFDPacket [00:50:11]OFDProtocolAddRootSTLVToBuf [00:50:11]FM_MakeSignedData [00:50:11]FM_MakeSignedData [00:50:11]SAM_PROTO_SignData [00:50:11]wFMCommunicate request_size=4 [00:50:11]MH_SAM_APDU [00:50:11]CAPDU: 80 0D 01 02 [00:50:11]Write to MH i2c: E2 08 00 AB 70 80 0D 01 02 00 00 00 00 94 [00:50:11]Write i2c OK [00:50:11]MH_I2C_Read... [00:50:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:50:11]Read from MH i2c: E2 [00:50:11]MH_I2C_Read... [00:50:11]Read from MH i2c: E2 03 00 [00:50:11]MH_I2C_Read... [00:50:11]Read from MH i2c: E2 03 00 AB 70 00 90 00 8F [00:50:11]RAPDU: 90 00 [00:50:11]wFMCommunicate OK [00:50:11]wFMCommunicate request_size=255 [00:50:11]MH_SAM_APDU [00:50: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 02 00 00 00 F4 03 04 00 49 28 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A4 71 00 00 35 04 06 00 F8 [00:50:11]Write to MH i2c: E2 02 01 AC 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 02 00 00 00 F4 03 04 00 49 28 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A4 71 00 00 35 04 06 00 F8 00 00 FD [00:50:11]Write i2c OK [00:50:11]MH_I2C_Read... [00:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:50:11]Read from MH i2c: E2 [00:50:11]MH_I2C_Read... [00:50:11]Read from MH i2c: E2 03 00 [00:50:11]MH_I2C_Read... [00:50:11]Read from MH i2c: E2 03 00 AC 70 00 90 00 90 [00:50:11]RAPDU: 90 00 [00:50:11]wFMCommunicate OK [00:50:11]wFMCommunicate request_size=10 [00:50:11]MH_SAM_APDU [00:50:11]CAPDU: 80 0D 02 02 05 6F D7 3C 3F ED [00:50:11]Write to MH i2c: E2 0D 00 AD 70 80 0D 02 02 05 00 6F D7 3C 3F ED 00 00 4F [00:50:11]Write i2c OK [00:50:11]MH_I2C_Read... [00:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:50:11]Read from MH i2c: E2 [00:50:11]MH_I2C_Read... [00:50:11]Read from MH i2c: E2 03 00 [00:50:11]MH_I2C_Read... [00:50:11]Read from MH i2c: E2 03 00 AD 70 00 90 00 91 [00:50:11]RAPDU: 90 00 [00:50:11]wFMCommunicate OK [00:50:11]wFMCommunicate request_size=4 [00:50:11]MH_SAM_APDU [00:50:11]CAPDU: 80 0D 03 02 [00:50:11]Write to MH i2c: E2 08 00 AE 70 80 0D 03 02 00 00 00 00 99 [00:50:11]Write i2c OK [00:50:11]MH_I2C_Read... [00:50:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:50:11]Read from MH i2c: E2 [00:50:11]MH_I2C_Read... [00:50:11]Read from MH i2c: E2 0B 00 [00:50:11]MH_I2C_Read... [00:50:11]Read from MH i2c: E2 0B 00 AE 70 00 22 88 38 CB 9A EE 60 EA 90 00 19 [00:50:11]RAPDU: 22 88 38 CB 9A EE 60 EA 90 00 [00:50:11]wFMCommunicate OK [00:50:11]SAM_PROTO_SignData done [00:50:11]FM_MakeSignedData done [00:50:11]CreateOFDProtocolMessage [00:50:11]wFMCommunicate request_size=4 [00:50:11]MH_SAM_APDU [00:50:11]CAPDU: 80 11 00 00 [00:50:11]Write to MH i2c: E2 08 00 AF 70 80 11 00 00 00 00 00 00 99 [00:50:11]Write i2c OK [00:50:11]MH_I2C_Read... [00:50:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:50:11]Read from MH i2c: E2 [00:50:11]MH_I2C_Read... [00:50:11]Read from MH i2c: E2 17 00 [00:50:11]MH_I2C_Read... [00:50:11]Read from MH i2c: E2 17 00 AF 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 E8 [00:50:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:50:11]wFMCommunicate OK [00:50:11]CreateOFDProtocolMessage done [00:50:11]OFDSenderStorePacket 29092 [00:50:11]StoreOFDPacket docnum=29092 [00:50:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B6 46 07 01 59 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 02 00 00 00 F4 03 04 00 49 28 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A4 71 00 00 35 04 06 00 F8 6F D7 3C 3F ED 22 88 38 CB 9A EE 60 EA [00:50:11]CheckFolder [00:50:11]dirname=/storage/ofd_packets [00:50:11]CheckFolder done [00:50:11]ProducePacketName [00:50:11]name=ofd_packets/00029092 [00:50:11]NVStorageSaveData ofd_packets/00029092 [00:50:11]File name is /storage/ofd_packets/00029092 [00:50:11]Write 301 bytes [00:50:11]NVStorageSaveData done [00:50:11]OFDSenderStorePacket done [00:50:11]KKMCreateOFDPacket done [00:50:11]NVStorageSaveData kkm_last_timestamp [00:50:11]File name is /storage/kkm_last_timestamp [00:50:11]Write 4 bytes [00:50:11]NVStorageSaveData done [00:50:11]ExternCall_PrintAddStr [00:50:11]wPrintStart [00:50:11]Write to MH i2c: 01 00 00 B0 70 20 [00:50:11]Write i2c OK [00:50:11]MH_I2C_Read... [00:50:11]Read from MH i2c: 01 [00:50:11]MH_I2C_Read... [00:50:11]Read from MH i2c: 01 07 00 [00:50:11]MH_I2C_Read... [00:50:11]Read from MH i2c: 01 07 00 B0 70 00 00 00 00 00 FF 0F 35 [00:50:11]RasterBufferAndPrint [00:50:11]line Счет N : (1)347459 [00:50:11]line ИНН: 02508201610067 [00:50:11]line Контрольно-Кассовый Чек [00:50:11]line ПРОДАЖА [00:50:11]line ТРК (МРК, ГНК) : 42 [00:50:11]line Товар: 2710124130 [00:50:11]line Аи-92-К-5 [00:50:11]line 7.780 * 64.30 [00:50:11]line = 500.25 [00:50:11]line НДС 12% НСП 1% [00:50:11]line > о реализуемом товаре [00:50:11]line ИТОГО: 500.25 [00:50:11]line НСП 1% : 4.43 [00:50:11]line НДС 12% : 53.12 [00:50:11]line Наличными: 0.00 [00:50:11]line Безнал.: 500.25 [00:50:11]line Место: АЗС № 108 "Партнер Нефть" [00:50:11]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:50:11]line СНО: Общий режим [00:50:11]line Чек 2 14.04.2024 00:50 [00:50:11]line Смена: 116 ФФД: 1.0 [00:50:11]line ЗНМ: 0300000027 [00:50:11]line РНМ: 0000138879044617 [00:50:11]line Версия ККМ: 001 [00:50:11]line Платежная система: АКБ Кыргызстан [00:50:11]line ФМ: 0000000000963154 [00:50:11]line ФД: 29092 [00:50:11]line ФПД: 273159236108269 [00:50:11]line 1/tax-web-control/client/api/v1/ticket?date=20240414T005017&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29092&fm=273159236108269&tin=02508201610067®Number=0000138879044617&sum=50025 [00:50:11]OFD Sender: Processing packet 29092 [packets to send 8, broken 7] [00:50:11]ProducePacketName [00:50:11]name=ofd_packets/00029092 [00:50:11]OFD Sender: To server: pG, [00:50:11]CommunicateWithHost lk.salyk.kg:30040 [00:50:11]ConnectInit lk.salyk.kg [00:50:11]written 0, free lines is 4095 [00:50:12]Connected sock=10 [00:50: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 31 35 34 0F 01 00 00 B6 46 07 01 59 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 02 00 00 00 F4 03 04 00 49 28 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A4 71 00 00 35 04 06 00 F8 6F D7 3C 3F ED 22 88 38 CB 9A EE 60 EA [00:50:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 5C 88 47 00 5C 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 31 35 34 10 04 04 00 A4 71 00 00 F4 03 04 00 EE D2 1A 66 B6 04 01 00 00 5D C7 24 A3 84 ED 19 5F [00:50:12]CommunicateWithHost err = 0 [00:50:12]CheckOFDResponse [00:50:12]1017 (14) - 77093643461234 [00:50:12]1041 (16) - 0000000000963154 [00:50:12]1040 (4) - 29092 [00:50:12]1012 (4) - 13.04.2024 18:46 [00:50:12]1206 (1) - 0 [00:50:12]OFD Sender: Remove packet 29092 [00:50:12]ProducePacketName [00:50:12]name=ofd_packets/00029092 [00:50:12]NVStorageDeleteData [00:50:12]Write to MH i2c: 01 00 00 D9 70 49 [00:50:12]Write i2c OK [00:50:12]MH_I2C_Read... [00:50:12]Read from MH i2c: 01 [00:50:12]MH_I2C_Read... [00:50:12]Read from MH i2c: 01 07 00 [00:50:12]MH_I2C_Read... [00:50:12]Read from MH i2c: 01 07 00 D9 70 00 00 00 00 00 D9 0C 35 [00:50:12]RasterBufferAndPrint [00:50:12]line [00:50:12]line [00:50:12]line [00:50:12]line [00:50:12]line [00:50:12]written 0, free lines is 3295 [00:50:12]MH_Cut [00:50:12]Write to MH i2c: D1 01 00 E0 70 01 22 [00:50:12]Write i2c OK [00:50:12]MH_I2C_Read... [00:50:12]Read from MH i2c: D1 [00:50:12]MH_I2C_Read... [00:50:12]Read from MH i2c: D1 01 00 [00:50:12]MH_I2C_Read... [00:50:12]Read from MH i2c: D1 01 00 E0 70 00 21 [00:50:12]Write to MH i2c: 01 00 00 E1 70 51 [00:50:12]Write i2c OK [00:50:12]MH_I2C_Read... [00:50:12]OFD Sender: No OFD packet to send [00:50:13]*** Cut start [00:50:13]*** Partial cut [00:50:13]*** CUTSNS_PIN = 1 [00:50:13]*** CUTSNS_PIN = 0 [00:50:13]*** Brake cut motor [00:50:13]Read from MH i2c: 01 [00:50:13]MH_I2C_Read... [00:50:13]*** Stop cut motor [00:50:13]*** Cut end [00:50:13]Read from MH i2c: 01 07 00 [00:50:13]MH_I2C_Read... [00:50:13]Read from MH i2c: 01 07 00 E1 70 00 00 00 00 00 FF 0F 66 [00:50:13]process_action close_receipt done [00:50:13]requested_data is exist [00:50:13]produce_requested_data [00:50:13]requested_item fm.sn is exist - process it [00:50:13]wFMCommunicate request_size=4 [00:50:13]MH_SAM_APDU [00:50:13]CAPDU: 80 11 00 00 [00:50:13]Write to MH i2c: E2 08 00 E2 70 80 11 00 00 00 00 00 00 CC [00:50:13]Write i2c OK [00:50:13]MH_I2C_Read... [00:50:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:50:13]Read from MH i2c: E2 [00:50:13]MH_I2C_Read... [00:50:13]Read from MH i2c: E2 17 00 [00:50:13]MH_I2C_Read... [00:50:13]Read from MH i2c: E2 17 00 E2 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 1B [00:50:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:50:13]wFMCommunicate OK [00:50:13]requested_item fd.num is exist - process it [00:50:13]SAM_PROTO_GetFieldsCounters [00:50:13]wFMCommunicate request_size=4 [00:50:13]MH_SAM_APDU [00:50:13]CAPDU: 80 13 00 00 [00:50:13]Write to MH i2c: E2 08 00 E3 70 80 13 00 00 00 00 00 00 CF [00:50:13]Write i2c OK [00:50:13]MH_I2C_Read... [00:50:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:50:14]Read from MH i2c: E2 [00:50:14]MH_I2C_Read... [00:50:14]Read from MH i2c: E2 62 00 [00:50:14]MH_I2C_Read... [00:50:14]Read from MH i2c: E2 62 00 E3 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A4 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [00:50: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A4 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:50:14]wFMCommunicate OK [00:50:14]SAM_PROTO_GetFieldsCounters done [00:50:14]requested_item shift.num is exist - process it [00:50:14]requested_item shift.opened is exist - process it [00:50:14]req_shift_opened [00:50:14]FM_GetShiftState [00:50:14]SAM_PROTO_GetShiftState [00:50:14]wFMCommunicate request_size=4 [00:50:14]MH_SAM_APDU [00:50:14]CAPDU: 80 13 01 00 [00:50:14]Write to MH i2c: E2 08 00 E4 70 80 13 01 00 00 00 00 00 D1 [00:50:14]Write i2c OK [00:50:14]MH_I2C_Read... [00:50:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:50:14]Read from MH i2c: E2 [00:50:14]MH_I2C_Read... [00:50:14]Read from MH i2c: E2 0E 00 [00:50:14]MH_I2C_Read... [00:50:14]Read from MH i2c: E2 0E 00 E4 70 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 7D [00:50:14]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [00:50:14]wFMCommunicate OK [00:50:14]SAM_PROTO_GetShiftState done [00:50:14]FM_GetShiftState done [00:50:14]req_shift_opened done [00:50:14]requested_item shift.open_date is exist - process it [00:50:14]req_shift_open_date [00:50:14]req_shift_open_date done [00:50:14]produce_requested_data done [00:50:14]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29092,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [00:50:14]process_action_free close_receipt [00:50:14]json_value_free [00:50:14]json_value_free done [00:50:14]process_json_proto returns [00:50:14]Send response to host [00:50:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29092,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [00:50:14]free response buf [00:50:14]execute_script done [00:50:14]execute_script returns [00:50:14]free content buf [00:50:14]Sock 9.Close socket [00:50:14]Sock 9.Thread stoped [00:50:17]OFD Sender: No OFD packet to send [00:50:22]OFD Sender: No OFD packet to send [00:50:27]OFD Sender: No OFD packet to send [00:50:32]OFD Sender: No OFD packet to send [00:50:37]OFD Sender: No OFD packet to send [00:50:42]OFD Sender: No OFD packet to send [00:50:47]OFD Sender: No OFD packet to send [00:50:52]OFD Sender: No OFD packet to send [00:50:57]OFD Sender: No OFD packet to send [00:51:02]OFD Sender: No OFD packet to send [00:51:07]OFD Sender: No OFD packet to send [00:51:12]OFD Sender: No OFD packet to send [00:51:17]OFD Sender: No OFD packet to send [00:51:22]OFD Sender: No OFD packet to send [00:51:27]OFD Sender: No OFD packet to send [00:51:32]OFD Sender: No OFD packet to send [00:51:37]OFD Sender: No OFD packet to send [00:51:42]OFD Sender: No OFD packet to send [00:51:47]OFD Sender: No OFD packet to send [00:51:52]OFD Sender: No OFD packet to send [00:51:57]OFD Sender: No OFD packet to send [00:52:02]OFD Sender: No OFD packet to send [00:52:07]OFD Sender: No OFD packet to send [00:52:12]OFD Sender: No OFD packet to send [00:52:17]OFD Sender: No OFD packet to send [00:52:22]OFD Sender: No OFD packet to send [00:52:27]OFD Sender: No OFD packet to send [00:52:32]OFD Sender: No OFD packet to send [00:52:37]OFD Sender: No OFD packet to send [00:52:42]OFD Sender: No OFD packet to send [00:52:47]OFD Sender: No OFD packet to send [00:52:52]OFD Sender: No OFD packet to send [00:52:57]OFD Sender: No OFD packet to send [00:53:02]OFD Sender: No OFD packet to send [00:53:07]OFD Sender: No OFD packet to send [00:53:12]OFD Sender: No OFD packet to send [00:53:17]OFD Sender: No OFD packet to send [00:53:22]OFD Sender: No OFD packet to send [00:53:27]OFD Sender: No OFD packet to send [00:53:32]OFD Sender: No OFD packet to send [00:53:37]OFD Sender: No OFD packet to send [00:53:42]OFD Sender: No OFD packet to send [00:53:47]OFD Sender: No OFD packet to send [00:53:52]OFD Sender: No OFD packet to send [00:53:57]OFD Sender: No OFD packet to send [00:54:02]OFD Sender: No OFD packet to send [00:54:07]OFD Sender: No OFD packet to send [00:54:12]OFD Sender: No OFD packet to send [00:54:17]OFD Sender: No OFD packet to send [00:54:22]OFD Sender: No OFD packet to send [00:54:27]OFD Sender: No OFD packet to send [00:54:32]OFD Sender: No OFD packet to send [00:54:37]OFD Sender: No OFD packet to send [00:54:42]OFD Sender: No OFD packet to send [00:54:44]accept exits with 7 [00:54:44]New connection [00:54:44]New thread 3066785124 created [00:54:44]Thread 3066928484 joined [00:54:44]Waiting for new connection... [00:54:44] Sock 7.Parse request [00:54:44]Sock 7.Check first char [00:54:44]Sock 7.First char is OK [00:54:44]request: POST /json_proto HTTP/1.0 [00:54:44]Method: POST [00:54:44]URL: /json_proto [00:54:44]Method is POST - this is cgi request [00:54:44]url: /json_proto [00:54:44]query_string will be loaded in cgi processing [00:54:44]execute_cgi json_proto POST (null) [00:54:44]execute_cgi path=json_proto method=POST [00:54:44]POST find Content-Length [00:54:44]Host: 172.17.33.3:8080 [00:54:44]Content-Length: 670 [00:54:44]Content-Type: application/json [00:54:44] [00:54:44]POST finish read [00:54:44]Found Content-Length = 670 [00:54:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:54:44]execute_script... [00:54:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:54:44]POST & json_proto [00:54:44]process_json_proto [00:54:44]json parsed OK: [00:54:44]protocol is kg_v1.0 [00:54:44]action value=close_receipt [00:54:44]process_action close_receipt [00:54:44]cmd_close_receipt [00:54:44]MH_GetDate [00:54:44]Write to MH i2c: F0 00 00 E5 70 44 [00:54:44]Write i2c OK [00:54:44]MH_I2C_Read... [00:54:44]Read from MH i2c: F0 [00:54:44]MH_I2C_Read... [00:54:44]Read from MH i2c: F0 09 00 [00:54:44]MH_I2C_Read... [00:54:44]Read from MH i2c: F0 09 00 E5 70 00 5B 29 1B 66 23 5B 8F 65 C4 [00:54:44]GetLastDocTimeStamp 1713055817 [00:54:44]current date 1713056091 [00:54:44]FM_GetShiftState [00:54:44]SAM_PROTO_GetShiftState [00:54:44]wFMCommunicate request_size=4 [00:54:44]MH_SAM_APDU [00:54:44]CAPDU: 80 13 01 00 [00:54:44]Write to MH i2c: E2 08 00 E6 70 80 13 01 00 00 00 00 00 D3 [00:54:44]Write i2c OK [00:54:44]MH_I2C_Read... [00:54:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:54:44]Read from MH i2c: E2 [00:54:44]MH_I2C_Read... [00:54:44]Read from MH i2c: E2 0E 00 [00:54:44]MH_I2C_Read... [00:54:44]Read from MH i2c: E2 0E 00 E6 70 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 7F [00:54:44]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [00:54:44]wFMCommunicate OK [00:54:44]SAM_PROTO_GetShiftState done [00:54:44]FM_GetShiftState done [00:54:44]opened in 1713053951 [00:54:44]opened+sec_in_day 1713140351 [00:54:44]quantity*price = 50019 [00:54:44]sum+1 = 50021 [00:54:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 3 14.04.2024 00:54 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29093 ФПД: 272592685312273 1/tax-web-control/client/api/v1/ticket?date=20240414T005452&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29093&fm=272592685312273&tin=02508201610067®Number=0000138879044617&sum=50000 [00:54:45]StoreToDocumentArchive [00:54:45]shift 116 fd 29093 [00:54:45]save to /storage/0116/doc_00029093 [00:54:45]save last doc name /storage/0116/doc_00029093 to /storage/kkm_last_doc_name [00:54:45]save OK [00:54:45]Clear old archive folders... [00:54:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:54:45]tlvbuf is 011FB070 [00:54:45]SAM_PROTO_ClearQueue [00:54:45]wFMCommunicate request_size=4 [00:54:45]MH_SAM_APDU [00:54:45]CAPDU: 80 09 00 00 [00:54:45]Write to MH i2c: E2 08 00 F3 70 80 09 00 00 00 00 00 00 D5 [00:54:45]Write i2c OK [00:54:45]MH_I2C_Read... [00:54:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:54:45]Read from MH i2c: E2 [00:54:45]MH_I2C_Read... [00:54:45]Read from MH i2c: E2 03 00 [00:54:45]MH_I2C_Read... [00:54:45]Read from MH i2c: E2 03 00 F3 70 00 90 00 D7 [00:54:45]RAPDU: 90 00 [00:54:45]wFMCommunicate OK [00:54:45]SAM_PROTO_ClearQueue done [00:54:45]KKMCreateOFDPacket [00:54:45]OFDProtocolAddRootSTLVToBuf [00:54:45]FM_MakeSignedData [00:54:45]FM_MakeSignedData [00:54:45]SAM_PROTO_SignData [00:54:45]wFMCommunicate request_size=4 [00:54:45]MH_SAM_APDU [00:54:45]CAPDU: 80 0D 01 02 [00:54:45]Write to MH i2c: E2 08 00 F4 70 80 0D 01 02 00 00 00 00 DD [00:54:45]Write i2c OK [00:54:45]MH_I2C_Read... [00:54:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:54:45]Read from MH i2c: E2 [00:54:45]MH_I2C_Read... [00:54:45]Read from MH i2c: E2 03 00 [00:54:45]MH_I2C_Read... [00:54:45]Read from MH i2c: E2 03 00 F4 70 00 90 00 D8 [00:54:45]RAPDU: 90 00 [00:54:45]wFMCommunicate OK [00:54:45]wFMCommunicate request_size=255 [00:54:45]MH_SAM_APDU [00:54:45]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 03 00 00 00 F4 03 04 00 5C 29 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A5 71 00 00 35 04 06 00 [00:54:45]Write to MH i2c: E2 02 01 F5 70 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 03 00 00 00 F4 03 04 00 5C 29 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A5 71 00 00 35 04 06 00 00 00 C2 [00:54:45]Write i2c OK [00:54:45]MH_I2C_Read... [00:54:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:54:46]Read from MH i2c: E2 [00:54:46]MH_I2C_Read... [00:54:46]Read from MH i2c: E2 03 00 [00:54:46]MH_I2C_Read... [00:54:46]Read from MH i2c: E2 03 00 F5 70 00 90 00 D9 [00:54:46]RAPDU: 90 00 [00:54:46]wFMCommunicate OK [00:54:46]wFMCommunicate request_size=11 [00:54:46]MH_SAM_APDU [00:54:46]CAPDU: 80 0D 02 02 06 F7 EB EE 2D 29 11 [00:54:46]Write to MH i2c: E2 0E 00 F6 70 80 0D 02 02 06 00 F7 EB EE 2D 29 11 00 00 23 [00:54:46]Write i2c OK [00:54:46]MH_I2C_Read... [00:54:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:54:46]Read from MH i2c: E2 [00:54:46]MH_I2C_Read... [00:54:46]Read from MH i2c: E2 03 00 [00:54:46]MH_I2C_Read... [00:54:46]Read from MH i2c: E2 03 00 F6 70 00 90 00 DA [00:54:46]RAPDU: 90 00 [00:54:46]wFMCommunicate OK [00:54:46]wFMCommunicate request_size=4 [00:54:46]MH_SAM_APDU [00:54:46]CAPDU: 80 0D 03 02 [00:54:46]Write to MH i2c: E2 08 00 F7 70 80 0D 03 02 00 00 00 00 E2 [00:54:46]Write i2c OK [00:54:46]MH_I2C_Read... [00:54:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:54:46]Read from MH i2c: E2 [00:54:46]MH_I2C_Read... [00:54:46]Read from MH i2c: E2 0B 00 [00:54:46]MH_I2C_Read... [00:54:46]Read from MH i2c: E2 0B 00 F7 70 00 94 37 B5 D1 80 B2 AA 92 90 00 A2 [00:54:46]RAPDU: 94 37 B5 D1 80 B2 AA 92 90 00 [00:54:46]wFMCommunicate OK [00:54:46]SAM_PROTO_SignData done [00:54:46]FM_MakeSignedData done [00:54:46]CreateOFDProtocolMessage [00:54:46]wFMCommunicate request_size=4 [00:54:46]MH_SAM_APDU [00:54:46]CAPDU: 80 11 00 00 [00:54:46]Write to MH i2c: E2 08 00 F8 70 80 11 00 00 00 00 00 00 E2 [00:54:46]Write i2c OK [00:54:46]MH_I2C_Read... [00:54:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:54:46]Read from MH i2c: E2 [00:54:46]MH_I2C_Read... [00:54:46]Read from MH i2c: E2 17 00 [00:54:46]MH_I2C_Read... [00:54:46]Read from MH i2c: E2 17 00 F8 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 31 [00:54:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:54:46]wFMCommunicate OK [00:54:46]CreateOFDProtocolMessage done [00:54:46]OFDSenderStorePacket 29093 [00:54:46]StoreOFDPacket docnum=29093 [00:54:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 67 99 08 01 7D 44 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 03 00 00 00 F4 03 04 00 5C 29 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A5 71 00 00 35 04 06 00 F7 EB EE 2D 29 11 94 37 B5 D1 80 B2 AA 92 [00:54:46]CheckFolder [00:54:46]dirname=/storage/ofd_packets [00:54:46]CheckFolder done [00:54:46]ProducePacketName [00:54:46]name=ofd_packets/00029093 [00:54:46]NVStorageSaveData ofd_packets/00029093 [00:54:46]File name is /storage/ofd_packets/00029093 [00:54:46]Write 302 bytes [00:54:46]NVStorageSaveData done [00:54:46]OFDSenderStorePacket done [00:54:46]KKMCreateOFDPacket done [00:54:46]NVStorageSaveData kkm_last_timestamp [00:54:46]File name is /storage/kkm_last_timestamp [00:54:46]Write 4 bytes [00:54:46]NVStorageSaveData done [00:54:46]ExternCall_PrintAddStr [00:54:46]wPrintStart [00:54:46]Write to MH i2c: 01 00 00 F9 70 69 [00:54:46]Write i2c OK [00:54:46]MH_I2C_Read... [00:54:46]Read from MH i2c: 01 [00:54:46]MH_I2C_Read... [00:54:46]Read from MH i2c: 01 07 00 [00:54:46]MH_I2C_Read... [00:54:46]Read from MH i2c: 01 07 00 F9 70 00 00 00 00 00 FF 0F 7E [00:54:46]RasterBufferAndPrint [00:54:46]line Счет N : (1)347460 [00:54:46]line ИНН: 02508201610067 [00:54:46]line Контрольно-Кассовый Чек [00:54:46]line ПРОДАЖА [00:54:46]line ТРК (МРК, ГНК) : 22 [00:54:46]line Товар: 2710124130 [00:54:46]line SUPER-92-К-5 [00:54:46]line 7.660 * 65.30 [00:54:46]line = 500.20 [00:54:46]line НДС 12% НСП 1% [00:54:46]line > о реализуемом товаре [00:54:46]line ОКРУГЛЕНИЕ: -0.20 [00:54:46]line ИТОГО: 500.00 [00:54:46]line Внесено: 500.00 [00:54:46]line СДАЧА: 0.00 [00:54:46]line НСП 1% : 4.43 [00:54:46]line НДС 12% : 53.12 [00:54:46]line Наличными: 500.00 [00:54:46]line Безнал.: 0.00 [00:54:46]line Место: АЗС № 108 "Партнер Нефть" [00:54:46]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [00:54:46]line СНО: Общий режим [00:54:46]line Чек 3 14.04.2024 00:54 [00:54:46]line Смена: 116 ФФД: 1.0 [00:54:46]line ЗНМ: 0300000027 [00:54:46]line РНМ: 0000138879044617 [00:54:46]line Версия ККМ: 001 [00:54:46]line ФМ: 0000000000963154 [00:54:46]line ФД: 29093 [00:54:46]line ФПД: 272592685312273 [00:54:46]line 1/tax-web-control/client/api/v1/ticket?date=20240414T005452&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29093&fm=272592685312273&tin=02508201610067®Number=0000138879044617&sum=50000 [00:54:46]written 0, free lines is 4095 [00:54:46]OFD Sender: Processing packet 29093 [packets to send 8, broken 7] [00:54:46]ProducePacketName [00:54:46]name=ofd_packets/00029093 [00:54:46]OFD Sender: To server: pG, [00:54:46]CommunicateWithHost lk.salyk.kg:30040 [00:54:46]ConnectInit lk.salyk.kg [00:54:46]Connected sock=10 [00:54:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 01 00 00 67 99 08 01 7D 44 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 03 00 00 00 F4 03 04 00 5C 29 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A5 71 00 00 35 04 06 00 F7 EB EE 2D 29 11 94 37 B5 D1 80 B2 AA 92 [00: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 31 35 34 4F 00 00 00 CB 61 47 00 10 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 31 35 34 10 04 04 00 A5 71 00 00 F4 03 04 00 01 D4 1A 66 B6 04 01 00 00 34 88 CA E4 F3 48 BB 13 [00:54:46]CommunicateWithHost err = 0 [00:54:46]CheckOFDResponse [00:54:46]1017 (14) - 77093643461234 [00:54:46]1041 (16) - 0000000000963154 [00:54:46]1040 (4) - 29093 [00:54:46]1012 (4) - 13.04.2024 18:50 [00:54:46]1206 (1) - 0 [00:54:46]OFD Sender: Remove packet 29093 [00:54:46]ProducePacketName [00:54:46]name=ofd_packets/00029093 [00:54:46]NVStorageDeleteData [00:54:46]Write to MH i2c: 01 00 00 23 71 94 [00:54:46]Write i2c OK [00:54:46]MH_I2C_Read... [00:54:46]Read from MH i2c: 01 [00:54:46]MH_I2C_Read... [00:54:46]Read from MH i2c: 01 07 00 [00:54:46]MH_I2C_Read... [00:54:46]Read from MH i2c: 01 07 00 23 71 00 00 00 00 00 CA 0C 71 [00:54:46]RasterBufferAndPrint [00:54:46]line [00:54:46]line [00:54:46]line [00:54:46]line [00:54:46]line [00:54:46]written 0, free lines is 3278 [00:54:46]MH_Cut [00:54:46]Write to MH i2c: D1 01 00 2A 71 01 6D [00:54:46]Write i2c OK [00:54:46]MH_I2C_Read... [00:54:46]Read from MH i2c: D1 [00:54:46]MH_I2C_Read... [00:54:46]Read from MH i2c: D1 01 00 [00:54:46]MH_I2C_Read... [00:54:46]Read from MH i2c: D1 01 00 2A 71 00 6C [00:54:46]Write to MH i2c: 01 00 00 2B 71 9C [00:54:46]Write i2c OK [00:54:46]MH_I2C_Read... [00:54:47]OFD Sender: No OFD packet to send [00:54:47]*** Cut start [00:54:47]*** Partial cut [00:54:47]*** CUTSNS_PIN = 1 [00:54:47]*** CUTSNS_PIN = 0 [00:54:47]*** Brake cut motor [00:54:48]Read from MH i2c: 01 [00:54:48]MH_I2C_Read... [00:54:48]*** Stop cut motor [00:54:48]*** Cut end [00:54:48]Read from MH i2c: 01 07 00 [00:54:48]MH_I2C_Read... [00:54:48]Read from MH i2c: 01 07 00 2B 71 00 00 00 00 00 FF 0F B1 [00:54:48]process_action close_receipt done [00:54:48]requested_data is exist [00:54:48]produce_requested_data [00:54:48]requested_item fm.sn is exist - process it [00:54:48]wFMCommunicate request_size=4 [00:54:48]MH_SAM_APDU [00:54:48]CAPDU: 80 11 00 00 [00:54:48]Write to MH i2c: E2 08 00 2C 71 80 11 00 00 00 00 00 00 17 [00:54:48]Write i2c OK [00:54:48]MH_I2C_Read... [00:54:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:54:48]Read from MH i2c: E2 [00:54:48]MH_I2C_Read... [00:54:48]Read from MH i2c: E2 17 00 [00:54:48]MH_I2C_Read... [00:54:48]Read from MH i2c: E2 17 00 2C 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 66 [00:54:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [00:54:48]wFMCommunicate OK [00:54:48]requested_item fd.num is exist - process it [00:54:48]SAM_PROTO_GetFieldsCounters [00:54:48]wFMCommunicate request_size=4 [00:54:48]MH_SAM_APDU [00:54:48]CAPDU: 80 13 00 00 [00:54:48]Write to MH i2c: E2 08 00 2D 71 80 13 00 00 00 00 00 00 1A [00:54:48]Write i2c OK [00:54:48]MH_I2C_Read... [00:54:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:54:48]Read from MH i2c: E2 [00:54:48]MH_I2C_Read... [00:54:48]Read from MH i2c: E2 62 00 [00:54:48]MH_I2C_Read... [00:54:48]Read from MH i2c: E2 62 00 2D 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A5 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [00:54:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A5 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:54:48]wFMCommunicate OK [00:54:48]SAM_PROTO_GetFieldsCounters done [00:54:48]requested_item shift.num is exist - process it [00:54:48]requested_item shift.opened is exist - process it [00:54:48]req_shift_opened [00:54:48]FM_GetShiftState [00:54:48]SAM_PROTO_GetShiftState [00:54:48]wFMCommunicate request_size=4 [00:54:48]MH_SAM_APDU [00:54:48]CAPDU: 80 13 01 00 [00:54:48]Write to MH i2c: E2 08 00 2E 71 80 13 01 00 00 00 00 00 1C [00:54:48]Write i2c OK [00:54:48]MH_I2C_Read... [00:54:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:54:48]Read from MH i2c: E2 [00:54:48]MH_I2C_Read... [00:54:48]Read from MH i2c: E2 0E 00 [00:54:48]MH_I2C_Read... [00:54:48]Read from MH i2c: E2 0E 00 2E 71 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 C8 [00:54:48]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [00:54:48]wFMCommunicate OK [00:54:48]SAM_PROTO_GetShiftState done [00:54:48]FM_GetShiftState done [00:54:48]req_shift_opened done [00:54:48]requested_item shift.open_date is exist - process it [00:54:48]req_shift_open_date [00:54:48]req_shift_open_date done [00:54:48]produce_requested_data done [00:54:48]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29093,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [00:54:48]process_action_free close_receipt [00:54:48]json_value_free [00:54:48]json_value_free done [00:54:48]process_json_proto returns [00:54:48]Send response to host [00:54:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29093,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [00:54:48]free response buf [00:54:48]execute_script done [00:54:48]execute_script returns [00:54:48]free content buf [00:54:48]Sock 7.Close socket [00:54:48]Sock 7.Thread stoped [00:54:52]OFD Sender: No OFD packet to send [00:54:57]OFD Sender: No OFD packet to send [00:55:02]OFD Sender: No OFD packet to send [00:55:07]OFD Sender: No OFD packet to send [00:55:12]OFD Sender: No OFD packet to send [00:55:17]OFD Sender: No OFD packet to send [00:55:22]OFD Sender: No OFD packet to send [00:55:27]OFD Sender: No OFD packet to send [00:55:32]OFD Sender: No OFD packet to send [00:55:37]OFD Sender: No OFD packet to send [00:55:42]OFD Sender: No OFD packet to send [00:55:47]OFD Sender: No OFD packet to send [00:55:52]OFD Sender: No OFD packet to send [00:55:57]OFD Sender: No OFD packet to send [00:56:02]OFD Sender: No OFD packet to send [00:56:07]OFD Sender: No OFD packet to send [00:56:12]OFD Sender: No OFD packet to send [00:56:17]OFD Sender: No OFD packet to send [00:56:22]OFD Sender: No OFD packet to send [00:56:27]OFD Sender: No OFD packet to send [00:56:32]OFD Sender: No OFD packet to send [00:56:37]OFD Sender: No OFD packet to send [00:56:42]OFD Sender: No OFD packet to send [00:56:47]OFD Sender: No OFD packet to send [00:56:52]OFD Sender: No OFD packet to send [00:56:57]OFD Sender: No OFD packet to send [00:57:02]OFD Sender: No OFD packet to send [00:57:07]OFD Sender: No OFD packet to send [00:57:12]OFD Sender: No OFD packet to send [00:57:17]OFD Sender: No OFD packet to send [00:57:22]OFD Sender: No OFD packet to send [00:57:27]OFD Sender: No OFD packet to send [00:57:32]OFD Sender: No OFD packet to send [00:57:37]OFD Sender: No OFD packet to send [00:57:42]OFD Sender: No OFD packet to send [00:57:47]OFD Sender: No OFD packet to send [00:57:52]OFD Sender: No OFD packet to send [00:57:57]OFD Sender: No OFD packet to send [00:58:02]OFD Sender: No OFD packet to send [00:58:07]OFD Sender: No OFD packet to send [00:58:12]OFD Sender: No OFD packet to send [00:58:17]OFD Sender: No OFD packet to send [00:58:22]OFD Sender: No OFD packet to send [00:58:27]OFD Sender: No OFD packet to send [00:58:32]OFD Sender: No OFD packet to send [00:58:37]OFD Sender: No OFD packet to send [00:58:42]OFD Sender: No OFD packet to send [00:58:47]OFD Sender: No OFD packet to send [00:58:52]OFD Sender: No OFD packet to send [00:58:57]OFD Sender: No OFD packet to send [00:59:02]OFD Sender: No OFD packet to send [00:59:07]OFD Sender: No OFD packet to send [00:59:12]OFD Sender: No OFD packet to send [00:59:17]OFD Sender: No OFD packet to send [00:59:22]OFD Sender: No OFD packet to send [00:59:27]OFD Sender: No OFD packet to send [00:59:32]OFD Sender: No OFD packet to send [00:59:37]OFD Sender: No OFD packet to send [00:59:42]OFD Sender: No OFD packet to send [00:59:47]OFD Sender: No OFD packet to send [00:59:52]OFD Sender: No OFD packet to send [00:59:57]OFD Sender: No OFD packet to send [01:00:02]OFD Sender: No OFD packet to send [01:00:07]OFD Sender: No OFD packet to send [01:00:12]OFD Sender: No OFD packet to send [01:00:17]OFD Sender: No OFD packet to send [01:00:22]OFD Sender: No OFD packet to send [01:00:27]OFD Sender: No OFD packet to send [01:00:32]OFD Sender: No OFD packet to send [01:00:37]OFD Sender: No OFD packet to send [01:00:42]OFD Sender: No OFD packet to send [01:00:47]OFD Sender: No OFD packet to send [01:00:52]OFD Sender: No OFD packet to send [01:00:57]OFD Sender: No OFD packet to send [01:01:02]OFD Sender: No OFD packet to send [01:01:07]OFD Sender: No OFD packet to send [01:01:12]OFD Sender: No OFD packet to send [01:01:17]OFD Sender: No OFD packet to send [01:01:22]OFD Sender: No OFD packet to send [01:01:27]OFD Sender: No OFD packet to send [01:01:32]OFD Sender: No OFD packet to send [01:01:37]OFD Sender: No OFD packet to send [01:01:42]OFD Sender: No OFD packet to send [01:01:47]OFD Sender: No OFD packet to send [01:01:52]OFD Sender: No OFD packet to send [01:01:57]OFD Sender: No OFD packet to send [01:02:02]OFD Sender: No OFD packet to send [01:02:07]OFD Sender: No OFD packet to send [01:02:12]OFD Sender: No OFD packet to send [01:02:17]OFD Sender: No OFD packet to send [01:02:22]OFD Sender: No OFD packet to send [01:02:27]OFD Sender: No OFD packet to send [01:02:32]OFD Sender: No OFD packet to send [01:02:37]OFD Sender: No OFD packet to send [01:02:42]OFD Sender: No OFD packet to send [01:02:47]OFD Sender: No OFD packet to send [01:02:52]OFD Sender: No OFD packet to send [01:02:57]OFD Sender: No OFD packet to send [01:03:02]OFD Sender: No OFD packet to send [01:03:07]OFD Sender: No OFD packet to send [01:03:12]OFD Sender: No OFD packet to send [01:03:17]OFD Sender: No OFD packet to send [01:03:22]OFD Sender: No OFD packet to send [01:03:27]OFD Sender: No OFD packet to send [01:03:32]OFD Sender: No OFD packet to send [01:03:37]OFD Sender: No OFD packet to send [01:03:42]OFD Sender: No OFD packet to send [01:03:47]OFD Sender: No OFD packet to send [01:03:52]OFD Sender: No OFD packet to send [01:03:57]OFD Sender: No OFD packet to send [01:04:02]OFD Sender: No OFD packet to send [01:04:07]OFD Sender: No OFD packet to send [01:04:12]OFD Sender: No OFD packet to send [01:04:17]OFD Sender: No OFD packet to send [01:04:22]OFD Sender: No OFD packet to send [01:04:27]OFD Sender: No OFD packet to send [01:04:32]OFD Sender: No OFD packet to send [01:04:37]OFD Sender: No OFD packet to send [01:04:42]OFD Sender: No OFD packet to send [01:04:47]OFD Sender: No OFD packet to send [01:04:52]OFD Sender: No OFD packet to send [01:04:57]OFD Sender: No OFD packet to send [01:05:02]OFD Sender: No OFD packet to send [01:05:07]OFD Sender: No OFD packet to send [01:05:12]OFD Sender: No OFD packet to send [01:05:17]OFD Sender: No OFD packet to send [01:05:22]OFD Sender: No OFD packet to send [01:05:27]OFD Sender: No OFD packet to send [01:05:32]OFD Sender: No OFD packet to send [01:05:37]OFD Sender: No OFD packet to send [01:05:42]OFD Sender: No OFD packet to send [01:05:47]OFD Sender: No OFD packet to send [01:05:52]OFD Sender: No OFD packet to send [01:05:57]OFD Sender: No OFD packet to send [01:06:02]OFD Sender: No OFD packet to send [01:06:07]OFD Sender: No OFD packet to send [01:06:12]OFD Sender: No OFD packet to send [01:06:17]OFD Sender: No OFD packet to send [01:06:22]OFD Sender: No OFD packet to send [01:06:27]OFD Sender: No OFD packet to send [01:06:32]OFD Sender: No OFD packet to send [01:06:37]OFD Sender: No OFD packet to send [01:06:42]OFD Sender: No OFD packet to send [01:06:47]OFD Sender: No OFD packet to send [01:06:52]OFD Sender: No OFD packet to send [01:06:57]OFD Sender: No OFD packet to send [01:07:02]OFD Sender: No OFD packet to send [01:07:07]OFD Sender: No OFD packet to send [01:07:12]OFD Sender: No OFD packet to send [01:07:17]OFD Sender: No OFD packet to send [01:07:22]OFD Sender: No OFD packet to send [01:07:27]OFD Sender: No OFD packet to send [01:07:32]OFD Sender: No OFD packet to send [01:07:37]OFD Sender: No OFD packet to send [01:07:42]OFD Sender: No OFD packet to send [01:07:47]OFD Sender: No OFD packet to send [01:07:52]OFD Sender: No OFD packet to send [01:07:57]OFD Sender: No OFD packet to send [01:08:02]OFD Sender: No OFD packet to send [01:08:07]OFD Sender: No OFD packet to send [01:08:12]OFD Sender: No OFD packet to send [01:08:17]OFD Sender: No OFD packet to send [01:08:22]OFD Sender: No OFD packet to send [01:08:27]OFD Sender: No OFD packet to send [01:08:32]OFD Sender: No OFD packet to send [01:08:37]OFD Sender: No OFD packet to send [01:08:42]OFD Sender: No OFD packet to send [01:08:47]OFD Sender: No OFD packet to send [01:08:52]OFD Sender: No OFD packet to send [01:08:57]OFD Sender: No OFD packet to send [01:09:02]OFD Sender: No OFD packet to send [01:09:07]OFD Sender: No OFD packet to send [01:09:12]OFD Sender: No OFD packet to send [01:09:17]OFD Sender: No OFD packet to send [01:09:22]OFD Sender: No OFD packet to send [01:09:27]OFD Sender: No OFD packet to send [01:09:32]OFD Sender: No OFD packet to send [01:09:37]OFD Sender: No OFD packet to send [01:09:42]OFD Sender: No OFD packet to send [01:09:47]OFD Sender: No OFD packet to send [01:09:52]OFD Sender: No OFD packet to send [01:09:57]OFD Sender: No OFD packet to send [01:10:02]OFD Sender: No OFD packet to send [01:10:07]OFD Sender: No OFD packet to send [01:10:12]OFD Sender: No OFD packet to send [01:10:17]OFD Sender: No OFD packet to send [01:10:22]OFD Sender: No OFD packet to send [01:10:27]OFD Sender: No OFD packet to send [01:10:32]OFD Sender: No OFD packet to send [01:10:37]OFD Sender: No OFD packet to send [01:10:42]OFD Sender: No OFD packet to send [01:10:47]OFD Sender: No OFD packet to send [01:10:52]OFD Sender: No OFD packet to send [01:10:57]OFD Sender: No OFD packet to send [01:11:02]OFD Sender: No OFD packet to send [01:11:07]OFD Sender: No OFD packet to send [01:11:12]OFD Sender: No OFD packet to send [01:11:17]OFD Sender: No OFD packet to send [01:11:22]OFD Sender: No OFD packet to send [01:11:27]OFD Sender: No OFD packet to send [01:11:32]OFD Sender: No OFD packet to send [01:11:37]OFD Sender: No OFD packet to send [01:11:42]OFD Sender: No OFD packet to send [01:11:47]OFD Sender: No OFD packet to send [01:11:52]OFD Sender: No OFD packet to send [01:11:57]OFD Sender: No OFD packet to send [01:12:02]OFD Sender: No OFD packet to send [01:12:07]OFD Sender: No OFD packet to send [01:12:12]OFD Sender: No OFD packet to send [01:12:17]OFD Sender: No OFD packet to send [01:12:22]OFD Sender: No OFD packet to send [01:12:27]OFD Sender: No OFD packet to send [01:12:32]OFD Sender: No OFD packet to send [01:12:37]OFD Sender: No OFD packet to send [01:12:42]OFD Sender: No OFD packet to send [01:12:47]OFD Sender: No OFD packet to send [01:12:52]OFD Sender: No OFD packet to send [01:12:57]OFD Sender: No OFD packet to send [01:13:02]OFD Sender: No OFD packet to send [01:13:07]OFD Sender: No OFD packet to send [01:13:12]OFD Sender: No OFD packet to send [01:13:17]OFD Sender: No OFD packet to send [01:13:22]OFD Sender: No OFD packet to send [01:13:27]OFD Sender: No OFD packet to send [01:13:32]OFD Sender: No OFD packet to send [01:13:37]OFD Sender: No OFD packet to send [01:13:42]OFD Sender: No OFD packet to send [01:13:47]OFD Sender: No OFD packet to send [01:13:52]OFD Sender: No OFD packet to send [01:13:57]OFD Sender: No OFD packet to send [01:14:02]OFD Sender: No OFD packet to send [01:14:07]OFD Sender: No OFD packet to send [01:14:13]OFD Sender: No OFD packet to send [01:14:18]OFD Sender: No OFD packet to send [01:14:23]OFD Sender: No OFD packet to send [01:14:28]OFD Sender: No OFD packet to send [01:14:33]OFD Sender: No OFD packet to send [01:14:38]OFD Sender: No OFD packet to send [01:14:43]OFD Sender: No OFD packet to send [01:14:48]OFD Sender: No OFD packet to send [01:14:53]OFD Sender: No OFD packet to send [01:14:58]OFD Sender: No OFD packet to send [01:15:03]OFD Sender: No OFD packet to send [01:15:08]OFD Sender: No OFD packet to send [01:15:13]OFD Sender: No OFD packet to send [01:15:18]OFD Sender: No OFD packet to send [01:15:23]OFD Sender: No OFD packet to send [01:15:28]OFD Sender: No OFD packet to send [01:15:33]OFD Sender: No OFD packet to send [01:15:38]OFD Sender: No OFD packet to send [01:15:43]OFD Sender: No OFD packet to send [01:15:48]OFD Sender: No OFD packet to send [01:15:53]OFD Sender: No OFD packet to send [01:15:58]OFD Sender: No OFD packet to send [01:16:03]OFD Sender: No OFD packet to send [01:16:08]OFD Sender: No OFD packet to send [01:16:13]OFD Sender: No OFD packet to send [01:16:18]OFD Sender: No OFD packet to send [01:16:23]OFD Sender: No OFD packet to send [01:16:28]OFD Sender: No OFD packet to send [01:16:33]OFD Sender: No OFD packet to send [01:16:38]OFD Sender: No OFD packet to send [01:16:41]accept exits with 9 [01:16:41]New connection [01:16:41]New thread 3066928484 created [01:16:41]Thread 3066785124 joined [01:16:41]Waiting for new connection... [01:16:41] Sock 9.Parse request [01:16:41]Sock 9.Check first char [01:16:41]Sock 9.First char is OK [01:16:41]request: POST /json_proto HTTP/1.0 [01:16:41]Method: POST [01:16:41]URL: /json_proto [01:16:41]Method is POST - this is cgi request [01:16:41]url: /json_proto [01:16:41]query_string will be loaded in cgi processing [01:16:41]execute_cgi json_proto POST (null) [01:16:41]execute_cgi path=json_proto method=POST [01:16:41]POST find Content-Length [01:16:41]Host: 172.17.33.3:8080 [01:16:41]Content-Length: 844 [01:16:41]Content-Type: application/json [01:16:41] [01:16:41]POST finish read [01:16:41]Found Content-Length = 844 [01:16:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 22.800, "sum" : 750.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 750.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:16:41]execute_script... [01: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)347461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 22.800, "sum" : 750.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 750.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:16:41]POST & json_proto [01:16:41]process_json_proto [01:16:41]json parsed OK: [01:16:41]protocol is kg_v1.0 [01:16:41]action value=close_receipt [01:16:41]process_action close_receipt [01:16:41]cmd_close_receipt [01:16:41]MH_GetDate [01:16:41]Write to MH i2c: F0 00 00 2F 71 8F [01:16:41]Write i2c OK [01:16:41]MH_I2C_Read... [01:16:41]Read from MH i2c: F0 [01:16:41]MH_I2C_Read... [01:16:41]Read from MH i2c: F0 09 00 [01:16:41]MH_I2C_Read... [01:16:41]Read from MH i2c: F0 09 00 2F 71 00 81 2E 1B 66 23 5B 8F 65 3A [01:16:41]GetLastDocTimeStamp 1713056092 [01:16:41]current date 1713057409 [01:16:41]FM_GetShiftState [01:16:41]SAM_PROTO_GetShiftState [01:16:41]wFMCommunicate request_size=4 [01:16:41]MH_SAM_APDU [01:16:41]CAPDU: 80 13 01 00 [01:16:41]Write to MH i2c: E2 08 00 30 71 80 13 01 00 00 00 00 00 1E [01:16:41]Write i2c OK [01:16:41]MH_I2C_Read... [01:16:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:16:41]Read from MH i2c: E2 [01:16:41]MH_I2C_Read... [01:16:41]Read from MH i2c: E2 0E 00 [01:16:41]MH_I2C_Read... [01:16:41]Read from MH i2c: E2 0E 00 30 71 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 CA [01:16:41]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [01:16:41]wFMCommunicate OK [01:16:41]SAM_PROTO_GetShiftState done [01:16:41]FM_GetShiftState done [01:16:41]opened in 1713053951 [01:16:41]opened+sec_in_day 1713140351 [01:16:41]quantity*price = 75012 [01:16:41]sum+1 = 75013 [01:16:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 750.12 НСП 1% : 6.64 НДС 12% : 79.66 Наличными: 0.00 Безнал.: 750.12 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 4 14.04.2024 01:16 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29094 ФПД: 221187202466603 1/tax-web-control/client/api/v1/ticket?date=20240414T011649&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29094&fm=221187202466603&tin=02508201610067®Number=0000138879044617&sum=75012 [01:16:42]StoreToDocumentArchive [01:16:42]shift 116 fd 29094 [01:16:42]save to /storage/0116/doc_00029094 [01:16:42]save last doc name /storage/0116/doc_00029094 to /storage/kkm_last_doc_name [01:16:42]save OK [01:16:42]Clear old archive folders... [01:16:42]ProcessDocumentItem done err = 0, tmpTLVsize=250 [01:16:42]tlvbuf is 01210430 [01:16:42]SAM_PROTO_ClearQueue [01:16:42]wFMCommunicate request_size=4 [01:16:42]MH_SAM_APDU [01:16:42]CAPDU: 80 09 00 00 [01:16:42]Write to MH i2c: E2 08 00 3D 71 80 09 00 00 00 00 00 00 20 [01:16:42]Write i2c OK [01:16:42]MH_I2C_Read... [01:16:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:16:42]Read from MH i2c: E2 [01:16:42]MH_I2C_Read... [01:16:42]Read from MH i2c: E2 03 00 [01:16:42]MH_I2C_Read... [01:16:42]Read from MH i2c: E2 03 00 3D 71 00 90 00 22 [01:16:42]RAPDU: 90 00 [01:16:42]wFMCommunicate OK [01:16:42]SAM_PROTO_ClearQueue done [01:16:42]KKMCreateOFDPacket [01:16:42]OFDProtocolAddRootSTLVToBuf [01:16:42]FM_MakeSignedData [01:16:42]FM_MakeSignedData [01:16:42]SAM_PROTO_SignData [01:16:42]wFMCommunicate request_size=4 [01:16:42]MH_SAM_APDU [01:16:42]CAPDU: 80 0D 01 02 [01:16:42]Write to MH i2c: E2 08 00 3E 71 80 0D 01 02 00 00 00 00 28 [01:16:42]Write i2c OK [01:16:42]MH_I2C_Read... [01:16:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:16:42]Read from MH i2c: E2 [01:16:42]MH_I2C_Read... [01:16:42]Read from MH i2c: E2 03 00 [01:16:42]MH_I2C_Read... [01:16:42]Read from MH i2c: E2 03 00 3E 71 00 90 00 23 [01:16:42]RAPDU: 90 00 [01:16:42]wFMCommunicate OK [01:16:42]wFMCommunicate request_size=255 [01:16:42]MH_SAM_APDU [01:16:42]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 04 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 81 2E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A6 71 00 00 35 04 06 00 C9 2B [01:16:42]Write to MH i2c: E2 02 01 3F 71 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 04 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 81 2E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A6 71 00 00 35 04 06 00 C9 2B 00 00 56 [01:16:42]Write i2c OK [01:16:42]MH_I2C_Read... [01:16:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:16:43]Read from MH i2c: E2 [01:16:43]MH_I2C_Read... [01:16:43]Read from MH i2c: E2 03 00 [01:16:43]MH_I2C_Read... [01:16:43]Read from MH i2c: E2 03 00 3F 71 00 90 00 24 [01:16:43]RAPDU: 90 00 [01:16:43]wFMCommunicate OK [01:16:43]wFMCommunicate request_size=9 [01:16:43]MH_SAM_APDU [01:16:43]CAPDU: 80 0D 02 02 04 28 A1 C3 2B [01:16:43]Write to MH i2c: E2 0C 00 40 71 80 0D 02 02 04 00 28 A1 C3 2B 00 00 EA [01:16:43]OFD Sender: No OFD packet to send [01:16:43]Write i2c OK [01:16:43]MH_I2C_Read... [01:16:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:16:43]Read from MH i2c: E2 [01:16:43]MH_I2C_Read... [01:16:43]Read from MH i2c: E2 03 00 [01:16:43]MH_I2C_Read... [01:16:43]Read from MH i2c: E2 03 00 40 71 00 90 00 25 [01:16:43]RAPDU: 90 00 [01:16:43]wFMCommunicate OK [01:16:43]wFMCommunicate request_size=4 [01:16:43]MH_SAM_APDU [01:16:43]CAPDU: 80 0D 03 02 [01:16:43]Write to MH i2c: E2 08 00 41 71 80 0D 03 02 00 00 00 00 2D [01:16:43]Write i2c OK [01:16:43]MH_I2C_Read... [01:16:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:16:43]Read from MH i2c: E2 [01:16:43]MH_I2C_Read... [01:16:43]Read from MH i2c: E2 0B 00 [01:16:43]MH_I2C_Read... [01:16:43]Read from MH i2c: E2 0B 00 41 71 00 F1 05 FE B0 4C 6A D4 94 90 00 F0 [01:16:43]RAPDU: F1 05 FE B0 4C 6A D4 94 90 00 [01:16:43]wFMCommunicate OK [01:16:43]SAM_PROTO_SignData done [01:16:43]FM_MakeSignedData done [01:16:43]CreateOFDProtocolMessage [01:16:43]wFMCommunicate request_size=4 [01:16:43]MH_SAM_APDU [01:16:43]CAPDU: 80 11 00 00 [01:16:43]Write to MH i2c: E2 08 00 42 71 80 11 00 00 00 00 00 00 2D [01:16:43]Write i2c OK [01:16:43]MH_I2C_Read... [01:16:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:16:43]Read from MH i2c: E2 [01:16:43]MH_I2C_Read... [01:16:43]Read from MH i2c: E2 17 00 [01:16:43]MH_I2C_Read... [01:16:43]Read from MH i2c: E2 17 00 42 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 7C [01:16:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [01:16:43]wFMCommunicate OK [01:16:43]CreateOFDProtocolMessage done [01:16:43]OFDSenderStorePacket 29094 [01:16:43]StoreOFDPacket docnum=29094 [01:16:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 58 95 06 01 FF 00 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 04 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 81 2E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A6 71 00 00 35 04 06 00 C9 2B 28 A1 C3 2B F1 05 FE B0 4C 6A D4 94 [01:16:43]CheckFolder [01:16:43]dirname=/storage/ofd_packets [01:16:43]CheckFolder done [01:16:43]ProducePacketName [01:16:43]name=ofd_packets/00029094 [01:16:43]NVStorageSaveData ofd_packets/00029094 [01:16:43]File name is /storage/ofd_packets/00029094 [01:16:43]Write 300 bytes [01:16:43]NVStorageSaveData done [01:16:43]OFDSenderStorePacket done [01:16:43]KKMCreateOFDPacket done [01:16:43]NVStorageSaveData kkm_last_timestamp [01:16:43]File name is /storage/kkm_last_timestamp [01:16:43]Write 4 bytes [01:16:43]NVStorageSaveData done [01:16:43]ExternCall_PrintAddStr [01:16:43]wPrintStart [01:16:43]Write to MH i2c: 01 00 00 43 71 B4 [01:16:43]Write i2c OK [01:16:43]MH_I2C_Read... [01:16:43]Read from MH i2c: 01 [01:16:43]MH_I2C_Read... [01:16:43]Read from MH i2c: 01 07 00 [01:16:43]MH_I2C_Read... [01:16:43]Read from MH i2c: 01 07 00 43 71 00 00 00 00 00 FF 0F C9 [01:16:43]RasterBufferAndPrint [01:16:43]line Счет N : (1)347461 [01:16:43]line ИНН: 02508201610067 [01:16:43]line Контрольно-Кассовый Чек [01:16:43]line ПРОДАЖА [01:16:43]line ТРК (МРК, ГНК) : 71 [01:16:43]line Товар: 2711129700 [01:16:43]line ГАЗ-К-5 [01:16:43]line 22.800 * 32.90 [01:16:43]line = 750.12 [01:16:43]line НДС 12% НСП 1% [01:16:43]line > о реализуемом товаре [01:16:43]line ИТОГО: 750.12 [01:16:43]line НСП 1% : 6.64 [01:16:43]line НДС 12% : 79.66 [01:16:43]line Наличными: 0.00 [01:16:43]line Безнал.: 750.12 [01:16:43]line Место: АЗС № 108 "Партнер Нефть" [01:16:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [01:16:43]line СНО: Общий режим [01:16:43]line Чек 4 14.04.2024 01:16 [01:16:43]line Смена: 116 ФФД: 1.0 [01:16:43]line ЗНМ: 0300000027 [01:16:43]line РНМ: 0000138879044617 [01:16:43]line Версия ККМ: 001 [01:16:43]line Платежная система: АКБ Кыргызстан [01:16:43]line ФМ: 0000000000963154 [01:16:43]line ФД: 29094 [01:16:43]line ФПД: 221187202466603 [01:16:43]line 1/tax-web-control/client/api/v1/ticket?date=20240414T011649&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29094&fm=221187202466603&tin=02508201610067®Number=0000138879044617&sum=75012 [01:16:43]OFD Sender: Processing packet 29094 [packets to send 8, broken 7] [01:16:43]ProducePacketName [01:16:43]name=ofd_packets/00029094 [01:16:43]OFD Sender: To server: pG, [01:16:43]CommunicateWithHost lk.salyk.kg:30040 [01:16:43]ConnectInit lk.salyk.kg [01:16:43]written 0, free lines is 4095 [01:16:43]Connected sock=10 [01: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 31 35 34 0E 01 00 00 58 95 06 01 FF 00 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 04 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 81 2E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A6 71 00 00 35 04 06 00 C9 2B 28 A1 C3 2B F1 05 FE B0 4C 6A D4 94 [01: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 31 35 34 4F 00 00 00 65 30 47 00 67 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 31 35 34 10 04 04 00 A6 71 00 00 F4 03 04 00 26 D9 1A 66 B6 04 01 00 00 FA F4 0D 82 C0 81 3C 19 [01:16:43]CommunicateWithHost err = 0 [01:16:43]CheckOFDResponse [01:16:43]1017 (14) - 77093643461234 [01:16:43]1041 (16) - 0000000000963154 [01:16:43]1040 (4) - 29094 [01:16:43]1012 (4) - 13.04.2024 19:12 [01:16:43]1206 (1) - 0 [01:16:43]OFD Sender: Remove packet 29094 [01:16:43]ProducePacketName [01:16:43]name=ofd_packets/00029094 [01:16:43]NVStorageDeleteData [01:16:44]Write to MH i2c: 01 00 00 6C 71 DD [01:16:44]Write i2c OK [01:16:44]MH_I2C_Read... [01:16:44]Read from MH i2c: 01 [01:16:44]MH_I2C_Read... [01:16:44]Read from MH i2c: 01 07 00 [01:16:44]MH_I2C_Read... [01:16:44]Read from MH i2c: 01 07 00 6C 71 00 00 00 00 00 CF 0C BF [01:16:44]RasterBufferAndPrint [01:16:44]line [01:16:44]line [01:16:44]line [01:16:44]line [01:16:44]line [01:16:44]written 0, free lines is 3283 [01:16:44]MH_Cut [01:16:44]Write to MH i2c: D1 01 00 73 71 01 B6 [01:16:44]Write i2c OK [01:16:44]MH_I2C_Read... [01:16:44]Read from MH i2c: D1 [01:16:44]MH_I2C_Read... [01:16:44]Read from MH i2c: D1 01 00 [01:16:44]MH_I2C_Read... [01:16:44]Read from MH i2c: D1 01 00 73 71 00 B5 [01:16:44]Write to MH i2c: 01 00 00 74 71 E5 [01:16:44]Write i2c OK [01:16:44]MH_I2C_Read... [01:16:44]OFD Sender: No OFD packet to send [01:16:44]*** Cut start [01:16:44]*** Partial cut [01:16:44]*** CUTSNS_PIN = 1 [01:16:44]*** CUTSNS_PIN = 0 [01:16:45]*** Brake cut motor [01:16:45]Read from MH i2c: 01 [01:16:45]MH_I2C_Read... [01:16:45]*** Stop cut motor [01:16:45]*** Cut end [01:16:45]Read from MH i2c: 01 07 00 [01:16:45]MH_I2C_Read... [01:16:45]Read from MH i2c: 01 07 00 74 71 00 00 00 00 00 FF 0F FA [01:16:45]process_action close_receipt done [01:16:45]requested_data is exist [01:16:45]produce_requested_data [01:16:45]requested_item fm.sn is exist - process it [01:16:45]wFMCommunicate request_size=4 [01:16:45]MH_SAM_APDU [01:16:45]CAPDU: 80 11 00 00 [01:16:45]Write to MH i2c: E2 08 00 75 71 80 11 00 00 00 00 00 00 60 [01:16:45]Write i2c OK [01:16:45]MH_I2C_Read... [01:16:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:16:45]Read from MH i2c: E2 [01:16:45]MH_I2C_Read... [01:16:45]Read from MH i2c: E2 17 00 [01:16:45]MH_I2C_Read... [01:16:45]Read from MH i2c: E2 17 00 75 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 AF [01:16:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [01:16:45]wFMCommunicate OK [01:16:45]requested_item fd.num is exist - process it [01:16:45]SAM_PROTO_GetFieldsCounters [01:16:45]wFMCommunicate request_size=4 [01:16:45]MH_SAM_APDU [01:16:45]CAPDU: 80 13 00 00 [01:16:45]Write to MH i2c: E2 08 00 76 71 80 13 00 00 00 00 00 00 63 [01:16:45]Write i2c OK [01:16:45]MH_I2C_Read... [01:16:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:16:45]Read from MH i2c: E2 [01:16:45]MH_I2C_Read... [01:16:45]Read from MH i2c: E2 62 00 [01:16:45]MH_I2C_Read... [01:16:45]Read from MH i2c: E2 62 00 76 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A6 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [01: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A6 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:16:45]wFMCommunicate OK [01:16:45]SAM_PROTO_GetFieldsCounters done [01:16:45]requested_item shift.num is exist - process it [01:16:45]requested_item shift.opened is exist - process it [01:16:45]req_shift_opened [01:16:45]FM_GetShiftState [01:16:45]SAM_PROTO_GetShiftState [01:16:45]wFMCommunicate request_size=4 [01:16:45]MH_SAM_APDU [01:16:45]CAPDU: 80 13 01 00 [01:16:45]Write to MH i2c: E2 08 00 77 71 80 13 01 00 00 00 00 00 65 [01:16:45]Write i2c OK [01:16:45]MH_I2C_Read... [01:16:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:16:45]Read from MH i2c: E2 [01:16:45]MH_I2C_Read... [01:16:45]Read from MH i2c: E2 0E 00 [01:16:45]MH_I2C_Read... [01:16:45]Read from MH i2c: E2 0E 00 77 71 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 11 [01:16:45]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [01:16:45]wFMCommunicate OK [01:16:45]SAM_PROTO_GetShiftState done [01:16:45]FM_GetShiftState done [01:16:45]req_shift_opened done [01:16:45]requested_item shift.open_date is exist - process it [01:16:45]req_shift_open_date [01:16:45]req_shift_open_date done [01:16:45]produce_requested_data done [01:16:45]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29094,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [01:16:45]process_action_free close_receipt [01:16:45]json_value_free [01:16:45]json_value_free done [01:16:45]process_json_proto returns [01:16:45]Send response to host [01:16:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29094,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [01:16:45]free response buf [01:16:45]execute_script done [01:16:45]execute_script returns [01:16:45]free content buf [01:16:45]Sock 9.Close socket [01:16:45]Sock 9.Thread stoped [01:16:49]OFD Sender: No OFD packet to send [01:16:54]OFD Sender: No OFD packet to send [01:16:59]OFD Sender: No OFD packet to send [01:17:04]OFD Sender: No OFD packet to send [01:17:09]OFD Sender: No OFD packet to send [01:17:14]OFD Sender: No OFD packet to send [01:17:19]OFD Sender: No OFD packet to send [01:17:24]OFD Sender: No OFD packet to send [01:17:29]OFD Sender: No OFD packet to send [01:17:34]OFD Sender: No OFD packet to send [01:17:39]OFD Sender: No OFD packet to send [01:17:44]OFD Sender: No OFD packet to send [01:17:49]OFD Sender: No OFD packet to send [01:17:54]OFD Sender: No OFD packet to send [01:17:59]OFD Sender: No OFD packet to send [01:18:04]OFD Sender: No OFD packet to send [01:18:09]OFD Sender: No OFD packet to send [01:18:14]OFD Sender: No OFD packet to send [01:18:19]OFD Sender: No OFD packet to send [01:18:24]OFD Sender: No OFD packet to send [01:18:29]OFD Sender: No OFD packet to send [01:18:34]OFD Sender: No OFD packet to send [01:18:39]OFD Sender: No OFD packet to send [01:18:44]OFD Sender: No OFD packet to send [01:18:49]OFD Sender: No OFD packet to send [01:18:54]OFD Sender: No OFD packet to send [01:18:59]OFD Sender: No OFD packet to send [01:19:04]OFD Sender: No OFD packet to send [01:19:09]OFD Sender: No OFD packet to send [01:19:14]OFD Sender: No OFD packet to send [01:19:19]OFD Sender: No OFD packet to send [01:19:24]OFD Sender: No OFD packet to send [01:19:29]OFD Sender: No OFD packet to send [01:19:34]OFD Sender: No OFD packet to send [01:19:39]OFD Sender: No OFD packet to send [01:19:44]OFD Sender: No OFD packet to send [01:19:49]OFD Sender: No OFD packet to send [01:19:54]OFD Sender: No OFD packet to send [01:19:59]OFD Sender: No OFD packet to send [01:20:04]OFD Sender: No OFD packet to send [01:20:09]OFD Sender: No OFD packet to send [01:20:14]OFD Sender: No OFD packet to send [01:20:19]OFD Sender: No OFD packet to send [01:20:24]OFD Sender: No OFD packet to send [01:20:29]OFD Sender: No OFD packet to send [01:20:34]OFD Sender: No OFD packet to send [01:20:39]OFD Sender: No OFD packet to send [01:20:44]OFD Sender: No OFD packet to send [01:20:49]OFD Sender: No OFD packet to send [01:20:54]OFD Sender: No OFD packet to send [01:20:59]OFD Sender: No OFD packet to send [01:21:04]OFD Sender: No OFD packet to send [01:21:09]OFD Sender: No OFD packet to send [01:21:14]OFD Sender: No OFD packet to send [01:21:19]OFD Sender: No OFD packet to send [01:21:24]OFD Sender: No OFD packet to send [01:21:29]OFD Sender: No OFD packet to send [01:21:34]OFD Sender: No OFD packet to send [01:21:39]OFD Sender: No OFD packet to send [01:21:44]OFD Sender: No OFD packet to send [01:21:49]OFD Sender: No OFD packet to send [01:21:54]OFD Sender: No OFD packet to send [01:21:59]OFD Sender: No OFD packet to send [01:22:04]OFD Sender: No OFD packet to send [01:22:09]OFD Sender: No OFD packet to send [01:22:14]OFD Sender: No OFD packet to send [01:22:19]OFD Sender: No OFD packet to send [01:22:24]OFD Sender: No OFD packet to send [01:22:29]OFD Sender: No OFD packet to send [01:22:34]OFD Sender: No OFD packet to send [01:22:39]OFD Sender: No OFD packet to send [01:22:44]OFD Sender: No OFD packet to send [01:22:49]OFD Sender: No OFD packet to send [01:22:54]OFD Sender: No OFD packet to send [01:22:59]OFD Sender: No OFD packet to send [01:23:04]OFD Sender: No OFD packet to send [01:23:09]OFD Sender: No OFD packet to send [01:23:14]OFD Sender: No OFD packet to send [01:23:19]OFD Sender: No OFD packet to send [01:23:24]OFD Sender: No OFD packet to send [01:23:29]OFD Sender: No OFD packet to send [01:23:34]OFD Sender: No OFD packet to send [01:23:39]OFD Sender: No OFD packet to send [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:09]OFD Sender: No OFD packet to send [01:24:14]OFD Sender: No OFD packet to send [01:24:19]OFD Sender: No OFD packet to send [01:24:24]OFD Sender: No OFD packet to send [01:24:29]OFD Sender: No OFD packet to send [01:24:34]OFD Sender: No OFD packet to send [01:24:39]OFD Sender: No OFD packet to send [01:24:44]OFD Sender: No OFD packet to send [01:24:49]OFD Sender: No OFD packet to send [01:24:54]OFD Sender: No OFD packet to send [01:24:59]OFD Sender: No OFD packet to send [01:25:04]OFD Sender: No OFD packet to send [01:25:09]OFD Sender: No OFD packet to send [01:25:14]OFD Sender: No OFD packet to send [01:25:19]OFD Sender: No OFD packet to send [01:25:24]OFD Sender: No OFD packet to send [01:25:29]OFD Sender: No OFD packet to send [01:25:34]OFD Sender: No OFD packet to send [01:25:39]OFD Sender: No OFD packet to send [01:25:44]OFD Sender: No OFD packet to send [01:25:49]OFD Sender: No OFD packet to send [01:25:54]OFD Sender: No OFD packet to send [01:25:59]OFD Sender: No OFD packet to send [01:26:04]OFD Sender: No OFD packet to send [01:26:09]OFD Sender: No OFD packet to send [01:26:14]OFD Sender: No OFD packet to send [01:26:19]OFD Sender: No OFD packet to send [01:26:24]OFD Sender: No OFD packet to send [01:26:29]OFD Sender: No OFD packet to send [01:26:34]OFD Sender: No OFD packet to send [01:26:39]OFD Sender: No OFD packet to send [01:26:44]OFD Sender: No OFD packet to send [01:26:49]OFD Sender: No OFD packet to send [01:26:54]OFD Sender: No OFD packet to send [01:26:59]OFD Sender: No OFD packet to send [01:27:04]OFD Sender: No OFD packet to send [01:27:09]OFD Sender: No OFD packet to send [01:27:14]OFD Sender: No OFD packet to send [01:27:19]OFD Sender: No OFD packet to send [01:27:24]OFD Sender: No OFD packet to send [01:27:29]OFD Sender: No OFD packet to send [01:27:34]OFD Sender: No OFD packet to send [01:27:39]OFD Sender: No OFD packet to send [01:27:44]OFD Sender: No OFD packet to send [01:27:49]OFD Sender: No OFD packet to send [01:27:54]OFD Sender: No OFD packet to send [01:27:59]OFD Sender: No OFD packet to send [01:28:04]OFD Sender: No OFD packet to send [01:28:09]OFD Sender: No OFD packet to send [01:28:14]OFD Sender: No OFD packet to send [01:28:19]OFD Sender: No OFD packet to send [01:28:24]OFD Sender: No OFD packet to send [01:28:29]OFD Sender: No OFD packet to send [01:28:34]OFD Sender: No OFD packet to send [01:28:39]OFD Sender: No OFD packet to send [01:28:44]OFD Sender: No OFD packet to send [01:28:49]OFD Sender: No OFD packet to send [01:28:54]OFD Sender: No OFD packet to send [01:28:59]OFD Sender: No OFD packet to send [01:29:04]OFD Sender: No OFD packet to send [01:29:09]OFD Sender: No OFD packet to send [01:29:14]OFD Sender: No OFD packet to send [01:29:19]OFD Sender: No OFD packet to send [01:29:24]OFD Sender: No OFD packet to send [01:29:29]OFD Sender: No OFD packet to send [01:29:35]OFD Sender: No OFD packet to send [01:29:40]OFD Sender: No OFD packet to send [01:29:45]OFD Sender: No OFD packet to send [01:29:50]OFD Sender: No OFD packet to send [01:29:55]OFD Sender: No OFD packet to send [01:30:00]OFD Sender: No OFD packet to send [01:30:05]OFD Sender: No OFD packet to send [01:30:10]OFD Sender: No OFD packet to send [01:30:15]OFD Sender: No OFD packet to send [01:30:20]OFD Sender: No OFD packet to send [01:30:25]OFD Sender: No OFD packet to send [01:30:30]OFD Sender: No OFD packet to send [01:30:35]OFD Sender: No OFD packet to send [01:30:40]OFD Sender: No OFD packet to send [01:30:45]OFD Sender: No OFD packet to send [01:30:50]OFD Sender: No OFD packet to send [01:30:55]OFD Sender: No OFD packet to send [01:31:00]OFD Sender: No OFD packet to send [01:31:05]OFD Sender: No OFD packet to send [01:31:10]OFD Sender: No OFD packet to send [01:31:15]OFD Sender: No OFD packet to send [01:31:20]OFD Sender: No OFD packet to send [01:31:25]OFD Sender: No OFD packet to send [01:31:30]OFD Sender: No OFD packet to send [01:31:35]OFD Sender: No OFD packet to send [01:31:40]OFD Sender: No OFD packet to send [01:31:45]OFD Sender: No OFD packet to send [01:31:50]OFD Sender: No OFD packet to send [01:31:55]OFD Sender: No OFD packet to send [01:32:00]OFD Sender: No OFD packet to send [01:32:05]OFD Sender: No OFD packet to send [01:32:10]OFD Sender: No OFD packet to send [01:32:15]OFD Sender: No OFD packet to send [01:32:20]OFD Sender: No OFD packet to send [01:32:25]OFD Sender: No OFD packet to send [01:32:30]OFD Sender: No OFD packet to send [01:32:35]OFD Sender: No OFD packet to send [01:32:40]OFD Sender: No OFD packet to send [01:32:45]OFD Sender: No OFD packet to send [01:32:50]OFD Sender: No OFD packet to send [01:32:55]OFD Sender: No OFD packet to send [01:33:00]OFD Sender: No OFD packet to send [01:33:05]OFD Sender: No OFD packet to send [01:33:10]OFD Sender: No OFD packet to send [01:33:15]OFD Sender: No OFD packet to send [01:33:20]OFD Sender: No OFD packet to send [01:33:25]OFD Sender: No OFD packet to send [01:33:30]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:45]OFD Sender: No OFD packet to send [01:33:50]OFD Sender: No OFD packet to send [01:33:55]OFD Sender: No OFD packet to send [01:34:00]OFD Sender: No OFD packet to send [01:34:05]OFD Sender: No OFD packet to send [01:34:10]OFD Sender: No OFD packet to send [01:34:15]OFD Sender: No OFD packet to send [01:34:20]OFD Sender: No OFD packet to send [01:34:25]OFD Sender: No OFD packet to send [01:34:30]OFD Sender: No OFD packet to send [01:34:35]OFD Sender: No OFD packet to send [01:34:40]OFD Sender: No OFD packet to send [01:34:45]OFD Sender: No OFD packet to send [01:34:50]OFD Sender: No OFD packet to send [01:34:55]OFD Sender: No OFD packet to send [01:35:00]OFD Sender: No OFD packet to send [01:35:05]OFD Sender: No OFD packet to send [01:35:10]OFD Sender: No OFD packet to send [01:35:15]OFD Sender: No OFD packet to send [01:35:20]OFD Sender: No OFD packet to send [01:35:25]OFD Sender: No OFD packet to send [01:35:30]OFD Sender: No OFD packet to send [01:35:35]OFD Sender: No OFD packet to send [01:35:40]OFD Sender: No OFD packet to send [01:35:45]OFD Sender: No OFD packet to send [01:35:50]OFD Sender: No OFD packet to send [01:35:55]OFD Sender: No OFD packet to send [01:36:00]OFD Sender: No OFD packet to send [01:36:05]OFD Sender: No OFD packet to send [01:36:10]OFD Sender: No OFD packet to send [01:36:15]OFD Sender: No OFD packet to send [01:36:20]OFD Sender: No OFD packet to send [01:36:25]OFD Sender: No OFD packet to send [01:36:30]OFD Sender: No OFD packet to send [01:36:35]OFD Sender: No OFD packet to send [01:36:40]OFD Sender: No OFD packet to send [01:36:45]OFD Sender: No OFD packet to send [01:36:50]OFD Sender: No OFD packet to send [01:36:55]OFD Sender: No OFD packet to send [01:37:00]OFD Sender: No OFD packet to send [01:37:05]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:30]OFD Sender: No OFD packet to send [01:37:35]OFD Sender: No OFD packet to send [01:37:40]OFD Sender: No OFD packet to send [01:37:45]OFD Sender: No OFD packet to send [01:37:50]OFD Sender: No OFD packet to send [01:37:55]OFD Sender: No OFD packet to send [01:38:00]OFD Sender: No OFD packet to send [01:38:05]OFD Sender: No OFD packet to send [01:38:10]OFD Sender: No OFD packet to send [01:38:15]OFD Sender: No OFD packet to send [01:38:20]OFD Sender: No OFD packet to send [01:38:25]OFD Sender: No OFD packet to send [01:38:30]OFD Sender: No OFD packet to send [01:38:35]OFD Sender: No OFD packet to send [01:38:40]OFD Sender: No OFD packet to send [01:38:41]accept exits with 7 [01:38:41]New connection [01:38:41]New thread 3066785124 created [01:38:41]Thread 3066928484 joined [01:38:41]Waiting for new connection... [01:38:41] Sock 7.Parse request [01:38:41]Sock 7.Check first char [01:38:41]Sock 7.First char is OK [01:38:41]request: POST /json_proto HTTP/1.0 [01:38:41]Method: POST [01:38:41]URL: /json_proto [01:38:41]Method is POST - this is cgi request [01:38:41]url: /json_proto [01:38:41]query_string will be loaded in cgi processing [01:38:41]execute_cgi json_proto POST (null) [01:38:41]execute_cgi path=json_proto method=POST [01:38:41]POST find Content-Length [01:38:41]Host: 172.17.33.3:8080 [01:38:41]Content-Length: 843 [01:38:41]Content-Type: application/json [01:38:41] [01:38:41]POST finish read [01:38:41]Found Content-Length = 843 [01:38:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347462", "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" : 64.30, "quantity" : 15.560, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:38:41]execute_script... [01:38: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)347462", "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" : 64.30, "quantity" : 15.560, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:38:41]POST & json_proto [01:38:41]process_json_proto [01:38:41]json parsed OK: [01:38:41]protocol is kg_v1.0 [01:38:41]action value=close_receipt [01:38:41]process_action close_receipt [01:38:41]cmd_close_receipt [01:38:41]MH_GetDate [01:38:41]Write to MH i2c: F0 00 00 78 71 D8 [01:38:41]Write i2c OK [01:38:41]MH_I2C_Read... [01:38:41]Read from MH i2c: F0 [01:38:41]MH_I2C_Read... [01:38:41]Read from MH i2c: F0 09 00 [01:38:41]MH_I2C_Read... [01:38:41]Read from MH i2c: F0 09 00 78 71 00 A9 33 1B 66 23 5B 8F 65 B0 [01:38:41]GetLastDocTimeStamp 1713057409 [01:38:41]current date 1713058729 [01:38:41]FM_GetShiftState [01:38:41]SAM_PROTO_GetShiftState [01:38:41]wFMCommunicate request_size=4 [01:38:41]MH_SAM_APDU [01:38:41]CAPDU: 80 13 01 00 [01:38:41]Write to MH i2c: E2 08 00 79 71 80 13 01 00 00 00 00 00 67 [01:38:41]Write i2c OK [01:38:41]MH_I2C_Read... [01:38:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:38:42]Read from MH i2c: E2 [01:38:42]MH_I2C_Read... [01:38:42]Read from MH i2c: E2 0E 00 [01:38:42]MH_I2C_Read... [01:38:42]Read from MH i2c: E2 0E 00 79 71 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 13 [01:38:42]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [01:38:42]wFMCommunicate OK [01:38:42]SAM_PROTO_GetShiftState done [01:38:42]FM_GetShiftState done [01:38:42]opened in 1713053951 [01:38:42]opened+sec_in_day 1713140351 [01:38:42]quantity*price = 100050 [01:38:42]sum+1 = 100052 [01:38:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 5 14.04.2024 01:38 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29095 ФПД: 257466601241510 1/tax-web-control/client/api/v1/ticket?date=20240414T013849&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29095&fm=257466601241510&tin=02508201610067®Number=0000138879044617&sum=100051 [01:38:43]StoreToDocumentArchive [01:38:43]shift 116 fd 29095 [01:38:43]save to /storage/0116/doc_00029095 [01:38:43]save last doc name /storage/0116/doc_00029095 to /storage/kkm_last_doc_name [01:38:43]save OK [01:38:43]Clear old archive folders... [01:38:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:38:43]tlvbuf is 011D7B90 [01:38:43]SAM_PROTO_ClearQueue [01:38:43]wFMCommunicate request_size=4 [01:38:43]MH_SAM_APDU [01:38:43]CAPDU: 80 09 00 00 [01:38:43]Write to MH i2c: E2 08 00 86 71 80 09 00 00 00 00 00 00 69 [01:38:43]Write i2c OK [01:38:43]MH_I2C_Read... [01:38:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:38:43]Read from MH i2c: E2 [01:38:43]MH_I2C_Read... [01:38:43]Read from MH i2c: E2 03 00 [01:38:43]MH_I2C_Read... [01:38:43]Read from MH i2c: E2 03 00 86 71 00 90 00 6B [01:38:43]RAPDU: 90 00 [01:38:43]wFMCommunicate OK [01:38:43]SAM_PROTO_ClearQueue done [01:38:43]KKMCreateOFDPacket [01:38:43]OFDProtocolAddRootSTLVToBuf [01:38:43]FM_MakeSignedData [01:38:43]FM_MakeSignedData [01:38:43]SAM_PROTO_SignData [01:38:43]wFMCommunicate request_size=4 [01:38:43]MH_SAM_APDU [01:38:43]CAPDU: 80 0D 01 02 [01:38:43]Write to MH i2c: E2 08 00 87 71 80 0D 01 02 00 00 00 00 71 [01:38:43]Write i2c OK [01:38:43]MH_I2C_Read... [01:38:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:38:43]Read from MH i2c: E2 [01:38:43]MH_I2C_Read... [01:38:43]Read from MH i2c: E2 03 00 [01:38:43]MH_I2C_Read... [01:38:43]Read from MH i2c: E2 03 00 87 71 00 90 00 6C [01:38:43]RAPDU: 90 00 [01:38:43]wFMCommunicate OK [01:38:43]wFMCommunicate request_size=255 [01:38:43]MH_SAM_APDU [01:38: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 05 00 00 00 F4 03 04 00 A9 33 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A7 71 00 00 35 04 06 00 EA [01:38:43]Write to MH i2c: E2 02 01 88 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 05 00 00 00 F4 03 04 00 A9 33 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A7 71 00 00 35 04 06 00 EA 00 00 DB [01:38:43]Write i2c OK [01:38:43]MH_I2C_Read... [01:38:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:38:43]Read from MH i2c: E2 [01:38:43]MH_I2C_Read... [01:38:43]Read from MH i2c: E2 03 00 [01:38:43]MH_I2C_Read... [01:38:43]Read from MH i2c: E2 03 00 88 71 00 90 00 6D [01:38:43]RAPDU: 90 00 [01:38:43]wFMCommunicate OK [01:38:43]wFMCommunicate request_size=10 [01:38:43]MH_SAM_APDU [01:38:43]CAPDU: 80 0D 02 02 05 2A 1D 4E FB A6 [01:38:43]Write to MH i2c: E2 0D 00 89 71 80 0D 02 02 05 00 2A 1D 4E FB A6 00 00 B4 [01:38:43]Write i2c OK [01:38:43]MH_I2C_Read... [01:38:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:38:43]Read from MH i2c: E2 [01:38:43]MH_I2C_Read... [01:38:43]Read from MH i2c: E2 03 00 [01:38:43]MH_I2C_Read... [01:38:43]Read from MH i2c: E2 03 00 89 71 00 90 00 6E [01:38:43]RAPDU: 90 00 [01:38:43]wFMCommunicate OK [01:38:43]wFMCommunicate request_size=4 [01:38:43]MH_SAM_APDU [01:38:43]CAPDU: 80 0D 03 02 [01:38:43]Write to MH i2c: E2 08 00 8A 71 80 0D 03 02 00 00 00 00 76 [01:38:43]Write i2c OK [01:38:43]MH_I2C_Read... [01:38:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:38:43]Read from MH i2c: E2 [01:38:43]MH_I2C_Read... [01:38:43]Read from MH i2c: E2 0B 00 [01:38:43]MH_I2C_Read... [01:38:43]Read from MH i2c: E2 0B 00 8A 71 00 C3 BA 87 D5 85 A9 8F 12 90 00 1F [01:38:43]RAPDU: C3 BA 87 D5 85 A9 8F 12 90 00 [01:38:43]wFMCommunicate OK [01:38:43]SAM_PROTO_SignData done [01:38:43]FM_MakeSignedData done [01:38:43]CreateOFDProtocolMessage [01:38:43]wFMCommunicate request_size=4 [01:38:43]MH_SAM_APDU [01:38:43]CAPDU: 80 11 00 00 [01:38:43]Write to MH i2c: E2 08 00 8B 71 80 11 00 00 00 00 00 00 76 [01:38:43]Write i2c OK [01:38:43]MH_I2C_Read... [01:38:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:38:43]Read from MH i2c: E2 [01:38:43]MH_I2C_Read... [01:38:43]Read from MH i2c: E2 17 00 [01:38:43]MH_I2C_Read... [01:38:43]Read from MH i2c: E2 17 00 8B 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 C5 [01:38:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [01:38:43]wFMCommunicate OK [01:38:43]CreateOFDProtocolMessage done [01:38:43]OFDSenderStorePacket 29095 [01:38:43]StoreOFDPacket docnum=29095 [01:38:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 87 4E 07 01 D3 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 05 00 00 00 F4 03 04 00 A9 33 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A7 71 00 00 35 04 06 00 EA 2A 1D 4E FB A6 C3 BA 87 D5 85 A9 8F 12 [01:38:43]CheckFolder [01:38:43]dirname=/storage/ofd_packets [01:38:43]CheckFolder done [01:38:43]ProducePacketName [01:38:43]name=ofd_packets/00029095 [01:38:43]NVStorageSaveData ofd_packets/00029095 [01:38:43]File name is /storage/ofd_packets/00029095 [01:38:43]Write 301 bytes [01:38:43]NVStorageSaveData done [01:38:43]OFDSenderStorePacket done [01:38:43]KKMCreateOFDPacket done [01:38:43]NVStorageSaveData kkm_last_timestamp [01:38:43]File name is /storage/kkm_last_timestamp [01:38:43]Write 4 bytes [01:38:43]NVStorageSaveData done [01:38:43]ExternCall_PrintAddStr [01:38:43]wPrintStart [01:38:43]Write to MH i2c: 01 00 00 8C 71 FD [01:38:43]Write i2c OK [01:38:43]MH_I2C_Read... [01:38:43]Read from MH i2c: 01 [01:38:43]MH_I2C_Read... [01:38:43]Read from MH i2c: 01 07 00 [01:38:43]MH_I2C_Read... [01:38:43]Read from MH i2c: 01 07 00 8C 71 00 00 00 00 00 FF 0F 12 [01:38:43]RasterBufferAndPrint [01:38:43]line Счет N : (1)347462 [01:38:43]line ИНН: 02508201610067 [01:38:43]line Контрольно-Кассовый Чек [01:38:43]line ПРОДАЖА [01:38:43]line ТРК (МРК, ГНК) : 32 [01:38:43]line Товар: 2710124130 [01:38:43]line Аи-92-К-5 [01:38:43]line 15.560 * 64.30 [01:38:43]line = 1000.51 [01:38:43]line НДС 12% НСП 1% [01:38:43]line > о реализуемом товаре [01:38:43]line ИТОГО: 1000.51 [01:38:43]line НСП 1% : 8.85 [01:38:43]line НДС 12% : 106.25 [01:38:43]line Наличными: 0.00 [01:38:43]line Безнал.: 1000.51 [01:38:43]line Место: АЗС № 108 "Партнер Нефть" [01:38:43]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [01:38:43]line СНО: Общий режим [01:38:43]line Чек 5 14.04.2024 01:38 [01:38:43]line Смена: 116 ФФД: 1.0 [01:38:43]line ЗНМ: 0300000027 [01:38:43]line РНМ: 0000138879044617 [01:38:43]line Версия ККМ: 001 [01:38:43]line Платежная система: АКБ Кыргызстан [01:38:43]line ФМ: 0000000000963154 [01:38:43]line ФД: 29095 [01:38:43]line ФПД: 257466601241510 [01:38:43]line 1/tax-web-control/client/api/v1/ticket?date=20240414T013849&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29095&fm=257466601241510&tin=02508201610067®Number=0000138879044617&sum=100051 [01:38:44]OFD Sender: Processing packet 29095 [packets to send 8, broken 7] [01:38:44]ProducePacketName [01:38:44]name=ofd_packets/00029095 [01:38:44]OFD Sender: To server: pG, [01:38:44]CommunicateWithHost lk.salyk.kg:30040 [01:38:44]ConnectInit lk.salyk.kg [01:38:44]written 0, free lines is 4095 [01:38:44]Connected sock=11 [01:38: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 31 35 34 0F 01 00 00 87 4E 07 01 D3 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 05 00 00 00 F4 03 04 00 A9 33 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A7 71 00 00 35 04 06 00 EA 2A 1D 4E FB A6 C3 BA 87 D5 85 A9 8F 12 [01:38:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 73 F1 47 00 5E 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A7 71 00 00 F4 03 04 00 4F DE 1A 66 B6 04 01 00 00 EE 7F 73 EB AE F2 EC B2 [01:38:44]CommunicateWithHost err = 0 [01:38:44]CheckOFDResponse [01:38:44]1017 (14) - 77093643461234 [01:38:44]1041 (16) - 0000000000963154 [01:38:44]1040 (4) - 29095 [01:38:44]1012 (4) - 13.04.2024 19:34 [01:38:44]1206 (1) - 0 [01:38:44]OFD Sender: Remove packet 29095 [01:38:44]ProducePacketName [01:38:44]name=ofd_packets/00029095 [01:38:44]NVStorageDeleteData [01:38:44]Write to MH i2c: 01 00 00 B5 71 26 [01:38:44]Write i2c OK [01:38:44]MH_I2C_Read... [01:38:44]Read from MH i2c: 01 [01:38:44]MH_I2C_Read... [01:38:44]Read from MH i2c: 01 07 00 [01:38:44]MH_I2C_Read... [01:38:44]Read from MH i2c: 01 07 00 B5 71 00 00 00 00 00 D4 0C 0D [01:38:44]RasterBufferAndPrint [01:38:44]line [01:38:44]line [01:38:44]line [01:38:44]line [01:38:44]line [01:38:44]written 0, free lines is 3288 [01:38:44]MH_Cut [01:38:44]Write to MH i2c: D1 01 00 BC 71 01 FF [01:38:44]Write i2c OK [01:38:44]MH_I2C_Read... [01:38:44]Read from MH i2c: D1 [01:38:44]MH_I2C_Read... [01:38:44]Read from MH i2c: D1 01 00 [01:38:44]MH_I2C_Read... [01:38:44]Read from MH i2c: D1 01 00 BC 71 00 FE [01:38:44]Write to MH i2c: 01 00 00 BD 71 2E [01:38:44]Write i2c OK [01:38:44]MH_I2C_Read... [01:38:44]OFD Sender: No OFD packet to send [01:38:45]*** Cut start [01:38:45]*** Partial cut [01:38:45]*** CUTSNS_PIN = 1 [01:38:45]*** CUTSNS_PIN = 0 [01:38:45]*** Brake cut motor [01:38:45]Read from MH i2c: 01 [01:38:45]MH_I2C_Read... [01:38:45]*** Stop cut motor [01:38:45]*** Cut end [01:38:45]Read from MH i2c: 01 07 00 [01:38:45]MH_I2C_Read... [01:38:45]Read from MH i2c: 01 07 00 BD 71 00 00 00 00 00 FF 0F 43 [01:38:45]process_action close_receipt done [01:38:45]requested_data is exist [01:38:45]produce_requested_data [01:38:45]requested_item fm.sn is exist - process it [01:38:45]wFMCommunicate request_size=4 [01:38:45]MH_SAM_APDU [01:38:45]CAPDU: 80 11 00 00 [01:38:45]Write to MH i2c: E2 08 00 BE 71 80 11 00 00 00 00 00 00 A9 [01:38:45]Write i2c OK [01:38:45]MH_I2C_Read... [01:38:45]Read from MH i2c: E2 [01:38:45]MH_I2C_Read... [01:38:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:38:45]Read from MH i2c: E2 17 00 [01:38:45]MH_I2C_Read... [01:38:45]Read from MH i2c: E2 17 00 BE 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 F8 [01:38:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [01:38:45]wFMCommunicate OK [01:38:45]requested_item fd.num is exist - process it [01:38:45]SAM_PROTO_GetFieldsCounters [01:38:45]wFMCommunicate request_size=4 [01:38:45]MH_SAM_APDU [01:38:45]CAPDU: 80 13 00 00 [01:38:45]Write to MH i2c: E2 08 00 BF 71 80 13 00 00 00 00 00 00 AC [01:38:45]Write i2c OK [01:38:45]MH_I2C_Read... [01:38:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:38:46]Read from MH i2c: E2 [01:38:46]MH_I2C_Read... [01:38:46]Read from MH i2c: E2 62 00 [01:38:46]MH_I2C_Read... [01:38:46]Read from MH i2c: E2 62 00 BF 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A7 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [01:38: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A7 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:38:46]wFMCommunicate OK [01:38:46]SAM_PROTO_GetFieldsCounters done [01:38:46]requested_item shift.num is exist - process it [01:38:46]requested_item shift.opened is exist - process it [01:38:46]req_shift_opened [01:38:46]FM_GetShiftState [01:38:46]SAM_PROTO_GetShiftState [01:38:46]wFMCommunicate request_size=4 [01:38:46]MH_SAM_APDU [01:38:46]CAPDU: 80 13 01 00 [01:38:46]Write to MH i2c: E2 08 00 C0 71 80 13 01 00 00 00 00 00 AE [01:38:46]Write i2c OK [01:38:46]MH_I2C_Read... [01:38:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:38:46]Read from MH i2c: E2 [01:38:46]MH_I2C_Read... [01:38:46]Read from MH i2c: E2 0E 00 [01:38:46]MH_I2C_Read... [01:38:46]Read from MH i2c: E2 0E 00 C0 71 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 5A [01:38:46]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [01:38:46]wFMCommunicate OK [01:38:46]SAM_PROTO_GetShiftState done [01:38:46]FM_GetShiftState done [01:38:46]req_shift_opened done [01:38:46]requested_item shift.open_date is exist - process it [01:38:46]req_shift_open_date [01:38:46]req_shift_open_date done [01:38:46]produce_requested_data done [01:38:46]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29095,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [01:38:46]process_action_free close_receipt [01:38:46]json_value_free [01:38:46]json_value_free done [01:38:46]process_json_proto returns [01:38:46]Send response to host [01:38:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29095,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [01:38:46]free response buf [01:38:46]execute_script done [01:38:46]execute_script returns [01:38:46]free content buf [01:38:46]Sock 7.Close socket [01:38:46]Sock 7.Thread stoped [01:38:49]OFD Sender: No OFD packet to send [01:38:54]OFD Sender: No OFD packet to send [01:38:59]OFD Sender: No OFD packet to send [01:39:04]OFD Sender: No OFD packet to send [01:39:09]OFD Sender: No OFD packet to send [01:39:14]OFD Sender: No OFD packet to send [01:39:19]OFD Sender: No OFD packet to send [01:39:24]OFD Sender: No OFD packet to send [01:39:29]OFD Sender: No OFD packet to send [01:39:34]OFD Sender: No OFD packet to send [01:39:39]OFD Sender: No OFD packet to send [01:39:44]OFD Sender: No OFD packet to send [01:39:49]OFD Sender: No OFD packet to send [01:39:54]OFD Sender: No OFD packet to send [01:39:59]OFD Sender: No OFD packet to send [01:40:04]OFD Sender: No OFD packet to send [01:40:09]OFD Sender: No OFD packet to send [01:40:14]OFD Sender: No OFD packet to send [01:40:19]OFD Sender: No OFD packet to send [01:40:24]OFD Sender: No OFD packet to send [01:40:29]OFD Sender: No OFD packet to send [01:40:34]OFD Sender: No OFD packet to send [01:40:39]OFD Sender: No OFD packet to send [01:40:44]OFD Sender: No OFD packet to send [01:40:49]OFD Sender: No OFD packet to send [01:40:54]OFD Sender: No OFD packet to send [01:40:59]OFD Sender: No OFD packet to send [01:41:04]OFD Sender: No OFD packet to send [01:41:09]OFD Sender: No OFD packet to send [01:41:14]OFD Sender: No OFD packet to send [01:41:19]OFD Sender: No OFD packet to send [01:41:24]OFD Sender: No OFD packet to send [01:41:29]OFD Sender: No OFD packet to send [01:41:34]OFD Sender: No OFD packet to send [01:41:39]OFD Sender: No OFD packet to send [01:41:44]OFD Sender: No OFD packet to send [01:41:49]OFD Sender: No OFD packet to send [01:41:54]OFD Sender: No OFD packet to send [01:41:59]OFD Sender: No OFD packet to send [01:42:04]OFD Sender: No OFD packet to send [01:42:09]OFD Sender: No OFD packet to send [01:42:14]OFD Sender: No OFD packet to send [01:42:19]OFD Sender: No OFD packet to send [01:42:24]OFD Sender: No OFD packet to send [01:42:29]OFD Sender: No OFD packet to send [01:42:34]OFD Sender: No OFD packet to send [01:42:39]OFD Sender: No OFD packet to send [01:42:44]OFD Sender: No OFD packet to send [01:42:49]OFD Sender: No OFD packet to send [01:42:54]OFD Sender: No OFD packet to send [01:42:59]OFD Sender: No OFD packet to send [01:43:04]OFD Sender: No OFD packet to send [01:43:09]OFD Sender: No OFD packet to send [01:43:15]OFD Sender: No OFD packet to send [01:43:20]OFD Sender: No OFD packet to send [01:43:25]OFD Sender: No OFD packet to send [01:43:30]OFD Sender: No OFD packet to send [01:43:35]OFD Sender: No OFD packet to send [01:43:40]OFD Sender: No OFD packet to send [01:43:45]OFD Sender: No OFD packet to send [01:43:50]OFD Sender: No OFD packet to send [01:43:55]OFD Sender: No OFD packet to send [01:44:00]OFD Sender: No OFD packet to send [01:44:05]OFD Sender: No OFD packet to send [01:44:10]OFD Sender: No OFD packet to send [01:44:15]OFD Sender: No OFD packet to send [01:44:20]OFD Sender: No OFD packet to send [01:44:25]OFD Sender: No OFD packet to send [01:44:30]OFD Sender: No OFD packet to send [01:44:35]OFD Sender: No OFD packet to send [01:44:40]OFD Sender: No OFD packet to send [01:44:45]OFD Sender: No OFD packet to send [01:44:50]OFD Sender: No OFD packet to send [01:44:55]OFD Sender: No OFD packet to send [01:45:00]OFD Sender: No OFD packet to send [01:45:05]OFD Sender: No OFD packet to send [01:45:10]OFD Sender: No OFD packet to send [01:45:15]OFD Sender: No OFD packet to send [01:45:20]OFD Sender: No OFD packet to send [01:45:25]OFD Sender: No OFD packet to send [01:45:30]OFD Sender: No OFD packet to send [01:45:35]OFD Sender: No OFD packet to send [01:45:40]OFD Sender: No OFD packet to send [01:45:45]OFD Sender: No OFD packet to send [01:45:50]OFD Sender: No OFD packet to send [01:45:55]OFD Sender: No OFD packet to send [01:46:00]OFD Sender: No OFD packet to send [01:46:05]OFD Sender: No OFD packet to send [01:46:10]OFD Sender: No OFD packet to send [01:46:15]OFD Sender: No OFD packet to send [01:46:20]OFD Sender: No OFD packet to send [01:46:25]OFD Sender: No OFD packet to send [01:46:30]OFD Sender: No OFD packet to send [01:46:35]OFD Sender: No OFD packet to send [01:46:40]OFD Sender: No OFD packet to send [01:46:45]OFD Sender: No OFD packet to send [01:46:50]OFD Sender: No OFD packet to send [01:46:55]OFD Sender: No OFD packet to send [01:47:00]OFD Sender: No OFD packet to send [01:47:05]OFD Sender: No OFD packet to send [01:47:10]OFD Sender: No OFD packet to send [01:47:15]OFD Sender: No OFD packet to send [01:47:20]OFD Sender: No OFD packet to send [01:47:25]OFD Sender: No OFD packet to send [01:47:30]OFD Sender: No OFD packet to send [01:47:35]OFD Sender: No OFD packet to send [01:47:40]OFD Sender: No OFD packet to send [01:47:45]OFD Sender: No OFD packet to send [01:47:50]OFD Sender: No OFD packet to send [01:47:55]OFD Sender: No OFD packet to send [01:48:00]OFD Sender: No OFD packet to send [01:48:05]OFD Sender: No OFD packet to send [01:48:10]OFD Sender: No OFD packet to send [01:48:15]OFD Sender: No OFD packet to send [01:48:20]OFD Sender: No OFD packet to send [01:48:25]OFD Sender: No OFD packet to send [01:48:30]OFD Sender: No OFD packet to send [01:48:35]OFD Sender: No OFD packet to send [01:48:40]OFD Sender: No OFD packet to send [01:48:45]OFD Sender: No OFD packet to send [01:48:50]OFD Sender: No OFD packet to send [01:48:55]OFD Sender: No OFD packet to send [01:49:00]OFD Sender: No OFD packet to send [01:49:05]OFD Sender: No OFD packet to send [01:49:10]OFD Sender: No OFD packet to send [01:49:15]OFD Sender: No OFD packet to send [01:49:20]OFD Sender: No OFD packet to send [01:49:25]OFD Sender: No OFD packet to send [01:49:30]OFD Sender: No OFD packet to send [01:49:35]OFD Sender: No OFD packet to send [01:49:40]OFD Sender: No OFD packet to send [01:49:45]OFD Sender: No OFD packet to send [01:49:50]OFD Sender: No OFD packet to send [01:49:55]OFD Sender: No OFD packet to send [01:50:00]OFD Sender: No OFD packet to send [01:50:05]OFD Sender: No OFD packet to send [01:50:10]OFD Sender: No OFD packet to send [01:50:15]OFD Sender: No OFD packet to send [01:50:20]OFD Sender: No OFD packet to send [01:50:25]OFD Sender: No OFD packet to send [01:50:30]OFD Sender: No OFD packet to send [01:50:35]OFD Sender: No OFD packet to send [01:50:40]OFD Sender: No OFD packet to send [01:50:45]OFD Sender: No OFD packet to send [01:50:50]OFD Sender: No OFD packet to send [01:50:55]OFD Sender: No OFD packet to send [01:51:00]OFD Sender: No OFD packet to send [01:51:05]OFD Sender: No OFD packet to send [01:51:10]OFD Sender: No OFD packet to send [01:51:15]OFD Sender: No OFD packet to send [01:51:20]OFD Sender: No OFD packet to send [01:51:25]OFD Sender: No OFD packet to send [01:51:30]OFD Sender: No OFD packet to send [01:51:35]OFD Sender: No OFD packet to send [01:51:40]OFD Sender: No OFD packet to send [01:51:45]OFD Sender: No OFD packet to send [01:51:50]OFD Sender: No OFD packet to send [01:51:55]OFD Sender: No OFD packet to send [01:52:00]OFD Sender: No OFD packet to send [01:52:05]OFD Sender: No OFD packet to send [01:52:10]OFD Sender: No OFD packet to send [01:52:15]OFD Sender: No OFD packet to send [01:52:20]OFD Sender: No OFD packet to send [01:52:25]OFD Sender: No OFD packet to send [01:52:30]OFD Sender: No OFD packet to send [01:52:35]OFD Sender: No OFD packet to send [01:52:40]OFD Sender: No OFD packet to send [01:52:45]OFD Sender: No OFD packet to send [01:52:50]OFD Sender: No OFD packet to send [01:52:55]OFD Sender: No OFD packet to send [01:53:00]OFD Sender: No OFD packet to send [01:53:05]OFD Sender: No OFD packet to send [01:53:10]OFD Sender: No OFD packet to send [01:53:15]OFD Sender: No OFD packet to send [01:53:20]OFD Sender: No OFD packet to send [01:53:25]OFD Sender: No OFD packet to send [01:53:30]OFD Sender: No OFD packet to send [01:53:35]OFD Sender: No OFD packet to send [01:53:40]OFD Sender: No OFD packet to send [01:53:45]OFD Sender: No OFD packet to send [01:53:50]OFD Sender: No OFD packet to send [01:53:55]OFD Sender: No OFD packet to send [01:54:00]OFD Sender: No OFD packet to send [01:54:05]OFD Sender: No OFD packet to send [01:54:10]OFD Sender: No OFD packet to send [01:54:15]OFD Sender: No OFD packet to send [01:54:20]OFD Sender: No OFD packet to send [01:54:25]OFD Sender: No OFD packet to send [01:54:30]OFD Sender: No OFD packet to send [01:54:35]OFD Sender: No OFD packet to send [01:54:40]OFD Sender: No OFD packet to send [01:54:45]OFD Sender: No OFD packet to send [01:54:50]OFD Sender: No OFD packet to send [01:54:55]OFD Sender: No OFD packet to send [01:55:00]OFD Sender: No OFD packet to send [01:55:05]OFD Sender: No OFD packet to send [01:55:10]OFD Sender: No OFD packet to send [01:55:15]OFD Sender: No OFD packet to send [01:55:20]OFD Sender: No OFD packet to send [01:55:25]OFD Sender: No OFD packet to send [01:55:30]OFD Sender: No OFD packet to send [01:55:35]OFD Sender: No OFD packet to send [01:55:40]OFD Sender: No OFD packet to send [01:55:45]OFD Sender: No OFD packet to send [01:55:50]OFD Sender: No OFD packet to send [01:55:55]OFD Sender: No OFD packet to send [01:56:00]OFD Sender: No OFD packet to send [01:56:05]OFD Sender: No OFD packet to send [01:56:10]OFD Sender: No OFD packet to send [01:56:15]OFD Sender: No OFD packet to send [01:56:20]OFD Sender: No OFD packet to send [01:56:25]OFD Sender: No OFD packet to send [01:56:30]OFD Sender: No OFD packet to send [01:56:35]OFD Sender: No OFD packet to send [01:56:40]OFD Sender: No OFD packet to send [01:56:45]OFD Sender: No OFD packet to send [01:56:50]OFD Sender: No OFD packet to send [01:56:55]OFD Sender: No OFD packet to send [01:57:00]OFD Sender: No OFD packet to send [01:57:05]OFD Sender: No OFD packet to send [01:57:10]OFD Sender: No OFD packet to send [01:57:15]OFD Sender: No OFD packet to send [01:57:20]OFD Sender: No OFD packet to send [01:57:25]OFD Sender: No OFD packet to send [01:57:30]OFD Sender: No OFD packet to send [01:57:35]OFD Sender: No OFD packet to send [01:57:40]OFD Sender: No OFD packet to send [01:57:45]OFD Sender: No OFD packet to send [01:57:50]OFD Sender: No OFD packet to send [01:57:55]OFD Sender: No OFD packet to send [01:58:00]OFD Sender: No OFD packet to send [01:58:05]OFD Sender: No OFD packet to send [01:58:10]OFD Sender: No OFD packet to send [01:58:15]OFD Sender: No OFD packet to send [01:58:20]OFD Sender: No OFD packet to send [01:58:25]OFD Sender: No OFD packet to send [01:58:30]OFD Sender: No OFD packet to send [01:58:35]OFD Sender: No OFD packet to send [01:58:40]OFD Sender: No OFD packet to send [01:58:45]OFD Sender: No OFD packet to send [01:58:50]OFD Sender: No OFD packet to send [01:58:55]OFD Sender: No OFD packet to send [01:59:00]OFD Sender: No OFD packet to send [01:59:05]OFD Sender: No OFD packet to send [01:59:10]OFD Sender: No OFD packet to send [01:59:15]OFD Sender: No OFD packet to send [01:59:20]OFD Sender: No OFD packet to send [01:59:25]OFD Sender: No OFD packet to send [01:59:30]OFD Sender: No OFD packet to send [01:59:35]OFD Sender: No OFD packet to send [01:59:40]OFD Sender: No OFD packet to send [01:59:45]OFD Sender: No OFD packet to send [01:59:50]OFD Sender: No OFD packet to send [01:59:55]OFD Sender: No OFD packet to send [02:00:00]OFD Sender: No OFD packet to send [02:00:05]OFD Sender: No OFD packet to send [02:00:10]OFD Sender: No OFD packet to send [02:00:15]OFD Sender: No OFD packet to send [02:00:20]OFD Sender: No OFD packet to send [02:00:25]OFD Sender: No OFD packet to send [02:00:30]OFD Sender: No OFD packet to send [02:00:35]OFD Sender: No OFD packet to send [02:00:40]OFD Sender: No OFD packet to send [02:00:45]OFD Sender: No OFD packet to send [02:00:50]OFD Sender: No OFD packet to send [02:00:55]OFD Sender: No OFD packet to send [02:01:00]OFD Sender: No OFD packet to send [02:01:05]OFD Sender: No OFD packet to send [02:01:10]OFD Sender: No OFD packet to send [02:01:15]OFD Sender: No OFD packet to send [02:01:20]OFD Sender: No OFD packet to send [02:01:25]OFD Sender: No OFD packet to send [02:01:30]OFD Sender: No OFD packet to send [02:01:35]OFD Sender: No OFD packet to send [02:01:40]OFD Sender: No OFD packet to send [02:01:45]OFD Sender: No OFD packet to send [02:01:50]OFD Sender: No OFD packet to send [02:01:55]OFD Sender: No OFD packet to send [02:02:00]OFD Sender: No OFD packet to send [02:02:05]OFD Sender: No OFD packet to send [02:02:10]OFD Sender: No OFD packet to send [02:02:15]OFD Sender: No OFD packet to send [02:02:20]OFD Sender: No OFD packet to send [02:02:25]OFD Sender: No OFD packet to send [02:02:30]OFD Sender: No OFD packet to send [02:02:35]OFD Sender: No OFD packet to send [02:02:40]OFD Sender: No OFD packet to send [02:02:45]OFD Sender: No OFD packet to send [02:02:50]OFD Sender: No OFD packet to send [02:02:55]OFD Sender: No OFD packet to send [02:03:00]OFD Sender: No OFD packet to send [02:03:05]OFD Sender: No OFD packet to send [02:03:10]OFD Sender: No OFD packet to send [02:03:15]OFD Sender: No OFD packet to send [02:03:20]OFD Sender: No OFD packet to send [02:03:25]OFD Sender: No OFD packet to send [02:03:30]OFD Sender: No OFD packet to send [02:03:35]OFD Sender: No OFD packet to send [02:03:40]OFD Sender: No OFD packet to send [02:03:45]OFD Sender: No OFD packet to send [02:03:50]OFD Sender: No OFD packet to send [02:03:55]OFD Sender: No OFD packet to send [02:04:00]OFD Sender: No OFD packet to send [02:04:05]OFD Sender: No OFD packet to send [02:04:10]OFD Sender: No OFD packet to send [02:04:15]OFD Sender: No OFD packet to send [02:04:21]OFD Sender: No OFD packet to send [02:04:26]OFD Sender: No OFD packet to send [02:04:31]OFD Sender: No OFD packet to send [02:04:36]OFD Sender: No OFD packet to send [02:04:41]OFD Sender: No OFD packet to send [02:04:46]OFD Sender: No OFD packet to send [02:04:51]OFD Sender: No OFD packet to send [02:04:56]OFD Sender: No OFD packet to send [02:05:01]OFD Sender: No OFD packet to send [02:05:06]OFD Sender: No OFD packet to send [02:05:11]OFD Sender: No OFD packet to send [02:05:16]OFD Sender: No OFD packet to send [02:05:21]OFD Sender: No OFD packet to send [02:05:26]OFD Sender: No OFD packet to send [02:05:31]OFD Sender: No OFD packet to send [02:05:36]OFD Sender: No OFD packet to send [02:05:41]OFD Sender: No OFD packet to send [02:05:46]OFD Sender: No OFD packet to send [02:05:51]OFD Sender: No OFD packet to send [02:05:56]OFD Sender: No OFD packet to send [02:06:01]OFD Sender: No OFD packet to send [02:06:06]OFD Sender: No OFD packet to send [02:06:11]OFD Sender: No OFD packet to send [02:06:16]OFD Sender: No OFD packet to send [02:06:21]OFD Sender: No OFD packet to send [02:06:26]OFD Sender: No OFD packet to send [02:06:31]OFD Sender: No OFD packet to send [02:06:36]OFD Sender: No OFD packet to send [02:06:41]OFD Sender: No OFD packet to send [02:06:46]OFD Sender: No OFD packet to send [02:06:51]OFD Sender: No OFD packet to send [02:06:56]OFD Sender: No OFD packet to send [02:07:01]OFD Sender: No OFD packet to send [02:07:06]OFD Sender: No OFD packet to send [02:07:11]OFD Sender: No OFD packet to send [02:07:16]OFD Sender: No OFD packet to send [02:07:21]OFD Sender: No OFD packet to send [02:07:26]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:46]OFD Sender: No OFD packet to send [02:07:51]OFD Sender: No OFD packet to send [02:07:56]OFD Sender: No OFD packet to send [02:08:01]OFD Sender: No OFD packet to send [02:08:06]OFD Sender: No OFD packet to send [02:08:11]OFD Sender: No OFD packet to send [02:08:16]OFD Sender: No OFD packet to send [02:08:21]OFD Sender: No OFD packet to send [02:08:26]OFD Sender: No OFD packet to send [02:08:31]OFD Sender: No OFD packet to send [02:08:36]OFD Sender: No OFD packet to send [02:08:41]OFD Sender: No OFD packet to send [02:08:46]OFD Sender: No OFD packet to send [02:08:51]OFD Sender: No OFD packet to send [02:08:56]OFD Sender: No OFD packet to send [02:09:01]OFD Sender: No OFD packet to send [02:09:06]OFD Sender: No OFD packet to send [02:09:11]OFD Sender: No OFD packet to send [02:09:16]OFD Sender: No OFD packet to send [02:09:21]OFD Sender: No OFD packet to send [02:09:26]OFD Sender: No OFD packet to send [02:09:31]OFD Sender: No OFD packet to send [02:09:36]OFD Sender: No OFD packet to send [02:09:41]OFD Sender: No OFD packet to send [02:09:46]OFD Sender: No OFD packet to send [02:09:51]OFD Sender: No OFD packet to send [02:09:56]OFD Sender: No OFD packet to send [02:10:01]OFD Sender: No OFD packet to send [02:10:06]OFD Sender: No OFD packet to send [02:10:11]OFD Sender: No OFD packet to send [02:10:16]OFD Sender: No OFD packet to send [02:10:21]OFD Sender: No OFD packet to send [02:10:26]OFD Sender: No OFD packet to send [02:10:31]OFD Sender: No OFD packet to send [02:10:36]OFD Sender: No OFD packet to send [02:10:41]OFD Sender: No OFD packet to send [02:10:46]OFD Sender: No OFD packet to send [02:10:51]OFD Sender: No OFD packet to send [02:10:56]OFD Sender: No OFD packet to send [02:11:01]OFD Sender: No OFD packet to send [02:11:06]OFD Sender: No OFD packet to send [02:11:11]OFD Sender: No OFD packet to send [02:11:16]OFD Sender: No OFD packet to send [02:11:21]OFD Sender: No OFD packet to send [02:11:26]OFD Sender: No OFD packet to send [02:11:31]OFD Sender: No OFD packet to send [02:11:36]OFD Sender: No OFD packet to send [02:11:41]OFD Sender: No OFD packet to send [02:11:46]OFD Sender: No OFD packet to send [02:11:51]OFD Sender: No OFD packet to send [02:11:56]OFD Sender: No OFD packet to send [02:12:01]OFD Sender: No OFD packet to send [02:12:06]OFD Sender: No OFD packet to send [02:12:11]OFD Sender: No OFD packet to send [02:12:16]OFD Sender: No OFD packet to send [02:12:21]OFD Sender: No OFD packet to send [02:12:26]OFD Sender: No OFD packet to send [02:12:31]OFD Sender: No OFD packet to send [02:12:36]OFD Sender: No OFD packet to send [02:12:41]OFD Sender: No OFD packet to send [02:12:46]OFD Sender: No OFD packet to send [02:12:51]OFD Sender: No OFD packet to send [02:12:56]OFD Sender: No OFD packet to send [02:13:01]OFD Sender: No OFD packet to send [02:13:06]OFD Sender: No OFD packet to send [02:13:11]OFD Sender: No OFD packet to send [02:13:16]OFD Sender: No OFD packet to send [02:13:21]OFD Sender: No OFD packet to send [02:13:26]OFD Sender: No OFD packet to send [02:13:31]OFD Sender: No OFD packet to send [02:13:36]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14:27]accept exits with 9 [02:14:27]New connection [02:14:27]New thread 3066928484 created [02:14:27]Thread 3066785124 joined [02:14:27]Waiting for new connection... [02:14:27] Sock 9.Parse request [02:14:27]Sock 9.Check first char [02:14:27]Sock 9.First char is OK [02:14:27]request: POST /json_proto HTTP/1.0 [02:14:27]Method: POST [02:14:27]URL: /json_proto [02:14:27]Method is POST - this is cgi request [02:14:27]url: /json_proto [02:14:27]query_string will be loaded in cgi processing [02:14:27]execute_cgi json_proto POST (null) [02:14:27]execute_cgi path=json_proto method=POST [02:14:27]POST find Content-Length [02:14:27]Host: 172.17.33.3:8080 [02:14:27]Content-Length: 682 [02:14:27]Content-Type: application/json [02:14:27] [02:14:27]POST finish read [02:14:27]Found Content-Length = 682 [02:14:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347463", "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" : 64.30, "quantity" : 15.560, "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" ] } } [02:14:27]execute_script... [02:14: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)347463", "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" : 64.30, "quantity" : 15.560, "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" ] } } [02:14:27]POST & json_proto [02:14:27]process_json_proto [02:14:27]json parsed OK: [02:14:27]protocol is kg_v1.0 [02:14:27]action value=close_receipt [02:14:27]process_action close_receipt [02:14:27]cmd_close_receipt [02:14:27]MH_GetDate [02:14:27]Write to MH i2c: F0 00 00 C1 71 21 [02:14:27]Write i2c OK [02:14:27]MH_I2C_Read... [02:14:27]Read from MH i2c: F0 [02:14:27]MH_I2C_Read... [02:14:27]Read from MH i2c: F0 09 00 [02:14:27]MH_I2C_Read... [02:14:27]Read from MH i2c: F0 09 00 C1 71 00 0B 3C 1B 66 23 5B 8F 65 64 [02:14:27]GetLastDocTimeStamp 1713058729 [02:14:27]current date 1713060875 [02:14:27]FM_GetShiftState [02:14:27]SAM_PROTO_GetShiftState [02:14:27]wFMCommunicate request_size=4 [02:14:27]MH_SAM_APDU [02:14:27]CAPDU: 80 13 01 00 [02:14:27]Write to MH i2c: E2 08 00 C2 71 80 13 01 00 00 00 00 00 B0 [02:14:27]Write i2c OK [02:14:27]MH_I2C_Read... [02:14:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:14:27]Read from MH i2c: E2 [02:14:27]MH_I2C_Read... [02:14:27]Read from MH i2c: E2 0E 00 [02:14:27]MH_I2C_Read... [02:14:27]Read from MH i2c: E2 0E 00 C2 71 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 5C [02:14:27]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [02:14:27]wFMCommunicate OK [02:14:27]SAM_PROTO_GetShiftState done [02:14:27]FM_GetShiftState done [02:14:27]opened in 1713053951 [02:14:27]opened+sec_in_day 1713140351 [02:14:27]quantity*price = 100050 [02:14:27]sum+1 = 100052 [02:14:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 6 14.04.2024 02:14 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29096 ФПД: 58038468753993 1/tax-web-control/client/api/v1/ticket?date=20240414T021435&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29096&fm=58038468753993&tin=02508201610067®Number=0000138879044617&sum=100000 [02:14:28]StoreToDocumentArchive [02:14:28]shift 116 fd 29096 [02:14:28]save to /storage/0116/doc_00029096 [02:14:28]save last doc name /storage/0116/doc_00029096 to /storage/kkm_last_doc_name [02:14:28]save OK [02:14:28]Clear old archive folders... [02:14:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:14:28]tlvbuf is 011B7080 [02:14:28]SAM_PROTO_ClearQueue [02:14:28]wFMCommunicate request_size=4 [02:14:28]MH_SAM_APDU [02:14:28]CAPDU: 80 09 00 00 [02:14:28]Write to MH i2c: E2 08 00 CF 71 80 09 00 00 00 00 00 00 B2 [02:14:28]Write i2c OK [02:14:28]MH_I2C_Read... [02:14:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:14:28]Read from MH i2c: E2 [02:14:28]MH_I2C_Read... [02:14:28]Read from MH i2c: E2 03 00 [02:14:28]MH_I2C_Read... [02:14:28]Read from MH i2c: E2 03 00 CF 71 00 90 00 B4 [02:14:28]RAPDU: 90 00 [02:14:28]wFMCommunicate OK [02:14:28]SAM_PROTO_ClearQueue done [02:14:28]KKMCreateOFDPacket [02:14:28]OFDProtocolAddRootSTLVToBuf [02:14:28]FM_MakeSignedData [02:14:28]FM_MakeSignedData [02:14:28]SAM_PROTO_SignData [02:14:28]wFMCommunicate request_size=4 [02:14:28]MH_SAM_APDU [02:14:28]CAPDU: 80 0D 01 02 [02:14:28]Write to MH i2c: E2 08 00 D0 71 80 0D 01 02 00 00 00 00 BA [02:14:28]Write i2c OK [02:14:28]MH_I2C_Read... [02:14:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:14:28]Read from MH i2c: E2 [02:14:28]MH_I2C_Read... [02:14:28]Read from MH i2c: E2 03 00 [02:14:28]MH_I2C_Read... [02:14:28]Read from MH i2c: E2 03 00 D0 71 00 90 00 B5 [02:14:28]RAPDU: 90 00 [02:14:28]wFMCommunicate OK [02:14:28]wFMCommunicate request_size=255 [02:14:28]MH_SAM_APDU [02:14:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 0B 3C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A8 71 00 00 35 04 06 00 34 [02:14:28]Write to MH i2c: E2 02 01 D1 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 0B 3C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A8 71 00 00 35 04 06 00 34 00 00 75 [02:14:28]Write i2c OK [02:14:28]MH_I2C_Read... [02:14:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:14:28]Read from MH i2c: E2 [02:14:28]MH_I2C_Read... [02:14:28]Read from MH i2c: E2 03 00 [02:14:28]MH_I2C_Read... [02:14:28]Read from MH i2c: E2 03 00 D1 71 00 90 00 B6 [02:14:28]RAPDU: 90 00 [02:14:28]wFMCommunicate OK [02:14:28]wFMCommunicate request_size=10 [02:14:28]MH_SAM_APDU [02:14:28]CAPDU: 80 0D 02 02 05 C9 22 50 3A 49 [02:14:28]Write to MH i2c: E2 0D 00 D2 71 80 0D 02 02 05 00 C9 22 50 3A 49 00 00 85 [02:14:28]Write i2c OK [02:14:28]MH_I2C_Read... [02:14:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:14:28]Read from MH i2c: E2 [02:14:28]MH_I2C_Read... [02:14:28]Read from MH i2c: E2 03 00 [02:14:28]MH_I2C_Read... [02:14:28]Read from MH i2c: E2 03 00 D2 71 00 90 00 B7 [02:14:28]RAPDU: 90 00 [02:14:28]wFMCommunicate OK [02:14:28]wFMCommunicate request_size=4 [02:14:28]MH_SAM_APDU [02:14:28]CAPDU: 80 0D 03 02 [02:14:28]Write to MH i2c: E2 08 00 D3 71 80 0D 03 02 00 00 00 00 BF [02:14:28]Write i2c OK [02:14:28]MH_I2C_Read... [02:14:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:14:28]Read from MH i2c: E2 [02:14:28]MH_I2C_Read... [02:14:28]Read from MH i2c: E2 0B 00 [02:14:28]MH_I2C_Read... [02:14:28]Read from MH i2c: E2 0B 00 D3 71 00 75 89 53 CF AC 74 19 2E 90 00 47 [02:14:28]RAPDU: 75 89 53 CF AC 74 19 2E 90 00 [02:14:28]wFMCommunicate OK [02:14:28]SAM_PROTO_SignData done [02:14:28]FM_MakeSignedData done [02:14:28]CreateOFDProtocolMessage [02:14:28]wFMCommunicate request_size=4 [02:14:28]MH_SAM_APDU [02:14:28]CAPDU: 80 11 00 00 [02:14:28]Write to MH i2c: E2 08 00 D4 71 80 11 00 00 00 00 00 00 BF [02:14:28]Write i2c OK [02:14:28]MH_I2C_Read... [02:14:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:14:29]Read from MH i2c: E2 [02:14:29]MH_I2C_Read... [02:14:29]Read from MH i2c: E2 17 00 [02:14:29]MH_I2C_Read... [02:14:29]Read from MH i2c: E2 17 00 D4 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 0E [02:14:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:14:29]wFMCommunicate OK [02:14:29]CreateOFDProtocolMessage done [02:14:29]OFDSenderStorePacket 29096 [02:14:29]StoreOFDPacket docnum=29096 [02:14:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 CB 73 07 01 D1 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 0B 3C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A8 71 00 00 35 04 06 00 34 C9 22 50 3A 49 75 89 53 CF AC 74 19 2E [02:14:29]CheckFolder [02:14:29]dirname=/storage/ofd_packets [02:14:29]CheckFolder done [02:14:29]ProducePacketName [02:14:29]name=ofd_packets/00029096 [02:14:29]NVStorageSaveData ofd_packets/00029096 [02:14:29]File name is /storage/ofd_packets/00029096 [02:14:29]Write 301 bytes [02:14:29]NVStorageSaveData done [02:14:29]OFDSenderStorePacket done [02:14:29]KKMCreateOFDPacket done [02:14:29]NVStorageSaveData kkm_last_timestamp [02:14:29]File name is /storage/kkm_last_timestamp [02:14:29]Write 4 bytes [02:14:29]NVStorageSaveData done [02:14:29]ExternCall_PrintAddStr [02:14:29]wPrintStart [02:14:29]Write to MH i2c: 01 00 00 D5 71 46 [02:14:29]Write i2c OK [02:14:29]MH_I2C_Read... [02:14:29]Read from MH i2c: 01 [02:14:29]MH_I2C_Read... [02:14:29]Read from MH i2c: 01 07 00 [02:14:29]MH_I2C_Read... [02:14:29]Read from MH i2c: 01 07 00 D5 71 00 00 00 00 00 FF 0F 5B [02:14:29]RasterBufferAndPrint [02:14:29]line Счет N : (1)347463 [02:14:29]line ИНН: 02508201610067 [02:14:29]line Контрольно-Кассовый Чек [02:14:29]line ПРОДАЖА [02:14:29]line ТРК (МРК, ГНК) : 32 [02:14:29]line Товар: 2710124130 [02:14:29]line Аи-92-К-5 [02:14:29]line 15.560 * 64.30 [02:14:29]line = 1000.51 [02:14:29]line НДС 12% НСП 1% [02:14:29]line > о реализуемом товаре [02:14:29]line ОКРУГЛЕНИЕ: -0.51 [02:14:29]line ИТОГО: 1000.00 [02:14:29]line Внесено: 1000.00 [02:14:29]line СДАЧА: 0.00 [02:14:29]line НСП 1% : 8.85 [02:14:29]line НДС 12% : 106.25 [02:14:29]line Наличными: 1000.00 [02:14:29]line Безнал.: 0.00 [02:14:29]line Место: АЗС № 108 "Партнер Нефть" [02:14:29]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [02:14:29]line СНО: Общий режим [02:14:29]line Чек 6 14.04.2024 02:14 [02:14:29]line Смена: 116 ФФД: 1.0 [02:14:29]line ЗНМ: 0300000027 [02:14:29]line РНМ: 0000138879044617 [02:14:29]line Версия ККМ: 001 [02:14:29]line ФМ: 0000000000963154 [02:14:29]line ФД: 29096 [02:14:29]line ФПД: 58038468753993 [02:14:29]line 1/tax-web-control/client/api/v1/ticket?date=20240414T021435&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29096&fm=58038468753993&tin=02508201610067®Number=0000138879044617&sum=100000 [02:14:29]OFD Sender: Processing packet 29096 [packets to send 8, broken 7] [02:14:29]ProducePacketName [02:14:29]name=ofd_packets/00029096 [02:14:29]OFD Sender: To server: pG, [02:14:29]CommunicateWithHost lk.salyk.kg:30040 [02:14:29]ConnectInit lk.salyk.kg [02:14:29]written 0, free lines is 4095 [02:14:29]Connected sock=10 [02:14: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 31 35 34 0F 01 00 00 CB 73 07 01 D1 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 0B 3C 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A8 71 00 00 35 04 06 00 34 C9 22 50 3A 49 75 89 53 CF AC 74 19 2E [02:14:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 7B 7D 47 00 1E 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 31 35 34 10 04 04 00 A8 71 00 00 F4 03 04 00 B0 E6 1A 66 B6 04 01 00 00 3B 72 35 31 1B 46 1F C5 [02:14:29]CommunicateWithHost err = 0 [02:14:29]CheckOFDResponse [02:14:29]1017 (14) - 77093643461234 [02:14:29]1041 (16) - 0000000000963154 [02:14:29]1040 (4) - 29096 [02:14:29]1012 (4) - 13.04.2024 20:10 [02:14:29]1206 (1) - 0 [02:14:29]OFD Sender: Remove packet 29096 [02:14:29]ProducePacketName [02:14:29]name=ofd_packets/00029096 [02:14:29]NVStorageDeleteData [02:14:29]Write to MH i2c: 01 00 00 FF 71 70 [02:14:29]Write i2c OK [02:14:29]MH_I2C_Read... [02:14:29]Read from MH i2c: 01 [02:14:29]MH_I2C_Read... [02:14:29]Read from MH i2c: 01 07 00 [02:14:29]MH_I2C_Read... [02:14:29]Read from MH i2c: 01 07 00 FF 71 00 00 00 00 00 BD 0C 40 [02:14:29]RasterBufferAndPrint [02:14:29]line [02:14:29]line [02:14:29]line [02:14:29]line [02:14:29]line [02:14:29]written 0, free lines is 3267 [02:14:29]MH_Cut [02:14:29]Write to MH i2c: D1 01 00 06 72 01 4A [02:14:29]Write i2c OK [02:14:29]MH_I2C_Read... [02:14:29]Read from MH i2c: D1 [02:14:29]MH_I2C_Read... [02:14:29]Read from MH i2c: D1 01 00 [02:14:29]MH_I2C_Read... [02:14:29]Read from MH i2c: D1 01 00 06 72 00 49 [02:14:29]Write to MH i2c: 01 00 00 07 72 79 [02:14:29]Write i2c OK [02:14:29]MH_I2C_Read... [02:14:30]OFD Sender: No OFD packet to send [02:14:30]*** Cut start [02:14:30]*** Partial cut [02:14:30]*** CUTSNS_PIN = 1 [02:14:30]*** CUTSNS_PIN = 0 [02:14:30]*** Brake cut motor [02:14:31]Read from MH i2c: 01 [02:14:31]MH_I2C_Read... [02:14:31]*** Stop cut motor [02:14:31]*** Cut end [02:14:31]Read from MH i2c: 01 07 00 [02:14:31]MH_I2C_Read... [02:14:31]Read from MH i2c: 01 07 00 07 72 00 00 00 00 00 FF 0F 8E [02:14:31]process_action close_receipt done [02:14:31]requested_data is exist [02:14:31]produce_requested_data [02:14:31]requested_item fm.sn is exist - process it [02:14:31]wFMCommunicate request_size=4 [02:14:31]MH_SAM_APDU [02:14:31]CAPDU: 80 11 00 00 [02:14:31]Write to MH i2c: E2 08 00 08 72 80 11 00 00 00 00 00 00 F4 [02:14:31]Write i2c OK [02:14:31]MH_I2C_Read... [02:14:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:14:31]Read from MH i2c: E2 [02:14:31]MH_I2C_Read... [02:14:31]Read from MH i2c: E2 17 00 [02:14:31]MH_I2C_Read... [02:14:31]Read from MH i2c: E2 17 00 08 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 43 [02:14:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:14:31]wFMCommunicate OK [02:14:31]requested_item fd.num is exist - process it [02:14:31]SAM_PROTO_GetFieldsCounters [02:14:31]wFMCommunicate request_size=4 [02:14:31]MH_SAM_APDU [02:14:31]CAPDU: 80 13 00 00 [02:14:31]Write to MH i2c: E2 08 00 09 72 80 13 00 00 00 00 00 00 F7 [02:14:31]Write i2c OK [02:14:31]MH_I2C_Read... [02:14:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:14:31]Read from MH i2c: E2 [02:14:31]MH_I2C_Read... [02:14:31]Read from MH i2c: E2 62 00 [02:14:31]MH_I2C_Read... [02:14:31]Read from MH i2c: E2 62 00 09 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A8 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [02:14: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A8 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:14:31]wFMCommunicate OK [02:14:31]SAM_PROTO_GetFieldsCounters done [02:14:31]requested_item shift.num is exist - process it [02:14:31]requested_item shift.opened is exist - process it [02:14:31]req_shift_opened [02:14:31]FM_GetShiftState [02:14:31]SAM_PROTO_GetShiftState [02:14:31]wFMCommunicate request_size=4 [02:14:31]MH_SAM_APDU [02:14:31]CAPDU: 80 13 01 00 [02:14:31]Write to MH i2c: E2 08 00 0A 72 80 13 01 00 00 00 00 00 F9 [02:14:31]Write i2c OK [02:14:31]MH_I2C_Read... [02:14:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:14:31]Read from MH i2c: E2 [02:14:31]MH_I2C_Read... [02:14:31]Read from MH i2c: E2 0E 00 [02:14:31]MH_I2C_Read... [02:14:31]Read from MH i2c: E2 0E 00 0A 72 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A5 [02:14:31]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [02:14:31]wFMCommunicate OK [02:14:31]SAM_PROTO_GetShiftState done [02:14:31]FM_GetShiftState done [02:14:31]req_shift_opened done [02:14:31]requested_item shift.open_date is exist - process it [02:14:31]req_shift_open_date [02:14:31]req_shift_open_date done [02:14:31]produce_requested_data done [02:14:31]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29096,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [02:14:31]process_action_free close_receipt [02:14:31]json_value_free [02:14:31]json_value_free done [02:14:31]process_json_proto returns [02:14:31]Send response to host [02:14:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29096,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [02:14:31]free response buf [02:14:31]execute_script done [02:14:31]execute_script returns [02:14:31]free content buf [02:14:31]Sock 9.Close socket [02:14:31]Sock 9.Thread stoped [02:14:35]OFD Sender: No OFD packet to send [02:14:40]OFD Sender: No OFD packet to send [02:14:45]OFD Sender: No OFD packet to send [02:14:50]OFD Sender: No OFD packet to send [02:14:55]OFD Sender: No OFD packet to send [02:15:00]OFD Sender: No OFD packet to send [02:15:05]OFD Sender: No OFD packet to send [02:15:10]OFD Sender: No OFD packet to send [02:15:15]OFD Sender: No OFD packet to send [02:15:20]OFD Sender: No OFD packet to send [02:15:25]OFD Sender: No OFD packet to send [02:15:30]OFD Sender: No OFD packet to send [02:15:35]OFD Sender: No OFD packet to send [02:15:40]OFD Sender: No OFD packet to send [02:15:45]OFD Sender: No OFD packet to send [02:15:50]OFD Sender: No OFD packet to send [02:15:55]OFD Sender: No OFD packet to send [02:16:00]OFD Sender: No OFD packet to send [02:16:05]OFD Sender: No OFD packet to send [02:16:10]OFD Sender: No OFD packet to send [02:16:15]OFD Sender: No OFD packet to send [02:16:20]OFD Sender: No OFD packet to send [02:16:25]OFD Sender: No OFD packet to send [02:16:30]OFD Sender: No OFD packet to send [02:16:35]OFD Sender: No OFD packet to send [02:16:40]OFD Sender: No OFD packet to send [02:16:45]OFD Sender: No OFD packet to send [02:16:50]OFD Sender: No OFD packet to send [02:16:55]OFD Sender: No OFD packet to send [02:17:00]OFD Sender: No OFD packet to send [02:17:05]OFD Sender: No OFD packet to send [02:17:10]OFD Sender: No OFD packet to send [02:17:15]OFD Sender: No OFD packet to send [02:17:20]OFD Sender: No OFD packet to send [02:17:25]OFD Sender: No OFD packet to send [02:17:30]OFD Sender: No OFD packet to send [02:17:35]OFD Sender: No OFD packet to send [02:17:40]OFD Sender: No OFD packet to send [02:17:45]OFD Sender: No OFD packet to send [02:17:50]OFD Sender: No OFD packet to send [02:17:55]OFD Sender: No OFD packet to send [02:18:00]OFD Sender: No OFD packet to send [02:18:05]OFD Sender: No OFD packet to send [02:18:10]OFD Sender: No OFD packet to send [02:18:15]OFD Sender: No OFD packet to send [02:18:20]OFD Sender: No OFD packet to send [02:18:25]OFD Sender: No OFD packet to send [02:18:30]OFD Sender: No OFD packet to send [02:18:35]OFD Sender: No OFD packet to send [02:18:40]OFD Sender: No OFD packet to send [02:18:45]OFD Sender: No OFD packet to send [02:18:50]OFD Sender: No OFD packet to send [02:18:55]OFD Sender: No OFD packet to send [02:19:00]OFD Sender: No OFD packet to send [02:19:05]OFD Sender: No OFD packet to send [02:19:10]OFD Sender: No OFD packet to send [02:19:15]OFD Sender: No OFD packet to send [02:19:20]OFD Sender: No OFD packet to send [02:19:25]OFD Sender: No OFD packet to send [02:19:30]OFD Sender: No OFD packet to send [02:19:35]OFD Sender: No OFD packet to send [02:19:40]OFD Sender: No OFD packet to send [02:19:45]OFD Sender: No OFD packet to send [02:19:50]OFD Sender: No OFD packet to send [02:19:55]OFD Sender: No OFD packet to send [02:20:00]OFD Sender: No OFD packet to send [02:20:05]OFD Sender: No OFD packet to send [02:20:10]OFD Sender: No OFD packet to send [02:20:15]OFD Sender: No OFD packet to send [02:20:20]OFD Sender: No OFD packet to send [02:20:25]OFD Sender: No OFD packet to send [02:20:30]OFD Sender: No OFD packet to send [02:20:35]OFD Sender: No OFD packet to send [02:20:40]OFD Sender: No OFD packet to send [02:20:45]OFD Sender: No OFD packet to send [02:20:50]OFD Sender: No OFD packet to send [02:20:55]OFD Sender: No OFD packet to send [02:21:00]OFD Sender: No OFD packet to send [02:21:05]OFD Sender: No OFD packet to send [02:21:10]OFD Sender: No OFD packet to send [02:21:15]OFD Sender: No OFD packet to send [02:21:20]OFD Sender: No OFD packet to send [02:21:25]OFD Sender: No OFD packet to send [02:21:30]OFD Sender: No OFD packet to send [02:21:35]OFD Sender: No OFD packet to send [02:21:40]OFD Sender: No OFD packet to send [02:21:45]OFD Sender: No OFD packet to send [02:21:50]OFD Sender: No OFD packet to send [02:21:55]OFD Sender: No OFD packet to send [02:22:00]OFD Sender: No OFD packet to send [02:22:05]OFD Sender: No OFD packet to send [02:22:10]OFD Sender: No OFD packet to send [02:22:15]OFD Sender: No OFD packet to send [02:22:20]OFD Sender: No OFD packet to send [02:22:25]OFD Sender: No OFD packet to send [02:22:30]OFD Sender: No OFD packet to send [02:22:35]OFD Sender: No OFD packet to send [02:22:40]OFD Sender: No OFD packet to send [02:22:45]OFD Sender: No OFD packet to send [02:22:50]OFD Sender: No OFD packet to send [02:22:55]OFD Sender: No OFD packet to send [02:23:00]OFD Sender: No OFD packet to send [02:23:05]OFD Sender: No OFD packet to send [02:23:10]OFD Sender: No OFD packet to send [02:23:15]OFD Sender: No OFD packet to send [02:23:20]OFD Sender: No OFD packet to send [02:23:25]OFD Sender: No OFD packet to send [02:23:30]OFD Sender: No OFD packet to send [02:23:35]OFD Sender: No OFD packet to send [02:23:40]OFD Sender: No OFD packet to send [02:23:45]OFD Sender: No OFD packet to send [02:23:50]OFD Sender: No OFD packet to send [02:23:55]OFD Sender: No OFD packet to send [02:24:00]OFD Sender: No OFD packet to send [02:24:05]OFD Sender: No OFD packet to send [02:24:06]accept exits with 7 [02:24:06]New connection [02:24:06]New thread 3066785124 created [02:24:06]Thread 3066928484 joined [02:24:06]Waiting for new connection... [02:24:06] Sock 7.Parse request [02:24:06]Sock 7.Check first char [02:24:06]Sock 7.First char is OK [02:24:06]request: POST /json_proto HTTP/1.0 [02:24:06]Method: POST [02:24:06]URL: /json_proto [02:24:06]Method is POST - this is cgi request [02:24:06]url: /json_proto [02:24:06]query_string will be loaded in cgi processing [02:24:06]execute_cgi json_proto POST (null) [02:24:06]execute_cgi path=json_proto method=POST [02:24:06]POST find Content-Length [02:24:06]Host: 172.17.33.3:8080 [02:24:06]Content-Length: 682 [02:24:06]Content-Type: application/json [02:24:06] [02:24:06]POST finish read [02:24:06]Found Content-Length = 682 [02:24:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347464", "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" : 64.30, "quantity" : 15.560, "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" ] } } [02:24:06]execute_script... [02:24: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)347464", "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" : 64.30, "quantity" : 15.560, "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" ] } } [02:24:06]POST & json_proto [02:24:06]process_json_proto [02:24:06]json parsed OK: [02:24:06]protocol is kg_v1.0 [02:24:06]action value=close_receipt [02:24:06]process_action close_receipt [02:24:06]cmd_close_receipt [02:24:06]MH_GetDate [02:24:06]Write to MH i2c: F0 00 00 0B 72 6C [02:24:06]Write i2c OK [02:24:06]MH_I2C_Read... [02:24:06]Read from MH i2c: F0 [02:24:06]MH_I2C_Read... [02:24:06]Read from MH i2c: F0 09 00 [02:24:06]MH_I2C_Read... [02:24:06]Read from MH i2c: F0 09 00 0B 72 00 4E 3E 1B 66 23 5B 8F 65 F4 [02:24:06]GetLastDocTimeStamp 1713060875 [02:24:06]current date 1713061454 [02:24:06]FM_GetShiftState [02:24:06]SAM_PROTO_GetShiftState [02:24:06]wFMCommunicate request_size=4 [02:24:06]MH_SAM_APDU [02:24:06]CAPDU: 80 13 01 00 [02:24:06]Write to MH i2c: E2 08 00 0C 72 80 13 01 00 00 00 00 00 FB [02:24:06]Write i2c OK [02:24:06]MH_I2C_Read... [02:24:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:24:06]Read from MH i2c: E2 [02:24:06]MH_I2C_Read... [02:24:06]Read from MH i2c: E2 0E 00 [02:24:06]MH_I2C_Read... [02:24:06]Read from MH i2c: E2 0E 00 0C 72 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 A7 [02:24:06]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [02:24:06]wFMCommunicate OK [02:24:06]SAM_PROTO_GetShiftState done [02:24:06]FM_GetShiftState done [02:24:06]opened in 1713053951 [02:24:06]opened+sec_in_day 1713140351 [02:24:06]quantity*price = 100050 [02:24:06]sum+1 = 100052 [02:24:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 7 14.04.2024 02:24 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29097 ФПД: 64860310487388 1/tax-web-control/client/api/v1/ticket?date=20240414T022414&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29097&fm=64860310487388&tin=02508201610067®Number=0000138879044617&sum=100000 [02:24:07]StoreToDocumentArchive [02:24:07]shift 116 fd 29097 [02:24:07]save to /storage/0116/doc_00029097 [02:24:07]save last doc name /storage/0116/doc_00029097 to /storage/kkm_last_doc_name [02:24:07]save OK [02:24:07]Clear old archive folders... [02:24:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:24:07]tlvbuf is 012F0A50 [02:24:07]SAM_PROTO_ClearQueue [02:24:07]wFMCommunicate request_size=4 [02:24:07]MH_SAM_APDU [02:24:07]CAPDU: 80 09 00 00 [02:24:07]Write to MH i2c: E2 08 00 19 72 80 09 00 00 00 00 00 00 FD [02:24:07]Write i2c OK [02:24:07]MH_I2C_Read... [02:24:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:24:07]Read from MH i2c: E2 [02:24:07]MH_I2C_Read... [02:24:07]Read from MH i2c: E2 03 00 [02:24:07]MH_I2C_Read... [02:24:07]Read from MH i2c: E2 03 00 19 72 00 90 00 FF [02:24:07]RAPDU: 90 00 [02:24:07]wFMCommunicate OK [02:24:07]SAM_PROTO_ClearQueue done [02:24:07]KKMCreateOFDPacket [02:24:07]OFDProtocolAddRootSTLVToBuf [02:24:07]FM_MakeSignedData [02:24:07]FM_MakeSignedData [02:24:07]SAM_PROTO_SignData [02:24:07]wFMCommunicate request_size=4 [02:24:07]MH_SAM_APDU [02:24:07]CAPDU: 80 0D 01 02 [02:24:07]Write to MH i2c: E2 08 00 1A 72 80 0D 01 02 00 00 00 00 05 [02:24:07]Write i2c OK [02:24:07]MH_I2C_Read... [02:24:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:24:07]Read from MH i2c: E2 [02:24:07]MH_I2C_Read... [02:24:07]Read from MH i2c: E2 03 00 [02:24:07]MH_I2C_Read... [02:24:07]Read from MH i2c: E2 03 00 1A 72 00 90 00 00 [02:24:07]RAPDU: 90 00 [02:24:07]wFMCommunicate OK [02:24:07]wFMCommunicate request_size=255 [02:24:07]MH_SAM_APDU [02:24:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 07 00 00 00 F4 03 04 00 4E 3E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A9 71 00 00 35 04 06 00 3A [02:24:07]Write to MH i2c: E2 02 01 1B 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 07 00 00 00 F4 03 04 00 4E 3E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A9 71 00 00 35 04 06 00 3A 00 00 0D [02:24:07]Write i2c OK [02:24:07]MH_I2C_Read... [02:24:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:24:08]Read from MH i2c: E2 [02:24:08]MH_I2C_Read... [02:24:08]Read from MH i2c: E2 03 00 [02:24:08]MH_I2C_Read... [02:24:08]Read from MH i2c: E2 03 00 1B 72 00 90 00 01 [02:24:08]RAPDU: 90 00 [02:24:08]wFMCommunicate OK [02:24:08]wFMCommunicate request_size=10 [02:24:08]MH_SAM_APDU [02:24:08]CAPDU: 80 0D 02 02 05 FD 77 C4 41 5C [02:24:08]Write to MH i2c: E2 0D 00 1C 72 80 0D 02 02 05 00 FD 77 C4 41 5C 00 00 E7 [02:24:08]Write i2c OK [02:24:08]MH_I2C_Read... [02:24:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:24:08]Read from MH i2c: E2 [02:24:08]MH_I2C_Read... [02:24:08]Read from MH i2c: E2 03 00 [02:24:08]MH_I2C_Read... [02:24:08]Read from MH i2c: E2 03 00 1C 72 00 90 00 02 [02:24:08]RAPDU: 90 00 [02:24:08]wFMCommunicate OK [02:24:08]wFMCommunicate request_size=4 [02:24:08]MH_SAM_APDU [02:24:08]CAPDU: 80 0D 03 02 [02:24:08]Write to MH i2c: E2 08 00 1D 72 80 0D 03 02 00 00 00 00 0A [02:24:08]Write i2c OK [02:24:08]MH_I2C_Read... [02:24:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:24:08]Read from MH i2c: E2 [02:24:08]MH_I2C_Read... [02:24:08]Read from MH i2c: E2 0B 00 [02:24:08]MH_I2C_Read... [02:24:08]Read from MH i2c: E2 0B 00 1D 72 00 FB 18 99 83 F4 52 81 B9 90 00 BA [02:24:08]RAPDU: FB 18 99 83 F4 52 81 B9 90 00 [02:24:08]wFMCommunicate OK [02:24:08]SAM_PROTO_SignData done [02:24:08]FM_MakeSignedData done [02:24:08]CreateOFDProtocolMessage [02:24:08]wFMCommunicate request_size=4 [02:24:08]MH_SAM_APDU [02:24:08]CAPDU: 80 11 00 00 [02:24:08]Write to MH i2c: E2 08 00 1E 72 80 11 00 00 00 00 00 00 0A [02:24:08]Write i2c OK [02:24:08]MH_I2C_Read... [02:24:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:24:08]Read from MH i2c: E2 [02:24:08]MH_I2C_Read... [02:24:08]Read from MH i2c: E2 17 00 [02:24:08]MH_I2C_Read... [02:24:08]Read from MH i2c: E2 17 00 1E 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 59 [02:24:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:24:08]wFMCommunicate OK [02:24:08]CreateOFDProtocolMessage done [02:24:08]OFDSenderStorePacket 29097 [02:24:08]StoreOFDPacket docnum=29097 [02:24:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 6A CF 07 01 60 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 07 00 00 00 F4 03 04 00 4E 3E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A9 71 00 00 35 04 06 00 3A FD 77 C4 41 5C FB 18 99 83 F4 52 81 B9 [02:24:08]CheckFolder [02:24:08]dirname=/storage/ofd_packets [02:24:08]CheckFolder done [02:24:08]ProducePacketName [02:24:08]name=ofd_packets/00029097 [02:24:08]NVStorageSaveData ofd_packets/00029097 [02:24:08]File name is /storage/ofd_packets/00029097 [02:24:08]Write 301 bytes [02:24:08]NVStorageSaveData done [02:24:08]OFDSenderStorePacket done [02:24:08]KKMCreateOFDPacket done [02:24:08]NVStorageSaveData kkm_last_timestamp [02:24:08]File name is /storage/kkm_last_timestamp [02:24:08]Write 4 bytes [02:24:08]NVStorageSaveData done [02:24:08]ExternCall_PrintAddStr [02:24:08]wPrintStart [02:24:08]Write to MH i2c: 01 00 00 1F 72 91 [02:24:08]Write i2c OK [02:24:08]MH_I2C_Read... [02:24:08]Read from MH i2c: 01 [02:24:08]MH_I2C_Read... [02:24:08]Read from MH i2c: 01 07 00 [02:24:08]MH_I2C_Read... [02:24:08]Read from MH i2c: 01 07 00 1F 72 00 00 00 00 00 FF 0F A6 [02:24:08]RasterBufferAndPrint [02:24:08]line Счет N : (1)347464 [02:24:08]line ИНН: 02508201610067 [02:24:08]line Контрольно-Кассовый Чек [02:24:08]line ПРОДАЖА [02:24:08]line ТРК (МРК, ГНК) : 42 [02:24:08]line Товар: 2710124130 [02:24:08]line Аи-92-К-5 [02:24:08]line 15.560 * 64.30 [02:24:08]line = 1000.51 [02:24:08]line НДС 12% НСП 1% [02:24:08]line > о реализуемом товаре [02:24:08]line ОКРУГЛЕНИЕ: -0.51 [02:24:08]line ИТОГО: 1000.00 [02:24:08]line Внесено: 1000.00 [02:24:08]line СДАЧА: 0.00 [02:24:08]line НСП 1% : 8.85 [02:24:08]line НДС 12% : 106.25 [02:24:08]line Наличными: 1000.00 [02:24:08]line Безнал.: 0.00 [02:24:08]line Место: АЗС № 108 "Партнер Нефть" [02:24:08]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [02:24:08]line СНО: Общий режим [02:24:08]line Чек 7 14.04.2024 02:24 [02:24:08]line Смена: 116 ФФД: 1.0 [02:24:08]line ЗНМ: 0300000027 [02:24:08]line РНМ: 0000138879044617 [02:24:08]line Версия ККМ: 001 [02:24:08]line ФМ: 0000000000963154 [02:24:08]line ФД: 29097 [02:24:08]line ФПД: 64860310487388 [02:24:08]line 1/tax-web-control/client/api/v1/ticket?date=20240414T022414&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29097&fm=64860310487388&tin=02508201610067®Number=0000138879044617&sum=100000 [02:24:08]OFD Sender: Processing packet 29097 [packets to send 8, broken 7] [02:24:08]ProducePacketName [02:24:08]name=ofd_packets/00029097 [02:24:08]OFD Sender: To server: pG, [02:24:08]CommunicateWithHost lk.salyk.kg:30040 [02:24:08]ConnectInit lk.salyk.kg [02:24:08]written 0, free lines is 4095 [02:24:08]Connected sock=10 [02:24: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 31 35 34 0F 01 00 00 6A CF 07 01 60 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 19 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 07 00 00 00 F4 03 04 00 4E 3E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 A9 71 00 00 35 04 06 00 3A FD 77 C4 41 5C FB 18 99 83 F4 52 81 B9 [02:24:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 10 49 47 00 7C 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 31 35 34 10 04 04 00 A9 71 00 00 F4 03 04 00 F3 E8 1A 66 B6 04 01 00 00 24 91 28 26 50 90 B5 96 [02:24:08]CommunicateWithHost err = 0 [02:24:08]CheckOFDResponse [02:24:08]1017 (14) - 77093643461234 [02:24:08]1041 (16) - 0000000000963154 [02:24:08]1040 (4) - 29097 [02:24:08]1012 (4) - 13.04.2024 20:20 [02:24:08]1206 (1) - 0 [02:24:08]OFD Sender: Remove packet 29097 [02:24:08]ProducePacketName [02:24:08]name=ofd_packets/00029097 [02:24:08]NVStorageDeleteData [02:24:08]Write to MH i2c: 01 00 00 49 72 BB [02:24:08]Write i2c OK [02:24:08]MH_I2C_Read... [02:24:08]Read from MH i2c: 01 [02:24:08]MH_I2C_Read... [02:24:08]Read from MH i2c: 01 07 00 [02:24:08]MH_I2C_Read... [02:24:08]Read from MH i2c: 01 07 00 49 72 00 00 00 00 00 BB 0C 89 [02:24:08]RasterBufferAndPrint [02:24:08]line [02:24:08]line [02:24:08]line [02:24:08]line [02:24:08]line [02:24:08]written 0, free lines is 3265 [02:24:08]MH_Cut [02:24:08]Write to MH i2c: D1 01 00 50 72 01 94 [02:24:08]Write i2c OK [02:24:08]MH_I2C_Read... [02:24:08]Read from MH i2c: D1 [02:24:08]MH_I2C_Read... [02:24:08]Read from MH i2c: D1 01 00 [02:24:08]MH_I2C_Read... [02:24:08]Read from MH i2c: D1 01 00 50 72 00 93 [02:24:08]Write to MH i2c: 01 00 00 51 72 C3 [02:24:08]Write i2c OK [02:24:08]MH_I2C_Read... [02:24:09]OFD Sender: No OFD packet to send [02:24:09]*** Cut start [02:24:09]*** Partial cut [02:24:09]*** CUTSNS_PIN = 1 [02:24:09]*** CUTSNS_PIN = 0 [02:24:10]*** Brake cut motor [02:24:10]Read from MH i2c: 01 [02:24:10]MH_I2C_Read... [02:24:10]*** Stop cut motor [02:24:10]*** Cut end [02:24:10]Read from MH i2c: 01 07 00 [02:24:10]MH_I2C_Read... [02:24:10]Read from MH i2c: 01 07 00 51 72 00 00 00 00 00 FF 0F D8 [02:24:10]process_action close_receipt done [02:24:10]requested_data is exist [02:24:10]produce_requested_data [02:24:10]requested_item fm.sn is exist - process it [02:24:10]wFMCommunicate request_size=4 [02:24:10]MH_SAM_APDU [02:24:10]CAPDU: 80 11 00 00 [02:24:10]Write to MH i2c: E2 08 00 52 72 80 11 00 00 00 00 00 00 3E [02:24:10]Write i2c OK [02:24:10]MH_I2C_Read... [02:24:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:24:10]Read from MH i2c: E2 [02:24:10]MH_I2C_Read... [02:24:10]Read from MH i2c: E2 17 00 [02:24:10]MH_I2C_Read... [02:24:10]Read from MH i2c: E2 17 00 52 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 8D [02:24:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:24:10]wFMCommunicate OK [02:24:10]requested_item fd.num is exist - process it [02:24:10]SAM_PROTO_GetFieldsCounters [02:24:10]wFMCommunicate request_size=4 [02:24:10]MH_SAM_APDU [02:24:10]CAPDU: 80 13 00 00 [02:24:10]Write to MH i2c: E2 08 00 53 72 80 13 00 00 00 00 00 00 41 [02:24:10]Write i2c OK [02:24:10]MH_I2C_Read... [02:24:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:24:10]Read from MH i2c: E2 [02:24:10]MH_I2C_Read... [02:24:10]Read from MH i2c: E2 62 00 [02:24:10]MH_I2C_Read... [02:24:10]Read from MH i2c: E2 62 00 53 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A9 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [02:24: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 A9 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:24:10]wFMCommunicate OK [02:24:10]SAM_PROTO_GetFieldsCounters done [02:24:10]requested_item shift.num is exist - process it [02:24:10]requested_item shift.opened is exist - process it [02:24:10]req_shift_opened [02:24:10]FM_GetShiftState [02:24:10]SAM_PROTO_GetShiftState [02:24:10]wFMCommunicate request_size=4 [02:24:10]MH_SAM_APDU [02:24:10]CAPDU: 80 13 01 00 [02:24:10]Write to MH i2c: E2 08 00 54 72 80 13 01 00 00 00 00 00 43 [02:24:10]Write i2c OK [02:24:10]MH_I2C_Read... [02:24:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:24:10]Read from MH i2c: E2 [02:24:10]MH_I2C_Read... [02:24:10]Read from MH i2c: E2 0E 00 [02:24:10]MH_I2C_Read... [02:24:10]Read from MH i2c: E2 0E 00 54 72 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 EF [02:24:10]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [02:24:10]wFMCommunicate OK [02:24:10]SAM_PROTO_GetShiftState done [02:24:10]FM_GetShiftState done [02:24:10]req_shift_opened done [02:24:10]requested_item shift.open_date is exist - process it [02:24:10]req_shift_open_date [02:24:10]req_shift_open_date done [02:24:10]produce_requested_data done [02:24:10]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29097,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [02:24:10]process_action_free close_receipt [02:24:10]json_value_free [02:24:10]json_value_free done [02:24:10]process_json_proto returns [02:24:10]Send response to host [02:24:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29097,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [02:24:10]free response buf [02:24:10]execute_script done [02:24:10]execute_script returns [02:24:10]free content buf [02:24:10]Sock 7.Close socket [02:24:10]Sock 7.Thread stoped [02:24:14]OFD Sender: No OFD packet to send [02:24:19]OFD Sender: No OFD packet to send [02:24:24]OFD Sender: No OFD packet to send [02:24:29]OFD Sender: No OFD packet to send [02:24:34]OFD Sender: No OFD packet to send [02:24:39]OFD Sender: No OFD packet to send [02:24:44]OFD Sender: No OFD packet to send [02:24:49]OFD Sender: No OFD packet to send [02:24:54]OFD Sender: No OFD packet to send [02:24:59]OFD Sender: No OFD packet to send [02:25:04]OFD Sender: No OFD packet to send [02:25:09]OFD Sender: No OFD packet to send [02:25:14]OFD Sender: No OFD packet to send [02:25:19]OFD Sender: No OFD packet to send [02:25:24]OFD Sender: No OFD packet to send [02:25:29]OFD Sender: No OFD packet to send [02:25:34]OFD Sender: No OFD packet to send [02:25:39]OFD Sender: No OFD packet to send [02:25:44]OFD Sender: No OFD packet to send [02:25:49]OFD Sender: No OFD packet to send [02:25:54]OFD Sender: No OFD packet to send [02:25:59]OFD Sender: No OFD packet to send [02:26:04]OFD Sender: No OFD packet to send [02:26:09]OFD Sender: No OFD packet to send [02:26:14]OFD Sender: No OFD packet to send [02:26:19]OFD Sender: No OFD packet to send [02:26:24]OFD Sender: No OFD packet to send [02:26:29]OFD Sender: No OFD packet to send [02:26:34]OFD Sender: No OFD packet to send [02:26:39]OFD Sender: No OFD packet to send [02:26:44]OFD Sender: No OFD packet to send [02:26:49]OFD Sender: No OFD packet to send [02:26:54]OFD Sender: No OFD packet to send [02:26:55]accept exits with 9 [02:26:55]New connection [02:26:55]New thread 3066928484 created [02:26:55]Thread 3066785124 joined [02:26:55]Waiting for new connection... [02:26:55] Sock 9.Parse request [02:26:55]Sock 9.Check first char [02:26:55]Sock 9.First char is OK [02:26:55]request: POST /json_proto HTTP/1.0 [02:26:55]Method: POST [02:26:55]URL: /json_proto [02:26:55]Method is POST - this is cgi request [02:26:55]url: /json_proto [02:26:55]query_string will be loaded in cgi processing [02:26:55]execute_cgi json_proto POST (null) [02:26:55]execute_cgi path=json_proto method=POST [02:26:55]POST find Content-Length [02:26:55]Host: 172.17.33.3:8080 [02:26:55]Content-Length: 846 [02:26:55]Content-Type: application/json [02:26:55] [02:26:55]POST finish read [02:26:55]Found Content-Length = 846 [02:26:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:26:55]execute_script... [02:26: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)347465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.90, "quantity" : 30.400, "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:26:55]POST & json_proto [02:26:55]process_json_proto [02:26:55]json parsed OK: [02:26:55]protocol is kg_v1.0 [02:26:55]action value=close_receipt [02:26:55]process_action close_receipt [02:26:55]cmd_close_receipt [02:26:55]MH_GetDate [02:26:55]Write to MH i2c: F0 00 00 55 72 B6 [02:26:55]Write i2c OK [02:26:55]MH_I2C_Read... [02:26:55]Read from MH i2c: F0 [02:26:55]MH_I2C_Read... [02:26:55]Read from MH i2c: F0 09 00 [02:26:55]MH_I2C_Read... [02:26:55]Read from MH i2c: F0 09 00 55 72 00 F7 3E 1B 66 23 5B 8F 65 E7 [02:26:55]GetLastDocTimeStamp 1713061454 [02:26:55]current date 1713061623 [02:26:55]FM_GetShiftState [02:26:55]SAM_PROTO_GetShiftState [02:26:55]wFMCommunicate request_size=4 [02:26:55]MH_SAM_APDU [02:26:55]CAPDU: 80 13 01 00 [02:26:55]Write to MH i2c: E2 08 00 56 72 80 13 01 00 00 00 00 00 45 [02:26:55]Write i2c OK [02:26:55]MH_I2C_Read... [02:26:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:26:55]Read from MH i2c: E2 [02:26:55]MH_I2C_Read... [02:26:55]Read from MH i2c: E2 0E 00 [02:26:55]MH_I2C_Read... [02:26:55]Read from MH i2c: E2 0E 00 56 72 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 F1 [02:26:55]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [02:26:55]wFMCommunicate OK [02:26:55]SAM_PROTO_GetShiftState done [02:26:55]FM_GetShiftState done [02:26:55]opened in 1713053951 [02:26:55]opened+sec_in_day 1713140351 [02:26:55]quantity*price = 100016 [02:26:55]sum+1 = 100017 [02:26:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 8 14.04.2024 02:27 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29098 ФПД: 185449961949447 1/tax-web-control/client/api/v1/ticket?date=20240414T022703&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29098&fm=185449961949447&tin=02508201610067®Number=0000138879044617&sum=100016 [02:26:56]StoreToDocumentArchive [02:26:56]shift 116 fd 29098 [02:26:56]save to /storage/0116/doc_00029098 [02:26:56]save last doc name /storage/0116/doc_00029098 to /storage/kkm_last_doc_name [02:26:56]save OK [02:26:56]Clear old archive folders... [02:26:56]ProcessDocumentItem done err = 0, tmpTLVsize=250 [02:26:56]tlvbuf is 011D4930 [02:26:56]SAM_PROTO_ClearQueue [02:26:56]wFMCommunicate request_size=4 [02:26:56]MH_SAM_APDU [02:26:56]CAPDU: 80 09 00 00 [02:26:56]Write to MH i2c: E2 08 00 63 72 80 09 00 00 00 00 00 00 47 [02:26:56]Write i2c OK [02:26:56]MH_I2C_Read... [02:26:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:26:56]Read from MH i2c: E2 [02:26:56]MH_I2C_Read... [02:26:56]Read from MH i2c: E2 03 00 [02:26:56]MH_I2C_Read... [02:26:56]Read from MH i2c: E2 03 00 63 72 00 90 00 49 [02:26:56]RAPDU: 90 00 [02:26:56]wFMCommunicate OK [02:26:56]SAM_PROTO_ClearQueue done [02:26:56]KKMCreateOFDPacket [02:26:56]OFDProtocolAddRootSTLVToBuf [02:26:56]FM_MakeSignedData [02:26:56]FM_MakeSignedData [02:26:56]SAM_PROTO_SignData [02:26:56]wFMCommunicate request_size=4 [02:26:56]MH_SAM_APDU [02:26:56]CAPDU: 80 0D 01 02 [02:26:56]Write to MH i2c: E2 08 00 64 72 80 0D 01 02 00 00 00 00 4F [02:26:56]Write i2c OK [02:26:56]MH_I2C_Read... [02:26:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:26:56]Read from MH i2c: E2 [02:26:56]MH_I2C_Read... [02:26:56]Read from MH i2c: E2 03 00 [02:26:56]MH_I2C_Read... [02:26:56]Read from MH i2c: E2 03 00 64 72 00 90 00 4A [02:26:56]RAPDU: 90 00 [02:26:56]wFMCommunicate OK [02:26:56]wFMCommunicate request_size=255 [02:26:56]MH_SAM_APDU [02:26:56]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 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 08 00 00 00 F4 03 04 00 F7 3E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AA 71 00 00 35 04 06 00 A8 AA [02:26:56]Write to MH i2c: E2 02 01 65 72 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 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 08 00 00 00 F4 03 04 00 F7 3E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AA 71 00 00 35 04 06 00 A8 AA 00 00 A4 [02:26:56]Write i2c OK [02:26:56]MH_I2C_Read... [02:26:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:26:56]Read from MH i2c: E2 [02:26:56]MH_I2C_Read... [02:26:56]Read from MH i2c: E2 03 00 [02:26:56]MH_I2C_Read... [02:26:56]Read from MH i2c: E2 03 00 65 72 00 90 00 4B [02:26:56]RAPDU: 90 00 [02:26:56]wFMCommunicate OK [02:26:56]wFMCommunicate request_size=9 [02:26:56]MH_SAM_APDU [02:26:56]CAPDU: 80 0D 02 02 04 6F 1B 09 07 [02:26:56]Write to MH i2c: E2 0C 00 66 72 80 0D 02 02 04 00 6F 1B 09 07 00 00 F4 [02:26:56]Write i2c OK [02:26:56]MH_I2C_Read... [02:26:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:26:56]Read from MH i2c: E2 [02:26:56]MH_I2C_Read... [02:26:56]Read from MH i2c: E2 03 00 [02:26:56]MH_I2C_Read... [02:26:56]Read from MH i2c: E2 03 00 66 72 00 90 00 4C [02:26:56]RAPDU: 90 00 [02:26:56]wFMCommunicate OK [02:26:56]wFMCommunicate request_size=4 [02:26:56]MH_SAM_APDU [02:26:56]CAPDU: 80 0D 03 02 [02:26:56]Write to MH i2c: E2 08 00 67 72 80 0D 03 02 00 00 00 00 54 [02:26:56]Write i2c OK [02:26:56]MH_I2C_Read... [02:26:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:26:56]Read from MH i2c: E2 [02:26:56]MH_I2C_Read... [02:26:56]Read from MH i2c: E2 0B 00 [02:26:56]MH_I2C_Read... [02:26:56]Read from MH i2c: E2 0B 00 67 72 00 2B 62 5D AD 5C 77 33 10 90 00 02 [02:26:56]RAPDU: 2B 62 5D AD 5C 77 33 10 90 00 [02:26:56]wFMCommunicate OK [02:26:56]SAM_PROTO_SignData done [02:26:56]FM_MakeSignedData done [02:26:56]CreateOFDProtocolMessage [02:26:56]wFMCommunicate request_size=4 [02:26:56]MH_SAM_APDU [02:26:56]CAPDU: 80 11 00 00 [02:26:56]Write to MH i2c: E2 08 00 68 72 80 11 00 00 00 00 00 00 54 [02:26:56]Write i2c OK [02:26:56]MH_I2C_Read... [02:26:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:26:56]Read from MH i2c: E2 [02:26:56]MH_I2C_Read... [02:26:56]Read from MH i2c: E2 17 00 [02:26:56]MH_I2C_Read... [02:26:56]Read from MH i2c: E2 17 00 68 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 A3 [02:26:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:26:56]wFMCommunicate OK [02:26:56]CreateOFDProtocolMessage done [02:26:56]OFDSenderStorePacket 29098 [02:26:56]StoreOFDPacket docnum=29098 [02:26:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0E 01 00 00 B3 C0 06 01 7A C0 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 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 08 00 00 00 F4 03 04 00 F7 3E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AA 71 00 00 35 04 06 00 A8 AA 6F 1B 09 07 2B 62 5D AD 5C 77 33 10 [02:26:56]CheckFolder [02:26:56]dirname=/storage/ofd_packets [02:26:56]CheckFolder done [02:26:56]ProducePacketName [02:26:56]name=ofd_packets/00029098 [02:26:56]NVStorageSaveData ofd_packets/00029098 [02:26:56]File name is /storage/ofd_packets/00029098 [02:26:56]Write 300 bytes [02:26:56]NVStorageSaveData done [02:26:56]OFDSenderStorePacket done [02:26:56]KKMCreateOFDPacket done [02:26:56]NVStorageSaveData kkm_last_timestamp [02:26:56]File name is /storage/kkm_last_timestamp [02:26:56]Write 4 bytes [02:26:56]NVStorageSaveData done [02:26:56]ExternCall_PrintAddStr [02:26:56]wPrintStart [02:26:56]Write to MH i2c: 01 00 00 69 72 DB [02:26:56]Write i2c OK [02:26:56]MH_I2C_Read... [02:26:56]Read from MH i2c: 01 [02:26:56]MH_I2C_Read... [02:26:56]Read from MH i2c: 01 07 00 [02:26:56]MH_I2C_Read... [02:26:56]Read from MH i2c: 01 07 00 69 72 00 00 00 00 00 FF 0F F0 [02:26:56]RasterBufferAndPrint [02:26:56]line Счет N : (1)347465 [02:26:56]line ИНН: 02508201610067 [02:26:56]line Контрольно-Кассовый Чек [02:26:56]line ПРОДАЖА [02:26:56]line ТРК (МРК, ГНК) : 71 [02:26:56]line Товар: 2711129700 [02:26:56]line ГАЗ-К-5 [02:26:56]line 30.400 * 32.90 [02:26:56]line = 1000.16 [02:26:56]line НДС 12% НСП 1% [02:26:56]line > о реализуемом товаре [02:26:56]line ИТОГО: 1000.16 [02:26:56]line НСП 1% : 8.85 [02:26:56]line НДС 12% : 106.21 [02:26:56]line Наличными: 0.00 [02:26:56]line Безнал.: 1000.16 [02:26:56]line Место: АЗС № 108 "Партнер Нефть" [02:26:56]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [02:26:56]line СНО: Общий режим [02:26:56]line Чек 8 14.04.2024 02:27 [02:26:57]line Смена: 116 ФФД: 1.0 [02:26:57]line ЗНМ: 0300000027 [02:26:57]line РНМ: 0000138879044617 [02:26:57]line Версия ККМ: 001 [02:26:57]line Платежная система: АКБ Кыргызстан [02:26:57]line ФМ: 0000000000963154 [02:26:57]line ФД: 29098 [02:26:57]line ФПД: 185449961949447 [02:26:57]line 1/tax-web-control/client/api/v1/ticket?date=20240414T022703&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29098&fm=185449961949447&tin=02508201610067®Number=0000138879044617&sum=100016 [02:26:57]OFD Sender: Processing packet 29098 [packets to send 8, broken 7] [02:26:57]ProducePacketName [02:26:57]name=ofd_packets/00029098 [02:26:57]OFD Sender: To server: pG, [02:26:57]CommunicateWithHost lk.salyk.kg:30040 [02:26:57]ConnectInit lk.salyk.kg [02:26:57]written 0, free lines is 4095 [02:26:57]Connected sock=10 [02:26: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 31 35 34 0E 01 00 00 B3 C0 06 01 7A C0 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C0 76 00 00 00 00 00 37 04 06 00 DA 0C 00 00 00 00 13 04 06 00 B0 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 08 00 00 00 F4 03 04 00 F7 3E 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AA 71 00 00 35 04 06 00 A8 AA 6F 1B 09 07 2B 62 5D AD 5C 77 33 10 [02: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 31 35 34 4F 00 00 00 34 32 47 00 40 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AA 71 00 00 F4 03 04 00 9C E9 1A 66 B6 04 01 00 00 33 C7 9D AB 42 C5 B3 E3 [02:26:57]CommunicateWithHost err = 0 [02:26:57]CheckOFDResponse [02:26:57]1017 (14) - 77093643461234 [02:26:57]1041 (16) - 0000000000963154 [02:26:57]1040 (4) - 29098 [02:26:57]1012 (4) - 13.04.2024 20:22 [02:26:57]1206 (1) - 0 [02:26:57]OFD Sender: Remove packet 29098 [02:26:57]ProducePacketName [02:26:57]name=ofd_packets/00029098 [02:26:57]NVStorageDeleteData [02:26:57]Write to MH i2c: 01 00 00 92 72 04 [02:26:57]Write i2c OK [02:26:57]MH_I2C_Read... [02:26:57]Read from MH i2c: 01 [02:26:57]MH_I2C_Read... [02:26:57]Read from MH i2c: 01 07 00 [02:26:57]MH_I2C_Read... [02:26:57]Read from MH i2c: 01 07 00 92 72 00 00 00 00 00 D4 0C EB [02:26:57]RasterBufferAndPrint [02:26:57]line [02:26:57]line [02:26:57]line [02:26:57]line [02:26:57]line [02:26:57]written 0, free lines is 3290 [02:26:57]MH_Cut [02:26:57]Write to MH i2c: D1 01 00 99 72 01 DD [02:26:57]Write i2c OK [02:26:57]MH_I2C_Read... [02:26:57]Read from MH i2c: D1 [02:26:57]MH_I2C_Read... [02:26:57]Read from MH i2c: D1 01 00 [02:26:57]MH_I2C_Read... [02:26:57]Read from MH i2c: D1 01 00 99 72 00 DC [02:26:57]Write to MH i2c: 01 00 00 9A 72 0C [02:26:57]Write i2c OK [02:26:57]MH_I2C_Read... [02:26:58]OFD Sender: No OFD packet to send [02:26:58]*** Cut start [02:26:58]*** Partial cut [02:26:58]*** CUTSNS_PIN = 1 [02:26:58]*** CUTSNS_PIN = 0 [02:26:58]*** Brake cut motor [02:26:59]Read from MH i2c: 01 [02:26:59]MH_I2C_Read... [02:26:59]*** Stop cut motor [02:26:59]*** Cut end [02:26:59]Read from MH i2c: 01 07 00 [02:26:59]MH_I2C_Read... [02:26:59]Read from MH i2c: 01 07 00 9A 72 00 00 00 00 00 FF 0F 21 [02:26:59]process_action close_receipt done [02:26:59]requested_data is exist [02:26:59]produce_requested_data [02:26:59]requested_item fm.sn is exist - process it [02:26:59]wFMCommunicate request_size=4 [02:26:59]MH_SAM_APDU [02:26:59]CAPDU: 80 11 00 00 [02:26:59]Write to MH i2c: E2 08 00 9B 72 80 11 00 00 00 00 00 00 87 [02:26:59]Write i2c OK [02:26:59]MH_I2C_Read... [02:26:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:26:59]Read from MH i2c: E2 [02:26:59]MH_I2C_Read... [02:26:59]Read from MH i2c: E2 17 00 [02:26:59]MH_I2C_Read... [02:26:59]Read from MH i2c: E2 17 00 9B 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 D6 [02:26:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:26:59]wFMCommunicate OK [02:26:59]requested_item fd.num is exist - process it [02:26:59]SAM_PROTO_GetFieldsCounters [02:26:59]wFMCommunicate request_size=4 [02:26:59]MH_SAM_APDU [02:26:59]CAPDU: 80 13 00 00 [02:26:59]Write to MH i2c: E2 08 00 9C 72 80 13 00 00 00 00 00 00 8A [02:26:59]Write i2c OK [02:26:59]MH_I2C_Read... [02:26:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:26:59]Read from MH i2c: E2 [02:26:59]MH_I2C_Read... [02:26:59]Read from MH i2c: E2 62 00 [02:26:59]MH_I2C_Read... [02:26:59]Read from MH i2c: E2 62 00 9C 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AA 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [02:26: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AA 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:26:59]wFMCommunicate OK [02:26:59]SAM_PROTO_GetFieldsCounters done [02:26:59]requested_item shift.num is exist - process it [02:26:59]requested_item shift.opened is exist - process it [02:26:59]req_shift_opened [02:26:59]FM_GetShiftState [02:26:59]SAM_PROTO_GetShiftState [02:26:59]wFMCommunicate request_size=4 [02:26:59]MH_SAM_APDU [02:26:59]CAPDU: 80 13 01 00 [02:26:59]Write to MH i2c: E2 08 00 9D 72 80 13 01 00 00 00 00 00 8C [02:26:59]Write i2c OK [02:26:59]MH_I2C_Read... [02:26:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:26:59]Read from MH i2c: E2 [02:26:59]MH_I2C_Read... [02:26:59]Read from MH i2c: E2 0E 00 [02:26:59]MH_I2C_Read... [02:26:59]Read from MH i2c: E2 0E 00 9D 72 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 38 [02:26:59]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [02:26:59]wFMCommunicate OK [02:26:59]SAM_PROTO_GetShiftState done [02:26:59]FM_GetShiftState done [02:26:59]req_shift_opened done [02:26:59]requested_item shift.open_date is exist - process it [02:26:59]req_shift_open_date [02:26:59]req_shift_open_date done [02:26:59]produce_requested_data done [02:26:59]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29098,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [02:26:59]process_action_free close_receipt [02:26:59]json_value_free [02:26:59]json_value_free done [02:26:59]process_json_proto returns [02:26:59]Send response to host [02:26:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29098,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [02:26:59]free response buf [02:26:59]execute_script done [02:26:59]execute_script returns [02:26:59]free content buf [02:26:59]Sock 9.Close socket [02:26:59]Sock 9.Thread stoped [02:27:03]OFD Sender: No OFD packet to send [02:27:08]OFD Sender: No OFD packet to send [02:27:13]OFD Sender: No OFD packet to send [02:27:18]OFD Sender: No OFD packet to send [02:27:23]OFD Sender: No OFD packet to send [02:27:28]OFD Sender: No OFD packet to send [02:27:33]OFD Sender: No OFD packet to send [02:27:38]OFD Sender: No OFD packet to send [02:27:43]OFD Sender: No OFD packet to send [02:27:48]OFD Sender: No OFD packet to send [02:27:53]OFD Sender: No OFD packet to send [02:27:58]OFD Sender: No OFD packet to send [02:28:03]OFD Sender: No OFD packet to send [02:28:08]OFD Sender: No OFD packet to send [02:28:13]OFD Sender: No OFD packet to send [02:28:18]OFD Sender: No OFD packet to send [02:28:23]OFD Sender: No OFD packet to send [02:28:28]OFD Sender: No OFD packet to send [02:28:33]OFD Sender: No OFD packet to send [02:28:38]OFD Sender: No OFD packet to send [02:28:43]OFD Sender: No OFD packet to send [02:28:48]OFD Sender: No OFD packet to send [02:28:53]OFD Sender: No OFD packet to send [02:28:58]OFD Sender: No OFD packet to send [02:29:03]OFD Sender: No OFD packet to send [02:29:08]OFD Sender: No OFD packet to send [02:29:13]OFD Sender: No OFD packet to send [02:29:18]OFD Sender: No OFD packet to send [02:29:23]OFD Sender: No OFD packet to send [02:29:28]OFD Sender: No OFD packet to send [02:29:33]OFD Sender: No OFD packet to send [02:29:38]OFD Sender: No OFD packet to send [02:29:43]OFD Sender: No OFD packet to send [02:29:48]OFD Sender: No OFD packet to send [02:29:53]OFD Sender: No OFD packet to send [02:29:58]OFD Sender: No OFD packet to send [02:30:03]OFD Sender: No OFD packet to send [02:30:08]OFD Sender: No OFD packet to send [02:30:13]OFD Sender: No OFD packet to send [02:30:18]OFD Sender: No OFD packet to send [02:30:23]OFD Sender: No OFD packet to send [02:30:28]OFD Sender: No OFD packet to send [02:30:33]OFD Sender: No OFD packet to send [02:30:38]OFD Sender: No OFD packet to send [02:30:43]OFD Sender: No OFD packet to send [02:30:48]OFD Sender: No OFD packet to send [02:30:53]OFD Sender: No OFD packet to send [02:30:58]OFD Sender: No OFD packet to send [02:31:03]OFD Sender: No OFD packet to send [02:31:08]OFD Sender: No OFD packet to send [02:31:13]OFD Sender: No OFD packet to send [02:31:18]OFD Sender: No OFD packet to send [02:31:23]OFD Sender: No OFD packet to send [02:31:28]OFD Sender: No OFD packet to send [02:31:33]OFD Sender: No OFD packet to send [02:31:38]OFD Sender: No OFD packet to send [02:31:43]OFD Sender: No OFD packet to send [02:31:48]OFD Sender: No OFD packet to send [02:31:53]OFD Sender: No OFD packet to send [02:31:58]OFD Sender: No OFD packet to send [02:32:03]OFD Sender: No OFD packet to send [02:32:08]OFD Sender: No OFD packet to send [02:32:13]OFD Sender: No OFD packet to send [02:32:18]OFD Sender: No OFD packet to send [02:32:23]OFD Sender: No OFD packet to send [02:32:28]OFD Sender: No OFD packet to send [02:32:33]OFD Sender: No OFD packet to send [02:32:38]OFD Sender: No OFD packet to send [02:32:43]OFD Sender: No OFD packet to send [02:32:48]OFD Sender: No OFD packet to send [02:32:53]OFD Sender: No OFD packet to send [02:32:58]OFD Sender: No OFD packet to send [02:33:03]OFD Sender: No OFD packet to send [02:33:08]OFD Sender: No OFD packet to send [02:33:13]OFD Sender: No OFD packet to send [02:33:18]OFD Sender: No OFD packet to send [02:33:23]OFD Sender: No OFD packet to send [02:33:28]OFD Sender: No OFD packet to send [02:33:33]OFD Sender: No OFD packet to send [02:33:38]OFD Sender: No OFD packet to send [02:33:43]OFD Sender: No OFD packet to send [02:33:48]OFD Sender: No OFD packet to send [02:33:53]OFD Sender: No OFD packet to send [02:33:58]OFD Sender: No OFD packet to send [02:34:03]OFD Sender: No OFD packet to send [02:34:08]OFD Sender: No OFD packet to send [02:34:13]OFD Sender: No OFD packet to send [02:34:18]OFD Sender: No OFD packet to send [02:34:23]OFD Sender: No OFD packet to send [02:34:28]OFD Sender: No OFD packet to send [02:34:33]OFD Sender: No OFD packet to send [02:34:38]OFD Sender: No OFD packet to send [02:34:43]OFD Sender: No OFD packet to send [02:34:48]OFD Sender: No OFD packet to send [02:34:53]OFD Sender: No OFD packet to send [02:34:58]OFD Sender: No OFD packet to send [02:35:03]OFD Sender: No OFD packet to send [02:35:08]OFD Sender: No OFD packet to send [02:35:13]OFD Sender: No OFD packet to send [02:35:18]OFD Sender: No OFD packet to send [02:35:23]OFD Sender: No OFD packet to send [02:35:28]OFD Sender: No OFD packet to send [02:35:33]OFD Sender: No OFD packet to send [02:35:38]OFD Sender: No OFD packet to send [02:35:43]OFD Sender: No OFD packet to send [02:35:48]OFD Sender: No OFD packet to send [02:35:53]OFD Sender: No OFD packet to send [02:35:58]OFD Sender: No OFD packet to send [02:36:03]OFD Sender: No OFD packet to send [02:36:08]OFD Sender: No OFD packet to send [02:36:13]OFD Sender: No OFD packet to send [02:36:18]OFD Sender: No OFD packet to send [02:36:23]OFD Sender: No OFD packet to send [02:36:28]OFD Sender: No OFD packet to send [02:36:33]OFD Sender: No OFD packet to send [02:36:38]OFD Sender: No OFD packet to send [02:36:43]OFD Sender: No OFD packet to send [02:36:48]OFD Sender: No OFD packet to send [02:36:53]OFD Sender: No OFD packet to send [02:36:58]OFD Sender: No OFD packet to send [02:37:03]OFD Sender: No OFD packet to send [02:37:08]OFD Sender: No OFD packet to send [02:37:13]OFD Sender: No OFD packet to send [02:37:18]OFD Sender: No OFD packet to send [02:37:23]OFD Sender: No OFD packet to send [02:37:28]OFD Sender: No OFD packet to send [02:37:33]OFD Sender: No OFD packet to send [02:37:38]OFD Sender: No OFD packet to send [02:37:43]OFD Sender: No OFD packet to send [02:37:48]OFD Sender: No OFD packet to send [02:37:53]OFD Sender: No OFD packet to send [02:37:58]OFD Sender: No OFD packet to send [02:38:03]OFD Sender: No OFD packet to send [02:38:08]OFD Sender: No OFD packet to send [02:38:13]OFD Sender: No OFD packet to send [02:38:18]OFD Sender: No OFD packet to send [02:38:23]OFD Sender: No OFD packet to send [02:38:28]OFD Sender: No OFD packet to send [02:38:33]OFD Sender: No OFD packet to send [02:38:38]OFD Sender: No OFD packet to send [02:38:43]OFD Sender: No OFD packet to send [02:38:48]OFD Sender: No OFD packet to send [02:38:53]OFD Sender: No OFD packet to send [02:38:58]OFD Sender: No OFD packet to send [02:39:03]OFD Sender: No OFD packet to send [02:39:08]OFD Sender: No OFD packet to send [02:39:13]OFD Sender: No OFD packet to send [02:39:18]OFD Sender: No OFD packet to send [02:39:23]OFD Sender: No OFD packet to send [02:39:28]OFD Sender: No OFD packet to send [02:39:33]OFD Sender: No OFD packet to send [02:39:38]OFD Sender: No OFD packet to send [02:39:43]OFD Sender: No OFD packet to send [02:39:48]OFD Sender: No OFD packet to send [02:39:53]OFD Sender: No OFD packet to send [02:39:58]OFD Sender: No OFD packet to send [02:40:03]OFD Sender: No OFD packet to send [02:40:08]OFD Sender: No OFD packet to send [02:40:13]OFD Sender: No OFD packet to send [02:40:18]OFD Sender: No OFD packet to send [02:40:23]OFD Sender: No OFD packet to send [02:40:28]OFD Sender: No OFD packet to send [02:40:33]OFD Sender: No OFD packet to send [02:40:38]OFD Sender: No OFD packet to send [02:40:43]OFD Sender: No OFD packet to send [02:40:48]OFD Sender: No OFD packet to send [02:40:53]OFD Sender: No OFD packet to send [02:40:58]OFD Sender: No OFD packet to send [02:41:03]OFD Sender: No OFD packet to send [02:41:08]OFD Sender: No OFD packet to send [02:41:13]OFD Sender: No OFD packet to send [02:41:18]OFD Sender: No OFD packet to send [02:41:23]OFD Sender: No OFD packet to send [02:41:28]OFD Sender: No OFD packet to send [02:41:33]OFD Sender: No OFD packet to send [02:41:38]OFD Sender: No OFD packet to send [02:41:43]OFD Sender: No OFD packet to send [02:41:48]OFD Sender: No OFD packet to send [02:41:53]OFD Sender: No OFD packet to send [02:41:58]OFD Sender: No OFD packet to send [02:42:03]OFD Sender: No OFD packet to send [02:42:08]OFD Sender: No OFD packet to send [02:42:13]OFD Sender: No OFD packet to send [02:42:18]OFD Sender: No OFD packet to send [02:42:23]OFD Sender: No OFD packet to send [02:42:28]OFD Sender: No OFD packet to send [02:42:33]OFD Sender: No OFD packet to send [02:42:38]OFD Sender: No OFD packet to send [02:42:43]OFD Sender: No OFD packet to send [02:42:48]OFD Sender: No OFD packet to send [02:42:53]OFD Sender: No OFD packet to send [02:42:58]OFD Sender: No OFD packet to send [02:43:03]OFD Sender: No OFD packet to send [02:43:08]OFD Sender: No OFD packet to send [02:43:13]OFD Sender: No OFD packet to send [02:43:18]OFD Sender: No OFD packet to send [02:43:23]OFD Sender: No OFD packet to send [02:43:28]OFD Sender: No OFD packet to send [02:43:33]OFD Sender: No OFD packet to send [02:43:38]OFD Sender: No OFD packet to send [02:43:43]OFD Sender: No OFD packet to send [02:43:48]OFD Sender: No OFD packet to send [02:43:53]OFD Sender: No OFD packet to send [02:43:58]OFD Sender: No OFD packet to send [02:44:03]OFD Sender: No OFD packet to send [02:44:08]OFD Sender: No OFD packet to send [02:44:13]OFD Sender: No OFD packet to send [02:44:18]OFD Sender: No OFD packet to send [02:44:23]OFD Sender: No OFD packet to send [02:44:28]OFD Sender: No OFD packet to send [02:44:33]OFD Sender: No OFD packet to send [02:44:38]OFD Sender: No OFD packet to send [02:44:43]OFD Sender: No OFD packet to send [02:44:48]OFD Sender: No OFD packet to send [02:44:53]OFD Sender: No OFD packet to send [02:44:58]OFD Sender: No OFD packet to send [02:45:03]OFD Sender: No OFD packet to send [02:45:08]OFD Sender: No OFD packet to send [02:45:13]OFD Sender: No OFD packet to send [02:45:18]OFD Sender: No OFD packet to send [02:45:23]OFD Sender: No OFD packet to send [02:45:28]OFD Sender: No OFD packet to send [02:45:33]OFD Sender: No OFD packet to send [02:45:38]OFD Sender: No OFD packet to send [02:45:44]OFD Sender: No OFD packet to send [02:45:49]OFD Sender: No OFD packet to send [02:45:54]OFD Sender: No OFD packet to send [02:45:59]OFD Sender: No OFD packet to send [02:46:04]OFD Sender: No OFD packet to send [02:46:09]OFD Sender: No OFD packet to send [02:46:14]OFD Sender: No OFD packet to send [02:46:19]OFD Sender: No OFD packet to send [02:46:24]OFD Sender: No OFD packet to send [02:46:29]OFD Sender: No OFD packet to send [02:46:34]OFD Sender: No OFD packet to send [02:46:39]OFD Sender: No OFD packet to send [02:46:44]OFD Sender: No OFD packet to send [02:46:49]OFD Sender: No OFD packet to send [02:46:54]OFD Sender: No OFD packet to send [02:46:59]OFD Sender: No OFD packet to send [02:47:04]OFD Sender: No OFD packet to send [02:47:09]OFD Sender: No OFD packet to send [02:47:14]OFD Sender: No OFD packet to send [02:47:19]OFD Sender: No OFD packet to send [02:47:24]OFD Sender: No OFD packet to send [02:47:29]OFD Sender: No OFD packet to send [02:47:34]OFD Sender: No OFD packet to send [02:47:39]OFD Sender: No OFD packet to send [02:47:44]OFD Sender: No OFD packet to send [02:47:49]OFD Sender: No OFD packet to send [02:47:54]OFD Sender: No OFD packet to send [02:47:59]OFD Sender: No OFD packet to send [02:48:04]OFD Sender: No OFD packet to send [02:48:09]OFD Sender: No OFD packet to send [02:48:14]OFD Sender: No OFD packet to send [02:48:19]OFD Sender: No OFD packet to send [02:48:24]OFD Sender: No OFD packet to send [02:48:29]OFD Sender: No OFD packet to send [02:48:34]OFD Sender: No OFD packet to send [02:48:39]OFD Sender: No OFD packet to send [02:48:44]OFD Sender: No OFD packet to send [02:48:49]OFD Sender: No OFD packet to send [02:48:54]OFD Sender: No OFD packet to send [02:48:59]OFD Sender: No OFD packet to send [02:49:04]OFD Sender: No OFD packet to send [02:49:09]OFD Sender: No OFD packet to send [02:49:14]OFD Sender: No OFD packet to send [02:49:19]OFD Sender: No OFD packet to send [02:49:24]OFD Sender: No OFD packet to send [02:49:29]OFD Sender: No OFD packet to send [02:49:34]OFD Sender: No OFD packet to send [02:49:39]OFD Sender: No OFD packet to send [02:49:44]OFD Sender: No OFD packet to send [02:49:49]OFD Sender: No OFD packet to send [02:49:54]OFD Sender: No OFD packet to send [02:49:59]OFD Sender: No OFD packet to send [02:50:04]OFD Sender: No OFD packet to send [02:50:09]OFD Sender: No OFD packet to send [02:50:14]OFD Sender: No OFD packet to send [02:50:19]OFD Sender: No OFD packet to send [02:50:24]OFD Sender: No OFD packet to send [02:50:29]OFD Sender: No OFD packet to send [02:50:34]OFD Sender: No OFD packet to send [02:50:39]OFD Sender: No OFD packet to send [02:50:44]OFD Sender: No OFD packet to send [02:50:49]OFD Sender: No OFD packet to send [02:50:54]OFD Sender: No OFD packet to send [02:50:59]OFD Sender: No OFD packet to send [02:51:04]OFD Sender: No OFD packet to send [02:51:09]OFD Sender: No OFD packet to send [02:51:14]OFD Sender: No OFD packet to send [02:51:19]OFD Sender: No OFD packet to send [02:51:24]OFD Sender: No OFD packet to send [02:51:29]OFD Sender: No OFD packet to send [02:51:34]OFD Sender: No OFD packet to send [02:51:39]OFD Sender: No OFD packet to send [02:51:44]OFD Sender: No OFD packet to send [02:51:49]OFD Sender: No OFD packet to send [02:51:54]OFD Sender: No OFD packet to send [02:51:59]OFD Sender: No OFD packet to send [02:52:04]OFD Sender: No OFD packet to send [02:52:09]OFD Sender: No OFD packet to send [02:52:14]OFD Sender: No OFD packet to send [02:52:19]OFD Sender: No OFD packet to send [02:52:20]accept exits with 7 [02:52:20]New connection [02:52:20]New thread 3066785124 created [02:52:20]Thread 3066928484 joined [02:52:20]Waiting for new connection... [02:52:20] Sock 7.Parse request [02:52:20]Sock 7.Check first char [02:52:20]Sock 7.First char is OK [02:52:20]request: POST /json_proto HTTP/1.0 [02:52:20]Method: POST [02:52:20]URL: /json_proto [02:52:20]Method is POST - this is cgi request [02:52:20]url: /json_proto [02:52:20]query_string will be loaded in cgi processing [02:52:20]execute_cgi json_proto POST (null) [02:52:20]execute_cgi path=json_proto method=POST [02:52:20]POST find Content-Length [02:52:20]Host: 172.17.33.3:8080 [02:52:20]Content-Length: 677 [02:52:20]Content-Type: application/json [02:52:20] [02:52:20]POST finish read [02:52:20]Found Content-Length = 677 [02:52:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347466", "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" : 64.30, "quantity" : 7.780, "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" ] } } [02:52:20]execute_script... [02:52: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)347466", "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" : 64.30, "quantity" : 7.780, "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" ] } } [02:52:20]POST & json_proto [02:52:20]process_json_proto [02:52:20]json parsed OK: [02:52:20]protocol is kg_v1.0 [02:52:20]action value=close_receipt [02:52:20]process_action close_receipt [02:52:20]cmd_close_receipt [02:52:20]MH_GetDate [02:52:20]Write to MH i2c: F0 00 00 9E 72 FF [02:52:20]Write i2c OK [02:52:20]MH_I2C_Read... [02:52:20]Read from MH i2c: F0 [02:52:20]MH_I2C_Read... [02:52:20]Read from MH i2c: F0 09 00 [02:52:20]MH_I2C_Read... [02:52:20]Read from MH i2c: F0 09 00 9E 72 00 EC 44 1B 66 23 5B 8F 65 2B [02:52:20]GetLastDocTimeStamp 1713061623 [02:52:20]current date 1713063148 [02:52:20]FM_GetShiftState [02:52:20]SAM_PROTO_GetShiftState [02:52:20]wFMCommunicate request_size=4 [02:52:20]MH_SAM_APDU [02:52:20]CAPDU: 80 13 01 00 [02:52:20]Write to MH i2c: E2 08 00 9F 72 80 13 01 00 00 00 00 00 8E [02:52:20]Write i2c OK [02:52:20]MH_I2C_Read... [02:52:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:52:20]Read from MH i2c: E2 [02:52:20]MH_I2C_Read... [02:52:20]Read from MH i2c: E2 0E 00 [02:52:20]MH_I2C_Read... [02:52:20]Read from MH i2c: E2 0E 00 9F 72 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 3A [02:52:20]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [02:52:20]wFMCommunicate OK [02:52:20]SAM_PROTO_GetShiftState done [02:52:20]FM_GetShiftState done [02:52:20]opened in 1713053951 [02:52:20]opened+sec_in_day 1713140351 [02:52:20]quantity*price = 50025 [02:52:20]sum+1 = 50026 [02:52:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 9 14.04.2024 02:52 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 ФМ: 0000000000963154 ФД: 29099 ФПД: 67769148061385 1/tax-web-control/client/api/v1/ticket?date=20240414T025228&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29099&fm=67769148061385&tin=02508201610067®Number=0000138879044617&sum=50000 [02:52:21]StoreToDocumentArchive [02:52:21]shift 116 fd 29099 [02:52:21]save to /storage/0116/doc_00029099 [02:52:21]save last doc name /storage/0116/doc_00029099 to /storage/kkm_last_doc_name [02:52:21]save OK [02:52:21]Clear old archive folders... [02:52:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:52:21]tlvbuf is 012F0920 [02:52:21]SAM_PROTO_ClearQueue [02:52:21]wFMCommunicate request_size=4 [02:52:21]MH_SAM_APDU [02:52:21]CAPDU: 80 09 00 00 [02:52:21]Write to MH i2c: E2 08 00 AC 72 80 09 00 00 00 00 00 00 90 [02:52:21]Write i2c OK [02:52:21]MH_I2C_Read... [02:52:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:52:21]Read from MH i2c: E2 [02:52:21]MH_I2C_Read... [02:52:21]Read from MH i2c: E2 03 00 [02:52:21]MH_I2C_Read... [02:52:21]Read from MH i2c: E2 03 00 AC 72 00 90 00 92 [02:52:21]RAPDU: 90 00 [02:52:21]wFMCommunicate OK [02:52:21]SAM_PROTO_ClearQueue done [02:52:21]KKMCreateOFDPacket [02:52:21]OFDProtocolAddRootSTLVToBuf [02:52:21]FM_MakeSignedData [02:52:21]FM_MakeSignedData [02:52:21]SAM_PROTO_SignData [02:52:21]wFMCommunicate request_size=4 [02:52:21]MH_SAM_APDU [02:52:21]CAPDU: 80 0D 01 02 [02:52:21]Write to MH i2c: E2 08 00 AD 72 80 0D 01 02 00 00 00 00 98 [02:52:21]Write i2c OK [02:52:21]MH_I2C_Read... [02:52:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:52:21]Read from MH i2c: E2 [02:52:21]MH_I2C_Read... [02:52:21]Read from MH i2c: E2 03 00 [02:52:21]MH_I2C_Read... [02:52:21]Read from MH i2c: E2 03 00 AD 72 00 90 00 93 [02:52:21]RAPDU: 90 00 [02:52:21]wFMCommunicate OK [02:52:21]wFMCommunicate request_size=255 [02:52:21]MH_SAM_APDU [02:52: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 09 00 00 00 F4 03 04 00 EC 44 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AB 71 00 00 35 04 06 00 3D [02:52:21]Write to MH i2c: E2 02 01 AE 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 09 00 00 00 F4 03 04 00 EC 44 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AB 71 00 00 35 04 06 00 3D 00 00 E1 [02:52:21]Write i2c OK [02:52:21]MH_I2C_Read... [02:52:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:21]Read from MH i2c: E2 [02:52:21]MH_I2C_Read... [02:52:21]Read from MH i2c: E2 03 00 [02:52:21]MH_I2C_Read... [02:52:21]Read from MH i2c: E2 03 00 AE 72 00 90 00 94 [02:52:21]RAPDU: 90 00 [02:52:21]wFMCommunicate OK [02:52:21]wFMCommunicate request_size=10 [02:52:21]MH_SAM_APDU [02:52:21]CAPDU: 80 0D 02 02 05 A2 BB FF 36 C9 [02:52:21]Write to MH i2c: E2 0D 00 AF 72 80 0D 02 02 05 00 A2 BB FF 36 C9 00 00 00 [02:52:21]Write i2c OK [02:52:21]MH_I2C_Read... [02:52:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:21]Read from MH i2c: E2 [02:52:21]MH_I2C_Read... [02:52:21]Read from MH i2c: E2 03 00 [02:52:21]MH_I2C_Read... [02:52:21]Read from MH i2c: E2 03 00 AF 72 00 90 00 95 [02:52:21]RAPDU: 90 00 [02:52:21]wFMCommunicate OK [02:52:21]wFMCommunicate request_size=4 [02:52:21]MH_SAM_APDU [02:52:21]CAPDU: 80 0D 03 02 [02:52:21]Write to MH i2c: E2 08 00 B0 72 80 0D 03 02 00 00 00 00 9D [02:52:21]Write i2c OK [02:52:21]MH_I2C_Read... [02:52:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:52:21]Read from MH i2c: E2 [02:52:21]MH_I2C_Read... [02:52:21]Read from MH i2c: E2 0B 00 [02:52:21]MH_I2C_Read... [02:52:21]Read from MH i2c: E2 0B 00 B0 72 00 E1 6E 95 AC BE 27 A6 51 90 00 0A [02:52:21]RAPDU: E1 6E 95 AC BE 27 A6 51 90 00 [02:52:21]wFMCommunicate OK [02:52:21]SAM_PROTO_SignData done [02:52:21]FM_MakeSignedData done [02:52:21]CreateOFDProtocolMessage [02:52:21]wFMCommunicate request_size=4 [02:52:21]MH_SAM_APDU [02:52:21]CAPDU: 80 11 00 00 [02:52:21]Write to MH i2c: E2 08 00 B1 72 80 11 00 00 00 00 00 00 9D [02:52:21]Write i2c OK [02:52:21]MH_I2C_Read... [02:52:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:52:21]Read from MH i2c: E2 [02:52:21]MH_I2C_Read... [02:52:21]Read from MH i2c: E2 17 00 [02:52:21]MH_I2C_Read... [02:52:21]Read from MH i2c: E2 17 00 B1 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 EC [02:52:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:52:21]wFMCommunicate OK [02:52:21]CreateOFDProtocolMessage done [02:52:21]OFDSenderStorePacket 29099 [02:52:21]StoreOFDPacket docnum=29099 [02:52:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 B2 5C 07 01 D6 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 09 00 00 00 F4 03 04 00 EC 44 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AB 71 00 00 35 04 06 00 3D A2 BB FF 36 C9 E1 6E 95 AC BE 27 A6 51 [02:52:21]CheckFolder [02:52:21]dirname=/storage/ofd_packets [02:52:21]CheckFolder done [02:52:21]ProducePacketName [02:52:21]name=ofd_packets/00029099 [02:52:21]NVStorageSaveData ofd_packets/00029099 [02:52:21]File name is /storage/ofd_packets/00029099 [02:52:21]Write 301 bytes [02:52:21]NVStorageSaveData done [02:52:21]OFDSenderStorePacket done [02:52:21]KKMCreateOFDPacket done [02:52:21]NVStorageSaveData kkm_last_timestamp [02:52:21]File name is /storage/kkm_last_timestamp [02:52:21]Write 4 bytes [02:52:21]NVStorageSaveData done [02:52:21]ExternCall_PrintAddStr [02:52:21]wPrintStart [02:52:21]Write to MH i2c: 01 00 00 B2 72 24 [02:52:21]Write i2c OK [02:52:21]MH_I2C_Read... [02:52:21]Read from MH i2c: 01 [02:52:21]MH_I2C_Read... [02:52:21]Read from MH i2c: 01 07 00 [02:52:21]MH_I2C_Read... [02:52:21]Read from MH i2c: 01 07 00 B2 72 00 00 00 00 00 FF 0F 39 [02:52:21]RasterBufferAndPrint [02:52:21]line Счет N : (1)347466 [02:52:21]line ИНН: 02508201610067 [02:52:21]line Контрольно-Кассовый Чек [02:52:21]line ПРОДАЖА [02:52:21]line ТРК (МРК, ГНК) : 42 [02:52:21]line Товар: 2710124130 [02:52:21]line Аи-92-К-5 [02:52:21]line 7.780 * 64.30 [02:52:21]line = 500.25 [02:52:21]line НДС 12% НСП 1% [02:52:21]line > о реализуемом товаре [02:52:21]line ОКРУГЛЕНИЕ: -0.25 [02:52:21]line ИТОГО: 500.00 [02:52:21]line Внесено: 500.00 [02:52:21]line СДАЧА: 0.00 [02:52:21]line НСП 1% : 4.43 [02:52:21]line НДС 12% : 53.12 [02:52:21]line Наличными: 500.00 [02:52:21]line Безнал.: 0.00 [02:52:21]line Место: АЗС № 108 "Партнер Нефть" [02:52:21]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [02:52:21]line СНО: Общий режим [02:52:21]line Чек 9 14.04.2024 02:52 [02:52:21]line Смена: 116 ФФД: 1.0 [02:52:21]line ЗНМ: 0300000027 [02:52:21]line РНМ: 0000138879044617 [02:52:21]line Версия ККМ: 001 [02:52:21]line ФМ: 0000000000963154 [02:52:21]line ФД: 29099 [02:52:21]line ФПД: 67769148061385 [02:52:21]line 1/tax-web-control/client/api/v1/ticket?date=20240414T025228&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29099&fm=67769148061385&tin=02508201610067®Number=0000138879044617&sum=50000 [02:52:22]OFD Sender: Processing packet 29099 [packets to send 8, broken 7] [02:52:22]ProducePacketName [02:52:22]name=ofd_packets/00029099 [02:52:22]OFD Sender: To server: pG, [02:52:22]CommunicateWithHost lk.salyk.kg:30040 [02:52:22]ConnectInit lk.salyk.kg [02:52:22]written 0, free lines is 4095 [02:52:22]Connected sock=10 [02:52: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 31 35 34 0F 01 00 00 B2 5C 07 01 D6 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 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 09 00 00 00 F4 03 04 00 EC 44 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AB 71 00 00 35 04 06 00 3D A2 BB FF 36 C9 E1 6E 95 AC BE 27 A6 51 [02:52:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 CE 6B 47 00 2C 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 31 35 34 10 04 04 00 AB 71 00 00 F4 03 04 00 91 EF 1A 66 B6 04 01 00 00 2D A7 B9 66 DF 0A 88 33 [02:52:22]CommunicateWithHost err = 0 [02:52:22]CheckOFDResponse [02:52:22]1017 (14) - 77093643461234 [02:52:22]1041 (16) - 0000000000963154 [02:52:22]1040 (4) - 29099 [02:52:22]1012 (4) - 13.04.2024 20:48 [02:52:22]1206 (1) - 0 [02:52:22]OFD Sender: Remove packet 29099 [02:52:22]ProducePacketName [02:52:22]name=ofd_packets/00029099 [02:52:22]NVStorageDeleteData [02:52:22]Write to MH i2c: 01 00 00 DC 72 4E [02:52:22]Write i2c OK [02:52:22]MH_I2C_Read... [02:52:22]Read from MH i2c: 01 [02:52:22]MH_I2C_Read... [02:52:22]Read from MH i2c: 01 07 00 [02:52:22]MH_I2C_Read... [02:52:22]Read from MH i2c: 01 07 00 DC 72 00 00 00 00 00 D0 0C 31 [02:52:22]RasterBufferAndPrint [02:52:22]line [02:52:22]line [02:52:22]line [02:52:22]line [02:52:22]line [02:52:22]written 0, free lines is 3286 [02:52:22]MH_Cut [02:52:22]Write to MH i2c: D1 01 00 E3 72 01 27 [02:52:22]Write i2c OK [02:52:22]MH_I2C_Read... [02:52:22]Read from MH i2c: D1 [02:52:22]MH_I2C_Read... [02:52:22]Read from MH i2c: D1 01 00 [02:52:22]MH_I2C_Read... [02:52:22]Read from MH i2c: D1 01 00 E3 72 00 26 [02:52:22]Write to MH i2c: 01 00 00 E4 72 56 [02:52:22]Write i2c OK [02:52:22]MH_I2C_Read... [02:52:23]OFD Sender: No OFD packet to send [02:52:23]*** Cut start [02:52:23]*** Partial cut [02:52:23]*** CUTSNS_PIN = 1 [02:52:23]*** CUTSNS_PIN = 0 [02:52:23]*** Brake cut motor [02:52:24]Read from MH i2c: 01 [02:52:24]MH_I2C_Read... [02:52:24]*** Stop cut motor [02:52:24]*** Cut end [02:52:24]Read from MH i2c: 01 07 00 [02:52:24]MH_I2C_Read... [02:52:24]Read from MH i2c: 01 07 00 E4 72 00 00 00 00 00 FF 0F 6B [02:52:24]process_action close_receipt done [02:52:24]requested_data is exist [02:52:24]produce_requested_data [02:52:24]requested_item fm.sn is exist - process it [02:52:24]wFMCommunicate request_size=4 [02:52:24]MH_SAM_APDU [02:52:24]CAPDU: 80 11 00 00 [02:52:24]Write to MH i2c: E2 08 00 E5 72 80 11 00 00 00 00 00 00 D1 [02:52:24]Write i2c OK [02:52:24]MH_I2C_Read... [02:52:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:52:24]Read from MH i2c: E2 [02:52:24]MH_I2C_Read... [02:52:24]Read from MH i2c: E2 17 00 [02:52:24]MH_I2C_Read... [02:52:24]Read from MH i2c: E2 17 00 E5 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 20 [02:52:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:52:24]wFMCommunicate OK [02:52:24]requested_item fd.num is exist - process it [02:52:24]SAM_PROTO_GetFieldsCounters [02:52:24]wFMCommunicate request_size=4 [02:52:24]MH_SAM_APDU [02:52:24]CAPDU: 80 13 00 00 [02:52:24]Write to MH i2c: E2 08 00 E6 72 80 13 00 00 00 00 00 00 D4 [02:52:24]Write i2c OK [02:52:24]MH_I2C_Read... [02:52:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:52:24]Read from MH i2c: E2 [02:52:24]MH_I2C_Read... [02:52:24]Read from MH i2c: E2 62 00 [02:52:24]MH_I2C_Read... [02:52:24]Read from MH i2c: E2 62 00 E6 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AB 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [02:52: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AB 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:52:24]wFMCommunicate OK [02:52:24]SAM_PROTO_GetFieldsCounters done [02:52:24]requested_item shift.num is exist - process it [02:52:24]requested_item shift.opened is exist - process it [02:52:24]req_shift_opened [02:52:24]FM_GetShiftState [02:52:24]SAM_PROTO_GetShiftState [02:52:24]wFMCommunicate request_size=4 [02:52:24]MH_SAM_APDU [02:52:24]CAPDU: 80 13 01 00 [02:52:24]Write to MH i2c: E2 08 00 E7 72 80 13 01 00 00 00 00 00 D6 [02:52:24]Write i2c OK [02:52:24]MH_I2C_Read... [02:52:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:52:24]Read from MH i2c: E2 [02:52:24]MH_I2C_Read... [02:52:24]Read from MH i2c: E2 0E 00 [02:52:24]MH_I2C_Read... [02:52:24]Read from MH i2c: E2 0E 00 E7 72 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 82 [02:52:24]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [02:52:24]wFMCommunicate OK [02:52:24]SAM_PROTO_GetShiftState done [02:52:24]FM_GetShiftState done [02:52:24]req_shift_opened done [02:52:24]requested_item shift.open_date is exist - process it [02:52:24]req_shift_open_date [02:52:24]req_shift_open_date done [02:52:24]produce_requested_data done [02:52:24]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29099,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [02:52:24]process_action_free close_receipt [02:52:24]json_value_free [02:52:24]json_value_free done [02:52:24]process_json_proto returns [02:52:24]Send response to host [02:52:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29099,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [02:52:24]free response buf [02:52:24]execute_script done [02:52:24]execute_script returns [02:52:24]free content buf [02:52:24]Sock 7.Close socket [02:52:24]Sock 7.Thread stoped [02:52:28]OFD Sender: No OFD packet to send [02:52:33]OFD Sender: No OFD packet to send [02:52:38]OFD Sender: No OFD packet to send [02:52:43]OFD Sender: No OFD packet to send [02:52:48]OFD Sender: No OFD packet to send [02:52:53]OFD Sender: No OFD packet to send [02:52:58]OFD Sender: No OFD packet to send [02:53:03]OFD Sender: No OFD packet to send [02:53:08]OFD Sender: No OFD packet to send [02:53:13]OFD Sender: No OFD packet to send [02:53:18]OFD Sender: No OFD packet to send [02:53:23]OFD Sender: No OFD packet to send [02:53:28]OFD Sender: No OFD packet to send [02:53:33]OFD Sender: No OFD packet to send [02:53:38]OFD Sender: No OFD packet to send [02:53:43]OFD Sender: No OFD packet to send [02:53:48]OFD Sender: No OFD packet to send [02:53:53]OFD Sender: No OFD packet to send [02:53:58]OFD Sender: No OFD packet to send [02:54:03]OFD Sender: No OFD packet to send [02:54:08]OFD Sender: No OFD packet to send [02:54:13]OFD Sender: No OFD packet to send [02:54:18]OFD Sender: No OFD packet to send [02:54:23]OFD Sender: No OFD packet to send [02:54:28]OFD Sender: No OFD packet to send [02:54:33]OFD Sender: No OFD packet to send [02:54:38]OFD Sender: No OFD packet to send [02:54:43]OFD Sender: No OFD packet to send [02:54:48]OFD Sender: No OFD packet to send [02:54:53]OFD Sender: No OFD packet to send [02:54:58]OFD Sender: No OFD packet to send [02:55:03]OFD Sender: No OFD packet to send [02:55:08]OFD Sender: No OFD packet to send [02:55:13]OFD Sender: No OFD packet to send [02:55:18]OFD Sender: No OFD packet to send [02:55:23]OFD Sender: No OFD packet to send [02:55:28]OFD Sender: No OFD packet to send [02:55:33]OFD Sender: No OFD packet to send [02:55:38]OFD Sender: No OFD packet to send [02:55:43]OFD Sender: No OFD packet to send [02:55:48]OFD Sender: No OFD packet to send [02:55:53]OFD Sender: No OFD packet to send [02:55:58]OFD Sender: No OFD packet to send [02:56:03]OFD Sender: No OFD packet to send [02:56:08]OFD Sender: No OFD packet to send [02:56:13]OFD Sender: No OFD packet to send [02:56:18]OFD Sender: No OFD packet to send [02:56:23]OFD Sender: No OFD packet to send [02:56:28]OFD Sender: No OFD packet to send [02:56:33]OFD Sender: No OFD packet to send [02:56:38]OFD Sender: No OFD packet to send [02:56:43]OFD Sender: No OFD packet to send [02:56:48]OFD Sender: No OFD packet to send [02:56:53]OFD Sender: No OFD packet to send [02:56:58]OFD Sender: No OFD packet to send [02:57:03]OFD Sender: No OFD packet to send [02:57:08]OFD Sender: No OFD packet to send [02:57:13]OFD Sender: No OFD packet to send [02:57:18]OFD Sender: No OFD packet to send [02:57:23]OFD Sender: No OFD packet to send [02:57:28]OFD Sender: No OFD packet to send [02:57:33]OFD Sender: No OFD packet to send [02:57:38]OFD Sender: No OFD packet to send [02:57:43]OFD Sender: No OFD packet to send [02:57:48]OFD Sender: No OFD packet to send [02:57:53]OFD Sender: No OFD packet to send [02:57:58]OFD Sender: No OFD packet to send [02:58:03]OFD Sender: No OFD packet to send [02:58:08]OFD Sender: No OFD packet to send [02:58:13]OFD Sender: No OFD packet to send [02:58:18]OFD Sender: No OFD packet to send [02:58:23]OFD Sender: No OFD packet to send [02:58:28]OFD Sender: No OFD packet to send [02:58:33]OFD Sender: No OFD packet to send [02:58:33]accept exits with 9 [02:58:33]New connection [02:58:33]New thread 3066928484 created [02:58:33]Thread 3066785124 joined [02:58:33]Waiting for new connection... [02:58:33] Sock 9.Parse request [02:58:33]Sock 9.Check first char [02:58:33]Sock 9.First char is OK [02:58:33]request: POST /json_proto HTTP/1.0 [02:58:33]Method: POST [02:58:33]URL: /json_proto [02:58:33]Method is POST - this is cgi request [02:58:33]url: /json_proto [02:58:33]query_string will be loaded in cgi processing [02:58:33]execute_cgi json_proto POST (null) [02:58:33]execute_cgi path=json_proto method=POST [02:58:33]POST find Content-Length [02:58:33]Host: 172.17.33.3:8080 [02:58:33]Content-Length: 840 [02:58:33]Content-Type: application/json [02:58:33] [02:58:33]POST finish read [02:58:33]Found Content-Length = 840 [02:58:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.220, "sum" : 271.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 271.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:58:33]execute_script... [02:58: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)347468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.220, "sum" : 271.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 271.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:58:33]POST & json_proto [02:58:33]process_json_proto [02:58:33]json parsed OK: [02:58:33]protocol is kg_v1.0 [02:58:33]action value=close_receipt [02:58:33]process_action close_receipt [02:58:33]cmd_close_receipt [02:58:33]MH_GetDate [02:58:33]Write to MH i2c: F0 00 00 E8 72 49 [02:58:33]Write i2c OK [02:58:33]MH_I2C_Read... [02:58:33]Read from MH i2c: F0 [02:58:33]MH_I2C_Read... [02:58:33]Read from MH i2c: F0 09 00 [02:58:33]MH_I2C_Read... [02:58:33]Read from MH i2c: F0 09 00 E8 72 00 61 46 1B 66 23 5B 8F 65 EC [02:58:33]GetLastDocTimeStamp 1713063148 [02:58:33]current date 1713063521 [02:58:33]FM_GetShiftState [02:58:33]SAM_PROTO_GetShiftState [02:58:33]wFMCommunicate request_size=4 [02:58:33]MH_SAM_APDU [02:58:33]CAPDU: 80 13 01 00 [02:58:33]Write to MH i2c: E2 08 00 E9 72 80 13 01 00 00 00 00 00 D8 [02:58:33]Write i2c OK [02:58:33]MH_I2C_Read... [02:58:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:58:33]Read from MH i2c: E2 [02:58:33]MH_I2C_Read... [02:58:33]Read from MH i2c: E2 0E 00 [02:58:33]MH_I2C_Read... [02:58:33]Read from MH i2c: E2 0E 00 E9 72 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 84 [02:58:33]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [02:58:33]wFMCommunicate OK [02:58:33]SAM_PROTO_GetShiftState done [02:58:33]FM_GetShiftState done [02:58:33]opened in 1713053951 [02:58:33]opened+sec_in_day 1713140351 [02:58:33]quantity*price = 27134 [02:58:33]sum+1 = 27136 [02:58:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 271.35 НСП 1% : 2.40 НДС 12% : 28.82 Наличными: 0.00 Безнал.: 271.35 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 10 14.04.2024 02:58 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29100 ФПД: 69397153232479 1/tax-web-control/client/api/v1/ticket?date=20240414T025841&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29100&fm=69397153232479&tin=02508201610067®Number=0000138879044617&sum=27135 [02:58:34]StoreToDocumentArchive [02:58:34]shift 116 fd 29100 [02:58:34]save to /storage/0116/doc_00029100 [02:58:34]save last doc name /storage/0116/doc_00029100 to /storage/kkm_last_doc_name [02:58:34]save OK [02:58:34]Clear old archive folders... [02:58:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:58:34]tlvbuf is 0121DDD0 [02:58:34]SAM_PROTO_ClearQueue [02:58:34]wFMCommunicate request_size=4 [02:58:34]MH_SAM_APDU [02:58:34]CAPDU: 80 09 00 00 [02:58:34]Write to MH i2c: E2 08 00 F6 72 80 09 00 00 00 00 00 00 DA [02:58:34]Write i2c OK [02:58:34]MH_I2C_Read... [02:58:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:58:34]Read from MH i2c: E2 [02:58:34]MH_I2C_Read... [02:58:34]Read from MH i2c: E2 03 00 [02:58:34]MH_I2C_Read... [02:58:34]Read from MH i2c: E2 03 00 F6 72 00 90 00 DC [02:58:34]RAPDU: 90 00 [02:58:34]wFMCommunicate OK [02:58:34]SAM_PROTO_ClearQueue done [02:58:34]KKMCreateOFDPacket [02:58:34]OFDProtocolAddRootSTLVToBuf [02:58:34]FM_MakeSignedData [02:58:34]FM_MakeSignedData [02:58:34]SAM_PROTO_SignData [02:58:34]wFMCommunicate request_size=4 [02:58:34]MH_SAM_APDU [02:58:34]CAPDU: 80 0D 01 02 [02:58:34]Write to MH i2c: E2 08 00 F7 72 80 0D 01 02 00 00 00 00 E2 [02:58:34]Write i2c OK [02:58:34]MH_I2C_Read... [02:58:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:58:34]Read from MH i2c: E2 [02:58:34]MH_I2C_Read... [02:58:34]Read from MH i2c: E2 03 00 [02:58:34]MH_I2C_Read... [02:58:34]Read from MH i2c: E2 03 00 F7 72 00 90 00 DD [02:58:34]RAPDU: 90 00 [02:58:34]wFMCommunicate OK [02:58:34]wFMCommunicate request_size=255 [02:58:34]MH_SAM_APDU [02: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 7C 10 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FF 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FF 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FF 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 61 46 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AC 71 00 00 35 04 06 00 3F [02:58:34]Write to MH i2c: E2 02 01 F8 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 10 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FF 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FF 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FF 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 61 46 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AC 71 00 00 35 04 06 00 3F 00 00 43 [02:58:34]Write i2c OK [02:58:34]MH_I2C_Read... [02:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:58:35]Read from MH i2c: E2 [02:58:35]MH_I2C_Read... [02:58:35]Read from MH i2c: E2 03 00 [02:58:35]MH_I2C_Read... [02:58:35]Read from MH i2c: E2 03 00 F8 72 00 90 00 DE [02:58:35]RAPDU: 90 00 [02:58:35]wFMCommunicate OK [02:58:35]wFMCommunicate request_size=10 [02:58:35]MH_SAM_APDU [02:58:35]CAPDU: 80 0D 02 02 05 1D C8 AA B6 5F [02:58:35]Write to MH i2c: E2 0D 00 F9 72 80 0D 02 02 05 00 1D C8 AA B6 5F 00 00 93 [02:58:35]Write i2c OK [02:58:35]MH_I2C_Read... [02:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:58:35]Read from MH i2c: E2 [02:58:35]MH_I2C_Read... [02:58:35]Read from MH i2c: E2 03 00 [02:58:35]MH_I2C_Read... [02:58:35]Read from MH i2c: E2 03 00 F9 72 00 90 00 DF [02:58:35]RAPDU: 90 00 [02:58:35]wFMCommunicate OK [02:58:35]wFMCommunicate request_size=4 [02:58:35]MH_SAM_APDU [02:58:35]CAPDU: 80 0D 03 02 [02:58:35]Write to MH i2c: E2 08 00 FA 72 80 0D 03 02 00 00 00 00 E7 [02:58:35]Write i2c OK [02:58:35]MH_I2C_Read... [02:58:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:58:35]Read from MH i2c: E2 [02:58:35]MH_I2C_Read... [02:58:35]Read from MH i2c: E2 0B 00 [02:58:35]MH_I2C_Read... [02:58:35]Read from MH i2c: E2 0B 00 FA 72 00 6E 38 36 03 AD 84 48 1E 90 00 5E [02:58:35]RAPDU: 6E 38 36 03 AD 84 48 1E 90 00 [02:58:35]wFMCommunicate OK [02:58:35]SAM_PROTO_SignData done [02:58:35]FM_MakeSignedData done [02:58:35]CreateOFDProtocolMessage [02:58:35]wFMCommunicate request_size=4 [02:58:35]MH_SAM_APDU [02:58:35]CAPDU: 80 11 00 00 [02:58:35]Write to MH i2c: E2 08 00 FB 72 80 11 00 00 00 00 00 00 E7 [02:58:35]Write i2c OK [02:58:35]MH_I2C_Read... [02:58:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:58:35]Read from MH i2c: E2 [02:58:35]MH_I2C_Read... [02:58:35]Read from MH i2c: E2 17 00 [02:58:35]MH_I2C_Read... [02:58:35]Read from MH i2c: E2 17 00 FB 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 36 [02:58:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:58:35]wFMCommunicate OK [02:58:35]CreateOFDProtocolMessage done [02:58:35]OFDSenderStorePacket 29100 [02:58:35]StoreOFDPacket docnum=29100 [02:58:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 F9 7D 07 01 1B 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 10 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FF 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FF 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FF 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 61 46 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AC 71 00 00 35 04 06 00 3F 1D C8 AA B6 5F 6E 38 36 03 AD 84 48 1E [02:58:35]CheckFolder [02:58:35]dirname=/storage/ofd_packets [02:58:35]CheckFolder done [02:58:35]ProducePacketName [02:58:35]name=ofd_packets/00029100 [02:58:35]NVStorageSaveData ofd_packets/00029100 [02:58:35]File name is /storage/ofd_packets/00029100 [02:58:35]Write 301 bytes [02:58:35]NVStorageSaveData done [02:58:35]OFDSenderStorePacket done [02:58:35]KKMCreateOFDPacket done [02:58:35]NVStorageSaveData kkm_last_timestamp [02:58:35]File name is /storage/kkm_last_timestamp [02:58:35]Write 4 bytes [02:58:35]NVStorageSaveData done [02:58:35]ExternCall_PrintAddStr [02:58:35]wPrintStart [02:58:35]Write to MH i2c: 01 00 00 FC 72 6E [02:58:35]Write i2c OK [02:58:35]MH_I2C_Read... [02:58:35]Read from MH i2c: 01 [02:58:35]MH_I2C_Read... [02:58:35]Read from MH i2c: 01 07 00 [02:58:35]MH_I2C_Read... [02:58:35]Read from MH i2c: 01 07 00 FC 72 00 00 00 00 00 FF 0F 83 [02:58:35]RasterBufferAndPrint [02:58:35]line Счет N : (1)347468 [02:58:35]line ИНН: 02508201610067 [02:58:35]line Контрольно-Кассовый Чек [02:58:35]line ПРОДАЖА [02:58:35]line ТРК (МРК, ГНК) : 63 [02:58:35]line Товар: 2710124130 [02:58:35]line Аи-92-К-5 [02:58:35]line 4.220 * 64.30 [02:58:35]line = 271.35 [02:58:35]line НДС 12% НСП 1% [02:58:35]line > о реализуемом товаре [02:58:35]line ИТОГО: 271.35 [02:58:35]line НСП 1% : 2.40 [02:58:35]line НДС 12% : 28.82 [02:58:35]line Наличными: 0.00 [02:58:35]line Безнал.: 271.35 [02:58:35]line Место: АЗС № 108 "Партнер Нефть" [02:58:35]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [02:58:35]line СНО: Общий режим [02:58:35]line Чек 10 14.04.2024 02:58 [02:58:35]line Смена: 116 ФФД: 1.0 [02:58:35]line ЗНМ: 0300000027 [02:58:35]line РНМ: 0000138879044617 [02:58:35]line Версия ККМ: 001 [02:58:35]line Платежная система: АКБ Кыргызстан [02:58:35]line ФМ: 0000000000963154 [02:58:35]line ФД: 29100 [02:58:35]line ФПД: 69397153232479 [02:58:35]line 1/tax-web-control/client/api/v1/ticket?date=20240414T025841&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29100&fm=69397153232479&tin=02508201610067®Number=0000138879044617&sum=27135 [02:58:35]OFD Sender: Processing packet 29100 [packets to send 8, broken 7] [02:58:35]ProducePacketName [02:58:35]name=ofd_packets/00029100 [02:58:35]OFD Sender: To server: pG, [02:58:35]CommunicateWithHost lk.salyk.kg:30040 [02:58:35]ConnectInit lk.salyk.kg [02:58:35]written 0, free lines is 4095 [02:58:35]Connected sock=10 [02:58: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 31 35 34 0F 01 00 00 F9 7D 07 01 1B 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 10 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FF 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FF 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FF 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 61 46 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AC 71 00 00 35 04 06 00 3F 1D C8 AA B6 5F 6E 38 36 03 AD 84 48 1E [02: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 31 35 34 4F 00 00 00 05 F0 47 00 49 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AC 71 00 00 F4 03 04 00 06 F1 1A 66 B6 04 01 00 00 1C 1A 5C 34 76 45 7D D6 [02:58:35]CommunicateWithHost err = 0 [02:58:35]CheckOFDResponse [02:58:35]1017 (14) - 77093643461234 [02:58:35]1041 (16) - 0000000000963154 [02:58:35]1040 (4) - 29100 [02:58:35]1012 (4) - 13.04.2024 20:54 [02:58:35]1206 (1) - 0 [02:58:35]OFD Sender: Remove packet 29100 [02:58:35]ProducePacketName [02:58:35]name=ofd_packets/00029100 [02:58:35]NVStorageDeleteData [02:58:36]Write to MH i2c: 01 00 00 25 73 98 [02:58:36]Write i2c OK [02:58:36]MH_I2C_Read... [02:58:36]Read from MH i2c: 01 [02:58:36]MH_I2C_Read... [02:58:36]Read from MH i2c: 01 07 00 [02:58:36]MH_I2C_Read... [02:58:36]Read from MH i2c: 01 07 00 25 73 00 00 00 00 00 D8 0C 83 [02:58:36]RasterBufferAndPrint [02:58:36]line [02:58:36]line [02:58:36]line [02:58:36]line [02:58:36]line [02:58:36]written 0, free lines is 3295 [02:58:36]MH_Cut [02:58:36]Write to MH i2c: D1 01 00 2C 73 01 71 [02:58:36]Write i2c OK [02:58:36]MH_I2C_Read... [02:58:36]Read from MH i2c: D1 [02:58:36]MH_I2C_Read... [02:58:36]Read from MH i2c: D1 01 00 [02:58:36]MH_I2C_Read... [02:58:36]Read from MH i2c: D1 01 00 2C 73 00 70 [02:58:36]Write to MH i2c: 01 00 00 2D 73 A0 [02:58:36]Write i2c OK [02:58:36]MH_I2C_Read... [02:58:36]OFD Sender: No OFD packet to send [02:58:36]*** Cut start [02:58:36]*** Partial cut [02:58:36]*** CUTSNS_PIN = 1 [02:58:36]*** CUTSNS_PIN = 0 [02:58:37]*** Brake cut motor [02:58:37]Read from MH i2c: 01 [02:58:37]MH_I2C_Read... [02:58:37]*** Stop cut motor [02:58:37]*** Cut end [02:58:37]Read from MH i2c: 01 07 00 [02:58:37]MH_I2C_Read... [02:58:37]Read from MH i2c: 01 07 00 2D 73 00 00 00 00 00 FF 0F B5 [02:58:37]process_action close_receipt done [02:58:37]requested_data is exist [02:58:37]produce_requested_data [02:58:37]requested_item fm.sn is exist - process it [02:58:37]wFMCommunicate request_size=4 [02:58:37]MH_SAM_APDU [02:58:37]CAPDU: 80 11 00 00 [02:58:37]Write to MH i2c: E2 08 00 2E 73 80 11 00 00 00 00 00 00 1B [02:58:37]Write i2c OK [02:58:37]MH_I2C_Read... [02:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:58:37]Read from MH i2c: E2 [02:58:37]MH_I2C_Read... [02:58:37]Read from MH i2c: E2 17 00 [02:58:37]MH_I2C_Read... [02:58:37]Read from MH i2c: E2 17 00 2E 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 6A [02:58:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [02:58:37]wFMCommunicate OK [02:58:37]requested_item fd.num is exist - process it [02:58:37]SAM_PROTO_GetFieldsCounters [02:58:37]wFMCommunicate request_size=4 [02:58:37]MH_SAM_APDU [02:58:37]CAPDU: 80 13 00 00 [02:58:37]Write to MH i2c: E2 08 00 2F 73 80 13 00 00 00 00 00 00 1E [02:58:37]Write i2c OK [02:58:37]MH_I2C_Read... [02:58:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:58:37]Read from MH i2c: E2 [02:58:37]MH_I2C_Read... [02:58:37]Read from MH i2c: E2 62 00 [02:58:37]MH_I2C_Read... [02:58:37]Read from MH i2c: E2 62 00 2F 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AC 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [02:58: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AC 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:58:37]wFMCommunicate OK [02:58:37]SAM_PROTO_GetFieldsCounters done [02:58:37]requested_item shift.num is exist - process it [02:58:37]requested_item shift.opened is exist - process it [02:58:37]req_shift_opened [02:58:37]FM_GetShiftState [02:58:37]SAM_PROTO_GetShiftState [02:58:37]wFMCommunicate request_size=4 [02:58:37]MH_SAM_APDU [02:58:37]CAPDU: 80 13 01 00 [02:58:37]Write to MH i2c: E2 08 00 30 73 80 13 01 00 00 00 00 00 20 [02:58:37]Write i2c OK [02:58:37]MH_I2C_Read... [02:58:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:58:37]Read from MH i2c: E2 [02:58:37]MH_I2C_Read... [02:58:37]Read from MH i2c: E2 0E 00 [02:58:37]MH_I2C_Read... [02:58:37]Read from MH i2c: E2 0E 00 30 73 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 CC [02:58:37]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [02:58:37]wFMCommunicate OK [02:58:37]SAM_PROTO_GetShiftState done [02:58:37]FM_GetShiftState done [02:58:37]req_shift_opened done [02:58:37]requested_item shift.open_date is exist - process it [02:58:37]req_shift_open_date [02:58:37]req_shift_open_date done [02:58:37]produce_requested_data done [02:58:37]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29100,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [02:58:37]process_action_free close_receipt [02:58:37]json_value_free [02:58:37]json_value_free done [02:58:37]process_json_proto returns [02:58:37]Send response to host [02:58:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29100,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [02:58:37]free response buf [02:58:37]execute_script done [02:58:37]execute_script returns [02:58:37]free content buf [02:58:37]Sock 9.Close socket [02:58:37]Sock 9.Thread stoped [02:58:41]OFD Sender: No OFD packet to send [02:58:46]OFD Sender: No OFD packet to send [02:58:51]OFD Sender: No OFD packet to send [02:58:56]OFD Sender: No OFD packet to send [02:59:01]OFD Sender: No OFD packet to send [02:59:06]OFD Sender: No OFD packet to send [02:59:11]OFD Sender: No OFD packet to send [02:59:16]OFD Sender: No OFD packet to send [02:59:21]OFD Sender: No OFD packet to send [02:59:26]OFD Sender: No OFD packet to send [02:59:31]OFD Sender: No OFD packet to send [02:59:36]OFD Sender: No OFD packet to send [02:59:41]OFD Sender: No OFD packet to send [02:59:46]OFD Sender: No OFD packet to send [02:59:51]OFD Sender: No OFD packet to send [02:59:56]OFD Sender: No OFD packet to send [03:00:01]OFD Sender: No OFD packet to send [03:00:06]OFD Sender: No OFD packet to send [03:00:11]OFD Sender: No OFD packet to send [03:00:16]OFD Sender: No OFD packet to send [03:00:21]OFD Sender: No OFD packet to send [03:00:24]accept exits with 7 [03:00:24]New connection [03:00:24]New thread 3066785124 created [03:00:24]Thread 3066928484 joined [03:00:24]Waiting for new connection... [03:00:24] Sock 7.Parse request [03:00:24]Sock 7.Check first char [03:00:24]Sock 7.First char is OK [03:00:24]request: POST /json_proto HTTP/1.0 [03:00:24]Method: POST [03:00:24]URL: /json_proto [03:00:24]Method is POST - this is cgi request [03:00:24]url: /json_proto [03:00:24]query_string will be loaded in cgi processing [03:00:24]execute_cgi json_proto POST (null) [03:00:24]execute_cgi path=json_proto method=POST [03:00:24]POST find Content-Length [03:00:24]Host: 172.17.33.3:8080 [03:00:24]Content-Length: 841 [03:00:24]Content-Type: application/json [03:00:24] [03:00:24]POST finish read [03:00:24]Found Content-Length = 841 [03:00:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)347469", "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" : 64.30, "quantity" : 11.190, "sum" : 719.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 719.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:00:24]execute_script... [03:00: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)347469", "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" : 64.30, "quantity" : 11.190, "sum" : 719.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 719.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:00:24]POST & json_proto [03:00:24]process_json_proto [03:00:24]json parsed OK: [03:00:24]protocol is kg_v1.0 [03:00:24]action value=close_receipt [03:00:24]process_action close_receipt [03:00:24]cmd_close_receipt [03:00:24]MH_GetDate [03:00:24]Write to MH i2c: F0 00 00 31 73 93 [03:00:24]Write i2c OK [03:00:24]MH_I2C_Read... [03:00:24]Read from MH i2c: F0 [03:00:24]MH_I2C_Read... [03:00:24]Read from MH i2c: F0 09 00 [03:00:24]MH_I2C_Read... [03:00:24]Read from MH i2c: F0 09 00 31 73 00 D0 46 1B 66 23 5B 8F 65 A5 [03:00:24]GetLastDocTimeStamp 1713063521 [03:00:24]current date 1713063632 [03:00:24]FM_GetShiftState [03:00:24]SAM_PROTO_GetShiftState [03:00:24]wFMCommunicate request_size=4 [03:00:24]MH_SAM_APDU [03:00:24]CAPDU: 80 13 01 00 [03:00:24]Write to MH i2c: E2 08 00 32 73 80 13 01 00 00 00 00 00 22 [03:00:24]Write i2c OK [03:00:24]MH_I2C_Read... [03:00:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:00:24]Read from MH i2c: E2 [03:00:24]MH_I2C_Read... [03:00:24]Read from MH i2c: E2 0E 00 [03:00:24]MH_I2C_Read... [03:00:24]Read from MH i2c: E2 0E 00 32 73 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 CE [03:00:24]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [03:00:24]wFMCommunicate OK [03:00:24]SAM_PROTO_GetShiftState done [03:00:24]FM_GetShiftState done [03:00:24]opened in 1713053951 [03:00:24]opened+sec_in_day 1713140351 [03:00:24]quantity*price = 71951 [03:00:24]sum+1 = 71953 [03:00:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 719.52 НСП 1% : 6.37 НДС 12% : 76.41 Наличными: 0.00 Безнал.: 719.52 Место: АЗС № 108 "Партнер Нефть" Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 СНО: Общий режим Чек 11 14.04.2024 03:00 Смена: 116 ФФД: 1.0 ЗНМ: 0300000027 РНМ: 0000138879044617 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000963154 ФД: 29101 ФПД: 202672959304156 1/tax-web-control/client/api/v1/ticket?date=20240414T030032&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29101&fm=202672959304156&tin=02508201610067®Number=0000138879044617&sum=71952 [03:00:25]StoreToDocumentArchive [03:00:25]shift 116 fd 29101 [03:00:25]save to /storage/0116/doc_00029101 [03:00:25]save last doc name /storage/0116/doc_00029101 to /storage/kkm_last_doc_name [03:00:25]save OK [03:00:25]Clear old archive folders... [03:00:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:00:25]tlvbuf is 011F8280 [03:00:25]SAM_PROTO_ClearQueue [03:00:25]wFMCommunicate request_size=4 [03:00:25]MH_SAM_APDU [03:00:25]CAPDU: 80 09 00 00 [03:00:25]Write to MH i2c: E2 08 00 3F 73 80 09 00 00 00 00 00 00 24 [03:00:25]Write i2c OK [03:00:25]MH_I2C_Read... [03:00:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:00:25]Read from MH i2c: E2 [03:00:25]MH_I2C_Read... [03:00:25]Read from MH i2c: E2 03 00 [03:00:25]MH_I2C_Read... [03:00:25]Read from MH i2c: E2 03 00 3F 73 00 90 00 26 [03:00:25]RAPDU: 90 00 [03:00:25]wFMCommunicate OK [03:00:25]SAM_PROTO_ClearQueue done [03:00:25]KKMCreateOFDPacket [03:00:25]OFDProtocolAddRootSTLVToBuf [03:00:25]FM_MakeSignedData [03:00:25]FM_MakeSignedData [03:00:25]SAM_PROTO_SignData [03:00:25]wFMCommunicate request_size=4 [03:00:25]MH_SAM_APDU [03:00:25]CAPDU: 80 0D 01 02 [03:00:25]Write to MH i2c: E2 08 00 40 73 80 0D 01 02 00 00 00 00 2C [03:00:25]Write i2c OK [03:00:25]MH_I2C_Read... [03:00:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:00:25]Read from MH i2c: E2 [03:00:25]MH_I2C_Read... [03:00:25]Read from MH i2c: E2 03 00 [03:00:25]MH_I2C_Read... [03:00:25]Read from MH i2c: E2 03 00 40 73 00 90 00 27 [03:00:25]RAPDU: 90 00 [03:00:25]wFMCommunicate OK [03:00:25]wFMCommunicate request_size=255 [03:00:25]MH_SAM_APDU [03:00: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 B6 2B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 10 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 19 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 D0 46 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AD 71 00 00 35 04 06 00 B8 [03:00:25]Write to MH i2c: E2 02 01 41 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 2B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 10 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 19 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 D0 46 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AD 71 00 00 35 04 06 00 B8 00 00 4A [03:00:25]Write i2c OK [03:00:25]MH_I2C_Read... [03:00:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:00:26]Read from MH i2c: E2 [03:00:26]MH_I2C_Read... [03:00:26]Read from MH i2c: E2 03 00 [03:00:26]MH_I2C_Read... [03:00:26]Read from MH i2c: E2 03 00 41 73 00 90 00 28 [03:00:26]RAPDU: 90 00 [03:00:26]wFMCommunicate OK [03:00:26]wFMCommunicate request_size=10 [03:00:26]MH_SAM_APDU [03:00:26]CAPDU: 80 0D 02 02 05 54 79 BE B1 DC [03:00:26]Write to MH i2c: E2 0D 00 42 73 80 0D 02 02 05 00 54 79 BE B1 DC 00 00 51 [03:00:26]Write i2c OK [03:00:26]MH_I2C_Read... [03:00:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:00:26]Read from MH i2c: E2 [03:00:26]MH_I2C_Read... [03:00:26]Read from MH i2c: E2 03 00 [03:00:26]MH_I2C_Read... [03:00:26]Read from MH i2c: E2 03 00 42 73 00 90 00 29 [03:00:26]RAPDU: 90 00 [03:00:26]wFMCommunicate OK [03:00:26]wFMCommunicate request_size=4 [03:00:26]MH_SAM_APDU [03:00:26]CAPDU: 80 0D 03 02 [03:00:26]Write to MH i2c: E2 08 00 43 73 80 0D 03 02 00 00 00 00 31 [03:00:26]Write i2c OK [03:00:26]MH_I2C_Read... [03:00:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:00:26]Read from MH i2c: E2 [03:00:26]MH_I2C_Read... [03:00:26]Read from MH i2c: E2 0B 00 [03:00:26]MH_I2C_Read... [03:00:26]Read from MH i2c: E2 0B 00 43 73 00 32 D8 A2 1B 3B 42 7E 7F 90 00 73 [03:00:26]RAPDU: 32 D8 A2 1B 3B 42 7E 7F 90 00 [03:00:26]wFMCommunicate OK [03:00:26]SAM_PROTO_SignData done [03:00:26]FM_MakeSignedData done [03:00:26]CreateOFDProtocolMessage [03:00:26]wFMCommunicate request_size=4 [03:00:26]MH_SAM_APDU [03:00:26]CAPDU: 80 11 00 00 [03:00:26]Write to MH i2c: E2 08 00 44 73 80 11 00 00 00 00 00 00 31 [03:00:26]Write i2c OK [03:00:26]MH_I2C_Read... [03:00:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:00:26]Read from MH i2c: E2 [03:00:26]MH_I2C_Read... [03:00:26]Read from MH i2c: E2 17 00 [03:00:26]MH_I2C_Read... [03:00:26]Read from MH i2c: E2 17 00 44 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 80 [03:00:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [03:00:26]wFMCommunicate OK [03:00:26]CreateOFDProtocolMessage done [03:00:26]OFDSenderStorePacket 29101 [03:00:26]StoreOFDPacket docnum=29101 [03:00:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0F 01 00 00 39 D2 07 01 79 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 2B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 10 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 19 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 D0 46 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AD 71 00 00 35 04 06 00 B8 54 79 BE B1 DC 32 D8 A2 1B 3B 42 7E 7F [03:00:26]CheckFolder [03:00:26]dirname=/storage/ofd_packets [03:00:26]CheckFolder done [03:00:26]ProducePacketName [03:00:26]name=ofd_packets/00029101 [03:00:26]NVStorageSaveData ofd_packets/00029101 [03:00:26]File name is /storage/ofd_packets/00029101 [03:00:26]Write 301 bytes [03:00:26]NVStorageSaveData done [03:00:26]OFDSenderStorePacket done [03:00:26]KKMCreateOFDPacket done [03:00:26]NVStorageSaveData kkm_last_timestamp [03:00:26]File name is /storage/kkm_last_timestamp [03:00:26]Write 4 bytes [03:00:26]NVStorageSaveData done [03:00:26]ExternCall_PrintAddStr [03:00:26]wPrintStart [03:00:26]Write to MH i2c: 01 00 00 45 73 B8 [03:00:26]Write i2c OK [03:00:26]MH_I2C_Read... [03:00:26]Read from MH i2c: 01 [03:00:26]MH_I2C_Read... [03:00:26]Read from MH i2c: 01 07 00 [03:00:26]MH_I2C_Read... [03:00:26]Read from MH i2c: 01 07 00 45 73 00 00 00 00 00 FF 0F CD [03:00:26]RasterBufferAndPrint [03:00:26]line Счет N : (1)347469 [03:00:26]line ИНН: 02508201610067 [03:00:26]line Контрольно-Кассовый Чек [03:00:26]line ПРОДАЖА [03:00:26]line ТРК (МРК, ГНК) : 32 [03:00:26]line Товар: 2710124130 [03:00:26]line Аи-92-К-5 [03:00:26]line 11.190 * 64.30 [03:00:26]line = 719.52 [03:00:26]line НДС 12% НСП 1% [03:00:26]line > о реализуемом товаре [03:00:26]line ИТОГО: 719.52 [03:00:26]line НСП 1% : 6.37 [03:00:26]line НДС 12% : 76.41 [03:00:26]line Наличными: 0.00 [03:00:26]line Безнал.: 719.52 [03:00:26]line Место: АЗС № 108 "Партнер Нефть" [03:00:26]line Адрес: 720001, с. Романовка, ул. Фрунзе 81 А, 42.863079, 74.318854 [03:00:26]line СНО: Общий режим [03:00:26]line Чек 11 14.04.2024 03:00 [03:00:26]line Смена: 116 ФФД: 1.0 [03:00:26]line ЗНМ: 0300000027 [03:00:26]line РНМ: 0000138879044617 [03:00:26]line Версия ККМ: 001 [03:00:26]line Платежная система: АКБ Кыргызстан [03:00:26]line ФМ: 0000000000963154 [03:00:26]line ФД: 29101 [03:00:26]line ФПД: 202672959304156 [03:00:26]line 1/tax-web-control/client/api/v1/ticket?date=20240414T030032&type=1&operation_type=1&fn_number=0000000000963154&fd_number=29101&fm=202672959304156&tin=02508201610067®Number=0000138879044617&sum=71952 [03:00:26]OFD Sender: Processing packet 29101 [packets to send 8, broken 7] [03:00:26]ProducePacketName [03:00:26]name=ofd_packets/00029101 [03:00:26]OFD Sender: To server: pG, [03:00:26]CommunicateWithHost lk.salyk.kg:30040 [03:00:26]ConnectInit lk.salyk.kg [03:00:26]written 0, free lines is 4095 [03:00:26]Connected sock=10 [03:00: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 31 35 34 0F 01 00 00 39 D2 07 01 79 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 2B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 10 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 19 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 D0 46 1B 66 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 10 04 04 00 AD 71 00 00 35 04 06 00 B8 54 79 BE B1 DC 32 D8 A2 1B 3B 42 7E 7F [03:00:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 4F 00 00 00 3D 2A 47 00 28 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 31 35 34 10 04 04 00 AD 71 00 00 F4 03 04 00 75 F1 1A 66 B6 04 01 00 00 37 8B 21 D4 F0 2D 8A 27 [03:00:26]CommunicateWithHost err = 0 [03:00:26]CheckOFDResponse [03:00:26]1017 (14) - 77093643461234 [03:00:26]1041 (16) - 0000000000963154 [03:00:26]1040 (4) - 29101 [03:00:26]1012 (4) - 13.04.2024 20:56 [03:00:26]1206 (1) - 0 [03:00:26]OFD Sender: Remove packet 29101 [03:00:26]ProducePacketName [03:00:26]name=ofd_packets/00029101 [03:00:26]NVStorageDeleteData [03:00:27]Write to MH i2c: 01 00 00 6E 73 E1 [03:00:27]Write i2c OK [03:00:27]MH_I2C_Read... [03:00:27]Read from MH i2c: 01 [03:00:27]MH_I2C_Read... [03:00:27]Read from MH i2c: 01 07 00 [03:00:27]MH_I2C_Read... [03:00:27]Read from MH i2c: 01 07 00 6E 73 00 00 00 00 00 E4 0C D8 [03:00:27]RasterBufferAndPrint [03:00:27]line [03:00:27]line [03:00:27]line [03:00:27]line [03:00:27]line [03:00:27]written 0, free lines is 3305 [03:00:27]MH_Cut [03:00:27]Write to MH i2c: D1 01 00 75 73 01 BA [03:00:27]Write i2c OK [03:00:27]MH_I2C_Read... [03:00:27]Read from MH i2c: D1 [03:00:27]MH_I2C_Read... [03:00:27]Read from MH i2c: D1 01 00 [03:00:27]MH_I2C_Read... [03:00:27]Read from MH i2c: D1 01 00 75 73 00 B9 [03:00:27]Write to MH i2c: 01 00 00 76 73 E9 [03:00:27]Write i2c OK [03:00:27]MH_I2C_Read... [03:00:27]OFD Sender: No OFD packet to send [03:00:27]*** Cut start [03:00:27]*** Partial cut [03:00:27]*** CUTSNS_PIN = 1 [03:00:27]*** CUTSNS_PIN = 0 [03:00:28]*** Brake cut motor [03:00:28]Read from MH i2c: 01 [03:00:28]MH_I2C_Read... [03:00:28]*** Stop cut motor [03:00:28]*** Cut end [03:00:28]Read from MH i2c: 01 07 00 [03:00:28]MH_I2C_Read... [03:00:28]Read from MH i2c: 01 07 00 76 73 00 00 00 00 00 FF 0F FE [03:00:28]process_action close_receipt done [03:00:28]requested_data is exist [03:00:28]produce_requested_data [03:00:28]requested_item fm.sn is exist - process it [03:00:28]wFMCommunicate request_size=4 [03:00:28]MH_SAM_APDU [03:00:28]CAPDU: 80 11 00 00 [03:00:28]Write to MH i2c: E2 08 00 77 73 80 11 00 00 00 00 00 00 64 [03:00:28]Write i2c OK [03:00:28]MH_I2C_Read... [03:00:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:00:28]Read from MH i2c: E2 [03:00:28]MH_I2C_Read... [03:00:28]Read from MH i2c: E2 17 00 [03:00:28]MH_I2C_Read... [03:00:28]Read from MH i2c: E2 17 00 77 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 B3 [03:00:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 90 00 [03:00:28]wFMCommunicate OK [03:00:28]requested_item fd.num is exist - process it [03:00:28]SAM_PROTO_GetFieldsCounters [03:00:28]wFMCommunicate request_size=4 [03:00:28]MH_SAM_APDU [03:00:28]CAPDU: 80 13 00 00 [03:00:28]Write to MH i2c: E2 08 00 78 73 80 13 00 00 00 00 00 00 67 [03:00:28]Write i2c OK [03:00:28]MH_I2C_Read... [03:00:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:00:28]Read from MH i2c: E2 [03:00:28]MH_I2C_Read... [03:00:28]Read from MH i2c: E2 62 00 [03:00:28]MH_I2C_Read... [03:00:28]Read from MH i2c: E2 62 00 78 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AD 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [03:00: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 31 35 34 0D 04 10 00 30 30 30 30 31 33 38 38 37 39 30 34 34 36 31 37 10 04 04 00 AD 71 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:00:28]wFMCommunicate OK [03:00:28]SAM_PROTO_GetFieldsCounters done [03:00:28]requested_item shift.num is exist - process it [03:00:28]requested_item shift.opened is exist - process it [03:00:28]req_shift_opened [03:00:28]FM_GetShiftState [03:00:28]SAM_PROTO_GetShiftState [03:00:28]wFMCommunicate request_size=4 [03:00:28]MH_SAM_APDU [03:00:28]CAPDU: 80 13 01 00 [03:00:28]Write to MH i2c: E2 08 00 79 73 80 13 01 00 00 00 00 00 69 [03:00:28]Write i2c OK [03:00:28]MH_I2C_Read... [03:00:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:00:28]Read from MH i2c: E2 [03:00:28]MH_I2C_Read... [03:00:28]Read from MH i2c: E2 0E 00 [03:00:28]MH_I2C_Read... [03:00:28]Read from MH i2c: E2 0E 00 79 73 00 09 00 01 FF 20 1B 66 00 00 00 00 90 00 15 [03:00:28]RAPDU: 09 00 01 FF 20 1B 66 00 00 00 00 90 00 [03:00:28]wFMCommunicate OK [03:00:28]SAM_PROTO_GetShiftState done [03:00:28]FM_GetShiftState done [03:00:28]req_shift_opened done [03:00:28]requested_item shift.open_date is exist - process it [03:00:28]req_shift_open_date [03:00:28]req_shift_open_date done [03:00:28]produce_requested_data done [03:00:28]produce_requested_data return {"fm.sn":"0000000000963154","fd.num":29101,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951} [03:00:28]process_action_free close_receipt [03:00:28]json_value_free [03:00:28]json_value_free done [03:00:28]process_json_proto returns [03:00:28]Send response to host [03:00:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963154","fd.num":29101,"shift.num":116,"shift.opened":1,"shift.open_date":1713053951}}} [03:00:28]free response buf [03:00:28]execute_script done [03:00:28]execute_script returns [03:00:28]free content buf [03:00:28]Sock 7.Close socket [03:00:28]Sock 7.Thread stoped [03:00:32]OFD Sender: No OFD packet to send [03:00:37]OFD Sender: No OFD packet to send [03:00:42]OFD Sender: No OFD packet to send [03:00:47]OFD Sender: No OFD packet to send [03:00:52]OFD Sender: No OFD packet to send [03:00:57]OFD Sender: No OFD packet to send [03:01:02]OFD Sender: No OFD packet to send [03:01:07]OFD Sender: No OFD packet to send [03:01:12]OFD Sender: No OFD packet to send [03:01:17]OFD Sender: No OFD packet to send [03:01:22]OFD Sender: No OFD packet to send [03:01:27]OFD Sender: No OFD packet to send [03:01:32]OFD Sender: No OFD packet to send [03:01:37]OFD Sender: No OFD packet to send [03:01:42]OFD Sender: No OFD packet to send [03:01:47]OFD Sender: No OFD packet to send [03:01:52]OFD Sender: No OFD packet to send [03:01:57]OFD Sender: No OFD packet to send [03:02:02]OFD Sender: No OFD packet to send [03:02:07]OFD Sender: No OFD packet to send [03:02:12]OFD Sender: No OFD packet to send [03:02:17]OFD Sender: No OFD packet to send [03:02:22]OFD Sender: No OFD packet to send [03:02:27]OFD Sender: No OFD packet to send [03:02:32]OFD Sender: No OFD packet to send [03:02:37]OFD Sender: No OFD packet to send [03:02:42]OFD Sender: No OFD packet to send [03:02:47]OFD Sender: No OFD packet to send [03:02:52]OFD Sender: No OFD packet to send [03:02:57]OFD Sender: No OFD packet to send [03:03:02]OFD Sender: No OFD packet to send [03:03:07]OFD Sender: No OFD packet to send [03:03:12]OFD Sender: No OFD packet to send [03:03:17]OFD Sender: No OFD packet to send [03:03:22]OFD Sender: No OFD packet to send [03:03:27]OFD Sender: No OFD packet to send [03:03:32]OFD Sender: No OFD packet to send [03:03:37]OFD Sender: No OFD packet to send [03:03:42]OFD Sender: No OFD packet to send [03:03:47]OFD Sender: No OFD packet to send [03:03:52]OFD Sender: No OFD packet to send [03:03:57]OFD Sender: No OFD packet to send